diff --git a/.codegen/typescript/api/purplship.ts b/.codegen/typescript/api/purplship.ts index 2ae5915788..57a2ddcfc9 100644 --- a/.codegen/typescript/api/purplship.ts +++ b/.codegen/typescript/api/purplship.ts @@ -1,9 +1,12 @@ -import { PurplshipClient } from './index'; +import { ConfigurationParameters, PurplshipClient } from './index'; -export const Client = PurplshipClient; +export default function Purplship(apiKey: string, host: string = 'https://cloud.purplship.com', apiKeyPrefix: string = 'Token') { + const clientConfig: ConfigurationParameters = { + basePath: host, + apiKey: `${apiKeyPrefix} ${apiKey}`, + }; -export class Purplship extends PurplshipClient { - constructor({ apiKey, host }: { apiKey: string, host: string }) { - super({ basePath: host, apiKey }); - } -} \ No newline at end of file + return new PurplshipClient(clientConfig); +} + +Purplship.Client = PurplshipClient; diff --git a/.codegen/typescript/gulpfile.js b/.codegen/typescript/gulpfile.js index c5231215eb..0f51b2660e 100644 --- a/.codegen/typescript/gulpfile.js +++ b/.codegen/typescript/gulpfile.js @@ -16,7 +16,7 @@ gulp.task('build', async function () { await bundle.write({ file: output, format: 'umd', - name: 'purplship', + name: 'Purplship', sourcemap: true }); }); diff --git a/.gitignore b/.gitignore index a3bcf32531..072b55c04f 100644 --- a/.gitignore +++ b/.gitignore @@ -108,6 +108,8 @@ venv.bak/ .DS_Store # purplship stuff: +sdk/**/poetry.lock +schemas/**/poetry.lock .bash_history *.DS_Store .idea/ diff --git a/README.md b/README.md index 3e9efc9279..36e855657d 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ docker run -d \ -e ADMIN_EMAIL=admin@example.com \ -e ADMIN_PASSWORD=demo \ --link=db:db -p 5002:5002 \ - danh91.docker.scarf.sh/purplship/server:2021.10 + danh91.docker.scarf.sh/purplship/server:2021.11 ``` @@ -92,7 +92,7 @@ services: - db_network pship: - image: danh91.docker.scarf.sh/purplship/server:2021.10 + image: danh91.docker.scarf.sh/purplship/server:2021.11 restart: unless-stopped environment: - DEBUG_MODE=True @@ -163,6 +163,7 @@ pip install purplship.canadapost - `purplship.canadapost` - `purplship.canpar` - `purplship.dhl-express` +- `purplship.dhl-poland` - `purplship.dhl-universal` - `purplship.dicom` - `purplship.fedex` @@ -189,7 +190,7 @@ pip install purplship.canadapost ```python import purplship from purplship.core.models import Address, Parcel, RateRequest -from purplship.mappers.canadapost.settings import Settings +from purplship.mappers.canadapost import Settings # Initialize a carrier gateway diff --git a/docker-compose.insiders.yml b/docker-compose.insiders.yml index 71271ff9ae..e829734866 100644 --- a/docker-compose.insiders.yml +++ b/docker-compose.insiders.yml @@ -44,15 +44,9 @@ services: file: docker-compose.yml service: redis - nginx: - extends: - file: docker-compose.yml - service: nginx - - volumes: - redisdata: - pshipdata: + redisdata: null + pshipdata: null pshipstatics: driver: local @@ -61,4 +55,3 @@ networks: driver: bridge web_network: driver: bridge - diff --git a/docker/Dockerfile b/docker/Dockerfile index 9b91d79ae1..dd11039347 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,11 +1,16 @@ # The base image compilation FROM python:3.8-slim AS compile-image + +ARG REQUIREMENTS="requirements.txt" +ARG REGISTRY_TOKEN +ARG REGISTRY_TOKEN_NAME + RUN python -m venv /pship/venv ENV PATH="/pship/venv/bin:$PATH" -COPY requirements.txt /temp/ +COPY "${REQUIREMENTS}" /temp/ RUN pip install --upgrade pip && \ pip install dumb-init && \ - pip install -r /temp/requirements.txt + pip install -r "/temp/${REQUIREMENTS}" # The runtime image diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 8c903f2081..7dedd616f4 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -2,7 +2,7 @@ # Setup DB and static files purplship migrate || exit -purplship collectstatic --clear --noinput || exit +purplship collectstatic --clear --noinput 2>&1 || exit # Setup Default super admin (echo " diff --git a/insiders/server/orgs/purplship/server/orgs/migrations/0004_auto_20211113_1338.py b/insiders/server/orgs/purplship/server/orgs/migrations/0004_auto_20211113_1338.py new file mode 100644 index 0000000000..f507afca22 --- /dev/null +++ b/insiders/server/orgs/purplship/server/orgs/migrations/0004_auto_20211113_1338.py @@ -0,0 +1,28 @@ +# Generated by Django 3.2.9 on 2021-11-13 13:38 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('events', '0002_event'), + ('orgs', '0003_organization_system_carriers'), + ] + + operations = [ + migrations.CreateModel( + name='EventLink', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('item', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='link', to='events.event')), + ('org', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='event_links', to='orgs.organization')), + ], + ), + migrations.AddField( + model_name='organization', + name='events', + field=models.ManyToManyField(related_name='org', through='orgs.EventLink', to='events.Event'), + ), + ] diff --git a/insiders/server/orgs/purplship/server/orgs/models.py b/insiders/server/orgs/purplship/server/orgs/models.py index f4cb54ec28..1813c12977 100644 --- a/insiders/server/orgs/purplship/server/orgs/models.py +++ b/insiders/server/orgs/purplship/server/orgs/models.py @@ -4,7 +4,7 @@ AbstractOrganization, AbstractOrganizationUser, AbstractOrganizationOwner, - AbstractOrganizationInvitation + AbstractOrganizationInvitation, ) import purplship.server.providers.models as providers @@ -17,38 +17,66 @@ class Organization(AbstractOrganization): - id = models.CharField(max_length=50, primary_key=True, default=partial(core.uuid, prefix='org_'), editable=False) - - carriers = models.ManyToManyField(providers.Carrier, related_name="org", through='CarrierLink') - system_carriers = models.ManyToManyField(providers.Carrier, related_name="active_orgs") - - parcels = models.ManyToManyField(manager.Parcel, related_name="org", through='ParcelLink') - pickups = models.ManyToManyField(manager.Pickup, related_name="org", through='PickupLink') - customs = models.ManyToManyField(manager.Customs, related_name="org", through='CustomsLink') - trackers = models.ManyToManyField(manager.Tracking, related_name="org", through='TrackerLink') - addresses = models.ManyToManyField(manager.Address, related_name="org", through='AddressLink') - shipments = models.ManyToManyField(manager.Shipment, related_name="org", through='ShipmentLink') - commodities = models.ManyToManyField(manager.Commodity, related_name="org", through='CommodityLink') - - templates = models.ManyToManyField(graph.Template, related_name="org", through='TemplateLink') - - webhooks = models.ManyToManyField(events.Webhook, related_name="org", through='WebhookLink') - - logs = models.ManyToManyField(core.APILog, related_name="org", through='LogLink') - - tokens = models.ManyToManyField(auth.Token, related_name="org", through='TokenLink') + id = models.CharField( + max_length=50, + primary_key=True, + default=partial(core.uuid, prefix="org_"), + editable=False, + ) + + carriers = models.ManyToManyField( + providers.Carrier, related_name="org", through="CarrierLink" + ) + system_carriers = models.ManyToManyField( + providers.Carrier, related_name="active_orgs" + ) + + parcels = models.ManyToManyField( + manager.Parcel, related_name="org", through="ParcelLink" + ) + pickups = models.ManyToManyField( + manager.Pickup, related_name="org", through="PickupLink" + ) + customs = models.ManyToManyField( + manager.Customs, related_name="org", through="CustomsLink" + ) + trackers = models.ManyToManyField( + manager.Tracking, related_name="org", through="TrackerLink" + ) + addresses = models.ManyToManyField( + manager.Address, related_name="org", through="AddressLink" + ) + shipments = models.ManyToManyField( + manager.Shipment, related_name="org", through="ShipmentLink" + ) + commodities = models.ManyToManyField( + manager.Commodity, related_name="org", through="CommodityLink" + ) + + templates = models.ManyToManyField( + graph.Template, related_name="org", through="TemplateLink" + ) + + webhooks = models.ManyToManyField( + events.Webhook, related_name="org", through="WebhookLink" + ) + events = models.ManyToManyField( + events.Event, related_name="org", through="EventLink" + ) + + logs = models.ManyToManyField(core.APILog, related_name="org", through="LogLink") + + tokens = models.ManyToManyField(auth.Token, related_name="org", through="TokenLink") surcharges = models.ManyToManyField(pricing.Surcharge, related_name="org") class OrganizationUser(AbstractOrganizationUser): - def __str__(self): return f"{self.user.email} ({self.organization.name})" class OrganizationOwner(AbstractOrganizationOwner): - def __str__(self): return "{0}: {1}".format(self.organization, self.organization_user.user.email) @@ -61,60 +89,117 @@ class OrganizationInvitation(AbstractOrganizationInvitation): class CarrierLink(models.Model): - org = models.ForeignKey(Organization, on_delete=models.CASCADE, related_name="carrier_links") - item = models.OneToOneField(providers.Carrier, on_delete=models.CASCADE, related_name="link") + org = models.ForeignKey( + Organization, on_delete=models.CASCADE, related_name="carrier_links" + ) + item = models.OneToOneField( + providers.Carrier, on_delete=models.CASCADE, related_name="link" + ) class ParcelLink(models.Model): - org = models.ForeignKey(Organization, on_delete=models.CASCADE, related_name="parcel_links") - item = models.OneToOneField(manager.Parcel, on_delete=models.CASCADE, related_name="link") + org = models.ForeignKey( + Organization, on_delete=models.CASCADE, related_name="parcel_links" + ) + item = models.OneToOneField( + manager.Parcel, on_delete=models.CASCADE, related_name="link" + ) class PickupLink(models.Model): - org = models.ForeignKey(Organization, on_delete=models.CASCADE, related_name="pickup_links") - item = models.OneToOneField(manager.Pickup, on_delete=models.CASCADE, related_name="link") + org = models.ForeignKey( + Organization, on_delete=models.CASCADE, related_name="pickup_links" + ) + item = models.OneToOneField( + manager.Pickup, on_delete=models.CASCADE, related_name="link" + ) class CustomsLink(models.Model): - org = models.ForeignKey(Organization, on_delete=models.CASCADE, related_name="custom_links") - item = models.OneToOneField(manager.Customs, on_delete=models.CASCADE, related_name="link") + org = models.ForeignKey( + Organization, on_delete=models.CASCADE, related_name="custom_links" + ) + item = models.OneToOneField( + manager.Customs, on_delete=models.CASCADE, related_name="link" + ) class TrackerLink(models.Model): - org = models.ForeignKey(Organization, on_delete=models.CASCADE, related_name="tracker_links") - item = models.OneToOneField(manager.Tracking, on_delete=models.CASCADE, related_name="link") + org = models.ForeignKey( + Organization, on_delete=models.CASCADE, related_name="tracker_links" + ) + item = models.OneToOneField( + manager.Tracking, on_delete=models.CASCADE, related_name="link" + ) class AddressLink(models.Model): - org = models.ForeignKey(Organization, on_delete=models.CASCADE, related_name="address_links") - item = models.OneToOneField(manager.Address, on_delete=models.CASCADE, related_name="link") + org = models.ForeignKey( + Organization, on_delete=models.CASCADE, related_name="address_links" + ) + item = models.OneToOneField( + manager.Address, on_delete=models.CASCADE, related_name="link" + ) class ShipmentLink(models.Model): - org = models.ForeignKey(Organization, on_delete=models.CASCADE, related_name="shipment_links") - item = models.OneToOneField(manager.Shipment, on_delete=models.CASCADE, related_name="link") + org = models.ForeignKey( + Organization, on_delete=models.CASCADE, related_name="shipment_links" + ) + item = models.OneToOneField( + manager.Shipment, on_delete=models.CASCADE, related_name="link" + ) class CommodityLink(models.Model): - org = models.ForeignKey(Organization, on_delete=models.CASCADE, related_name="commodity_links") - item = models.OneToOneField(manager.Commodity, on_delete=models.CASCADE, related_name="link") + org = models.ForeignKey( + Organization, on_delete=models.CASCADE, related_name="commodity_links" + ) + item = models.OneToOneField( + manager.Commodity, on_delete=models.CASCADE, related_name="link" + ) class TemplateLink(models.Model): - org = models.ForeignKey(Organization, on_delete=models.CASCADE, related_name="template_links") - item = models.OneToOneField(graph.Template, on_delete=models.CASCADE, related_name="link") + org = models.ForeignKey( + Organization, on_delete=models.CASCADE, related_name="template_links" + ) + item = models.OneToOneField( + graph.Template, on_delete=models.CASCADE, related_name="link" + ) class WebhookLink(models.Model): - org = models.ForeignKey(Organization, on_delete=models.CASCADE, related_name="webhook_links") - item = models.OneToOneField(events.Webhook, on_delete=models.CASCADE, related_name="link") + org = models.ForeignKey( + Organization, on_delete=models.CASCADE, related_name="webhook_links" + ) + item = models.OneToOneField( + events.Webhook, on_delete=models.CASCADE, related_name="link" + ) + + +class EventLink(models.Model): + org = models.ForeignKey( + Organization, on_delete=models.CASCADE, related_name="event_links" + ) + item = models.OneToOneField( + events.Event, on_delete=models.CASCADE, related_name="link" + ) class LogLink(models.Model): - org = models.ForeignKey(Organization, on_delete=models.CASCADE, related_name="log_links") - item = models.OneToOneField(core.APILog, on_delete=models.CASCADE, related_name="link") + org = models.ForeignKey( + Organization, on_delete=models.CASCADE, related_name="log_links" + ) + item = models.OneToOneField( + core.APILog, on_delete=models.CASCADE, related_name="link" + ) class TokenLink(models.Model): - org = models.ForeignKey(Organization, on_delete=models.CASCADE, related_name="token_links") - item = models.OneToOneField(auth.Token, on_delete=models.CASCADE, related_name="link") + org = models.ForeignKey( + Organization, on_delete=models.CASCADE, related_name="token_links" + ) + item = models.OneToOneField( + auth.Token, on_delete=models.CASCADE, related_name="link" + ) diff --git a/insiders/server/orgs/setup.py b/insiders/server/orgs/setup.py index 8bbd7f90c5..463cc1fad0 100644 --- a/insiders/server/orgs/setup.py +++ b/insiders/server/orgs/setup.py @@ -5,7 +5,7 @@ setup( name="purplship.server.orgs", - version="2021.10rc1", + version="2021.11.5", description="Multi-carrier shipping API organization module", long_description=long_description, long_description_content_type="text/markdown", @@ -13,7 +13,7 @@ author="purplship", author_email="hello@purplship.com", license="Purplship Enterprise", - packages=find_namespace_packages("."), + packages=find_namespace_packages(exclude=["tests.*", "tests"]), install_requires=[ "django-extensions", "django-organizations", diff --git a/insiders/server/tenants/setup.py b/insiders/server/tenants/setup.py index be72ec06d0..b7a97ccfb1 100644 --- a/insiders/server/tenants/setup.py +++ b/insiders/server/tenants/setup.py @@ -5,7 +5,7 @@ setup( name="purplship.server.tenants", - version="2021.10rc1", + version="2021.11", description="Multi-carrier shipping API muti-tenant module", long_description=long_description, long_description_content_type="text/markdown", @@ -13,7 +13,7 @@ author="purplship", author_email="hello@purplship.com", license="Purplship Enterprise", - packages=find_namespace_packages("."), + packages=find_namespace_packages(exclude=["tests.*", "tests"]), install_requires=[ "purplship.server.core", "django-tenants", diff --git a/mypy.ini b/mypy.ini index 51aa2360f0..17762b2351 100644 --- a/mypy.ini +++ b/mypy.ini @@ -19,6 +19,12 @@ ignore_missing_imports = True [mypy-PIL] ignore_missing_imports = True +[mypy-PyPDF2] +ignore_missing_imports = True + +[mypy-simple_zpl2] +ignore_missing_imports = True + [mypy-phonenumbers] ignore_missing_imports = True @@ -96,3 +102,6 @@ ignore_missing_imports = True [mypy-freightcom_lib.*] ignore_missing_imports = True + +[mypy-dhl_poland_lib.*] +ignore_missing_imports = True diff --git a/requirements.core.txt b/requirements.core.txt index 2d45812931..72f55c2ae7 100644 --- a/requirements.core.txt +++ b/requirements.core.txt @@ -1,3 +1,4 @@ +-f https://git.io/purplship purplship purplship.server purplship.server.core @@ -11,6 +12,7 @@ purplship.australiapost purplship.canadapost purplship.canpar purplship.dhl-express +purplship.dhl-poland purplship.dhl-universal purplship.dicom purplship.fedex diff --git a/requirements.dev.txt b/requirements.dev.txt index 88a04761fc..57a7e2c692 100644 --- a/requirements.dev.txt +++ b/requirements.dev.txt @@ -2,8 +2,8 @@ bandit black coverage generateDS -mkdocs-material mypy poetry twine wheel +nose diff --git a/requirements.insiders.core.txt b/requirements.insiders.core.txt new file mode 100644 index 0000000000..366aa3c1b3 --- /dev/null +++ b/requirements.insiders.core.txt @@ -0,0 +1,32 @@ +-f https://git.io/purplship +--extra-index-url https://${REGISTRY_TOKEN_NAME}:${REGISTRY_TOKEN}@gitlab.com/api/v4/projects/purplship%2Fcloud/packages/pypi/simple +purplship +purplship.server +purplship.server.core +purplship.server.events +purplship.server.graph +purplship.server.manager +purplship.server.orgs +purplship.server.pricing +purplship.server.proxy +purplship.aramex +purplship.australiapost +purplship.canadapost +purplship.canpar +purplship.dhl-express +purplship.dhl-poland +purplship.dhl-universal +purplship.dicom +purplship.fedex +purplship.purolator +purplship.royalmail +purplship.sendle +purplship.sf-express +purplship.tnt +purplship.ups +purplship.usps +purplship.usps_international +purplship.yanwen +purplship.yunexpress +purplship.eshipper +purplship.freightcom diff --git a/requirements.insiders.txt b/requirements.insiders.txt new file mode 100644 index 0000000000..1d25e20f3c --- /dev/null +++ b/requirements.insiders.txt @@ -0,0 +1,115 @@ +-f https://git.io/purplship +--extra-index-url https://${REGISTRY_TOKEN_NAME}:${REGISTRY_TOKEN}@gitlab.com/api/v4/projects/purplship%2Fcloud/packages/pypi/simple +aniso8601==7.0.0 +asgiref==3.4.1 +attrs==21.2.0 +backports.zoneinfo==0.2.1 +carrier.aramex==2021.2 +carrier.australiapost==2021.2.1 +carrier.canadapost==2021.7 +carrier.canpar==2021.2 +carrier.dhl-express==2021.4 +carrier.dhl-poland==2021.11 +carrier.dhl-universal==2021.2.1 +carrier.dicom==2021.2.1 +carrier.fedex==2021.4 +carrier.purolator==2020.4.1 +carrier.royalmail==2021.2.1 +carrier.sendle==2021.11 +carrier.sf-express==2021.2 +carrier.tnt==2021.3 +carrier.ups==2020.11 +carrier.usps==2021.6 +carrier.yanwen==2021.2.1 +carrier.yunexpress==2021.2.1 +certifi==2021.10.8 +charset-normalizer==2.0.9 +click==8.0.3 +coreapi==2.3.3 +coreschema==0.0.4 +Django==3.2.9 +django-constance==2.8.0 +django-cors-headers==3.10.1 +django-email-verification==0.1.0 +django-extensions==3.1.5 +django-filter==21.1 +django-organizations==2.0.1 +django-picklefield==3.0.1 +django-redis==5.1.0 +djangorestframework==3.12.4 +djangorestframework-simplejwt==5.0.0 +drf-api-tracking==1.8.0 +drf-yasg==1.20.0 +graphene==2.1.9 +graphene-django==2.15.0 +graphql-core==2.3.2 +graphql-relay==2.0.1 +gunicorn==20.1.0 +h11==0.12.0 +hiredis==2.0.0 +huey==2.4.2 +idna==3.3 +inflection==0.5.1 +itypes==1.2.0 +Jinja2==3.0.3 +jsonfield==3.1.0 +jstruct==2021.11 +lxml==4.6.4 +lxml-stubs==0.3.0 +MarkupSafe==2.0.1 +more-itertools==8.12.0 +packaging==21.3 +phonenumbers==8.12.38 +Pillow==8.4.0 +promise==2.3 +psycopg2-binary==2.9.2 +purplship==2021.11.4 +purplship.aramex==2021.10 +purplship.australiapost==2021.10 +purplship.canadapost==2021.11.1 +purplship.canpar==2021.11 +purplship.dhl-express==2021.11.1 +purplship.dhl-poland==2021.11 +purplship.dhl-universal==2021.11 +purplship.dicom==2021.10 +purplship.eshipper==2021.10 +purplship.fedex==2021.11.4 +purplship.freightcom==2021.10 +purplship.purolator==2021.10 +purplship.royalmail==2021.11 +purplship.sendle==2021.11 +purplship.server==2021.11 +purplship.server.core==2021.11.5 +purplship.server.events==2021.11.5 +purplship.server.graph==2021.11.5 +purplship.server.manager==2021.11.5 +purplship.server.orgs==2021.11.5 +purplship.server.pricing==2021.11.5 +purplship.server.proxy==2021.11.5 +purplship.sf-express==2021.10 +purplship.tnt==2021.10 +purplship.ups==2021.11 +purplship.usps==2021.11.1 +purplship.usps-international==2021.11.1 +purplship.yanwen==2021.10 +purplship.yunexpress==2021.10 +py-soap==2020.3.2 +PyJWT==2.3.0 +pyparsing==3.0.6 +PyPDF2==1.26.0 +python-decouple==3.5 +pytz==2021.3 +redis==3.5.3 +requests==2.26.0 +ruamel.yaml==0.17.17 +ruamel.yaml.clib==0.2.6 +Rx==1.6.1 +simple-zpl2==0.3.0 +singledispatch==3.7.0 +six==1.16.0 +sqlparse==0.4.2 +text-unidecode==1.3 +uritemplate==4.1.1 +urllib3==1.26.7 +uvicorn==0.15.0 +xmltodict==0.12.0 diff --git a/requirements.sdk.dev.txt b/requirements.sdk.dev.txt index ae585e1f50..3f0641b9bc 100644 --- a/requirements.sdk.dev.txt +++ b/requirements.sdk.dev.txt @@ -1,5 +1,34 @@ -nose +# Schemas in Development +# -e ./schemas/dhl_poland + +# SDK extentions +-e ./sdk/core +-e ./sdk/extensions/aramex +-e ./sdk/extensions/australiapost +-e ./sdk/extensions/boxknight +-e ./sdk/extensions/canadapost +-e ./sdk/extensions/canpar +-e ./sdk/extensions/dhl_express +-e ./sdk/extensions/dhl_poland +-e ./sdk/extensions/dhl_universal +-e ./sdk/extensions/dicom +-e ./sdk/vendors/eshipper +-e ./sdk/extensions/fedex +-e ./sdk/vendors/freightcom +-e ./sdk/extensions/purolator +-e ./sdk/extensions/royalmail +-e ./sdk/extensions/sendle +-e ./sdk/extensions/sf_express +-e ./sdk/extensions/tnt +-e ./sdk/extensions/ups +-e ./sdk/extensions/usps +-e ./sdk/extensions/usps_international +-e ./sdk/extensions/yanwen +-e ./sdk/extensions/yunexpress + +# Extenstions in Development -e ./sdk/extensions/ics_courier -e ./sdk/extensions/asendia_us -e ./sdk/extensions/ups_ground + diff --git a/requirements.server.dev.txt b/requirements.server.dev.txt index 6534b55da2..66463efe0f 100644 --- a/requirements.server.dev.txt +++ b/requirements.server.dev.txt @@ -1,9 +1,29 @@ +Django==3.2.9 + +# Carrier Schemas in Development +# -e ./schemas/dhl_poland + +# Carrier Extenstions in Development +# -e ./sdk/core +# -e ./sdk/extensions/canadapost +# -e ./sdk/extensions/canpar +# -e ./sdk/extensions/dhl_express +# -e ./sdk/extensions/dhl_poland +# -e ./sdk/extensions/fedex +# -e ./sdk/extensions/royalmail +# -e ./sdk/extensions/sendle +# -e ./sdk/extensions/ups +# -e ./sdk/extensions/usps +# -e ./sdk/extensions/usps_international + + purplship purplship.aramex purplship.australiapost purplship.canadapost purplship.canpar purplship.dhl-express +purplship.dhl-poland purplship.dhl-universal purplship.dicom purplship.fedex diff --git a/requirements.txt b/requirements.txt index 44add9d157..22f88e5885 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,35 +2,37 @@ aniso8601==7.0.0 asgiref==3.4.1 attrs==21.2.0 +backports.zoneinfo==0.2.1 carrier.aramex==2021.2 carrier.australiapost==2021.2.1 carrier.canadapost==2021.7 carrier.canpar==2021.2 carrier.dhl-express==2021.4 +carrier.dhl-poland==2021.11 carrier.dhl-universal==2021.2.1 carrier.dicom==2021.2.1 carrier.fedex==2021.4 carrier.purolator==2020.4.1 carrier.royalmail==2021.2.1 -carrier.sendle==2021.2.1 +carrier.sendle==2021.11 carrier.sf-express==2021.2 carrier.tnt==2021.3 -carrier.ups==2020.3.1 +carrier.ups==2020.11 carrier.usps==2021.6 carrier.yanwen==2021.2.1 carrier.yunexpress==2021.2.1 certifi==2021.10.8 -charset-normalizer==2.0.7 +charset-normalizer==2.0.9 click==8.0.3 coreapi==2.3.3 coreschema==0.0.4 Django==3.2.9 django-constance==2.8.0 -django-cors-headers==3.10.0 +django-cors-headers==3.10.1 django-email-verification==0.1.0 django-filter==21.1 django-picklefield==3.0.1 -django-redis==5.0.0 +django-redis==5.1.0 djangorestframework==3.12.4 djangorestframework-simplejwt==5.0.0 drf-api-tracking==1.8.0 @@ -41,53 +43,56 @@ graphql-core==2.3.2 graphql-relay==2.0.1 gunicorn==20.1.0 h11==0.12.0 -huey==2.4.1 +hiredis==2.0.0 +huey==2.4.2 idna==3.3 inflection==0.5.1 itypes==1.2.0 -Jinja2==3.0.2 +Jinja2==3.0.3 jsonfield==3.1.0 -jstruct==2021.7.1 +jstruct==2021.11 lxml==4.6.4 -lxml-stubs==0.1.1 +lxml-stubs==0.3.0 MarkupSafe==2.0.1 -more-itertools==8.10.0 -packaging==21.2 -phonenumbers==8.12.36 +more-itertools==8.12.0 +packaging==21.3 +phonenumbers==8.12.38 Pillow==8.4.0 promise==2.3 -psycopg2-binary==2.9.1 -purplship==2021.10 +psycopg2-binary==2.9.2 +purplship==2021.11.4 purplship.aramex==2021.10 purplship.australiapost==2021.10 -purplship.canadapost==2021.10.1 -purplship.canpar==2021.10 -purplship.dhl-express==2021.10 -purplship.dhl-universal==2021.10 +purplship.canadapost==2021.11.1 +purplship.canpar==2021.11 +purplship.dhl-express==2021.11.1 +purplship.dhl-poland==2021.11 +purplship.dhl-universal==2021.11 purplship.dicom==2021.10 purplship.eshipper==2021.10 -purplship.fedex==2021.10 +purplship.fedex==2021.11.4 purplship.freightcom==2021.10 purplship.purolator==2021.10 -purplship.royalmail==2021.10 -purplship.sendle==2021.10 -purplship.server==2021.10 -purplship.server.core==2021.10.2 -purplship.server.events==2021.10 -purplship.server.graph==2021.10 -purplship.server.manager==2021.10 -purplship.server.pricing==2021.10 -purplship.server.proxy==2021.10 +purplship.royalmail==2021.11 +purplship.sendle==2021.11 +purplship.server==2021.11 +purplship.server.core==2021.11.5 +purplship.server.events==2021.11.5 +purplship.server.graph==2021.11.5 +purplship.server.manager==2021.11.5 +purplship.server.pricing==2021.11.5 +purplship.server.proxy==2021.11.5 purplship.sf-express==2021.10 purplship.tnt==2021.10 -purplship.ups==2021.10 -purplship.usps==2021.10 -purplship.usps-international==2021.10 +purplship.ups==2021.11 +purplship.usps==2021.11.1 +purplship.usps-international==2021.11.1 purplship.yanwen==2021.10 purplship.yunexpress==2021.10 py-soap==2020.3.2 PyJWT==2.3.0 -pyparsing==2.4.7 +pyparsing==3.0.6 +PyPDF2==1.26.0 python-decouple==3.5 pytz==2021.3 redis==3.5.3 @@ -95,6 +100,7 @@ requests==2.26.0 ruamel.yaml==0.17.17 ruamel.yaml.clib==0.2.6 Rx==1.6.1 +simple-zpl2==0.3.0 singledispatch==3.7.0 six==1.16.0 sqlparse==0.4.2 diff --git a/schemas/andreani/poetry.lock b/schemas/andreani/poetry.lock deleted file mode 100644 index c0f20eefa8..0000000000 --- a/schemas/andreani/poetry.lock +++ /dev/null @@ -1,38 +0,0 @@ -[[package]] -name = "attrs" -version = "21.2.0" -description = "Classes Without Boilerplate" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" - -[package.extras] -dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit"] -docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"] -tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface"] -tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins"] - -[[package]] -name = "jstruct" -version = "2021.7" -description = "Readable serializable and deserializable Python nested models" -category = "main" -optional = false -python-versions = "*" - -[package.dependencies] -attrs = "*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.6" -content-hash = "d4bb079c1f203114105cccb0b7dfb0a164371ce2fd95810733400e543cc47dac" - -[metadata.files] -attrs = [ - {file = "attrs-21.2.0-py2.py3-none-any.whl", hash = "sha256:149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1"}, - {file = "attrs-21.2.0.tar.gz", hash = "sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"}, -] -jstruct = [ - {file = "jstruct-2021.7-py3-none-any.whl", hash = "sha256:e423aa7336c025581ff7b3dae3c886753d22a884d38f18f99a4836a6c97ff8a2"}, -] diff --git a/schemas/andreani/pyproject.toml b/schemas/andreani/pyproject.toml index 0de96ee771..63f588083a 100644 --- a/schemas/andreani/pyproject.toml +++ b/schemas/andreani/pyproject.toml @@ -5,7 +5,7 @@ description = "Andreani API Schemas Python Data Types library" repository="https://github.com/purplship/purplship" homepage="https://github.com/purplship/purplship/tree/main/carrier.andreani" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [{ include = "andreani_lib" }] classifiers = [ diff --git a/schemas/aramex/poetry.lock b/schemas/aramex/poetry.lock deleted file mode 100644 index a2399304f4..0000000000 --- a/schemas/aramex/poetry.lock +++ /dev/null @@ -1,71 +0,0 @@ -[[package]] -name = "lxml" -version = "4.6.2" -description = "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API." -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*" - -[package.extras] -cssselect = ["cssselect (>=0.7)"] -html5 = ["html5lib"] -htmlsoup = ["beautifulsoup4"] -source = ["Cython (>=0.29.7)"] - -[[package]] -name = "six" -version = "1.15.0" -description = "Python 2 and 3 compatibility utilities" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.6" -content-hash = "ac23fabec3fe14e5c01d89383de3fd7c7e0642c06d783be7b52b7c138c673571" - -[metadata.files] -lxml = [ - {file = "lxml-4.6.2-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:a9d6bc8642e2c67db33f1247a77c53476f3a166e09067c0474facb045756087f"}, - {file = "lxml-4.6.2-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:791394449e98243839fa822a637177dd42a95f4883ad3dec2a0ce6ac99fb0a9d"}, - {file = "lxml-4.6.2-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:68a5d77e440df94011214b7db907ec8f19e439507a70c958f750c18d88f995d2"}, - {file = "lxml-4.6.2-cp27-cp27m-win32.whl", hash = "sha256:fc37870d6716b137e80d19241d0e2cff7a7643b925dfa49b4c8ebd1295eb506e"}, - {file = "lxml-4.6.2-cp27-cp27m-win_amd64.whl", hash = "sha256:69a63f83e88138ab7642d8f61418cf3180a4d8cd13995df87725cb8b893e950e"}, - {file = "lxml-4.6.2-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:42ebca24ba2a21065fb546f3e6bd0c58c3fe9ac298f3a320147029a4850f51a2"}, - {file = "lxml-4.6.2-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:f83d281bb2a6217cd806f4cf0ddded436790e66f393e124dfe9731f6b3fb9afe"}, - {file = "lxml-4.6.2-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:535f067002b0fd1a4e5296a8f1bf88193080ff992a195e66964ef2a6cfec5388"}, - {file = "lxml-4.6.2-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:366cb750140f221523fa062d641393092813b81e15d0e25d9f7c6025f910ee80"}, - {file = "lxml-4.6.2-cp35-cp35m-manylinux2014_aarch64.whl", hash = "sha256:97db258793d193c7b62d4e2586c6ed98d51086e93f9a3af2b2034af01450a74b"}, - {file = "lxml-4.6.2-cp35-cp35m-win32.whl", hash = "sha256:648914abafe67f11be7d93c1a546068f8eff3c5fa938e1f94509e4a5d682b2d8"}, - {file = "lxml-4.6.2-cp35-cp35m-win_amd64.whl", hash = "sha256:4e751e77006da34643ab782e4a5cc21ea7b755551db202bc4d3a423b307db780"}, - {file = "lxml-4.6.2-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:681d75e1a38a69f1e64ab82fe4b1ed3fd758717bed735fb9aeaa124143f051af"}, - {file = "lxml-4.6.2-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:127f76864468d6630e1b453d3ffbbd04b024c674f55cf0a30dc2595137892d37"}, - {file = "lxml-4.6.2-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:4fb85c447e288df535b17ebdebf0ec1cf3a3f1a8eba7e79169f4f37af43c6b98"}, - {file = "lxml-4.6.2-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:5be4a2e212bb6aa045e37f7d48e3e1e4b6fd259882ed5a00786f82e8c37ce77d"}, - {file = "lxml-4.6.2-cp36-cp36m-win32.whl", hash = "sha256:8c88b599e226994ad4db29d93bc149aa1aff3dc3a4355dd5757569ba78632bdf"}, - {file = "lxml-4.6.2-cp36-cp36m-win_amd64.whl", hash = "sha256:6e4183800f16f3679076dfa8abf2db3083919d7e30764a069fb66b2b9eff9939"}, - {file = "lxml-4.6.2-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:d8d3d4713f0c28bdc6c806a278d998546e8efc3498949e3ace6e117462ac0a5e"}, - {file = "lxml-4.6.2-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:8246f30ca34dc712ab07e51dc34fea883c00b7ccb0e614651e49da2c49a30711"}, - {file = "lxml-4.6.2-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:923963e989ffbceaa210ac37afc9b906acebe945d2723e9679b643513837b089"}, - {file = "lxml-4.6.2-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:1471cee35eba321827d7d53d104e7b8c593ea3ad376aa2df89533ce8e1b24a01"}, - {file = "lxml-4.6.2-cp37-cp37m-win32.whl", hash = "sha256:2363c35637d2d9d6f26f60a208819e7eafc4305ce39dc1d5005eccc4593331c2"}, - {file = "lxml-4.6.2-cp37-cp37m-win_amd64.whl", hash = "sha256:f4822c0660c3754f1a41a655e37cb4dbbc9be3d35b125a37fab6f82d47674ebc"}, - {file = "lxml-4.6.2-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:0448576c148c129594d890265b1a83b9cd76fd1f0a6a04620753d9a6bcfd0a4d"}, - {file = "lxml-4.6.2-cp38-cp38-manylinux1_i686.whl", hash = "sha256:60a20bfc3bd234d54d49c388950195d23a5583d4108e1a1d47c9eef8d8c042b3"}, - {file = "lxml-4.6.2-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:2e5cc908fe43fe1aa299e58046ad66981131a66aea3129aac7770c37f590a644"}, - {file = "lxml-4.6.2-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:50c348995b47b5a4e330362cf39fc503b4a43b14a91c34c83b955e1805c8e308"}, - {file = "lxml-4.6.2-cp38-cp38-win32.whl", hash = "sha256:94d55bd03d8671686e3f012577d9caa5421a07286dd351dfef64791cf7c6c505"}, - {file = "lxml-4.6.2-cp38-cp38-win_amd64.whl", hash = "sha256:7a7669ff50f41225ca5d6ee0a1ec8413f3a0d8aa2b109f86d540887b7ec0d72a"}, - {file = "lxml-4.6.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:e0bfe9bb028974a481410432dbe1b182e8191d5d40382e5b8ff39cdd2e5c5931"}, - {file = "lxml-4.6.2-cp39-cp39-manylinux1_i686.whl", hash = "sha256:6fd8d5903c2e53f49e99359b063df27fdf7acb89a52b6a12494208bf61345a03"}, - {file = "lxml-4.6.2-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:7e9eac1e526386df7c70ef253b792a0a12dd86d833b1d329e038c7a235dfceb5"}, - {file = "lxml-4.6.2-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:7ee8af0b9f7de635c61cdd5b8534b76c52cd03536f29f51151b377f76e214a1a"}, - {file = "lxml-4.6.2-cp39-cp39-win32.whl", hash = "sha256:2e6fd1b8acd005bd71e6c94f30c055594bbd0aa02ef51a22bbfa961ab63b2d75"}, - {file = "lxml-4.6.2-cp39-cp39-win_amd64.whl", hash = "sha256:535332fe9d00c3cd455bd3dd7d4bacab86e2d564bdf7606079160fa6251caacf"}, - {file = "lxml-4.6.2.tar.gz", hash = "sha256:cd11c7e8d21af997ee8079037fff88f16fda188a9776eb4b81c7e4c9c0a7d7fc"}, -] -six = [ - {file = "six-1.15.0-py2.py3-none-any.whl", hash = "sha256:8b74bedcbbbaca38ff6d7491d76f2b06b3592611af620f8426e82dddb04a5ced"}, - {file = "six-1.15.0.tar.gz", hash = "sha256:30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259"}, -] diff --git a/schemas/aramex/pyproject.toml b/schemas/aramex/pyproject.toml index 3cee58633a..ae09bb2f9d 100644 --- a/schemas/aramex/pyproject.toml +++ b/schemas/aramex/pyproject.toml @@ -5,7 +5,7 @@ description = "Purolator Web API Schemas Python Data Types library" repository="https://github.com/purplship/purplship" homepage="https://github.com/purplship/purplship/tree/main/carrier.aramex" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [ { include = "aramex_lib" } diff --git a/schemas/asendia_us/poetry.lock b/schemas/asendia_us/poetry.lock deleted file mode 100644 index d488261a22..0000000000 --- a/schemas/asendia_us/poetry.lock +++ /dev/null @@ -1,38 +0,0 @@ -[[package]] -name = "attrs" -version = "21.2.0" -description = "Classes Without Boilerplate" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" - -[package.extras] -dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit"] -docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"] -tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface"] -tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins"] - -[[package]] -name = "jstruct" -version = "2021.7.1" -description = "Readable serializable and deserializable Python nested models" -category = "main" -optional = false -python-versions = "*" - -[package.dependencies] -attrs = "*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.6" -content-hash = "d4bb079c1f203114105cccb0b7dfb0a164371ce2fd95810733400e543cc47dac" - -[metadata.files] -attrs = [ - {file = "attrs-21.2.0-py2.py3-none-any.whl", hash = "sha256:149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1"}, - {file = "attrs-21.2.0.tar.gz", hash = "sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"}, -] -jstruct = [ - {file = "jstruct-2021.7.1-py3-none-any.whl", hash = "sha256:3711294897334e51bc5a706231896018d474a8e458f879cc493eac9cdc6365c3"}, -] diff --git a/schemas/asendia_us/pyproject.toml b/schemas/asendia_us/pyproject.toml index ea496850df..cec9aa2d7e 100644 --- a/schemas/asendia_us/pyproject.toml +++ b/schemas/asendia_us/pyproject.toml @@ -5,7 +5,7 @@ description = "Asendia US API Schemas Python Data Types library" repository="https://github.com/purplship/purplship" homepage="https://github.com/purplship/purplship/tree/main/carrier.asendia_us" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [ { include = "asendia_us_lib" } diff --git a/schemas/australiapost/poetry.lock b/schemas/australiapost/poetry.lock deleted file mode 100644 index c0f20eefa8..0000000000 --- a/schemas/australiapost/poetry.lock +++ /dev/null @@ -1,38 +0,0 @@ -[[package]] -name = "attrs" -version = "21.2.0" -description = "Classes Without Boilerplate" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" - -[package.extras] -dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit"] -docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"] -tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface"] -tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins"] - -[[package]] -name = "jstruct" -version = "2021.7" -description = "Readable serializable and deserializable Python nested models" -category = "main" -optional = false -python-versions = "*" - -[package.dependencies] -attrs = "*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.6" -content-hash = "d4bb079c1f203114105cccb0b7dfb0a164371ce2fd95810733400e543cc47dac" - -[metadata.files] -attrs = [ - {file = "attrs-21.2.0-py2.py3-none-any.whl", hash = "sha256:149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1"}, - {file = "attrs-21.2.0.tar.gz", hash = "sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"}, -] -jstruct = [ - {file = "jstruct-2021.7-py3-none-any.whl", hash = "sha256:e423aa7336c025581ff7b3dae3c886753d22a884d38f18f99a4836a6c97ff8a2"}, -] diff --git a/schemas/australiapost/pyproject.toml b/schemas/australiapost/pyproject.toml index d3dd14ba9c..c8608ed2c6 100644 --- a/schemas/australiapost/pyproject.toml +++ b/schemas/australiapost/pyproject.toml @@ -5,7 +5,7 @@ description = "Australia Post API Schemas Python Data Types library" repository="https://github.com/purplship/purplship" homepage="https://github.com/purplship/purplship/tree/main/carrier.australiapost" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [ { include = "australiapost_lib" } diff --git a/schemas/boxknight/poetry.lock b/schemas/boxknight/poetry.lock deleted file mode 100644 index c0f20eefa8..0000000000 --- a/schemas/boxknight/poetry.lock +++ /dev/null @@ -1,38 +0,0 @@ -[[package]] -name = "attrs" -version = "21.2.0" -description = "Classes Without Boilerplate" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" - -[package.extras] -dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit"] -docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"] -tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface"] -tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins"] - -[[package]] -name = "jstruct" -version = "2021.7" -description = "Readable serializable and deserializable Python nested models" -category = "main" -optional = false -python-versions = "*" - -[package.dependencies] -attrs = "*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.6" -content-hash = "d4bb079c1f203114105cccb0b7dfb0a164371ce2fd95810733400e543cc47dac" - -[metadata.files] -attrs = [ - {file = "attrs-21.2.0-py2.py3-none-any.whl", hash = "sha256:149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1"}, - {file = "attrs-21.2.0.tar.gz", hash = "sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"}, -] -jstruct = [ - {file = "jstruct-2021.7-py3-none-any.whl", hash = "sha256:e423aa7336c025581ff7b3dae3c886753d22a884d38f18f99a4836a6c97ff8a2"}, -] diff --git a/schemas/boxknight/pyproject.toml b/schemas/boxknight/pyproject.toml index 29a58ced84..128a914caa 100644 --- a/schemas/boxknight/pyproject.toml +++ b/schemas/boxknight/pyproject.toml @@ -5,7 +5,7 @@ description = "Boxknight API Schemas Python Data Types library" repository="https://github.com/purplship/purplship" homepage="https://github.com/purplship/purplship/tree/main/carrier.boxknight" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [ { include = "boxknight_lib" } diff --git a/schemas/canadapost/poetry.lock b/schemas/canadapost/poetry.lock deleted file mode 100644 index a2399304f4..0000000000 --- a/schemas/canadapost/poetry.lock +++ /dev/null @@ -1,71 +0,0 @@ -[[package]] -name = "lxml" -version = "4.6.2" -description = "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API." -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*" - -[package.extras] -cssselect = ["cssselect (>=0.7)"] -html5 = ["html5lib"] -htmlsoup = ["beautifulsoup4"] -source = ["Cython (>=0.29.7)"] - -[[package]] -name = "six" -version = "1.15.0" -description = "Python 2 and 3 compatibility utilities" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.6" -content-hash = "ac23fabec3fe14e5c01d89383de3fd7c7e0642c06d783be7b52b7c138c673571" - -[metadata.files] -lxml = [ - {file = "lxml-4.6.2-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:a9d6bc8642e2c67db33f1247a77c53476f3a166e09067c0474facb045756087f"}, - {file = "lxml-4.6.2-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:791394449e98243839fa822a637177dd42a95f4883ad3dec2a0ce6ac99fb0a9d"}, - {file = "lxml-4.6.2-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:68a5d77e440df94011214b7db907ec8f19e439507a70c958f750c18d88f995d2"}, - {file = "lxml-4.6.2-cp27-cp27m-win32.whl", hash = "sha256:fc37870d6716b137e80d19241d0e2cff7a7643b925dfa49b4c8ebd1295eb506e"}, - {file = "lxml-4.6.2-cp27-cp27m-win_amd64.whl", hash = "sha256:69a63f83e88138ab7642d8f61418cf3180a4d8cd13995df87725cb8b893e950e"}, - {file = "lxml-4.6.2-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:42ebca24ba2a21065fb546f3e6bd0c58c3fe9ac298f3a320147029a4850f51a2"}, - {file = "lxml-4.6.2-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:f83d281bb2a6217cd806f4cf0ddded436790e66f393e124dfe9731f6b3fb9afe"}, - {file = "lxml-4.6.2-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:535f067002b0fd1a4e5296a8f1bf88193080ff992a195e66964ef2a6cfec5388"}, - {file = "lxml-4.6.2-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:366cb750140f221523fa062d641393092813b81e15d0e25d9f7c6025f910ee80"}, - {file = "lxml-4.6.2-cp35-cp35m-manylinux2014_aarch64.whl", hash = "sha256:97db258793d193c7b62d4e2586c6ed98d51086e93f9a3af2b2034af01450a74b"}, - {file = "lxml-4.6.2-cp35-cp35m-win32.whl", hash = "sha256:648914abafe67f11be7d93c1a546068f8eff3c5fa938e1f94509e4a5d682b2d8"}, - {file = "lxml-4.6.2-cp35-cp35m-win_amd64.whl", hash = "sha256:4e751e77006da34643ab782e4a5cc21ea7b755551db202bc4d3a423b307db780"}, - {file = "lxml-4.6.2-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:681d75e1a38a69f1e64ab82fe4b1ed3fd758717bed735fb9aeaa124143f051af"}, - {file = "lxml-4.6.2-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:127f76864468d6630e1b453d3ffbbd04b024c674f55cf0a30dc2595137892d37"}, - {file = "lxml-4.6.2-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:4fb85c447e288df535b17ebdebf0ec1cf3a3f1a8eba7e79169f4f37af43c6b98"}, - {file = "lxml-4.6.2-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:5be4a2e212bb6aa045e37f7d48e3e1e4b6fd259882ed5a00786f82e8c37ce77d"}, - {file = "lxml-4.6.2-cp36-cp36m-win32.whl", hash = "sha256:8c88b599e226994ad4db29d93bc149aa1aff3dc3a4355dd5757569ba78632bdf"}, - {file = "lxml-4.6.2-cp36-cp36m-win_amd64.whl", hash = "sha256:6e4183800f16f3679076dfa8abf2db3083919d7e30764a069fb66b2b9eff9939"}, - {file = "lxml-4.6.2-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:d8d3d4713f0c28bdc6c806a278d998546e8efc3498949e3ace6e117462ac0a5e"}, - {file = "lxml-4.6.2-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:8246f30ca34dc712ab07e51dc34fea883c00b7ccb0e614651e49da2c49a30711"}, - {file = "lxml-4.6.2-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:923963e989ffbceaa210ac37afc9b906acebe945d2723e9679b643513837b089"}, - {file = "lxml-4.6.2-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:1471cee35eba321827d7d53d104e7b8c593ea3ad376aa2df89533ce8e1b24a01"}, - {file = "lxml-4.6.2-cp37-cp37m-win32.whl", hash = "sha256:2363c35637d2d9d6f26f60a208819e7eafc4305ce39dc1d5005eccc4593331c2"}, - {file = "lxml-4.6.2-cp37-cp37m-win_amd64.whl", hash = "sha256:f4822c0660c3754f1a41a655e37cb4dbbc9be3d35b125a37fab6f82d47674ebc"}, - {file = "lxml-4.6.2-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:0448576c148c129594d890265b1a83b9cd76fd1f0a6a04620753d9a6bcfd0a4d"}, - {file = "lxml-4.6.2-cp38-cp38-manylinux1_i686.whl", hash = "sha256:60a20bfc3bd234d54d49c388950195d23a5583d4108e1a1d47c9eef8d8c042b3"}, - {file = "lxml-4.6.2-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:2e5cc908fe43fe1aa299e58046ad66981131a66aea3129aac7770c37f590a644"}, - {file = "lxml-4.6.2-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:50c348995b47b5a4e330362cf39fc503b4a43b14a91c34c83b955e1805c8e308"}, - {file = "lxml-4.6.2-cp38-cp38-win32.whl", hash = "sha256:94d55bd03d8671686e3f012577d9caa5421a07286dd351dfef64791cf7c6c505"}, - {file = "lxml-4.6.2-cp38-cp38-win_amd64.whl", hash = "sha256:7a7669ff50f41225ca5d6ee0a1ec8413f3a0d8aa2b109f86d540887b7ec0d72a"}, - {file = "lxml-4.6.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:e0bfe9bb028974a481410432dbe1b182e8191d5d40382e5b8ff39cdd2e5c5931"}, - {file = "lxml-4.6.2-cp39-cp39-manylinux1_i686.whl", hash = "sha256:6fd8d5903c2e53f49e99359b063df27fdf7acb89a52b6a12494208bf61345a03"}, - {file = "lxml-4.6.2-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:7e9eac1e526386df7c70ef253b792a0a12dd86d833b1d329e038c7a235dfceb5"}, - {file = "lxml-4.6.2-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:7ee8af0b9f7de635c61cdd5b8534b76c52cd03536f29f51151b377f76e214a1a"}, - {file = "lxml-4.6.2-cp39-cp39-win32.whl", hash = "sha256:2e6fd1b8acd005bd71e6c94f30c055594bbd0aa02ef51a22bbfa961ab63b2d75"}, - {file = "lxml-4.6.2-cp39-cp39-win_amd64.whl", hash = "sha256:535332fe9d00c3cd455bd3dd7d4bacab86e2d564bdf7606079160fa6251caacf"}, - {file = "lxml-4.6.2.tar.gz", hash = "sha256:cd11c7e8d21af997ee8079037fff88f16fda188a9776eb4b81c7e4c9c0a7d7fc"}, -] -six = [ - {file = "six-1.15.0-py2.py3-none-any.whl", hash = "sha256:8b74bedcbbbaca38ff6d7491d76f2b06b3592611af620f8426e82dddb04a5ced"}, - {file = "six-1.15.0.tar.gz", hash = "sha256:30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259"}, -] diff --git a/schemas/canadapost/pyproject.toml b/schemas/canadapost/pyproject.toml index fa50b51227..391b60bd0f 100644 --- a/schemas/canadapost/pyproject.toml +++ b/schemas/canadapost/pyproject.toml @@ -5,7 +5,7 @@ description = "Canada Post API Schemas Python Data Types library" repository="https://github.com/purplship/purplship-carriers" homepage="https://github.com/purplship/purplship-carriers/tree/master/canadapost" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [ { include = "canadapost_lib" } diff --git a/schemas/canpar/poetry.lock b/schemas/canpar/poetry.lock deleted file mode 100644 index a2399304f4..0000000000 --- a/schemas/canpar/poetry.lock +++ /dev/null @@ -1,71 +0,0 @@ -[[package]] -name = "lxml" -version = "4.6.2" -description = "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API." -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*" - -[package.extras] -cssselect = ["cssselect (>=0.7)"] -html5 = ["html5lib"] -htmlsoup = ["beautifulsoup4"] -source = ["Cython (>=0.29.7)"] - -[[package]] -name = "six" -version = "1.15.0" -description = "Python 2 and 3 compatibility utilities" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.6" -content-hash = "ac23fabec3fe14e5c01d89383de3fd7c7e0642c06d783be7b52b7c138c673571" - -[metadata.files] -lxml = [ - {file = "lxml-4.6.2-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:a9d6bc8642e2c67db33f1247a77c53476f3a166e09067c0474facb045756087f"}, - {file = "lxml-4.6.2-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:791394449e98243839fa822a637177dd42a95f4883ad3dec2a0ce6ac99fb0a9d"}, - {file = "lxml-4.6.2-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:68a5d77e440df94011214b7db907ec8f19e439507a70c958f750c18d88f995d2"}, - {file = "lxml-4.6.2-cp27-cp27m-win32.whl", hash = "sha256:fc37870d6716b137e80d19241d0e2cff7a7643b925dfa49b4c8ebd1295eb506e"}, - {file = "lxml-4.6.2-cp27-cp27m-win_amd64.whl", hash = "sha256:69a63f83e88138ab7642d8f61418cf3180a4d8cd13995df87725cb8b893e950e"}, - {file = "lxml-4.6.2-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:42ebca24ba2a21065fb546f3e6bd0c58c3fe9ac298f3a320147029a4850f51a2"}, - {file = "lxml-4.6.2-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:f83d281bb2a6217cd806f4cf0ddded436790e66f393e124dfe9731f6b3fb9afe"}, - {file = "lxml-4.6.2-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:535f067002b0fd1a4e5296a8f1bf88193080ff992a195e66964ef2a6cfec5388"}, - {file = "lxml-4.6.2-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:366cb750140f221523fa062d641393092813b81e15d0e25d9f7c6025f910ee80"}, - {file = "lxml-4.6.2-cp35-cp35m-manylinux2014_aarch64.whl", hash = "sha256:97db258793d193c7b62d4e2586c6ed98d51086e93f9a3af2b2034af01450a74b"}, - {file = "lxml-4.6.2-cp35-cp35m-win32.whl", hash = "sha256:648914abafe67f11be7d93c1a546068f8eff3c5fa938e1f94509e4a5d682b2d8"}, - {file = "lxml-4.6.2-cp35-cp35m-win_amd64.whl", hash = "sha256:4e751e77006da34643ab782e4a5cc21ea7b755551db202bc4d3a423b307db780"}, - {file = "lxml-4.6.2-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:681d75e1a38a69f1e64ab82fe4b1ed3fd758717bed735fb9aeaa124143f051af"}, - {file = "lxml-4.6.2-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:127f76864468d6630e1b453d3ffbbd04b024c674f55cf0a30dc2595137892d37"}, - {file = "lxml-4.6.2-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:4fb85c447e288df535b17ebdebf0ec1cf3a3f1a8eba7e79169f4f37af43c6b98"}, - {file = "lxml-4.6.2-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:5be4a2e212bb6aa045e37f7d48e3e1e4b6fd259882ed5a00786f82e8c37ce77d"}, - {file = "lxml-4.6.2-cp36-cp36m-win32.whl", hash = "sha256:8c88b599e226994ad4db29d93bc149aa1aff3dc3a4355dd5757569ba78632bdf"}, - {file = "lxml-4.6.2-cp36-cp36m-win_amd64.whl", hash = "sha256:6e4183800f16f3679076dfa8abf2db3083919d7e30764a069fb66b2b9eff9939"}, - {file = "lxml-4.6.2-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:d8d3d4713f0c28bdc6c806a278d998546e8efc3498949e3ace6e117462ac0a5e"}, - {file = "lxml-4.6.2-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:8246f30ca34dc712ab07e51dc34fea883c00b7ccb0e614651e49da2c49a30711"}, - {file = "lxml-4.6.2-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:923963e989ffbceaa210ac37afc9b906acebe945d2723e9679b643513837b089"}, - {file = "lxml-4.6.2-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:1471cee35eba321827d7d53d104e7b8c593ea3ad376aa2df89533ce8e1b24a01"}, - {file = "lxml-4.6.2-cp37-cp37m-win32.whl", hash = "sha256:2363c35637d2d9d6f26f60a208819e7eafc4305ce39dc1d5005eccc4593331c2"}, - {file = "lxml-4.6.2-cp37-cp37m-win_amd64.whl", hash = "sha256:f4822c0660c3754f1a41a655e37cb4dbbc9be3d35b125a37fab6f82d47674ebc"}, - {file = "lxml-4.6.2-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:0448576c148c129594d890265b1a83b9cd76fd1f0a6a04620753d9a6bcfd0a4d"}, - {file = "lxml-4.6.2-cp38-cp38-manylinux1_i686.whl", hash = "sha256:60a20bfc3bd234d54d49c388950195d23a5583d4108e1a1d47c9eef8d8c042b3"}, - {file = "lxml-4.6.2-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:2e5cc908fe43fe1aa299e58046ad66981131a66aea3129aac7770c37f590a644"}, - {file = "lxml-4.6.2-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:50c348995b47b5a4e330362cf39fc503b4a43b14a91c34c83b955e1805c8e308"}, - {file = "lxml-4.6.2-cp38-cp38-win32.whl", hash = "sha256:94d55bd03d8671686e3f012577d9caa5421a07286dd351dfef64791cf7c6c505"}, - {file = "lxml-4.6.2-cp38-cp38-win_amd64.whl", hash = "sha256:7a7669ff50f41225ca5d6ee0a1ec8413f3a0d8aa2b109f86d540887b7ec0d72a"}, - {file = "lxml-4.6.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:e0bfe9bb028974a481410432dbe1b182e8191d5d40382e5b8ff39cdd2e5c5931"}, - {file = "lxml-4.6.2-cp39-cp39-manylinux1_i686.whl", hash = "sha256:6fd8d5903c2e53f49e99359b063df27fdf7acb89a52b6a12494208bf61345a03"}, - {file = "lxml-4.6.2-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:7e9eac1e526386df7c70ef253b792a0a12dd86d833b1d329e038c7a235dfceb5"}, - {file = "lxml-4.6.2-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:7ee8af0b9f7de635c61cdd5b8534b76c52cd03536f29f51151b377f76e214a1a"}, - {file = "lxml-4.6.2-cp39-cp39-win32.whl", hash = "sha256:2e6fd1b8acd005bd71e6c94f30c055594bbd0aa02ef51a22bbfa961ab63b2d75"}, - {file = "lxml-4.6.2-cp39-cp39-win_amd64.whl", hash = "sha256:535332fe9d00c3cd455bd3dd7d4bacab86e2d564bdf7606079160fa6251caacf"}, - {file = "lxml-4.6.2.tar.gz", hash = "sha256:cd11c7e8d21af997ee8079037fff88f16fda188a9776eb4b81c7e4c9c0a7d7fc"}, -] -six = [ - {file = "six-1.15.0-py2.py3-none-any.whl", hash = "sha256:8b74bedcbbbaca38ff6d7491d76f2b06b3592611af620f8426e82dddb04a5ced"}, - {file = "six-1.15.0.tar.gz", hash = "sha256:30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259"}, -] diff --git a/schemas/canpar/pyproject.toml b/schemas/canpar/pyproject.toml index 671462e0e1..702232a611 100644 --- a/schemas/canpar/pyproject.toml +++ b/schemas/canpar/pyproject.toml @@ -5,7 +5,7 @@ description = "Canpar Web API Schemas Python Data Types library" repository="https://github.com/purplship/purplship" homepage="https://github.com/purplship/purplship/tree/main/carrier.canpar" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [ { include = "canpar_lib" } diff --git a/schemas/dhl_ecom_am/poetry.lock b/schemas/dhl_ecom_am/poetry.lock deleted file mode 100644 index d488261a22..0000000000 --- a/schemas/dhl_ecom_am/poetry.lock +++ /dev/null @@ -1,38 +0,0 @@ -[[package]] -name = "attrs" -version = "21.2.0" -description = "Classes Without Boilerplate" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" - -[package.extras] -dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit"] -docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"] -tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface"] -tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins"] - -[[package]] -name = "jstruct" -version = "2021.7.1" -description = "Readable serializable and deserializable Python nested models" -category = "main" -optional = false -python-versions = "*" - -[package.dependencies] -attrs = "*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.6" -content-hash = "d4bb079c1f203114105cccb0b7dfb0a164371ce2fd95810733400e543cc47dac" - -[metadata.files] -attrs = [ - {file = "attrs-21.2.0-py2.py3-none-any.whl", hash = "sha256:149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1"}, - {file = "attrs-21.2.0.tar.gz", hash = "sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"}, -] -jstruct = [ - {file = "jstruct-2021.7.1-py3-none-any.whl", hash = "sha256:3711294897334e51bc5a706231896018d474a8e458f879cc493eac9cdc6365c3"}, -] diff --git a/schemas/dhl_ecom_am/pyproject.toml b/schemas/dhl_ecom_am/pyproject.toml index 6fdee60dce..2c2e46b1d7 100644 --- a/schemas/dhl_ecom_am/pyproject.toml +++ b/schemas/dhl_ecom_am/pyproject.toml @@ -5,7 +5,7 @@ description = "DHL eCommerce Americas API Schemas Python Data Types library" repository="https://github.com/purplship/purplship-carriers" homepage="https://github.com/purplship/purplship-carriers/tree/master/carrier.dhl_ecom_am" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [{ include = "dhl_ecom_am_lib" }] classifiers = [ diff --git a/schemas/dhl_ecom_de/poetry.lock b/schemas/dhl_ecom_de/poetry.lock deleted file mode 100644 index 0c249cba13..0000000000 --- a/schemas/dhl_ecom_de/poetry.lock +++ /dev/null @@ -1,80 +0,0 @@ -[[package]] -name = "lxml" -version = "4.6.3" -description = "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API." -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*" - -[package.extras] -cssselect = ["cssselect (>=0.7)"] -html5 = ["html5lib"] -htmlsoup = ["beautifulsoup4"] -source = ["Cython (>=0.29.7)"] - -[[package]] -name = "six" -version = "1.16.0" -description = "Python 2 and 3 compatibility utilities" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.6" -content-hash = "a263a9cf580cc387fc0c49ffea9b17e41228db7cf15473814d565771e720c69b" - -[metadata.files] -lxml = [ - {file = "lxml-4.6.3-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:df7c53783a46febb0e70f6b05df2ba104610f2fb0d27023409734a3ecbb78fb2"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:1b7584d421d254ab86d4f0b13ec662a9014397678a7c4265a02a6d7c2b18a75f"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:079f3ae844f38982d156efce585bc540c16a926d4436712cf4baee0cce487a3d"}, - {file = "lxml-4.6.3-cp27-cp27m-win32.whl", hash = "sha256:bc4313cbeb0e7a416a488d72f9680fffffc645f8a838bd2193809881c67dd106"}, - {file = "lxml-4.6.3-cp27-cp27m-win_amd64.whl", hash = "sha256:8157dadbb09a34a6bd95a50690595e1fa0af1a99445e2744110e3dca7831c4ee"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:7728e05c35412ba36d3e9795ae8995e3c86958179c9770e65558ec3fdfd3724f"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:4bff24dfeea62f2e56f5bab929b4428ae6caba2d1eea0c2d6eb618e30a71e6d4"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:74f7d8d439b18fa4c385f3f5dfd11144bb87c1da034a466c5b5577d23a1d9b51"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:f90ba11136bfdd25cae3951af8da2e95121c9b9b93727b1b896e3fa105b2f586"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux2010_i686.whl", hash = "sha256:4c61b3a0db43a1607d6264166b230438f85bfed02e8cff20c22e564d0faff354"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux2014_x86_64.whl", hash = "sha256:5c8c163396cc0df3fd151b927e74f6e4acd67160d6c33304e805b84293351d16"}, - {file = "lxml-4.6.3-cp35-cp35m-win32.whl", hash = "sha256:f2380a6376dfa090227b663f9678150ef27543483055cc327555fb592c5967e2"}, - {file = "lxml-4.6.3-cp35-cp35m-win_amd64.whl", hash = "sha256:c4f05c5a7c49d2fb70223d0d5bcfbe474cf928310ac9fa6a7c6dddc831d0b1d4"}, - {file = "lxml-4.6.3-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:d2e35d7bf1c1ac8c538f88d26b396e73dd81440d59c1ef8522e1ea77b345ede4"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:289e9ca1a9287f08daaf796d96e06cb2bc2958891d7911ac7cae1c5f9e1e0ee3"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:bccbfc27563652de7dc9bdc595cb25e90b59c5f8e23e806ed0fd623755b6565d"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux2010_i686.whl", hash = "sha256:d916d31fd85b2f78c76400d625076d9124de3e4bda8b016d25a050cc7d603f24"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:820628b7b3135403540202e60551e741f9b6d3304371712521be939470b454ec"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux2014_x86_64.whl", hash = "sha256:c47ff7e0a36d4efac9fd692cfa33fbd0636674c102e9e8d9b26e1b93a94e7617"}, - {file = "lxml-4.6.3-cp36-cp36m-win32.whl", hash = "sha256:5a0a14e264069c03e46f926be0d8919f4105c1623d620e7ec0e612a2e9bf1c04"}, - {file = "lxml-4.6.3-cp36-cp36m-win_amd64.whl", hash = "sha256:92e821e43ad382332eade6812e298dc9701c75fe289f2a2d39c7960b43d1e92a"}, - {file = "lxml-4.6.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:efd7a09678fd8b53117f6bae4fa3825e0a22b03ef0a932e070c0bdbb3a35e654"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:efac139c3f0bf4f0939f9375af4b02c5ad83a622de52d6dfa8e438e8e01d0eb0"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:0fbcf5565ac01dff87cbfc0ff323515c823081c5777a9fc7703ff58388c258c3"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux2010_i686.whl", hash = "sha256:36108c73739985979bf302006527cf8a20515ce444ba916281d1c43938b8bb96"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:122fba10466c7bd4178b07dba427aa516286b846b2cbd6f6169141917283aae2"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux2014_x86_64.whl", hash = "sha256:cdaf11d2bd275bf391b5308f86731e5194a21af45fbaaaf1d9e8147b9160ea92"}, - {file = "lxml-4.6.3-cp37-cp37m-win32.whl", hash = "sha256:3439c71103ef0e904ea0a1901611863e51f50b5cd5e8654a151740fde5e1cade"}, - {file = "lxml-4.6.3-cp37-cp37m-win_amd64.whl", hash = "sha256:4289728b5e2000a4ad4ab8da6e1db2e093c63c08bdc0414799ee776a3f78da4b"}, - {file = "lxml-4.6.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:b007cbb845b28db4fb8b6a5cdcbf65bacb16a8bd328b53cbc0698688a68e1caa"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_i686.whl", hash = "sha256:76fa7b1362d19f8fbd3e75fe2fb7c79359b0af8747e6f7141c338f0bee2f871a"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:26e761ab5b07adf5f555ee82fb4bfc35bf93750499c6c7614bd64d12aaa67927"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux2010_i686.whl", hash = "sha256:e1cbd3f19a61e27e011e02f9600837b921ac661f0c40560eefb366e4e4fb275e"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:66e575c62792c3f9ca47cb8b6fab9e35bab91360c783d1606f758761810c9791"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux2014_x86_64.whl", hash = "sha256:1b38116b6e628118dea5b2186ee6820ab138dbb1e24a13e478490c7db2f326ae"}, - {file = "lxml-4.6.3-cp38-cp38-win32.whl", hash = "sha256:89b8b22a5ff72d89d48d0e62abb14340d9e99fd637d046c27b8b257a01ffbe28"}, - {file = "lxml-4.6.3-cp38-cp38-win_amd64.whl", hash = "sha256:2a9d50e69aac3ebee695424f7dbd7b8c6d6eb7de2a2eb6b0f6c7db6aa41e02b7"}, - {file = "lxml-4.6.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:ce256aaa50f6cc9a649c51be3cd4ff142d67295bfc4f490c9134d0f9f6d58ef0"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_i686.whl", hash = "sha256:7610b8c31688f0b1be0ef882889817939490a36d0ee880ea562a4e1399c447a1"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:f8380c03e45cf09f8557bdaa41e1fa7c81f3ae22828e1db470ab2a6c96d8bc23"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux2010_i686.whl", hash = "sha256:3082c518be8e97324390614dacd041bb1358c882d77108ca1957ba47738d9d59"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:884ab9b29feaca361f7f88d811b1eea9bfca36cf3da27768d28ad45c3ee6f969"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux2014_x86_64.whl", hash = "sha256:6f12e1427285008fd32a6025e38e977d44d6382cf28e7201ed10d6c1698d2a9a"}, - {file = "lxml-4.6.3-cp39-cp39-win32.whl", hash = "sha256:33bb934a044cf32157c12bfcfbb6649807da20aa92c062ef51903415c704704f"}, - {file = "lxml-4.6.3-cp39-cp39-win_amd64.whl", hash = "sha256:542d454665a3e277f76954418124d67516c5f88e51a900365ed54a9806122b83"}, - {file = "lxml-4.6.3.tar.gz", hash = "sha256:39b78571b3b30645ac77b95f7c69d1bffc4cf8c3b157c435a34da72e78c82468"}, -] -six = [ - {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"}, - {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"}, -] diff --git a/schemas/dhl_ecom_de/pyproject.toml b/schemas/dhl_ecom_de/pyproject.toml index 6db4663660..e45ebeea87 100644 --- a/schemas/dhl_ecom_de/pyproject.toml +++ b/schemas/dhl_ecom_de/pyproject.toml @@ -5,7 +5,7 @@ description = "DHL eCommerce Germany Web API Schemas Python Data Types library" repository="https://github.com/purplship/purplship-carriers" homepage="https://github.com/purplship/purplship-carriers/tree/master/carrier.dhl_ecom_de" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [ { include = "dhl_ecom_de_lib" } diff --git a/schemas/dhl_express/poetry.lock b/schemas/dhl_express/poetry.lock deleted file mode 100644 index d488261a22..0000000000 --- a/schemas/dhl_express/poetry.lock +++ /dev/null @@ -1,38 +0,0 @@ -[[package]] -name = "attrs" -version = "21.2.0" -description = "Classes Without Boilerplate" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" - -[package.extras] -dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit"] -docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"] -tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface"] -tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins"] - -[[package]] -name = "jstruct" -version = "2021.7.1" -description = "Readable serializable and deserializable Python nested models" -category = "main" -optional = false -python-versions = "*" - -[package.dependencies] -attrs = "*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.6" -content-hash = "d4bb079c1f203114105cccb0b7dfb0a164371ce2fd95810733400e543cc47dac" - -[metadata.files] -attrs = [ - {file = "attrs-21.2.0-py2.py3-none-any.whl", hash = "sha256:149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1"}, - {file = "attrs-21.2.0.tar.gz", hash = "sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"}, -] -jstruct = [ - {file = "jstruct-2021.7.1-py3-none-any.whl", hash = "sha256:3711294897334e51bc5a706231896018d474a8e458f879cc493eac9cdc6365c3"}, -] diff --git a/schemas/dhl_express/pyproject.toml b/schemas/dhl_express/pyproject.toml index 5fcc850ced..998908b178 100644 --- a/schemas/dhl_express/pyproject.toml +++ b/schemas/dhl_express/pyproject.toml @@ -5,7 +5,7 @@ description = "DHL Express Web API Schemas Python Data Types library" repository="https://github.com/purplship/purplship" homepage="https://github.com/purplship/purplship/tree/main/carrier.dhl_express" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [ { include = "dhl_express_lib" } diff --git a/schemas/dhl_poland/README.md b/schemas/dhl_poland/README.md new file mode 100644 index 0000000000..fe5f9783f7 --- /dev/null +++ b/schemas/dhl_poland/README.md @@ -0,0 +1,19 @@ +# carrier.dhl_poland + +DHL Parcel Poland Web API schemas Python Data Types generated with [generateDS](http://www.davekuhlman.org/generateDS.html) + +## Installation + +```bash +pip install carrier.dhl_poland +``` + +## Usage + +```python +import dhl_poland_lib + +help(dhl_poland_lib) +``` + +*This package is used by the [purplship multi-carrier shipping interface](https://github.com/purplship/purplship)* diff --git a/schemas/dhl_poland/dhl_poland_lib/__init__.py b/schemas/dhl_poland/dhl_poland_lib/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/schemas/dhl_poland/dhl_poland_lib/services.py b/schemas/dhl_poland/dhl_poland_lib/services.py new file mode 100644 index 0000000000..e8149238ce --- /dev/null +++ b/schemas/dhl_poland/dhl_poland_lib/services.py @@ -0,0 +1,43970 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +# +# Generated Fri Nov 19 06:59:45 2021 by generateDS.py version 2.40.5. +# Python 3.8.6 (v3.8.6:db455296be, Sep 23 2020, 13:31:39) [Clang 6.0 (clang-600.0.57)] +# +# Command line options: +# ('--no-namespace-defs', '') +# ('-o', './dhl_poland_lib/services.py') +# +# Command line arguments: +# ./schemas/webapi2.xsd +# +# Command line: +# /Users/danielkobina/Workspace/project/purplship/.venv/purplship/bin/generateDS --no-namespace-defs -o "./dhl_poland_lib/services.py" ./schemas/webapi2.xsd +# +# Current working directory (os.getcwd()): +# dhl_poland +# + +import sys + +try: + ModulenotfoundExp_ = ModuleNotFoundError +except NameError: + ModulenotfoundExp_ = ImportError +from six.moves import zip_longest +import os +import re as re_ +import base64 +import datetime as datetime_ +import decimal as decimal_ +from lxml import etree as etree_ + + +Validate_simpletypes_ = True +SaveElementTreeNode = True +if sys.version_info.major == 2: + BaseStrType_ = basestring +else: + BaseStrType_ = str + + +def parsexml_(infile, parser=None, **kwargs): + if parser is None: + # Use the lxml ElementTree compatible parser so that, e.g., + # we ignore comments. + try: + parser = etree_.ETCompatXMLParser() + except AttributeError: + # fallback to xml.etree + parser = etree_.XMLParser() + try: + if isinstance(infile, os.PathLike): + infile = os.path.join(infile) + except AttributeError: + pass + doc = etree_.parse(infile, parser=parser, **kwargs) + return doc + + +def parsexmlstring_(instring, parser=None, **kwargs): + if parser is None: + # Use the lxml ElementTree compatible parser so that, e.g., + # we ignore comments. + try: + parser = etree_.ETCompatXMLParser() + except AttributeError: + # fallback to xml.etree + parser = etree_.XMLParser() + element = etree_.fromstring(instring, parser=parser, **kwargs) + return element + + +# +# Namespace prefix definition table (and other attributes, too) +# +# The module generatedsnamespaces, if it is importable, must contain +# a dictionary named GeneratedsNamespaceDefs. This Python dictionary +# should map element type names (strings) to XML schema namespace prefix +# definitions. The export method for any class for which there is +# a namespace prefix definition, will export that definition in the +# XML representation of that element. See the export method of +# any generated element type class for an example of the use of this +# table. +# A sample table is: +# +# # File: generatedsnamespaces.py +# +# GenerateDSNamespaceDefs = { +# "ElementtypeA": "http://www.xxx.com/namespaceA", +# "ElementtypeB": "http://www.xxx.com/namespaceB", +# } +# +# Additionally, the generatedsnamespaces module can contain a python +# dictionary named GenerateDSNamespaceTypePrefixes that associates element +# types with the namespace prefixes that are to be added to the +# "xsi:type" attribute value. See the _exportAttributes method of +# any generated element type and the generation of "xsi:type" for an +# example of the use of this table. +# An example table: +# +# # File: generatedsnamespaces.py +# +# GenerateDSNamespaceTypePrefixes = { +# "ElementtypeC": "aaa:", +# "ElementtypeD": "bbb:", +# } +# + +try: + from generatedsnamespaces import GenerateDSNamespaceDefs as GenerateDSNamespaceDefs_ +except ModulenotfoundExp_: + GenerateDSNamespaceDefs_ = {} +try: + from generatedsnamespaces import ( + GenerateDSNamespaceTypePrefixes as GenerateDSNamespaceTypePrefixes_, + ) +except ModulenotfoundExp_: + GenerateDSNamespaceTypePrefixes_ = {} + +# +# You can replace the following class definition by defining an +# importable module named "generatedscollector" containing a class +# named "GdsCollector". See the default class definition below for +# clues about the possible content of that class. +# +try: + from generatedscollector import GdsCollector as GdsCollector_ +except ModulenotfoundExp_: + + class GdsCollector_(object): + def __init__(self, messages=None): + if messages is None: + self.messages = [] + else: + self.messages = messages + + def add_message(self, msg): + self.messages.append(msg) + + def get_messages(self): + return self.messages + + def clear_messages(self): + self.messages = [] + + def print_messages(self): + for msg in self.messages: + print("Warning: {}".format(msg)) + + def write_messages(self, outstream): + for msg in self.messages: + outstream.write("Warning: {}\n".format(msg)) + + +# +# The super-class for enum types +# + +try: + from enum import Enum +except ModulenotfoundExp_: + Enum = object + +# +# The root super-class for element type classes +# +# Calls to the methods in these classes are generated by generateDS.py. +# You can replace these methods by re-implementing the following class +# in a module named generatedssuper.py. + +try: + from generatedssuper import GeneratedsSuper +except ModulenotfoundExp_ as exp: + try: + from generatedssupersuper import GeneratedsSuperSuper + except ModulenotfoundExp_ as exp: + + class GeneratedsSuperSuper(object): + pass + + class GeneratedsSuper(GeneratedsSuperSuper): + __hash__ = object.__hash__ + tzoff_pattern = re_.compile(r"(\+|-)((0\d|1[0-3]):[0-5]\d|14:00)$") + + class _FixedOffsetTZ(datetime_.tzinfo): + def __init__(self, offset, name): + self.__offset = datetime_.timedelta(minutes=offset) + self.__name = name + + def utcoffset(self, dt): + return self.__offset + + def tzname(self, dt): + return self.__name + + def dst(self, dt): + return None + + def __str__(self): + settings = { + "str_pretty_print": True, + "str_indent_level": 0, + "str_namespaceprefix": "", + "str_name": None, + "str_namespacedefs": "", + } + for n in settings: + if hasattr(self, n): + setattr(settings[n], self[n]) + from io import StringIO + + output = StringIO() + self.export( + output, + settings["str_indent_level"], + pretty_print=settings["str_pretty_print"], + namespaceprefix_=settings["str_namespaceprefix"], + name_=settings["str_name"], + namespacedef_=settings["str_namespacedefs"], + ) + strval = output.getvalue() + output.close() + return strval + + def gds_format_string(self, input_data, input_name=""): + return input_data + + def gds_parse_string(self, input_data, node=None, input_name=""): + return input_data + + def gds_validate_string(self, input_data, node=None, input_name=""): + if not input_data: + return "" + else: + return input_data + + def gds_format_base64(self, input_data, input_name=""): + return base64.b64encode(input_data).decode("ascii") + + def gds_validate_base64(self, input_data, node=None, input_name=""): + return input_data + + def gds_format_integer(self, input_data, input_name=""): + return "%d" % int(input_data) + + def gds_parse_integer(self, input_data, node=None, input_name=""): + try: + ival = int(input_data) + except (TypeError, ValueError) as exp: + raise_parse_error(node, "Requires integer value: %s" % exp) + return ival + + def gds_validate_integer(self, input_data, node=None, input_name=""): + try: + value = int(input_data) + except (TypeError, ValueError): + raise_parse_error(node, "Requires integer value") + return value + + def gds_format_integer_list(self, input_data, input_name=""): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] + return "%s" % " ".join(input_data) + + def gds_validate_integer_list(self, input_data, node=None, input_name=""): + values = input_data.split() + for value in values: + try: + int(value) + except (TypeError, ValueError): + raise_parse_error(node, "Requires sequence of integer values") + return values + + def gds_format_float(self, input_data, input_name=""): + return ("%.15f" % float(input_data)).rstrip("0") + + def gds_parse_float(self, input_data, node=None, input_name=""): + try: + fval_ = float(input_data) + except (TypeError, ValueError) as exp: + raise_parse_error(node, "Requires float or double value: %s" % exp) + return fval_ + + def gds_validate_float(self, input_data, node=None, input_name=""): + try: + value = float(input_data) + except (TypeError, ValueError): + raise_parse_error(node, "Requires float value") + return value + + def gds_format_float_list(self, input_data, input_name=""): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] + return "%s" % " ".join(input_data) + + def gds_validate_float_list(self, input_data, node=None, input_name=""): + values = input_data.split() + for value in values: + try: + float(value) + except (TypeError, ValueError): + raise_parse_error(node, "Requires sequence of float values") + return values + + def gds_format_decimal(self, input_data, input_name=""): + return_value = "%s" % input_data + if "." in return_value: + return_value = return_value.rstrip("0") + if return_value.endswith("."): + return_value = return_value.rstrip(".") + return return_value + + def gds_parse_decimal(self, input_data, node=None, input_name=""): + try: + decimal_value = decimal_.Decimal(input_data) + except (TypeError, ValueError): + raise_parse_error(node, "Requires decimal value") + return decimal_value + + def gds_validate_decimal(self, input_data, node=None, input_name=""): + try: + value = decimal_.Decimal(input_data) + except (TypeError, ValueError): + raise_parse_error(node, "Requires decimal value") + return value + + def gds_format_decimal_list(self, input_data, input_name=""): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] + return " ".join([self.gds_format_decimal(item) for item in input_data]) + + def gds_validate_decimal_list(self, input_data, node=None, input_name=""): + values = input_data.split() + for value in values: + try: + decimal_.Decimal(value) + except (TypeError, ValueError): + raise_parse_error(node, "Requires sequence of decimal values") + return values + + def gds_format_double(self, input_data, input_name=""): + return "%s" % input_data + + def gds_parse_double(self, input_data, node=None, input_name=""): + try: + fval_ = float(input_data) + except (TypeError, ValueError) as exp: + raise_parse_error(node, "Requires double or float value: %s" % exp) + return fval_ + + def gds_validate_double(self, input_data, node=None, input_name=""): + try: + value = float(input_data) + except (TypeError, ValueError): + raise_parse_error(node, "Requires double or float value") + return value + + def gds_format_double_list(self, input_data, input_name=""): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] + return "%s" % " ".join(input_data) + + def gds_validate_double_list(self, input_data, node=None, input_name=""): + values = input_data.split() + for value in values: + try: + float(value) + except (TypeError, ValueError): + raise_parse_error( + node, "Requires sequence of double or float values" + ) + return values + + def gds_format_boolean(self, input_data, input_name=""): + return ("%s" % input_data).lower() + + def gds_parse_boolean(self, input_data, node=None, input_name=""): + if input_data in ("true", "1"): + bval = True + elif input_data in ("false", "0"): + bval = False + else: + raise_parse_error(node, "Requires boolean value") + return bval + + def gds_validate_boolean(self, input_data, node=None, input_name=""): + if input_data not in ( + True, + 1, + False, + 0, + ): + raise_parse_error( + node, "Requires boolean value " "(one of True, 1, False, 0)" + ) + return input_data + + def gds_format_boolean_list(self, input_data, input_name=""): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] + return "%s" % " ".join(input_data) + + def gds_validate_boolean_list(self, input_data, node=None, input_name=""): + values = input_data.split() + for value in values: + value = self.gds_parse_boolean(value, node, input_name) + if value not in ( + True, + 1, + False, + 0, + ): + raise_parse_error( + node, + "Requires sequence of boolean values " + "(one of True, 1, False, 0)", + ) + return values + + def gds_validate_datetime(self, input_data, node=None, input_name=""): + return input_data + + def gds_format_datetime(self, input_data, input_name=""): + if input_data.microsecond == 0: + _svalue = "%04d-%02d-%02dT%02d:%02d:%02d" % ( + input_data.year, + input_data.month, + input_data.day, + input_data.hour, + input_data.minute, + input_data.second, + ) + else: + _svalue = "%04d-%02d-%02dT%02d:%02d:%02d.%s" % ( + input_data.year, + input_data.month, + input_data.day, + input_data.hour, + input_data.minute, + input_data.second, + ("%f" % (float(input_data.microsecond) / 1000000))[2:], + ) + if input_data.tzinfo is not None: + tzoff = input_data.tzinfo.utcoffset(input_data) + if tzoff is not None: + total_seconds = tzoff.seconds + (86400 * tzoff.days) + if total_seconds == 0: + _svalue += "Z" + else: + if total_seconds < 0: + _svalue += "-" + total_seconds *= -1 + else: + _svalue += "+" + hours = total_seconds // 3600 + minutes = (total_seconds - (hours * 3600)) // 60 + _svalue += "{0:02d}:{1:02d}".format(hours, minutes) + return _svalue + + @classmethod + def gds_parse_datetime(cls, input_data): + tz = None + if input_data[-1] == "Z": + tz = GeneratedsSuper._FixedOffsetTZ(0, "UTC") + input_data = input_data[:-1] + else: + results = GeneratedsSuper.tzoff_pattern.search(input_data) + if results is not None: + tzoff_parts = results.group(2).split(":") + tzoff = int(tzoff_parts[0]) * 60 + int(tzoff_parts[1]) + if results.group(1) == "-": + tzoff *= -1 + tz = GeneratedsSuper._FixedOffsetTZ(tzoff, results.group(0)) + input_data = input_data[:-6] + time_parts = input_data.split(".") + if len(time_parts) > 1: + micro_seconds = int(float("0." + time_parts[1]) * 1000000) + input_data = "%s.%s" % ( + time_parts[0], + "{}".format(micro_seconds).rjust(6, "0"), + ) + dt = datetime_.datetime.strptime(input_data, "%Y-%m-%dT%H:%M:%S.%f") + else: + dt = datetime_.datetime.strptime(input_data, "%Y-%m-%dT%H:%M:%S") + dt = dt.replace(tzinfo=tz) + return dt + + def gds_validate_date(self, input_data, node=None, input_name=""): + return input_data + + def gds_format_date(self, input_data, input_name=""): + _svalue = "%04d-%02d-%02d" % ( + input_data.year, + input_data.month, + input_data.day, + ) + try: + if input_data.tzinfo is not None: + tzoff = input_data.tzinfo.utcoffset(input_data) + if tzoff is not None: + total_seconds = tzoff.seconds + (86400 * tzoff.days) + if total_seconds == 0: + _svalue += "Z" + else: + if total_seconds < 0: + _svalue += "-" + total_seconds *= -1 + else: + _svalue += "+" + hours = total_seconds // 3600 + minutes = (total_seconds - (hours * 3600)) // 60 + _svalue += "{0:02d}:{1:02d}".format(hours, minutes) + except AttributeError: + pass + return _svalue + + @classmethod + def gds_parse_date(cls, input_data): + tz = None + if input_data[-1] == "Z": + tz = GeneratedsSuper._FixedOffsetTZ(0, "UTC") + input_data = input_data[:-1] + else: + results = GeneratedsSuper.tzoff_pattern.search(input_data) + if results is not None: + tzoff_parts = results.group(2).split(":") + tzoff = int(tzoff_parts[0]) * 60 + int(tzoff_parts[1]) + if results.group(1) == "-": + tzoff *= -1 + tz = GeneratedsSuper._FixedOffsetTZ(tzoff, results.group(0)) + input_data = input_data[:-6] + dt = datetime_.datetime.strptime(input_data, "%Y-%m-%d") + dt = dt.replace(tzinfo=tz) + return dt.date() + + def gds_validate_time(self, input_data, node=None, input_name=""): + return input_data + + def gds_format_time(self, input_data, input_name=""): + if input_data.microsecond == 0: + _svalue = "%02d:%02d:%02d" % ( + input_data.hour, + input_data.minute, + input_data.second, + ) + else: + _svalue = "%02d:%02d:%02d.%s" % ( + input_data.hour, + input_data.minute, + input_data.second, + ("%f" % (float(input_data.microsecond) / 1000000))[2:], + ) + if input_data.tzinfo is not None: + tzoff = input_data.tzinfo.utcoffset(input_data) + if tzoff is not None: + total_seconds = tzoff.seconds + (86400 * tzoff.days) + if total_seconds == 0: + _svalue += "Z" + else: + if total_seconds < 0: + _svalue += "-" + total_seconds *= -1 + else: + _svalue += "+" + hours = total_seconds // 3600 + minutes = (total_seconds - (hours * 3600)) // 60 + _svalue += "{0:02d}:{1:02d}".format(hours, minutes) + return _svalue + + def gds_validate_simple_patterns(self, patterns, target): + # pat is a list of lists of strings/patterns. + # The target value must match at least one of the patterns + # in order for the test to succeed. + found1 = True + for patterns1 in patterns: + found2 = False + for patterns2 in patterns1: + mo = re_.search(patterns2, target) + if mo is not None and len(mo.group(0)) == len(target): + found2 = True + break + if not found2: + found1 = False + break + return found1 + + @classmethod + def gds_parse_time(cls, input_data): + tz = None + if input_data[-1] == "Z": + tz = GeneratedsSuper._FixedOffsetTZ(0, "UTC") + input_data = input_data[:-1] + else: + results = GeneratedsSuper.tzoff_pattern.search(input_data) + if results is not None: + tzoff_parts = results.group(2).split(":") + tzoff = int(tzoff_parts[0]) * 60 + int(tzoff_parts[1]) + if results.group(1) == "-": + tzoff *= -1 + tz = GeneratedsSuper._FixedOffsetTZ(tzoff, results.group(0)) + input_data = input_data[:-6] + if len(input_data.split(".")) > 1: + dt = datetime_.datetime.strptime(input_data, "%H:%M:%S.%f") + else: + dt = datetime_.datetime.strptime(input_data, "%H:%M:%S") + dt = dt.replace(tzinfo=tz) + return dt.time() + + def gds_check_cardinality_( + self, value, input_name, min_occurs=0, max_occurs=1, required=None + ): + if value is None: + length = 0 + elif isinstance(value, list): + length = len(value) + else: + length = 1 + if required is not None: + if required and length < 1: + self.gds_collector_.add_message( + "Required value {}{} is missing".format( + input_name, self.gds_get_node_lineno_() + ) + ) + if length < min_occurs: + self.gds_collector_.add_message( + "Number of values for {}{} is below " + "the minimum allowed, " + "expected at least {}, found {}".format( + input_name, self.gds_get_node_lineno_(), min_occurs, length + ) + ) + elif length > max_occurs: + self.gds_collector_.add_message( + "Number of values for {}{} is above " + "the maximum allowed, " + "expected at most {}, found {}".format( + input_name, self.gds_get_node_lineno_(), max_occurs, length + ) + ) + + def gds_validate_builtin_ST_( + self, + validator, + value, + input_name, + min_occurs=None, + max_occurs=None, + required=None, + ): + if value is not None: + try: + validator(value, input_name=input_name) + except GDSParseError as parse_error: + self.gds_collector_.add_message(str(parse_error)) + + def gds_validate_defined_ST_( + self, + validator, + value, + input_name, + min_occurs=None, + max_occurs=None, + required=None, + ): + if value is not None: + try: + validator(value) + except GDSParseError as parse_error: + self.gds_collector_.add_message(str(parse_error)) + + def gds_str_lower(self, instring): + return instring.lower() + + def get_path_(self, node): + path_list = [] + self.get_path_list_(node, path_list) + path_list.reverse() + path = "/".join(path_list) + return path + + Tag_strip_pattern_ = re_.compile(r"\{.*\}") + + def get_path_list_(self, node, path_list): + if node is None: + return + tag = GeneratedsSuper.Tag_strip_pattern_.sub("", node.tag) + if tag: + path_list.append(tag) + self.get_path_list_(node.getparent(), path_list) + + def get_class_obj_(self, node, default_class=None): + class_obj1 = default_class + if "xsi" in node.nsmap: + classname = node.get("{%s}type" % node.nsmap["xsi"]) + if classname is not None: + names = classname.split(":") + if len(names) == 2: + classname = names[1] + class_obj2 = globals().get(classname) + if class_obj2 is not None: + class_obj1 = class_obj2 + return class_obj1 + + def gds_build_any(self, node, type_name=None): + # provide default value in case option --disable-xml is used. + content = "" + content = etree_.tostring(node, encoding="unicode") + return content + + @classmethod + def gds_reverse_node_mapping(cls, mapping): + return dict(((v, k) for k, v in mapping.items())) + + @staticmethod + def gds_encode(instring): + if sys.version_info.major == 2: + if ExternalEncoding: + encoding = ExternalEncoding + else: + encoding = "utf-8" + return instring.encode(encoding) + else: + return instring + + @staticmethod + def convert_unicode(instring): + if isinstance(instring, str): + result = quote_xml(instring) + elif sys.version_info.major == 2 and isinstance(instring, unicode): + result = quote_xml(instring).encode("utf8") + else: + result = GeneratedsSuper.gds_encode(str(instring)) + return result + + def __eq__(self, other): + def excl_select_objs_(obj): + return obj[0] != "parent_object_" and obj[0] != "gds_collector_" + + if type(self) != type(other): + return False + return all( + x == y + for x, y in zip_longest( + filter(excl_select_objs_, self.__dict__.items()), + filter(excl_select_objs_, other.__dict__.items()), + ) + ) + + def __ne__(self, other): + return not self.__eq__(other) + + # Django ETL transform hooks. + def gds_djo_etl_transform(self): + pass + + def gds_djo_etl_transform_db_obj(self, dbobj): + pass + + # SQLAlchemy ETL transform hooks. + def gds_sqa_etl_transform(self): + return 0, None + + def gds_sqa_etl_transform_db_obj(self, dbobj): + pass + + def gds_get_node_lineno_(self): + if ( + hasattr(self, "gds_elementtree_node_") + and self.gds_elementtree_node_ is not None + ): + return " near line {}".format(self.gds_elementtree_node_.sourceline) + else: + return "" + + def getSubclassFromModule_(module, class_): + """Get the subclass of a class from a specific module.""" + name = class_.__name__ + "Sub" + if hasattr(module, name): + return getattr(module, name) + else: + return None + + +# +# If you have installed IPython you can uncomment and use the following. +# IPython is available from http://ipython.scipy.org/. +# + +## from IPython.Shell import IPShellEmbed +## args = '' +## ipshell = IPShellEmbed(args, +## banner = 'Dropping into IPython', +## exit_msg = 'Leaving Interpreter, back to program.') + +# Then use the following line where and when you want to drop into the +# IPython shell: +# ipshell(' -- Entering ipshell.\nHit Ctrl-D to exit') + +# +# Globals +# + +ExternalEncoding = "" +# Set this to false in order to deactivate during export, the use of +# name space prefixes captured from the input document. +UseCapturedNS_ = True +CapturedNsmap_ = {} +Tag_pattern_ = re_.compile(r"({.*})?(.*)") +String_cleanup_pat_ = re_.compile(r"[\n\r\s]+") +Namespace_extract_pat_ = re_.compile(r"{(.*)}(.*)") +CDATA_pattern_ = re_.compile(r"", re_.DOTALL) + +# Change this to redirect the generated superclass module to use a +# specific subclass module. +CurrentSubclassModule_ = None + +# +# Support/utility functions. +# + + +def showIndent(outfile, level, pretty_print=True): + if pretty_print: + for idx in range(level): + outfile.write(" ") + + +def quote_xml(inStr): + "Escape markup chars, but do not modify CDATA sections." + if not inStr: + return "" + s1 = isinstance(inStr, BaseStrType_) and inStr or "%s" % inStr + s2 = "" + pos = 0 + matchobjects = CDATA_pattern_.finditer(s1) + for mo in matchobjects: + s3 = s1[pos : mo.start()] + s2 += quote_xml_aux(s3) + s2 += s1[mo.start() : mo.end()] + pos = mo.end() + s3 = s1[pos:] + s2 += quote_xml_aux(s3) + return s2 + + +def quote_xml_aux(inStr): + s1 = inStr.replace("&", "&") + s1 = s1.replace("<", "<") + s1 = s1.replace(">", ">") + return s1 + + +def quote_attrib(inStr): + s1 = isinstance(inStr, BaseStrType_) and inStr or "%s" % inStr + s1 = s1.replace("&", "&") + s1 = s1.replace("<", "<") + s1 = s1.replace(">", ">") + if '"' in s1: + if "'" in s1: + s1 = '"%s"' % s1.replace('"', """) + else: + s1 = "'%s'" % s1 + else: + s1 = '"%s"' % s1 + return s1 + + +def quote_python(inStr): + s1 = inStr + if s1.find("'") == -1: + if s1.find("\n") == -1: + return "'%s'" % s1 + else: + return "'''%s'''" % s1 + else: + if s1.find('"') != -1: + s1 = s1.replace('"', '\\"') + if s1.find("\n") == -1: + return '"%s"' % s1 + else: + return '"""%s"""' % s1 + + +def get_all_text_(node): + if node.text is not None: + text = node.text + else: + text = "" + for child in node: + if child.tail is not None: + text += child.tail + return text + + +def find_attr_value_(attr_name, node): + attrs = node.attrib + attr_parts = attr_name.split(":") + value = None + if len(attr_parts) == 1: + value = attrs.get(attr_name) + elif len(attr_parts) == 2: + prefix, name = attr_parts + if prefix == "xml": + namespace = "http://www.w3.org/XML/1998/namespace" + else: + namespace = node.nsmap.get(prefix) + if namespace is not None: + value = attrs.get( + "{%s}%s" + % ( + namespace, + name, + ) + ) + return value + + +def encode_str_2_3(instr): + return instr + + +class GDSParseError(Exception): + pass + + +def raise_parse_error(node, msg): + if node is not None: + msg = "%s (element %s/line %d)" % ( + msg, + node.tag, + node.sourceline, + ) + raise GDSParseError(msg) + + +class MixedContainer: + # Constants for category: + CategoryNone = 0 + CategoryText = 1 + CategorySimple = 2 + CategoryComplex = 3 + # Constants for content_type: + TypeNone = 0 + TypeText = 1 + TypeString = 2 + TypeInteger = 3 + TypeFloat = 4 + TypeDecimal = 5 + TypeDouble = 6 + TypeBoolean = 7 + TypeBase64 = 8 + + def __init__(self, category, content_type, name, value): + self.category = category + self.content_type = content_type + self.name = name + self.value = value + + def getCategory(self): + return self.category + + def getContenttype(self, content_type): + return self.content_type + + def getValue(self): + return self.value + + def getName(self): + return self.name + + def export(self, outfile, level, name, namespace, pretty_print=True): + if self.category == MixedContainer.CategoryText: + # Prevent exporting empty content as empty lines. + if self.value.strip(): + outfile.write(self.value) + elif self.category == MixedContainer.CategorySimple: + self.exportSimple(outfile, level, name) + else: # category == MixedContainer.CategoryComplex + self.value.export( + outfile, level, namespace, name_=name, pretty_print=pretty_print + ) + + def exportSimple(self, outfile, level, name): + if self.content_type == MixedContainer.TypeString: + outfile.write("<%s>%s" % (self.name, self.value, self.name)) + elif ( + self.content_type == MixedContainer.TypeInteger + or self.content_type == MixedContainer.TypeBoolean + ): + outfile.write("<%s>%d" % (self.name, self.value, self.name)) + elif ( + self.content_type == MixedContainer.TypeFloat + or self.content_type == MixedContainer.TypeDecimal + ): + outfile.write("<%s>%f" % (self.name, self.value, self.name)) + elif self.content_type == MixedContainer.TypeDouble: + outfile.write("<%s>%g" % (self.name, self.value, self.name)) + elif self.content_type == MixedContainer.TypeBase64: + outfile.write( + "<%s>%s" % (self.name, base64.b64encode(self.value), self.name) + ) + + def to_etree(self, element, mapping_=None, reverse_mapping_=None, nsmap_=None): + if self.category == MixedContainer.CategoryText: + # Prevent exporting empty content as empty lines. + if self.value.strip(): + if len(element) > 0: + if element[-1].tail is None: + element[-1].tail = self.value + else: + element[-1].tail += self.value + else: + if element.text is None: + element.text = self.value + else: + element.text += self.value + elif self.category == MixedContainer.CategorySimple: + subelement = etree_.SubElement(element, "%s" % self.name) + subelement.text = self.to_etree_simple() + else: # category == MixedContainer.CategoryComplex + self.value.to_etree(element) + + def to_etree_simple(self, mapping_=None, reverse_mapping_=None, nsmap_=None): + if self.content_type == MixedContainer.TypeString: + text = self.value + elif ( + self.content_type == MixedContainer.TypeInteger + or self.content_type == MixedContainer.TypeBoolean + ): + text = "%d" % self.value + elif ( + self.content_type == MixedContainer.TypeFloat + or self.content_type == MixedContainer.TypeDecimal + ): + text = "%f" % self.value + elif self.content_type == MixedContainer.TypeDouble: + text = "%g" % self.value + elif self.content_type == MixedContainer.TypeBase64: + text = "%s" % base64.b64encode(self.value) + return text + + def exportLiteral(self, outfile, level, name): + if self.category == MixedContainer.CategoryText: + showIndent(outfile, level) + outfile.write( + 'model_.MixedContainer(%d, %d, "%s", "%s"),\n' + % (self.category, self.content_type, self.name, self.value) + ) + elif self.category == MixedContainer.CategorySimple: + showIndent(outfile, level) + outfile.write( + 'model_.MixedContainer(%d, %d, "%s", "%s"),\n' + % (self.category, self.content_type, self.name, self.value) + ) + else: # category == MixedContainer.CategoryComplex + showIndent(outfile, level) + outfile.write( + 'model_.MixedContainer(%d, %d, "%s",\n' + % ( + self.category, + self.content_type, + self.name, + ) + ) + self.value.exportLiteral(outfile, level + 1) + showIndent(outfile, level) + outfile.write(")\n") + + +class MemberSpec_(object): + def __init__( + self, + name="", + data_type="", + container=0, + optional=0, + child_attrs=None, + choice=None, + ): + self.name = name + self.data_type = data_type + self.container = container + self.child_attrs = child_attrs + self.choice = choice + self.optional = optional + + def set_name(self, name): + self.name = name + + def get_name(self): + return self.name + + def set_data_type(self, data_type): + self.data_type = data_type + + def get_data_type_chain(self): + return self.data_type + + def get_data_type(self): + if isinstance(self.data_type, list): + if len(self.data_type) > 0: + return self.data_type[-1] + else: + return "xs:string" + else: + return self.data_type + + def set_container(self, container): + self.container = container + + def get_container(self): + return self.container + + def set_child_attrs(self, child_attrs): + self.child_attrs = child_attrs + + def get_child_attrs(self): + return self.child_attrs + + def set_choice(self, choice): + self.choice = choice + + def get_choice(self): + return self.choice + + def set_optional(self, optional): + self.optional = optional + + def get_optional(self): + return self.optional + + +def _cast(typ, value): + if typ is None or value is None: + return value + return typ(value) + + +# +# Data representation classes. +# + + +class getVersion(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, getVersion) + if subclass is not None: + return subclass(*args_, **kwargs_) + if getVersion.subclass: + return getVersion.subclass(*args_, **kwargs_) + else: + return getVersion(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def _hasContent(self): + if (): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getVersion", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("getVersion") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "getVersion": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="getVersion" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="getVersion", + pretty_print=pretty_print, + ) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, outfile, level, already_processed, namespaceprefix_="", name_="getVersion" + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getVersion", + fromsubclass_=False, + pretty_print=True, + ): + pass + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + pass + + +# end class getVersion + + +class getVersionResponse(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, getVersionResult=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.getVersionResult = getVersionResult + self.getVersionResult_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, getVersionResponse + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if getVersionResponse.subclass: + return getVersionResponse.subclass(*args_, **kwargs_) + else: + return getVersionResponse(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_getVersionResult(self): + return self.getVersionResult + + def set_getVersionResult(self, getVersionResult): + self.getVersionResult = getVersionResult + + def _hasContent(self): + if self.getVersionResult is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getVersionResponse", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("getVersionResponse") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "getVersionResponse": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="getVersionResponse", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="getVersionResponse", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="getVersionResponse", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getVersionResponse", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.getVersionResult is not None: + namespaceprefix_ = ( + self.getVersionResult_nsprefix_ + ":" + if (UseCapturedNS_ and self.getVersionResult_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sgetVersionResult>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.getVersionResult), + input_name="getVersionResult", + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "getVersionResult": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "getVersionResult") + value_ = self.gds_validate_string(value_, node, "getVersionResult") + self.getVersionResult = value_ + self.getVersionResult_nsprefix_ = child_.prefix + + +# end class getVersionResponse + + +class AuthData(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, username=None, password=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.username = username + self.username_nsprefix_ = None + self.password = password + self.password_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, AuthData) + if subclass is not None: + return subclass(*args_, **kwargs_) + if AuthData.subclass: + return AuthData.subclass(*args_, **kwargs_) + else: + return AuthData(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_username(self): + return self.username + + def set_username(self, username): + self.username = username + + def get_password(self): + return self.password + + def set_password(self, password): + self.password = password + + def _hasContent(self): + if self.username is not None or self.password is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="AuthData", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("AuthData") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "AuthData": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="AuthData" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="AuthData", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, outfile, level, already_processed, namespaceprefix_="", name_="AuthData" + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="AuthData", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.username is not None: + namespaceprefix_ = ( + self.username_nsprefix_ + ":" + if (UseCapturedNS_ and self.username_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%susername>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.username), input_name="username" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.password is not None: + namespaceprefix_ = ( + self.password_nsprefix_ + ":" + if (UseCapturedNS_ and self.password_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spassword>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.password), input_name="password" + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "username": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "username") + value_ = self.gds_validate_string(value_, node, "username") + self.username = value_ + self.username_nsprefix_ = child_.prefix + elif nodeName_ == "password": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "password") + value_ = self.gds_validate_string(value_, node, "password") + self.password = value_ + self.password_nsprefix_ = child_.prefix + + +# end class AuthData + + +class AddressData(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + name=None, + postalCode=None, + city=None, + street=None, + houseNumber=None, + apartmentNumber=None, + contactPerson=None, + contactPhone=None, + contactEmail=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.name = name + self.name_nsprefix_ = None + self.postalCode = postalCode + self.postalCode_nsprefix_ = None + self.city = city + self.city_nsprefix_ = None + self.street = street + self.street_nsprefix_ = None + self.houseNumber = houseNumber + self.houseNumber_nsprefix_ = None + self.apartmentNumber = apartmentNumber + self.apartmentNumber_nsprefix_ = None + self.contactPerson = contactPerson + self.contactPerson_nsprefix_ = None + self.contactPhone = contactPhone + self.contactPhone_nsprefix_ = None + self.contactEmail = contactEmail + self.contactEmail_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, AddressData) + if subclass is not None: + return subclass(*args_, **kwargs_) + if AddressData.subclass: + return AddressData.subclass(*args_, **kwargs_) + else: + return AddressData(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_name(self): + return self.name + + def set_name(self, name): + self.name = name + + def get_postalCode(self): + return self.postalCode + + def set_postalCode(self, postalCode): + self.postalCode = postalCode + + def get_city(self): + return self.city + + def set_city(self, city): + self.city = city + + def get_street(self): + return self.street + + def set_street(self, street): + self.street = street + + def get_houseNumber(self): + return self.houseNumber + + def set_houseNumber(self, houseNumber): + self.houseNumber = houseNumber + + def get_apartmentNumber(self): + return self.apartmentNumber + + def set_apartmentNumber(self, apartmentNumber): + self.apartmentNumber = apartmentNumber + + def get_contactPerson(self): + return self.contactPerson + + def set_contactPerson(self, contactPerson): + self.contactPerson = contactPerson + + def get_contactPhone(self): + return self.contactPhone + + def set_contactPhone(self, contactPhone): + self.contactPhone = contactPhone + + def get_contactEmail(self): + return self.contactEmail + + def set_contactEmail(self, contactEmail): + self.contactEmail = contactEmail + + def _hasContent(self): + if ( + self.name is not None + or self.postalCode is not None + or self.city is not None + or self.street is not None + or self.houseNumber is not None + or self.apartmentNumber is not None + or self.contactPerson is not None + or self.contactPhone is not None + or self.contactEmail is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="AddressData", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("AddressData") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "AddressData": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="AddressData" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="AddressData", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="AddressData", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="AddressData", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.name is not None: + namespaceprefix_ = ( + self.name_nsprefix_ + ":" + if (UseCapturedNS_ and self.name_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sname>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string(quote_xml(self.name), input_name="name") + ), + namespaceprefix_, + eol_, + ) + ) + if self.postalCode is not None: + namespaceprefix_ = ( + self.postalCode_nsprefix_ + ":" + if (UseCapturedNS_ and self.postalCode_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spostalCode>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.postalCode), input_name="postalCode" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.city is not None: + namespaceprefix_ = ( + self.city_nsprefix_ + ":" + if (UseCapturedNS_ and self.city_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scity>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string(quote_xml(self.city), input_name="city") + ), + namespaceprefix_, + eol_, + ) + ) + if self.street is not None: + namespaceprefix_ = ( + self.street_nsprefix_ + ":" + if (UseCapturedNS_ and self.street_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sstreet>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.street), input_name="street" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.houseNumber is not None: + namespaceprefix_ = ( + self.houseNumber_nsprefix_ + ":" + if (UseCapturedNS_ and self.houseNumber_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%shouseNumber>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.houseNumber), input_name="houseNumber" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.apartmentNumber is not None: + namespaceprefix_ = ( + self.apartmentNumber_nsprefix_ + ":" + if (UseCapturedNS_ and self.apartmentNumber_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sapartmentNumber>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.apartmentNumber), + input_name="apartmentNumber", + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.contactPerson is not None: + namespaceprefix_ = ( + self.contactPerson_nsprefix_ + ":" + if (UseCapturedNS_ and self.contactPerson_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scontactPerson>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.contactPerson), input_name="contactPerson" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.contactPhone is not None: + namespaceprefix_ = ( + self.contactPhone_nsprefix_ + ":" + if (UseCapturedNS_ and self.contactPhone_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scontactPhone>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.contactPhone), input_name="contactPhone" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.contactEmail is not None: + namespaceprefix_ = ( + self.contactEmail_nsprefix_ + ":" + if (UseCapturedNS_ and self.contactEmail_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scontactEmail>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.contactEmail), input_name="contactEmail" + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "name": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "name") + value_ = self.gds_validate_string(value_, node, "name") + self.name = value_ + self.name_nsprefix_ = child_.prefix + elif nodeName_ == "postalCode": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "postalCode") + value_ = self.gds_validate_string(value_, node, "postalCode") + self.postalCode = value_ + self.postalCode_nsprefix_ = child_.prefix + elif nodeName_ == "city": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "city") + value_ = self.gds_validate_string(value_, node, "city") + self.city = value_ + self.city_nsprefix_ = child_.prefix + elif nodeName_ == "street": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "street") + value_ = self.gds_validate_string(value_, node, "street") + self.street = value_ + self.street_nsprefix_ = child_.prefix + elif nodeName_ == "houseNumber": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "houseNumber") + value_ = self.gds_validate_string(value_, node, "houseNumber") + self.houseNumber = value_ + self.houseNumber_nsprefix_ = child_.prefix + elif nodeName_ == "apartmentNumber": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "apartmentNumber") + value_ = self.gds_validate_string(value_, node, "apartmentNumber") + self.apartmentNumber = value_ + self.apartmentNumber_nsprefix_ = child_.prefix + elif nodeName_ == "contactPerson": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "contactPerson") + value_ = self.gds_validate_string(value_, node, "contactPerson") + self.contactPerson = value_ + self.contactPerson_nsprefix_ = child_.prefix + elif nodeName_ == "contactPhone": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "contactPhone") + value_ = self.gds_validate_string(value_, node, "contactPhone") + self.contactPhone = value_ + self.contactPhone_nsprefix_ = child_.prefix + elif nodeName_ == "contactEmail": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "contactEmail") + value_ = self.gds_validate_string(value_, node, "contactEmail") + self.contactEmail = value_ + self.contactEmail_nsprefix_ = child_.prefix + + +# end class AddressData + + +class ReceiverAddressData(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + country=None, + isPackstation=None, + isPostfiliale=None, + postnummer=None, + addressType=None, + name=None, + postalCode=None, + city=None, + street=None, + houseNumber=None, + apartmentNumber=None, + contactPerson=None, + contactPhone=None, + contactEmail=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.country = country + self.country_nsprefix_ = None + self.isPackstation = isPackstation + self.isPackstation_nsprefix_ = None + self.isPostfiliale = isPostfiliale + self.isPostfiliale_nsprefix_ = None + self.postnummer = postnummer + self.postnummer_nsprefix_ = None + self.addressType = addressType + self.addressType_nsprefix_ = None + self.name = name + self.name_nsprefix_ = None + self.postalCode = postalCode + self.postalCode_nsprefix_ = None + self.city = city + self.city_nsprefix_ = None + self.street = street + self.street_nsprefix_ = None + self.houseNumber = houseNumber + self.houseNumber_nsprefix_ = None + self.apartmentNumber = apartmentNumber + self.apartmentNumber_nsprefix_ = None + self.contactPerson = contactPerson + self.contactPerson_nsprefix_ = None + self.contactPhone = contactPhone + self.contactPhone_nsprefix_ = None + self.contactEmail = contactEmail + self.contactEmail_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, ReceiverAddressData + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ReceiverAddressData.subclass: + return ReceiverAddressData.subclass(*args_, **kwargs_) + else: + return ReceiverAddressData(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_country(self): + return self.country + + def set_country(self, country): + self.country = country + + def get_isPackstation(self): + return self.isPackstation + + def set_isPackstation(self, isPackstation): + self.isPackstation = isPackstation + + def get_isPostfiliale(self): + return self.isPostfiliale + + def set_isPostfiliale(self, isPostfiliale): + self.isPostfiliale = isPostfiliale + + def get_postnummer(self): + return self.postnummer + + def set_postnummer(self, postnummer): + self.postnummer = postnummer + + def get_addressType(self): + return self.addressType + + def set_addressType(self, addressType): + self.addressType = addressType + + def get_name(self): + return self.name + + def set_name(self, name): + self.name = name + + def get_postalCode(self): + return self.postalCode + + def set_postalCode(self, postalCode): + self.postalCode = postalCode + + def get_city(self): + return self.city + + def set_city(self, city): + self.city = city + + def get_street(self): + return self.street + + def set_street(self, street): + self.street = street + + def get_houseNumber(self): + return self.houseNumber + + def set_houseNumber(self, houseNumber): + self.houseNumber = houseNumber + + def get_apartmentNumber(self): + return self.apartmentNumber + + def set_apartmentNumber(self, apartmentNumber): + self.apartmentNumber = apartmentNumber + + def get_contactPerson(self): + return self.contactPerson + + def set_contactPerson(self, contactPerson): + self.contactPerson = contactPerson + + def get_contactPhone(self): + return self.contactPhone + + def set_contactPhone(self, contactPhone): + self.contactPhone = contactPhone + + def get_contactEmail(self): + return self.contactEmail + + def set_contactEmail(self, contactEmail): + self.contactEmail = contactEmail + + def _hasContent(self): + if ( + self.country is not None + or self.isPackstation is not None + or self.isPostfiliale is not None + or self.postnummer is not None + or self.addressType is not None + or self.name is not None + or self.postalCode is not None + or self.city is not None + or self.street is not None + or self.houseNumber is not None + or self.apartmentNumber is not None + or self.contactPerson is not None + or self.contactPhone is not None + or self.contactEmail is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ReceiverAddressData", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ReceiverAddressData") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ReceiverAddressData": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="ReceiverAddressData", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ReceiverAddressData", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ReceiverAddressData", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ReceiverAddressData", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.country is not None: + namespaceprefix_ = ( + self.country_nsprefix_ + ":" + if (UseCapturedNS_ and self.country_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scountry>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.country), input_name="country" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.isPackstation is not None: + namespaceprefix_ = ( + self.isPackstation_nsprefix_ + ":" + if (UseCapturedNS_ and self.isPackstation_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sisPackstation>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.isPackstation, input_name="isPackstation" + ), + namespaceprefix_, + eol_, + ) + ) + if self.isPostfiliale is not None: + namespaceprefix_ = ( + self.isPostfiliale_nsprefix_ + ":" + if (UseCapturedNS_ and self.isPostfiliale_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sisPostfiliale>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.isPostfiliale, input_name="isPostfiliale" + ), + namespaceprefix_, + eol_, + ) + ) + if self.postnummer is not None: + namespaceprefix_ = ( + self.postnummer_nsprefix_ + ":" + if (UseCapturedNS_ and self.postnummer_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spostnummer>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.postnummer), input_name="postnummer" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.addressType is not None: + namespaceprefix_ = ( + self.addressType_nsprefix_ + ":" + if (UseCapturedNS_ and self.addressType_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%saddressType>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.addressType), input_name="addressType" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.name is not None: + namespaceprefix_ = ( + self.name_nsprefix_ + ":" + if (UseCapturedNS_ and self.name_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sname>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string(quote_xml(self.name), input_name="name") + ), + namespaceprefix_, + eol_, + ) + ) + if self.postalCode is not None: + namespaceprefix_ = ( + self.postalCode_nsprefix_ + ":" + if (UseCapturedNS_ and self.postalCode_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spostalCode>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.postalCode), input_name="postalCode" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.city is not None: + namespaceprefix_ = ( + self.city_nsprefix_ + ":" + if (UseCapturedNS_ and self.city_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scity>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string(quote_xml(self.city), input_name="city") + ), + namespaceprefix_, + eol_, + ) + ) + if self.street is not None: + namespaceprefix_ = ( + self.street_nsprefix_ + ":" + if (UseCapturedNS_ and self.street_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sstreet>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.street), input_name="street" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.houseNumber is not None: + namespaceprefix_ = ( + self.houseNumber_nsprefix_ + ":" + if (UseCapturedNS_ and self.houseNumber_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%shouseNumber>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.houseNumber), input_name="houseNumber" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.apartmentNumber is not None: + namespaceprefix_ = ( + self.apartmentNumber_nsprefix_ + ":" + if (UseCapturedNS_ and self.apartmentNumber_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sapartmentNumber>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.apartmentNumber), + input_name="apartmentNumber", + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.contactPerson is not None: + namespaceprefix_ = ( + self.contactPerson_nsprefix_ + ":" + if (UseCapturedNS_ and self.contactPerson_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scontactPerson>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.contactPerson), input_name="contactPerson" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.contactPhone is not None: + namespaceprefix_ = ( + self.contactPhone_nsprefix_ + ":" + if (UseCapturedNS_ and self.contactPhone_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scontactPhone>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.contactPhone), input_name="contactPhone" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.contactEmail is not None: + namespaceprefix_ = ( + self.contactEmail_nsprefix_ + ":" + if (UseCapturedNS_ and self.contactEmail_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scontactEmail>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.contactEmail), input_name="contactEmail" + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "country": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "country") + value_ = self.gds_validate_string(value_, node, "country") + self.country = value_ + self.country_nsprefix_ = child_.prefix + elif nodeName_ == "isPackstation": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "isPackstation") + ival_ = self.gds_validate_boolean(ival_, node, "isPackstation") + self.isPackstation = ival_ + self.isPackstation_nsprefix_ = child_.prefix + elif nodeName_ == "isPostfiliale": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "isPostfiliale") + ival_ = self.gds_validate_boolean(ival_, node, "isPostfiliale") + self.isPostfiliale = ival_ + self.isPostfiliale_nsprefix_ = child_.prefix + elif nodeName_ == "postnummer": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "postnummer") + value_ = self.gds_validate_string(value_, node, "postnummer") + self.postnummer = value_ + self.postnummer_nsprefix_ = child_.prefix + elif nodeName_ == "addressType": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "addressType") + value_ = self.gds_validate_string(value_, node, "addressType") + self.addressType = value_ + self.addressType_nsprefix_ = child_.prefix + elif nodeName_ == "name": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "name") + value_ = self.gds_validate_string(value_, node, "name") + self.name = value_ + self.name_nsprefix_ = child_.prefix + elif nodeName_ == "postalCode": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "postalCode") + value_ = self.gds_validate_string(value_, node, "postalCode") + self.postalCode = value_ + self.postalCode_nsprefix_ = child_.prefix + elif nodeName_ == "city": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "city") + value_ = self.gds_validate_string(value_, node, "city") + self.city = value_ + self.city_nsprefix_ = child_.prefix + elif nodeName_ == "street": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "street") + value_ = self.gds_validate_string(value_, node, "street") + self.street = value_ + self.street_nsprefix_ = child_.prefix + elif nodeName_ == "houseNumber": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "houseNumber") + value_ = self.gds_validate_string(value_, node, "houseNumber") + self.houseNumber = value_ + self.houseNumber_nsprefix_ = child_.prefix + elif nodeName_ == "apartmentNumber": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "apartmentNumber") + value_ = self.gds_validate_string(value_, node, "apartmentNumber") + self.apartmentNumber = value_ + self.apartmentNumber_nsprefix_ = child_.prefix + elif nodeName_ == "contactPerson": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "contactPerson") + value_ = self.gds_validate_string(value_, node, "contactPerson") + self.contactPerson = value_ + self.contactPerson_nsprefix_ = child_.prefix + elif nodeName_ == "contactPhone": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "contactPhone") + value_ = self.gds_validate_string(value_, node, "contactPhone") + self.contactPhone = value_ + self.contactPhone_nsprefix_ = child_.prefix + elif nodeName_ == "contactEmail": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "contactEmail") + value_ = self.gds_validate_string(value_, node, "contactEmail") + self.contactEmail = value_ + self.contactEmail_nsprefix_ = child_.prefix + + +# end class ReceiverAddressData + + +class NeighbourAddress(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + name=None, + postalCode=None, + city=None, + street=None, + houseNumber=None, + apartmentNumber=None, + contactPhone=None, + contactEmail=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.name = name + self.name_nsprefix_ = None + self.postalCode = postalCode + self.postalCode_nsprefix_ = None + self.city = city + self.city_nsprefix_ = None + self.street = street + self.street_nsprefix_ = None + self.houseNumber = houseNumber + self.houseNumber_nsprefix_ = None + self.apartmentNumber = apartmentNumber + self.apartmentNumber_nsprefix_ = None + self.contactPhone = contactPhone + self.contactPhone_nsprefix_ = None + self.contactEmail = contactEmail + self.contactEmail_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, NeighbourAddress) + if subclass is not None: + return subclass(*args_, **kwargs_) + if NeighbourAddress.subclass: + return NeighbourAddress.subclass(*args_, **kwargs_) + else: + return NeighbourAddress(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_name(self): + return self.name + + def set_name(self, name): + self.name = name + + def get_postalCode(self): + return self.postalCode + + def set_postalCode(self, postalCode): + self.postalCode = postalCode + + def get_city(self): + return self.city + + def set_city(self, city): + self.city = city + + def get_street(self): + return self.street + + def set_street(self, street): + self.street = street + + def get_houseNumber(self): + return self.houseNumber + + def set_houseNumber(self, houseNumber): + self.houseNumber = houseNumber + + def get_apartmentNumber(self): + return self.apartmentNumber + + def set_apartmentNumber(self, apartmentNumber): + self.apartmentNumber = apartmentNumber + + def get_contactPhone(self): + return self.contactPhone + + def set_contactPhone(self, contactPhone): + self.contactPhone = contactPhone + + def get_contactEmail(self): + return self.contactEmail + + def set_contactEmail(self, contactEmail): + self.contactEmail = contactEmail + + def _hasContent(self): + if ( + self.name is not None + or self.postalCode is not None + or self.city is not None + or self.street is not None + or self.houseNumber is not None + or self.apartmentNumber is not None + or self.contactPhone is not None + or self.contactEmail is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="NeighbourAddress", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("NeighbourAddress") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "NeighbourAddress": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="NeighbourAddress", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="NeighbourAddress", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="NeighbourAddress", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="NeighbourAddress", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.name is not None: + namespaceprefix_ = ( + self.name_nsprefix_ + ":" + if (UseCapturedNS_ and self.name_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sname>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string(quote_xml(self.name), input_name="name") + ), + namespaceprefix_, + eol_, + ) + ) + if self.postalCode is not None: + namespaceprefix_ = ( + self.postalCode_nsprefix_ + ":" + if (UseCapturedNS_ and self.postalCode_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spostalCode>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.postalCode), input_name="postalCode" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.city is not None: + namespaceprefix_ = ( + self.city_nsprefix_ + ":" + if (UseCapturedNS_ and self.city_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scity>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string(quote_xml(self.city), input_name="city") + ), + namespaceprefix_, + eol_, + ) + ) + if self.street is not None: + namespaceprefix_ = ( + self.street_nsprefix_ + ":" + if (UseCapturedNS_ and self.street_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sstreet>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.street), input_name="street" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.houseNumber is not None: + namespaceprefix_ = ( + self.houseNumber_nsprefix_ + ":" + if (UseCapturedNS_ and self.houseNumber_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%shouseNumber>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.houseNumber), input_name="houseNumber" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.apartmentNumber is not None: + namespaceprefix_ = ( + self.apartmentNumber_nsprefix_ + ":" + if (UseCapturedNS_ and self.apartmentNumber_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sapartmentNumber>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.apartmentNumber), + input_name="apartmentNumber", + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.contactPhone is not None: + namespaceprefix_ = ( + self.contactPhone_nsprefix_ + ":" + if (UseCapturedNS_ and self.contactPhone_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scontactPhone>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.contactPhone), input_name="contactPhone" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.contactEmail is not None: + namespaceprefix_ = ( + self.contactEmail_nsprefix_ + ":" + if (UseCapturedNS_ and self.contactEmail_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scontactEmail>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.contactEmail), input_name="contactEmail" + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "name": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "name") + value_ = self.gds_validate_string(value_, node, "name") + self.name = value_ + self.name_nsprefix_ = child_.prefix + elif nodeName_ == "postalCode": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "postalCode") + value_ = self.gds_validate_string(value_, node, "postalCode") + self.postalCode = value_ + self.postalCode_nsprefix_ = child_.prefix + elif nodeName_ == "city": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "city") + value_ = self.gds_validate_string(value_, node, "city") + self.city = value_ + self.city_nsprefix_ = child_.prefix + elif nodeName_ == "street": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "street") + value_ = self.gds_validate_string(value_, node, "street") + self.street = value_ + self.street_nsprefix_ = child_.prefix + elif nodeName_ == "houseNumber": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "houseNumber") + value_ = self.gds_validate_string(value_, node, "houseNumber") + self.houseNumber = value_ + self.houseNumber_nsprefix_ = child_.prefix + elif nodeName_ == "apartmentNumber": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "apartmentNumber") + value_ = self.gds_validate_string(value_, node, "apartmentNumber") + self.apartmentNumber = value_ + self.apartmentNumber_nsprefix_ = child_.prefix + elif nodeName_ == "contactPhone": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "contactPhone") + value_ = self.gds_validate_string(value_, node, "contactPhone") + self.contactPhone = value_ + self.contactPhone_nsprefix_ = child_.prefix + elif nodeName_ == "contactEmail": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "contactEmail") + value_ = self.gds_validate_string(value_, node, "contactEmail") + self.contactEmail = value_ + self.contactEmail_nsprefix_ = child_.prefix + + +# end class NeighbourAddress + + +class PieceDefinition(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + type_=None, + width=None, + height=None, + length=None, + weight=None, + quantity=None, + nonStandard=None, + blpPieceId=None, + euroReturn=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.type_ = type_ + self.type__nsprefix_ = None + self.width = width + self.width_nsprefix_ = None + self.height = height + self.height_nsprefix_ = None + self.length = length + self.length_nsprefix_ = None + self.weight = weight + self.weight_nsprefix_ = None + self.quantity = quantity + self.quantity_nsprefix_ = None + self.nonStandard = nonStandard + self.nonStandard_nsprefix_ = None + self.blpPieceId = blpPieceId + self.blpPieceId_nsprefix_ = None + self.euroReturn = euroReturn + self.euroReturn_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, PieceDefinition) + if subclass is not None: + return subclass(*args_, **kwargs_) + if PieceDefinition.subclass: + return PieceDefinition.subclass(*args_, **kwargs_) + else: + return PieceDefinition(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_type(self): + return self.type_ + + def set_type(self, type_): + self.type_ = type_ + + def get_width(self): + return self.width + + def set_width(self, width): + self.width = width + + def get_height(self): + return self.height + + def set_height(self, height): + self.height = height + + def get_length(self): + return self.length + + def set_length(self, length): + self.length = length + + def get_weight(self): + return self.weight + + def set_weight(self, weight): + self.weight = weight + + def get_quantity(self): + return self.quantity + + def set_quantity(self, quantity): + self.quantity = quantity + + def get_nonStandard(self): + return self.nonStandard + + def set_nonStandard(self, nonStandard): + self.nonStandard = nonStandard + + def get_blpPieceId(self): + return self.blpPieceId + + def set_blpPieceId(self, blpPieceId): + self.blpPieceId = blpPieceId + + def get_euroReturn(self): + return self.euroReturn + + def set_euroReturn(self, euroReturn): + self.euroReturn = euroReturn + + def _hasContent(self): + if ( + self.type_ is not None + or self.width is not None + or self.height is not None + or self.length is not None + or self.weight is not None + or self.quantity is not None + or self.nonStandard is not None + or self.blpPieceId is not None + or self.euroReturn is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="PieceDefinition", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("PieceDefinition") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "PieceDefinition": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="PieceDefinition" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="PieceDefinition", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="PieceDefinition", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="PieceDefinition", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.type_ is not None: + namespaceprefix_ = ( + self.type__nsprefix_ + ":" + if (UseCapturedNS_ and self.type__nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%stype>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string(quote_xml(self.type_), input_name="type") + ), + namespaceprefix_, + eol_, + ) + ) + if self.width is not None: + namespaceprefix_ = ( + self.width_nsprefix_ + ":" + if (UseCapturedNS_ and self.width_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%swidth>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.width, input_name="width"), + namespaceprefix_, + eol_, + ) + ) + if self.height is not None: + namespaceprefix_ = ( + self.height_nsprefix_ + ":" + if (UseCapturedNS_ and self.height_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sheight>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.height, input_name="height"), + namespaceprefix_, + eol_, + ) + ) + if self.length is not None: + namespaceprefix_ = ( + self.length_nsprefix_ + ":" + if (UseCapturedNS_ and self.length_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%slength>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.length, input_name="length"), + namespaceprefix_, + eol_, + ) + ) + if self.weight is not None: + namespaceprefix_ = ( + self.weight_nsprefix_ + ":" + if (UseCapturedNS_ and self.weight_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sweight>%s%s" + % ( + namespaceprefix_, + self.gds_format_float(self.weight, input_name="weight"), + namespaceprefix_, + eol_, + ) + ) + if self.quantity is not None: + namespaceprefix_ = ( + self.quantity_nsprefix_ + ":" + if (UseCapturedNS_ and self.quantity_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%squantity>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.quantity, input_name="quantity"), + namespaceprefix_, + eol_, + ) + ) + if self.nonStandard is not None: + namespaceprefix_ = ( + self.nonStandard_nsprefix_ + ":" + if (UseCapturedNS_ and self.nonStandard_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%snonStandard>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean(self.nonStandard, input_name="nonStandard"), + namespaceprefix_, + eol_, + ) + ) + if self.blpPieceId is not None: + namespaceprefix_ = ( + self.blpPieceId_nsprefix_ + ":" + if (UseCapturedNS_ and self.blpPieceId_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sblpPieceId>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.blpPieceId), input_name="blpPieceId" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.euroReturn is not None: + namespaceprefix_ = ( + self.euroReturn_nsprefix_ + ":" + if (UseCapturedNS_ and self.euroReturn_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%seuroReturn>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean(self.euroReturn, input_name="euroReturn"), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "type": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "type") + value_ = self.gds_validate_string(value_, node, "type") + self.type_ = value_ + self.type_nsprefix_ = child_.prefix + elif nodeName_ == "width" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "width") + ival_ = self.gds_validate_integer(ival_, node, "width") + self.width = ival_ + self.width_nsprefix_ = child_.prefix + elif nodeName_ == "height" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "height") + ival_ = self.gds_validate_integer(ival_, node, "height") + self.height = ival_ + self.height_nsprefix_ = child_.prefix + elif nodeName_ == "length" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "length") + ival_ = self.gds_validate_integer(ival_, node, "length") + self.length = ival_ + self.length_nsprefix_ = child_.prefix + elif nodeName_ == "weight" and child_.text: + sval_ = child_.text + fval_ = self.gds_parse_float(sval_, node, "weight") + fval_ = self.gds_validate_float(fval_, node, "weight") + self.weight = fval_ + self.weight_nsprefix_ = child_.prefix + elif nodeName_ == "quantity" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "quantity") + ival_ = self.gds_validate_integer(ival_, node, "quantity") + self.quantity = ival_ + self.quantity_nsprefix_ = child_.prefix + elif nodeName_ == "nonStandard": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "nonStandard") + ival_ = self.gds_validate_boolean(ival_, node, "nonStandard") + self.nonStandard = ival_ + self.nonStandard_nsprefix_ = child_.prefix + elif nodeName_ == "blpPieceId": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "blpPieceId") + value_ = self.gds_validate_string(value_, node, "blpPieceId") + self.blpPieceId = value_ + self.blpPieceId_nsprefix_ = child_.prefix + elif nodeName_ == "euroReturn": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "euroReturn") + ival_ = self.gds_validate_boolean(ival_, node, "euroReturn") + self.euroReturn = ival_ + self.euroReturn_nsprefix_ = child_.prefix + + +# end class PieceDefinition + + +class ArrayOfPiecedefinition(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, item=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + if item is None: + self.item = [] + else: + self.item = item + self.item_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, ArrayOfPiecedefinition + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ArrayOfPiecedefinition.subclass: + return ArrayOfPiecedefinition.subclass(*args_, **kwargs_) + else: + return ArrayOfPiecedefinition(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_item(self): + return self.item + + def set_item(self, item): + self.item = item + + def add_item(self, value): + self.item.append(value) + + def insert_item_at(self, index, value): + self.item.insert(index, value) + + def replace_item_at(self, index, value): + self.item[index] = value + + def _hasContent(self): + if self.item: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfPiecedefinition", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ArrayOfPiecedefinition") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ArrayOfPiecedefinition": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="ArrayOfPiecedefinition", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ArrayOfPiecedefinition", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ArrayOfPiecedefinition", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfPiecedefinition", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + for item_ in self.item: + namespaceprefix_ = ( + self.item_nsprefix_ + ":" + if (UseCapturedNS_ and self.item_nsprefix_) + else "" + ) + item_.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="item", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "item": + obj_ = PieceDefinition.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.item.append(obj_) + obj_.original_tagname_ = "item" + + +# end class ArrayOfPiecedefinition + + +class PaymentData(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + paymentMethod=None, + payerType=None, + accountNumber=None, + costsCenter=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.paymentMethod = paymentMethod + self.paymentMethod_nsprefix_ = None + self.payerType = payerType + self.payerType_nsprefix_ = None + self.accountNumber = accountNumber + self.accountNumber_nsprefix_ = None + self.costsCenter = costsCenter + self.costsCenter_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, PaymentData) + if subclass is not None: + return subclass(*args_, **kwargs_) + if PaymentData.subclass: + return PaymentData.subclass(*args_, **kwargs_) + else: + return PaymentData(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_paymentMethod(self): + return self.paymentMethod + + def set_paymentMethod(self, paymentMethod): + self.paymentMethod = paymentMethod + + def get_payerType(self): + return self.payerType + + def set_payerType(self, payerType): + self.payerType = payerType + + def get_accountNumber(self): + return self.accountNumber + + def set_accountNumber(self, accountNumber): + self.accountNumber = accountNumber + + def get_costsCenter(self): + return self.costsCenter + + def set_costsCenter(self, costsCenter): + self.costsCenter = costsCenter + + def _hasContent(self): + if ( + self.paymentMethod is not None + or self.payerType is not None + or self.accountNumber is not None + or self.costsCenter is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="PaymentData", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("PaymentData") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "PaymentData": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="PaymentData" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="PaymentData", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="PaymentData", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="PaymentData", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.paymentMethod is not None: + namespaceprefix_ = ( + self.paymentMethod_nsprefix_ + ":" + if (UseCapturedNS_ and self.paymentMethod_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spaymentMethod>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.paymentMethod), input_name="paymentMethod" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.payerType is not None: + namespaceprefix_ = ( + self.payerType_nsprefix_ + ":" + if (UseCapturedNS_ and self.payerType_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spayerType>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.payerType), input_name="payerType" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.accountNumber is not None: + namespaceprefix_ = ( + self.accountNumber_nsprefix_ + ":" + if (UseCapturedNS_ and self.accountNumber_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%saccountNumber>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.accountNumber), input_name="accountNumber" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.costsCenter is not None: + namespaceprefix_ = ( + self.costsCenter_nsprefix_ + ":" + if (UseCapturedNS_ and self.costsCenter_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scostsCenter>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.costsCenter), input_name="costsCenter" + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "paymentMethod": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "paymentMethod") + value_ = self.gds_validate_string(value_, node, "paymentMethod") + self.paymentMethod = value_ + self.paymentMethod_nsprefix_ = child_.prefix + elif nodeName_ == "payerType": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "payerType") + value_ = self.gds_validate_string(value_, node, "payerType") + self.payerType = value_ + self.payerType_nsprefix_ = child_.prefix + elif nodeName_ == "accountNumber": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "accountNumber") + value_ = self.gds_validate_string(value_, node, "accountNumber") + self.accountNumber = value_ + self.accountNumber_nsprefix_ = child_.prefix + elif nodeName_ == "costsCenter": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "costsCenter") + value_ = self.gds_validate_string(value_, node, "costsCenter") + self.costsCenter = value_ + self.costsCenter_nsprefix_ = child_.prefix + + +# end class PaymentData + + +class ServiceDefinition(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + product=None, + deliveryEvening=None, + deliveryOnSaturday=None, + pickupOnSaturday=None, + collectOnDelivery=None, + collectOnDeliveryValue=None, + collectOnDeliveryForm=None, + collectOnDeliveryReference=None, + insurance=None, + insuranceValue=None, + returnOnDelivery=None, + returnOnDeliveryReference=None, + proofOfDelivery=None, + selfCollect=None, + predeliveryInformation=None, + deliveryToNeighbour=None, + preaviso=None, + additionalService=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.product = product + self.product_nsprefix_ = None + self.deliveryEvening = deliveryEvening + self.deliveryEvening_nsprefix_ = None + self.deliveryOnSaturday = deliveryOnSaturday + self.deliveryOnSaturday_nsprefix_ = None + self.pickupOnSaturday = pickupOnSaturday + self.pickupOnSaturday_nsprefix_ = None + self.collectOnDelivery = collectOnDelivery + self.collectOnDelivery_nsprefix_ = None + self.collectOnDeliveryValue = collectOnDeliveryValue + self.collectOnDeliveryValue_nsprefix_ = None + self.collectOnDeliveryForm = collectOnDeliveryForm + self.collectOnDeliveryForm_nsprefix_ = None + self.collectOnDeliveryReference = collectOnDeliveryReference + self.collectOnDeliveryReference_nsprefix_ = None + self.insurance = insurance + self.insurance_nsprefix_ = None + self.insuranceValue = insuranceValue + self.insuranceValue_nsprefix_ = None + self.returnOnDelivery = returnOnDelivery + self.returnOnDelivery_nsprefix_ = None + self.returnOnDeliveryReference = returnOnDeliveryReference + self.returnOnDeliveryReference_nsprefix_ = None + self.proofOfDelivery = proofOfDelivery + self.proofOfDelivery_nsprefix_ = None + self.selfCollect = selfCollect + self.selfCollect_nsprefix_ = None + self.predeliveryInformation = predeliveryInformation + self.predeliveryInformation_nsprefix_ = None + self.deliveryToNeighbour = deliveryToNeighbour + self.deliveryToNeighbour_nsprefix_ = None + self.preaviso = preaviso + self.preaviso_nsprefix_ = None + self.additionalService = additionalService + self.additionalService_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, ServiceDefinition) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ServiceDefinition.subclass: + return ServiceDefinition.subclass(*args_, **kwargs_) + else: + return ServiceDefinition(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_product(self): + return self.product + + def set_product(self, product): + self.product = product + + def get_deliveryEvening(self): + return self.deliveryEvening + + def set_deliveryEvening(self, deliveryEvening): + self.deliveryEvening = deliveryEvening + + def get_deliveryOnSaturday(self): + return self.deliveryOnSaturday + + def set_deliveryOnSaturday(self, deliveryOnSaturday): + self.deliveryOnSaturday = deliveryOnSaturday + + def get_pickupOnSaturday(self): + return self.pickupOnSaturday + + def set_pickupOnSaturday(self, pickupOnSaturday): + self.pickupOnSaturday = pickupOnSaturday + + def get_collectOnDelivery(self): + return self.collectOnDelivery + + def set_collectOnDelivery(self, collectOnDelivery): + self.collectOnDelivery = collectOnDelivery + + def get_collectOnDeliveryValue(self): + return self.collectOnDeliveryValue + + def set_collectOnDeliveryValue(self, collectOnDeliveryValue): + self.collectOnDeliveryValue = collectOnDeliveryValue + + def get_collectOnDeliveryForm(self): + return self.collectOnDeliveryForm + + def set_collectOnDeliveryForm(self, collectOnDeliveryForm): + self.collectOnDeliveryForm = collectOnDeliveryForm + + def get_collectOnDeliveryReference(self): + return self.collectOnDeliveryReference + + def set_collectOnDeliveryReference(self, collectOnDeliveryReference): + self.collectOnDeliveryReference = collectOnDeliveryReference + + def get_insurance(self): + return self.insurance + + def set_insurance(self, insurance): + self.insurance = insurance + + def get_insuranceValue(self): + return self.insuranceValue + + def set_insuranceValue(self, insuranceValue): + self.insuranceValue = insuranceValue + + def get_returnOnDelivery(self): + return self.returnOnDelivery + + def set_returnOnDelivery(self, returnOnDelivery): + self.returnOnDelivery = returnOnDelivery + + def get_returnOnDeliveryReference(self): + return self.returnOnDeliveryReference + + def set_returnOnDeliveryReference(self, returnOnDeliveryReference): + self.returnOnDeliveryReference = returnOnDeliveryReference + + def get_proofOfDelivery(self): + return self.proofOfDelivery + + def set_proofOfDelivery(self, proofOfDelivery): + self.proofOfDelivery = proofOfDelivery + + def get_selfCollect(self): + return self.selfCollect + + def set_selfCollect(self, selfCollect): + self.selfCollect = selfCollect + + def get_predeliveryInformation(self): + return self.predeliveryInformation + + def set_predeliveryInformation(self, predeliveryInformation): + self.predeliveryInformation = predeliveryInformation + + def get_deliveryToNeighbour(self): + return self.deliveryToNeighbour + + def set_deliveryToNeighbour(self, deliveryToNeighbour): + self.deliveryToNeighbour = deliveryToNeighbour + + def get_preaviso(self): + return self.preaviso + + def set_preaviso(self, preaviso): + self.preaviso = preaviso + + def get_additionalService(self): + return self.additionalService + + def set_additionalService(self, additionalService): + self.additionalService = additionalService + + def _hasContent(self): + if ( + self.product is not None + or self.deliveryEvening is not None + or self.deliveryOnSaturday is not None + or self.pickupOnSaturday is not None + or self.collectOnDelivery is not None + or self.collectOnDeliveryValue is not None + or self.collectOnDeliveryForm is not None + or self.collectOnDeliveryReference is not None + or self.insurance is not None + or self.insuranceValue is not None + or self.returnOnDelivery is not None + or self.returnOnDeliveryReference is not None + or self.proofOfDelivery is not None + or self.selfCollect is not None + or self.predeliveryInformation is not None + or self.deliveryToNeighbour is not None + or self.preaviso is not None + or self.additionalService is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ServiceDefinition", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ServiceDefinition") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ServiceDefinition": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="ServiceDefinition", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ServiceDefinition", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ServiceDefinition", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ServiceDefinition", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.product is not None: + namespaceprefix_ = ( + self.product_nsprefix_ + ":" + if (UseCapturedNS_ and self.product_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sproduct>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.product), input_name="product" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.deliveryEvening is not None: + namespaceprefix_ = ( + self.deliveryEvening_nsprefix_ + ":" + if (UseCapturedNS_ and self.deliveryEvening_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sdeliveryEvening>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.deliveryEvening, input_name="deliveryEvening" + ), + namespaceprefix_, + eol_, + ) + ) + if self.deliveryOnSaturday is not None: + namespaceprefix_ = ( + self.deliveryOnSaturday_nsprefix_ + ":" + if (UseCapturedNS_ and self.deliveryOnSaturday_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sdeliveryOnSaturday>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.deliveryOnSaturday, input_name="deliveryOnSaturday" + ), + namespaceprefix_, + eol_, + ) + ) + if self.pickupOnSaturday is not None: + namespaceprefix_ = ( + self.pickupOnSaturday_nsprefix_ + ":" + if (UseCapturedNS_ and self.pickupOnSaturday_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spickupOnSaturday>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.pickupOnSaturday, input_name="pickupOnSaturday" + ), + namespaceprefix_, + eol_, + ) + ) + if self.collectOnDelivery is not None: + namespaceprefix_ = ( + self.collectOnDelivery_nsprefix_ + ":" + if (UseCapturedNS_ and self.collectOnDelivery_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scollectOnDelivery>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.collectOnDelivery, input_name="collectOnDelivery" + ), + namespaceprefix_, + eol_, + ) + ) + if self.collectOnDeliveryValue is not None: + namespaceprefix_ = ( + self.collectOnDeliveryValue_nsprefix_ + ":" + if (UseCapturedNS_ and self.collectOnDeliveryValue_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scollectOnDeliveryValue>%s%s" + % ( + namespaceprefix_, + self.gds_format_float( + self.collectOnDeliveryValue, input_name="collectOnDeliveryValue" + ), + namespaceprefix_, + eol_, + ) + ) + if self.collectOnDeliveryForm is not None: + namespaceprefix_ = ( + self.collectOnDeliveryForm_nsprefix_ + ":" + if (UseCapturedNS_ and self.collectOnDeliveryForm_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scollectOnDeliveryForm>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.collectOnDeliveryForm), + input_name="collectOnDeliveryForm", + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.collectOnDeliveryReference is not None: + namespaceprefix_ = ( + self.collectOnDeliveryReference_nsprefix_ + ":" + if (UseCapturedNS_ and self.collectOnDeliveryReference_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scollectOnDeliveryReference>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.collectOnDeliveryReference), + input_name="collectOnDeliveryReference", + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.insurance is not None: + namespaceprefix_ = ( + self.insurance_nsprefix_ + ":" + if (UseCapturedNS_ and self.insurance_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sinsurance>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean(self.insurance, input_name="insurance"), + namespaceprefix_, + eol_, + ) + ) + if self.insuranceValue is not None: + namespaceprefix_ = ( + self.insuranceValue_nsprefix_ + ":" + if (UseCapturedNS_ and self.insuranceValue_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sinsuranceValue>%s%s" + % ( + namespaceprefix_, + self.gds_format_float( + self.insuranceValue, input_name="insuranceValue" + ), + namespaceprefix_, + eol_, + ) + ) + if self.returnOnDelivery is not None: + namespaceprefix_ = ( + self.returnOnDelivery_nsprefix_ + ":" + if (UseCapturedNS_ and self.returnOnDelivery_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sreturnOnDelivery>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.returnOnDelivery, input_name="returnOnDelivery" + ), + namespaceprefix_, + eol_, + ) + ) + if self.returnOnDeliveryReference is not None: + namespaceprefix_ = ( + self.returnOnDeliveryReference_nsprefix_ + ":" + if (UseCapturedNS_ and self.returnOnDeliveryReference_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sreturnOnDeliveryReference>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.returnOnDeliveryReference), + input_name="returnOnDeliveryReference", + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.proofOfDelivery is not None: + namespaceprefix_ = ( + self.proofOfDelivery_nsprefix_ + ":" + if (UseCapturedNS_ and self.proofOfDelivery_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sproofOfDelivery>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.proofOfDelivery, input_name="proofOfDelivery" + ), + namespaceprefix_, + eol_, + ) + ) + if self.selfCollect is not None: + namespaceprefix_ = ( + self.selfCollect_nsprefix_ + ":" + if (UseCapturedNS_ and self.selfCollect_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sselfCollect>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean(self.selfCollect, input_name="selfCollect"), + namespaceprefix_, + eol_, + ) + ) + if self.predeliveryInformation is not None: + namespaceprefix_ = ( + self.predeliveryInformation_nsprefix_ + ":" + if (UseCapturedNS_ and self.predeliveryInformation_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spredeliveryInformation>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.predeliveryInformation, input_name="predeliveryInformation" + ), + namespaceprefix_, + eol_, + ) + ) + if self.deliveryToNeighbour is not None: + namespaceprefix_ = ( + self.deliveryToNeighbour_nsprefix_ + ":" + if (UseCapturedNS_ and self.deliveryToNeighbour_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sdeliveryToNeighbour>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.deliveryToNeighbour, input_name="deliveryToNeighbour" + ), + namespaceprefix_, + eol_, + ) + ) + if self.preaviso is not None: + namespaceprefix_ = ( + self.preaviso_nsprefix_ + ":" + if (UseCapturedNS_ and self.preaviso_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spreaviso>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean(self.preaviso, input_name="preaviso"), + namespaceprefix_, + eol_, + ) + ) + if self.additionalService is not None: + namespaceprefix_ = ( + self.additionalService_nsprefix_ + ":" + if (UseCapturedNS_ and self.additionalService_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sadditionalService>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.additionalService, input_name="additionalService" + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "product": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "product") + value_ = self.gds_validate_string(value_, node, "product") + self.product = value_ + self.product_nsprefix_ = child_.prefix + elif nodeName_ == "deliveryEvening": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "deliveryEvening") + ival_ = self.gds_validate_boolean(ival_, node, "deliveryEvening") + self.deliveryEvening = ival_ + self.deliveryEvening_nsprefix_ = child_.prefix + elif nodeName_ == "deliveryOnSaturday": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "deliveryOnSaturday") + ival_ = self.gds_validate_boolean(ival_, node, "deliveryOnSaturday") + self.deliveryOnSaturday = ival_ + self.deliveryOnSaturday_nsprefix_ = child_.prefix + elif nodeName_ == "pickupOnSaturday": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "pickupOnSaturday") + ival_ = self.gds_validate_boolean(ival_, node, "pickupOnSaturday") + self.pickupOnSaturday = ival_ + self.pickupOnSaturday_nsprefix_ = child_.prefix + elif nodeName_ == "collectOnDelivery": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "collectOnDelivery") + ival_ = self.gds_validate_boolean(ival_, node, "collectOnDelivery") + self.collectOnDelivery = ival_ + self.collectOnDelivery_nsprefix_ = child_.prefix + elif nodeName_ == "collectOnDeliveryValue" and child_.text: + sval_ = child_.text + fval_ = self.gds_parse_float(sval_, node, "collectOnDeliveryValue") + fval_ = self.gds_validate_float(fval_, node, "collectOnDeliveryValue") + self.collectOnDeliveryValue = fval_ + self.collectOnDeliveryValue_nsprefix_ = child_.prefix + elif nodeName_ == "collectOnDeliveryForm": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "collectOnDeliveryForm") + value_ = self.gds_validate_string(value_, node, "collectOnDeliveryForm") + self.collectOnDeliveryForm = value_ + self.collectOnDeliveryForm_nsprefix_ = child_.prefix + elif nodeName_ == "collectOnDeliveryReference": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "collectOnDeliveryReference") + value_ = self.gds_validate_string( + value_, node, "collectOnDeliveryReference" + ) + self.collectOnDeliveryReference = value_ + self.collectOnDeliveryReference_nsprefix_ = child_.prefix + elif nodeName_ == "insurance": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "insurance") + ival_ = self.gds_validate_boolean(ival_, node, "insurance") + self.insurance = ival_ + self.insurance_nsprefix_ = child_.prefix + elif nodeName_ == "insuranceValue" and child_.text: + sval_ = child_.text + fval_ = self.gds_parse_float(sval_, node, "insuranceValue") + fval_ = self.gds_validate_float(fval_, node, "insuranceValue") + self.insuranceValue = fval_ + self.insuranceValue_nsprefix_ = child_.prefix + elif nodeName_ == "returnOnDelivery": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "returnOnDelivery") + ival_ = self.gds_validate_boolean(ival_, node, "returnOnDelivery") + self.returnOnDelivery = ival_ + self.returnOnDelivery_nsprefix_ = child_.prefix + elif nodeName_ == "returnOnDeliveryReference": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "returnOnDeliveryReference") + value_ = self.gds_validate_string(value_, node, "returnOnDeliveryReference") + self.returnOnDeliveryReference = value_ + self.returnOnDeliveryReference_nsprefix_ = child_.prefix + elif nodeName_ == "proofOfDelivery": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "proofOfDelivery") + ival_ = self.gds_validate_boolean(ival_, node, "proofOfDelivery") + self.proofOfDelivery = ival_ + self.proofOfDelivery_nsprefix_ = child_.prefix + elif nodeName_ == "selfCollect": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "selfCollect") + ival_ = self.gds_validate_boolean(ival_, node, "selfCollect") + self.selfCollect = ival_ + self.selfCollect_nsprefix_ = child_.prefix + elif nodeName_ == "predeliveryInformation": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "predeliveryInformation") + ival_ = self.gds_validate_boolean(ival_, node, "predeliveryInformation") + self.predeliveryInformation = ival_ + self.predeliveryInformation_nsprefix_ = child_.prefix + elif nodeName_ == "deliveryToNeighbour": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "deliveryToNeighbour") + ival_ = self.gds_validate_boolean(ival_, node, "deliveryToNeighbour") + self.deliveryToNeighbour = ival_ + self.deliveryToNeighbour_nsprefix_ = child_.prefix + elif nodeName_ == "preaviso": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "preaviso") + ival_ = self.gds_validate_boolean(ival_, node, "preaviso") + self.preaviso = ival_ + self.preaviso_nsprefix_ = child_.prefix + elif nodeName_ == "additionalService": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "additionalService") + ival_ = self.gds_validate_boolean(ival_, node, "additionalService") + self.additionalService = ival_ + self.additionalService_nsprefix_ = child_.prefix + + +# end class ServiceDefinition + + +class CustomsItemData(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + nameEn=None, + namePl=None, + quantity=None, + weight=None, + value=None, + tariffCode=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.nameEn = nameEn + self.nameEn_nsprefix_ = None + self.namePl = namePl + self.namePl_nsprefix_ = None + self.quantity = quantity + self.quantity_nsprefix_ = None + self.weight = weight + self.weight_nsprefix_ = None + self.value = value + self.value_nsprefix_ = None + self.tariffCode = tariffCode + self.tariffCode_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, CustomsItemData) + if subclass is not None: + return subclass(*args_, **kwargs_) + if CustomsItemData.subclass: + return CustomsItemData.subclass(*args_, **kwargs_) + else: + return CustomsItemData(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_nameEn(self): + return self.nameEn + + def set_nameEn(self, nameEn): + self.nameEn = nameEn + + def get_namePl(self): + return self.namePl + + def set_namePl(self, namePl): + self.namePl = namePl + + def get_quantity(self): + return self.quantity + + def set_quantity(self, quantity): + self.quantity = quantity + + def get_weight(self): + return self.weight + + def set_weight(self, weight): + self.weight = weight + + def get_value(self): + return self.value + + def set_value(self, value): + self.value = value + + def get_tariffCode(self): + return self.tariffCode + + def set_tariffCode(self, tariffCode): + self.tariffCode = tariffCode + + def _hasContent(self): + if ( + self.nameEn is not None + or self.namePl is not None + or self.quantity is not None + or self.weight is not None + or self.value is not None + or self.tariffCode is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="CustomsItemData", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("CustomsItemData") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "CustomsItemData": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="CustomsItemData" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="CustomsItemData", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="CustomsItemData", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="CustomsItemData", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.nameEn is not None: + namespaceprefix_ = ( + self.nameEn_nsprefix_ + ":" + if (UseCapturedNS_ and self.nameEn_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%snameEn>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.nameEn), input_name="nameEn" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.namePl is not None: + namespaceprefix_ = ( + self.namePl_nsprefix_ + ":" + if (UseCapturedNS_ and self.namePl_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%snamePl>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.namePl), input_name="namePl" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.quantity is not None: + namespaceprefix_ = ( + self.quantity_nsprefix_ + ":" + if (UseCapturedNS_ and self.quantity_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%squantity>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.quantity), input_name="quantity" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.weight is not None: + namespaceprefix_ = ( + self.weight_nsprefix_ + ":" + if (UseCapturedNS_ and self.weight_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sweight>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.weight), input_name="weight" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.value is not None: + namespaceprefix_ = ( + self.value_nsprefix_ + ":" + if (UseCapturedNS_ and self.value_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%svalue>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.value), input_name="value" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.tariffCode is not None: + namespaceprefix_ = ( + self.tariffCode_nsprefix_ + ":" + if (UseCapturedNS_ and self.tariffCode_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%stariffCode>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.tariffCode), input_name="tariffCode" + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "nameEn": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "nameEn") + value_ = self.gds_validate_string(value_, node, "nameEn") + self.nameEn = value_ + self.nameEn_nsprefix_ = child_.prefix + elif nodeName_ == "namePl": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "namePl") + value_ = self.gds_validate_string(value_, node, "namePl") + self.namePl = value_ + self.namePl_nsprefix_ = child_.prefix + elif nodeName_ == "quantity": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "quantity") + value_ = self.gds_validate_string(value_, node, "quantity") + self.quantity = value_ + self.quantity_nsprefix_ = child_.prefix + elif nodeName_ == "weight": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "weight") + value_ = self.gds_validate_string(value_, node, "weight") + self.weight = value_ + self.weight_nsprefix_ = child_.prefix + elif nodeName_ == "value": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "value") + value_ = self.gds_validate_string(value_, node, "value") + self.value = value_ + self.value_nsprefix_ = child_.prefix + elif nodeName_ == "tariffCode": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "tariffCode") + value_ = self.gds_validate_string(value_, node, "tariffCode") + self.tariffCode = value_ + self.tariffCode_nsprefix_ = child_.prefix + + +# end class CustomsItemData + + +class ArrayOfCustomsitemdata(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, item=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + if item is None: + self.item = [] + else: + self.item = item + self.item_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, ArrayOfCustomsitemdata + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ArrayOfCustomsitemdata.subclass: + return ArrayOfCustomsitemdata.subclass(*args_, **kwargs_) + else: + return ArrayOfCustomsitemdata(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_item(self): + return self.item + + def set_item(self, item): + self.item = item + + def add_item(self, value): + self.item.append(value) + + def insert_item_at(self, index, value): + self.item.insert(index, value) + + def replace_item_at(self, index, value): + self.item[index] = value + + def _hasContent(self): + if self.item: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfCustomsitemdata", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ArrayOfCustomsitemdata") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ArrayOfCustomsitemdata": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="ArrayOfCustomsitemdata", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ArrayOfCustomsitemdata", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ArrayOfCustomsitemdata", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfCustomsitemdata", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + for item_ in self.item: + namespaceprefix_ = ( + self.item_nsprefix_ + ":" + if (UseCapturedNS_ and self.item_nsprefix_) + else "" + ) + item_.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="item", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "item": + obj_ = CustomsItemData.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.item.append(obj_) + obj_.original_tagname_ = "item" + + +# end class ArrayOfCustomsitemdata + + +class CustomsAgreementData(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + notExceedValue=None, + notProhibitedGoods=None, + notRestrictedGoods=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.notExceedValue = notExceedValue + self.notExceedValue_nsprefix_ = None + self.notProhibitedGoods = notProhibitedGoods + self.notProhibitedGoods_nsprefix_ = None + self.notRestrictedGoods = notRestrictedGoods + self.notRestrictedGoods_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, CustomsAgreementData + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if CustomsAgreementData.subclass: + return CustomsAgreementData.subclass(*args_, **kwargs_) + else: + return CustomsAgreementData(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_notExceedValue(self): + return self.notExceedValue + + def set_notExceedValue(self, notExceedValue): + self.notExceedValue = notExceedValue + + def get_notProhibitedGoods(self): + return self.notProhibitedGoods + + def set_notProhibitedGoods(self, notProhibitedGoods): + self.notProhibitedGoods = notProhibitedGoods + + def get_notRestrictedGoods(self): + return self.notRestrictedGoods + + def set_notRestrictedGoods(self, notRestrictedGoods): + self.notRestrictedGoods = notRestrictedGoods + + def _hasContent(self): + if ( + self.notExceedValue is not None + or self.notProhibitedGoods is not None + or self.notRestrictedGoods is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="CustomsAgreementData", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("CustomsAgreementData") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "CustomsAgreementData": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="CustomsAgreementData", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="CustomsAgreementData", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="CustomsAgreementData", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="CustomsAgreementData", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.notExceedValue is not None: + namespaceprefix_ = ( + self.notExceedValue_nsprefix_ + ":" + if (UseCapturedNS_ and self.notExceedValue_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%snotExceedValue>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.notExceedValue, input_name="notExceedValue" + ), + namespaceprefix_, + eol_, + ) + ) + if self.notProhibitedGoods is not None: + namespaceprefix_ = ( + self.notProhibitedGoods_nsprefix_ + ":" + if (UseCapturedNS_ and self.notProhibitedGoods_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%snotProhibitedGoods>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.notProhibitedGoods, input_name="notProhibitedGoods" + ), + namespaceprefix_, + eol_, + ) + ) + if self.notRestrictedGoods is not None: + namespaceprefix_ = ( + self.notRestrictedGoods_nsprefix_ + ":" + if (UseCapturedNS_ and self.notRestrictedGoods_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%snotRestrictedGoods>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.notRestrictedGoods, input_name="notRestrictedGoods" + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "notExceedValue": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "notExceedValue") + ival_ = self.gds_validate_boolean(ival_, node, "notExceedValue") + self.notExceedValue = ival_ + self.notExceedValue_nsprefix_ = child_.prefix + elif nodeName_ == "notProhibitedGoods": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "notProhibitedGoods") + ival_ = self.gds_validate_boolean(ival_, node, "notProhibitedGoods") + self.notProhibitedGoods = ival_ + self.notProhibitedGoods_nsprefix_ = child_.prefix + elif nodeName_ == "notRestrictedGoods": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "notRestrictedGoods") + ival_ = self.gds_validate_boolean(ival_, node, "notRestrictedGoods") + self.notRestrictedGoods = ival_ + self.notRestrictedGoods_nsprefix_ = child_.prefix + + +# end class CustomsAgreementData + + +class CustomsData(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + customsType=None, + firstName=None, + secondaryName=None, + costsOfShipment=None, + currency=None, + nipNr=None, + eoriNr=None, + vatRegistrationNumber=None, + categoryOfItem=None, + invoiceNr=None, + invoice=None, + invoiceDate=None, + countryOfOrigin=None, + additionalInfo=None, + grossWeight=None, + customsItem=None, + customAgreements=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.customsType = customsType + self.customsType_nsprefix_ = None + self.firstName = firstName + self.firstName_nsprefix_ = None + self.secondaryName = secondaryName + self.secondaryName_nsprefix_ = None + self.costsOfShipment = costsOfShipment + self.costsOfShipment_nsprefix_ = None + self.currency = currency + self.currency_nsprefix_ = None + self.nipNr = nipNr + self.nipNr_nsprefix_ = None + self.eoriNr = eoriNr + self.eoriNr_nsprefix_ = None + self.vatRegistrationNumber = vatRegistrationNumber + self.vatRegistrationNumber_nsprefix_ = None + self.categoryOfItem = categoryOfItem + self.categoryOfItem_nsprefix_ = None + self.invoiceNr = invoiceNr + self.invoiceNr_nsprefix_ = None + self.invoice = invoice + self.invoice_nsprefix_ = None + self.invoiceDate = invoiceDate + self.invoiceDate_nsprefix_ = None + self.countryOfOrigin = countryOfOrigin + self.countryOfOrigin_nsprefix_ = None + self.additionalInfo = additionalInfo + self.additionalInfo_nsprefix_ = None + self.grossWeight = grossWeight + self.grossWeight_nsprefix_ = None + self.customsItem = customsItem + self.customsItem_nsprefix_ = "tns" + self.customAgreements = customAgreements + self.customAgreements_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, CustomsData) + if subclass is not None: + return subclass(*args_, **kwargs_) + if CustomsData.subclass: + return CustomsData.subclass(*args_, **kwargs_) + else: + return CustomsData(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_customsType(self): + return self.customsType + + def set_customsType(self, customsType): + self.customsType = customsType + + def get_firstName(self): + return self.firstName + + def set_firstName(self, firstName): + self.firstName = firstName + + def get_secondaryName(self): + return self.secondaryName + + def set_secondaryName(self, secondaryName): + self.secondaryName = secondaryName + + def get_costsOfShipment(self): + return self.costsOfShipment + + def set_costsOfShipment(self, costsOfShipment): + self.costsOfShipment = costsOfShipment + + def get_currency(self): + return self.currency + + def set_currency(self, currency): + self.currency = currency + + def get_nipNr(self): + return self.nipNr + + def set_nipNr(self, nipNr): + self.nipNr = nipNr + + def get_eoriNr(self): + return self.eoriNr + + def set_eoriNr(self, eoriNr): + self.eoriNr = eoriNr + + def get_vatRegistrationNumber(self): + return self.vatRegistrationNumber + + def set_vatRegistrationNumber(self, vatRegistrationNumber): + self.vatRegistrationNumber = vatRegistrationNumber + + def get_categoryOfItem(self): + return self.categoryOfItem + + def set_categoryOfItem(self, categoryOfItem): + self.categoryOfItem = categoryOfItem + + def get_invoiceNr(self): + return self.invoiceNr + + def set_invoiceNr(self, invoiceNr): + self.invoiceNr = invoiceNr + + def get_invoice(self): + return self.invoice + + def set_invoice(self, invoice): + self.invoice = invoice + + def get_invoiceDate(self): + return self.invoiceDate + + def set_invoiceDate(self, invoiceDate): + self.invoiceDate = invoiceDate + + def get_countryOfOrigin(self): + return self.countryOfOrigin + + def set_countryOfOrigin(self, countryOfOrigin): + self.countryOfOrigin = countryOfOrigin + + def get_additionalInfo(self): + return self.additionalInfo + + def set_additionalInfo(self, additionalInfo): + self.additionalInfo = additionalInfo + + def get_grossWeight(self): + return self.grossWeight + + def set_grossWeight(self, grossWeight): + self.grossWeight = grossWeight + + def get_customsItem(self): + return self.customsItem + + def set_customsItem(self, customsItem): + self.customsItem = customsItem + + def get_customAgreements(self): + return self.customAgreements + + def set_customAgreements(self, customAgreements): + self.customAgreements = customAgreements + + def _hasContent(self): + if ( + self.customsType is not None + or self.firstName is not None + or self.secondaryName is not None + or self.costsOfShipment is not None + or self.currency is not None + or self.nipNr is not None + or self.eoriNr is not None + or self.vatRegistrationNumber is not None + or self.categoryOfItem is not None + or self.invoiceNr is not None + or self.invoice is not None + or self.invoiceDate is not None + or self.countryOfOrigin is not None + or self.additionalInfo is not None + or self.grossWeight is not None + or self.customsItem is not None + or self.customAgreements is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="CustomsData", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("CustomsData") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "CustomsData": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="CustomsData" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="CustomsData", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="CustomsData", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="CustomsData", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.customsType is not None: + namespaceprefix_ = ( + self.customsType_nsprefix_ + ":" + if (UseCapturedNS_ and self.customsType_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scustomsType>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.customsType), input_name="customsType" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.firstName is not None: + namespaceprefix_ = ( + self.firstName_nsprefix_ + ":" + if (UseCapturedNS_ and self.firstName_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sfirstName>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.firstName), input_name="firstName" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.secondaryName is not None: + namespaceprefix_ = ( + self.secondaryName_nsprefix_ + ":" + if (UseCapturedNS_ and self.secondaryName_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%ssecondaryName>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.secondaryName), input_name="secondaryName" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.costsOfShipment is not None: + namespaceprefix_ = ( + self.costsOfShipment_nsprefix_ + ":" + if (UseCapturedNS_ and self.costsOfShipment_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scostsOfShipment>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.costsOfShipment), + input_name="costsOfShipment", + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.currency is not None: + namespaceprefix_ = ( + self.currency_nsprefix_ + ":" + if (UseCapturedNS_ and self.currency_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scurrency>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.currency), input_name="currency" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.nipNr is not None: + namespaceprefix_ = ( + self.nipNr_nsprefix_ + ":" + if (UseCapturedNS_ and self.nipNr_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%snipNr>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.nipNr), input_name="nipNr" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.eoriNr is not None: + namespaceprefix_ = ( + self.eoriNr_nsprefix_ + ":" + if (UseCapturedNS_ and self.eoriNr_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%seoriNr>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.eoriNr), input_name="eoriNr" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.vatRegistrationNumber is not None: + namespaceprefix_ = ( + self.vatRegistrationNumber_nsprefix_ + ":" + if (UseCapturedNS_ and self.vatRegistrationNumber_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%svatRegistrationNumber>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.vatRegistrationNumber), + input_name="vatRegistrationNumber", + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.categoryOfItem is not None: + namespaceprefix_ = ( + self.categoryOfItem_nsprefix_ + ":" + if (UseCapturedNS_ and self.categoryOfItem_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scategoryOfItem>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.categoryOfItem), input_name="categoryOfItem" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.invoiceNr is not None: + namespaceprefix_ = ( + self.invoiceNr_nsprefix_ + ":" + if (UseCapturedNS_ and self.invoiceNr_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sinvoiceNr>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.invoiceNr), input_name="invoiceNr" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.invoice is not None: + namespaceprefix_ = ( + self.invoice_nsprefix_ + ":" + if (UseCapturedNS_ and self.invoice_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sinvoice>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.invoice), input_name="invoice" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.invoiceDate is not None: + namespaceprefix_ = ( + self.invoiceDate_nsprefix_ + ":" + if (UseCapturedNS_ and self.invoiceDate_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sinvoiceDate>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.invoiceDate), input_name="invoiceDate" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.countryOfOrigin is not None: + namespaceprefix_ = ( + self.countryOfOrigin_nsprefix_ + ":" + if (UseCapturedNS_ and self.countryOfOrigin_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scountryOfOrigin>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.countryOfOrigin), + input_name="countryOfOrigin", + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.additionalInfo is not None: + namespaceprefix_ = ( + self.additionalInfo_nsprefix_ + ":" + if (UseCapturedNS_ and self.additionalInfo_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sadditionalInfo>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.additionalInfo), input_name="additionalInfo" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.grossWeight is not None: + namespaceprefix_ = ( + self.grossWeight_nsprefix_ + ":" + if (UseCapturedNS_ and self.grossWeight_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sgrossWeight>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.grossWeight), input_name="grossWeight" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.customsItem is not None: + namespaceprefix_ = ( + self.customsItem_nsprefix_ + ":" + if (UseCapturedNS_ and self.customsItem_nsprefix_) + else "" + ) + self.customsItem.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="customsItem", + pretty_print=pretty_print, + ) + if self.customAgreements is not None: + namespaceprefix_ = ( + self.customAgreements_nsprefix_ + ":" + if (UseCapturedNS_ and self.customAgreements_nsprefix_) + else "" + ) + self.customAgreements.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="customAgreements", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "customsType": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "customsType") + value_ = self.gds_validate_string(value_, node, "customsType") + self.customsType = value_ + self.customsType_nsprefix_ = child_.prefix + elif nodeName_ == "firstName": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "firstName") + value_ = self.gds_validate_string(value_, node, "firstName") + self.firstName = value_ + self.firstName_nsprefix_ = child_.prefix + elif nodeName_ == "secondaryName": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "secondaryName") + value_ = self.gds_validate_string(value_, node, "secondaryName") + self.secondaryName = value_ + self.secondaryName_nsprefix_ = child_.prefix + elif nodeName_ == "costsOfShipment": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "costsOfShipment") + value_ = self.gds_validate_string(value_, node, "costsOfShipment") + self.costsOfShipment = value_ + self.costsOfShipment_nsprefix_ = child_.prefix + elif nodeName_ == "currency": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "currency") + value_ = self.gds_validate_string(value_, node, "currency") + self.currency = value_ + self.currency_nsprefix_ = child_.prefix + elif nodeName_ == "nipNr": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "nipNr") + value_ = self.gds_validate_string(value_, node, "nipNr") + self.nipNr = value_ + self.nipNr_nsprefix_ = child_.prefix + elif nodeName_ == "eoriNr": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "eoriNr") + value_ = self.gds_validate_string(value_, node, "eoriNr") + self.eoriNr = value_ + self.eoriNr_nsprefix_ = child_.prefix + elif nodeName_ == "vatRegistrationNumber": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "vatRegistrationNumber") + value_ = self.gds_validate_string(value_, node, "vatRegistrationNumber") + self.vatRegistrationNumber = value_ + self.vatRegistrationNumber_nsprefix_ = child_.prefix + elif nodeName_ == "categoryOfItem": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "categoryOfItem") + value_ = self.gds_validate_string(value_, node, "categoryOfItem") + self.categoryOfItem = value_ + self.categoryOfItem_nsprefix_ = child_.prefix + elif nodeName_ == "invoiceNr": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "invoiceNr") + value_ = self.gds_validate_string(value_, node, "invoiceNr") + self.invoiceNr = value_ + self.invoiceNr_nsprefix_ = child_.prefix + elif nodeName_ == "invoice": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "invoice") + value_ = self.gds_validate_string(value_, node, "invoice") + self.invoice = value_ + self.invoice_nsprefix_ = child_.prefix + elif nodeName_ == "invoiceDate": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "invoiceDate") + value_ = self.gds_validate_string(value_, node, "invoiceDate") + self.invoiceDate = value_ + self.invoiceDate_nsprefix_ = child_.prefix + elif nodeName_ == "countryOfOrigin": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "countryOfOrigin") + value_ = self.gds_validate_string(value_, node, "countryOfOrigin") + self.countryOfOrigin = value_ + self.countryOfOrigin_nsprefix_ = child_.prefix + elif nodeName_ == "additionalInfo": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "additionalInfo") + value_ = self.gds_validate_string(value_, node, "additionalInfo") + self.additionalInfo = value_ + self.additionalInfo_nsprefix_ = child_.prefix + elif nodeName_ == "grossWeight": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "grossWeight") + value_ = self.gds_validate_string(value_, node, "grossWeight") + self.grossWeight = value_ + self.grossWeight_nsprefix_ = child_.prefix + elif nodeName_ == "customsItem": + obj_ = ArrayOfCustomsitemdata.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.customsItem = obj_ + obj_.original_tagname_ = "customsItem" + elif nodeName_ == "customAgreements": + obj_ = CustomsAgreementData.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.customAgreements = obj_ + obj_.original_tagname_ = "customAgreements" + + +# end class CustomsData + + +class ShipmentFullData(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + shipper=None, + receiver=None, + neighbour=None, + pieceList=None, + payment=None, + service=None, + shipmentDate=None, + skipRestrictionCheck=None, + comment=None, + content=None, + reference=None, + shipmentId=None, + created=None, + orderStatus=None, + customs=None, + wayBill=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.shipper = shipper + self.shipper_nsprefix_ = "tns" + self.receiver = receiver + self.receiver_nsprefix_ = "tns" + self.neighbour = neighbour + self.neighbour_nsprefix_ = "tns" + self.pieceList = pieceList + self.pieceList_nsprefix_ = "tns" + self.payment = payment + self.payment_nsprefix_ = "tns" + self.service = service + self.service_nsprefix_ = "tns" + self.shipmentDate = shipmentDate + self.shipmentDate_nsprefix_ = None + self.skipRestrictionCheck = skipRestrictionCheck + self.skipRestrictionCheck_nsprefix_ = None + self.comment = comment + self.comment_nsprefix_ = None + self.content = content + self.content_nsprefix_ = None + self.reference = reference + self.reference_nsprefix_ = None + self.shipmentId = shipmentId + self.shipmentId_nsprefix_ = None + self.created = created + self.created_nsprefix_ = None + self.orderStatus = orderStatus + self.orderStatus_nsprefix_ = None + self.customs = customs + self.customs_nsprefix_ = "tns" + self.wayBill = wayBill + self.wayBill_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, ShipmentFullData) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ShipmentFullData.subclass: + return ShipmentFullData.subclass(*args_, **kwargs_) + else: + return ShipmentFullData(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_shipper(self): + return self.shipper + + def set_shipper(self, shipper): + self.shipper = shipper + + def get_receiver(self): + return self.receiver + + def set_receiver(self, receiver): + self.receiver = receiver + + def get_neighbour(self): + return self.neighbour + + def set_neighbour(self, neighbour): + self.neighbour = neighbour + + def get_pieceList(self): + return self.pieceList + + def set_pieceList(self, pieceList): + self.pieceList = pieceList + + def get_payment(self): + return self.payment + + def set_payment(self, payment): + self.payment = payment + + def get_service(self): + return self.service + + def set_service(self, service): + self.service = service + + def get_shipmentDate(self): + return self.shipmentDate + + def set_shipmentDate(self, shipmentDate): + self.shipmentDate = shipmentDate + + def get_skipRestrictionCheck(self): + return self.skipRestrictionCheck + + def set_skipRestrictionCheck(self, skipRestrictionCheck): + self.skipRestrictionCheck = skipRestrictionCheck + + def get_comment(self): + return self.comment + + def set_comment(self, comment): + self.comment = comment + + def get_content(self): + return self.content + + def set_content(self, content): + self.content = content + + def get_reference(self): + return self.reference + + def set_reference(self, reference): + self.reference = reference + + def get_shipmentId(self): + return self.shipmentId + + def set_shipmentId(self, shipmentId): + self.shipmentId = shipmentId + + def get_created(self): + return self.created + + def set_created(self, created): + self.created = created + + def get_orderStatus(self): + return self.orderStatus + + def set_orderStatus(self, orderStatus): + self.orderStatus = orderStatus + + def get_customs(self): + return self.customs + + def set_customs(self, customs): + self.customs = customs + + def get_wayBill(self): + return self.wayBill + + def set_wayBill(self, wayBill): + self.wayBill = wayBill + + def _hasContent(self): + if ( + self.shipper is not None + or self.receiver is not None + or self.neighbour is not None + or self.pieceList is not None + or self.payment is not None + or self.service is not None + or self.shipmentDate is not None + or self.skipRestrictionCheck is not None + or self.comment is not None + or self.content is not None + or self.reference is not None + or self.shipmentId is not None + or self.created is not None + or self.orderStatus is not None + or self.customs is not None + or self.wayBill is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ShipmentFullData", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ShipmentFullData") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ShipmentFullData": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="ShipmentFullData", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ShipmentFullData", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ShipmentFullData", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ShipmentFullData", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.shipper is not None: + namespaceprefix_ = ( + self.shipper_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipper_nsprefix_) + else "" + ) + self.shipper.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="shipper", + pretty_print=pretty_print, + ) + if self.receiver is not None: + namespaceprefix_ = ( + self.receiver_nsprefix_ + ":" + if (UseCapturedNS_ and self.receiver_nsprefix_) + else "" + ) + self.receiver.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="receiver", + pretty_print=pretty_print, + ) + if self.neighbour is not None: + namespaceprefix_ = ( + self.neighbour_nsprefix_ + ":" + if (UseCapturedNS_ and self.neighbour_nsprefix_) + else "" + ) + self.neighbour.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="neighbour", + pretty_print=pretty_print, + ) + if self.pieceList is not None: + namespaceprefix_ = ( + self.pieceList_nsprefix_ + ":" + if (UseCapturedNS_ and self.pieceList_nsprefix_) + else "" + ) + self.pieceList.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="pieceList", + pretty_print=pretty_print, + ) + if self.payment is not None: + namespaceprefix_ = ( + self.payment_nsprefix_ + ":" + if (UseCapturedNS_ and self.payment_nsprefix_) + else "" + ) + self.payment.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="payment", + pretty_print=pretty_print, + ) + if self.service is not None: + namespaceprefix_ = ( + self.service_nsprefix_ + ":" + if (UseCapturedNS_ and self.service_nsprefix_) + else "" + ) + self.service.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="service", + pretty_print=pretty_print, + ) + if self.shipmentDate is not None: + namespaceprefix_ = ( + self.shipmentDate_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipmentDate_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sshipmentDate>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.shipmentDate), input_name="shipmentDate" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.skipRestrictionCheck is not None: + namespaceprefix_ = ( + self.skipRestrictionCheck_nsprefix_ + ":" + if (UseCapturedNS_ and self.skipRestrictionCheck_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sskipRestrictionCheck>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.skipRestrictionCheck, input_name="skipRestrictionCheck" + ), + namespaceprefix_, + eol_, + ) + ) + if self.comment is not None: + namespaceprefix_ = ( + self.comment_nsprefix_ + ":" + if (UseCapturedNS_ and self.comment_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scomment>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.comment), input_name="comment" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.content is not None: + namespaceprefix_ = ( + self.content_nsprefix_ + ":" + if (UseCapturedNS_ and self.content_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scontent>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.content), input_name="content" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.reference is not None: + namespaceprefix_ = ( + self.reference_nsprefix_ + ":" + if (UseCapturedNS_ and self.reference_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sreference>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.reference), input_name="reference" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.shipmentId is not None: + namespaceprefix_ = ( + self.shipmentId_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipmentId_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sshipmentId>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.shipmentId, input_name="shipmentId"), + namespaceprefix_, + eol_, + ) + ) + if self.created is not None: + namespaceprefix_ = ( + self.created_nsprefix_ + ":" + if (UseCapturedNS_ and self.created_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%screated>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.created), input_name="created" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.orderStatus is not None: + namespaceprefix_ = ( + self.orderStatus_nsprefix_ + ":" + if (UseCapturedNS_ and self.orderStatus_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sorderStatus>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.orderStatus), input_name="orderStatus" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.customs is not None: + namespaceprefix_ = ( + self.customs_nsprefix_ + ":" + if (UseCapturedNS_ and self.customs_nsprefix_) + else "" + ) + self.customs.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="customs", + pretty_print=pretty_print, + ) + if self.wayBill is not None: + namespaceprefix_ = ( + self.wayBill_nsprefix_ + ":" + if (UseCapturedNS_ and self.wayBill_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%swayBill>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.wayBill), input_name="wayBill" + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "shipper": + obj_ = AddressData.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.shipper = obj_ + obj_.original_tagname_ = "shipper" + elif nodeName_ == "receiver": + obj_ = ReceiverAddressData.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.receiver = obj_ + obj_.original_tagname_ = "receiver" + elif nodeName_ == "neighbour": + obj_ = NeighbourAddress.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.neighbour = obj_ + obj_.original_tagname_ = "neighbour" + elif nodeName_ == "pieceList": + obj_ = ArrayOfPiecedefinition.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.pieceList = obj_ + obj_.original_tagname_ = "pieceList" + elif nodeName_ == "payment": + obj_ = PaymentData.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.payment = obj_ + obj_.original_tagname_ = "payment" + elif nodeName_ == "service": + obj_ = ServiceDefinition.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.service = obj_ + obj_.original_tagname_ = "service" + elif nodeName_ == "shipmentDate": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "shipmentDate") + value_ = self.gds_validate_string(value_, node, "shipmentDate") + self.shipmentDate = value_ + self.shipmentDate_nsprefix_ = child_.prefix + elif nodeName_ == "skipRestrictionCheck": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "skipRestrictionCheck") + ival_ = self.gds_validate_boolean(ival_, node, "skipRestrictionCheck") + self.skipRestrictionCheck = ival_ + self.skipRestrictionCheck_nsprefix_ = child_.prefix + elif nodeName_ == "comment": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "comment") + value_ = self.gds_validate_string(value_, node, "comment") + self.comment = value_ + self.comment_nsprefix_ = child_.prefix + elif nodeName_ == "content": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "content") + value_ = self.gds_validate_string(value_, node, "content") + self.content = value_ + self.content_nsprefix_ = child_.prefix + elif nodeName_ == "reference": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "reference") + value_ = self.gds_validate_string(value_, node, "reference") + self.reference = value_ + self.reference_nsprefix_ = child_.prefix + elif nodeName_ == "shipmentId" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "shipmentId") + ival_ = self.gds_validate_integer(ival_, node, "shipmentId") + self.shipmentId = ival_ + self.shipmentId_nsprefix_ = child_.prefix + elif nodeName_ == "created": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "created") + value_ = self.gds_validate_string(value_, node, "created") + self.created = value_ + self.created_nsprefix_ = child_.prefix + elif nodeName_ == "orderStatus": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "orderStatus") + value_ = self.gds_validate_string(value_, node, "orderStatus") + self.orderStatus = value_ + self.orderStatus_nsprefix_ = child_.prefix + elif nodeName_ == "customs": + obj_ = CustomsData.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.customs = obj_ + obj_.original_tagname_ = "customs" + elif nodeName_ == "wayBill": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "wayBill") + value_ = self.gds_validate_string(value_, node, "wayBill") + self.wayBill = value_ + self.wayBill_nsprefix_ = child_.prefix + + +# end class ShipmentFullData + + +class ArrayOfShipmentfulldata(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, item=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + if item is None: + self.item = [] + else: + self.item = item + self.item_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, ArrayOfShipmentfulldata + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ArrayOfShipmentfulldata.subclass: + return ArrayOfShipmentfulldata.subclass(*args_, **kwargs_) + else: + return ArrayOfShipmentfulldata(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_item(self): + return self.item + + def set_item(self, item): + self.item = item + + def add_item(self, value): + self.item.append(value) + + def insert_item_at(self, index, value): + self.item.insert(index, value) + + def replace_item_at(self, index, value): + self.item[index] = value + + def _hasContent(self): + if self.item: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfShipmentfulldata", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ArrayOfShipmentfulldata") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ArrayOfShipmentfulldata": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="ArrayOfShipmentfulldata", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ArrayOfShipmentfulldata", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ArrayOfShipmentfulldata", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfShipmentfulldata", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + for item_ in self.item: + namespaceprefix_ = ( + self.item_nsprefix_ + ":" + if (UseCapturedNS_ and self.item_nsprefix_) + else "" + ) + item_.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="item", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "item": + obj_ = ShipmentFullData.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.item.append(obj_) + obj_.original_tagname_ = "item" + + +# end class ArrayOfShipmentfulldata + + +class createShipments(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, authData=None, shipments=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.authData = authData + self.authData_nsprefix_ = "tns" + self.shipments = shipments + self.shipments_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, createShipments) + if subclass is not None: + return subclass(*args_, **kwargs_) + if createShipments.subclass: + return createShipments.subclass(*args_, **kwargs_) + else: + return createShipments(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_authData(self): + return self.authData + + def set_authData(self, authData): + self.authData = authData + + def get_shipments(self): + return self.shipments + + def set_shipments(self, shipments): + self.shipments = shipments + + def _hasContent(self): + if self.authData is not None or self.shipments is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="createShipments", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("createShipments") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "createShipments": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="createShipments" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="createShipments", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="createShipments", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="createShipments", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.authData is not None: + namespaceprefix_ = ( + self.authData_nsprefix_ + ":" + if (UseCapturedNS_ and self.authData_nsprefix_) + else "" + ) + self.authData.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="authData", + pretty_print=pretty_print, + ) + if self.shipments is not None: + namespaceprefix_ = ( + self.shipments_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipments_nsprefix_) + else "" + ) + self.shipments.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="shipments", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "authData": + obj_ = AuthData.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.authData = obj_ + obj_.original_tagname_ = "authData" + elif nodeName_ == "shipments": + obj_ = ArrayOfShipmentfulldata.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.shipments = obj_ + obj_.original_tagname_ = "shipments" + + +# end class createShipments + + +class ShipmentBasicData(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + shipmentId=None, + created=None, + shipper=None, + receiver=None, + orderStatus=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.shipmentId = shipmentId + self.shipmentId_nsprefix_ = None + self.created = created + self.created_nsprefix_ = None + self.shipper = shipper + self.shipper_nsprefix_ = "tns" + self.receiver = receiver + self.receiver_nsprefix_ = "tns" + self.orderStatus = orderStatus + self.orderStatus_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, ShipmentBasicData) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ShipmentBasicData.subclass: + return ShipmentBasicData.subclass(*args_, **kwargs_) + else: + return ShipmentBasicData(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_shipmentId(self): + return self.shipmentId + + def set_shipmentId(self, shipmentId): + self.shipmentId = shipmentId + + def get_created(self): + return self.created + + def set_created(self, created): + self.created = created + + def get_shipper(self): + return self.shipper + + def set_shipper(self, shipper): + self.shipper = shipper + + def get_receiver(self): + return self.receiver + + def set_receiver(self, receiver): + self.receiver = receiver + + def get_orderStatus(self): + return self.orderStatus + + def set_orderStatus(self, orderStatus): + self.orderStatus = orderStatus + + def _hasContent(self): + if ( + self.shipmentId is not None + or self.created is not None + or self.shipper is not None + or self.receiver is not None + or self.orderStatus is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ShipmentBasicData", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ShipmentBasicData") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ShipmentBasicData": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="ShipmentBasicData", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ShipmentBasicData", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ShipmentBasicData", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ShipmentBasicData", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.shipmentId is not None: + namespaceprefix_ = ( + self.shipmentId_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipmentId_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sshipmentId>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.shipmentId), input_name="shipmentId" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.created is not None: + namespaceprefix_ = ( + self.created_nsprefix_ + ":" + if (UseCapturedNS_ and self.created_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%screated>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.created), input_name="created" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.shipper is not None: + namespaceprefix_ = ( + self.shipper_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipper_nsprefix_) + else "" + ) + self.shipper.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="shipper", + pretty_print=pretty_print, + ) + if self.receiver is not None: + namespaceprefix_ = ( + self.receiver_nsprefix_ + ":" + if (UseCapturedNS_ and self.receiver_nsprefix_) + else "" + ) + self.receiver.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="receiver", + pretty_print=pretty_print, + ) + if self.orderStatus is not None: + namespaceprefix_ = ( + self.orderStatus_nsprefix_ + ":" + if (UseCapturedNS_ and self.orderStatus_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sorderStatus>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.orderStatus), input_name="orderStatus" + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "shipmentId": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "shipmentId") + value_ = self.gds_validate_string(value_, node, "shipmentId") + self.shipmentId = value_ + self.shipmentId_nsprefix_ = child_.prefix + elif nodeName_ == "created": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "created") + value_ = self.gds_validate_string(value_, node, "created") + self.created = value_ + self.created_nsprefix_ = child_.prefix + elif nodeName_ == "shipper": + obj_ = AddressData.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.shipper = obj_ + obj_.original_tagname_ = "shipper" + elif nodeName_ == "receiver": + obj_ = AddressData.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.receiver = obj_ + obj_.original_tagname_ = "receiver" + elif nodeName_ == "orderStatus": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "orderStatus") + value_ = self.gds_validate_string(value_, node, "orderStatus") + self.orderStatus = value_ + self.orderStatus_nsprefix_ = child_.prefix + + +# end class ShipmentBasicData + + +class ArrayOfShipmentbasicdata(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, item=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + if item is None: + self.item = [] + else: + self.item = item + self.item_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, ArrayOfShipmentbasicdata + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ArrayOfShipmentbasicdata.subclass: + return ArrayOfShipmentbasicdata.subclass(*args_, **kwargs_) + else: + return ArrayOfShipmentbasicdata(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_item(self): + return self.item + + def set_item(self, item): + self.item = item + + def add_item(self, value): + self.item.append(value) + + def insert_item_at(self, index, value): + self.item.insert(index, value) + + def replace_item_at(self, index, value): + self.item[index] = value + + def _hasContent(self): + if self.item: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfShipmentbasicdata", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ArrayOfShipmentbasicdata") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ArrayOfShipmentbasicdata": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="ArrayOfShipmentbasicdata", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ArrayOfShipmentbasicdata", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ArrayOfShipmentbasicdata", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfShipmentbasicdata", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + for item_ in self.item: + namespaceprefix_ = ( + self.item_nsprefix_ + ":" + if (UseCapturedNS_ and self.item_nsprefix_) + else "" + ) + item_.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="item", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "item": + obj_ = ShipmentBasicData.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.item.append(obj_) + obj_.original_tagname_ = "item" + + +# end class ArrayOfShipmentbasicdata + + +class createShipmentsResponse(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, createShipmentsResult=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.createShipmentsResult = createShipmentsResult + self.createShipmentsResult_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, createShipmentsResponse + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if createShipmentsResponse.subclass: + return createShipmentsResponse.subclass(*args_, **kwargs_) + else: + return createShipmentsResponse(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_createShipmentsResult(self): + return self.createShipmentsResult + + def set_createShipmentsResult(self, createShipmentsResult): + self.createShipmentsResult = createShipmentsResult + + def _hasContent(self): + if self.createShipmentsResult is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="createShipmentsResponse", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("createShipmentsResponse") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "createShipmentsResponse": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="createShipmentsResponse", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="createShipmentsResponse", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="createShipmentsResponse", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="createShipmentsResponse", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.createShipmentsResult is not None: + namespaceprefix_ = ( + self.createShipmentsResult_nsprefix_ + ":" + if (UseCapturedNS_ and self.createShipmentsResult_nsprefix_) + else "" + ) + self.createShipmentsResult.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="createShipmentsResult", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "createShipmentsResult": + obj_ = ArrayOfShipmentbasicdata.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.createShipmentsResult = obj_ + obj_.original_tagname_ = "createShipmentsResult" + + +# end class createShipmentsResponse + + +class ReturnItemToPrint(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + labelType=None, + shipmentId=None, + wayBill=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.labelType = labelType + self.labelType_nsprefix_ = None + self.shipmentId = shipmentId + self.shipmentId_nsprefix_ = None + self.wayBill = wayBill + self.wayBill_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, ReturnItemToPrint) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ReturnItemToPrint.subclass: + return ReturnItemToPrint.subclass(*args_, **kwargs_) + else: + return ReturnItemToPrint(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_labelType(self): + return self.labelType + + def set_labelType(self, labelType): + self.labelType = labelType + + def get_shipmentId(self): + return self.shipmentId + + def set_shipmentId(self, shipmentId): + self.shipmentId = shipmentId + + def get_wayBill(self): + return self.wayBill + + def set_wayBill(self, wayBill): + self.wayBill = wayBill + + def _hasContent(self): + if ( + self.labelType is not None + or self.shipmentId is not None + or self.wayBill is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ReturnItemToPrint", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ReturnItemToPrint") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ReturnItemToPrint": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="ReturnItemToPrint", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ReturnItemToPrint", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ReturnItemToPrint", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ReturnItemToPrint", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.labelType is not None: + namespaceprefix_ = ( + self.labelType_nsprefix_ + ":" + if (UseCapturedNS_ and self.labelType_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%slabelType>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.labelType), input_name="labelType" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.shipmentId is not None: + namespaceprefix_ = ( + self.shipmentId_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipmentId_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sshipmentId>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.shipmentId), input_name="shipmentId" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.wayBill is not None: + namespaceprefix_ = ( + self.wayBill_nsprefix_ + ":" + if (UseCapturedNS_ and self.wayBill_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%swayBill>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.wayBill), input_name="wayBill" + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "labelType": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "labelType") + value_ = self.gds_validate_string(value_, node, "labelType") + self.labelType = value_ + self.labelType_nsprefix_ = child_.prefix + elif nodeName_ == "shipmentId": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "shipmentId") + value_ = self.gds_validate_string(value_, node, "shipmentId") + self.shipmentId = value_ + self.shipmentId_nsprefix_ = child_.prefix + elif nodeName_ == "wayBill": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "wayBill") + value_ = self.gds_validate_string(value_, node, "wayBill") + self.wayBill = value_ + self.wayBill_nsprefix_ = child_.prefix + + +# end class ReturnItemToPrint + + +class ArrayOfReturnitemtoprint(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, item=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + if item is None: + self.item = [] + else: + self.item = item + self.item_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, ArrayOfReturnitemtoprint + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ArrayOfReturnitemtoprint.subclass: + return ArrayOfReturnitemtoprint.subclass(*args_, **kwargs_) + else: + return ArrayOfReturnitemtoprint(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_item(self): + return self.item + + def set_item(self, item): + self.item = item + + def add_item(self, value): + self.item.append(value) + + def insert_item_at(self, index, value): + self.item.insert(index, value) + + def replace_item_at(self, index, value): + self.item[index] = value + + def _hasContent(self): + if self.item: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfReturnitemtoprint", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ArrayOfReturnitemtoprint") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ArrayOfReturnitemtoprint": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="ArrayOfReturnitemtoprint", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ArrayOfReturnitemtoprint", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ArrayOfReturnitemtoprint", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfReturnitemtoprint", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + for item_ in self.item: + namespaceprefix_ = ( + self.item_nsprefix_ + ":" + if (UseCapturedNS_ and self.item_nsprefix_) + else "" + ) + item_.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="item", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "item": + obj_ = ReturnItemToPrint.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.item.append(obj_) + obj_.original_tagname_ = "item" + + +# end class ArrayOfReturnitemtoprint + + +class getReturnByWaybill(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, authData=None, itemsToPrint=None, gds_collector_=None, **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.authData = authData + self.authData_nsprefix_ = "tns" + self.itemsToPrint = itemsToPrint + self.itemsToPrint_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, getReturnByWaybill + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if getReturnByWaybill.subclass: + return getReturnByWaybill.subclass(*args_, **kwargs_) + else: + return getReturnByWaybill(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_authData(self): + return self.authData + + def set_authData(self, authData): + self.authData = authData + + def get_itemsToPrint(self): + return self.itemsToPrint + + def set_itemsToPrint(self, itemsToPrint): + self.itemsToPrint = itemsToPrint + + def _hasContent(self): + if self.authData is not None or self.itemsToPrint is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getReturnByWaybill", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("getReturnByWaybill") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "getReturnByWaybill": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="getReturnByWaybill", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="getReturnByWaybill", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="getReturnByWaybill", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getReturnByWaybill", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.authData is not None: + namespaceprefix_ = ( + self.authData_nsprefix_ + ":" + if (UseCapturedNS_ and self.authData_nsprefix_) + else "" + ) + self.authData.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="authData", + pretty_print=pretty_print, + ) + if self.itemsToPrint is not None: + namespaceprefix_ = ( + self.itemsToPrint_nsprefix_ + ":" + if (UseCapturedNS_ and self.itemsToPrint_nsprefix_) + else "" + ) + self.itemsToPrint.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="itemsToPrint", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "authData": + obj_ = AuthData.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.authData = obj_ + obj_.original_tagname_ = "authData" + elif nodeName_ == "itemsToPrint": + obj_ = ArrayOfReturnitemtoprint.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.itemsToPrint = obj_ + obj_.original_tagname_ = "itemsToPrint" + + +# end class getReturnByWaybill + + +class Label(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + labelType=None, + labelFormat=None, + labelContent=None, + cn23Content=None, + cn23MimeType=None, + fvProformaContent=None, + fvProformaMimeType=None, + fvProformaNumer=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.labelType = labelType + self.labelType_nsprefix_ = None + self.labelFormat = labelFormat + self.labelFormat_nsprefix_ = None + self.labelContent = labelContent + self.labelContent_nsprefix_ = None + self.cn23Content = cn23Content + self.cn23Content_nsprefix_ = None + self.cn23MimeType = cn23MimeType + self.cn23MimeType_nsprefix_ = None + self.fvProformaContent = fvProformaContent + self.fvProformaContent_nsprefix_ = None + self.fvProformaMimeType = fvProformaMimeType + self.fvProformaMimeType_nsprefix_ = None + self.fvProformaNumer = fvProformaNumer + self.fvProformaNumer_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, Label) + if subclass is not None: + return subclass(*args_, **kwargs_) + if Label.subclass: + return Label.subclass(*args_, **kwargs_) + else: + return Label(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_labelType(self): + return self.labelType + + def set_labelType(self, labelType): + self.labelType = labelType + + def get_labelFormat(self): + return self.labelFormat + + def set_labelFormat(self, labelFormat): + self.labelFormat = labelFormat + + def get_labelContent(self): + return self.labelContent + + def set_labelContent(self, labelContent): + self.labelContent = labelContent + + def get_cn23Content(self): + return self.cn23Content + + def set_cn23Content(self, cn23Content): + self.cn23Content = cn23Content + + def get_cn23MimeType(self): + return self.cn23MimeType + + def set_cn23MimeType(self, cn23MimeType): + self.cn23MimeType = cn23MimeType + + def get_fvProformaContent(self): + return self.fvProformaContent + + def set_fvProformaContent(self, fvProformaContent): + self.fvProformaContent = fvProformaContent + + def get_fvProformaMimeType(self): + return self.fvProformaMimeType + + def set_fvProformaMimeType(self, fvProformaMimeType): + self.fvProformaMimeType = fvProformaMimeType + + def get_fvProformaNumer(self): + return self.fvProformaNumer + + def set_fvProformaNumer(self, fvProformaNumer): + self.fvProformaNumer = fvProformaNumer + + def _hasContent(self): + if ( + self.labelType is not None + or self.labelFormat is not None + or self.labelContent is not None + or self.cn23Content is not None + or self.cn23MimeType is not None + or self.fvProformaContent is not None + or self.fvProformaMimeType is not None + or self.fvProformaNumer is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="Label", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("Label") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "Label": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="Label" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="Label", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, outfile, level, already_processed, namespaceprefix_="", name_="Label" + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="Label", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.labelType is not None: + namespaceprefix_ = ( + self.labelType_nsprefix_ + ":" + if (UseCapturedNS_ and self.labelType_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%slabelType>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.labelType), input_name="labelType" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.labelFormat is not None: + namespaceprefix_ = ( + self.labelFormat_nsprefix_ + ":" + if (UseCapturedNS_ and self.labelFormat_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%slabelFormat>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.labelFormat), input_name="labelFormat" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.labelContent is not None: + namespaceprefix_ = ( + self.labelContent_nsprefix_ + ":" + if (UseCapturedNS_ and self.labelContent_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%slabelContent>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.labelContent), input_name="labelContent" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.cn23Content is not None: + namespaceprefix_ = ( + self.cn23Content_nsprefix_ + ":" + if (UseCapturedNS_ and self.cn23Content_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scn23Content>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.cn23Content), input_name="cn23Content" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.cn23MimeType is not None: + namespaceprefix_ = ( + self.cn23MimeType_nsprefix_ + ":" + if (UseCapturedNS_ and self.cn23MimeType_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scn23MimeType>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.cn23MimeType), input_name="cn23MimeType" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.fvProformaContent is not None: + namespaceprefix_ = ( + self.fvProformaContent_nsprefix_ + ":" + if (UseCapturedNS_ and self.fvProformaContent_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sfvProformaContent>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.fvProformaContent), + input_name="fvProformaContent", + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.fvProformaMimeType is not None: + namespaceprefix_ = ( + self.fvProformaMimeType_nsprefix_ + ":" + if (UseCapturedNS_ and self.fvProformaMimeType_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sfvProformaMimeType>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.fvProformaMimeType), + input_name="fvProformaMimeType", + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.fvProformaNumer is not None: + namespaceprefix_ = ( + self.fvProformaNumer_nsprefix_ + ":" + if (UseCapturedNS_ and self.fvProformaNumer_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sfvProformaNumer>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.fvProformaNumer), + input_name="fvProformaNumer", + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "labelType": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "labelType") + value_ = self.gds_validate_string(value_, node, "labelType") + self.labelType = value_ + self.labelType_nsprefix_ = child_.prefix + elif nodeName_ == "labelFormat": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "labelFormat") + value_ = self.gds_validate_string(value_, node, "labelFormat") + self.labelFormat = value_ + self.labelFormat_nsprefix_ = child_.prefix + elif nodeName_ == "labelContent": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "labelContent") + value_ = self.gds_validate_string(value_, node, "labelContent") + self.labelContent = value_ + self.labelContent_nsprefix_ = child_.prefix + elif nodeName_ == "cn23Content": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "cn23Content") + value_ = self.gds_validate_string(value_, node, "cn23Content") + self.cn23Content = value_ + self.cn23Content_nsprefix_ = child_.prefix + elif nodeName_ == "cn23MimeType": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "cn23MimeType") + value_ = self.gds_validate_string(value_, node, "cn23MimeType") + self.cn23MimeType = value_ + self.cn23MimeType_nsprefix_ = child_.prefix + elif nodeName_ == "fvProformaContent": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "fvProformaContent") + value_ = self.gds_validate_string(value_, node, "fvProformaContent") + self.fvProformaContent = value_ + self.fvProformaContent_nsprefix_ = child_.prefix + elif nodeName_ == "fvProformaMimeType": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "fvProformaMimeType") + value_ = self.gds_validate_string(value_, node, "fvProformaMimeType") + self.fvProformaMimeType = value_ + self.fvProformaMimeType_nsprefix_ = child_.prefix + elif nodeName_ == "fvProformaNumer": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "fvProformaNumer") + value_ = self.gds_validate_string(value_, node, "fvProformaNumer") + self.fvProformaNumer = value_ + self.fvProformaNumer_nsprefix_ = child_.prefix + + +# end class Label + + +class CreateShipmentResponse(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + shipmentNotificationNumber=None, + shipmentTrackingNumber=None, + packagesTrackingNumbers=None, + dispatchNotificationNumber=None, + label=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.shipmentNotificationNumber = shipmentNotificationNumber + self.shipmentNotificationNumber_nsprefix_ = None + self.shipmentTrackingNumber = shipmentTrackingNumber + self.shipmentTrackingNumber_nsprefix_ = None + self.packagesTrackingNumbers = packagesTrackingNumbers + self.packagesTrackingNumbers_nsprefix_ = None + self.dispatchNotificationNumber = dispatchNotificationNumber + self.dispatchNotificationNumber_nsprefix_ = None + self.label = label + self.label_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, CreateShipmentResponse + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if CreateShipmentResponse.subclass: + return CreateShipmentResponse.subclass(*args_, **kwargs_) + else: + return CreateShipmentResponse(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_shipmentNotificationNumber(self): + return self.shipmentNotificationNumber + + def set_shipmentNotificationNumber(self, shipmentNotificationNumber): + self.shipmentNotificationNumber = shipmentNotificationNumber + + def get_shipmentTrackingNumber(self): + return self.shipmentTrackingNumber + + def set_shipmentTrackingNumber(self, shipmentTrackingNumber): + self.shipmentTrackingNumber = shipmentTrackingNumber + + def get_packagesTrackingNumbers(self): + return self.packagesTrackingNumbers + + def set_packagesTrackingNumbers(self, packagesTrackingNumbers): + self.packagesTrackingNumbers = packagesTrackingNumbers + + def get_dispatchNotificationNumber(self): + return self.dispatchNotificationNumber + + def set_dispatchNotificationNumber(self, dispatchNotificationNumber): + self.dispatchNotificationNumber = dispatchNotificationNumber + + def get_label(self): + return self.label + + def set_label(self, label): + self.label = label + + def _hasContent(self): + if ( + self.shipmentNotificationNumber is not None + or self.shipmentTrackingNumber is not None + or self.packagesTrackingNumbers is not None + or self.dispatchNotificationNumber is not None + or self.label is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="CreateShipmentResponse", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("CreateShipmentResponse") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "CreateShipmentResponse": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="CreateShipmentResponse", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="CreateShipmentResponse", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="CreateShipmentResponse", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="CreateShipmentResponse", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.shipmentNotificationNumber is not None: + namespaceprefix_ = ( + self.shipmentNotificationNumber_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipmentNotificationNumber_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sshipmentNotificationNumber>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.shipmentNotificationNumber), + input_name="shipmentNotificationNumber", + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.shipmentTrackingNumber is not None: + namespaceprefix_ = ( + self.shipmentTrackingNumber_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipmentTrackingNumber_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sshipmentTrackingNumber>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.shipmentTrackingNumber), + input_name="shipmentTrackingNumber", + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.packagesTrackingNumbers is not None: + namespaceprefix_ = ( + self.packagesTrackingNumbers_nsprefix_ + ":" + if (UseCapturedNS_ and self.packagesTrackingNumbers_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spackagesTrackingNumbers>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.packagesTrackingNumbers), + input_name="packagesTrackingNumbers", + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.dispatchNotificationNumber is not None: + namespaceprefix_ = ( + self.dispatchNotificationNumber_nsprefix_ + ":" + if (UseCapturedNS_ and self.dispatchNotificationNumber_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sdispatchNotificationNumber>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.dispatchNotificationNumber), + input_name="dispatchNotificationNumber", + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.label is not None: + namespaceprefix_ = ( + self.label_nsprefix_ + ":" + if (UseCapturedNS_ and self.label_nsprefix_) + else "" + ) + self.label.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="label", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "shipmentNotificationNumber": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "shipmentNotificationNumber") + value_ = self.gds_validate_string( + value_, node, "shipmentNotificationNumber" + ) + self.shipmentNotificationNumber = value_ + self.shipmentNotificationNumber_nsprefix_ = child_.prefix + elif nodeName_ == "shipmentTrackingNumber": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "shipmentTrackingNumber") + value_ = self.gds_validate_string(value_, node, "shipmentTrackingNumber") + self.shipmentTrackingNumber = value_ + self.shipmentTrackingNumber_nsprefix_ = child_.prefix + elif nodeName_ == "packagesTrackingNumbers": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "packagesTrackingNumbers") + value_ = self.gds_validate_string(value_, node, "packagesTrackingNumbers") + self.packagesTrackingNumbers = value_ + self.packagesTrackingNumbers_nsprefix_ = child_.prefix + elif nodeName_ == "dispatchNotificationNumber": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "dispatchNotificationNumber") + value_ = self.gds_validate_string( + value_, node, "dispatchNotificationNumber" + ) + self.dispatchNotificationNumber = value_ + self.dispatchNotificationNumber_nsprefix_ = child_.prefix + elif nodeName_ == "label": + obj_ = Label.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.label = obj_ + obj_.original_tagname_ = "label" + + +# end class CreateShipmentResponse + + +class ArrayOfCreateshipmentresponse(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, item=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + if item is None: + self.item = [] + else: + self.item = item + self.item_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, ArrayOfCreateshipmentresponse + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ArrayOfCreateshipmentresponse.subclass: + return ArrayOfCreateshipmentresponse.subclass(*args_, **kwargs_) + else: + return ArrayOfCreateshipmentresponse(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_item(self): + return self.item + + def set_item(self, item): + self.item = item + + def add_item(self, value): + self.item.append(value) + + def insert_item_at(self, index, value): + self.item.insert(index, value) + + def replace_item_at(self, index, value): + self.item[index] = value + + def _hasContent(self): + if self.item: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfCreateshipmentresponse", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ArrayOfCreateshipmentresponse") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if ( + self.original_tagname_ is not None + and name_ == "ArrayOfCreateshipmentresponse" + ): + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="ArrayOfCreateshipmentresponse", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ArrayOfCreateshipmentresponse", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ArrayOfCreateshipmentresponse", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfCreateshipmentresponse", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + for item_ in self.item: + namespaceprefix_ = ( + self.item_nsprefix_ + ":" + if (UseCapturedNS_ and self.item_nsprefix_) + else "" + ) + item_.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="item", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "item": + obj_ = CreateShipmentResponse.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.item.append(obj_) + obj_.original_tagname_ = "item" + + +# end class ArrayOfCreateshipmentresponse + + +class getReturnByWaybillResponse(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, getReturnByWaybillResult=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.getReturnByWaybillResult = getReturnByWaybillResult + self.getReturnByWaybillResult_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, getReturnByWaybillResponse + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if getReturnByWaybillResponse.subclass: + return getReturnByWaybillResponse.subclass(*args_, **kwargs_) + else: + return getReturnByWaybillResponse(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_getReturnByWaybillResult(self): + return self.getReturnByWaybillResult + + def set_getReturnByWaybillResult(self, getReturnByWaybillResult): + self.getReturnByWaybillResult = getReturnByWaybillResult + + def _hasContent(self): + if self.getReturnByWaybillResult is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getReturnByWaybillResponse", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("getReturnByWaybillResponse") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "getReturnByWaybillResponse": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="getReturnByWaybillResponse", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="getReturnByWaybillResponse", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="getReturnByWaybillResponse", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getReturnByWaybillResponse", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.getReturnByWaybillResult is not None: + namespaceprefix_ = ( + self.getReturnByWaybillResult_nsprefix_ + ":" + if (UseCapturedNS_ and self.getReturnByWaybillResult_nsprefix_) + else "" + ) + self.getReturnByWaybillResult.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="getReturnByWaybillResult", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "getReturnByWaybillResult": + obj_ = ArrayOfCreateshipmentresponse.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.getReturnByWaybillResult = obj_ + obj_.original_tagname_ = "getReturnByWaybillResult" + + +# end class getReturnByWaybillResponse + + +class Billing(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + shippingPaymentType=None, + billingAccountNumber=None, + paymentType=None, + costsCenter=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.shippingPaymentType = shippingPaymentType + self.shippingPaymentType_nsprefix_ = None + self.billingAccountNumber = billingAccountNumber + self.billingAccountNumber_nsprefix_ = None + self.paymentType = paymentType + self.paymentType_nsprefix_ = None + self.costsCenter = costsCenter + self.costsCenter_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, Billing) + if subclass is not None: + return subclass(*args_, **kwargs_) + if Billing.subclass: + return Billing.subclass(*args_, **kwargs_) + else: + return Billing(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_shippingPaymentType(self): + return self.shippingPaymentType + + def set_shippingPaymentType(self, shippingPaymentType): + self.shippingPaymentType = shippingPaymentType + + def get_billingAccountNumber(self): + return self.billingAccountNumber + + def set_billingAccountNumber(self, billingAccountNumber): + self.billingAccountNumber = billingAccountNumber + + def get_paymentType(self): + return self.paymentType + + def set_paymentType(self, paymentType): + self.paymentType = paymentType + + def get_costsCenter(self): + return self.costsCenter + + def set_costsCenter(self, costsCenter): + self.costsCenter = costsCenter + + def _hasContent(self): + if ( + self.shippingPaymentType is not None + or self.billingAccountNumber is not None + or self.paymentType is not None + or self.costsCenter is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="Billing", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("Billing") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "Billing": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="Billing" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="Billing", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, outfile, level, already_processed, namespaceprefix_="", name_="Billing" + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="Billing", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.shippingPaymentType is not None: + namespaceprefix_ = ( + self.shippingPaymentType_nsprefix_ + ":" + if (UseCapturedNS_ and self.shippingPaymentType_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sshippingPaymentType>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.shippingPaymentType), + input_name="shippingPaymentType", + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.billingAccountNumber is not None: + namespaceprefix_ = ( + self.billingAccountNumber_nsprefix_ + ":" + if (UseCapturedNS_ and self.billingAccountNumber_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sbillingAccountNumber>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer( + self.billingAccountNumber, input_name="billingAccountNumber" + ), + namespaceprefix_, + eol_, + ) + ) + if self.paymentType is not None: + namespaceprefix_ = ( + self.paymentType_nsprefix_ + ":" + if (UseCapturedNS_ and self.paymentType_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spaymentType>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.paymentType), input_name="paymentType" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.costsCenter is not None: + namespaceprefix_ = ( + self.costsCenter_nsprefix_ + ":" + if (UseCapturedNS_ and self.costsCenter_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scostsCenter>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.costsCenter), input_name="costsCenter" + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "shippingPaymentType": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "shippingPaymentType") + value_ = self.gds_validate_string(value_, node, "shippingPaymentType") + self.shippingPaymentType = value_ + self.shippingPaymentType_nsprefix_ = child_.prefix + elif nodeName_ == "billingAccountNumber" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "billingAccountNumber") + ival_ = self.gds_validate_integer(ival_, node, "billingAccountNumber") + self.billingAccountNumber = ival_ + self.billingAccountNumber_nsprefix_ = child_.prefix + elif nodeName_ == "paymentType": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "paymentType") + value_ = self.gds_validate_string(value_, node, "paymentType") + self.paymentType = value_ + self.paymentType_nsprefix_ = child_.prefix + elif nodeName_ == "costsCenter": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "costsCenter") + value_ = self.gds_validate_string(value_, node, "costsCenter") + self.costsCenter = value_ + self.costsCenter_nsprefix_ = child_.prefix + + +# end class Billing + + +class ReturnService(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, serviceType=None, serviceValue=None, gds_collector_=None, **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.serviceType = serviceType + self.serviceType_nsprefix_ = None + self.serviceValue = serviceValue + self.serviceValue_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, ReturnService) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ReturnService.subclass: + return ReturnService.subclass(*args_, **kwargs_) + else: + return ReturnService(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_serviceType(self): + return self.serviceType + + def set_serviceType(self, serviceType): + self.serviceType = serviceType + + def get_serviceValue(self): + return self.serviceValue + + def set_serviceValue(self, serviceValue): + self.serviceValue = serviceValue + + def _hasContent(self): + if self.serviceType is not None or self.serviceValue is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ReturnService", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ReturnService") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ReturnService": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="ReturnService" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ReturnService", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ReturnService", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ReturnService", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.serviceType is not None: + namespaceprefix_ = ( + self.serviceType_nsprefix_ + ":" + if (UseCapturedNS_ and self.serviceType_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sserviceType>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.serviceType), input_name="serviceType" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.serviceValue is not None: + namespaceprefix_ = ( + self.serviceValue_nsprefix_ + ":" + if (UseCapturedNS_ and self.serviceValue_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sserviceValue>%s%s" + % ( + namespaceprefix_, + self.gds_format_float(self.serviceValue, input_name="serviceValue"), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "serviceType": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "serviceType") + value_ = self.gds_validate_string(value_, node, "serviceType") + self.serviceType = value_ + self.serviceType_nsprefix_ = child_.prefix + elif nodeName_ == "serviceValue" and child_.text: + sval_ = child_.text + fval_ = self.gds_parse_float(sval_, node, "serviceValue") + fval_ = self.gds_validate_float(fval_, node, "serviceValue") + self.serviceValue = fval_ + self.serviceValue_nsprefix_ = child_.prefix + + +# end class ReturnService + + +class ArrayOfReturnservice(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, item=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + if item is None: + self.item = [] + else: + self.item = item + self.item_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, ArrayOfReturnservice + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ArrayOfReturnservice.subclass: + return ArrayOfReturnservice.subclass(*args_, **kwargs_) + else: + return ArrayOfReturnservice(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_item(self): + return self.item + + def set_item(self, item): + self.item = item + + def add_item(self, value): + self.item.append(value) + + def insert_item_at(self, index, value): + self.item.insert(index, value) + + def replace_item_at(self, index, value): + self.item[index] = value + + def _hasContent(self): + if self.item: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfReturnservice", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ArrayOfReturnservice") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ArrayOfReturnservice": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="ArrayOfReturnservice", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ArrayOfReturnservice", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ArrayOfReturnservice", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfReturnservice", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + for item_ in self.item: + namespaceprefix_ = ( + self.item_nsprefix_ + ":" + if (UseCapturedNS_ and self.item_nsprefix_) + else "" + ) + item_.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="item", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "item": + obj_ = ReturnService.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.item.append(obj_) + obj_.original_tagname_ = "item" + + +# end class ArrayOfReturnservice + + +class ReturnShipmentTime(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, labelExpDate=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.labelExpDate = labelExpDate + self.labelExpDate_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, ReturnShipmentTime + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ReturnShipmentTime.subclass: + return ReturnShipmentTime.subclass(*args_, **kwargs_) + else: + return ReturnShipmentTime(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_labelExpDate(self): + return self.labelExpDate + + def set_labelExpDate(self, labelExpDate): + self.labelExpDate = labelExpDate + + def _hasContent(self): + if self.labelExpDate is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ReturnShipmentTime", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ReturnShipmentTime") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ReturnShipmentTime": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="ReturnShipmentTime", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ReturnShipmentTime", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ReturnShipmentTime", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ReturnShipmentTime", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.labelExpDate is not None: + namespaceprefix_ = ( + self.labelExpDate_nsprefix_ + ":" + if (UseCapturedNS_ and self.labelExpDate_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%slabelExpDate>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.labelExpDate), input_name="labelExpDate" + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "labelExpDate": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "labelExpDate") + value_ = self.gds_validate_string(value_, node, "labelExpDate") + self.labelExpDate = value_ + self.labelExpDate_nsprefix_ = child_.prefix + + +# end class ReturnShipmentTime + + +class ReturnShipmentInfo(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + wayBill=None, + serviceType=None, + bookCourier=None, + billing=None, + specialServices=None, + shipmentTime=None, + labelType=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.wayBill = wayBill + self.wayBill_nsprefix_ = None + self.serviceType = serviceType + self.serviceType_nsprefix_ = None + self.bookCourier = bookCourier + self.bookCourier_nsprefix_ = None + self.billing = billing + self.billing_nsprefix_ = "tns" + self.specialServices = specialServices + self.specialServices_nsprefix_ = "tns" + self.shipmentTime = shipmentTime + self.shipmentTime_nsprefix_ = "tns" + self.labelType = labelType + self.labelType_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, ReturnShipmentInfo + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ReturnShipmentInfo.subclass: + return ReturnShipmentInfo.subclass(*args_, **kwargs_) + else: + return ReturnShipmentInfo(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_wayBill(self): + return self.wayBill + + def set_wayBill(self, wayBill): + self.wayBill = wayBill + + def get_serviceType(self): + return self.serviceType + + def set_serviceType(self, serviceType): + self.serviceType = serviceType + + def get_bookCourier(self): + return self.bookCourier + + def set_bookCourier(self, bookCourier): + self.bookCourier = bookCourier + + def get_billing(self): + return self.billing + + def set_billing(self, billing): + self.billing = billing + + def get_specialServices(self): + return self.specialServices + + def set_specialServices(self, specialServices): + self.specialServices = specialServices + + def get_shipmentTime(self): + return self.shipmentTime + + def set_shipmentTime(self, shipmentTime): + self.shipmentTime = shipmentTime + + def get_labelType(self): + return self.labelType + + def set_labelType(self, labelType): + self.labelType = labelType + + def _hasContent(self): + if ( + self.wayBill is not None + or self.serviceType is not None + or self.bookCourier is not None + or self.billing is not None + or self.specialServices is not None + or self.shipmentTime is not None + or self.labelType is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ReturnShipmentInfo", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ReturnShipmentInfo") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ReturnShipmentInfo": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="ReturnShipmentInfo", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ReturnShipmentInfo", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ReturnShipmentInfo", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ReturnShipmentInfo", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.wayBill is not None: + namespaceprefix_ = ( + self.wayBill_nsprefix_ + ":" + if (UseCapturedNS_ and self.wayBill_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%swayBill>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.wayBill), input_name="wayBill" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.serviceType is not None: + namespaceprefix_ = ( + self.serviceType_nsprefix_ + ":" + if (UseCapturedNS_ and self.serviceType_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sserviceType>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.serviceType), input_name="serviceType" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.bookCourier is not None: + namespaceprefix_ = ( + self.bookCourier_nsprefix_ + ":" + if (UseCapturedNS_ and self.bookCourier_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sbookCourier>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean(self.bookCourier, input_name="bookCourier"), + namespaceprefix_, + eol_, + ) + ) + if self.billing is not None: + namespaceprefix_ = ( + self.billing_nsprefix_ + ":" + if (UseCapturedNS_ and self.billing_nsprefix_) + else "" + ) + self.billing.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="billing", + pretty_print=pretty_print, + ) + if self.specialServices is not None: + namespaceprefix_ = ( + self.specialServices_nsprefix_ + ":" + if (UseCapturedNS_ and self.specialServices_nsprefix_) + else "" + ) + self.specialServices.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="specialServices", + pretty_print=pretty_print, + ) + if self.shipmentTime is not None: + namespaceprefix_ = ( + self.shipmentTime_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipmentTime_nsprefix_) + else "" + ) + self.shipmentTime.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="shipmentTime", + pretty_print=pretty_print, + ) + if self.labelType is not None: + namespaceprefix_ = ( + self.labelType_nsprefix_ + ":" + if (UseCapturedNS_ and self.labelType_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%slabelType>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.labelType), input_name="labelType" + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "wayBill": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "wayBill") + value_ = self.gds_validate_string(value_, node, "wayBill") + self.wayBill = value_ + self.wayBill_nsprefix_ = child_.prefix + elif nodeName_ == "serviceType": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "serviceType") + value_ = self.gds_validate_string(value_, node, "serviceType") + self.serviceType = value_ + self.serviceType_nsprefix_ = child_.prefix + elif nodeName_ == "bookCourier": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "bookCourier") + ival_ = self.gds_validate_boolean(ival_, node, "bookCourier") + self.bookCourier = ival_ + self.bookCourier_nsprefix_ = child_.prefix + elif nodeName_ == "billing": + obj_ = Billing.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.billing = obj_ + obj_.original_tagname_ = "billing" + elif nodeName_ == "specialServices": + obj_ = ArrayOfReturnservice.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.specialServices = obj_ + obj_.original_tagname_ = "specialServices" + elif nodeName_ == "shipmentTime": + obj_ = ReturnShipmentTime.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.shipmentTime = obj_ + obj_.original_tagname_ = "shipmentTime" + elif nodeName_ == "labelType": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "labelType") + value_ = self.gds_validate_string(value_, node, "labelType") + self.labelType = value_ + self.labelType_nsprefix_ = child_.prefix + + +# end class ReturnShipmentInfo + + +class PreavisoContact(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + personName=None, + phoneNumber=None, + emailAddress=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.personName = personName + self.personName_nsprefix_ = None + self.phoneNumber = phoneNumber + self.phoneNumber_nsprefix_ = None + self.emailAddress = emailAddress + self.emailAddress_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, PreavisoContact) + if subclass is not None: + return subclass(*args_, **kwargs_) + if PreavisoContact.subclass: + return PreavisoContact.subclass(*args_, **kwargs_) + else: + return PreavisoContact(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_personName(self): + return self.personName + + def set_personName(self, personName): + self.personName = personName + + def get_phoneNumber(self): + return self.phoneNumber + + def set_phoneNumber(self, phoneNumber): + self.phoneNumber = phoneNumber + + def get_emailAddress(self): + return self.emailAddress + + def set_emailAddress(self, emailAddress): + self.emailAddress = emailAddress + + def _hasContent(self): + if ( + self.personName is not None + or self.phoneNumber is not None + or self.emailAddress is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="PreavisoContact", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("PreavisoContact") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "PreavisoContact": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="PreavisoContact" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="PreavisoContact", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="PreavisoContact", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="PreavisoContact", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.personName is not None: + namespaceprefix_ = ( + self.personName_nsprefix_ + ":" + if (UseCapturedNS_ and self.personName_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spersonName>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.personName), input_name="personName" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.phoneNumber is not None: + namespaceprefix_ = ( + self.phoneNumber_nsprefix_ + ":" + if (UseCapturedNS_ and self.phoneNumber_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sphoneNumber>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.phoneNumber), input_name="phoneNumber" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.emailAddress is not None: + namespaceprefix_ = ( + self.emailAddress_nsprefix_ + ":" + if (UseCapturedNS_ and self.emailAddress_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%semailAddress>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.emailAddress), input_name="emailAddress" + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "personName": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "personName") + value_ = self.gds_validate_string(value_, node, "personName") + self.personName = value_ + self.personName_nsprefix_ = child_.prefix + elif nodeName_ == "phoneNumber": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "phoneNumber") + value_ = self.gds_validate_string(value_, node, "phoneNumber") + self.phoneNumber = value_ + self.phoneNumber_nsprefix_ = child_.prefix + elif nodeName_ == "emailAddress": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "emailAddress") + value_ = self.gds_validate_string(value_, node, "emailAddress") + self.emailAddress = value_ + self.emailAddress_nsprefix_ = child_.prefix + + +# end class PreavisoContact + + +class ShipperAddress(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + country=None, + name=None, + postalCode=None, + city=None, + street=None, + houseNumber=None, + apartmentNumber=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.country = country + self.country_nsprefix_ = None + self.name = name + self.name_nsprefix_ = None + self.postalCode = postalCode + self.postalCode_nsprefix_ = None + self.city = city + self.city_nsprefix_ = None + self.street = street + self.street_nsprefix_ = None + self.houseNumber = houseNumber + self.houseNumber_nsprefix_ = None + self.apartmentNumber = apartmentNumber + self.apartmentNumber_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, ShipperAddress) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ShipperAddress.subclass: + return ShipperAddress.subclass(*args_, **kwargs_) + else: + return ShipperAddress(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_country(self): + return self.country + + def set_country(self, country): + self.country = country + + def get_name(self): + return self.name + + def set_name(self, name): + self.name = name + + def get_postalCode(self): + return self.postalCode + + def set_postalCode(self, postalCode): + self.postalCode = postalCode + + def get_city(self): + return self.city + + def set_city(self, city): + self.city = city + + def get_street(self): + return self.street + + def set_street(self, street): + self.street = street + + def get_houseNumber(self): + return self.houseNumber + + def set_houseNumber(self, houseNumber): + self.houseNumber = houseNumber + + def get_apartmentNumber(self): + return self.apartmentNumber + + def set_apartmentNumber(self, apartmentNumber): + self.apartmentNumber = apartmentNumber + + def _hasContent(self): + if ( + self.country is not None + or self.name is not None + or self.postalCode is not None + or self.city is not None + or self.street is not None + or self.houseNumber is not None + or self.apartmentNumber is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ShipperAddress", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ShipperAddress") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ShipperAddress": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="ShipperAddress" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ShipperAddress", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ShipperAddress", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ShipperAddress", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.country is not None: + namespaceprefix_ = ( + self.country_nsprefix_ + ":" + if (UseCapturedNS_ and self.country_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scountry>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.country), input_name="country" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.name is not None: + namespaceprefix_ = ( + self.name_nsprefix_ + ":" + if (UseCapturedNS_ and self.name_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sname>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string(quote_xml(self.name), input_name="name") + ), + namespaceprefix_, + eol_, + ) + ) + if self.postalCode is not None: + namespaceprefix_ = ( + self.postalCode_nsprefix_ + ":" + if (UseCapturedNS_ and self.postalCode_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spostalCode>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.postalCode), input_name="postalCode" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.city is not None: + namespaceprefix_ = ( + self.city_nsprefix_ + ":" + if (UseCapturedNS_ and self.city_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scity>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string(quote_xml(self.city), input_name="city") + ), + namespaceprefix_, + eol_, + ) + ) + if self.street is not None: + namespaceprefix_ = ( + self.street_nsprefix_ + ":" + if (UseCapturedNS_ and self.street_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sstreet>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.street), input_name="street" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.houseNumber is not None: + namespaceprefix_ = ( + self.houseNumber_nsprefix_ + ":" + if (UseCapturedNS_ and self.houseNumber_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%shouseNumber>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.houseNumber), input_name="houseNumber" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.apartmentNumber is not None: + namespaceprefix_ = ( + self.apartmentNumber_nsprefix_ + ":" + if (UseCapturedNS_ and self.apartmentNumber_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sapartmentNumber>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.apartmentNumber), + input_name="apartmentNumber", + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "country": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "country") + value_ = self.gds_validate_string(value_, node, "country") + self.country = value_ + self.country_nsprefix_ = child_.prefix + elif nodeName_ == "name": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "name") + value_ = self.gds_validate_string(value_, node, "name") + self.name = value_ + self.name_nsprefix_ = child_.prefix + elif nodeName_ == "postalCode": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "postalCode") + value_ = self.gds_validate_string(value_, node, "postalCode") + self.postalCode = value_ + self.postalCode_nsprefix_ = child_.prefix + elif nodeName_ == "city": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "city") + value_ = self.gds_validate_string(value_, node, "city") + self.city = value_ + self.city_nsprefix_ = child_.prefix + elif nodeName_ == "street": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "street") + value_ = self.gds_validate_string(value_, node, "street") + self.street = value_ + self.street_nsprefix_ = child_.prefix + elif nodeName_ == "houseNumber": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "houseNumber") + value_ = self.gds_validate_string(value_, node, "houseNumber") + self.houseNumber = value_ + self.houseNumber_nsprefix_ = child_.prefix + elif nodeName_ == "apartmentNumber": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "apartmentNumber") + value_ = self.gds_validate_string(value_, node, "apartmentNumber") + self.apartmentNumber = value_ + self.apartmentNumber_nsprefix_ = child_.prefix + + +# end class ShipperAddress + + +class ReturnAddressat(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, preaviso=None, contact=None, address=None, gds_collector_=None, **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.preaviso = preaviso + self.preaviso_nsprefix_ = "tns" + self.contact = contact + self.contact_nsprefix_ = "tns" + self.address = address + self.address_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, ReturnAddressat) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ReturnAddressat.subclass: + return ReturnAddressat.subclass(*args_, **kwargs_) + else: + return ReturnAddressat(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_preaviso(self): + return self.preaviso + + def set_preaviso(self, preaviso): + self.preaviso = preaviso + + def get_contact(self): + return self.contact + + def set_contact(self, contact): + self.contact = contact + + def get_address(self): + return self.address + + def set_address(self, address): + self.address = address + + def _hasContent(self): + if ( + self.preaviso is not None + or self.contact is not None + or self.address is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ReturnAddressat", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ReturnAddressat") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ReturnAddressat": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="ReturnAddressat" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ReturnAddressat", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ReturnAddressat", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ReturnAddressat", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.preaviso is not None: + namespaceprefix_ = ( + self.preaviso_nsprefix_ + ":" + if (UseCapturedNS_ and self.preaviso_nsprefix_) + else "" + ) + self.preaviso.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="preaviso", + pretty_print=pretty_print, + ) + if self.contact is not None: + namespaceprefix_ = ( + self.contact_nsprefix_ + ":" + if (UseCapturedNS_ and self.contact_nsprefix_) + else "" + ) + self.contact.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="contact", + pretty_print=pretty_print, + ) + if self.address is not None: + namespaceprefix_ = ( + self.address_nsprefix_ + ":" + if (UseCapturedNS_ and self.address_nsprefix_) + else "" + ) + self.address.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="address", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "preaviso": + obj_ = PreavisoContact.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.preaviso = obj_ + obj_.original_tagname_ = "preaviso" + elif nodeName_ == "contact": + obj_ = PreavisoContact.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.contact = obj_ + obj_.original_tagname_ = "contact" + elif nodeName_ == "address": + obj_ = ShipperAddress.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.address = obj_ + obj_.original_tagname_ = "address" + + +# end class ReturnAddressat + + +class ReturnShip(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, shipper=None, receiver=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.shipper = shipper + self.shipper_nsprefix_ = "tns" + self.receiver = receiver + self.receiver_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, ReturnShip) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ReturnShip.subclass: + return ReturnShip.subclass(*args_, **kwargs_) + else: + return ReturnShip(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_shipper(self): + return self.shipper + + def set_shipper(self, shipper): + self.shipper = shipper + + def get_receiver(self): + return self.receiver + + def set_receiver(self, receiver): + self.receiver = receiver + + def _hasContent(self): + if self.shipper is not None or self.receiver is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ReturnShip", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ReturnShip") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ReturnShip": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="ReturnShip" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ReturnShip", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, outfile, level, already_processed, namespaceprefix_="", name_="ReturnShip" + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ReturnShip", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.shipper is not None: + namespaceprefix_ = ( + self.shipper_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipper_nsprefix_) + else "" + ) + self.shipper.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="shipper", + pretty_print=pretty_print, + ) + if self.receiver is not None: + namespaceprefix_ = ( + self.receiver_nsprefix_ + ":" + if (UseCapturedNS_ and self.receiver_nsprefix_) + else "" + ) + self.receiver.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="receiver", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "shipper": + obj_ = ReturnAddressat.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.shipper = obj_ + obj_.original_tagname_ = "shipper" + elif nodeName_ == "receiver": + obj_ = ReturnAddressat.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.receiver = obj_ + obj_.original_tagname_ = "receiver" + + +# end class ReturnShip + + +class ReturnPackage(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + type_=None, + weight=None, + width=None, + height=None, + length=None, + quantity=None, + nonStandard=None, + blpPieceId=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.type_ = type_ + self.type__nsprefix_ = None + self.weight = weight + self.weight_nsprefix_ = None + self.width = width + self.width_nsprefix_ = None + self.height = height + self.height_nsprefix_ = None + self.length = length + self.length_nsprefix_ = None + self.quantity = quantity + self.quantity_nsprefix_ = None + self.nonStandard = nonStandard + self.nonStandard_nsprefix_ = None + self.blpPieceId = blpPieceId + self.blpPieceId_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, ReturnPackage) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ReturnPackage.subclass: + return ReturnPackage.subclass(*args_, **kwargs_) + else: + return ReturnPackage(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_type(self): + return self.type_ + + def set_type(self, type_): + self.type_ = type_ + + def get_weight(self): + return self.weight + + def set_weight(self, weight): + self.weight = weight + + def get_width(self): + return self.width + + def set_width(self, width): + self.width = width + + def get_height(self): + return self.height + + def set_height(self, height): + self.height = height + + def get_length(self): + return self.length + + def set_length(self, length): + self.length = length + + def get_quantity(self): + return self.quantity + + def set_quantity(self, quantity): + self.quantity = quantity + + def get_nonStandard(self): + return self.nonStandard + + def set_nonStandard(self, nonStandard): + self.nonStandard = nonStandard + + def get_blpPieceId(self): + return self.blpPieceId + + def set_blpPieceId(self, blpPieceId): + self.blpPieceId = blpPieceId + + def _hasContent(self): + if ( + self.type_ is not None + or self.weight is not None + or self.width is not None + or self.height is not None + or self.length is not None + or self.quantity is not None + or self.nonStandard is not None + or self.blpPieceId is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ReturnPackage", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ReturnPackage") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ReturnPackage": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="ReturnPackage" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ReturnPackage", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ReturnPackage", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ReturnPackage", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.type_ is not None: + namespaceprefix_ = ( + self.type__nsprefix_ + ":" + if (UseCapturedNS_ and self.type__nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%stype>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string(quote_xml(self.type_), input_name="type") + ), + namespaceprefix_, + eol_, + ) + ) + if self.weight is not None: + namespaceprefix_ = ( + self.weight_nsprefix_ + ":" + if (UseCapturedNS_ and self.weight_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sweight>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.weight, input_name="weight"), + namespaceprefix_, + eol_, + ) + ) + if self.width is not None: + namespaceprefix_ = ( + self.width_nsprefix_ + ":" + if (UseCapturedNS_ and self.width_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%swidth>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.width, input_name="width"), + namespaceprefix_, + eol_, + ) + ) + if self.height is not None: + namespaceprefix_ = ( + self.height_nsprefix_ + ":" + if (UseCapturedNS_ and self.height_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sheight>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.height, input_name="height"), + namespaceprefix_, + eol_, + ) + ) + if self.length is not None: + namespaceprefix_ = ( + self.length_nsprefix_ + ":" + if (UseCapturedNS_ and self.length_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%slength>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.length, input_name="length"), + namespaceprefix_, + eol_, + ) + ) + if self.quantity is not None: + namespaceprefix_ = ( + self.quantity_nsprefix_ + ":" + if (UseCapturedNS_ and self.quantity_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%squantity>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.quantity, input_name="quantity"), + namespaceprefix_, + eol_, + ) + ) + if self.nonStandard is not None: + namespaceprefix_ = ( + self.nonStandard_nsprefix_ + ":" + if (UseCapturedNS_ and self.nonStandard_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%snonStandard>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean(self.nonStandard, input_name="nonStandard"), + namespaceprefix_, + eol_, + ) + ) + if self.blpPieceId is not None: + namespaceprefix_ = ( + self.blpPieceId_nsprefix_ + ":" + if (UseCapturedNS_ and self.blpPieceId_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sblpPieceId>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.blpPieceId), input_name="blpPieceId" + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "type": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "type") + value_ = self.gds_validate_string(value_, node, "type") + self.type_ = value_ + self.type_nsprefix_ = child_.prefix + elif nodeName_ == "weight" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "weight") + ival_ = self.gds_validate_integer(ival_, node, "weight") + self.weight = ival_ + self.weight_nsprefix_ = child_.prefix + elif nodeName_ == "width" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "width") + ival_ = self.gds_validate_integer(ival_, node, "width") + self.width = ival_ + self.width_nsprefix_ = child_.prefix + elif nodeName_ == "height" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "height") + ival_ = self.gds_validate_integer(ival_, node, "height") + self.height = ival_ + self.height_nsprefix_ = child_.prefix + elif nodeName_ == "length" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "length") + ival_ = self.gds_validate_integer(ival_, node, "length") + self.length = ival_ + self.length_nsprefix_ = child_.prefix + elif nodeName_ == "quantity" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "quantity") + ival_ = self.gds_validate_integer(ival_, node, "quantity") + self.quantity = ival_ + self.quantity_nsprefix_ = child_.prefix + elif nodeName_ == "nonStandard": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "nonStandard") + ival_ = self.gds_validate_boolean(ival_, node, "nonStandard") + self.nonStandard = ival_ + self.nonStandard_nsprefix_ = child_.prefix + elif nodeName_ == "blpPieceId": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "blpPieceId") + value_ = self.gds_validate_string(value_, node, "blpPieceId") + self.blpPieceId = value_ + self.blpPieceId_nsprefix_ = child_.prefix + + +# end class ReturnPackage + + +class ArrayOfReturnpackage(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, item=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + if item is None: + self.item = [] + else: + self.item = item + self.item_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, ArrayOfReturnpackage + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ArrayOfReturnpackage.subclass: + return ArrayOfReturnpackage.subclass(*args_, **kwargs_) + else: + return ArrayOfReturnpackage(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_item(self): + return self.item + + def set_item(self, item): + self.item = item + + def add_item(self, value): + self.item.append(value) + + def insert_item_at(self, index, value): + self.item.insert(index, value) + + def replace_item_at(self, index, value): + self.item[index] = value + + def _hasContent(self): + if self.item: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfReturnpackage", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ArrayOfReturnpackage") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ArrayOfReturnpackage": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="ArrayOfReturnpackage", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ArrayOfReturnpackage", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ArrayOfReturnpackage", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfReturnpackage", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + for item_ in self.item: + namespaceprefix_ = ( + self.item_nsprefix_ + ":" + if (UseCapturedNS_ and self.item_nsprefix_) + else "" + ) + item_.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="item", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "item": + obj_ = ReturnPackage.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.item.append(obj_) + obj_.original_tagname_ = "item" + + +# end class ArrayOfReturnpackage + + +class CreateReturnShipmentRequest(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + shipmentInfo=None, + content=None, + comment=None, + reference=None, + primaryWaybillNumber=None, + ship=None, + pieceList=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.shipmentInfo = shipmentInfo + self.shipmentInfo_nsprefix_ = "tns" + self.content = content + self.content_nsprefix_ = None + self.comment = comment + self.comment_nsprefix_ = None + self.reference = reference + self.reference_nsprefix_ = None + self.primaryWaybillNumber = primaryWaybillNumber + self.primaryWaybillNumber_nsprefix_ = None + self.ship = ship + self.ship_nsprefix_ = "tns" + self.pieceList = pieceList + self.pieceList_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, CreateReturnShipmentRequest + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if CreateReturnShipmentRequest.subclass: + return CreateReturnShipmentRequest.subclass(*args_, **kwargs_) + else: + return CreateReturnShipmentRequest(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_shipmentInfo(self): + return self.shipmentInfo + + def set_shipmentInfo(self, shipmentInfo): + self.shipmentInfo = shipmentInfo + + def get_content(self): + return self.content + + def set_content(self, content): + self.content = content + + def get_comment(self): + return self.comment + + def set_comment(self, comment): + self.comment = comment + + def get_reference(self): + return self.reference + + def set_reference(self, reference): + self.reference = reference + + def get_primaryWaybillNumber(self): + return self.primaryWaybillNumber + + def set_primaryWaybillNumber(self, primaryWaybillNumber): + self.primaryWaybillNumber = primaryWaybillNumber + + def get_ship(self): + return self.ship + + def set_ship(self, ship): + self.ship = ship + + def get_pieceList(self): + return self.pieceList + + def set_pieceList(self, pieceList): + self.pieceList = pieceList + + def _hasContent(self): + if ( + self.shipmentInfo is not None + or self.content is not None + or self.comment is not None + or self.reference is not None + or self.primaryWaybillNumber is not None + or self.ship is not None + or self.pieceList is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="CreateReturnShipmentRequest", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("CreateReturnShipmentRequest") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if ( + self.original_tagname_ is not None + and name_ == "CreateReturnShipmentRequest" + ): + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="CreateReturnShipmentRequest", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="CreateReturnShipmentRequest", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="CreateReturnShipmentRequest", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="CreateReturnShipmentRequest", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.shipmentInfo is not None: + namespaceprefix_ = ( + self.shipmentInfo_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipmentInfo_nsprefix_) + else "" + ) + self.shipmentInfo.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="shipmentInfo", + pretty_print=pretty_print, + ) + if self.content is not None: + namespaceprefix_ = ( + self.content_nsprefix_ + ":" + if (UseCapturedNS_ and self.content_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scontent>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.content), input_name="content" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.comment is not None: + namespaceprefix_ = ( + self.comment_nsprefix_ + ":" + if (UseCapturedNS_ and self.comment_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scomment>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.comment), input_name="comment" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.reference is not None: + namespaceprefix_ = ( + self.reference_nsprefix_ + ":" + if (UseCapturedNS_ and self.reference_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sreference>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.reference), input_name="reference" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.primaryWaybillNumber is not None: + namespaceprefix_ = ( + self.primaryWaybillNumber_nsprefix_ + ":" + if (UseCapturedNS_ and self.primaryWaybillNumber_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sprimaryWaybillNumber>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.primaryWaybillNumber), + input_name="primaryWaybillNumber", + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.ship is not None: + namespaceprefix_ = ( + self.ship_nsprefix_ + ":" + if (UseCapturedNS_ and self.ship_nsprefix_) + else "" + ) + self.ship.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="ship", + pretty_print=pretty_print, + ) + if self.pieceList is not None: + namespaceprefix_ = ( + self.pieceList_nsprefix_ + ":" + if (UseCapturedNS_ and self.pieceList_nsprefix_) + else "" + ) + self.pieceList.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="pieceList", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "shipmentInfo": + obj_ = ReturnShipmentInfo.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.shipmentInfo = obj_ + obj_.original_tagname_ = "shipmentInfo" + elif nodeName_ == "content": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "content") + value_ = self.gds_validate_string(value_, node, "content") + self.content = value_ + self.content_nsprefix_ = child_.prefix + elif nodeName_ == "comment": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "comment") + value_ = self.gds_validate_string(value_, node, "comment") + self.comment = value_ + self.comment_nsprefix_ = child_.prefix + elif nodeName_ == "reference": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "reference") + value_ = self.gds_validate_string(value_, node, "reference") + self.reference = value_ + self.reference_nsprefix_ = child_.prefix + elif nodeName_ == "primaryWaybillNumber": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "primaryWaybillNumber") + value_ = self.gds_validate_string(value_, node, "primaryWaybillNumber") + self.primaryWaybillNumber = value_ + self.primaryWaybillNumber_nsprefix_ = child_.prefix + elif nodeName_ == "ship": + obj_ = ReturnShip.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.ship = obj_ + obj_.original_tagname_ = "ship" + elif nodeName_ == "pieceList": + obj_ = ArrayOfReturnpackage.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.pieceList = obj_ + obj_.original_tagname_ = "pieceList" + + +# end class CreateReturnShipmentRequest + + +class createShipmentReturn(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, authData=None, shipment=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.authData = authData + self.authData_nsprefix_ = "tns" + self.shipment = shipment + self.shipment_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, createShipmentReturn + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if createShipmentReturn.subclass: + return createShipmentReturn.subclass(*args_, **kwargs_) + else: + return createShipmentReturn(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_authData(self): + return self.authData + + def set_authData(self, authData): + self.authData = authData + + def get_shipment(self): + return self.shipment + + def set_shipment(self, shipment): + self.shipment = shipment + + def _hasContent(self): + if self.authData is not None or self.shipment is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="createShipmentReturn", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("createShipmentReturn") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "createShipmentReturn": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="createShipmentReturn", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="createShipmentReturn", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="createShipmentReturn", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="createShipmentReturn", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.authData is not None: + namespaceprefix_ = ( + self.authData_nsprefix_ + ":" + if (UseCapturedNS_ and self.authData_nsprefix_) + else "" + ) + self.authData.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="authData", + pretty_print=pretty_print, + ) + if self.shipment is not None: + namespaceprefix_ = ( + self.shipment_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipment_nsprefix_) + else "" + ) + self.shipment.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="shipment", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "authData": + obj_ = AuthData.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.authData = obj_ + obj_.original_tagname_ = "authData" + elif nodeName_ == "shipment": + obj_ = CreateReturnShipmentRequest.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.shipment = obj_ + obj_.original_tagname_ = "shipment" + + +# end class createShipmentReturn + + +class CreateReturnShipmentResponse(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + shipmentNotificationNumber=None, + shipmentTrackingNumber=None, + packagesTrackingNumbers=None, + dispatchNotificationNumber=None, + label=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.shipmentNotificationNumber = shipmentNotificationNumber + self.shipmentNotificationNumber_nsprefix_ = None + self.shipmentTrackingNumber = shipmentTrackingNumber + self.shipmentTrackingNumber_nsprefix_ = None + self.packagesTrackingNumbers = packagesTrackingNumbers + self.packagesTrackingNumbers_nsprefix_ = None + self.dispatchNotificationNumber = dispatchNotificationNumber + self.dispatchNotificationNumber_nsprefix_ = None + self.label = label + self.label_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, CreateReturnShipmentResponse + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if CreateReturnShipmentResponse.subclass: + return CreateReturnShipmentResponse.subclass(*args_, **kwargs_) + else: + return CreateReturnShipmentResponse(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_shipmentNotificationNumber(self): + return self.shipmentNotificationNumber + + def set_shipmentNotificationNumber(self, shipmentNotificationNumber): + self.shipmentNotificationNumber = shipmentNotificationNumber + + def get_shipmentTrackingNumber(self): + return self.shipmentTrackingNumber + + def set_shipmentTrackingNumber(self, shipmentTrackingNumber): + self.shipmentTrackingNumber = shipmentTrackingNumber + + def get_packagesTrackingNumbers(self): + return self.packagesTrackingNumbers + + def set_packagesTrackingNumbers(self, packagesTrackingNumbers): + self.packagesTrackingNumbers = packagesTrackingNumbers + + def get_dispatchNotificationNumber(self): + return self.dispatchNotificationNumber + + def set_dispatchNotificationNumber(self, dispatchNotificationNumber): + self.dispatchNotificationNumber = dispatchNotificationNumber + + def get_label(self): + return self.label + + def set_label(self, label): + self.label = label + + def _hasContent(self): + if ( + self.shipmentNotificationNumber is not None + or self.shipmentTrackingNumber is not None + or self.packagesTrackingNumbers is not None + or self.dispatchNotificationNumber is not None + or self.label is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="CreateReturnShipmentResponse", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("CreateReturnShipmentResponse") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if ( + self.original_tagname_ is not None + and name_ == "CreateReturnShipmentResponse" + ): + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="CreateReturnShipmentResponse", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="CreateReturnShipmentResponse", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="CreateReturnShipmentResponse", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="CreateReturnShipmentResponse", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.shipmentNotificationNumber is not None: + namespaceprefix_ = ( + self.shipmentNotificationNumber_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipmentNotificationNumber_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sshipmentNotificationNumber>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.shipmentNotificationNumber), + input_name="shipmentNotificationNumber", + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.shipmentTrackingNumber is not None: + namespaceprefix_ = ( + self.shipmentTrackingNumber_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipmentTrackingNumber_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sshipmentTrackingNumber>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.shipmentTrackingNumber), + input_name="shipmentTrackingNumber", + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.packagesTrackingNumbers is not None: + namespaceprefix_ = ( + self.packagesTrackingNumbers_nsprefix_ + ":" + if (UseCapturedNS_ and self.packagesTrackingNumbers_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spackagesTrackingNumbers>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.packagesTrackingNumbers), + input_name="packagesTrackingNumbers", + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.dispatchNotificationNumber is not None: + namespaceprefix_ = ( + self.dispatchNotificationNumber_nsprefix_ + ":" + if (UseCapturedNS_ and self.dispatchNotificationNumber_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sdispatchNotificationNumber>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.dispatchNotificationNumber), + input_name="dispatchNotificationNumber", + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.label is not None: + namespaceprefix_ = ( + self.label_nsprefix_ + ":" + if (UseCapturedNS_ and self.label_nsprefix_) + else "" + ) + self.label.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="label", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "shipmentNotificationNumber": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "shipmentNotificationNumber") + value_ = self.gds_validate_string( + value_, node, "shipmentNotificationNumber" + ) + self.shipmentNotificationNumber = value_ + self.shipmentNotificationNumber_nsprefix_ = child_.prefix + elif nodeName_ == "shipmentTrackingNumber": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "shipmentTrackingNumber") + value_ = self.gds_validate_string(value_, node, "shipmentTrackingNumber") + self.shipmentTrackingNumber = value_ + self.shipmentTrackingNumber_nsprefix_ = child_.prefix + elif nodeName_ == "packagesTrackingNumbers": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "packagesTrackingNumbers") + value_ = self.gds_validate_string(value_, node, "packagesTrackingNumbers") + self.packagesTrackingNumbers = value_ + self.packagesTrackingNumbers_nsprefix_ = child_.prefix + elif nodeName_ == "dispatchNotificationNumber": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "dispatchNotificationNumber") + value_ = self.gds_validate_string( + value_, node, "dispatchNotificationNumber" + ) + self.dispatchNotificationNumber = value_ + self.dispatchNotificationNumber_nsprefix_ = child_.prefix + elif nodeName_ == "label": + obj_ = Label.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.label = obj_ + obj_.original_tagname_ = "label" + + +# end class CreateReturnShipmentResponse + + +class ArrayOfCreatereturnshipmentresponse(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, item=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + if item is None: + self.item = [] + else: + self.item = item + self.item_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, ArrayOfCreatereturnshipmentresponse + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ArrayOfCreatereturnshipmentresponse.subclass: + return ArrayOfCreatereturnshipmentresponse.subclass(*args_, **kwargs_) + else: + return ArrayOfCreatereturnshipmentresponse(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_item(self): + return self.item + + def set_item(self, item): + self.item = item + + def add_item(self, value): + self.item.append(value) + + def insert_item_at(self, index, value): + self.item.insert(index, value) + + def replace_item_at(self, index, value): + self.item[index] = value + + def _hasContent(self): + if self.item: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfCreatereturnshipmentresponse", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get( + "ArrayOfCreatereturnshipmentresponse" + ) + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if ( + self.original_tagname_ is not None + and name_ == "ArrayOfCreatereturnshipmentresponse" + ): + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="ArrayOfCreatereturnshipmentresponse", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ArrayOfCreatereturnshipmentresponse", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ArrayOfCreatereturnshipmentresponse", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfCreatereturnshipmentresponse", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + for item_ in self.item: + namespaceprefix_ = ( + self.item_nsprefix_ + ":" + if (UseCapturedNS_ and self.item_nsprefix_) + else "" + ) + item_.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="item", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "item": + obj_ = CreateReturnShipmentResponse.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.item.append(obj_) + obj_.original_tagname_ = "item" + + +# end class ArrayOfCreatereturnshipmentresponse + + +class createShipmentReturnResponse(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, createShipmentReturnResult=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.createShipmentReturnResult = createShipmentReturnResult + self.createShipmentReturnResult_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, createShipmentReturnResponse + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if createShipmentReturnResponse.subclass: + return createShipmentReturnResponse.subclass(*args_, **kwargs_) + else: + return createShipmentReturnResponse(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_createShipmentReturnResult(self): + return self.createShipmentReturnResult + + def set_createShipmentReturnResult(self, createShipmentReturnResult): + self.createShipmentReturnResult = createShipmentReturnResult + + def _hasContent(self): + if self.createShipmentReturnResult is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="createShipmentReturnResponse", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("createShipmentReturnResponse") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if ( + self.original_tagname_ is not None + and name_ == "createShipmentReturnResponse" + ): + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="createShipmentReturnResponse", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="createShipmentReturnResponse", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="createShipmentReturnResponse", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="createShipmentReturnResponse", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.createShipmentReturnResult is not None: + namespaceprefix_ = ( + self.createShipmentReturnResult_nsprefix_ + ":" + if (UseCapturedNS_ and self.createShipmentReturnResult_nsprefix_) + else "" + ) + self.createShipmentReturnResult.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="createShipmentReturnResult", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "createShipmentReturnResult": + obj_ = ArrayOfCreatereturnshipmentresponse.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.createShipmentReturnResult = obj_ + obj_.original_tagname_ = "createShipmentReturnResult" + + +# end class createShipmentReturnResponse + + +class ArrayOfString(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, item=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + if item is None: + self.item = [] + else: + self.item = item + self.item_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, ArrayOfString) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ArrayOfString.subclass: + return ArrayOfString.subclass(*args_, **kwargs_) + else: + return ArrayOfString(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_item(self): + return self.item + + def set_item(self, item): + self.item = item + + def add_item(self, value): + self.item.append(value) + + def insert_item_at(self, index, value): + self.item.insert(index, value) + + def replace_item_at(self, index, value): + self.item[index] = value + + def _hasContent(self): + if self.item: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfString", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ArrayOfString") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ArrayOfString": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="ArrayOfString" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ArrayOfString", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ArrayOfString", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfString", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + for item_ in self.item: + namespaceprefix_ = ( + self.item_nsprefix_ + ":" + if (UseCapturedNS_ and self.item_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sitem>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string(quote_xml(item_), input_name="item") + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "item": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "item") + value_ = self.gds_validate_string(value_, node, "item") + self.item.append(value_) + self.item_nsprefix_ = child_.prefix + + +# end class ArrayOfString + + +class deleteShipments(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, authData=None, shipments=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.authData = authData + self.authData_nsprefix_ = "tns" + self.shipments = shipments + self.shipments_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, deleteShipments) + if subclass is not None: + return subclass(*args_, **kwargs_) + if deleteShipments.subclass: + return deleteShipments.subclass(*args_, **kwargs_) + else: + return deleteShipments(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_authData(self): + return self.authData + + def set_authData(self, authData): + self.authData = authData + + def get_shipments(self): + return self.shipments + + def set_shipments(self, shipments): + self.shipments = shipments + + def _hasContent(self): + if self.authData is not None or self.shipments is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="deleteShipments", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("deleteShipments") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "deleteShipments": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="deleteShipments" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="deleteShipments", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="deleteShipments", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="deleteShipments", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.authData is not None: + namespaceprefix_ = ( + self.authData_nsprefix_ + ":" + if (UseCapturedNS_ and self.authData_nsprefix_) + else "" + ) + self.authData.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="authData", + pretty_print=pretty_print, + ) + if self.shipments is not None: + namespaceprefix_ = ( + self.shipments_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipments_nsprefix_) + else "" + ) + self.shipments.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="shipments", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "authData": + obj_ = AuthData.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.authData = obj_ + obj_.original_tagname_ = "authData" + elif nodeName_ == "shipments": + obj_ = ArrayOfString.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.shipments = obj_ + obj_.original_tagname_ = "shipments" + + +# end class deleteShipments + + +class DeleteNotification(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, id=None, result=None, error=None, gds_collector_=None, **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.id = id + self.id_nsprefix_ = None + self.result = result + self.result_nsprefix_ = None + self.error = error + self.error_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, DeleteNotification + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if DeleteNotification.subclass: + return DeleteNotification.subclass(*args_, **kwargs_) + else: + return DeleteNotification(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_id(self): + return self.id + + def set_id(self, id): + self.id = id + + def get_result(self): + return self.result + + def set_result(self, result): + self.result = result + + def get_error(self): + return self.error + + def set_error(self, error): + self.error = error + + def _hasContent(self): + if self.id is not None or self.result is not None or self.error is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="DeleteNotification", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("DeleteNotification") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "DeleteNotification": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="DeleteNotification", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="DeleteNotification", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="DeleteNotification", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="DeleteNotification", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.id is not None: + namespaceprefix_ = ( + self.id_nsprefix_ + ":" + if (UseCapturedNS_ and self.id_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sid>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string(quote_xml(self.id), input_name="id") + ), + namespaceprefix_, + eol_, + ) + ) + if self.result is not None: + namespaceprefix_ = ( + self.result_nsprefix_ + ":" + if (UseCapturedNS_ and self.result_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sresult>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean(self.result, input_name="result"), + namespaceprefix_, + eol_, + ) + ) + if self.error is not None: + namespaceprefix_ = ( + self.error_nsprefix_ + ":" + if (UseCapturedNS_ and self.error_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%serror>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.error), input_name="error" + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "id": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "id") + value_ = self.gds_validate_string(value_, node, "id") + self.id = value_ + self.id_nsprefix_ = child_.prefix + elif nodeName_ == "result": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "result") + ival_ = self.gds_validate_boolean(ival_, node, "result") + self.result = ival_ + self.result_nsprefix_ = child_.prefix + elif nodeName_ == "error": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "error") + value_ = self.gds_validate_string(value_, node, "error") + self.error = value_ + self.error_nsprefix_ = child_.prefix + + +# end class DeleteNotification + + +class ArrayOfDeletenotification(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, item=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + if item is None: + self.item = [] + else: + self.item = item + self.item_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, ArrayOfDeletenotification + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ArrayOfDeletenotification.subclass: + return ArrayOfDeletenotification.subclass(*args_, **kwargs_) + else: + return ArrayOfDeletenotification(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_item(self): + return self.item + + def set_item(self, item): + self.item = item + + def add_item(self, value): + self.item.append(value) + + def insert_item_at(self, index, value): + self.item.insert(index, value) + + def replace_item_at(self, index, value): + self.item[index] = value + + def _hasContent(self): + if self.item: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfDeletenotification", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ArrayOfDeletenotification") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ArrayOfDeletenotification": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="ArrayOfDeletenotification", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ArrayOfDeletenotification", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ArrayOfDeletenotification", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfDeletenotification", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + for item_ in self.item: + namespaceprefix_ = ( + self.item_nsprefix_ + ":" + if (UseCapturedNS_ and self.item_nsprefix_) + else "" + ) + item_.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="item", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "item": + obj_ = DeleteNotification.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.item.append(obj_) + obj_.original_tagname_ = "item" + + +# end class ArrayOfDeletenotification + + +class deleteShipmentsResponse(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, deleteShipmentsResult=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.deleteShipmentsResult = deleteShipmentsResult + self.deleteShipmentsResult_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, deleteShipmentsResponse + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if deleteShipmentsResponse.subclass: + return deleteShipmentsResponse.subclass(*args_, **kwargs_) + else: + return deleteShipmentsResponse(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_deleteShipmentsResult(self): + return self.deleteShipmentsResult + + def set_deleteShipmentsResult(self, deleteShipmentsResult): + self.deleteShipmentsResult = deleteShipmentsResult + + def _hasContent(self): + if self.deleteShipmentsResult is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="deleteShipmentsResponse", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("deleteShipmentsResponse") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "deleteShipmentsResponse": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="deleteShipmentsResponse", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="deleteShipmentsResponse", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="deleteShipmentsResponse", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="deleteShipmentsResponse", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.deleteShipmentsResult is not None: + namespaceprefix_ = ( + self.deleteShipmentsResult_nsprefix_ + ":" + if (UseCapturedNS_ and self.deleteShipmentsResult_nsprefix_) + else "" + ) + self.deleteShipmentsResult.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="deleteShipmentsResult", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "deleteShipmentsResult": + obj_ = ArrayOfDeletenotification.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.deleteShipmentsResult = obj_ + obj_.original_tagname_ = "deleteShipmentsResult" + + +# end class deleteShipmentsResponse + + +class getMyShipments(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + authData=None, + createdFrom=None, + createdTo=None, + offset=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.authData = authData + self.authData_nsprefix_ = "tns" + self.createdFrom = createdFrom + self.createdFrom_nsprefix_ = None + self.createdTo = createdTo + self.createdTo_nsprefix_ = None + self.offset = offset + self.offset_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, getMyShipments) + if subclass is not None: + return subclass(*args_, **kwargs_) + if getMyShipments.subclass: + return getMyShipments.subclass(*args_, **kwargs_) + else: + return getMyShipments(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_authData(self): + return self.authData + + def set_authData(self, authData): + self.authData = authData + + def get_createdFrom(self): + return self.createdFrom + + def set_createdFrom(self, createdFrom): + self.createdFrom = createdFrom + + def get_createdTo(self): + return self.createdTo + + def set_createdTo(self, createdTo): + self.createdTo = createdTo + + def get_offset(self): + return self.offset + + def set_offset(self, offset): + self.offset = offset + + def _hasContent(self): + if ( + self.authData is not None + or self.createdFrom is not None + or self.createdTo is not None + or self.offset is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getMyShipments", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("getMyShipments") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "getMyShipments": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="getMyShipments" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="getMyShipments", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="getMyShipments", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getMyShipments", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.authData is not None: + namespaceprefix_ = ( + self.authData_nsprefix_ + ":" + if (UseCapturedNS_ and self.authData_nsprefix_) + else "" + ) + self.authData.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="authData", + pretty_print=pretty_print, + ) + if self.createdFrom is not None: + namespaceprefix_ = ( + self.createdFrom_nsprefix_ + ":" + if (UseCapturedNS_ and self.createdFrom_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%screatedFrom>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.createdFrom), input_name="createdFrom" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.createdTo is not None: + namespaceprefix_ = ( + self.createdTo_nsprefix_ + ":" + if (UseCapturedNS_ and self.createdTo_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%screatedTo>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.createdTo), input_name="createdTo" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.offset is not None: + namespaceprefix_ = ( + self.offset_nsprefix_ + ":" + if (UseCapturedNS_ and self.offset_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%soffset>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.offset, input_name="offset"), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "authData": + obj_ = AuthData.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.authData = obj_ + obj_.original_tagname_ = "authData" + elif nodeName_ == "createdFrom": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "createdFrom") + value_ = self.gds_validate_string(value_, node, "createdFrom") + self.createdFrom = value_ + self.createdFrom_nsprefix_ = child_.prefix + elif nodeName_ == "createdTo": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "createdTo") + value_ = self.gds_validate_string(value_, node, "createdTo") + self.createdTo = value_ + self.createdTo_nsprefix_ = child_.prefix + elif nodeName_ == "offset" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "offset") + ival_ = self.gds_validate_integer(ival_, node, "offset") + self.offset = ival_ + self.offset_nsprefix_ = child_.prefix + + +# end class getMyShipments + + +class getMyShipmentsResponse(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, getMyShipmentsResult=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.getMyShipmentsResult = getMyShipmentsResult + self.getMyShipmentsResult_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, getMyShipmentsResponse + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if getMyShipmentsResponse.subclass: + return getMyShipmentsResponse.subclass(*args_, **kwargs_) + else: + return getMyShipmentsResponse(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_getMyShipmentsResult(self): + return self.getMyShipmentsResult + + def set_getMyShipmentsResult(self, getMyShipmentsResult): + self.getMyShipmentsResult = getMyShipmentsResult + + def _hasContent(self): + if self.getMyShipmentsResult is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getMyShipmentsResponse", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("getMyShipmentsResponse") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "getMyShipmentsResponse": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="getMyShipmentsResponse", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="getMyShipmentsResponse", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="getMyShipmentsResponse", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getMyShipmentsResponse", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.getMyShipmentsResult is not None: + namespaceprefix_ = ( + self.getMyShipmentsResult_nsprefix_ + ":" + if (UseCapturedNS_ and self.getMyShipmentsResult_nsprefix_) + else "" + ) + self.getMyShipmentsResult.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="getMyShipmentsResult", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "getMyShipmentsResult": + obj_ = ArrayOfShipmentbasicdata.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.getMyShipmentsResult = obj_ + obj_.original_tagname_ = "getMyShipmentsResult" + + +# end class getMyShipmentsResponse + + +class getMyShipmentsCount(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + authData=None, + createdFrom=None, + createdTo=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.authData = authData + self.authData_nsprefix_ = "tns" + self.createdFrom = createdFrom + self.createdFrom_nsprefix_ = None + self.createdTo = createdTo + self.createdTo_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, getMyShipmentsCount + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if getMyShipmentsCount.subclass: + return getMyShipmentsCount.subclass(*args_, **kwargs_) + else: + return getMyShipmentsCount(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_authData(self): + return self.authData + + def set_authData(self, authData): + self.authData = authData + + def get_createdFrom(self): + return self.createdFrom + + def set_createdFrom(self, createdFrom): + self.createdFrom = createdFrom + + def get_createdTo(self): + return self.createdTo + + def set_createdTo(self, createdTo): + self.createdTo = createdTo + + def _hasContent(self): + if ( + self.authData is not None + or self.createdFrom is not None + or self.createdTo is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getMyShipmentsCount", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("getMyShipmentsCount") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "getMyShipmentsCount": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="getMyShipmentsCount", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="getMyShipmentsCount", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="getMyShipmentsCount", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getMyShipmentsCount", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.authData is not None: + namespaceprefix_ = ( + self.authData_nsprefix_ + ":" + if (UseCapturedNS_ and self.authData_nsprefix_) + else "" + ) + self.authData.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="authData", + pretty_print=pretty_print, + ) + if self.createdFrom is not None: + namespaceprefix_ = ( + self.createdFrom_nsprefix_ + ":" + if (UseCapturedNS_ and self.createdFrom_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%screatedFrom>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.createdFrom), input_name="createdFrom" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.createdTo is not None: + namespaceprefix_ = ( + self.createdTo_nsprefix_ + ":" + if (UseCapturedNS_ and self.createdTo_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%screatedTo>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.createdTo), input_name="createdTo" + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "authData": + obj_ = AuthData.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.authData = obj_ + obj_.original_tagname_ = "authData" + elif nodeName_ == "createdFrom": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "createdFrom") + value_ = self.gds_validate_string(value_, node, "createdFrom") + self.createdFrom = value_ + self.createdFrom_nsprefix_ = child_.prefix + elif nodeName_ == "createdTo": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "createdTo") + value_ = self.gds_validate_string(value_, node, "createdTo") + self.createdTo = value_ + self.createdTo_nsprefix_ = child_.prefix + + +# end class getMyShipmentsCount + + +class getMyShipmentsCountResponse(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, getMyShipmentsCountResult=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.getMyShipmentsCountResult = getMyShipmentsCountResult + self.getMyShipmentsCountResult_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, getMyShipmentsCountResponse + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if getMyShipmentsCountResponse.subclass: + return getMyShipmentsCountResponse.subclass(*args_, **kwargs_) + else: + return getMyShipmentsCountResponse(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_getMyShipmentsCountResult(self): + return self.getMyShipmentsCountResult + + def set_getMyShipmentsCountResult(self, getMyShipmentsCountResult): + self.getMyShipmentsCountResult = getMyShipmentsCountResult + + def _hasContent(self): + if self.getMyShipmentsCountResult is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getMyShipmentsCountResponse", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("getMyShipmentsCountResponse") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if ( + self.original_tagname_ is not None + and name_ == "getMyShipmentsCountResponse" + ): + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="getMyShipmentsCountResponse", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="getMyShipmentsCountResponse", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="getMyShipmentsCountResponse", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getMyShipmentsCountResponse", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.getMyShipmentsCountResult is not None: + namespaceprefix_ = ( + self.getMyShipmentsCountResult_nsprefix_ + ":" + if (UseCapturedNS_ and self.getMyShipmentsCountResult_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sgetMyShipmentsCountResult>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer( + self.getMyShipmentsCountResult, + input_name="getMyShipmentsCountResult", + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "getMyShipmentsCountResult" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "getMyShipmentsCountResult") + ival_ = self.gds_validate_integer(ival_, node, "getMyShipmentsCountResult") + self.getMyShipmentsCountResult = ival_ + self.getMyShipmentsCountResult_nsprefix_ = child_.prefix + + +# end class getMyShipmentsCountResponse + + +class getPostalCodeServices(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + authData=None, + postCode=None, + pickupDate=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.authData = authData + self.authData_nsprefix_ = "tns" + self.postCode = postCode + self.postCode_nsprefix_ = None + self.pickupDate = pickupDate + self.pickupDate_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, getPostalCodeServices + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if getPostalCodeServices.subclass: + return getPostalCodeServices.subclass(*args_, **kwargs_) + else: + return getPostalCodeServices(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_authData(self): + return self.authData + + def set_authData(self, authData): + self.authData = authData + + def get_postCode(self): + return self.postCode + + def set_postCode(self, postCode): + self.postCode = postCode + + def get_pickupDate(self): + return self.pickupDate + + def set_pickupDate(self, pickupDate): + self.pickupDate = pickupDate + + def _hasContent(self): + if ( + self.authData is not None + or self.postCode is not None + or self.pickupDate is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getPostalCodeServices", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("getPostalCodeServices") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "getPostalCodeServices": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="getPostalCodeServices", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="getPostalCodeServices", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="getPostalCodeServices", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getPostalCodeServices", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.authData is not None: + namespaceprefix_ = ( + self.authData_nsprefix_ + ":" + if (UseCapturedNS_ and self.authData_nsprefix_) + else "" + ) + self.authData.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="authData", + pretty_print=pretty_print, + ) + if self.postCode is not None: + namespaceprefix_ = ( + self.postCode_nsprefix_ + ":" + if (UseCapturedNS_ and self.postCode_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spostCode>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.postCode), input_name="postCode" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.pickupDate is not None: + namespaceprefix_ = ( + self.pickupDate_nsprefix_ + ":" + if (UseCapturedNS_ and self.pickupDate_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spickupDate>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.pickupDate), input_name="pickupDate" + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "authData": + obj_ = AuthData.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.authData = obj_ + obj_.original_tagname_ = "authData" + elif nodeName_ == "postCode": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "postCode") + value_ = self.gds_validate_string(value_, node, "postCode") + self.postCode = value_ + self.postCode_nsprefix_ = child_.prefix + elif nodeName_ == "pickupDate": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "pickupDate") + value_ = self.gds_validate_string(value_, node, "pickupDate") + self.pickupDate = value_ + self.pickupDate_nsprefix_ = child_.prefix + + +# end class getPostalCodeServices + + +class PostalCodeServicesResponse(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + domesticExpress9=None, + domesticExpress12=None, + deliveryEvening=None, + pickupOnSaturday=None, + deliverySaturday=None, + exPickupFrom=None, + exPickupTo=None, + drPickupFrom=None, + drPickupTo=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.domesticExpress9 = domesticExpress9 + self.domesticExpress9_nsprefix_ = None + self.domesticExpress12 = domesticExpress12 + self.domesticExpress12_nsprefix_ = None + self.deliveryEvening = deliveryEvening + self.deliveryEvening_nsprefix_ = None + self.pickupOnSaturday = pickupOnSaturday + self.pickupOnSaturday_nsprefix_ = None + self.deliverySaturday = deliverySaturday + self.deliverySaturday_nsprefix_ = None + self.exPickupFrom = exPickupFrom + self.exPickupFrom_nsprefix_ = None + self.exPickupTo = exPickupTo + self.exPickupTo_nsprefix_ = None + self.drPickupFrom = drPickupFrom + self.drPickupFrom_nsprefix_ = None + self.drPickupTo = drPickupTo + self.drPickupTo_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, PostalCodeServicesResponse + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if PostalCodeServicesResponse.subclass: + return PostalCodeServicesResponse.subclass(*args_, **kwargs_) + else: + return PostalCodeServicesResponse(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_domesticExpress9(self): + return self.domesticExpress9 + + def set_domesticExpress9(self, domesticExpress9): + self.domesticExpress9 = domesticExpress9 + + def get_domesticExpress12(self): + return self.domesticExpress12 + + def set_domesticExpress12(self, domesticExpress12): + self.domesticExpress12 = domesticExpress12 + + def get_deliveryEvening(self): + return self.deliveryEvening + + def set_deliveryEvening(self, deliveryEvening): + self.deliveryEvening = deliveryEvening + + def get_pickupOnSaturday(self): + return self.pickupOnSaturday + + def set_pickupOnSaturday(self, pickupOnSaturday): + self.pickupOnSaturday = pickupOnSaturday + + def get_deliverySaturday(self): + return self.deliverySaturday + + def set_deliverySaturday(self, deliverySaturday): + self.deliverySaturday = deliverySaturday + + def get_exPickupFrom(self): + return self.exPickupFrom + + def set_exPickupFrom(self, exPickupFrom): + self.exPickupFrom = exPickupFrom + + def get_exPickupTo(self): + return self.exPickupTo + + def set_exPickupTo(self, exPickupTo): + self.exPickupTo = exPickupTo + + def get_drPickupFrom(self): + return self.drPickupFrom + + def set_drPickupFrom(self, drPickupFrom): + self.drPickupFrom = drPickupFrom + + def get_drPickupTo(self): + return self.drPickupTo + + def set_drPickupTo(self, drPickupTo): + self.drPickupTo = drPickupTo + + def _hasContent(self): + if ( + self.domesticExpress9 is not None + or self.domesticExpress12 is not None + or self.deliveryEvening is not None + or self.pickupOnSaturday is not None + or self.deliverySaturday is not None + or self.exPickupFrom is not None + or self.exPickupTo is not None + or self.drPickupFrom is not None + or self.drPickupTo is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="PostalCodeServicesResponse", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("PostalCodeServicesResponse") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "PostalCodeServicesResponse": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="PostalCodeServicesResponse", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="PostalCodeServicesResponse", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="PostalCodeServicesResponse", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="PostalCodeServicesResponse", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.domesticExpress9 is not None: + namespaceprefix_ = ( + self.domesticExpress9_nsprefix_ + ":" + if (UseCapturedNS_ and self.domesticExpress9_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sdomesticExpress9>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.domesticExpress9, input_name="domesticExpress9" + ), + namespaceprefix_, + eol_, + ) + ) + if self.domesticExpress12 is not None: + namespaceprefix_ = ( + self.domesticExpress12_nsprefix_ + ":" + if (UseCapturedNS_ and self.domesticExpress12_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sdomesticExpress12>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.domesticExpress12, input_name="domesticExpress12" + ), + namespaceprefix_, + eol_, + ) + ) + if self.deliveryEvening is not None: + namespaceprefix_ = ( + self.deliveryEvening_nsprefix_ + ":" + if (UseCapturedNS_ and self.deliveryEvening_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sdeliveryEvening>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.deliveryEvening, input_name="deliveryEvening" + ), + namespaceprefix_, + eol_, + ) + ) + if self.pickupOnSaturday is not None: + namespaceprefix_ = ( + self.pickupOnSaturday_nsprefix_ + ":" + if (UseCapturedNS_ and self.pickupOnSaturday_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spickupOnSaturday>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.pickupOnSaturday, input_name="pickupOnSaturday" + ), + namespaceprefix_, + eol_, + ) + ) + if self.deliverySaturday is not None: + namespaceprefix_ = ( + self.deliverySaturday_nsprefix_ + ":" + if (UseCapturedNS_ and self.deliverySaturday_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sdeliverySaturday>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.deliverySaturday, input_name="deliverySaturday" + ), + namespaceprefix_, + eol_, + ) + ) + if self.exPickupFrom is not None: + namespaceprefix_ = ( + self.exPickupFrom_nsprefix_ + ":" + if (UseCapturedNS_ and self.exPickupFrom_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sexPickupFrom>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.exPickupFrom), input_name="exPickupFrom" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.exPickupTo is not None: + namespaceprefix_ = ( + self.exPickupTo_nsprefix_ + ":" + if (UseCapturedNS_ and self.exPickupTo_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sexPickupTo>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.exPickupTo), input_name="exPickupTo" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.drPickupFrom is not None: + namespaceprefix_ = ( + self.drPickupFrom_nsprefix_ + ":" + if (UseCapturedNS_ and self.drPickupFrom_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sdrPickupFrom>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.drPickupFrom), input_name="drPickupFrom" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.drPickupTo is not None: + namespaceprefix_ = ( + self.drPickupTo_nsprefix_ + ":" + if (UseCapturedNS_ and self.drPickupTo_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sdrPickupTo>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.drPickupTo), input_name="drPickupTo" + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "domesticExpress9": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "domesticExpress9") + ival_ = self.gds_validate_boolean(ival_, node, "domesticExpress9") + self.domesticExpress9 = ival_ + self.domesticExpress9_nsprefix_ = child_.prefix + elif nodeName_ == "domesticExpress12": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "domesticExpress12") + ival_ = self.gds_validate_boolean(ival_, node, "domesticExpress12") + self.domesticExpress12 = ival_ + self.domesticExpress12_nsprefix_ = child_.prefix + elif nodeName_ == "deliveryEvening": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "deliveryEvening") + ival_ = self.gds_validate_boolean(ival_, node, "deliveryEvening") + self.deliveryEvening = ival_ + self.deliveryEvening_nsprefix_ = child_.prefix + elif nodeName_ == "pickupOnSaturday": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "pickupOnSaturday") + ival_ = self.gds_validate_boolean(ival_, node, "pickupOnSaturday") + self.pickupOnSaturday = ival_ + self.pickupOnSaturday_nsprefix_ = child_.prefix + elif nodeName_ == "deliverySaturday": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "deliverySaturday") + ival_ = self.gds_validate_boolean(ival_, node, "deliverySaturday") + self.deliverySaturday = ival_ + self.deliverySaturday_nsprefix_ = child_.prefix + elif nodeName_ == "exPickupFrom": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "exPickupFrom") + value_ = self.gds_validate_string(value_, node, "exPickupFrom") + self.exPickupFrom = value_ + self.exPickupFrom_nsprefix_ = child_.prefix + elif nodeName_ == "exPickupTo": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "exPickupTo") + value_ = self.gds_validate_string(value_, node, "exPickupTo") + self.exPickupTo = value_ + self.exPickupTo_nsprefix_ = child_.prefix + elif nodeName_ == "drPickupFrom": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "drPickupFrom") + value_ = self.gds_validate_string(value_, node, "drPickupFrom") + self.drPickupFrom = value_ + self.drPickupFrom_nsprefix_ = child_.prefix + elif nodeName_ == "drPickupTo": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "drPickupTo") + value_ = self.gds_validate_string(value_, node, "drPickupTo") + self.drPickupTo = value_ + self.drPickupTo_nsprefix_ = child_.prefix + + +# end class PostalCodeServicesResponse + + +class getPostalCodeServicesResponse(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, getPostalCodeServicesResult=None, gds_collector_=None, **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.getPostalCodeServicesResult = getPostalCodeServicesResult + self.getPostalCodeServicesResult_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, getPostalCodeServicesResponse + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if getPostalCodeServicesResponse.subclass: + return getPostalCodeServicesResponse.subclass(*args_, **kwargs_) + else: + return getPostalCodeServicesResponse(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_getPostalCodeServicesResult(self): + return self.getPostalCodeServicesResult + + def set_getPostalCodeServicesResult(self, getPostalCodeServicesResult): + self.getPostalCodeServicesResult = getPostalCodeServicesResult + + def _hasContent(self): + if self.getPostalCodeServicesResult is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getPostalCodeServicesResponse", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("getPostalCodeServicesResponse") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if ( + self.original_tagname_ is not None + and name_ == "getPostalCodeServicesResponse" + ): + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="getPostalCodeServicesResponse", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="getPostalCodeServicesResponse", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="getPostalCodeServicesResponse", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getPostalCodeServicesResponse", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.getPostalCodeServicesResult is not None: + namespaceprefix_ = ( + self.getPostalCodeServicesResult_nsprefix_ + ":" + if (UseCapturedNS_ and self.getPostalCodeServicesResult_nsprefix_) + else "" + ) + self.getPostalCodeServicesResult.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="getPostalCodeServicesResult", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "getPostalCodeServicesResult": + obj_ = PostalCodeServicesResponse.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.getPostalCodeServicesResult = obj_ + obj_.original_tagname_ = "getPostalCodeServicesResult" + + +# end class getPostalCodeServicesResponse + + +class getTrackAndTraceInfo(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, authData=None, shipmentId=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.authData = authData + self.authData_nsprefix_ = "tns" + self.shipmentId = shipmentId + self.shipmentId_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, getTrackAndTraceInfo + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if getTrackAndTraceInfo.subclass: + return getTrackAndTraceInfo.subclass(*args_, **kwargs_) + else: + return getTrackAndTraceInfo(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_authData(self): + return self.authData + + def set_authData(self, authData): + self.authData = authData + + def get_shipmentId(self): + return self.shipmentId + + def set_shipmentId(self, shipmentId): + self.shipmentId = shipmentId + + def _hasContent(self): + if self.authData is not None or self.shipmentId is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getTrackAndTraceInfo", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("getTrackAndTraceInfo") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "getTrackAndTraceInfo": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="getTrackAndTraceInfo", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="getTrackAndTraceInfo", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="getTrackAndTraceInfo", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getTrackAndTraceInfo", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.authData is not None: + namespaceprefix_ = ( + self.authData_nsprefix_ + ":" + if (UseCapturedNS_ and self.authData_nsprefix_) + else "" + ) + self.authData.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="authData", + pretty_print=pretty_print, + ) + if self.shipmentId is not None: + namespaceprefix_ = ( + self.shipmentId_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipmentId_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sshipmentId>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.shipmentId), input_name="shipmentId" + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "authData": + obj_ = AuthData.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.authData = obj_ + obj_.original_tagname_ = "authData" + elif nodeName_ == "shipmentId": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "shipmentId") + value_ = self.gds_validate_string(value_, node, "shipmentId") + self.shipmentId = value_ + self.shipmentId_nsprefix_ = child_.prefix + + +# end class getTrackAndTraceInfo + + +class TrackAndTraceEvent(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + status=None, + description=None, + terminal=None, + timestamp=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.status = status + self.status_nsprefix_ = None + self.description = description + self.description_nsprefix_ = None + self.terminal = terminal + self.terminal_nsprefix_ = None + self.timestamp = timestamp + self.timestamp_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, TrackAndTraceEvent + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if TrackAndTraceEvent.subclass: + return TrackAndTraceEvent.subclass(*args_, **kwargs_) + else: + return TrackAndTraceEvent(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_status(self): + return self.status + + def set_status(self, status): + self.status = status + + def get_description(self): + return self.description + + def set_description(self, description): + self.description = description + + def get_terminal(self): + return self.terminal + + def set_terminal(self, terminal): + self.terminal = terminal + + def get_timestamp(self): + return self.timestamp + + def set_timestamp(self, timestamp): + self.timestamp = timestamp + + def _hasContent(self): + if ( + self.status is not None + or self.description is not None + or self.terminal is not None + or self.timestamp is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="TrackAndTraceEvent", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("TrackAndTraceEvent") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "TrackAndTraceEvent": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="TrackAndTraceEvent", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="TrackAndTraceEvent", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="TrackAndTraceEvent", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="TrackAndTraceEvent", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.status is not None: + namespaceprefix_ = ( + self.status_nsprefix_ + ":" + if (UseCapturedNS_ and self.status_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sstatus>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.status), input_name="status" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.description is not None: + namespaceprefix_ = ( + self.description_nsprefix_ + ":" + if (UseCapturedNS_ and self.description_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sdescription>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.description), input_name="description" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.terminal is not None: + namespaceprefix_ = ( + self.terminal_nsprefix_ + ":" + if (UseCapturedNS_ and self.terminal_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sterminal>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.terminal), input_name="terminal" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.timestamp is not None: + namespaceprefix_ = ( + self.timestamp_nsprefix_ + ":" + if (UseCapturedNS_ and self.timestamp_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%stimestamp>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.timestamp), input_name="timestamp" + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "status": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "status") + value_ = self.gds_validate_string(value_, node, "status") + self.status = value_ + self.status_nsprefix_ = child_.prefix + elif nodeName_ == "description": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "description") + value_ = self.gds_validate_string(value_, node, "description") + self.description = value_ + self.description_nsprefix_ = child_.prefix + elif nodeName_ == "terminal": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "terminal") + value_ = self.gds_validate_string(value_, node, "terminal") + self.terminal = value_ + self.terminal_nsprefix_ = child_.prefix + elif nodeName_ == "timestamp": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "timestamp") + value_ = self.gds_validate_string(value_, node, "timestamp") + self.timestamp = value_ + self.timestamp_nsprefix_ = child_.prefix + + +# end class TrackAndTraceEvent + + +class ArrayOfTrackandtraceevent(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, item=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + if item is None: + self.item = [] + else: + self.item = item + self.item_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, ArrayOfTrackandtraceevent + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ArrayOfTrackandtraceevent.subclass: + return ArrayOfTrackandtraceevent.subclass(*args_, **kwargs_) + else: + return ArrayOfTrackandtraceevent(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_item(self): + return self.item + + def set_item(self, item): + self.item = item + + def add_item(self, value): + self.item.append(value) + + def insert_item_at(self, index, value): + self.item.insert(index, value) + + def replace_item_at(self, index, value): + self.item[index] = value + + def _hasContent(self): + if self.item: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfTrackandtraceevent", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ArrayOfTrackandtraceevent") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ArrayOfTrackandtraceevent": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="ArrayOfTrackandtraceevent", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ArrayOfTrackandtraceevent", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ArrayOfTrackandtraceevent", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfTrackandtraceevent", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + for item_ in self.item: + namespaceprefix_ = ( + self.item_nsprefix_ + ":" + if (UseCapturedNS_ and self.item_nsprefix_) + else "" + ) + item_.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="item", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "item": + obj_ = TrackAndTraceEvent.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.item.append(obj_) + obj_.original_tagname_ = "item" + + +# end class ArrayOfTrackandtraceevent + + +class TrackAndTraceResponse(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + shipmentId=None, + receivedBy=None, + events=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.shipmentId = shipmentId + self.shipmentId_nsprefix_ = None + self.receivedBy = receivedBy + self.receivedBy_nsprefix_ = None + self.events = events + self.events_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, TrackAndTraceResponse + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if TrackAndTraceResponse.subclass: + return TrackAndTraceResponse.subclass(*args_, **kwargs_) + else: + return TrackAndTraceResponse(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_shipmentId(self): + return self.shipmentId + + def set_shipmentId(self, shipmentId): + self.shipmentId = shipmentId + + def get_receivedBy(self): + return self.receivedBy + + def set_receivedBy(self, receivedBy): + self.receivedBy = receivedBy + + def get_events(self): + return self.events + + def set_events(self, events): + self.events = events + + def _hasContent(self): + if ( + self.shipmentId is not None + or self.receivedBy is not None + or self.events is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="TrackAndTraceResponse", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("TrackAndTraceResponse") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "TrackAndTraceResponse": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="TrackAndTraceResponse", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="TrackAndTraceResponse", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="TrackAndTraceResponse", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="TrackAndTraceResponse", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.shipmentId is not None: + namespaceprefix_ = ( + self.shipmentId_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipmentId_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sshipmentId>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.shipmentId), input_name="shipmentId" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.receivedBy is not None: + namespaceprefix_ = ( + self.receivedBy_nsprefix_ + ":" + if (UseCapturedNS_ and self.receivedBy_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sreceivedBy>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.receivedBy), input_name="receivedBy" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.events is not None: + namespaceprefix_ = ( + self.events_nsprefix_ + ":" + if (UseCapturedNS_ and self.events_nsprefix_) + else "" + ) + self.events.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="events", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "shipmentId": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "shipmentId") + value_ = self.gds_validate_string(value_, node, "shipmentId") + self.shipmentId = value_ + self.shipmentId_nsprefix_ = child_.prefix + elif nodeName_ == "receivedBy": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "receivedBy") + value_ = self.gds_validate_string(value_, node, "receivedBy") + self.receivedBy = value_ + self.receivedBy_nsprefix_ = child_.prefix + elif nodeName_ == "events": + obj_ = ArrayOfTrackandtraceevent.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.events = obj_ + obj_.original_tagname_ = "events" + + +# end class TrackAndTraceResponse + + +class getTrackAndTraceInfoResponse(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, getTrackAndTraceInfoResult=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.getTrackAndTraceInfoResult = getTrackAndTraceInfoResult + self.getTrackAndTraceInfoResult_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, getTrackAndTraceInfoResponse + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if getTrackAndTraceInfoResponse.subclass: + return getTrackAndTraceInfoResponse.subclass(*args_, **kwargs_) + else: + return getTrackAndTraceInfoResponse(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_getTrackAndTraceInfoResult(self): + return self.getTrackAndTraceInfoResult + + def set_getTrackAndTraceInfoResult(self, getTrackAndTraceInfoResult): + self.getTrackAndTraceInfoResult = getTrackAndTraceInfoResult + + def _hasContent(self): + if self.getTrackAndTraceInfoResult is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getTrackAndTraceInfoResponse", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("getTrackAndTraceInfoResponse") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if ( + self.original_tagname_ is not None + and name_ == "getTrackAndTraceInfoResponse" + ): + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="getTrackAndTraceInfoResponse", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="getTrackAndTraceInfoResponse", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="getTrackAndTraceInfoResponse", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getTrackAndTraceInfoResponse", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.getTrackAndTraceInfoResult is not None: + namespaceprefix_ = ( + self.getTrackAndTraceInfoResult_nsprefix_ + ":" + if (UseCapturedNS_ and self.getTrackAndTraceInfoResult_nsprefix_) + else "" + ) + self.getTrackAndTraceInfoResult.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="getTrackAndTraceInfoResult", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "getTrackAndTraceInfoResult": + obj_ = TrackAndTraceResponse.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.getTrackAndTraceInfoResult = obj_ + obj_.original_tagname_ = "getTrackAndTraceInfoResult" + + +# end class getTrackAndTraceInfoResponse + + +class ShipmentOrderInfo(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + shipper=None, + numberOfExPieces=None, + numberOfDrPieces=None, + totalWeight=None, + heaviestPieceWeight=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.shipper = shipper + self.shipper_nsprefix_ = "tns" + self.numberOfExPieces = numberOfExPieces + self.numberOfExPieces_nsprefix_ = None + self.numberOfDrPieces = numberOfDrPieces + self.numberOfDrPieces_nsprefix_ = None + self.totalWeight = totalWeight + self.totalWeight_nsprefix_ = None + self.heaviestPieceWeight = heaviestPieceWeight + self.heaviestPieceWeight_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, ShipmentOrderInfo) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ShipmentOrderInfo.subclass: + return ShipmentOrderInfo.subclass(*args_, **kwargs_) + else: + return ShipmentOrderInfo(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_shipper(self): + return self.shipper + + def set_shipper(self, shipper): + self.shipper = shipper + + def get_numberOfExPieces(self): + return self.numberOfExPieces + + def set_numberOfExPieces(self, numberOfExPieces): + self.numberOfExPieces = numberOfExPieces + + def get_numberOfDrPieces(self): + return self.numberOfDrPieces + + def set_numberOfDrPieces(self, numberOfDrPieces): + self.numberOfDrPieces = numberOfDrPieces + + def get_totalWeight(self): + return self.totalWeight + + def set_totalWeight(self, totalWeight): + self.totalWeight = totalWeight + + def get_heaviestPieceWeight(self): + return self.heaviestPieceWeight + + def set_heaviestPieceWeight(self, heaviestPieceWeight): + self.heaviestPieceWeight = heaviestPieceWeight + + def _hasContent(self): + if ( + self.shipper is not None + or self.numberOfExPieces is not None + or self.numberOfDrPieces is not None + or self.totalWeight is not None + or self.heaviestPieceWeight is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ShipmentOrderInfo", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ShipmentOrderInfo") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ShipmentOrderInfo": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="ShipmentOrderInfo", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ShipmentOrderInfo", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ShipmentOrderInfo", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ShipmentOrderInfo", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.shipper is not None: + namespaceprefix_ = ( + self.shipper_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipper_nsprefix_) + else "" + ) + self.shipper.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="shipper", + pretty_print=pretty_print, + ) + if self.numberOfExPieces is not None: + namespaceprefix_ = ( + self.numberOfExPieces_nsprefix_ + ":" + if (UseCapturedNS_ and self.numberOfExPieces_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%snumberOfExPieces>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer( + self.numberOfExPieces, input_name="numberOfExPieces" + ), + namespaceprefix_, + eol_, + ) + ) + if self.numberOfDrPieces is not None: + namespaceprefix_ = ( + self.numberOfDrPieces_nsprefix_ + ":" + if (UseCapturedNS_ and self.numberOfDrPieces_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%snumberOfDrPieces>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer( + self.numberOfDrPieces, input_name="numberOfDrPieces" + ), + namespaceprefix_, + eol_, + ) + ) + if self.totalWeight is not None: + namespaceprefix_ = ( + self.totalWeight_nsprefix_ + ":" + if (UseCapturedNS_ and self.totalWeight_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%stotalWeight>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.totalWeight, input_name="totalWeight"), + namespaceprefix_, + eol_, + ) + ) + if self.heaviestPieceWeight is not None: + namespaceprefix_ = ( + self.heaviestPieceWeight_nsprefix_ + ":" + if (UseCapturedNS_ and self.heaviestPieceWeight_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sheaviestPieceWeight>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer( + self.heaviestPieceWeight, input_name="heaviestPieceWeight" + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "shipper": + obj_ = AddressData.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.shipper = obj_ + obj_.original_tagname_ = "shipper" + elif nodeName_ == "numberOfExPieces" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "numberOfExPieces") + ival_ = self.gds_validate_integer(ival_, node, "numberOfExPieces") + self.numberOfExPieces = ival_ + self.numberOfExPieces_nsprefix_ = child_.prefix + elif nodeName_ == "numberOfDrPieces" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "numberOfDrPieces") + ival_ = self.gds_validate_integer(ival_, node, "numberOfDrPieces") + self.numberOfDrPieces = ival_ + self.numberOfDrPieces_nsprefix_ = child_.prefix + elif nodeName_ == "totalWeight" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "totalWeight") + ival_ = self.gds_validate_integer(ival_, node, "totalWeight") + self.totalWeight = ival_ + self.totalWeight_nsprefix_ = child_.prefix + elif nodeName_ == "heaviestPieceWeight" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "heaviestPieceWeight") + ival_ = self.gds_validate_integer(ival_, node, "heaviestPieceWeight") + self.heaviestPieceWeight = ival_ + self.heaviestPieceWeight_nsprefix_ = child_.prefix + + +# end class ShipmentOrderInfo + + +class bookCourier(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + authData=None, + pickupDate=None, + pickupTimeFrom=None, + pickupTimeTo=None, + additionalInfo=None, + shipmentIdList=None, + shipmentOrderInfo=None, + courierWithLabel=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.authData = authData + self.authData_nsprefix_ = "tns" + self.pickupDate = pickupDate + self.pickupDate_nsprefix_ = None + self.pickupTimeFrom = pickupTimeFrom + self.pickupTimeFrom_nsprefix_ = None + self.pickupTimeTo = pickupTimeTo + self.pickupTimeTo_nsprefix_ = None + self.additionalInfo = additionalInfo + self.additionalInfo_nsprefix_ = None + self.shipmentIdList = shipmentIdList + self.shipmentIdList_nsprefix_ = "tns" + self.shipmentOrderInfo = shipmentOrderInfo + self.shipmentOrderInfo_nsprefix_ = "tns" + self.courierWithLabel = courierWithLabel + self.courierWithLabel_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, bookCourier) + if subclass is not None: + return subclass(*args_, **kwargs_) + if bookCourier.subclass: + return bookCourier.subclass(*args_, **kwargs_) + else: + return bookCourier(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_authData(self): + return self.authData + + def set_authData(self, authData): + self.authData = authData + + def get_pickupDate(self): + return self.pickupDate + + def set_pickupDate(self, pickupDate): + self.pickupDate = pickupDate + + def get_pickupTimeFrom(self): + return self.pickupTimeFrom + + def set_pickupTimeFrom(self, pickupTimeFrom): + self.pickupTimeFrom = pickupTimeFrom + + def get_pickupTimeTo(self): + return self.pickupTimeTo + + def set_pickupTimeTo(self, pickupTimeTo): + self.pickupTimeTo = pickupTimeTo + + def get_additionalInfo(self): + return self.additionalInfo + + def set_additionalInfo(self, additionalInfo): + self.additionalInfo = additionalInfo + + def get_shipmentIdList(self): + return self.shipmentIdList + + def set_shipmentIdList(self, shipmentIdList): + self.shipmentIdList = shipmentIdList + + def get_shipmentOrderInfo(self): + return self.shipmentOrderInfo + + def set_shipmentOrderInfo(self, shipmentOrderInfo): + self.shipmentOrderInfo = shipmentOrderInfo + + def get_courierWithLabel(self): + return self.courierWithLabel + + def set_courierWithLabel(self, courierWithLabel): + self.courierWithLabel = courierWithLabel + + def _hasContent(self): + if ( + self.authData is not None + or self.pickupDate is not None + or self.pickupTimeFrom is not None + or self.pickupTimeTo is not None + or self.additionalInfo is not None + or self.shipmentIdList is not None + or self.shipmentOrderInfo is not None + or self.courierWithLabel is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="bookCourier", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("bookCourier") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "bookCourier": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="bookCourier" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="bookCourier", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="bookCourier", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="bookCourier", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.authData is not None: + namespaceprefix_ = ( + self.authData_nsprefix_ + ":" + if (UseCapturedNS_ and self.authData_nsprefix_) + else "" + ) + self.authData.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="authData", + pretty_print=pretty_print, + ) + if self.pickupDate is not None: + namespaceprefix_ = ( + self.pickupDate_nsprefix_ + ":" + if (UseCapturedNS_ and self.pickupDate_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spickupDate>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.pickupDate), input_name="pickupDate" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.pickupTimeFrom is not None: + namespaceprefix_ = ( + self.pickupTimeFrom_nsprefix_ + ":" + if (UseCapturedNS_ and self.pickupTimeFrom_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spickupTimeFrom>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.pickupTimeFrom), input_name="pickupTimeFrom" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.pickupTimeTo is not None: + namespaceprefix_ = ( + self.pickupTimeTo_nsprefix_ + ":" + if (UseCapturedNS_ and self.pickupTimeTo_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spickupTimeTo>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.pickupTimeTo), input_name="pickupTimeTo" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.additionalInfo is not None: + namespaceprefix_ = ( + self.additionalInfo_nsprefix_ + ":" + if (UseCapturedNS_ and self.additionalInfo_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sadditionalInfo>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.additionalInfo), input_name="additionalInfo" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.shipmentIdList is not None: + namespaceprefix_ = ( + self.shipmentIdList_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipmentIdList_nsprefix_) + else "" + ) + self.shipmentIdList.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="shipmentIdList", + pretty_print=pretty_print, + ) + if self.shipmentOrderInfo is not None: + namespaceprefix_ = ( + self.shipmentOrderInfo_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipmentOrderInfo_nsprefix_) + else "" + ) + self.shipmentOrderInfo.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="shipmentOrderInfo", + pretty_print=pretty_print, + ) + if self.courierWithLabel is not None: + namespaceprefix_ = ( + self.courierWithLabel_nsprefix_ + ":" + if (UseCapturedNS_ and self.courierWithLabel_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scourierWithLabel>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.courierWithLabel, input_name="courierWithLabel" + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "authData": + obj_ = AuthData.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.authData = obj_ + obj_.original_tagname_ = "authData" + elif nodeName_ == "pickupDate": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "pickupDate") + value_ = self.gds_validate_string(value_, node, "pickupDate") + self.pickupDate = value_ + self.pickupDate_nsprefix_ = child_.prefix + elif nodeName_ == "pickupTimeFrom": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "pickupTimeFrom") + value_ = self.gds_validate_string(value_, node, "pickupTimeFrom") + self.pickupTimeFrom = value_ + self.pickupTimeFrom_nsprefix_ = child_.prefix + elif nodeName_ == "pickupTimeTo": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "pickupTimeTo") + value_ = self.gds_validate_string(value_, node, "pickupTimeTo") + self.pickupTimeTo = value_ + self.pickupTimeTo_nsprefix_ = child_.prefix + elif nodeName_ == "additionalInfo": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "additionalInfo") + value_ = self.gds_validate_string(value_, node, "additionalInfo") + self.additionalInfo = value_ + self.additionalInfo_nsprefix_ = child_.prefix + elif nodeName_ == "shipmentIdList": + obj_ = ArrayOfString.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.shipmentIdList = obj_ + obj_.original_tagname_ = "shipmentIdList" + elif nodeName_ == "shipmentOrderInfo": + obj_ = ShipmentOrderInfo.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.shipmentOrderInfo = obj_ + obj_.original_tagname_ = "shipmentOrderInfo" + elif nodeName_ == "courierWithLabel": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "courierWithLabel") + ival_ = self.gds_validate_boolean(ival_, node, "courierWithLabel") + self.courierWithLabel = ival_ + self.courierWithLabel_nsprefix_ = child_.prefix + + +# end class bookCourier + + +class bookCourierResponse(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, bookCourierResult=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.bookCourierResult = bookCourierResult + self.bookCourierResult_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, bookCourierResponse + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if bookCourierResponse.subclass: + return bookCourierResponse.subclass(*args_, **kwargs_) + else: + return bookCourierResponse(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_bookCourierResult(self): + return self.bookCourierResult + + def set_bookCourierResult(self, bookCourierResult): + self.bookCourierResult = bookCourierResult + + def _hasContent(self): + if self.bookCourierResult is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="bookCourierResponse", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("bookCourierResponse") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "bookCourierResponse": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="bookCourierResponse", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="bookCourierResponse", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="bookCourierResponse", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="bookCourierResponse", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.bookCourierResult is not None: + namespaceprefix_ = ( + self.bookCourierResult_nsprefix_ + ":" + if (UseCapturedNS_ and self.bookCourierResult_nsprefix_) + else "" + ) + self.bookCourierResult.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="bookCourierResult", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "bookCourierResult": + obj_ = ArrayOfString.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.bookCourierResult = obj_ + obj_.original_tagname_ = "bookCourierResult" + + +# end class bookCourierResponse + + +class cancelCourierBooking(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, authData=None, orders=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.authData = authData + self.authData_nsprefix_ = "tns" + self.orders = orders + self.orders_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, cancelCourierBooking + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if cancelCourierBooking.subclass: + return cancelCourierBooking.subclass(*args_, **kwargs_) + else: + return cancelCourierBooking(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_authData(self): + return self.authData + + def set_authData(self, authData): + self.authData = authData + + def get_orders(self): + return self.orders + + def set_orders(self, orders): + self.orders = orders + + def _hasContent(self): + if self.authData is not None or self.orders is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="cancelCourierBooking", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("cancelCourierBooking") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "cancelCourierBooking": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="cancelCourierBooking", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="cancelCourierBooking", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="cancelCourierBooking", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="cancelCourierBooking", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.authData is not None: + namespaceprefix_ = ( + self.authData_nsprefix_ + ":" + if (UseCapturedNS_ and self.authData_nsprefix_) + else "" + ) + self.authData.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="authData", + pretty_print=pretty_print, + ) + if self.orders is not None: + namespaceprefix_ = ( + self.orders_nsprefix_ + ":" + if (UseCapturedNS_ and self.orders_nsprefix_) + else "" + ) + self.orders.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="orders", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "authData": + obj_ = AuthData.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.authData = obj_ + obj_.original_tagname_ = "authData" + elif nodeName_ == "orders": + obj_ = ArrayOfString.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.orders = obj_ + obj_.original_tagname_ = "orders" + + +# end class cancelCourierBooking + + +class cancelCourierBookingResponse(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, cancelCourierBookingResult=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.cancelCourierBookingResult = cancelCourierBookingResult + self.cancelCourierBookingResult_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, cancelCourierBookingResponse + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if cancelCourierBookingResponse.subclass: + return cancelCourierBookingResponse.subclass(*args_, **kwargs_) + else: + return cancelCourierBookingResponse(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_cancelCourierBookingResult(self): + return self.cancelCourierBookingResult + + def set_cancelCourierBookingResult(self, cancelCourierBookingResult): + self.cancelCourierBookingResult = cancelCourierBookingResult + + def _hasContent(self): + if self.cancelCourierBookingResult is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="cancelCourierBookingResponse", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("cancelCourierBookingResponse") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if ( + self.original_tagname_ is not None + and name_ == "cancelCourierBookingResponse" + ): + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="cancelCourierBookingResponse", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="cancelCourierBookingResponse", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="cancelCourierBookingResponse", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="cancelCourierBookingResponse", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.cancelCourierBookingResult is not None: + namespaceprefix_ = ( + self.cancelCourierBookingResult_nsprefix_ + ":" + if (UseCapturedNS_ and self.cancelCourierBookingResult_nsprefix_) + else "" + ) + self.cancelCourierBookingResult.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="cancelCourierBookingResult", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "cancelCourierBookingResult": + obj_ = ArrayOfDeletenotification.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.cancelCourierBookingResult = obj_ + obj_.original_tagname_ = "cancelCourierBookingResult" + + +# end class cancelCourierBookingResponse + + +class ItemToPrint(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, labelType=None, shipmentId=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.labelType = labelType + self.labelType_nsprefix_ = None + self.shipmentId = shipmentId + self.shipmentId_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, ItemToPrint) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ItemToPrint.subclass: + return ItemToPrint.subclass(*args_, **kwargs_) + else: + return ItemToPrint(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_labelType(self): + return self.labelType + + def set_labelType(self, labelType): + self.labelType = labelType + + def get_shipmentId(self): + return self.shipmentId + + def set_shipmentId(self, shipmentId): + self.shipmentId = shipmentId + + def _hasContent(self): + if self.labelType is not None or self.shipmentId is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ItemToPrint", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ItemToPrint") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ItemToPrint": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="ItemToPrint" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ItemToPrint", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ItemToPrint", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ItemToPrint", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.labelType is not None: + namespaceprefix_ = ( + self.labelType_nsprefix_ + ":" + if (UseCapturedNS_ and self.labelType_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%slabelType>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.labelType), input_name="labelType" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.shipmentId is not None: + namespaceprefix_ = ( + self.shipmentId_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipmentId_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sshipmentId>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.shipmentId), input_name="shipmentId" + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "labelType": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "labelType") + value_ = self.gds_validate_string(value_, node, "labelType") + self.labelType = value_ + self.labelType_nsprefix_ = child_.prefix + elif nodeName_ == "shipmentId": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "shipmentId") + value_ = self.gds_validate_string(value_, node, "shipmentId") + self.shipmentId = value_ + self.shipmentId_nsprefix_ = child_.prefix + + +# end class ItemToPrint + + +class ArrayOfItemtoprint(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, item=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + if item is None: + self.item = [] + else: + self.item = item + self.item_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, ArrayOfItemtoprint + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ArrayOfItemtoprint.subclass: + return ArrayOfItemtoprint.subclass(*args_, **kwargs_) + else: + return ArrayOfItemtoprint(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_item(self): + return self.item + + def set_item(self, item): + self.item = item + + def add_item(self, value): + self.item.append(value) + + def insert_item_at(self, index, value): + self.item.insert(index, value) + + def replace_item_at(self, index, value): + self.item[index] = value + + def _hasContent(self): + if self.item: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfItemtoprint", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ArrayOfItemtoprint") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ArrayOfItemtoprint": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="ArrayOfItemtoprint", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ArrayOfItemtoprint", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ArrayOfItemtoprint", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfItemtoprint", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + for item_ in self.item: + namespaceprefix_ = ( + self.item_nsprefix_ + ":" + if (UseCapturedNS_ and self.item_nsprefix_) + else "" + ) + item_.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="item", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "item": + obj_ = ItemToPrint.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.item.append(obj_) + obj_.original_tagname_ = "item" + + +# end class ArrayOfItemtoprint + + +class getLabels(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, authData=None, itemsToPrint=None, gds_collector_=None, **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.authData = authData + self.authData_nsprefix_ = "tns" + self.itemsToPrint = itemsToPrint + self.itemsToPrint_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, getLabels) + if subclass is not None: + return subclass(*args_, **kwargs_) + if getLabels.subclass: + return getLabels.subclass(*args_, **kwargs_) + else: + return getLabels(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_authData(self): + return self.authData + + def set_authData(self, authData): + self.authData = authData + + def get_itemsToPrint(self): + return self.itemsToPrint + + def set_itemsToPrint(self, itemsToPrint): + self.itemsToPrint = itemsToPrint + + def _hasContent(self): + if self.authData is not None or self.itemsToPrint is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getLabels", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("getLabels") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "getLabels": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="getLabels" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="getLabels", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, outfile, level, already_processed, namespaceprefix_="", name_="getLabels" + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getLabels", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.authData is not None: + namespaceprefix_ = ( + self.authData_nsprefix_ + ":" + if (UseCapturedNS_ and self.authData_nsprefix_) + else "" + ) + self.authData.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="authData", + pretty_print=pretty_print, + ) + if self.itemsToPrint is not None: + namespaceprefix_ = ( + self.itemsToPrint_nsprefix_ + ":" + if (UseCapturedNS_ and self.itemsToPrint_nsprefix_) + else "" + ) + self.itemsToPrint.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="itemsToPrint", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "authData": + obj_ = AuthData.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.authData = obj_ + obj_.original_tagname_ = "authData" + elif nodeName_ == "itemsToPrint": + obj_ = ArrayOfItemtoprint.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.itemsToPrint = obj_ + obj_.original_tagname_ = "itemsToPrint" + + +# end class getLabels + + +class ItemToPrintResponse(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + shipmentId=None, + labelType=None, + labelName=None, + labelData=None, + labelMimeType=None, + cn23Data=None, + cn23MimeType=None, + fvProformaData=None, + fvProformaMimeType=None, + fvProformaNumer=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.shipmentId = shipmentId + self.shipmentId_nsprefix_ = None + self.labelType = labelType + self.labelType_nsprefix_ = None + self.labelName = labelName + self.labelName_nsprefix_ = None + self.labelData = labelData + self.labelData_nsprefix_ = None + self.labelMimeType = labelMimeType + self.labelMimeType_nsprefix_ = None + self.cn23Data = cn23Data + self.cn23Data_nsprefix_ = None + self.cn23MimeType = cn23MimeType + self.cn23MimeType_nsprefix_ = None + self.fvProformaData = fvProformaData + self.fvProformaData_nsprefix_ = None + self.fvProformaMimeType = fvProformaMimeType + self.fvProformaMimeType_nsprefix_ = None + self.fvProformaNumer = fvProformaNumer + self.fvProformaNumer_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, ItemToPrintResponse + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ItemToPrintResponse.subclass: + return ItemToPrintResponse.subclass(*args_, **kwargs_) + else: + return ItemToPrintResponse(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_shipmentId(self): + return self.shipmentId + + def set_shipmentId(self, shipmentId): + self.shipmentId = shipmentId + + def get_labelType(self): + return self.labelType + + def set_labelType(self, labelType): + self.labelType = labelType + + def get_labelName(self): + return self.labelName + + def set_labelName(self, labelName): + self.labelName = labelName + + def get_labelData(self): + return self.labelData + + def set_labelData(self, labelData): + self.labelData = labelData + + def get_labelMimeType(self): + return self.labelMimeType + + def set_labelMimeType(self, labelMimeType): + self.labelMimeType = labelMimeType + + def get_cn23Data(self): + return self.cn23Data + + def set_cn23Data(self, cn23Data): + self.cn23Data = cn23Data + + def get_cn23MimeType(self): + return self.cn23MimeType + + def set_cn23MimeType(self, cn23MimeType): + self.cn23MimeType = cn23MimeType + + def get_fvProformaData(self): + return self.fvProformaData + + def set_fvProformaData(self, fvProformaData): + self.fvProformaData = fvProformaData + + def get_fvProformaMimeType(self): + return self.fvProformaMimeType + + def set_fvProformaMimeType(self, fvProformaMimeType): + self.fvProformaMimeType = fvProformaMimeType + + def get_fvProformaNumer(self): + return self.fvProformaNumer + + def set_fvProformaNumer(self, fvProformaNumer): + self.fvProformaNumer = fvProformaNumer + + def _hasContent(self): + if ( + self.shipmentId is not None + or self.labelType is not None + or self.labelName is not None + or self.labelData is not None + or self.labelMimeType is not None + or self.cn23Data is not None + or self.cn23MimeType is not None + or self.fvProformaData is not None + or self.fvProformaMimeType is not None + or self.fvProformaNumer is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ItemToPrintResponse", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ItemToPrintResponse") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ItemToPrintResponse": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="ItemToPrintResponse", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ItemToPrintResponse", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ItemToPrintResponse", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ItemToPrintResponse", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.shipmentId is not None: + namespaceprefix_ = ( + self.shipmentId_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipmentId_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sshipmentId>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.shipmentId), input_name="shipmentId" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.labelType is not None: + namespaceprefix_ = ( + self.labelType_nsprefix_ + ":" + if (UseCapturedNS_ and self.labelType_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%slabelType>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.labelType), input_name="labelType" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.labelName is not None: + namespaceprefix_ = ( + self.labelName_nsprefix_ + ":" + if (UseCapturedNS_ and self.labelName_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%slabelName>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.labelName), input_name="labelName" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.labelData is not None: + namespaceprefix_ = ( + self.labelData_nsprefix_ + ":" + if (UseCapturedNS_ and self.labelData_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%slabelData>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.labelData), input_name="labelData" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.labelMimeType is not None: + namespaceprefix_ = ( + self.labelMimeType_nsprefix_ + ":" + if (UseCapturedNS_ and self.labelMimeType_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%slabelMimeType>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.labelMimeType), input_name="labelMimeType" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.cn23Data is not None: + namespaceprefix_ = ( + self.cn23Data_nsprefix_ + ":" + if (UseCapturedNS_ and self.cn23Data_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scn23Data>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.cn23Data), input_name="cn23Data" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.cn23MimeType is not None: + namespaceprefix_ = ( + self.cn23MimeType_nsprefix_ + ":" + if (UseCapturedNS_ and self.cn23MimeType_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scn23MimeType>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.cn23MimeType), input_name="cn23MimeType" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.fvProformaData is not None: + namespaceprefix_ = ( + self.fvProformaData_nsprefix_ + ":" + if (UseCapturedNS_ and self.fvProformaData_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sfvProformaData>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.fvProformaData), input_name="fvProformaData" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.fvProformaMimeType is not None: + namespaceprefix_ = ( + self.fvProformaMimeType_nsprefix_ + ":" + if (UseCapturedNS_ and self.fvProformaMimeType_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sfvProformaMimeType>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.fvProformaMimeType), + input_name="fvProformaMimeType", + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.fvProformaNumer is not None: + namespaceprefix_ = ( + self.fvProformaNumer_nsprefix_ + ":" + if (UseCapturedNS_ and self.fvProformaNumer_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sfvProformaNumer>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.fvProformaNumer), + input_name="fvProformaNumer", + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "shipmentId": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "shipmentId") + value_ = self.gds_validate_string(value_, node, "shipmentId") + self.shipmentId = value_ + self.shipmentId_nsprefix_ = child_.prefix + elif nodeName_ == "labelType": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "labelType") + value_ = self.gds_validate_string(value_, node, "labelType") + self.labelType = value_ + self.labelType_nsprefix_ = child_.prefix + elif nodeName_ == "labelName": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "labelName") + value_ = self.gds_validate_string(value_, node, "labelName") + self.labelName = value_ + self.labelName_nsprefix_ = child_.prefix + elif nodeName_ == "labelData": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "labelData") + value_ = self.gds_validate_string(value_, node, "labelData") + self.labelData = value_ + self.labelData_nsprefix_ = child_.prefix + elif nodeName_ == "labelMimeType": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "labelMimeType") + value_ = self.gds_validate_string(value_, node, "labelMimeType") + self.labelMimeType = value_ + self.labelMimeType_nsprefix_ = child_.prefix + elif nodeName_ == "cn23Data": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "cn23Data") + value_ = self.gds_validate_string(value_, node, "cn23Data") + self.cn23Data = value_ + self.cn23Data_nsprefix_ = child_.prefix + elif nodeName_ == "cn23MimeType": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "cn23MimeType") + value_ = self.gds_validate_string(value_, node, "cn23MimeType") + self.cn23MimeType = value_ + self.cn23MimeType_nsprefix_ = child_.prefix + elif nodeName_ == "fvProformaData": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "fvProformaData") + value_ = self.gds_validate_string(value_, node, "fvProformaData") + self.fvProformaData = value_ + self.fvProformaData_nsprefix_ = child_.prefix + elif nodeName_ == "fvProformaMimeType": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "fvProformaMimeType") + value_ = self.gds_validate_string(value_, node, "fvProformaMimeType") + self.fvProformaMimeType = value_ + self.fvProformaMimeType_nsprefix_ = child_.prefix + elif nodeName_ == "fvProformaNumer": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "fvProformaNumer") + value_ = self.gds_validate_string(value_, node, "fvProformaNumer") + self.fvProformaNumer = value_ + self.fvProformaNumer_nsprefix_ = child_.prefix + + +# end class ItemToPrintResponse + + +class ArrayOfItemtoprintresponse(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, item=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + if item is None: + self.item = [] + else: + self.item = item + self.item_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, ArrayOfItemtoprintresponse + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ArrayOfItemtoprintresponse.subclass: + return ArrayOfItemtoprintresponse.subclass(*args_, **kwargs_) + else: + return ArrayOfItemtoprintresponse(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_item(self): + return self.item + + def set_item(self, item): + self.item = item + + def add_item(self, value): + self.item.append(value) + + def insert_item_at(self, index, value): + self.item.insert(index, value) + + def replace_item_at(self, index, value): + self.item[index] = value + + def _hasContent(self): + if self.item: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfItemtoprintresponse", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ArrayOfItemtoprintresponse") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ArrayOfItemtoprintresponse": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="ArrayOfItemtoprintresponse", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ArrayOfItemtoprintresponse", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ArrayOfItemtoprintresponse", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfItemtoprintresponse", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + for item_ in self.item: + namespaceprefix_ = ( + self.item_nsprefix_ + ":" + if (UseCapturedNS_ and self.item_nsprefix_) + else "" + ) + item_.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="item", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "item": + obj_ = ItemToPrintResponse.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.item.append(obj_) + obj_.original_tagname_ = "item" + + +# end class ArrayOfItemtoprintresponse + + +class getLabelsResponse(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, getLabelsResult=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.getLabelsResult = getLabelsResult + self.getLabelsResult_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, getLabelsResponse) + if subclass is not None: + return subclass(*args_, **kwargs_) + if getLabelsResponse.subclass: + return getLabelsResponse.subclass(*args_, **kwargs_) + else: + return getLabelsResponse(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_getLabelsResult(self): + return self.getLabelsResult + + def set_getLabelsResult(self, getLabelsResult): + self.getLabelsResult = getLabelsResult + + def _hasContent(self): + if self.getLabelsResult is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getLabelsResponse", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("getLabelsResponse") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "getLabelsResponse": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="getLabelsResponse", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="getLabelsResponse", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="getLabelsResponse", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getLabelsResponse", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.getLabelsResult is not None: + namespaceprefix_ = ( + self.getLabelsResult_nsprefix_ + ":" + if (UseCapturedNS_ and self.getLabelsResult_nsprefix_) + else "" + ) + self.getLabelsResult.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="getLabelsResult", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "getLabelsResult": + obj_ = ArrayOfItemtoprintresponse.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.getLabelsResult = obj_ + obj_.original_tagname_ = "getLabelsResult" + + +# end class getLabelsResponse + + +class PnpRequest(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, authData=None, date=None, type_=None, gds_collector_=None, **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.authData = authData + self.authData_nsprefix_ = "tns" + self.date = date + self.date_nsprefix_ = None + self.type_ = type_ + self.type__nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, PnpRequest) + if subclass is not None: + return subclass(*args_, **kwargs_) + if PnpRequest.subclass: + return PnpRequest.subclass(*args_, **kwargs_) + else: + return PnpRequest(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_authData(self): + return self.authData + + def set_authData(self, authData): + self.authData = authData + + def get_date(self): + return self.date + + def set_date(self, date): + self.date = date + + def get_type(self): + return self.type_ + + def set_type(self, type_): + self.type_ = type_ + + def _hasContent(self): + if self.authData is not None or self.date is not None or self.type_ is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="PnpRequest", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("PnpRequest") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "PnpRequest": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="PnpRequest" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="PnpRequest", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, outfile, level, already_processed, namespaceprefix_="", name_="PnpRequest" + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="PnpRequest", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.authData is not None: + namespaceprefix_ = ( + self.authData_nsprefix_ + ":" + if (UseCapturedNS_ and self.authData_nsprefix_) + else "" + ) + self.authData.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="authData", + pretty_print=pretty_print, + ) + if self.date is not None: + namespaceprefix_ = ( + self.date_nsprefix_ + ":" + if (UseCapturedNS_ and self.date_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sdate>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string(quote_xml(self.date), input_name="date") + ), + namespaceprefix_, + eol_, + ) + ) + if self.type_ is not None: + namespaceprefix_ = ( + self.type__nsprefix_ + ":" + if (UseCapturedNS_ and self.type__nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%stype>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string(quote_xml(self.type_), input_name="type") + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "authData": + obj_ = AuthData.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.authData = obj_ + obj_.original_tagname_ = "authData" + elif nodeName_ == "date": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "date") + value_ = self.gds_validate_string(value_, node, "date") + self.date = value_ + self.date_nsprefix_ = child_.prefix + elif nodeName_ == "type": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "type") + value_ = self.gds_validate_string(value_, node, "type") + self.type_ = value_ + self.type_nsprefix_ = child_.prefix + + +# end class PnpRequest + + +class getPnp(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, pnpRequest=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.pnpRequest = pnpRequest + self.pnpRequest_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, getPnp) + if subclass is not None: + return subclass(*args_, **kwargs_) + if getPnp.subclass: + return getPnp.subclass(*args_, **kwargs_) + else: + return getPnp(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_pnpRequest(self): + return self.pnpRequest + + def set_pnpRequest(self, pnpRequest): + self.pnpRequest = pnpRequest + + def _hasContent(self): + if self.pnpRequest is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getPnp", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("getPnp") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "getPnp": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="getPnp" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="getPnp", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, outfile, level, already_processed, namespaceprefix_="", name_="getPnp" + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getPnp", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.pnpRequest is not None: + namespaceprefix_ = ( + self.pnpRequest_nsprefix_ + ":" + if (UseCapturedNS_ and self.pnpRequest_nsprefix_) + else "" + ) + self.pnpRequest.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="pnpRequest", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "pnpRequest": + obj_ = PnpRequest.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.pnpRequest = obj_ + obj_.original_tagname_ = "pnpRequest" + + +# end class getPnp + + +class PnpResponse(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + fileName=None, + fileData=None, + fileMimeType=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.fileName = fileName + self.fileName_nsprefix_ = None + self.fileData = fileData + self.fileData_nsprefix_ = None + self.fileMimeType = fileMimeType + self.fileMimeType_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, PnpResponse) + if subclass is not None: + return subclass(*args_, **kwargs_) + if PnpResponse.subclass: + return PnpResponse.subclass(*args_, **kwargs_) + else: + return PnpResponse(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_fileName(self): + return self.fileName + + def set_fileName(self, fileName): + self.fileName = fileName + + def get_fileData(self): + return self.fileData + + def set_fileData(self, fileData): + self.fileData = fileData + + def get_fileMimeType(self): + return self.fileMimeType + + def set_fileMimeType(self, fileMimeType): + self.fileMimeType = fileMimeType + + def _hasContent(self): + if ( + self.fileName is not None + or self.fileData is not None + or self.fileMimeType is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="PnpResponse", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("PnpResponse") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "PnpResponse": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="PnpResponse" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="PnpResponse", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="PnpResponse", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="PnpResponse", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.fileName is not None: + namespaceprefix_ = ( + self.fileName_nsprefix_ + ":" + if (UseCapturedNS_ and self.fileName_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sfileName>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.fileName), input_name="fileName" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.fileData is not None: + namespaceprefix_ = ( + self.fileData_nsprefix_ + ":" + if (UseCapturedNS_ and self.fileData_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sfileData>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.fileData), input_name="fileData" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.fileMimeType is not None: + namespaceprefix_ = ( + self.fileMimeType_nsprefix_ + ":" + if (UseCapturedNS_ and self.fileMimeType_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sfileMimeType>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.fileMimeType), input_name="fileMimeType" + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "fileName": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "fileName") + value_ = self.gds_validate_string(value_, node, "fileName") + self.fileName = value_ + self.fileName_nsprefix_ = child_.prefix + elif nodeName_ == "fileData": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "fileData") + value_ = self.gds_validate_string(value_, node, "fileData") + self.fileData = value_ + self.fileData_nsprefix_ = child_.prefix + elif nodeName_ == "fileMimeType": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "fileMimeType") + value_ = self.gds_validate_string(value_, node, "fileMimeType") + self.fileMimeType = value_ + self.fileMimeType_nsprefix_ = child_.prefix + + +# end class PnpResponse + + +class getPnpResponse(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, getPnpResult=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.getPnpResult = getPnpResult + self.getPnpResult_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, getPnpResponse) + if subclass is not None: + return subclass(*args_, **kwargs_) + if getPnpResponse.subclass: + return getPnpResponse.subclass(*args_, **kwargs_) + else: + return getPnpResponse(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_getPnpResult(self): + return self.getPnpResult + + def set_getPnpResult(self, getPnpResult): + self.getPnpResult = getPnpResult + + def _hasContent(self): + if self.getPnpResult is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getPnpResponse", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("getPnpResponse") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "getPnpResponse": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="getPnpResponse" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="getPnpResponse", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="getPnpResponse", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getPnpResponse", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.getPnpResult is not None: + namespaceprefix_ = ( + self.getPnpResult_nsprefix_ + ":" + if (UseCapturedNS_ and self.getPnpResult_nsprefix_) + else "" + ) + self.getPnpResult.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="getPnpResult", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "getPnpResult": + obj_ = PnpResponse.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.getPnpResult = obj_ + obj_.original_tagname_ = "getPnpResult" + + +# end class getPnpResponse + + +class getShipmentScan(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, authData=None, shipmentId=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.authData = authData + self.authData_nsprefix_ = "tns" + self.shipmentId = shipmentId + self.shipmentId_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, getShipmentScan) + if subclass is not None: + return subclass(*args_, **kwargs_) + if getShipmentScan.subclass: + return getShipmentScan.subclass(*args_, **kwargs_) + else: + return getShipmentScan(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_authData(self): + return self.authData + + def set_authData(self, authData): + self.authData = authData + + def get_shipmentId(self): + return self.shipmentId + + def set_shipmentId(self, shipmentId): + self.shipmentId = shipmentId + + def _hasContent(self): + if self.authData is not None or self.shipmentId is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getShipmentScan", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("getShipmentScan") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "getShipmentScan": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="getShipmentScan" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="getShipmentScan", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="getShipmentScan", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getShipmentScan", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.authData is not None: + namespaceprefix_ = ( + self.authData_nsprefix_ + ":" + if (UseCapturedNS_ and self.authData_nsprefix_) + else "" + ) + self.authData.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="authData", + pretty_print=pretty_print, + ) + if self.shipmentId is not None: + namespaceprefix_ = ( + self.shipmentId_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipmentId_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sshipmentId>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.shipmentId), input_name="shipmentId" + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "authData": + obj_ = AuthData.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.authData = obj_ + obj_.original_tagname_ = "authData" + elif nodeName_ == "shipmentId": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "shipmentId") + value_ = self.gds_validate_string(value_, node, "shipmentId") + self.shipmentId = value_ + self.shipmentId_nsprefix_ = child_.prefix + + +# end class getShipmentScan + + +class ScanToPrintResponse(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, scanData=None, scanMimeType=None, gds_collector_=None, **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.scanData = scanData + self.scanData_nsprefix_ = None + self.scanMimeType = scanMimeType + self.scanMimeType_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, ScanToPrintResponse + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ScanToPrintResponse.subclass: + return ScanToPrintResponse.subclass(*args_, **kwargs_) + else: + return ScanToPrintResponse(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_scanData(self): + return self.scanData + + def set_scanData(self, scanData): + self.scanData = scanData + + def get_scanMimeType(self): + return self.scanMimeType + + def set_scanMimeType(self, scanMimeType): + self.scanMimeType = scanMimeType + + def _hasContent(self): + if self.scanData is not None or self.scanMimeType is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ScanToPrintResponse", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ScanToPrintResponse") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ScanToPrintResponse": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="ScanToPrintResponse", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ScanToPrintResponse", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ScanToPrintResponse", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ScanToPrintResponse", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.scanData is not None: + namespaceprefix_ = ( + self.scanData_nsprefix_ + ":" + if (UseCapturedNS_ and self.scanData_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sscanData>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.scanData), input_name="scanData" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.scanMimeType is not None: + namespaceprefix_ = ( + self.scanMimeType_nsprefix_ + ":" + if (UseCapturedNS_ and self.scanMimeType_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sscanMimeType>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.scanMimeType), input_name="scanMimeType" + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "scanData": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "scanData") + value_ = self.gds_validate_string(value_, node, "scanData") + self.scanData = value_ + self.scanData_nsprefix_ = child_.prefix + elif nodeName_ == "scanMimeType": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "scanMimeType") + value_ = self.gds_validate_string(value_, node, "scanMimeType") + self.scanMimeType = value_ + self.scanMimeType_nsprefix_ = child_.prefix + + +# end class ScanToPrintResponse + + +class getShipmentScanResponse(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, getShipmentScanResult=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.getShipmentScanResult = getShipmentScanResult + self.getShipmentScanResult_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, getShipmentScanResponse + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if getShipmentScanResponse.subclass: + return getShipmentScanResponse.subclass(*args_, **kwargs_) + else: + return getShipmentScanResponse(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_getShipmentScanResult(self): + return self.getShipmentScanResult + + def set_getShipmentScanResult(self, getShipmentScanResult): + self.getShipmentScanResult = getShipmentScanResult + + def _hasContent(self): + if self.getShipmentScanResult is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getShipmentScanResponse", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("getShipmentScanResponse") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "getShipmentScanResponse": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="getShipmentScanResponse", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="getShipmentScanResponse", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="getShipmentScanResponse", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getShipmentScanResponse", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.getShipmentScanResult is not None: + namespaceprefix_ = ( + self.getShipmentScanResult_nsprefix_ + ":" + if (UseCapturedNS_ and self.getShipmentScanResult_nsprefix_) + else "" + ) + self.getShipmentScanResult.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="getShipmentScanResult", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "getShipmentScanResult": + obj_ = ScanToPrintResponse.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.getShipmentScanResult = obj_ + obj_.original_tagname_ = "getShipmentScanResult" + + +# end class getShipmentScanResponse + + +class Service(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + serviceType=None, + serviceValue=None, + textInstruction=None, + collectOnDeliveryForm=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.serviceType = serviceType + self.serviceType_nsprefix_ = None + self.serviceValue = serviceValue + self.serviceValue_nsprefix_ = None + self.textInstruction = textInstruction + self.textInstruction_nsprefix_ = None + self.collectOnDeliveryForm = collectOnDeliveryForm + self.collectOnDeliveryForm_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, Service) + if subclass is not None: + return subclass(*args_, **kwargs_) + if Service.subclass: + return Service.subclass(*args_, **kwargs_) + else: + return Service(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_serviceType(self): + return self.serviceType + + def set_serviceType(self, serviceType): + self.serviceType = serviceType + + def get_serviceValue(self): + return self.serviceValue + + def set_serviceValue(self, serviceValue): + self.serviceValue = serviceValue + + def get_textInstruction(self): + return self.textInstruction + + def set_textInstruction(self, textInstruction): + self.textInstruction = textInstruction + + def get_collectOnDeliveryForm(self): + return self.collectOnDeliveryForm + + def set_collectOnDeliveryForm(self, collectOnDeliveryForm): + self.collectOnDeliveryForm = collectOnDeliveryForm + + def _hasContent(self): + if ( + self.serviceType is not None + or self.serviceValue is not None + or self.textInstruction is not None + or self.collectOnDeliveryForm is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="Service", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("Service") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "Service": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="Service" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="Service", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, outfile, level, already_processed, namespaceprefix_="", name_="Service" + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="Service", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.serviceType is not None: + namespaceprefix_ = ( + self.serviceType_nsprefix_ + ":" + if (UseCapturedNS_ and self.serviceType_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sserviceType>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.serviceType), input_name="serviceType" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.serviceValue is not None: + namespaceprefix_ = ( + self.serviceValue_nsprefix_ + ":" + if (UseCapturedNS_ and self.serviceValue_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sserviceValue>%s%s" + % ( + namespaceprefix_, + self.gds_format_float(self.serviceValue, input_name="serviceValue"), + namespaceprefix_, + eol_, + ) + ) + if self.textInstruction is not None: + namespaceprefix_ = ( + self.textInstruction_nsprefix_ + ":" + if (UseCapturedNS_ and self.textInstruction_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%stextInstruction>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.textInstruction), + input_name="textInstruction", + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.collectOnDeliveryForm is not None: + namespaceprefix_ = ( + self.collectOnDeliveryForm_nsprefix_ + ":" + if (UseCapturedNS_ and self.collectOnDeliveryForm_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scollectOnDeliveryForm>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.collectOnDeliveryForm), + input_name="collectOnDeliveryForm", + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "serviceType": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "serviceType") + value_ = self.gds_validate_string(value_, node, "serviceType") + self.serviceType = value_ + self.serviceType_nsprefix_ = child_.prefix + elif nodeName_ == "serviceValue" and child_.text: + sval_ = child_.text + fval_ = self.gds_parse_float(sval_, node, "serviceValue") + fval_ = self.gds_validate_float(fval_, node, "serviceValue") + self.serviceValue = fval_ + self.serviceValue_nsprefix_ = child_.prefix + elif nodeName_ == "textInstruction": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "textInstruction") + value_ = self.gds_validate_string(value_, node, "textInstruction") + self.textInstruction = value_ + self.textInstruction_nsprefix_ = child_.prefix + elif nodeName_ == "collectOnDeliveryForm": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "collectOnDeliveryForm") + value_ = self.gds_validate_string(value_, node, "collectOnDeliveryForm") + self.collectOnDeliveryForm = value_ + self.collectOnDeliveryForm_nsprefix_ = child_.prefix + + +# end class Service + + +class ArrayOfService(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, item=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + if item is None: + self.item = [] + else: + self.item = item + self.item_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, ArrayOfService) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ArrayOfService.subclass: + return ArrayOfService.subclass(*args_, **kwargs_) + else: + return ArrayOfService(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_item(self): + return self.item + + def set_item(self, item): + self.item = item + + def add_item(self, value): + self.item.append(value) + + def insert_item_at(self, index, value): + self.item.insert(index, value) + + def replace_item_at(self, index, value): + self.item[index] = value + + def _hasContent(self): + if self.item: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfService", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ArrayOfService") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ArrayOfService": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="ArrayOfService" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ArrayOfService", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ArrayOfService", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfService", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + for item_ in self.item: + namespaceprefix_ = ( + self.item_nsprefix_ + ":" + if (UseCapturedNS_ and self.item_nsprefix_) + else "" + ) + item_.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="item", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "item": + obj_ = Service.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.item.append(obj_) + obj_.original_tagname_ = "item" + + +# end class ArrayOfService + + +class ShipmentTime(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + shipmentDate=None, + shipmentStartHour=None, + shipmentEndHour=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.shipmentDate = shipmentDate + self.shipmentDate_nsprefix_ = None + self.shipmentStartHour = shipmentStartHour + self.shipmentStartHour_nsprefix_ = None + self.shipmentEndHour = shipmentEndHour + self.shipmentEndHour_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, ShipmentTime) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ShipmentTime.subclass: + return ShipmentTime.subclass(*args_, **kwargs_) + else: + return ShipmentTime(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_shipmentDate(self): + return self.shipmentDate + + def set_shipmentDate(self, shipmentDate): + self.shipmentDate = shipmentDate + + def get_shipmentStartHour(self): + return self.shipmentStartHour + + def set_shipmentStartHour(self, shipmentStartHour): + self.shipmentStartHour = shipmentStartHour + + def get_shipmentEndHour(self): + return self.shipmentEndHour + + def set_shipmentEndHour(self, shipmentEndHour): + self.shipmentEndHour = shipmentEndHour + + def _hasContent(self): + if ( + self.shipmentDate is not None + or self.shipmentStartHour is not None + or self.shipmentEndHour is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ShipmentTime", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ShipmentTime") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ShipmentTime": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="ShipmentTime" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ShipmentTime", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ShipmentTime", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ShipmentTime", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.shipmentDate is not None: + namespaceprefix_ = ( + self.shipmentDate_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipmentDate_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sshipmentDate>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.shipmentDate), input_name="shipmentDate" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.shipmentStartHour is not None: + namespaceprefix_ = ( + self.shipmentStartHour_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipmentStartHour_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sshipmentStartHour>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.shipmentStartHour), + input_name="shipmentStartHour", + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.shipmentEndHour is not None: + namespaceprefix_ = ( + self.shipmentEndHour_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipmentEndHour_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sshipmentEndHour>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.shipmentEndHour), + input_name="shipmentEndHour", + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "shipmentDate": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "shipmentDate") + value_ = self.gds_validate_string(value_, node, "shipmentDate") + self.shipmentDate = value_ + self.shipmentDate_nsprefix_ = child_.prefix + elif nodeName_ == "shipmentStartHour": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "shipmentStartHour") + value_ = self.gds_validate_string(value_, node, "shipmentStartHour") + self.shipmentStartHour = value_ + self.shipmentStartHour_nsprefix_ = child_.prefix + elif nodeName_ == "shipmentEndHour": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "shipmentEndHour") + value_ = self.gds_validate_string(value_, node, "shipmentEndHour") + self.shipmentEndHour = value_ + self.shipmentEndHour_nsprefix_ = child_.prefix + + +# end class ShipmentTime + + +class ShipmentInfo(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + wayBill=None, + dropOffType=None, + serviceType=None, + billing=None, + specialServices=None, + shipmentTime=None, + labelType=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.wayBill = wayBill + self.wayBill_nsprefix_ = None + self.dropOffType = dropOffType + self.dropOffType_nsprefix_ = None + self.serviceType = serviceType + self.serviceType_nsprefix_ = None + self.billing = billing + self.billing_nsprefix_ = "tns" + self.specialServices = specialServices + self.specialServices_nsprefix_ = "tns" + self.shipmentTime = shipmentTime + self.shipmentTime_nsprefix_ = "tns" + self.labelType = labelType + self.labelType_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, ShipmentInfo) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ShipmentInfo.subclass: + return ShipmentInfo.subclass(*args_, **kwargs_) + else: + return ShipmentInfo(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_wayBill(self): + return self.wayBill + + def set_wayBill(self, wayBill): + self.wayBill = wayBill + + def get_dropOffType(self): + return self.dropOffType + + def set_dropOffType(self, dropOffType): + self.dropOffType = dropOffType + + def get_serviceType(self): + return self.serviceType + + def set_serviceType(self, serviceType): + self.serviceType = serviceType + + def get_billing(self): + return self.billing + + def set_billing(self, billing): + self.billing = billing + + def get_specialServices(self): + return self.specialServices + + def set_specialServices(self, specialServices): + self.specialServices = specialServices + + def get_shipmentTime(self): + return self.shipmentTime + + def set_shipmentTime(self, shipmentTime): + self.shipmentTime = shipmentTime + + def get_labelType(self): + return self.labelType + + def set_labelType(self, labelType): + self.labelType = labelType + + def _hasContent(self): + if ( + self.wayBill is not None + or self.dropOffType is not None + or self.serviceType is not None + or self.billing is not None + or self.specialServices is not None + or self.shipmentTime is not None + or self.labelType is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ShipmentInfo", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ShipmentInfo") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ShipmentInfo": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="ShipmentInfo" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ShipmentInfo", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ShipmentInfo", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ShipmentInfo", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.wayBill is not None: + namespaceprefix_ = ( + self.wayBill_nsprefix_ + ":" + if (UseCapturedNS_ and self.wayBill_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%swayBill>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.wayBill), input_name="wayBill" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.dropOffType is not None: + namespaceprefix_ = ( + self.dropOffType_nsprefix_ + ":" + if (UseCapturedNS_ and self.dropOffType_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sdropOffType>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.dropOffType), input_name="dropOffType" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.serviceType is not None: + namespaceprefix_ = ( + self.serviceType_nsprefix_ + ":" + if (UseCapturedNS_ and self.serviceType_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sserviceType>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.serviceType), input_name="serviceType" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.billing is not None: + namespaceprefix_ = ( + self.billing_nsprefix_ + ":" + if (UseCapturedNS_ and self.billing_nsprefix_) + else "" + ) + self.billing.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="billing", + pretty_print=pretty_print, + ) + if self.specialServices is not None: + namespaceprefix_ = ( + self.specialServices_nsprefix_ + ":" + if (UseCapturedNS_ and self.specialServices_nsprefix_) + else "" + ) + self.specialServices.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="specialServices", + pretty_print=pretty_print, + ) + if self.shipmentTime is not None: + namespaceprefix_ = ( + self.shipmentTime_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipmentTime_nsprefix_) + else "" + ) + self.shipmentTime.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="shipmentTime", + pretty_print=pretty_print, + ) + if self.labelType is not None: + namespaceprefix_ = ( + self.labelType_nsprefix_ + ":" + if (UseCapturedNS_ and self.labelType_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%slabelType>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.labelType), input_name="labelType" + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "wayBill": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "wayBill") + value_ = self.gds_validate_string(value_, node, "wayBill") + self.wayBill = value_ + self.wayBill_nsprefix_ = child_.prefix + elif nodeName_ == "dropOffType": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "dropOffType") + value_ = self.gds_validate_string(value_, node, "dropOffType") + self.dropOffType = value_ + self.dropOffType_nsprefix_ = child_.prefix + elif nodeName_ == "serviceType": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "serviceType") + value_ = self.gds_validate_string(value_, node, "serviceType") + self.serviceType = value_ + self.serviceType_nsprefix_ = child_.prefix + elif nodeName_ == "billing": + obj_ = Billing.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.billing = obj_ + obj_.original_tagname_ = "billing" + elif nodeName_ == "specialServices": + obj_ = ArrayOfService.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.specialServices = obj_ + obj_.original_tagname_ = "specialServices" + elif nodeName_ == "shipmentTime": + obj_ = ShipmentTime.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.shipmentTime = obj_ + obj_.original_tagname_ = "shipmentTime" + elif nodeName_ == "labelType": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "labelType") + value_ = self.gds_validate_string(value_, node, "labelType") + self.labelType = value_ + self.labelType_nsprefix_ = child_.prefix + + +# end class ShipmentInfo + + +class Address(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + name=None, + postalCode=None, + city=None, + street=None, + houseNumber=None, + apartmentNumber=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.name = name + self.name_nsprefix_ = None + self.postalCode = postalCode + self.postalCode_nsprefix_ = None + self.city = city + self.city_nsprefix_ = None + self.street = street + self.street_nsprefix_ = None + self.houseNumber = houseNumber + self.houseNumber_nsprefix_ = None + self.apartmentNumber = apartmentNumber + self.apartmentNumber_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, Address) + if subclass is not None: + return subclass(*args_, **kwargs_) + if Address.subclass: + return Address.subclass(*args_, **kwargs_) + else: + return Address(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_name(self): + return self.name + + def set_name(self, name): + self.name = name + + def get_postalCode(self): + return self.postalCode + + def set_postalCode(self, postalCode): + self.postalCode = postalCode + + def get_city(self): + return self.city + + def set_city(self, city): + self.city = city + + def get_street(self): + return self.street + + def set_street(self, street): + self.street = street + + def get_houseNumber(self): + return self.houseNumber + + def set_houseNumber(self, houseNumber): + self.houseNumber = houseNumber + + def get_apartmentNumber(self): + return self.apartmentNumber + + def set_apartmentNumber(self, apartmentNumber): + self.apartmentNumber = apartmentNumber + + def _hasContent(self): + if ( + self.name is not None + or self.postalCode is not None + or self.city is not None + or self.street is not None + or self.houseNumber is not None + or self.apartmentNumber is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="Address", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("Address") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "Address": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="Address" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="Address", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, outfile, level, already_processed, namespaceprefix_="", name_="Address" + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="Address", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.name is not None: + namespaceprefix_ = ( + self.name_nsprefix_ + ":" + if (UseCapturedNS_ and self.name_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sname>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string(quote_xml(self.name), input_name="name") + ), + namespaceprefix_, + eol_, + ) + ) + if self.postalCode is not None: + namespaceprefix_ = ( + self.postalCode_nsprefix_ + ":" + if (UseCapturedNS_ and self.postalCode_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spostalCode>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.postalCode), input_name="postalCode" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.city is not None: + namespaceprefix_ = ( + self.city_nsprefix_ + ":" + if (UseCapturedNS_ and self.city_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scity>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string(quote_xml(self.city), input_name="city") + ), + namespaceprefix_, + eol_, + ) + ) + if self.street is not None: + namespaceprefix_ = ( + self.street_nsprefix_ + ":" + if (UseCapturedNS_ and self.street_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sstreet>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.street), input_name="street" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.houseNumber is not None: + namespaceprefix_ = ( + self.houseNumber_nsprefix_ + ":" + if (UseCapturedNS_ and self.houseNumber_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%shouseNumber>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.houseNumber), input_name="houseNumber" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.apartmentNumber is not None: + namespaceprefix_ = ( + self.apartmentNumber_nsprefix_ + ":" + if (UseCapturedNS_ and self.apartmentNumber_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sapartmentNumber>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.apartmentNumber), + input_name="apartmentNumber", + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "name": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "name") + value_ = self.gds_validate_string(value_, node, "name") + self.name = value_ + self.name_nsprefix_ = child_.prefix + elif nodeName_ == "postalCode": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "postalCode") + value_ = self.gds_validate_string(value_, node, "postalCode") + self.postalCode = value_ + self.postalCode_nsprefix_ = child_.prefix + elif nodeName_ == "city": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "city") + value_ = self.gds_validate_string(value_, node, "city") + self.city = value_ + self.city_nsprefix_ = child_.prefix + elif nodeName_ == "street": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "street") + value_ = self.gds_validate_string(value_, node, "street") + self.street = value_ + self.street_nsprefix_ = child_.prefix + elif nodeName_ == "houseNumber": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "houseNumber") + value_ = self.gds_validate_string(value_, node, "houseNumber") + self.houseNumber = value_ + self.houseNumber_nsprefix_ = child_.prefix + elif nodeName_ == "apartmentNumber": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "apartmentNumber") + value_ = self.gds_validate_string(value_, node, "apartmentNumber") + self.apartmentNumber = value_ + self.apartmentNumber_nsprefix_ = child_.prefix + + +# end class Address + + +class Addressat(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, preaviso=None, contact=None, address=None, gds_collector_=None, **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.preaviso = preaviso + self.preaviso_nsprefix_ = "tns" + self.contact = contact + self.contact_nsprefix_ = "tns" + self.address = address + self.address_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, Addressat) + if subclass is not None: + return subclass(*args_, **kwargs_) + if Addressat.subclass: + return Addressat.subclass(*args_, **kwargs_) + else: + return Addressat(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_preaviso(self): + return self.preaviso + + def set_preaviso(self, preaviso): + self.preaviso = preaviso + + def get_contact(self): + return self.contact + + def set_contact(self, contact): + self.contact = contact + + def get_address(self): + return self.address + + def set_address(self, address): + self.address = address + + def _hasContent(self): + if ( + self.preaviso is not None + or self.contact is not None + or self.address is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="Addressat", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("Addressat") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "Addressat": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="Addressat" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="Addressat", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, outfile, level, already_processed, namespaceprefix_="", name_="Addressat" + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="Addressat", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.preaviso is not None: + namespaceprefix_ = ( + self.preaviso_nsprefix_ + ":" + if (UseCapturedNS_ and self.preaviso_nsprefix_) + else "" + ) + self.preaviso.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="preaviso", + pretty_print=pretty_print, + ) + if self.contact is not None: + namespaceprefix_ = ( + self.contact_nsprefix_ + ":" + if (UseCapturedNS_ and self.contact_nsprefix_) + else "" + ) + self.contact.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="contact", + pretty_print=pretty_print, + ) + if self.address is not None: + namespaceprefix_ = ( + self.address_nsprefix_ + ":" + if (UseCapturedNS_ and self.address_nsprefix_) + else "" + ) + self.address.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="address", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "preaviso": + obj_ = PreavisoContact.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.preaviso = obj_ + obj_.original_tagname_ = "preaviso" + elif nodeName_ == "contact": + obj_ = PreavisoContact.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.contact = obj_ + obj_.original_tagname_ = "contact" + elif nodeName_ == "address": + obj_ = Address.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.address = obj_ + obj_.original_tagname_ = "address" + + +# end class Addressat + + +class ReceiverAddress(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + country=None, + isPackstation=None, + isPostfiliale=None, + postnummer=None, + addressType=None, + name=None, + postalCode=None, + city=None, + street=None, + houseNumber=None, + apartmentNumber=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.country = country + self.country_nsprefix_ = None + self.isPackstation = isPackstation + self.isPackstation_nsprefix_ = None + self.isPostfiliale = isPostfiliale + self.isPostfiliale_nsprefix_ = None + self.postnummer = postnummer + self.postnummer_nsprefix_ = None + self.addressType = addressType + self.addressType_nsprefix_ = None + self.name = name + self.name_nsprefix_ = None + self.postalCode = postalCode + self.postalCode_nsprefix_ = None + self.city = city + self.city_nsprefix_ = None + self.street = street + self.street_nsprefix_ = None + self.houseNumber = houseNumber + self.houseNumber_nsprefix_ = None + self.apartmentNumber = apartmentNumber + self.apartmentNumber_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, ReceiverAddress) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ReceiverAddress.subclass: + return ReceiverAddress.subclass(*args_, **kwargs_) + else: + return ReceiverAddress(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_country(self): + return self.country + + def set_country(self, country): + self.country = country + + def get_isPackstation(self): + return self.isPackstation + + def set_isPackstation(self, isPackstation): + self.isPackstation = isPackstation + + def get_isPostfiliale(self): + return self.isPostfiliale + + def set_isPostfiliale(self, isPostfiliale): + self.isPostfiliale = isPostfiliale + + def get_postnummer(self): + return self.postnummer + + def set_postnummer(self, postnummer): + self.postnummer = postnummer + + def get_addressType(self): + return self.addressType + + def set_addressType(self, addressType): + self.addressType = addressType + + def get_name(self): + return self.name + + def set_name(self, name): + self.name = name + + def get_postalCode(self): + return self.postalCode + + def set_postalCode(self, postalCode): + self.postalCode = postalCode + + def get_city(self): + return self.city + + def set_city(self, city): + self.city = city + + def get_street(self): + return self.street + + def set_street(self, street): + self.street = street + + def get_houseNumber(self): + return self.houseNumber + + def set_houseNumber(self, houseNumber): + self.houseNumber = houseNumber + + def get_apartmentNumber(self): + return self.apartmentNumber + + def set_apartmentNumber(self, apartmentNumber): + self.apartmentNumber = apartmentNumber + + def _hasContent(self): + if ( + self.country is not None + or self.isPackstation is not None + or self.isPostfiliale is not None + or self.postnummer is not None + or self.addressType is not None + or self.name is not None + or self.postalCode is not None + or self.city is not None + or self.street is not None + or self.houseNumber is not None + or self.apartmentNumber is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ReceiverAddress", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ReceiverAddress") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ReceiverAddress": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="ReceiverAddress" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ReceiverAddress", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ReceiverAddress", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ReceiverAddress", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.country is not None: + namespaceprefix_ = ( + self.country_nsprefix_ + ":" + if (UseCapturedNS_ and self.country_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scountry>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.country), input_name="country" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.isPackstation is not None: + namespaceprefix_ = ( + self.isPackstation_nsprefix_ + ":" + if (UseCapturedNS_ and self.isPackstation_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sisPackstation>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.isPackstation, input_name="isPackstation" + ), + namespaceprefix_, + eol_, + ) + ) + if self.isPostfiliale is not None: + namespaceprefix_ = ( + self.isPostfiliale_nsprefix_ + ":" + if (UseCapturedNS_ and self.isPostfiliale_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sisPostfiliale>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.isPostfiliale, input_name="isPostfiliale" + ), + namespaceprefix_, + eol_, + ) + ) + if self.postnummer is not None: + namespaceprefix_ = ( + self.postnummer_nsprefix_ + ":" + if (UseCapturedNS_ and self.postnummer_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spostnummer>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.postnummer), input_name="postnummer" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.addressType is not None: + namespaceprefix_ = ( + self.addressType_nsprefix_ + ":" + if (UseCapturedNS_ and self.addressType_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%saddressType>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.addressType), input_name="addressType" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.name is not None: + namespaceprefix_ = ( + self.name_nsprefix_ + ":" + if (UseCapturedNS_ and self.name_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sname>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string(quote_xml(self.name), input_name="name") + ), + namespaceprefix_, + eol_, + ) + ) + if self.postalCode is not None: + namespaceprefix_ = ( + self.postalCode_nsprefix_ + ":" + if (UseCapturedNS_ and self.postalCode_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spostalCode>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.postalCode), input_name="postalCode" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.city is not None: + namespaceprefix_ = ( + self.city_nsprefix_ + ":" + if (UseCapturedNS_ and self.city_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scity>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string(quote_xml(self.city), input_name="city") + ), + namespaceprefix_, + eol_, + ) + ) + if self.street is not None: + namespaceprefix_ = ( + self.street_nsprefix_ + ":" + if (UseCapturedNS_ and self.street_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sstreet>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.street), input_name="street" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.houseNumber is not None: + namespaceprefix_ = ( + self.houseNumber_nsprefix_ + ":" + if (UseCapturedNS_ and self.houseNumber_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%shouseNumber>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.houseNumber), input_name="houseNumber" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.apartmentNumber is not None: + namespaceprefix_ = ( + self.apartmentNumber_nsprefix_ + ":" + if (UseCapturedNS_ and self.apartmentNumber_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sapartmentNumber>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.apartmentNumber), + input_name="apartmentNumber", + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "country": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "country") + value_ = self.gds_validate_string(value_, node, "country") + self.country = value_ + self.country_nsprefix_ = child_.prefix + elif nodeName_ == "isPackstation": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "isPackstation") + ival_ = self.gds_validate_boolean(ival_, node, "isPackstation") + self.isPackstation = ival_ + self.isPackstation_nsprefix_ = child_.prefix + elif nodeName_ == "isPostfiliale": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "isPostfiliale") + ival_ = self.gds_validate_boolean(ival_, node, "isPostfiliale") + self.isPostfiliale = ival_ + self.isPostfiliale_nsprefix_ = child_.prefix + elif nodeName_ == "postnummer": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "postnummer") + value_ = self.gds_validate_string(value_, node, "postnummer") + self.postnummer = value_ + self.postnummer_nsprefix_ = child_.prefix + elif nodeName_ == "addressType": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "addressType") + value_ = self.gds_validate_string(value_, node, "addressType") + self.addressType = value_ + self.addressType_nsprefix_ = child_.prefix + elif nodeName_ == "name": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "name") + value_ = self.gds_validate_string(value_, node, "name") + self.name = value_ + self.name_nsprefix_ = child_.prefix + elif nodeName_ == "postalCode": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "postalCode") + value_ = self.gds_validate_string(value_, node, "postalCode") + self.postalCode = value_ + self.postalCode_nsprefix_ = child_.prefix + elif nodeName_ == "city": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "city") + value_ = self.gds_validate_string(value_, node, "city") + self.city = value_ + self.city_nsprefix_ = child_.prefix + elif nodeName_ == "street": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "street") + value_ = self.gds_validate_string(value_, node, "street") + self.street = value_ + self.street_nsprefix_ = child_.prefix + elif nodeName_ == "houseNumber": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "houseNumber") + value_ = self.gds_validate_string(value_, node, "houseNumber") + self.houseNumber = value_ + self.houseNumber_nsprefix_ = child_.prefix + elif nodeName_ == "apartmentNumber": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "apartmentNumber") + value_ = self.gds_validate_string(value_, node, "apartmentNumber") + self.apartmentNumber = value_ + self.apartmentNumber_nsprefix_ = child_.prefix + + +# end class ReceiverAddress + + +class ReceiverAddressat(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, preaviso=None, contact=None, address=None, gds_collector_=None, **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.preaviso = preaviso + self.preaviso_nsprefix_ = "tns" + self.contact = contact + self.contact_nsprefix_ = "tns" + self.address = address + self.address_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, ReceiverAddressat) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ReceiverAddressat.subclass: + return ReceiverAddressat.subclass(*args_, **kwargs_) + else: + return ReceiverAddressat(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_preaviso(self): + return self.preaviso + + def set_preaviso(self, preaviso): + self.preaviso = preaviso + + def get_contact(self): + return self.contact + + def set_contact(self, contact): + self.contact = contact + + def get_address(self): + return self.address + + def set_address(self, address): + self.address = address + + def _hasContent(self): + if ( + self.preaviso is not None + or self.contact is not None + or self.address is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ReceiverAddressat", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ReceiverAddressat") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ReceiverAddressat": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="ReceiverAddressat", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ReceiverAddressat", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ReceiverAddressat", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ReceiverAddressat", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.preaviso is not None: + namespaceprefix_ = ( + self.preaviso_nsprefix_ + ":" + if (UseCapturedNS_ and self.preaviso_nsprefix_) + else "" + ) + self.preaviso.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="preaviso", + pretty_print=pretty_print, + ) + if self.contact is not None: + namespaceprefix_ = ( + self.contact_nsprefix_ + ":" + if (UseCapturedNS_ and self.contact_nsprefix_) + else "" + ) + self.contact.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="contact", + pretty_print=pretty_print, + ) + if self.address is not None: + namespaceprefix_ = ( + self.address_nsprefix_ + ":" + if (UseCapturedNS_ and self.address_nsprefix_) + else "" + ) + self.address.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="address", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "preaviso": + obj_ = PreavisoContact.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.preaviso = obj_ + obj_.original_tagname_ = "preaviso" + elif nodeName_ == "contact": + obj_ = PreavisoContact.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.contact = obj_ + obj_.original_tagname_ = "contact" + elif nodeName_ == "address": + obj_ = ReceiverAddress.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.address = obj_ + obj_.original_tagname_ = "address" + + +# end class ReceiverAddressat + + +class Ship(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + shipper=None, + receiver=None, + neighbour=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.shipper = shipper + self.shipper_nsprefix_ = "tns" + self.receiver = receiver + self.receiver_nsprefix_ = "tns" + self.neighbour = neighbour + self.neighbour_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, Ship) + if subclass is not None: + return subclass(*args_, **kwargs_) + if Ship.subclass: + return Ship.subclass(*args_, **kwargs_) + else: + return Ship(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_shipper(self): + return self.shipper + + def set_shipper(self, shipper): + self.shipper = shipper + + def get_receiver(self): + return self.receiver + + def set_receiver(self, receiver): + self.receiver = receiver + + def get_neighbour(self): + return self.neighbour + + def set_neighbour(self, neighbour): + self.neighbour = neighbour + + def _hasContent(self): + if ( + self.shipper is not None + or self.receiver is not None + or self.neighbour is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="Ship", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("Ship") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "Ship": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="Ship" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="Ship", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, outfile, level, already_processed, namespaceprefix_="", name_="Ship" + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="Ship", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.shipper is not None: + namespaceprefix_ = ( + self.shipper_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipper_nsprefix_) + else "" + ) + self.shipper.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="shipper", + pretty_print=pretty_print, + ) + if self.receiver is not None: + namespaceprefix_ = ( + self.receiver_nsprefix_ + ":" + if (UseCapturedNS_ and self.receiver_nsprefix_) + else "" + ) + self.receiver.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="receiver", + pretty_print=pretty_print, + ) + if self.neighbour is not None: + namespaceprefix_ = ( + self.neighbour_nsprefix_ + ":" + if (UseCapturedNS_ and self.neighbour_nsprefix_) + else "" + ) + self.neighbour.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="neighbour", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "shipper": + obj_ = Addressat.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.shipper = obj_ + obj_.original_tagname_ = "shipper" + elif nodeName_ == "receiver": + obj_ = ReceiverAddressat.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.receiver = obj_ + obj_.original_tagname_ = "receiver" + elif nodeName_ == "neighbour": + obj_ = NeighbourAddress.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.neighbour = obj_ + obj_.original_tagname_ = "neighbour" + + +# end class Ship + + +class Package(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + type_=None, + euroReturn=None, + weight=None, + width=None, + height=None, + length=None, + quantity=None, + nonStandard=None, + blpPieceId=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.type_ = type_ + self.type__nsprefix_ = None + self.euroReturn = euroReturn + self.euroReturn_nsprefix_ = None + self.weight = weight + self.weight_nsprefix_ = None + self.width = width + self.width_nsprefix_ = None + self.height = height + self.height_nsprefix_ = None + self.length = length + self.length_nsprefix_ = None + self.quantity = quantity + self.quantity_nsprefix_ = None + self.nonStandard = nonStandard + self.nonStandard_nsprefix_ = None + self.blpPieceId = blpPieceId + self.blpPieceId_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, Package) + if subclass is not None: + return subclass(*args_, **kwargs_) + if Package.subclass: + return Package.subclass(*args_, **kwargs_) + else: + return Package(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_type(self): + return self.type_ + + def set_type(self, type_): + self.type_ = type_ + + def get_euroReturn(self): + return self.euroReturn + + def set_euroReturn(self, euroReturn): + self.euroReturn = euroReturn + + def get_weight(self): + return self.weight + + def set_weight(self, weight): + self.weight = weight + + def get_width(self): + return self.width + + def set_width(self, width): + self.width = width + + def get_height(self): + return self.height + + def set_height(self, height): + self.height = height + + def get_length(self): + return self.length + + def set_length(self, length): + self.length = length + + def get_quantity(self): + return self.quantity + + def set_quantity(self, quantity): + self.quantity = quantity + + def get_nonStandard(self): + return self.nonStandard + + def set_nonStandard(self, nonStandard): + self.nonStandard = nonStandard + + def get_blpPieceId(self): + return self.blpPieceId + + def set_blpPieceId(self, blpPieceId): + self.blpPieceId = blpPieceId + + def _hasContent(self): + if ( + self.type_ is not None + or self.euroReturn is not None + or self.weight is not None + or self.width is not None + or self.height is not None + or self.length is not None + or self.quantity is not None + or self.nonStandard is not None + or self.blpPieceId is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="Package", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("Package") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "Package": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="Package" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="Package", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, outfile, level, already_processed, namespaceprefix_="", name_="Package" + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="Package", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.type_ is not None: + namespaceprefix_ = ( + self.type__nsprefix_ + ":" + if (UseCapturedNS_ and self.type__nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%stype>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string(quote_xml(self.type_), input_name="type") + ), + namespaceprefix_, + eol_, + ) + ) + if self.euroReturn is not None: + namespaceprefix_ = ( + self.euroReturn_nsprefix_ + ":" + if (UseCapturedNS_ and self.euroReturn_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%seuroReturn>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean(self.euroReturn, input_name="euroReturn"), + namespaceprefix_, + eol_, + ) + ) + if self.weight is not None: + namespaceprefix_ = ( + self.weight_nsprefix_ + ":" + if (UseCapturedNS_ and self.weight_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sweight>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.weight, input_name="weight"), + namespaceprefix_, + eol_, + ) + ) + if self.width is not None: + namespaceprefix_ = ( + self.width_nsprefix_ + ":" + if (UseCapturedNS_ and self.width_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%swidth>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.width, input_name="width"), + namespaceprefix_, + eol_, + ) + ) + if self.height is not None: + namespaceprefix_ = ( + self.height_nsprefix_ + ":" + if (UseCapturedNS_ and self.height_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sheight>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.height, input_name="height"), + namespaceprefix_, + eol_, + ) + ) + if self.length is not None: + namespaceprefix_ = ( + self.length_nsprefix_ + ":" + if (UseCapturedNS_ and self.length_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%slength>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.length, input_name="length"), + namespaceprefix_, + eol_, + ) + ) + if self.quantity is not None: + namespaceprefix_ = ( + self.quantity_nsprefix_ + ":" + if (UseCapturedNS_ and self.quantity_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%squantity>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.quantity, input_name="quantity"), + namespaceprefix_, + eol_, + ) + ) + if self.nonStandard is not None: + namespaceprefix_ = ( + self.nonStandard_nsprefix_ + ":" + if (UseCapturedNS_ and self.nonStandard_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%snonStandard>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean(self.nonStandard, input_name="nonStandard"), + namespaceprefix_, + eol_, + ) + ) + if self.blpPieceId is not None: + namespaceprefix_ = ( + self.blpPieceId_nsprefix_ + ":" + if (UseCapturedNS_ and self.blpPieceId_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sblpPieceId>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.blpPieceId), input_name="blpPieceId" + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "type": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "type") + value_ = self.gds_validate_string(value_, node, "type") + self.type_ = value_ + self.type_nsprefix_ = child_.prefix + elif nodeName_ == "euroReturn": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "euroReturn") + ival_ = self.gds_validate_boolean(ival_, node, "euroReturn") + self.euroReturn = ival_ + self.euroReturn_nsprefix_ = child_.prefix + elif nodeName_ == "weight" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "weight") + ival_ = self.gds_validate_integer(ival_, node, "weight") + self.weight = ival_ + self.weight_nsprefix_ = child_.prefix + elif nodeName_ == "width" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "width") + ival_ = self.gds_validate_integer(ival_, node, "width") + self.width = ival_ + self.width_nsprefix_ = child_.prefix + elif nodeName_ == "height" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "height") + ival_ = self.gds_validate_integer(ival_, node, "height") + self.height = ival_ + self.height_nsprefix_ = child_.prefix + elif nodeName_ == "length" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "length") + ival_ = self.gds_validate_integer(ival_, node, "length") + self.length = ival_ + self.length_nsprefix_ = child_.prefix + elif nodeName_ == "quantity" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "quantity") + ival_ = self.gds_validate_integer(ival_, node, "quantity") + self.quantity = ival_ + self.quantity_nsprefix_ = child_.prefix + elif nodeName_ == "nonStandard": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "nonStandard") + ival_ = self.gds_validate_boolean(ival_, node, "nonStandard") + self.nonStandard = ival_ + self.nonStandard_nsprefix_ = child_.prefix + elif nodeName_ == "blpPieceId": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "blpPieceId") + value_ = self.gds_validate_string(value_, node, "blpPieceId") + self.blpPieceId = value_ + self.blpPieceId_nsprefix_ = child_.prefix + + +# end class Package + + +class ArrayOfPackage(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, item=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + if item is None: + self.item = [] + else: + self.item = item + self.item_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, ArrayOfPackage) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ArrayOfPackage.subclass: + return ArrayOfPackage.subclass(*args_, **kwargs_) + else: + return ArrayOfPackage(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_item(self): + return self.item + + def set_item(self, item): + self.item = item + + def add_item(self, value): + self.item.append(value) + + def insert_item_at(self, index, value): + self.item.insert(index, value) + + def replace_item_at(self, index, value): + self.item[index] = value + + def _hasContent(self): + if self.item: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfPackage", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ArrayOfPackage") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ArrayOfPackage": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="ArrayOfPackage" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ArrayOfPackage", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ArrayOfPackage", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfPackage", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + for item_ in self.item: + namespaceprefix_ = ( + self.item_nsprefix_ + ":" + if (UseCapturedNS_ and self.item_nsprefix_) + else "" + ) + item_.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="item", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "item": + obj_ = Package.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.item.append(obj_) + obj_.original_tagname_ = "item" + + +# end class ArrayOfPackage + + +class CreateShipmentRequest(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + shipmentInfo=None, + content=None, + comment=None, + reference=None, + ship=None, + pieceList=None, + customs=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.shipmentInfo = shipmentInfo + self.shipmentInfo_nsprefix_ = "tns" + self.content = content + self.content_nsprefix_ = None + self.comment = comment + self.comment_nsprefix_ = None + self.reference = reference + self.reference_nsprefix_ = None + self.ship = ship + self.ship_nsprefix_ = "tns" + self.pieceList = pieceList + self.pieceList_nsprefix_ = "tns" + self.customs = customs + self.customs_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, CreateShipmentRequest + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if CreateShipmentRequest.subclass: + return CreateShipmentRequest.subclass(*args_, **kwargs_) + else: + return CreateShipmentRequest(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_shipmentInfo(self): + return self.shipmentInfo + + def set_shipmentInfo(self, shipmentInfo): + self.shipmentInfo = shipmentInfo + + def get_content(self): + return self.content + + def set_content(self, content): + self.content = content + + def get_comment(self): + return self.comment + + def set_comment(self, comment): + self.comment = comment + + def get_reference(self): + return self.reference + + def set_reference(self, reference): + self.reference = reference + + def get_ship(self): + return self.ship + + def set_ship(self, ship): + self.ship = ship + + def get_pieceList(self): + return self.pieceList + + def set_pieceList(self, pieceList): + self.pieceList = pieceList + + def get_customs(self): + return self.customs + + def set_customs(self, customs): + self.customs = customs + + def _hasContent(self): + if ( + self.shipmentInfo is not None + or self.content is not None + or self.comment is not None + or self.reference is not None + or self.ship is not None + or self.pieceList is not None + or self.customs is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="CreateShipmentRequest", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("CreateShipmentRequest") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "CreateShipmentRequest": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="CreateShipmentRequest", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="CreateShipmentRequest", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="CreateShipmentRequest", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="CreateShipmentRequest", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.shipmentInfo is not None: + namespaceprefix_ = ( + self.shipmentInfo_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipmentInfo_nsprefix_) + else "" + ) + self.shipmentInfo.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="shipmentInfo", + pretty_print=pretty_print, + ) + if self.content is not None: + namespaceprefix_ = ( + self.content_nsprefix_ + ":" + if (UseCapturedNS_ and self.content_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scontent>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.content), input_name="content" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.comment is not None: + namespaceprefix_ = ( + self.comment_nsprefix_ + ":" + if (UseCapturedNS_ and self.comment_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scomment>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.comment), input_name="comment" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.reference is not None: + namespaceprefix_ = ( + self.reference_nsprefix_ + ":" + if (UseCapturedNS_ and self.reference_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sreference>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.reference), input_name="reference" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.ship is not None: + namespaceprefix_ = ( + self.ship_nsprefix_ + ":" + if (UseCapturedNS_ and self.ship_nsprefix_) + else "" + ) + self.ship.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="ship", + pretty_print=pretty_print, + ) + if self.pieceList is not None: + namespaceprefix_ = ( + self.pieceList_nsprefix_ + ":" + if (UseCapturedNS_ and self.pieceList_nsprefix_) + else "" + ) + self.pieceList.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="pieceList", + pretty_print=pretty_print, + ) + if self.customs is not None: + namespaceprefix_ = ( + self.customs_nsprefix_ + ":" + if (UseCapturedNS_ and self.customs_nsprefix_) + else "" + ) + self.customs.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="customs", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "shipmentInfo": + obj_ = ShipmentInfo.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.shipmentInfo = obj_ + obj_.original_tagname_ = "shipmentInfo" + elif nodeName_ == "content": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "content") + value_ = self.gds_validate_string(value_, node, "content") + self.content = value_ + self.content_nsprefix_ = child_.prefix + elif nodeName_ == "comment": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "comment") + value_ = self.gds_validate_string(value_, node, "comment") + self.comment = value_ + self.comment_nsprefix_ = child_.prefix + elif nodeName_ == "reference": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "reference") + value_ = self.gds_validate_string(value_, node, "reference") + self.reference = value_ + self.reference_nsprefix_ = child_.prefix + elif nodeName_ == "ship": + obj_ = Ship.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.ship = obj_ + obj_.original_tagname_ = "ship" + elif nodeName_ == "pieceList": + obj_ = ArrayOfPackage.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.pieceList = obj_ + obj_.original_tagname_ = "pieceList" + elif nodeName_ == "customs": + obj_ = CustomsData.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.customs = obj_ + obj_.original_tagname_ = "customs" + + +# end class CreateShipmentRequest + + +class createShipment(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, authData=None, shipment=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.authData = authData + self.authData_nsprefix_ = "tns" + self.shipment = shipment + self.shipment_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, createShipment) + if subclass is not None: + return subclass(*args_, **kwargs_) + if createShipment.subclass: + return createShipment.subclass(*args_, **kwargs_) + else: + return createShipment(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_authData(self): + return self.authData + + def set_authData(self, authData): + self.authData = authData + + def get_shipment(self): + return self.shipment + + def set_shipment(self, shipment): + self.shipment = shipment + + def _hasContent(self): + if self.authData is not None or self.shipment is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="createShipment", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("createShipment") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "createShipment": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="createShipment" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="createShipment", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="createShipment", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="createShipment", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.authData is not None: + namespaceprefix_ = ( + self.authData_nsprefix_ + ":" + if (UseCapturedNS_ and self.authData_nsprefix_) + else "" + ) + self.authData.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="authData", + pretty_print=pretty_print, + ) + if self.shipment is not None: + namespaceprefix_ = ( + self.shipment_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipment_nsprefix_) + else "" + ) + self.shipment.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="shipment", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "authData": + obj_ = AuthData.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.authData = obj_ + obj_.original_tagname_ = "authData" + elif nodeName_ == "shipment": + obj_ = CreateShipmentRequest.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.shipment = obj_ + obj_.original_tagname_ = "shipment" + + +# end class createShipment + + +class createShipmentResponse(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, createShipmentResult=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.createShipmentResult = createShipmentResult + self.createShipmentResult_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, createShipmentResponse + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if createShipmentResponse.subclass: + return createShipmentResponse.subclass(*args_, **kwargs_) + else: + return createShipmentResponse(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_createShipmentResult(self): + return self.createShipmentResult + + def set_createShipmentResult(self, createShipmentResult): + self.createShipmentResult = createShipmentResult + + def _hasContent(self): + if self.createShipmentResult is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="createShipmentResponse", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("createShipmentResponse") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "createShipmentResponse": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="createShipmentResponse", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="createShipmentResponse", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="createShipmentResponse", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="createShipmentResponse", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.createShipmentResult is not None: + namespaceprefix_ = ( + self.createShipmentResult_nsprefix_ + ":" + if (UseCapturedNS_ and self.createShipmentResult_nsprefix_) + else "" + ) + self.createShipmentResult.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="createShipmentResult", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "createShipmentResult": + obj_ = CreateShipmentResponse.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.createShipmentResult = obj_ + obj_.original_tagname_ = "createShipmentResult" + + +# end class createShipmentResponse + + +class DeleteShipmentRequest(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + shipmentIdentificationNumber=None, + dispatchIdentificationNumber=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.shipmentIdentificationNumber = shipmentIdentificationNumber + self.shipmentIdentificationNumber_nsprefix_ = None + self.dispatchIdentificationNumber = dispatchIdentificationNumber + self.dispatchIdentificationNumber_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, DeleteShipmentRequest + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if DeleteShipmentRequest.subclass: + return DeleteShipmentRequest.subclass(*args_, **kwargs_) + else: + return DeleteShipmentRequest(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_shipmentIdentificationNumber(self): + return self.shipmentIdentificationNumber + + def set_shipmentIdentificationNumber(self, shipmentIdentificationNumber): + self.shipmentIdentificationNumber = shipmentIdentificationNumber + + def get_dispatchIdentificationNumber(self): + return self.dispatchIdentificationNumber + + def set_dispatchIdentificationNumber(self, dispatchIdentificationNumber): + self.dispatchIdentificationNumber = dispatchIdentificationNumber + + def _hasContent(self): + if ( + self.shipmentIdentificationNumber is not None + or self.dispatchIdentificationNumber is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="DeleteShipmentRequest", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("DeleteShipmentRequest") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "DeleteShipmentRequest": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="DeleteShipmentRequest", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="DeleteShipmentRequest", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="DeleteShipmentRequest", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="DeleteShipmentRequest", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.shipmentIdentificationNumber is not None: + namespaceprefix_ = ( + self.shipmentIdentificationNumber_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipmentIdentificationNumber_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sshipmentIdentificationNumber>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.shipmentIdentificationNumber), + input_name="shipmentIdentificationNumber", + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.dispatchIdentificationNumber is not None: + namespaceprefix_ = ( + self.dispatchIdentificationNumber_nsprefix_ + ":" + if (UseCapturedNS_ and self.dispatchIdentificationNumber_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sdispatchIdentificationNumber>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.dispatchIdentificationNumber), + input_name="dispatchIdentificationNumber", + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "shipmentIdentificationNumber": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "shipmentIdentificationNumber") + value_ = self.gds_validate_string( + value_, node, "shipmentIdentificationNumber" + ) + self.shipmentIdentificationNumber = value_ + self.shipmentIdentificationNumber_nsprefix_ = child_.prefix + elif nodeName_ == "dispatchIdentificationNumber": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "dispatchIdentificationNumber") + value_ = self.gds_validate_string( + value_, node, "dispatchIdentificationNumber" + ) + self.dispatchIdentificationNumber = value_ + self.dispatchIdentificationNumber_nsprefix_ = child_.prefix + + +# end class DeleteShipmentRequest + + +class deleteShipment(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, authData=None, shipment=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.authData = authData + self.authData_nsprefix_ = "tns" + self.shipment = shipment + self.shipment_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, deleteShipment) + if subclass is not None: + return subclass(*args_, **kwargs_) + if deleteShipment.subclass: + return deleteShipment.subclass(*args_, **kwargs_) + else: + return deleteShipment(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_authData(self): + return self.authData + + def set_authData(self, authData): + self.authData = authData + + def get_shipment(self): + return self.shipment + + def set_shipment(self, shipment): + self.shipment = shipment + + def _hasContent(self): + if self.authData is not None or self.shipment is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="deleteShipment", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("deleteShipment") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "deleteShipment": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="deleteShipment" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="deleteShipment", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="deleteShipment", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="deleteShipment", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.authData is not None: + namespaceprefix_ = ( + self.authData_nsprefix_ + ":" + if (UseCapturedNS_ and self.authData_nsprefix_) + else "" + ) + self.authData.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="authData", + pretty_print=pretty_print, + ) + if self.shipment is not None: + namespaceprefix_ = ( + self.shipment_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipment_nsprefix_) + else "" + ) + self.shipment.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="shipment", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "authData": + obj_ = AuthData.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.authData = obj_ + obj_.original_tagname_ = "authData" + elif nodeName_ == "shipment": + obj_ = DeleteShipmentRequest.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.shipment = obj_ + obj_.original_tagname_ = "shipment" + + +# end class deleteShipment + + +class DeleteShipmentResponse(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, id=None, result=None, error=None, gds_collector_=None, **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.id = id + self.id_nsprefix_ = None + self.result = result + self.result_nsprefix_ = None + self.error = error + self.error_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, DeleteShipmentResponse + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if DeleteShipmentResponse.subclass: + return DeleteShipmentResponse.subclass(*args_, **kwargs_) + else: + return DeleteShipmentResponse(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_id(self): + return self.id + + def set_id(self, id): + self.id = id + + def get_result(self): + return self.result + + def set_result(self, result): + self.result = result + + def get_error(self): + return self.error + + def set_error(self, error): + self.error = error + + def _hasContent(self): + if self.id is not None or self.result is not None or self.error is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="DeleteShipmentResponse", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("DeleteShipmentResponse") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "DeleteShipmentResponse": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="DeleteShipmentResponse", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="DeleteShipmentResponse", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="DeleteShipmentResponse", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="DeleteShipmentResponse", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.id is not None: + namespaceprefix_ = ( + self.id_nsprefix_ + ":" + if (UseCapturedNS_ and self.id_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sid>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string(quote_xml(self.id), input_name="id") + ), + namespaceprefix_, + eol_, + ) + ) + if self.result is not None: + namespaceprefix_ = ( + self.result_nsprefix_ + ":" + if (UseCapturedNS_ and self.result_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sresult>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean(self.result, input_name="result"), + namespaceprefix_, + eol_, + ) + ) + if self.error is not None: + namespaceprefix_ = ( + self.error_nsprefix_ + ":" + if (UseCapturedNS_ and self.error_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%serror>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.error), input_name="error" + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "id": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "id") + value_ = self.gds_validate_string(value_, node, "id") + self.id = value_ + self.id_nsprefix_ = child_.prefix + elif nodeName_ == "result": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "result") + ival_ = self.gds_validate_boolean(ival_, node, "result") + self.result = ival_ + self.result_nsprefix_ = child_.prefix + elif nodeName_ == "error": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "error") + value_ = self.gds_validate_string(value_, node, "error") + self.error = value_ + self.error_nsprefix_ = child_.prefix + + +# end class DeleteShipmentResponse + + +class deleteShipmentResponse(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, deleteShipmentResult=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.deleteShipmentResult = deleteShipmentResult + self.deleteShipmentResult_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, deleteShipmentResponse + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if deleteShipmentResponse.subclass: + return deleteShipmentResponse.subclass(*args_, **kwargs_) + else: + return deleteShipmentResponse(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_deleteShipmentResult(self): + return self.deleteShipmentResult + + def set_deleteShipmentResult(self, deleteShipmentResult): + self.deleteShipmentResult = deleteShipmentResult + + def _hasContent(self): + if self.deleteShipmentResult is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="deleteShipmentResponse", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("deleteShipmentResponse") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "deleteShipmentResponse": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="deleteShipmentResponse", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="deleteShipmentResponse", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="deleteShipmentResponse", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="deleteShipmentResponse", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.deleteShipmentResult is not None: + namespaceprefix_ = ( + self.deleteShipmentResult_nsprefix_ + ":" + if (UseCapturedNS_ and self.deleteShipmentResult_nsprefix_) + else "" + ) + self.deleteShipmentResult.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="deleteShipmentResult", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "deleteShipmentResult": + obj_ = DeleteShipmentResponse.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.deleteShipmentResult = obj_ + obj_.original_tagname_ = "deleteShipmentResult" + + +# end class deleteShipmentResponse + + +class GetNearestServicepointsRequest(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + country=None, + postcode=None, + city=None, + radius=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.country = country + self.country_nsprefix_ = None + self.postcode = postcode + self.postcode_nsprefix_ = None + self.city = city + self.city_nsprefix_ = None + self.radius = radius + self.radius_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, GetNearestServicepointsRequest + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if GetNearestServicepointsRequest.subclass: + return GetNearestServicepointsRequest.subclass(*args_, **kwargs_) + else: + return GetNearestServicepointsRequest(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_country(self): + return self.country + + def set_country(self, country): + self.country = country + + def get_postcode(self): + return self.postcode + + def set_postcode(self, postcode): + self.postcode = postcode + + def get_city(self): + return self.city + + def set_city(self, city): + self.city = city + + def get_radius(self): + return self.radius + + def set_radius(self, radius): + self.radius = radius + + def _hasContent(self): + if ( + self.country is not None + or self.postcode is not None + or self.city is not None + or self.radius is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="GetNearestServicepointsRequest", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get( + "GetNearestServicepointsRequest" + ) + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if ( + self.original_tagname_ is not None + and name_ == "GetNearestServicepointsRequest" + ): + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="GetNearestServicepointsRequest", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="GetNearestServicepointsRequest", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="GetNearestServicepointsRequest", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="GetNearestServicepointsRequest", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.country is not None: + namespaceprefix_ = ( + self.country_nsprefix_ + ":" + if (UseCapturedNS_ and self.country_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scountry>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.country), input_name="country" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.postcode is not None: + namespaceprefix_ = ( + self.postcode_nsprefix_ + ":" + if (UseCapturedNS_ and self.postcode_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spostcode>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.postcode), input_name="postcode" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.city is not None: + namespaceprefix_ = ( + self.city_nsprefix_ + ":" + if (UseCapturedNS_ and self.city_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scity>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string(quote_xml(self.city), input_name="city") + ), + namespaceprefix_, + eol_, + ) + ) + if self.radius is not None: + namespaceprefix_ = ( + self.radius_nsprefix_ + ":" + if (UseCapturedNS_ and self.radius_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sradius>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.radius, input_name="radius"), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "country": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "country") + value_ = self.gds_validate_string(value_, node, "country") + self.country = value_ + self.country_nsprefix_ = child_.prefix + elif nodeName_ == "postcode": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "postcode") + value_ = self.gds_validate_string(value_, node, "postcode") + self.postcode = value_ + self.postcode_nsprefix_ = child_.prefix + elif nodeName_ == "city": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "city") + value_ = self.gds_validate_string(value_, node, "city") + self.city = value_ + self.city_nsprefix_ = child_.prefix + elif nodeName_ == "radius" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "radius") + ival_ = self.gds_validate_integer(ival_, node, "radius") + self.radius = ival_ + self.radius_nsprefix_ = child_.prefix + + +# end class GetNearestServicepointsRequest + + +class getNearestServicepoints(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, authData=None, structure=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.authData = authData + self.authData_nsprefix_ = "tns" + self.structure = structure + self.structure_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, getNearestServicepoints + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if getNearestServicepoints.subclass: + return getNearestServicepoints.subclass(*args_, **kwargs_) + else: + return getNearestServicepoints(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_authData(self): + return self.authData + + def set_authData(self, authData): + self.authData = authData + + def get_structure(self): + return self.structure + + def set_structure(self, structure): + self.structure = structure + + def _hasContent(self): + if self.authData is not None or self.structure is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getNearestServicepoints", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("getNearestServicepoints") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "getNearestServicepoints": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="getNearestServicepoints", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="getNearestServicepoints", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="getNearestServicepoints", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getNearestServicepoints", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.authData is not None: + namespaceprefix_ = ( + self.authData_nsprefix_ + ":" + if (UseCapturedNS_ and self.authData_nsprefix_) + else "" + ) + self.authData.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="authData", + pretty_print=pretty_print, + ) + if self.structure is not None: + namespaceprefix_ = ( + self.structure_nsprefix_ + ":" + if (UseCapturedNS_ and self.structure_nsprefix_) + else "" + ) + self.structure.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="structure", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "authData": + obj_ = AuthData.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.authData = obj_ + obj_.original_tagname_ = "authData" + elif nodeName_ == "structure": + obj_ = GetNearestServicepointsRequest.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.structure = obj_ + obj_.original_tagname_ = "structure" + + +# end class getNearestServicepoints + + +class SearchAddress(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + country=None, + name=None, + postcode=None, + city=None, + street=None, + houseNumber=None, + apartmentNumber=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.country = country + self.country_nsprefix_ = None + self.name = name + self.name_nsprefix_ = None + self.postcode = postcode + self.postcode_nsprefix_ = None + self.city = city + self.city_nsprefix_ = None + self.street = street + self.street_nsprefix_ = None + self.houseNumber = houseNumber + self.houseNumber_nsprefix_ = None + self.apartmentNumber = apartmentNumber + self.apartmentNumber_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, SearchAddress) + if subclass is not None: + return subclass(*args_, **kwargs_) + if SearchAddress.subclass: + return SearchAddress.subclass(*args_, **kwargs_) + else: + return SearchAddress(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_country(self): + return self.country + + def set_country(self, country): + self.country = country + + def get_name(self): + return self.name + + def set_name(self, name): + self.name = name + + def get_postcode(self): + return self.postcode + + def set_postcode(self, postcode): + self.postcode = postcode + + def get_city(self): + return self.city + + def set_city(self, city): + self.city = city + + def get_street(self): + return self.street + + def set_street(self, street): + self.street = street + + def get_houseNumber(self): + return self.houseNumber + + def set_houseNumber(self, houseNumber): + self.houseNumber = houseNumber + + def get_apartmentNumber(self): + return self.apartmentNumber + + def set_apartmentNumber(self, apartmentNumber): + self.apartmentNumber = apartmentNumber + + def _hasContent(self): + if ( + self.country is not None + or self.name is not None + or self.postcode is not None + or self.city is not None + or self.street is not None + or self.houseNumber is not None + or self.apartmentNumber is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="SearchAddress", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("SearchAddress") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "SearchAddress": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="SearchAddress" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="SearchAddress", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="SearchAddress", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="SearchAddress", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.country is not None: + namespaceprefix_ = ( + self.country_nsprefix_ + ":" + if (UseCapturedNS_ and self.country_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scountry>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.country), input_name="country" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.name is not None: + namespaceprefix_ = ( + self.name_nsprefix_ + ":" + if (UseCapturedNS_ and self.name_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sname>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string(quote_xml(self.name), input_name="name") + ), + namespaceprefix_, + eol_, + ) + ) + if self.postcode is not None: + namespaceprefix_ = ( + self.postcode_nsprefix_ + ":" + if (UseCapturedNS_ and self.postcode_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spostcode>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.postcode), input_name="postcode" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.city is not None: + namespaceprefix_ = ( + self.city_nsprefix_ + ":" + if (UseCapturedNS_ and self.city_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scity>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string(quote_xml(self.city), input_name="city") + ), + namespaceprefix_, + eol_, + ) + ) + if self.street is not None: + namespaceprefix_ = ( + self.street_nsprefix_ + ":" + if (UseCapturedNS_ and self.street_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sstreet>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.street), input_name="street" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.houseNumber is not None: + namespaceprefix_ = ( + self.houseNumber_nsprefix_ + ":" + if (UseCapturedNS_ and self.houseNumber_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%shouseNumber>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.houseNumber), input_name="houseNumber" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.apartmentNumber is not None: + namespaceprefix_ = ( + self.apartmentNumber_nsprefix_ + ":" + if (UseCapturedNS_ and self.apartmentNumber_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sapartmentNumber>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.apartmentNumber), + input_name="apartmentNumber", + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "country": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "country") + value_ = self.gds_validate_string(value_, node, "country") + self.country = value_ + self.country_nsprefix_ = child_.prefix + elif nodeName_ == "name": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "name") + value_ = self.gds_validate_string(value_, node, "name") + self.name = value_ + self.name_nsprefix_ = child_.prefix + elif nodeName_ == "postcode": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "postcode") + value_ = self.gds_validate_string(value_, node, "postcode") + self.postcode = value_ + self.postcode_nsprefix_ = child_.prefix + elif nodeName_ == "city": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "city") + value_ = self.gds_validate_string(value_, node, "city") + self.city = value_ + self.city_nsprefix_ = child_.prefix + elif nodeName_ == "street": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "street") + value_ = self.gds_validate_string(value_, node, "street") + self.street = value_ + self.street_nsprefix_ = child_.prefix + elif nodeName_ == "houseNumber": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "houseNumber") + value_ = self.gds_validate_string(value_, node, "houseNumber") + self.houseNumber = value_ + self.houseNumber_nsprefix_ = child_.prefix + elif nodeName_ == "apartmentNumber": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "apartmentNumber") + value_ = self.gds_validate_string(value_, node, "apartmentNumber") + self.apartmentNumber = value_ + self.apartmentNumber_nsprefix_ = child_.prefix + + +# end class SearchAddress + + +class Point(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + type_=None, + address=None, + description=None, + longitude=None, + latitude=None, + sap=None, + monOpen=None, + monClose=None, + tueOpen=None, + tueClose=None, + wedOpen=None, + wedClose=None, + thuOpen=None, + thuClose=None, + friOpen=None, + friClose=None, + satOpen=None, + satClose=None, + sunOpen=None, + sunClose=None, + workInHoliday=None, + name=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.type_ = type_ + self.type__nsprefix_ = None + self.address = address + self.address_nsprefix_ = "tns" + self.description = description + self.description_nsprefix_ = None + self.longitude = longitude + self.longitude_nsprefix_ = None + self.latitude = latitude + self.latitude_nsprefix_ = None + self.sap = sap + self.sap_nsprefix_ = None + self.monOpen = monOpen + self.monOpen_nsprefix_ = None + self.monClose = monClose + self.monClose_nsprefix_ = None + self.tueOpen = tueOpen + self.tueOpen_nsprefix_ = None + self.tueClose = tueClose + self.tueClose_nsprefix_ = None + self.wedOpen = wedOpen + self.wedOpen_nsprefix_ = None + self.wedClose = wedClose + self.wedClose_nsprefix_ = None + self.thuOpen = thuOpen + self.thuOpen_nsprefix_ = None + self.thuClose = thuClose + self.thuClose_nsprefix_ = None + self.friOpen = friOpen + self.friOpen_nsprefix_ = None + self.friClose = friClose + self.friClose_nsprefix_ = None + self.satOpen = satOpen + self.satOpen_nsprefix_ = None + self.satClose = satClose + self.satClose_nsprefix_ = None + self.sunOpen = sunOpen + self.sunOpen_nsprefix_ = None + self.sunClose = sunClose + self.sunClose_nsprefix_ = None + self.workInHoliday = workInHoliday + self.workInHoliday_nsprefix_ = None + self.name = name + self.name_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, Point) + if subclass is not None: + return subclass(*args_, **kwargs_) + if Point.subclass: + return Point.subclass(*args_, **kwargs_) + else: + return Point(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_type(self): + return self.type_ + + def set_type(self, type_): + self.type_ = type_ + + def get_address(self): + return self.address + + def set_address(self, address): + self.address = address + + def get_description(self): + return self.description + + def set_description(self, description): + self.description = description + + def get_longitude(self): + return self.longitude + + def set_longitude(self, longitude): + self.longitude = longitude + + def get_latitude(self): + return self.latitude + + def set_latitude(self, latitude): + self.latitude = latitude + + def get_sap(self): + return self.sap + + def set_sap(self, sap): + self.sap = sap + + def get_monOpen(self): + return self.monOpen + + def set_monOpen(self, monOpen): + self.monOpen = monOpen + + def get_monClose(self): + return self.monClose + + def set_monClose(self, monClose): + self.monClose = monClose + + def get_tueOpen(self): + return self.tueOpen + + def set_tueOpen(self, tueOpen): + self.tueOpen = tueOpen + + def get_tueClose(self): + return self.tueClose + + def set_tueClose(self, tueClose): + self.tueClose = tueClose + + def get_wedOpen(self): + return self.wedOpen + + def set_wedOpen(self, wedOpen): + self.wedOpen = wedOpen + + def get_wedClose(self): + return self.wedClose + + def set_wedClose(self, wedClose): + self.wedClose = wedClose + + def get_thuOpen(self): + return self.thuOpen + + def set_thuOpen(self, thuOpen): + self.thuOpen = thuOpen + + def get_thuClose(self): + return self.thuClose + + def set_thuClose(self, thuClose): + self.thuClose = thuClose + + def get_friOpen(self): + return self.friOpen + + def set_friOpen(self, friOpen): + self.friOpen = friOpen + + def get_friClose(self): + return self.friClose + + def set_friClose(self, friClose): + self.friClose = friClose + + def get_satOpen(self): + return self.satOpen + + def set_satOpen(self, satOpen): + self.satOpen = satOpen + + def get_satClose(self): + return self.satClose + + def set_satClose(self, satClose): + self.satClose = satClose + + def get_sunOpen(self): + return self.sunOpen + + def set_sunOpen(self, sunOpen): + self.sunOpen = sunOpen + + def get_sunClose(self): + return self.sunClose + + def set_sunClose(self, sunClose): + self.sunClose = sunClose + + def get_workInHoliday(self): + return self.workInHoliday + + def set_workInHoliday(self, workInHoliday): + self.workInHoliday = workInHoliday + + def get_name(self): + return self.name + + def set_name(self, name): + self.name = name + + def _hasContent(self): + if ( + self.type_ is not None + or self.address is not None + or self.description is not None + or self.longitude is not None + or self.latitude is not None + or self.sap is not None + or self.monOpen is not None + or self.monClose is not None + or self.tueOpen is not None + or self.tueClose is not None + or self.wedOpen is not None + or self.wedClose is not None + or self.thuOpen is not None + or self.thuClose is not None + or self.friOpen is not None + or self.friClose is not None + or self.satOpen is not None + or self.satClose is not None + or self.sunOpen is not None + or self.sunClose is not None + or self.workInHoliday is not None + or self.name is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="Point", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("Point") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "Point": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="Point" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="Point", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, outfile, level, already_processed, namespaceprefix_="", name_="Point" + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="Point", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.type_ is not None: + namespaceprefix_ = ( + self.type__nsprefix_ + ":" + if (UseCapturedNS_ and self.type__nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%stype>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string(quote_xml(self.type_), input_name="type") + ), + namespaceprefix_, + eol_, + ) + ) + if self.address is not None: + namespaceprefix_ = ( + self.address_nsprefix_ + ":" + if (UseCapturedNS_ and self.address_nsprefix_) + else "" + ) + self.address.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="address", + pretty_print=pretty_print, + ) + if self.description is not None: + namespaceprefix_ = ( + self.description_nsprefix_ + ":" + if (UseCapturedNS_ and self.description_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sdescription>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.description), input_name="description" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.longitude is not None: + namespaceprefix_ = ( + self.longitude_nsprefix_ + ":" + if (UseCapturedNS_ and self.longitude_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%slongitude>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.longitude), input_name="longitude" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.latitude is not None: + namespaceprefix_ = ( + self.latitude_nsprefix_ + ":" + if (UseCapturedNS_ and self.latitude_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%slatitude>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.latitude), input_name="latitude" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.sap is not None: + namespaceprefix_ = ( + self.sap_nsprefix_ + ":" + if (UseCapturedNS_ and self.sap_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%ssap>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string(quote_xml(self.sap), input_name="sap") + ), + namespaceprefix_, + eol_, + ) + ) + if self.monOpen is not None: + namespaceprefix_ = ( + self.monOpen_nsprefix_ + ":" + if (UseCapturedNS_ and self.monOpen_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%smonOpen>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.monOpen), input_name="monOpen" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.monClose is not None: + namespaceprefix_ = ( + self.monClose_nsprefix_ + ":" + if (UseCapturedNS_ and self.monClose_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%smonClose>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.monClose), input_name="monClose" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.tueOpen is not None: + namespaceprefix_ = ( + self.tueOpen_nsprefix_ + ":" + if (UseCapturedNS_ and self.tueOpen_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%stueOpen>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.tueOpen), input_name="tueOpen" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.tueClose is not None: + namespaceprefix_ = ( + self.tueClose_nsprefix_ + ":" + if (UseCapturedNS_ and self.tueClose_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%stueClose>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.tueClose), input_name="tueClose" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.wedOpen is not None: + namespaceprefix_ = ( + self.wedOpen_nsprefix_ + ":" + if (UseCapturedNS_ and self.wedOpen_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%swedOpen>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.wedOpen), input_name="wedOpen" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.wedClose is not None: + namespaceprefix_ = ( + self.wedClose_nsprefix_ + ":" + if (UseCapturedNS_ and self.wedClose_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%swedClose>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.wedClose), input_name="wedClose" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.thuOpen is not None: + namespaceprefix_ = ( + self.thuOpen_nsprefix_ + ":" + if (UseCapturedNS_ and self.thuOpen_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sthuOpen>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.thuOpen), input_name="thuOpen" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.thuClose is not None: + namespaceprefix_ = ( + self.thuClose_nsprefix_ + ":" + if (UseCapturedNS_ and self.thuClose_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sthuClose>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.thuClose), input_name="thuClose" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.friOpen is not None: + namespaceprefix_ = ( + self.friOpen_nsprefix_ + ":" + if (UseCapturedNS_ and self.friOpen_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sfriOpen>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.friOpen), input_name="friOpen" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.friClose is not None: + namespaceprefix_ = ( + self.friClose_nsprefix_ + ":" + if (UseCapturedNS_ and self.friClose_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sfriClose>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.friClose), input_name="friClose" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.satOpen is not None: + namespaceprefix_ = ( + self.satOpen_nsprefix_ + ":" + if (UseCapturedNS_ and self.satOpen_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%ssatOpen>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.satOpen), input_name="satOpen" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.satClose is not None: + namespaceprefix_ = ( + self.satClose_nsprefix_ + ":" + if (UseCapturedNS_ and self.satClose_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%ssatClose>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.satClose), input_name="satClose" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.sunOpen is not None: + namespaceprefix_ = ( + self.sunOpen_nsprefix_ + ":" + if (UseCapturedNS_ and self.sunOpen_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%ssunOpen>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.sunOpen), input_name="sunOpen" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.sunClose is not None: + namespaceprefix_ = ( + self.sunClose_nsprefix_ + ":" + if (UseCapturedNS_ and self.sunClose_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%ssunClose>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.sunClose), input_name="sunClose" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.workInHoliday is not None: + namespaceprefix_ = ( + self.workInHoliday_nsprefix_ + ":" + if (UseCapturedNS_ and self.workInHoliday_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sworkInHoliday>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.workInHoliday, input_name="workInHoliday" + ), + namespaceprefix_, + eol_, + ) + ) + if self.name is not None: + namespaceprefix_ = ( + self.name_nsprefix_ + ":" + if (UseCapturedNS_ and self.name_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sname>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string(quote_xml(self.name), input_name="name") + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "type": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "type") + value_ = self.gds_validate_string(value_, node, "type") + self.type_ = value_ + self.type_nsprefix_ = child_.prefix + elif nodeName_ == "address": + obj_ = SearchAddress.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.address = obj_ + obj_.original_tagname_ = "address" + elif nodeName_ == "description": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "description") + value_ = self.gds_validate_string(value_, node, "description") + self.description = value_ + self.description_nsprefix_ = child_.prefix + elif nodeName_ == "longitude": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "longitude") + value_ = self.gds_validate_string(value_, node, "longitude") + self.longitude = value_ + self.longitude_nsprefix_ = child_.prefix + elif nodeName_ == "latitude": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "latitude") + value_ = self.gds_validate_string(value_, node, "latitude") + self.latitude = value_ + self.latitude_nsprefix_ = child_.prefix + elif nodeName_ == "sap": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "sap") + value_ = self.gds_validate_string(value_, node, "sap") + self.sap = value_ + self.sap_nsprefix_ = child_.prefix + elif nodeName_ == "monOpen": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "monOpen") + value_ = self.gds_validate_string(value_, node, "monOpen") + self.monOpen = value_ + self.monOpen_nsprefix_ = child_.prefix + elif nodeName_ == "monClose": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "monClose") + value_ = self.gds_validate_string(value_, node, "monClose") + self.monClose = value_ + self.monClose_nsprefix_ = child_.prefix + elif nodeName_ == "tueOpen": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "tueOpen") + value_ = self.gds_validate_string(value_, node, "tueOpen") + self.tueOpen = value_ + self.tueOpen_nsprefix_ = child_.prefix + elif nodeName_ == "tueClose": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "tueClose") + value_ = self.gds_validate_string(value_, node, "tueClose") + self.tueClose = value_ + self.tueClose_nsprefix_ = child_.prefix + elif nodeName_ == "wedOpen": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "wedOpen") + value_ = self.gds_validate_string(value_, node, "wedOpen") + self.wedOpen = value_ + self.wedOpen_nsprefix_ = child_.prefix + elif nodeName_ == "wedClose": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "wedClose") + value_ = self.gds_validate_string(value_, node, "wedClose") + self.wedClose = value_ + self.wedClose_nsprefix_ = child_.prefix + elif nodeName_ == "thuOpen": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "thuOpen") + value_ = self.gds_validate_string(value_, node, "thuOpen") + self.thuOpen = value_ + self.thuOpen_nsprefix_ = child_.prefix + elif nodeName_ == "thuClose": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "thuClose") + value_ = self.gds_validate_string(value_, node, "thuClose") + self.thuClose = value_ + self.thuClose_nsprefix_ = child_.prefix + elif nodeName_ == "friOpen": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "friOpen") + value_ = self.gds_validate_string(value_, node, "friOpen") + self.friOpen = value_ + self.friOpen_nsprefix_ = child_.prefix + elif nodeName_ == "friClose": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "friClose") + value_ = self.gds_validate_string(value_, node, "friClose") + self.friClose = value_ + self.friClose_nsprefix_ = child_.prefix + elif nodeName_ == "satOpen": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "satOpen") + value_ = self.gds_validate_string(value_, node, "satOpen") + self.satOpen = value_ + self.satOpen_nsprefix_ = child_.prefix + elif nodeName_ == "satClose": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "satClose") + value_ = self.gds_validate_string(value_, node, "satClose") + self.satClose = value_ + self.satClose_nsprefix_ = child_.prefix + elif nodeName_ == "sunOpen": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "sunOpen") + value_ = self.gds_validate_string(value_, node, "sunOpen") + self.sunOpen = value_ + self.sunOpen_nsprefix_ = child_.prefix + elif nodeName_ == "sunClose": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "sunClose") + value_ = self.gds_validate_string(value_, node, "sunClose") + self.sunClose = value_ + self.sunClose_nsprefix_ = child_.prefix + elif nodeName_ == "workInHoliday": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "workInHoliday") + ival_ = self.gds_validate_boolean(ival_, node, "workInHoliday") + self.workInHoliday = ival_ + self.workInHoliday_nsprefix_ = child_.prefix + elif nodeName_ == "name": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "name") + value_ = self.gds_validate_string(value_, node, "name") + self.name = value_ + self.name_nsprefix_ = child_.prefix + + +# end class Point + + +class ArrayOfPoint(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, item=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + if item is None: + self.item = [] + else: + self.item = item + self.item_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, ArrayOfPoint) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ArrayOfPoint.subclass: + return ArrayOfPoint.subclass(*args_, **kwargs_) + else: + return ArrayOfPoint(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_item(self): + return self.item + + def set_item(self, item): + self.item = item + + def add_item(self, value): + self.item.append(value) + + def insert_item_at(self, index, value): + self.item.insert(index, value) + + def replace_item_at(self, index, value): + self.item[index] = value + + def _hasContent(self): + if self.item: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfPoint", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ArrayOfPoint") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ArrayOfPoint": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="ArrayOfPoint" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ArrayOfPoint", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ArrayOfPoint", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfPoint", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + for item_ in self.item: + namespaceprefix_ = ( + self.item_nsprefix_ + ":" + if (UseCapturedNS_ and self.item_nsprefix_) + else "" + ) + item_.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="item", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "item": + obj_ = Point.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.item.append(obj_) + obj_.original_tagname_ = "item" + + +# end class ArrayOfPoint + + +class GetNearestServicepointsResponse(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, points=None, count=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.points = points + self.points_nsprefix_ = "tns" + self.count = count + self.count_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, GetNearestServicepointsResponse + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if GetNearestServicepointsResponse.subclass: + return GetNearestServicepointsResponse.subclass(*args_, **kwargs_) + else: + return GetNearestServicepointsResponse(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_points(self): + return self.points + + def set_points(self, points): + self.points = points + + def get_count(self): + return self.count + + def set_count(self, count): + self.count = count + + def _hasContent(self): + if self.points is not None or self.count is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="GetNearestServicepointsResponse", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get( + "GetNearestServicepointsResponse" + ) + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if ( + self.original_tagname_ is not None + and name_ == "GetNearestServicepointsResponse" + ): + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="GetNearestServicepointsResponse", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="GetNearestServicepointsResponse", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="GetNearestServicepointsResponse", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="GetNearestServicepointsResponse", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.points is not None: + namespaceprefix_ = ( + self.points_nsprefix_ + ":" + if (UseCapturedNS_ and self.points_nsprefix_) + else "" + ) + self.points.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="points", + pretty_print=pretty_print, + ) + if self.count is not None: + namespaceprefix_ = ( + self.count_nsprefix_ + ":" + if (UseCapturedNS_ and self.count_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scount>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.count, input_name="count"), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "points": + obj_ = ArrayOfPoint.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.points = obj_ + obj_.original_tagname_ = "points" + elif nodeName_ == "count" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "count") + ival_ = self.gds_validate_integer(ival_, node, "count") + self.count = ival_ + self.count_nsprefix_ = child_.prefix + + +# end class GetNearestServicepointsResponse + + +class getNearestServicepointsResponse(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, getNearestServicepointsResult=None, gds_collector_=None, **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.getNearestServicepointsResult = getNearestServicepointsResult + self.getNearestServicepointsResult_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, getNearestServicepointsResponse + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if getNearestServicepointsResponse.subclass: + return getNearestServicepointsResponse.subclass(*args_, **kwargs_) + else: + return getNearestServicepointsResponse(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_getNearestServicepointsResult(self): + return self.getNearestServicepointsResult + + def set_getNearestServicepointsResult(self, getNearestServicepointsResult): + self.getNearestServicepointsResult = getNearestServicepointsResult + + def _hasContent(self): + if self.getNearestServicepointsResult is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getNearestServicepointsResponse", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get( + "getNearestServicepointsResponse" + ) + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if ( + self.original_tagname_ is not None + and name_ == "getNearestServicepointsResponse" + ): + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="getNearestServicepointsResponse", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="getNearestServicepointsResponse", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="getNearestServicepointsResponse", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getNearestServicepointsResponse", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.getNearestServicepointsResult is not None: + namespaceprefix_ = ( + self.getNearestServicepointsResult_nsprefix_ + ":" + if (UseCapturedNS_ and self.getNearestServicepointsResult_nsprefix_) + else "" + ) + self.getNearestServicepointsResult.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="getNearestServicepointsResult", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "getNearestServicepointsResult": + obj_ = GetNearestServicepointsResponse.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.getNearestServicepointsResult = obj_ + obj_.original_tagname_ = "getNearestServicepointsResult" + + +# end class getNearestServicepointsResponse + + +class getInternationalParams(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, authData=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.authData = authData + self.authData_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, getInternationalParams + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if getInternationalParams.subclass: + return getInternationalParams.subclass(*args_, **kwargs_) + else: + return getInternationalParams(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_authData(self): + return self.authData + + def set_authData(self, authData): + self.authData = authData + + def _hasContent(self): + if self.authData is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getInternationalParams", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("getInternationalParams") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "getInternationalParams": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="getInternationalParams", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="getInternationalParams", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="getInternationalParams", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getInternationalParams", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.authData is not None: + namespaceprefix_ = ( + self.authData_nsprefix_ + ":" + if (UseCapturedNS_ and self.authData_nsprefix_) + else "" + ) + self.authData.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="authData", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "authData": + obj_ = AuthData.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.authData = obj_ + obj_.original_tagname_ = "authData" + + +# end class getInternationalParams + + +class InternationalParam(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + countryName=None, + countryNameEn=None, + countryCode=None, + product=None, + pieceHeader=None, + routing=None, + code2l=None, + pickupDays=None, + courierMaxWeight=None, + courierMaxWidth=None, + courierMaxHeight=None, + courierMaxLength=None, + courierMaxCod=None, + courierCodCurrency=None, + courierExchrate=None, + courierNstAvailable=None, + courierMaxNst=None, + courierMaxGirth=None, + packstationAvailable=None, + packstationMaxWeight=None, + packstationMaxWidth=None, + packstationMaxHeight=None, + packstationMaxLength=None, + postfilialeAvailable=None, + postfilialeMaxWeight=None, + postfilialeMaxWidth=None, + postfilialeMaxHeight=None, + postfilialeMaxLength=None, + zipFormat=None, + identifier=None, + emailRequired=None, + active=None, + dutyProduct=None, + dutyPickupDays=None, + dutyPieceHeader=None, + dutyMaxWeight=None, + dutyMaxWidth=None, + dutyMaxHeight=None, + dutyMaxLength=None, + dutyNstAvailable=None, + dutyMaxNst=None, + dutyMaxGirth=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.countryName = countryName + self.countryName_nsprefix_ = None + self.countryNameEn = countryNameEn + self.countryNameEn_nsprefix_ = None + self.countryCode = countryCode + self.countryCode_nsprefix_ = None + self.product = product + self.product_nsprefix_ = None + self.pieceHeader = pieceHeader + self.pieceHeader_nsprefix_ = None + self.routing = routing + self.routing_nsprefix_ = None + self.code2l = code2l + self.code2l_nsprefix_ = None + self.pickupDays = pickupDays + self.pickupDays_nsprefix_ = None + self.courierMaxWeight = courierMaxWeight + self.courierMaxWeight_nsprefix_ = None + self.courierMaxWidth = courierMaxWidth + self.courierMaxWidth_nsprefix_ = None + self.courierMaxHeight = courierMaxHeight + self.courierMaxHeight_nsprefix_ = None + self.courierMaxLength = courierMaxLength + self.courierMaxLength_nsprefix_ = None + self.courierMaxCod = courierMaxCod + self.courierMaxCod_nsprefix_ = None + self.courierCodCurrency = courierCodCurrency + self.courierCodCurrency_nsprefix_ = None + self.courierExchrate = courierExchrate + self.courierExchrate_nsprefix_ = None + self.courierNstAvailable = courierNstAvailable + self.courierNstAvailable_nsprefix_ = None + self.courierMaxNst = courierMaxNst + self.courierMaxNst_nsprefix_ = None + self.courierMaxGirth = courierMaxGirth + self.courierMaxGirth_nsprefix_ = None + self.packstationAvailable = packstationAvailable + self.packstationAvailable_nsprefix_ = None + self.packstationMaxWeight = packstationMaxWeight + self.packstationMaxWeight_nsprefix_ = None + self.packstationMaxWidth = packstationMaxWidth + self.packstationMaxWidth_nsprefix_ = None + self.packstationMaxHeight = packstationMaxHeight + self.packstationMaxHeight_nsprefix_ = None + self.packstationMaxLength = packstationMaxLength + self.packstationMaxLength_nsprefix_ = None + self.postfilialeAvailable = postfilialeAvailable + self.postfilialeAvailable_nsprefix_ = None + self.postfilialeMaxWeight = postfilialeMaxWeight + self.postfilialeMaxWeight_nsprefix_ = None + self.postfilialeMaxWidth = postfilialeMaxWidth + self.postfilialeMaxWidth_nsprefix_ = None + self.postfilialeMaxHeight = postfilialeMaxHeight + self.postfilialeMaxHeight_nsprefix_ = None + self.postfilialeMaxLength = postfilialeMaxLength + self.postfilialeMaxLength_nsprefix_ = None + self.zipFormat = zipFormat + self.zipFormat_nsprefix_ = None + self.identifier = identifier + self.identifier_nsprefix_ = None + self.emailRequired = emailRequired + self.emailRequired_nsprefix_ = None + self.active = active + self.active_nsprefix_ = None + self.dutyProduct = dutyProduct + self.dutyProduct_nsprefix_ = None + self.dutyPickupDays = dutyPickupDays + self.dutyPickupDays_nsprefix_ = None + self.dutyPieceHeader = dutyPieceHeader + self.dutyPieceHeader_nsprefix_ = None + self.dutyMaxWeight = dutyMaxWeight + self.dutyMaxWeight_nsprefix_ = None + self.dutyMaxWidth = dutyMaxWidth + self.dutyMaxWidth_nsprefix_ = None + self.dutyMaxHeight = dutyMaxHeight + self.dutyMaxHeight_nsprefix_ = None + self.dutyMaxLength = dutyMaxLength + self.dutyMaxLength_nsprefix_ = None + self.dutyNstAvailable = dutyNstAvailable + self.dutyNstAvailable_nsprefix_ = None + self.dutyMaxNst = dutyMaxNst + self.dutyMaxNst_nsprefix_ = None + self.dutyMaxGirth = dutyMaxGirth + self.dutyMaxGirth_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, InternationalParam + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if InternationalParam.subclass: + return InternationalParam.subclass(*args_, **kwargs_) + else: + return InternationalParam(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_countryName(self): + return self.countryName + + def set_countryName(self, countryName): + self.countryName = countryName + + def get_countryNameEn(self): + return self.countryNameEn + + def set_countryNameEn(self, countryNameEn): + self.countryNameEn = countryNameEn + + def get_countryCode(self): + return self.countryCode + + def set_countryCode(self, countryCode): + self.countryCode = countryCode + + def get_product(self): + return self.product + + def set_product(self, product): + self.product = product + + def get_pieceHeader(self): + return self.pieceHeader + + def set_pieceHeader(self, pieceHeader): + self.pieceHeader = pieceHeader + + def get_routing(self): + return self.routing + + def set_routing(self, routing): + self.routing = routing + + def get_code2l(self): + return self.code2l + + def set_code2l(self, code2l): + self.code2l = code2l + + def get_pickupDays(self): + return self.pickupDays + + def set_pickupDays(self, pickupDays): + self.pickupDays = pickupDays + + def get_courierMaxWeight(self): + return self.courierMaxWeight + + def set_courierMaxWeight(self, courierMaxWeight): + self.courierMaxWeight = courierMaxWeight + + def get_courierMaxWidth(self): + return self.courierMaxWidth + + def set_courierMaxWidth(self, courierMaxWidth): + self.courierMaxWidth = courierMaxWidth + + def get_courierMaxHeight(self): + return self.courierMaxHeight + + def set_courierMaxHeight(self, courierMaxHeight): + self.courierMaxHeight = courierMaxHeight + + def get_courierMaxLength(self): + return self.courierMaxLength + + def set_courierMaxLength(self, courierMaxLength): + self.courierMaxLength = courierMaxLength + + def get_courierMaxCod(self): + return self.courierMaxCod + + def set_courierMaxCod(self, courierMaxCod): + self.courierMaxCod = courierMaxCod + + def get_courierCodCurrency(self): + return self.courierCodCurrency + + def set_courierCodCurrency(self, courierCodCurrency): + self.courierCodCurrency = courierCodCurrency + + def get_courierExchrate(self): + return self.courierExchrate + + def set_courierExchrate(self, courierExchrate): + self.courierExchrate = courierExchrate + + def get_courierNstAvailable(self): + return self.courierNstAvailable + + def set_courierNstAvailable(self, courierNstAvailable): + self.courierNstAvailable = courierNstAvailable + + def get_courierMaxNst(self): + return self.courierMaxNst + + def set_courierMaxNst(self, courierMaxNst): + self.courierMaxNst = courierMaxNst + + def get_courierMaxGirth(self): + return self.courierMaxGirth + + def set_courierMaxGirth(self, courierMaxGirth): + self.courierMaxGirth = courierMaxGirth + + def get_packstationAvailable(self): + return self.packstationAvailable + + def set_packstationAvailable(self, packstationAvailable): + self.packstationAvailable = packstationAvailable + + def get_packstationMaxWeight(self): + return self.packstationMaxWeight + + def set_packstationMaxWeight(self, packstationMaxWeight): + self.packstationMaxWeight = packstationMaxWeight + + def get_packstationMaxWidth(self): + return self.packstationMaxWidth + + def set_packstationMaxWidth(self, packstationMaxWidth): + self.packstationMaxWidth = packstationMaxWidth + + def get_packstationMaxHeight(self): + return self.packstationMaxHeight + + def set_packstationMaxHeight(self, packstationMaxHeight): + self.packstationMaxHeight = packstationMaxHeight + + def get_packstationMaxLength(self): + return self.packstationMaxLength + + def set_packstationMaxLength(self, packstationMaxLength): + self.packstationMaxLength = packstationMaxLength + + def get_postfilialeAvailable(self): + return self.postfilialeAvailable + + def set_postfilialeAvailable(self, postfilialeAvailable): + self.postfilialeAvailable = postfilialeAvailable + + def get_postfilialeMaxWeight(self): + return self.postfilialeMaxWeight + + def set_postfilialeMaxWeight(self, postfilialeMaxWeight): + self.postfilialeMaxWeight = postfilialeMaxWeight + + def get_postfilialeMaxWidth(self): + return self.postfilialeMaxWidth + + def set_postfilialeMaxWidth(self, postfilialeMaxWidth): + self.postfilialeMaxWidth = postfilialeMaxWidth + + def get_postfilialeMaxHeight(self): + return self.postfilialeMaxHeight + + def set_postfilialeMaxHeight(self, postfilialeMaxHeight): + self.postfilialeMaxHeight = postfilialeMaxHeight + + def get_postfilialeMaxLength(self): + return self.postfilialeMaxLength + + def set_postfilialeMaxLength(self, postfilialeMaxLength): + self.postfilialeMaxLength = postfilialeMaxLength + + def get_zipFormat(self): + return self.zipFormat + + def set_zipFormat(self, zipFormat): + self.zipFormat = zipFormat + + def get_identifier(self): + return self.identifier + + def set_identifier(self, identifier): + self.identifier = identifier + + def get_emailRequired(self): + return self.emailRequired + + def set_emailRequired(self, emailRequired): + self.emailRequired = emailRequired + + def get_active(self): + return self.active + + def set_active(self, active): + self.active = active + + def get_dutyProduct(self): + return self.dutyProduct + + def set_dutyProduct(self, dutyProduct): + self.dutyProduct = dutyProduct + + def get_dutyPickupDays(self): + return self.dutyPickupDays + + def set_dutyPickupDays(self, dutyPickupDays): + self.dutyPickupDays = dutyPickupDays + + def get_dutyPieceHeader(self): + return self.dutyPieceHeader + + def set_dutyPieceHeader(self, dutyPieceHeader): + self.dutyPieceHeader = dutyPieceHeader + + def get_dutyMaxWeight(self): + return self.dutyMaxWeight + + def set_dutyMaxWeight(self, dutyMaxWeight): + self.dutyMaxWeight = dutyMaxWeight + + def get_dutyMaxWidth(self): + return self.dutyMaxWidth + + def set_dutyMaxWidth(self, dutyMaxWidth): + self.dutyMaxWidth = dutyMaxWidth + + def get_dutyMaxHeight(self): + return self.dutyMaxHeight + + def set_dutyMaxHeight(self, dutyMaxHeight): + self.dutyMaxHeight = dutyMaxHeight + + def get_dutyMaxLength(self): + return self.dutyMaxLength + + def set_dutyMaxLength(self, dutyMaxLength): + self.dutyMaxLength = dutyMaxLength + + def get_dutyNstAvailable(self): + return self.dutyNstAvailable + + def set_dutyNstAvailable(self, dutyNstAvailable): + self.dutyNstAvailable = dutyNstAvailable + + def get_dutyMaxNst(self): + return self.dutyMaxNst + + def set_dutyMaxNst(self, dutyMaxNst): + self.dutyMaxNst = dutyMaxNst + + def get_dutyMaxGirth(self): + return self.dutyMaxGirth + + def set_dutyMaxGirth(self, dutyMaxGirth): + self.dutyMaxGirth = dutyMaxGirth + + def _hasContent(self): + if ( + self.countryName is not None + or self.countryNameEn is not None + or self.countryCode is not None + or self.product is not None + or self.pieceHeader is not None + or self.routing is not None + or self.code2l is not None + or self.pickupDays is not None + or self.courierMaxWeight is not None + or self.courierMaxWidth is not None + or self.courierMaxHeight is not None + or self.courierMaxLength is not None + or self.courierMaxCod is not None + or self.courierCodCurrency is not None + or self.courierExchrate is not None + or self.courierNstAvailable is not None + or self.courierMaxNst is not None + or self.courierMaxGirth is not None + or self.packstationAvailable is not None + or self.packstationMaxWeight is not None + or self.packstationMaxWidth is not None + or self.packstationMaxHeight is not None + or self.packstationMaxLength is not None + or self.postfilialeAvailable is not None + or self.postfilialeMaxWeight is not None + or self.postfilialeMaxWidth is not None + or self.postfilialeMaxHeight is not None + or self.postfilialeMaxLength is not None + or self.zipFormat is not None + or self.identifier is not None + or self.emailRequired is not None + or self.active is not None + or self.dutyProduct is not None + or self.dutyPickupDays is not None + or self.dutyPieceHeader is not None + or self.dutyMaxWeight is not None + or self.dutyMaxWidth is not None + or self.dutyMaxHeight is not None + or self.dutyMaxLength is not None + or self.dutyNstAvailable is not None + or self.dutyMaxNst is not None + or self.dutyMaxGirth is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="InternationalParam", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("InternationalParam") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "InternationalParam": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="InternationalParam", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="InternationalParam", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="InternationalParam", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="InternationalParam", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.countryName is not None: + namespaceprefix_ = ( + self.countryName_nsprefix_ + ":" + if (UseCapturedNS_ and self.countryName_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scountryName>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.countryName), input_name="countryName" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.countryNameEn is not None: + namespaceprefix_ = ( + self.countryNameEn_nsprefix_ + ":" + if (UseCapturedNS_ and self.countryNameEn_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scountryNameEn>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.countryNameEn), input_name="countryNameEn" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.countryCode is not None: + namespaceprefix_ = ( + self.countryCode_nsprefix_ + ":" + if (UseCapturedNS_ and self.countryCode_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scountryCode>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.countryCode), input_name="countryCode" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.product is not None: + namespaceprefix_ = ( + self.product_nsprefix_ + ":" + if (UseCapturedNS_ and self.product_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sproduct>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.product), input_name="product" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.pieceHeader is not None: + namespaceprefix_ = ( + self.pieceHeader_nsprefix_ + ":" + if (UseCapturedNS_ and self.pieceHeader_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spieceHeader>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.pieceHeader), input_name="pieceHeader" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.routing is not None: + namespaceprefix_ = ( + self.routing_nsprefix_ + ":" + if (UseCapturedNS_ and self.routing_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%srouting>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.routing), input_name="routing" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.code2l is not None: + namespaceprefix_ = ( + self.code2l_nsprefix_ + ":" + if (UseCapturedNS_ and self.code2l_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scode2l>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.code2l), input_name="code2l" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.pickupDays is not None: + namespaceprefix_ = ( + self.pickupDays_nsprefix_ + ":" + if (UseCapturedNS_ and self.pickupDays_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spickupDays>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.pickupDays, input_name="pickupDays"), + namespaceprefix_, + eol_, + ) + ) + if self.courierMaxWeight is not None: + namespaceprefix_ = ( + self.courierMaxWeight_nsprefix_ + ":" + if (UseCapturedNS_ and self.courierMaxWeight_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scourierMaxWeight>%s%s" + % ( + namespaceprefix_, + self.gds_format_float( + self.courierMaxWeight, input_name="courierMaxWeight" + ), + namespaceprefix_, + eol_, + ) + ) + if self.courierMaxWidth is not None: + namespaceprefix_ = ( + self.courierMaxWidth_nsprefix_ + ":" + if (UseCapturedNS_ and self.courierMaxWidth_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scourierMaxWidth>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer( + self.courierMaxWidth, input_name="courierMaxWidth" + ), + namespaceprefix_, + eol_, + ) + ) + if self.courierMaxHeight is not None: + namespaceprefix_ = ( + self.courierMaxHeight_nsprefix_ + ":" + if (UseCapturedNS_ and self.courierMaxHeight_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scourierMaxHeight>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer( + self.courierMaxHeight, input_name="courierMaxHeight" + ), + namespaceprefix_, + eol_, + ) + ) + if self.courierMaxLength is not None: + namespaceprefix_ = ( + self.courierMaxLength_nsprefix_ + ":" + if (UseCapturedNS_ and self.courierMaxLength_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scourierMaxLength>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer( + self.courierMaxLength, input_name="courierMaxLength" + ), + namespaceprefix_, + eol_, + ) + ) + if self.courierMaxCod is not None: + namespaceprefix_ = ( + self.courierMaxCod_nsprefix_ + ":" + if (UseCapturedNS_ and self.courierMaxCod_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scourierMaxCod>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer( + self.courierMaxCod, input_name="courierMaxCod" + ), + namespaceprefix_, + eol_, + ) + ) + if self.courierCodCurrency is not None: + namespaceprefix_ = ( + self.courierCodCurrency_nsprefix_ + ":" + if (UseCapturedNS_ and self.courierCodCurrency_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scourierCodCurrency>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.courierCodCurrency), + input_name="courierCodCurrency", + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.courierExchrate is not None: + namespaceprefix_ = ( + self.courierExchrate_nsprefix_ + ":" + if (UseCapturedNS_ and self.courierExchrate_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scourierExchrate>%s%s" + % ( + namespaceprefix_, + self.gds_format_float( + self.courierExchrate, input_name="courierExchrate" + ), + namespaceprefix_, + eol_, + ) + ) + if self.courierNstAvailable is not None: + namespaceprefix_ = ( + self.courierNstAvailable_nsprefix_ + ":" + if (UseCapturedNS_ and self.courierNstAvailable_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scourierNstAvailable>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.courierNstAvailable, input_name="courierNstAvailable" + ), + namespaceprefix_, + eol_, + ) + ) + if self.courierMaxNst is not None: + namespaceprefix_ = ( + self.courierMaxNst_nsprefix_ + ":" + if (UseCapturedNS_ and self.courierMaxNst_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scourierMaxNst>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer( + self.courierMaxNst, input_name="courierMaxNst" + ), + namespaceprefix_, + eol_, + ) + ) + if self.courierMaxGirth is not None: + namespaceprefix_ = ( + self.courierMaxGirth_nsprefix_ + ":" + if (UseCapturedNS_ and self.courierMaxGirth_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scourierMaxGirth>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer( + self.courierMaxGirth, input_name="courierMaxGirth" + ), + namespaceprefix_, + eol_, + ) + ) + if self.packstationAvailable is not None: + namespaceprefix_ = ( + self.packstationAvailable_nsprefix_ + ":" + if (UseCapturedNS_ and self.packstationAvailable_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spackstationAvailable>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.packstationAvailable, input_name="packstationAvailable" + ), + namespaceprefix_, + eol_, + ) + ) + if self.packstationMaxWeight is not None: + namespaceprefix_ = ( + self.packstationMaxWeight_nsprefix_ + ":" + if (UseCapturedNS_ and self.packstationMaxWeight_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spackstationMaxWeight>%s%s" + % ( + namespaceprefix_, + self.gds_format_float( + self.packstationMaxWeight, input_name="packstationMaxWeight" + ), + namespaceprefix_, + eol_, + ) + ) + if self.packstationMaxWidth is not None: + namespaceprefix_ = ( + self.packstationMaxWidth_nsprefix_ + ":" + if (UseCapturedNS_ and self.packstationMaxWidth_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spackstationMaxWidth>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer( + self.packstationMaxWidth, input_name="packstationMaxWidth" + ), + namespaceprefix_, + eol_, + ) + ) + if self.packstationMaxHeight is not None: + namespaceprefix_ = ( + self.packstationMaxHeight_nsprefix_ + ":" + if (UseCapturedNS_ and self.packstationMaxHeight_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spackstationMaxHeight>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer( + self.packstationMaxHeight, input_name="packstationMaxHeight" + ), + namespaceprefix_, + eol_, + ) + ) + if self.packstationMaxLength is not None: + namespaceprefix_ = ( + self.packstationMaxLength_nsprefix_ + ":" + if (UseCapturedNS_ and self.packstationMaxLength_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spackstationMaxLength>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer( + self.packstationMaxLength, input_name="packstationMaxLength" + ), + namespaceprefix_, + eol_, + ) + ) + if self.postfilialeAvailable is not None: + namespaceprefix_ = ( + self.postfilialeAvailable_nsprefix_ + ":" + if (UseCapturedNS_ and self.postfilialeAvailable_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spostfilialeAvailable>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.postfilialeAvailable, input_name="postfilialeAvailable" + ), + namespaceprefix_, + eol_, + ) + ) + if self.postfilialeMaxWeight is not None: + namespaceprefix_ = ( + self.postfilialeMaxWeight_nsprefix_ + ":" + if (UseCapturedNS_ and self.postfilialeMaxWeight_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spostfilialeMaxWeight>%s%s" + % ( + namespaceprefix_, + self.gds_format_float( + self.postfilialeMaxWeight, input_name="postfilialeMaxWeight" + ), + namespaceprefix_, + eol_, + ) + ) + if self.postfilialeMaxWidth is not None: + namespaceprefix_ = ( + self.postfilialeMaxWidth_nsprefix_ + ":" + if (UseCapturedNS_ and self.postfilialeMaxWidth_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spostfilialeMaxWidth>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer( + self.postfilialeMaxWidth, input_name="postfilialeMaxWidth" + ), + namespaceprefix_, + eol_, + ) + ) + if self.postfilialeMaxHeight is not None: + namespaceprefix_ = ( + self.postfilialeMaxHeight_nsprefix_ + ":" + if (UseCapturedNS_ and self.postfilialeMaxHeight_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spostfilialeMaxHeight>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer( + self.postfilialeMaxHeight, input_name="postfilialeMaxHeight" + ), + namespaceprefix_, + eol_, + ) + ) + if self.postfilialeMaxLength is not None: + namespaceprefix_ = ( + self.postfilialeMaxLength_nsprefix_ + ":" + if (UseCapturedNS_ and self.postfilialeMaxLength_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spostfilialeMaxLength>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer( + self.postfilialeMaxLength, input_name="postfilialeMaxLength" + ), + namespaceprefix_, + eol_, + ) + ) + if self.zipFormat is not None: + namespaceprefix_ = ( + self.zipFormat_nsprefix_ + ":" + if (UseCapturedNS_ and self.zipFormat_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%szipFormat>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.zipFormat), input_name="zipFormat" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.identifier is not None: + namespaceprefix_ = ( + self.identifier_nsprefix_ + ":" + if (UseCapturedNS_ and self.identifier_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sidentifier>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.identifier), input_name="identifier" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.emailRequired is not None: + namespaceprefix_ = ( + self.emailRequired_nsprefix_ + ":" + if (UseCapturedNS_ and self.emailRequired_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%semailRequired>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer( + self.emailRequired, input_name="emailRequired" + ), + namespaceprefix_, + eol_, + ) + ) + if self.active is not None: + namespaceprefix_ = ( + self.active_nsprefix_ + ":" + if (UseCapturedNS_ and self.active_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sactive>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.active), input_name="active" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.dutyProduct is not None: + namespaceprefix_ = ( + self.dutyProduct_nsprefix_ + ":" + if (UseCapturedNS_ and self.dutyProduct_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sdutyProduct>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.dutyProduct), input_name="dutyProduct" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.dutyPickupDays is not None: + namespaceprefix_ = ( + self.dutyPickupDays_nsprefix_ + ":" + if (UseCapturedNS_ and self.dutyPickupDays_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sdutyPickupDays>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer( + self.dutyPickupDays, input_name="dutyPickupDays" + ), + namespaceprefix_, + eol_, + ) + ) + if self.dutyPieceHeader is not None: + namespaceprefix_ = ( + self.dutyPieceHeader_nsprefix_ + ":" + if (UseCapturedNS_ and self.dutyPieceHeader_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sdutyPieceHeader>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.dutyPieceHeader), + input_name="dutyPieceHeader", + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.dutyMaxWeight is not None: + namespaceprefix_ = ( + self.dutyMaxWeight_nsprefix_ + ":" + if (UseCapturedNS_ and self.dutyMaxWeight_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sdutyMaxWeight>%s%s" + % ( + namespaceprefix_, + self.gds_format_float( + self.dutyMaxWeight, input_name="dutyMaxWeight" + ), + namespaceprefix_, + eol_, + ) + ) + if self.dutyMaxWidth is not None: + namespaceprefix_ = ( + self.dutyMaxWidth_nsprefix_ + ":" + if (UseCapturedNS_ and self.dutyMaxWidth_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sdutyMaxWidth>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer( + self.dutyMaxWidth, input_name="dutyMaxWidth" + ), + namespaceprefix_, + eol_, + ) + ) + if self.dutyMaxHeight is not None: + namespaceprefix_ = ( + self.dutyMaxHeight_nsprefix_ + ":" + if (UseCapturedNS_ and self.dutyMaxHeight_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sdutyMaxHeight>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer( + self.dutyMaxHeight, input_name="dutyMaxHeight" + ), + namespaceprefix_, + eol_, + ) + ) + if self.dutyMaxLength is not None: + namespaceprefix_ = ( + self.dutyMaxLength_nsprefix_ + ":" + if (UseCapturedNS_ and self.dutyMaxLength_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sdutyMaxLength>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer( + self.dutyMaxLength, input_name="dutyMaxLength" + ), + namespaceprefix_, + eol_, + ) + ) + if self.dutyNstAvailable is not None: + namespaceprefix_ = ( + self.dutyNstAvailable_nsprefix_ + ":" + if (UseCapturedNS_ and self.dutyNstAvailable_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sdutyNstAvailable>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.dutyNstAvailable, input_name="dutyNstAvailable" + ), + namespaceprefix_, + eol_, + ) + ) + if self.dutyMaxNst is not None: + namespaceprefix_ = ( + self.dutyMaxNst_nsprefix_ + ":" + if (UseCapturedNS_ and self.dutyMaxNst_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sdutyMaxNst>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.dutyMaxNst, input_name="dutyMaxNst"), + namespaceprefix_, + eol_, + ) + ) + if self.dutyMaxGirth is not None: + namespaceprefix_ = ( + self.dutyMaxGirth_nsprefix_ + ":" + if (UseCapturedNS_ and self.dutyMaxGirth_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sdutyMaxGirth>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer( + self.dutyMaxGirth, input_name="dutyMaxGirth" + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "countryName": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "countryName") + value_ = self.gds_validate_string(value_, node, "countryName") + self.countryName = value_ + self.countryName_nsprefix_ = child_.prefix + elif nodeName_ == "countryNameEn": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "countryNameEn") + value_ = self.gds_validate_string(value_, node, "countryNameEn") + self.countryNameEn = value_ + self.countryNameEn_nsprefix_ = child_.prefix + elif nodeName_ == "countryCode": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "countryCode") + value_ = self.gds_validate_string(value_, node, "countryCode") + self.countryCode = value_ + self.countryCode_nsprefix_ = child_.prefix + elif nodeName_ == "product": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "product") + value_ = self.gds_validate_string(value_, node, "product") + self.product = value_ + self.product_nsprefix_ = child_.prefix + elif nodeName_ == "pieceHeader": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "pieceHeader") + value_ = self.gds_validate_string(value_, node, "pieceHeader") + self.pieceHeader = value_ + self.pieceHeader_nsprefix_ = child_.prefix + elif nodeName_ == "routing": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "routing") + value_ = self.gds_validate_string(value_, node, "routing") + self.routing = value_ + self.routing_nsprefix_ = child_.prefix + elif nodeName_ == "code2l": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "code2l") + value_ = self.gds_validate_string(value_, node, "code2l") + self.code2l = value_ + self.code2l_nsprefix_ = child_.prefix + elif nodeName_ == "pickupDays" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "pickupDays") + ival_ = self.gds_validate_integer(ival_, node, "pickupDays") + self.pickupDays = ival_ + self.pickupDays_nsprefix_ = child_.prefix + elif nodeName_ == "courierMaxWeight" and child_.text: + sval_ = child_.text + fval_ = self.gds_parse_float(sval_, node, "courierMaxWeight") + fval_ = self.gds_validate_float(fval_, node, "courierMaxWeight") + self.courierMaxWeight = fval_ + self.courierMaxWeight_nsprefix_ = child_.prefix + elif nodeName_ == "courierMaxWidth" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "courierMaxWidth") + ival_ = self.gds_validate_integer(ival_, node, "courierMaxWidth") + self.courierMaxWidth = ival_ + self.courierMaxWidth_nsprefix_ = child_.prefix + elif nodeName_ == "courierMaxHeight" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "courierMaxHeight") + ival_ = self.gds_validate_integer(ival_, node, "courierMaxHeight") + self.courierMaxHeight = ival_ + self.courierMaxHeight_nsprefix_ = child_.prefix + elif nodeName_ == "courierMaxLength" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "courierMaxLength") + ival_ = self.gds_validate_integer(ival_, node, "courierMaxLength") + self.courierMaxLength = ival_ + self.courierMaxLength_nsprefix_ = child_.prefix + elif nodeName_ == "courierMaxCod" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "courierMaxCod") + ival_ = self.gds_validate_integer(ival_, node, "courierMaxCod") + self.courierMaxCod = ival_ + self.courierMaxCod_nsprefix_ = child_.prefix + elif nodeName_ == "courierCodCurrency": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "courierCodCurrency") + value_ = self.gds_validate_string(value_, node, "courierCodCurrency") + self.courierCodCurrency = value_ + self.courierCodCurrency_nsprefix_ = child_.prefix + elif nodeName_ == "courierExchrate" and child_.text: + sval_ = child_.text + fval_ = self.gds_parse_float(sval_, node, "courierExchrate") + fval_ = self.gds_validate_float(fval_, node, "courierExchrate") + self.courierExchrate = fval_ + self.courierExchrate_nsprefix_ = child_.prefix + elif nodeName_ == "courierNstAvailable": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "courierNstAvailable") + ival_ = self.gds_validate_boolean(ival_, node, "courierNstAvailable") + self.courierNstAvailable = ival_ + self.courierNstAvailable_nsprefix_ = child_.prefix + elif nodeName_ == "courierMaxNst" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "courierMaxNst") + ival_ = self.gds_validate_integer(ival_, node, "courierMaxNst") + self.courierMaxNst = ival_ + self.courierMaxNst_nsprefix_ = child_.prefix + elif nodeName_ == "courierMaxGirth" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "courierMaxGirth") + ival_ = self.gds_validate_integer(ival_, node, "courierMaxGirth") + self.courierMaxGirth = ival_ + self.courierMaxGirth_nsprefix_ = child_.prefix + elif nodeName_ == "packstationAvailable": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "packstationAvailable") + ival_ = self.gds_validate_boolean(ival_, node, "packstationAvailable") + self.packstationAvailable = ival_ + self.packstationAvailable_nsprefix_ = child_.prefix + elif nodeName_ == "packstationMaxWeight" and child_.text: + sval_ = child_.text + fval_ = self.gds_parse_float(sval_, node, "packstationMaxWeight") + fval_ = self.gds_validate_float(fval_, node, "packstationMaxWeight") + self.packstationMaxWeight = fval_ + self.packstationMaxWeight_nsprefix_ = child_.prefix + elif nodeName_ == "packstationMaxWidth" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "packstationMaxWidth") + ival_ = self.gds_validate_integer(ival_, node, "packstationMaxWidth") + self.packstationMaxWidth = ival_ + self.packstationMaxWidth_nsprefix_ = child_.prefix + elif nodeName_ == "packstationMaxHeight" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "packstationMaxHeight") + ival_ = self.gds_validate_integer(ival_, node, "packstationMaxHeight") + self.packstationMaxHeight = ival_ + self.packstationMaxHeight_nsprefix_ = child_.prefix + elif nodeName_ == "packstationMaxLength" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "packstationMaxLength") + ival_ = self.gds_validate_integer(ival_, node, "packstationMaxLength") + self.packstationMaxLength = ival_ + self.packstationMaxLength_nsprefix_ = child_.prefix + elif nodeName_ == "postfilialeAvailable": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "postfilialeAvailable") + ival_ = self.gds_validate_boolean(ival_, node, "postfilialeAvailable") + self.postfilialeAvailable = ival_ + self.postfilialeAvailable_nsprefix_ = child_.prefix + elif nodeName_ == "postfilialeMaxWeight" and child_.text: + sval_ = child_.text + fval_ = self.gds_parse_float(sval_, node, "postfilialeMaxWeight") + fval_ = self.gds_validate_float(fval_, node, "postfilialeMaxWeight") + self.postfilialeMaxWeight = fval_ + self.postfilialeMaxWeight_nsprefix_ = child_.prefix + elif nodeName_ == "postfilialeMaxWidth" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "postfilialeMaxWidth") + ival_ = self.gds_validate_integer(ival_, node, "postfilialeMaxWidth") + self.postfilialeMaxWidth = ival_ + self.postfilialeMaxWidth_nsprefix_ = child_.prefix + elif nodeName_ == "postfilialeMaxHeight" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "postfilialeMaxHeight") + ival_ = self.gds_validate_integer(ival_, node, "postfilialeMaxHeight") + self.postfilialeMaxHeight = ival_ + self.postfilialeMaxHeight_nsprefix_ = child_.prefix + elif nodeName_ == "postfilialeMaxLength" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "postfilialeMaxLength") + ival_ = self.gds_validate_integer(ival_, node, "postfilialeMaxLength") + self.postfilialeMaxLength = ival_ + self.postfilialeMaxLength_nsprefix_ = child_.prefix + elif nodeName_ == "zipFormat": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "zipFormat") + value_ = self.gds_validate_string(value_, node, "zipFormat") + self.zipFormat = value_ + self.zipFormat_nsprefix_ = child_.prefix + elif nodeName_ == "identifier": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "identifier") + value_ = self.gds_validate_string(value_, node, "identifier") + self.identifier = value_ + self.identifier_nsprefix_ = child_.prefix + elif nodeName_ == "emailRequired" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "emailRequired") + ival_ = self.gds_validate_integer(ival_, node, "emailRequired") + self.emailRequired = ival_ + self.emailRequired_nsprefix_ = child_.prefix + elif nodeName_ == "active": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "active") + value_ = self.gds_validate_string(value_, node, "active") + self.active = value_ + self.active_nsprefix_ = child_.prefix + elif nodeName_ == "dutyProduct": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "dutyProduct") + value_ = self.gds_validate_string(value_, node, "dutyProduct") + self.dutyProduct = value_ + self.dutyProduct_nsprefix_ = child_.prefix + elif nodeName_ == "dutyPickupDays" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "dutyPickupDays") + ival_ = self.gds_validate_integer(ival_, node, "dutyPickupDays") + self.dutyPickupDays = ival_ + self.dutyPickupDays_nsprefix_ = child_.prefix + elif nodeName_ == "dutyPieceHeader": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "dutyPieceHeader") + value_ = self.gds_validate_string(value_, node, "dutyPieceHeader") + self.dutyPieceHeader = value_ + self.dutyPieceHeader_nsprefix_ = child_.prefix + elif nodeName_ == "dutyMaxWeight" and child_.text: + sval_ = child_.text + fval_ = self.gds_parse_float(sval_, node, "dutyMaxWeight") + fval_ = self.gds_validate_float(fval_, node, "dutyMaxWeight") + self.dutyMaxWeight = fval_ + self.dutyMaxWeight_nsprefix_ = child_.prefix + elif nodeName_ == "dutyMaxWidth" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "dutyMaxWidth") + ival_ = self.gds_validate_integer(ival_, node, "dutyMaxWidth") + self.dutyMaxWidth = ival_ + self.dutyMaxWidth_nsprefix_ = child_.prefix + elif nodeName_ == "dutyMaxHeight" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "dutyMaxHeight") + ival_ = self.gds_validate_integer(ival_, node, "dutyMaxHeight") + self.dutyMaxHeight = ival_ + self.dutyMaxHeight_nsprefix_ = child_.prefix + elif nodeName_ == "dutyMaxLength" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "dutyMaxLength") + ival_ = self.gds_validate_integer(ival_, node, "dutyMaxLength") + self.dutyMaxLength = ival_ + self.dutyMaxLength_nsprefix_ = child_.prefix + elif nodeName_ == "dutyNstAvailable": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "dutyNstAvailable") + ival_ = self.gds_validate_boolean(ival_, node, "dutyNstAvailable") + self.dutyNstAvailable = ival_ + self.dutyNstAvailable_nsprefix_ = child_.prefix + elif nodeName_ == "dutyMaxNst" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "dutyMaxNst") + ival_ = self.gds_validate_integer(ival_, node, "dutyMaxNst") + self.dutyMaxNst = ival_ + self.dutyMaxNst_nsprefix_ = child_.prefix + elif nodeName_ == "dutyMaxGirth" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "dutyMaxGirth") + ival_ = self.gds_validate_integer(ival_, node, "dutyMaxGirth") + self.dutyMaxGirth = ival_ + self.dutyMaxGirth_nsprefix_ = child_.prefix + + +# end class InternationalParam + + +class ArrayOfInternationalparam(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, item=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + if item is None: + self.item = [] + else: + self.item = item + self.item_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, ArrayOfInternationalparam + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ArrayOfInternationalparam.subclass: + return ArrayOfInternationalparam.subclass(*args_, **kwargs_) + else: + return ArrayOfInternationalparam(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_item(self): + return self.item + + def set_item(self, item): + self.item = item + + def add_item(self, value): + self.item.append(value) + + def insert_item_at(self, index, value): + self.item.insert(index, value) + + def replace_item_at(self, index, value): + self.item[index] = value + + def _hasContent(self): + if self.item: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfInternationalparam", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ArrayOfInternationalparam") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ArrayOfInternationalparam": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="ArrayOfInternationalparam", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ArrayOfInternationalparam", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ArrayOfInternationalparam", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfInternationalparam", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + for item_ in self.item: + namespaceprefix_ = ( + self.item_nsprefix_ + ":" + if (UseCapturedNS_ and self.item_nsprefix_) + else "" + ) + item_.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="item", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "item": + obj_ = InternationalParam.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.item.append(obj_) + obj_.original_tagname_ = "item" + + +# end class ArrayOfInternationalparam + + +class GetInternationalParamsResponse(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, params=None, count=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.params = params + self.params_nsprefix_ = "tns" + self.count = count + self.count_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, GetInternationalParamsResponse + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if GetInternationalParamsResponse.subclass: + return GetInternationalParamsResponse.subclass(*args_, **kwargs_) + else: + return GetInternationalParamsResponse(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_params(self): + return self.params + + def set_params(self, params): + self.params = params + + def get_count(self): + return self.count + + def set_count(self, count): + self.count = count + + def _hasContent(self): + if self.params is not None or self.count is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="GetInternationalParamsResponse", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get( + "GetInternationalParamsResponse" + ) + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if ( + self.original_tagname_ is not None + and name_ == "GetInternationalParamsResponse" + ): + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="GetInternationalParamsResponse", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="GetInternationalParamsResponse", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="GetInternationalParamsResponse", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="GetInternationalParamsResponse", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.params is not None: + namespaceprefix_ = ( + self.params_nsprefix_ + ":" + if (UseCapturedNS_ and self.params_nsprefix_) + else "" + ) + self.params.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="params", + pretty_print=pretty_print, + ) + if self.count is not None: + namespaceprefix_ = ( + self.count_nsprefix_ + ":" + if (UseCapturedNS_ and self.count_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scount>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.count, input_name="count"), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "params": + obj_ = ArrayOfInternationalparam.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.params = obj_ + obj_.original_tagname_ = "params" + elif nodeName_ == "count" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "count") + ival_ = self.gds_validate_integer(ival_, node, "count") + self.count = ival_ + self.count_nsprefix_ = child_.prefix + + +# end class GetInternationalParamsResponse + + +class getInternationalParamsResponse(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, getInternationalParamsResult=None, gds_collector_=None, **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.getInternationalParamsResult = getInternationalParamsResult + self.getInternationalParamsResult_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, getInternationalParamsResponse + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if getInternationalParamsResponse.subclass: + return getInternationalParamsResponse.subclass(*args_, **kwargs_) + else: + return getInternationalParamsResponse(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_getInternationalParamsResult(self): + return self.getInternationalParamsResult + + def set_getInternationalParamsResult(self, getInternationalParamsResult): + self.getInternationalParamsResult = getInternationalParamsResult + + def _hasContent(self): + if self.getInternationalParamsResult is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getInternationalParamsResponse", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get( + "getInternationalParamsResponse" + ) + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if ( + self.original_tagname_ is not None + and name_ == "getInternationalParamsResponse" + ): + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="getInternationalParamsResponse", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="getInternationalParamsResponse", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="getInternationalParamsResponse", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getInternationalParamsResponse", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.getInternationalParamsResult is not None: + namespaceprefix_ = ( + self.getInternationalParamsResult_nsprefix_ + ":" + if (UseCapturedNS_ and self.getInternationalParamsResult_nsprefix_) + else "" + ) + self.getInternationalParamsResult.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="getInternationalParamsResult", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "getInternationalParamsResult": + obj_ = GetInternationalParamsResponse.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.getInternationalParamsResult = obj_ + obj_.original_tagname_ = "getInternationalParamsResult" + + +# end class getInternationalParamsResponse + + +class getReturnParams(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, authData=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.authData = authData + self.authData_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, getReturnParams) + if subclass is not None: + return subclass(*args_, **kwargs_) + if getReturnParams.subclass: + return getReturnParams.subclass(*args_, **kwargs_) + else: + return getReturnParams(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_authData(self): + return self.authData + + def set_authData(self, authData): + self.authData = authData + + def _hasContent(self): + if self.authData is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getReturnParams", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("getReturnParams") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "getReturnParams": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="getReturnParams" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="getReturnParams", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="getReturnParams", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getReturnParams", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.authData is not None: + namespaceprefix_ = ( + self.authData_nsprefix_ + ":" + if (UseCapturedNS_ and self.authData_nsprefix_) + else "" + ) + self.authData.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="authData", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "authData": + obj_ = AuthData.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.authData = obj_ + obj_.original_tagname_ = "authData" + + +# end class getReturnParams + + +class ReturnParam(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + countryCode=None, + product=None, + pieceHeader=None, + routing=None, + code2l=None, + courierAvailable=None, + courierMaxWeight=None, + courierMaxWidth=None, + courierMaxHeight=None, + courierMaxLength=None, + courierMaxCod=None, + courierNstAvailable=None, + maxNst=None, + maxGirth=None, + packstationAvailable=None, + packstationMaxWeight=None, + packstationMaxWidth=None, + packstationMaxHeight=None, + packstationNstAvailable=None, + packstationMaxLength=None, + postfilialeAvailable=None, + postfilialeMaxWeight=None, + postfilialeMaxWidth=None, + postfilialeMaxHeight=None, + postfilialeNstAvailable=None, + postfilialeMaxLength=None, + zipFormat=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.countryCode = countryCode + self.countryCode_nsprefix_ = None + self.product = product + self.product_nsprefix_ = None + self.pieceHeader = pieceHeader + self.pieceHeader_nsprefix_ = None + self.routing = routing + self.routing_nsprefix_ = None + self.code2l = code2l + self.code2l_nsprefix_ = None + self.courierAvailable = courierAvailable + self.courierAvailable_nsprefix_ = None + self.courierMaxWeight = courierMaxWeight + self.courierMaxWeight_nsprefix_ = None + self.courierMaxWidth = courierMaxWidth + self.courierMaxWidth_nsprefix_ = None + self.courierMaxHeight = courierMaxHeight + self.courierMaxHeight_nsprefix_ = None + self.courierMaxLength = courierMaxLength + self.courierMaxLength_nsprefix_ = None + self.courierMaxCod = courierMaxCod + self.courierMaxCod_nsprefix_ = None + self.courierNstAvailable = courierNstAvailable + self.courierNstAvailable_nsprefix_ = None + self.maxNst = maxNst + self.maxNst_nsprefix_ = None + self.maxGirth = maxGirth + self.maxGirth_nsprefix_ = None + self.packstationAvailable = packstationAvailable + self.packstationAvailable_nsprefix_ = None + self.packstationMaxWeight = packstationMaxWeight + self.packstationMaxWeight_nsprefix_ = None + self.packstationMaxWidth = packstationMaxWidth + self.packstationMaxWidth_nsprefix_ = None + self.packstationMaxHeight = packstationMaxHeight + self.packstationMaxHeight_nsprefix_ = None + self.packstationNstAvailable = packstationNstAvailable + self.packstationNstAvailable_nsprefix_ = None + self.packstationMaxLength = packstationMaxLength + self.packstationMaxLength_nsprefix_ = None + self.postfilialeAvailable = postfilialeAvailable + self.postfilialeAvailable_nsprefix_ = None + self.postfilialeMaxWeight = postfilialeMaxWeight + self.postfilialeMaxWeight_nsprefix_ = None + self.postfilialeMaxWidth = postfilialeMaxWidth + self.postfilialeMaxWidth_nsprefix_ = None + self.postfilialeMaxHeight = postfilialeMaxHeight + self.postfilialeMaxHeight_nsprefix_ = None + self.postfilialeNstAvailable = postfilialeNstAvailable + self.postfilialeNstAvailable_nsprefix_ = None + self.postfilialeMaxLength = postfilialeMaxLength + self.postfilialeMaxLength_nsprefix_ = None + self.zipFormat = zipFormat + self.zipFormat_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, ReturnParam) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ReturnParam.subclass: + return ReturnParam.subclass(*args_, **kwargs_) + else: + return ReturnParam(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_countryCode(self): + return self.countryCode + + def set_countryCode(self, countryCode): + self.countryCode = countryCode + + def get_product(self): + return self.product + + def set_product(self, product): + self.product = product + + def get_pieceHeader(self): + return self.pieceHeader + + def set_pieceHeader(self, pieceHeader): + self.pieceHeader = pieceHeader + + def get_routing(self): + return self.routing + + def set_routing(self, routing): + self.routing = routing + + def get_code2l(self): + return self.code2l + + def set_code2l(self, code2l): + self.code2l = code2l + + def get_courierAvailable(self): + return self.courierAvailable + + def set_courierAvailable(self, courierAvailable): + self.courierAvailable = courierAvailable + + def get_courierMaxWeight(self): + return self.courierMaxWeight + + def set_courierMaxWeight(self, courierMaxWeight): + self.courierMaxWeight = courierMaxWeight + + def get_courierMaxWidth(self): + return self.courierMaxWidth + + def set_courierMaxWidth(self, courierMaxWidth): + self.courierMaxWidth = courierMaxWidth + + def get_courierMaxHeight(self): + return self.courierMaxHeight + + def set_courierMaxHeight(self, courierMaxHeight): + self.courierMaxHeight = courierMaxHeight + + def get_courierMaxLength(self): + return self.courierMaxLength + + def set_courierMaxLength(self, courierMaxLength): + self.courierMaxLength = courierMaxLength + + def get_courierMaxCod(self): + return self.courierMaxCod + + def set_courierMaxCod(self, courierMaxCod): + self.courierMaxCod = courierMaxCod + + def get_courierNstAvailable(self): + return self.courierNstAvailable + + def set_courierNstAvailable(self, courierNstAvailable): + self.courierNstAvailable = courierNstAvailable + + def get_maxNst(self): + return self.maxNst + + def set_maxNst(self, maxNst): + self.maxNst = maxNst + + def get_maxGirth(self): + return self.maxGirth + + def set_maxGirth(self, maxGirth): + self.maxGirth = maxGirth + + def get_packstationAvailable(self): + return self.packstationAvailable + + def set_packstationAvailable(self, packstationAvailable): + self.packstationAvailable = packstationAvailable + + def get_packstationMaxWeight(self): + return self.packstationMaxWeight + + def set_packstationMaxWeight(self, packstationMaxWeight): + self.packstationMaxWeight = packstationMaxWeight + + def get_packstationMaxWidth(self): + return self.packstationMaxWidth + + def set_packstationMaxWidth(self, packstationMaxWidth): + self.packstationMaxWidth = packstationMaxWidth + + def get_packstationMaxHeight(self): + return self.packstationMaxHeight + + def set_packstationMaxHeight(self, packstationMaxHeight): + self.packstationMaxHeight = packstationMaxHeight + + def get_packstationNstAvailable(self): + return self.packstationNstAvailable + + def set_packstationNstAvailable(self, packstationNstAvailable): + self.packstationNstAvailable = packstationNstAvailable + + def get_packstationMaxLength(self): + return self.packstationMaxLength + + def set_packstationMaxLength(self, packstationMaxLength): + self.packstationMaxLength = packstationMaxLength + + def get_postfilialeAvailable(self): + return self.postfilialeAvailable + + def set_postfilialeAvailable(self, postfilialeAvailable): + self.postfilialeAvailable = postfilialeAvailable + + def get_postfilialeMaxWeight(self): + return self.postfilialeMaxWeight + + def set_postfilialeMaxWeight(self, postfilialeMaxWeight): + self.postfilialeMaxWeight = postfilialeMaxWeight + + def get_postfilialeMaxWidth(self): + return self.postfilialeMaxWidth + + def set_postfilialeMaxWidth(self, postfilialeMaxWidth): + self.postfilialeMaxWidth = postfilialeMaxWidth + + def get_postfilialeMaxHeight(self): + return self.postfilialeMaxHeight + + def set_postfilialeMaxHeight(self, postfilialeMaxHeight): + self.postfilialeMaxHeight = postfilialeMaxHeight + + def get_postfilialeNstAvailable(self): + return self.postfilialeNstAvailable + + def set_postfilialeNstAvailable(self, postfilialeNstAvailable): + self.postfilialeNstAvailable = postfilialeNstAvailable + + def get_postfilialeMaxLength(self): + return self.postfilialeMaxLength + + def set_postfilialeMaxLength(self, postfilialeMaxLength): + self.postfilialeMaxLength = postfilialeMaxLength + + def get_zipFormat(self): + return self.zipFormat + + def set_zipFormat(self, zipFormat): + self.zipFormat = zipFormat + + def _hasContent(self): + if ( + self.countryCode is not None + or self.product is not None + or self.pieceHeader is not None + or self.routing is not None + or self.code2l is not None + or self.courierAvailable is not None + or self.courierMaxWeight is not None + or self.courierMaxWidth is not None + or self.courierMaxHeight is not None + or self.courierMaxLength is not None + or self.courierMaxCod is not None + or self.courierNstAvailable is not None + or self.maxNst is not None + or self.maxGirth is not None + or self.packstationAvailable is not None + or self.packstationMaxWeight is not None + or self.packstationMaxWidth is not None + or self.packstationMaxHeight is not None + or self.packstationNstAvailable is not None + or self.packstationMaxLength is not None + or self.postfilialeAvailable is not None + or self.postfilialeMaxWeight is not None + or self.postfilialeMaxWidth is not None + or self.postfilialeMaxHeight is not None + or self.postfilialeNstAvailable is not None + or self.postfilialeMaxLength is not None + or self.zipFormat is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ReturnParam", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ReturnParam") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ReturnParam": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="ReturnParam" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ReturnParam", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ReturnParam", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ReturnParam", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.countryCode is not None: + namespaceprefix_ = ( + self.countryCode_nsprefix_ + ":" + if (UseCapturedNS_ and self.countryCode_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scountryCode>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.countryCode), input_name="countryCode" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.product is not None: + namespaceprefix_ = ( + self.product_nsprefix_ + ":" + if (UseCapturedNS_ and self.product_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sproduct>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.product), input_name="product" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.pieceHeader is not None: + namespaceprefix_ = ( + self.pieceHeader_nsprefix_ + ":" + if (UseCapturedNS_ and self.pieceHeader_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spieceHeader>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.pieceHeader), input_name="pieceHeader" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.routing is not None: + namespaceprefix_ = ( + self.routing_nsprefix_ + ":" + if (UseCapturedNS_ and self.routing_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%srouting>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.routing), input_name="routing" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.code2l is not None: + namespaceprefix_ = ( + self.code2l_nsprefix_ + ":" + if (UseCapturedNS_ and self.code2l_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scode2l>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.code2l), input_name="code2l" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.courierAvailable is not None: + namespaceprefix_ = ( + self.courierAvailable_nsprefix_ + ":" + if (UseCapturedNS_ and self.courierAvailable_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scourierAvailable>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.courierAvailable, input_name="courierAvailable" + ), + namespaceprefix_, + eol_, + ) + ) + if self.courierMaxWeight is not None: + namespaceprefix_ = ( + self.courierMaxWeight_nsprefix_ + ":" + if (UseCapturedNS_ and self.courierMaxWeight_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scourierMaxWeight>%s%s" + % ( + namespaceprefix_, + self.gds_format_float( + self.courierMaxWeight, input_name="courierMaxWeight" + ), + namespaceprefix_, + eol_, + ) + ) + if self.courierMaxWidth is not None: + namespaceprefix_ = ( + self.courierMaxWidth_nsprefix_ + ":" + if (UseCapturedNS_ and self.courierMaxWidth_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scourierMaxWidth>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer( + self.courierMaxWidth, input_name="courierMaxWidth" + ), + namespaceprefix_, + eol_, + ) + ) + if self.courierMaxHeight is not None: + namespaceprefix_ = ( + self.courierMaxHeight_nsprefix_ + ":" + if (UseCapturedNS_ and self.courierMaxHeight_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scourierMaxHeight>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer( + self.courierMaxHeight, input_name="courierMaxHeight" + ), + namespaceprefix_, + eol_, + ) + ) + if self.courierMaxLength is not None: + namespaceprefix_ = ( + self.courierMaxLength_nsprefix_ + ":" + if (UseCapturedNS_ and self.courierMaxLength_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scourierMaxLength>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer( + self.courierMaxLength, input_name="courierMaxLength" + ), + namespaceprefix_, + eol_, + ) + ) + if self.courierMaxCod is not None: + namespaceprefix_ = ( + self.courierMaxCod_nsprefix_ + ":" + if (UseCapturedNS_ and self.courierMaxCod_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scourierMaxCod>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer( + self.courierMaxCod, input_name="courierMaxCod" + ), + namespaceprefix_, + eol_, + ) + ) + if self.courierNstAvailable is not None: + namespaceprefix_ = ( + self.courierNstAvailable_nsprefix_ + ":" + if (UseCapturedNS_ and self.courierNstAvailable_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scourierNstAvailable>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.courierNstAvailable, input_name="courierNstAvailable" + ), + namespaceprefix_, + eol_, + ) + ) + if self.maxNst is not None: + namespaceprefix_ = ( + self.maxNst_nsprefix_ + ":" + if (UseCapturedNS_ and self.maxNst_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%smaxNst>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.maxNst, input_name="maxNst"), + namespaceprefix_, + eol_, + ) + ) + if self.maxGirth is not None: + namespaceprefix_ = ( + self.maxGirth_nsprefix_ + ":" + if (UseCapturedNS_ and self.maxGirth_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%smaxGirth>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.maxGirth, input_name="maxGirth"), + namespaceprefix_, + eol_, + ) + ) + if self.packstationAvailable is not None: + namespaceprefix_ = ( + self.packstationAvailable_nsprefix_ + ":" + if (UseCapturedNS_ and self.packstationAvailable_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spackstationAvailable>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.packstationAvailable, input_name="packstationAvailable" + ), + namespaceprefix_, + eol_, + ) + ) + if self.packstationMaxWeight is not None: + namespaceprefix_ = ( + self.packstationMaxWeight_nsprefix_ + ":" + if (UseCapturedNS_ and self.packstationMaxWeight_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spackstationMaxWeight>%s%s" + % ( + namespaceprefix_, + self.gds_format_float( + self.packstationMaxWeight, input_name="packstationMaxWeight" + ), + namespaceprefix_, + eol_, + ) + ) + if self.packstationMaxWidth is not None: + namespaceprefix_ = ( + self.packstationMaxWidth_nsprefix_ + ":" + if (UseCapturedNS_ and self.packstationMaxWidth_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spackstationMaxWidth>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer( + self.packstationMaxWidth, input_name="packstationMaxWidth" + ), + namespaceprefix_, + eol_, + ) + ) + if self.packstationMaxHeight is not None: + namespaceprefix_ = ( + self.packstationMaxHeight_nsprefix_ + ":" + if (UseCapturedNS_ and self.packstationMaxHeight_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spackstationMaxHeight>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer( + self.packstationMaxHeight, input_name="packstationMaxHeight" + ), + namespaceprefix_, + eol_, + ) + ) + if self.packstationNstAvailable is not None: + namespaceprefix_ = ( + self.packstationNstAvailable_nsprefix_ + ":" + if (UseCapturedNS_ and self.packstationNstAvailable_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spackstationNstAvailable>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.packstationNstAvailable, + input_name="packstationNstAvailable", + ), + namespaceprefix_, + eol_, + ) + ) + if self.packstationMaxLength is not None: + namespaceprefix_ = ( + self.packstationMaxLength_nsprefix_ + ":" + if (UseCapturedNS_ and self.packstationMaxLength_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spackstationMaxLength>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer( + self.packstationMaxLength, input_name="packstationMaxLength" + ), + namespaceprefix_, + eol_, + ) + ) + if self.postfilialeAvailable is not None: + namespaceprefix_ = ( + self.postfilialeAvailable_nsprefix_ + ":" + if (UseCapturedNS_ and self.postfilialeAvailable_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spostfilialeAvailable>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.postfilialeAvailable, input_name="postfilialeAvailable" + ), + namespaceprefix_, + eol_, + ) + ) + if self.postfilialeMaxWeight is not None: + namespaceprefix_ = ( + self.postfilialeMaxWeight_nsprefix_ + ":" + if (UseCapturedNS_ and self.postfilialeMaxWeight_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spostfilialeMaxWeight>%s%s" + % ( + namespaceprefix_, + self.gds_format_float( + self.postfilialeMaxWeight, input_name="postfilialeMaxWeight" + ), + namespaceprefix_, + eol_, + ) + ) + if self.postfilialeMaxWidth is not None: + namespaceprefix_ = ( + self.postfilialeMaxWidth_nsprefix_ + ":" + if (UseCapturedNS_ and self.postfilialeMaxWidth_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spostfilialeMaxWidth>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer( + self.postfilialeMaxWidth, input_name="postfilialeMaxWidth" + ), + namespaceprefix_, + eol_, + ) + ) + if self.postfilialeMaxHeight is not None: + namespaceprefix_ = ( + self.postfilialeMaxHeight_nsprefix_ + ":" + if (UseCapturedNS_ and self.postfilialeMaxHeight_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spostfilialeMaxHeight>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer( + self.postfilialeMaxHeight, input_name="postfilialeMaxHeight" + ), + namespaceprefix_, + eol_, + ) + ) + if self.postfilialeNstAvailable is not None: + namespaceprefix_ = ( + self.postfilialeNstAvailable_nsprefix_ + ":" + if (UseCapturedNS_ and self.postfilialeNstAvailable_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spostfilialeNstAvailable>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.postfilialeNstAvailable, + input_name="postfilialeNstAvailable", + ), + namespaceprefix_, + eol_, + ) + ) + if self.postfilialeMaxLength is not None: + namespaceprefix_ = ( + self.postfilialeMaxLength_nsprefix_ + ":" + if (UseCapturedNS_ and self.postfilialeMaxLength_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spostfilialeMaxLength>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer( + self.postfilialeMaxLength, input_name="postfilialeMaxLength" + ), + namespaceprefix_, + eol_, + ) + ) + if self.zipFormat is not None: + namespaceprefix_ = ( + self.zipFormat_nsprefix_ + ":" + if (UseCapturedNS_ and self.zipFormat_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%szipFormat>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.zipFormat), input_name="zipFormat" + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "countryCode": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "countryCode") + value_ = self.gds_validate_string(value_, node, "countryCode") + self.countryCode = value_ + self.countryCode_nsprefix_ = child_.prefix + elif nodeName_ == "product": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "product") + value_ = self.gds_validate_string(value_, node, "product") + self.product = value_ + self.product_nsprefix_ = child_.prefix + elif nodeName_ == "pieceHeader": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "pieceHeader") + value_ = self.gds_validate_string(value_, node, "pieceHeader") + self.pieceHeader = value_ + self.pieceHeader_nsprefix_ = child_.prefix + elif nodeName_ == "routing": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "routing") + value_ = self.gds_validate_string(value_, node, "routing") + self.routing = value_ + self.routing_nsprefix_ = child_.prefix + elif nodeName_ == "code2l": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "code2l") + value_ = self.gds_validate_string(value_, node, "code2l") + self.code2l = value_ + self.code2l_nsprefix_ = child_.prefix + elif nodeName_ == "courierAvailable": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "courierAvailable") + ival_ = self.gds_validate_boolean(ival_, node, "courierAvailable") + self.courierAvailable = ival_ + self.courierAvailable_nsprefix_ = child_.prefix + elif nodeName_ == "courierMaxWeight" and child_.text: + sval_ = child_.text + fval_ = self.gds_parse_float(sval_, node, "courierMaxWeight") + fval_ = self.gds_validate_float(fval_, node, "courierMaxWeight") + self.courierMaxWeight = fval_ + self.courierMaxWeight_nsprefix_ = child_.prefix + elif nodeName_ == "courierMaxWidth" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "courierMaxWidth") + ival_ = self.gds_validate_integer(ival_, node, "courierMaxWidth") + self.courierMaxWidth = ival_ + self.courierMaxWidth_nsprefix_ = child_.prefix + elif nodeName_ == "courierMaxHeight" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "courierMaxHeight") + ival_ = self.gds_validate_integer(ival_, node, "courierMaxHeight") + self.courierMaxHeight = ival_ + self.courierMaxHeight_nsprefix_ = child_.prefix + elif nodeName_ == "courierMaxLength" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "courierMaxLength") + ival_ = self.gds_validate_integer(ival_, node, "courierMaxLength") + self.courierMaxLength = ival_ + self.courierMaxLength_nsprefix_ = child_.prefix + elif nodeName_ == "courierMaxCod" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "courierMaxCod") + ival_ = self.gds_validate_integer(ival_, node, "courierMaxCod") + self.courierMaxCod = ival_ + self.courierMaxCod_nsprefix_ = child_.prefix + elif nodeName_ == "courierNstAvailable": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "courierNstAvailable") + ival_ = self.gds_validate_boolean(ival_, node, "courierNstAvailable") + self.courierNstAvailable = ival_ + self.courierNstAvailable_nsprefix_ = child_.prefix + elif nodeName_ == "maxNst" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "maxNst") + ival_ = self.gds_validate_integer(ival_, node, "maxNst") + self.maxNst = ival_ + self.maxNst_nsprefix_ = child_.prefix + elif nodeName_ == "maxGirth" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "maxGirth") + ival_ = self.gds_validate_integer(ival_, node, "maxGirth") + self.maxGirth = ival_ + self.maxGirth_nsprefix_ = child_.prefix + elif nodeName_ == "packstationAvailable": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "packstationAvailable") + ival_ = self.gds_validate_boolean(ival_, node, "packstationAvailable") + self.packstationAvailable = ival_ + self.packstationAvailable_nsprefix_ = child_.prefix + elif nodeName_ == "packstationMaxWeight" and child_.text: + sval_ = child_.text + fval_ = self.gds_parse_float(sval_, node, "packstationMaxWeight") + fval_ = self.gds_validate_float(fval_, node, "packstationMaxWeight") + self.packstationMaxWeight = fval_ + self.packstationMaxWeight_nsprefix_ = child_.prefix + elif nodeName_ == "packstationMaxWidth" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "packstationMaxWidth") + ival_ = self.gds_validate_integer(ival_, node, "packstationMaxWidth") + self.packstationMaxWidth = ival_ + self.packstationMaxWidth_nsprefix_ = child_.prefix + elif nodeName_ == "packstationMaxHeight" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "packstationMaxHeight") + ival_ = self.gds_validate_integer(ival_, node, "packstationMaxHeight") + self.packstationMaxHeight = ival_ + self.packstationMaxHeight_nsprefix_ = child_.prefix + elif nodeName_ == "packstationNstAvailable": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "packstationNstAvailable") + ival_ = self.gds_validate_boolean(ival_, node, "packstationNstAvailable") + self.packstationNstAvailable = ival_ + self.packstationNstAvailable_nsprefix_ = child_.prefix + elif nodeName_ == "packstationMaxLength" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "packstationMaxLength") + ival_ = self.gds_validate_integer(ival_, node, "packstationMaxLength") + self.packstationMaxLength = ival_ + self.packstationMaxLength_nsprefix_ = child_.prefix + elif nodeName_ == "postfilialeAvailable": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "postfilialeAvailable") + ival_ = self.gds_validate_boolean(ival_, node, "postfilialeAvailable") + self.postfilialeAvailable = ival_ + self.postfilialeAvailable_nsprefix_ = child_.prefix + elif nodeName_ == "postfilialeMaxWeight" and child_.text: + sval_ = child_.text + fval_ = self.gds_parse_float(sval_, node, "postfilialeMaxWeight") + fval_ = self.gds_validate_float(fval_, node, "postfilialeMaxWeight") + self.postfilialeMaxWeight = fval_ + self.postfilialeMaxWeight_nsprefix_ = child_.prefix + elif nodeName_ == "postfilialeMaxWidth" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "postfilialeMaxWidth") + ival_ = self.gds_validate_integer(ival_, node, "postfilialeMaxWidth") + self.postfilialeMaxWidth = ival_ + self.postfilialeMaxWidth_nsprefix_ = child_.prefix + elif nodeName_ == "postfilialeMaxHeight" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "postfilialeMaxHeight") + ival_ = self.gds_validate_integer(ival_, node, "postfilialeMaxHeight") + self.postfilialeMaxHeight = ival_ + self.postfilialeMaxHeight_nsprefix_ = child_.prefix + elif nodeName_ == "postfilialeNstAvailable": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "postfilialeNstAvailable") + ival_ = self.gds_validate_boolean(ival_, node, "postfilialeNstAvailable") + self.postfilialeNstAvailable = ival_ + self.postfilialeNstAvailable_nsprefix_ = child_.prefix + elif nodeName_ == "postfilialeMaxLength" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "postfilialeMaxLength") + ival_ = self.gds_validate_integer(ival_, node, "postfilialeMaxLength") + self.postfilialeMaxLength = ival_ + self.postfilialeMaxLength_nsprefix_ = child_.prefix + elif nodeName_ == "zipFormat": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "zipFormat") + value_ = self.gds_validate_string(value_, node, "zipFormat") + self.zipFormat = value_ + self.zipFormat_nsprefix_ = child_.prefix + + +# end class ReturnParam + + +class ArrayOfReturnparam(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, item=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + if item is None: + self.item = [] + else: + self.item = item + self.item_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, ArrayOfReturnparam + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ArrayOfReturnparam.subclass: + return ArrayOfReturnparam.subclass(*args_, **kwargs_) + else: + return ArrayOfReturnparam(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_item(self): + return self.item + + def set_item(self, item): + self.item = item + + def add_item(self, value): + self.item.append(value) + + def insert_item_at(self, index, value): + self.item.insert(index, value) + + def replace_item_at(self, index, value): + self.item[index] = value + + def _hasContent(self): + if self.item: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfReturnparam", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ArrayOfReturnparam") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ArrayOfReturnparam": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="ArrayOfReturnparam", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ArrayOfReturnparam", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ArrayOfReturnparam", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfReturnparam", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + for item_ in self.item: + namespaceprefix_ = ( + self.item_nsprefix_ + ":" + if (UseCapturedNS_ and self.item_nsprefix_) + else "" + ) + item_.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="item", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "item": + obj_ = ReturnParam.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.item.append(obj_) + obj_.original_tagname_ = "item" + + +# end class ArrayOfReturnparam + + +class GetReturnParamsResponse(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, params=None, count=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.params = params + self.params_nsprefix_ = "tns" + self.count = count + self.count_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, GetReturnParamsResponse + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if GetReturnParamsResponse.subclass: + return GetReturnParamsResponse.subclass(*args_, **kwargs_) + else: + return GetReturnParamsResponse(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_params(self): + return self.params + + def set_params(self, params): + self.params = params + + def get_count(self): + return self.count + + def set_count(self, count): + self.count = count + + def _hasContent(self): + if self.params is not None or self.count is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="GetReturnParamsResponse", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("GetReturnParamsResponse") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "GetReturnParamsResponse": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="GetReturnParamsResponse", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="GetReturnParamsResponse", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="GetReturnParamsResponse", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="GetReturnParamsResponse", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.params is not None: + namespaceprefix_ = ( + self.params_nsprefix_ + ":" + if (UseCapturedNS_ and self.params_nsprefix_) + else "" + ) + self.params.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="params", + pretty_print=pretty_print, + ) + if self.count is not None: + namespaceprefix_ = ( + self.count_nsprefix_ + ":" + if (UseCapturedNS_ and self.count_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scount>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.count, input_name="count"), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "params": + obj_ = ArrayOfReturnparam.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.params = obj_ + obj_.original_tagname_ = "params" + elif nodeName_ == "count" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "count") + ival_ = self.gds_validate_integer(ival_, node, "count") + self.count = ival_ + self.count_nsprefix_ = child_.prefix + + +# end class GetReturnParamsResponse + + +class getReturnParamsResponse(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, getReturnParamsResult=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.getReturnParamsResult = getReturnParamsResult + self.getReturnParamsResult_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, getReturnParamsResponse + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if getReturnParamsResponse.subclass: + return getReturnParamsResponse.subclass(*args_, **kwargs_) + else: + return getReturnParamsResponse(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_getReturnParamsResult(self): + return self.getReturnParamsResult + + def set_getReturnParamsResult(self, getReturnParamsResult): + self.getReturnParamsResult = getReturnParamsResult + + def _hasContent(self): + if self.getReturnParamsResult is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getReturnParamsResponse", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("getReturnParamsResponse") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "getReturnParamsResponse": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="getReturnParamsResponse", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="getReturnParamsResponse", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="getReturnParamsResponse", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getReturnParamsResponse", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.getReturnParamsResult is not None: + namespaceprefix_ = ( + self.getReturnParamsResult_nsprefix_ + ":" + if (UseCapturedNS_ and self.getReturnParamsResult_nsprefix_) + else "" + ) + self.getReturnParamsResult.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="getReturnParamsResult", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "getReturnParamsResult": + obj_ = GetReturnParamsResponse.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.getReturnParamsResult = obj_ + obj_.original_tagname_ = "getReturnParamsResult" + + +# end class getReturnParamsResponse + + +class getInternationalParams2(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, authData=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.authData = authData + self.authData_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, getInternationalParams2 + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if getInternationalParams2.subclass: + return getInternationalParams2.subclass(*args_, **kwargs_) + else: + return getInternationalParams2(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_authData(self): + return self.authData + + def set_authData(self, authData): + self.authData = authData + + def _hasContent(self): + if self.authData is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getInternationalParams2", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("getInternationalParams2") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "getInternationalParams2": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="getInternationalParams2", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="getInternationalParams2", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="getInternationalParams2", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getInternationalParams2", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.authData is not None: + namespaceprefix_ = ( + self.authData_nsprefix_ + ":" + if (UseCapturedNS_ and self.authData_nsprefix_) + else "" + ) + self.authData.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="authData", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "authData": + obj_ = AuthData.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.authData = obj_ + obj_.original_tagname_ = "authData" + + +# end class getInternationalParams2 + + +class ReturnPip2Param(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + customerType=None, + elementType=None, + pickUpDays=None, + product=None, + pieceHeader=None, + routing=None, + code=None, + maxWeight=None, + maxWidth=None, + maxLength=None, + maxHeight=None, + maxShipmentWeight=None, + maxShipmentPc=None, + maxCod=None, + codCurrency=None, + exchRate=None, + nst=None, + maxNst=None, + girth=None, + packstation=None, + psMaxWeight=None, + psMaxLength=None, + psMaxWidth=None, + psMaxHeight=None, + postfiliale=None, + pfMaxWeight=None, + pfMaxWidth=None, + pfMaxHeight=None, + pfMaxLength=None, + zipFormat=None, + active=None, + identifier=None, + emailRec=None, + deliveryMethod=None, + deliveryOption=None, + deliveryInfo=None, + tntUrl=None, + emailSen=None, + mobPhoneRec=None, + insuranceBase=None, + insuranceMaxcashPln=None, + zipformatInfo=None, + printReceiversPhone=None, + countryUe=None, + deliveryOptionEn=None, + deliveryInfoEn=None, + zipformatInfoEn=None, + countryCode3=None, + mobPhoneSen=None, + routeLabel=None, + maxValue=None, + productName=None, + dutyIndividual=None, + dutySimple=None, + dhl24Available=None, + dhl24FuAvailable=None, + isbAvailable=None, + psmAvailable=None, + mobPhoneSpRec=None, + emailSpRec=None, + emailPlRec=None, + mobPhonePlRec=None, + podAvailable=None, + minLength=None, + minWidth=None, + minHeight=None, + fmNstKurier=None, + adhocpickup=None, + fmNstPf=None, + fmNstPs=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.customerType = customerType + self.customerType_nsprefix_ = None + self.elementType = elementType + self.elementType_nsprefix_ = None + self.pickUpDays = pickUpDays + self.pickUpDays_nsprefix_ = None + self.product = product + self.product_nsprefix_ = None + self.pieceHeader = pieceHeader + self.pieceHeader_nsprefix_ = None + self.routing = routing + self.routing_nsprefix_ = None + self.code = code + self.code_nsprefix_ = None + self.maxWeight = maxWeight + self.maxWeight_nsprefix_ = None + self.maxWidth = maxWidth + self.maxWidth_nsprefix_ = None + self.maxLength = maxLength + self.maxLength_nsprefix_ = None + self.maxHeight = maxHeight + self.maxHeight_nsprefix_ = None + self.maxShipmentWeight = maxShipmentWeight + self.maxShipmentWeight_nsprefix_ = None + self.maxShipmentPc = maxShipmentPc + self.maxShipmentPc_nsprefix_ = None + self.maxCod = maxCod + self.maxCod_nsprefix_ = None + self.codCurrency = codCurrency + self.codCurrency_nsprefix_ = None + self.exchRate = exchRate + self.exchRate_nsprefix_ = None + self.nst = nst + self.nst_nsprefix_ = None + self.maxNst = maxNst + self.maxNst_nsprefix_ = None + self.girth = girth + self.girth_nsprefix_ = None + self.packstation = packstation + self.packstation_nsprefix_ = None + self.psMaxWeight = psMaxWeight + self.psMaxWeight_nsprefix_ = None + self.psMaxLength = psMaxLength + self.psMaxLength_nsprefix_ = None + self.psMaxWidth = psMaxWidth + self.psMaxWidth_nsprefix_ = None + self.psMaxHeight = psMaxHeight + self.psMaxHeight_nsprefix_ = None + self.postfiliale = postfiliale + self.postfiliale_nsprefix_ = None + self.pfMaxWeight = pfMaxWeight + self.pfMaxWeight_nsprefix_ = None + self.pfMaxWidth = pfMaxWidth + self.pfMaxWidth_nsprefix_ = None + self.pfMaxHeight = pfMaxHeight + self.pfMaxHeight_nsprefix_ = None + self.pfMaxLength = pfMaxLength + self.pfMaxLength_nsprefix_ = None + self.zipFormat = zipFormat + self.zipFormat_nsprefix_ = None + self.active = active + self.active_nsprefix_ = None + self.identifier = identifier + self.identifier_nsprefix_ = None + self.emailRec = emailRec + self.emailRec_nsprefix_ = None + self.deliveryMethod = deliveryMethod + self.deliveryMethod_nsprefix_ = None + self.deliveryOption = deliveryOption + self.deliveryOption_nsprefix_ = None + self.deliveryInfo = deliveryInfo + self.deliveryInfo_nsprefix_ = None + self.tntUrl = tntUrl + self.tntUrl_nsprefix_ = None + self.emailSen = emailSen + self.emailSen_nsprefix_ = None + self.mobPhoneRec = mobPhoneRec + self.mobPhoneRec_nsprefix_ = None + self.insuranceBase = insuranceBase + self.insuranceBase_nsprefix_ = None + self.insuranceMaxcashPln = insuranceMaxcashPln + self.insuranceMaxcashPln_nsprefix_ = None + self.zipformatInfo = zipformatInfo + self.zipformatInfo_nsprefix_ = None + self.printReceiversPhone = printReceiversPhone + self.printReceiversPhone_nsprefix_ = None + self.countryUe = countryUe + self.countryUe_nsprefix_ = None + self.deliveryOptionEn = deliveryOptionEn + self.deliveryOptionEn_nsprefix_ = None + self.deliveryInfoEn = deliveryInfoEn + self.deliveryInfoEn_nsprefix_ = None + self.zipformatInfoEn = zipformatInfoEn + self.zipformatInfoEn_nsprefix_ = None + self.countryCode3 = countryCode3 + self.countryCode3_nsprefix_ = None + self.mobPhoneSen = mobPhoneSen + self.mobPhoneSen_nsprefix_ = None + self.routeLabel = routeLabel + self.routeLabel_nsprefix_ = None + self.maxValue = maxValue + self.maxValue_nsprefix_ = None + self.productName = productName + self.productName_nsprefix_ = None + self.dutyIndividual = dutyIndividual + self.dutyIndividual_nsprefix_ = None + self.dutySimple = dutySimple + self.dutySimple_nsprefix_ = None + self.dhl24Available = dhl24Available + self.dhl24Available_nsprefix_ = None + self.dhl24FuAvailable = dhl24FuAvailable + self.dhl24FuAvailable_nsprefix_ = None + self.isbAvailable = isbAvailable + self.isbAvailable_nsprefix_ = None + self.psmAvailable = psmAvailable + self.psmAvailable_nsprefix_ = None + self.mobPhoneSpRec = mobPhoneSpRec + self.mobPhoneSpRec_nsprefix_ = None + self.emailSpRec = emailSpRec + self.emailSpRec_nsprefix_ = None + self.emailPlRec = emailPlRec + self.emailPlRec_nsprefix_ = None + self.mobPhonePlRec = mobPhonePlRec + self.mobPhonePlRec_nsprefix_ = None + self.podAvailable = podAvailable + self.podAvailable_nsprefix_ = None + self.minLength = minLength + self.minLength_nsprefix_ = None + self.minWidth = minWidth + self.minWidth_nsprefix_ = None + self.minHeight = minHeight + self.minHeight_nsprefix_ = None + self.fmNstKurier = fmNstKurier + self.fmNstKurier_nsprefix_ = None + self.adhocpickup = adhocpickup + self.adhocpickup_nsprefix_ = None + self.fmNstPf = fmNstPf + self.fmNstPf_nsprefix_ = None + self.fmNstPs = fmNstPs + self.fmNstPs_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, ReturnPip2Param) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ReturnPip2Param.subclass: + return ReturnPip2Param.subclass(*args_, **kwargs_) + else: + return ReturnPip2Param(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_customerType(self): + return self.customerType + + def set_customerType(self, customerType): + self.customerType = customerType + + def get_elementType(self): + return self.elementType + + def set_elementType(self, elementType): + self.elementType = elementType + + def get_pickUpDays(self): + return self.pickUpDays + + def set_pickUpDays(self, pickUpDays): + self.pickUpDays = pickUpDays + + def get_product(self): + return self.product + + def set_product(self, product): + self.product = product + + def get_pieceHeader(self): + return self.pieceHeader + + def set_pieceHeader(self, pieceHeader): + self.pieceHeader = pieceHeader + + def get_routing(self): + return self.routing + + def set_routing(self, routing): + self.routing = routing + + def get_code(self): + return self.code + + def set_code(self, code): + self.code = code + + def get_maxWeight(self): + return self.maxWeight + + def set_maxWeight(self, maxWeight): + self.maxWeight = maxWeight + + def get_maxWidth(self): + return self.maxWidth + + def set_maxWidth(self, maxWidth): + self.maxWidth = maxWidth + + def get_maxLength(self): + return self.maxLength + + def set_maxLength(self, maxLength): + self.maxLength = maxLength + + def get_maxHeight(self): + return self.maxHeight + + def set_maxHeight(self, maxHeight): + self.maxHeight = maxHeight + + def get_maxShipmentWeight(self): + return self.maxShipmentWeight + + def set_maxShipmentWeight(self, maxShipmentWeight): + self.maxShipmentWeight = maxShipmentWeight + + def get_maxShipmentPc(self): + return self.maxShipmentPc + + def set_maxShipmentPc(self, maxShipmentPc): + self.maxShipmentPc = maxShipmentPc + + def get_maxCod(self): + return self.maxCod + + def set_maxCod(self, maxCod): + self.maxCod = maxCod + + def get_codCurrency(self): + return self.codCurrency + + def set_codCurrency(self, codCurrency): + self.codCurrency = codCurrency + + def get_exchRate(self): + return self.exchRate + + def set_exchRate(self, exchRate): + self.exchRate = exchRate + + def get_nst(self): + return self.nst + + def set_nst(self, nst): + self.nst = nst + + def get_maxNst(self): + return self.maxNst + + def set_maxNst(self, maxNst): + self.maxNst = maxNst + + def get_girth(self): + return self.girth + + def set_girth(self, girth): + self.girth = girth + + def get_packstation(self): + return self.packstation + + def set_packstation(self, packstation): + self.packstation = packstation + + def get_psMaxWeight(self): + return self.psMaxWeight + + def set_psMaxWeight(self, psMaxWeight): + self.psMaxWeight = psMaxWeight + + def get_psMaxLength(self): + return self.psMaxLength + + def set_psMaxLength(self, psMaxLength): + self.psMaxLength = psMaxLength + + def get_psMaxWidth(self): + return self.psMaxWidth + + def set_psMaxWidth(self, psMaxWidth): + self.psMaxWidth = psMaxWidth + + def get_psMaxHeight(self): + return self.psMaxHeight + + def set_psMaxHeight(self, psMaxHeight): + self.psMaxHeight = psMaxHeight + + def get_postfiliale(self): + return self.postfiliale + + def set_postfiliale(self, postfiliale): + self.postfiliale = postfiliale + + def get_pfMaxWeight(self): + return self.pfMaxWeight + + def set_pfMaxWeight(self, pfMaxWeight): + self.pfMaxWeight = pfMaxWeight + + def get_pfMaxWidth(self): + return self.pfMaxWidth + + def set_pfMaxWidth(self, pfMaxWidth): + self.pfMaxWidth = pfMaxWidth + + def get_pfMaxHeight(self): + return self.pfMaxHeight + + def set_pfMaxHeight(self, pfMaxHeight): + self.pfMaxHeight = pfMaxHeight + + def get_pfMaxLength(self): + return self.pfMaxLength + + def set_pfMaxLength(self, pfMaxLength): + self.pfMaxLength = pfMaxLength + + def get_zipFormat(self): + return self.zipFormat + + def set_zipFormat(self, zipFormat): + self.zipFormat = zipFormat + + def get_active(self): + return self.active + + def set_active(self, active): + self.active = active + + def get_identifier(self): + return self.identifier + + def set_identifier(self, identifier): + self.identifier = identifier + + def get_emailRec(self): + return self.emailRec + + def set_emailRec(self, emailRec): + self.emailRec = emailRec + + def get_deliveryMethod(self): + return self.deliveryMethod + + def set_deliveryMethod(self, deliveryMethod): + self.deliveryMethod = deliveryMethod + + def get_deliveryOption(self): + return self.deliveryOption + + def set_deliveryOption(self, deliveryOption): + self.deliveryOption = deliveryOption + + def get_deliveryInfo(self): + return self.deliveryInfo + + def set_deliveryInfo(self, deliveryInfo): + self.deliveryInfo = deliveryInfo + + def get_tntUrl(self): + return self.tntUrl + + def set_tntUrl(self, tntUrl): + self.tntUrl = tntUrl + + def get_emailSen(self): + return self.emailSen + + def set_emailSen(self, emailSen): + self.emailSen = emailSen + + def get_mobPhoneRec(self): + return self.mobPhoneRec + + def set_mobPhoneRec(self, mobPhoneRec): + self.mobPhoneRec = mobPhoneRec + + def get_insuranceBase(self): + return self.insuranceBase + + def set_insuranceBase(self, insuranceBase): + self.insuranceBase = insuranceBase + + def get_insuranceMaxcashPln(self): + return self.insuranceMaxcashPln + + def set_insuranceMaxcashPln(self, insuranceMaxcashPln): + self.insuranceMaxcashPln = insuranceMaxcashPln + + def get_zipformatInfo(self): + return self.zipformatInfo + + def set_zipformatInfo(self, zipformatInfo): + self.zipformatInfo = zipformatInfo + + def get_printReceiversPhone(self): + return self.printReceiversPhone + + def set_printReceiversPhone(self, printReceiversPhone): + self.printReceiversPhone = printReceiversPhone + + def get_countryUe(self): + return self.countryUe + + def set_countryUe(self, countryUe): + self.countryUe = countryUe + + def get_deliveryOptionEn(self): + return self.deliveryOptionEn + + def set_deliveryOptionEn(self, deliveryOptionEn): + self.deliveryOptionEn = deliveryOptionEn + + def get_deliveryInfoEn(self): + return self.deliveryInfoEn + + def set_deliveryInfoEn(self, deliveryInfoEn): + self.deliveryInfoEn = deliveryInfoEn + + def get_zipformatInfoEn(self): + return self.zipformatInfoEn + + def set_zipformatInfoEn(self, zipformatInfoEn): + self.zipformatInfoEn = zipformatInfoEn + + def get_countryCode3(self): + return self.countryCode3 + + def set_countryCode3(self, countryCode3): + self.countryCode3 = countryCode3 + + def get_mobPhoneSen(self): + return self.mobPhoneSen + + def set_mobPhoneSen(self, mobPhoneSen): + self.mobPhoneSen = mobPhoneSen + + def get_routeLabel(self): + return self.routeLabel + + def set_routeLabel(self, routeLabel): + self.routeLabel = routeLabel + + def get_maxValue(self): + return self.maxValue + + def set_maxValue(self, maxValue): + self.maxValue = maxValue + + def get_productName(self): + return self.productName + + def set_productName(self, productName): + self.productName = productName + + def get_dutyIndividual(self): + return self.dutyIndividual + + def set_dutyIndividual(self, dutyIndividual): + self.dutyIndividual = dutyIndividual + + def get_dutySimple(self): + return self.dutySimple + + def set_dutySimple(self, dutySimple): + self.dutySimple = dutySimple + + def get_dhl24Available(self): + return self.dhl24Available + + def set_dhl24Available(self, dhl24Available): + self.dhl24Available = dhl24Available + + def get_dhl24FuAvailable(self): + return self.dhl24FuAvailable + + def set_dhl24FuAvailable(self, dhl24FuAvailable): + self.dhl24FuAvailable = dhl24FuAvailable + + def get_isbAvailable(self): + return self.isbAvailable + + def set_isbAvailable(self, isbAvailable): + self.isbAvailable = isbAvailable + + def get_psmAvailable(self): + return self.psmAvailable + + def set_psmAvailable(self, psmAvailable): + self.psmAvailable = psmAvailable + + def get_mobPhoneSpRec(self): + return self.mobPhoneSpRec + + def set_mobPhoneSpRec(self, mobPhoneSpRec): + self.mobPhoneSpRec = mobPhoneSpRec + + def get_emailSpRec(self): + return self.emailSpRec + + def set_emailSpRec(self, emailSpRec): + self.emailSpRec = emailSpRec + + def get_emailPlRec(self): + return self.emailPlRec + + def set_emailPlRec(self, emailPlRec): + self.emailPlRec = emailPlRec + + def get_mobPhonePlRec(self): + return self.mobPhonePlRec + + def set_mobPhonePlRec(self, mobPhonePlRec): + self.mobPhonePlRec = mobPhonePlRec + + def get_podAvailable(self): + return self.podAvailable + + def set_podAvailable(self, podAvailable): + self.podAvailable = podAvailable + + def get_minLength(self): + return self.minLength + + def set_minLength(self, minLength): + self.minLength = minLength + + def get_minWidth(self): + return self.minWidth + + def set_minWidth(self, minWidth): + self.minWidth = minWidth + + def get_minHeight(self): + return self.minHeight + + def set_minHeight(self, minHeight): + self.minHeight = minHeight + + def get_fmNstKurier(self): + return self.fmNstKurier + + def set_fmNstKurier(self, fmNstKurier): + self.fmNstKurier = fmNstKurier + + def get_adhocpickup(self): + return self.adhocpickup + + def set_adhocpickup(self, adhocpickup): + self.adhocpickup = adhocpickup + + def get_fmNstPf(self): + return self.fmNstPf + + def set_fmNstPf(self, fmNstPf): + self.fmNstPf = fmNstPf + + def get_fmNstPs(self): + return self.fmNstPs + + def set_fmNstPs(self, fmNstPs): + self.fmNstPs = fmNstPs + + def _hasContent(self): + if ( + self.customerType is not None + or self.elementType is not None + or self.pickUpDays is not None + or self.product is not None + or self.pieceHeader is not None + or self.routing is not None + or self.code is not None + or self.maxWeight is not None + or self.maxWidth is not None + or self.maxLength is not None + or self.maxHeight is not None + or self.maxShipmentWeight is not None + or self.maxShipmentPc is not None + or self.maxCod is not None + or self.codCurrency is not None + or self.exchRate is not None + or self.nst is not None + or self.maxNst is not None + or self.girth is not None + or self.packstation is not None + or self.psMaxWeight is not None + or self.psMaxLength is not None + or self.psMaxWidth is not None + or self.psMaxHeight is not None + or self.postfiliale is not None + or self.pfMaxWeight is not None + or self.pfMaxWidth is not None + or self.pfMaxHeight is not None + or self.pfMaxLength is not None + or self.zipFormat is not None + or self.active is not None + or self.identifier is not None + or self.emailRec is not None + or self.deliveryMethod is not None + or self.deliveryOption is not None + or self.deliveryInfo is not None + or self.tntUrl is not None + or self.emailSen is not None + or self.mobPhoneRec is not None + or self.insuranceBase is not None + or self.insuranceMaxcashPln is not None + or self.zipformatInfo is not None + or self.printReceiversPhone is not None + or self.countryUe is not None + or self.deliveryOptionEn is not None + or self.deliveryInfoEn is not None + or self.zipformatInfoEn is not None + or self.countryCode3 is not None + or self.mobPhoneSen is not None + or self.routeLabel is not None + or self.maxValue is not None + or self.productName is not None + or self.dutyIndividual is not None + or self.dutySimple is not None + or self.dhl24Available is not None + or self.dhl24FuAvailable is not None + or self.isbAvailable is not None + or self.psmAvailable is not None + or self.mobPhoneSpRec is not None + or self.emailSpRec is not None + or self.emailPlRec is not None + or self.mobPhonePlRec is not None + or self.podAvailable is not None + or self.minLength is not None + or self.minWidth is not None + or self.minHeight is not None + or self.fmNstKurier is not None + or self.adhocpickup is not None + or self.fmNstPf is not None + or self.fmNstPs is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ReturnPip2Param", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ReturnPip2Param") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ReturnPip2Param": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="ReturnPip2Param" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ReturnPip2Param", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ReturnPip2Param", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ReturnPip2Param", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.customerType is not None: + namespaceprefix_ = ( + self.customerType_nsprefix_ + ":" + if (UseCapturedNS_ and self.customerType_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scustomerType>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.customerType), input_name="customerType" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.elementType is not None: + namespaceprefix_ = ( + self.elementType_nsprefix_ + ":" + if (UseCapturedNS_ and self.elementType_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%selementType>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.elementType), input_name="elementType" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.pickUpDays is not None: + namespaceprefix_ = ( + self.pickUpDays_nsprefix_ + ":" + if (UseCapturedNS_ and self.pickUpDays_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spickUpDays>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.pickUpDays), input_name="pickUpDays" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.product is not None: + namespaceprefix_ = ( + self.product_nsprefix_ + ":" + if (UseCapturedNS_ and self.product_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sproduct>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.product), input_name="product" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.pieceHeader is not None: + namespaceprefix_ = ( + self.pieceHeader_nsprefix_ + ":" + if (UseCapturedNS_ and self.pieceHeader_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spieceHeader>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.pieceHeader), input_name="pieceHeader" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.routing is not None: + namespaceprefix_ = ( + self.routing_nsprefix_ + ":" + if (UseCapturedNS_ and self.routing_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%srouting>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.routing), input_name="routing" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.code is not None: + namespaceprefix_ = ( + self.code_nsprefix_ + ":" + if (UseCapturedNS_ and self.code_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scode>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.code, input_name="code"), + namespaceprefix_, + eol_, + ) + ) + if self.maxWeight is not None: + namespaceprefix_ = ( + self.maxWeight_nsprefix_ + ":" + if (UseCapturedNS_ and self.maxWeight_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%smaxWeight>%s%s" + % ( + namespaceprefix_, + self.gds_format_float(self.maxWeight, input_name="maxWeight"), + namespaceprefix_, + eol_, + ) + ) + if self.maxWidth is not None: + namespaceprefix_ = ( + self.maxWidth_nsprefix_ + ":" + if (UseCapturedNS_ and self.maxWidth_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%smaxWidth>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.maxWidth, input_name="maxWidth"), + namespaceprefix_, + eol_, + ) + ) + if self.maxLength is not None: + namespaceprefix_ = ( + self.maxLength_nsprefix_ + ":" + if (UseCapturedNS_ and self.maxLength_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%smaxLength>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.maxLength, input_name="maxLength"), + namespaceprefix_, + eol_, + ) + ) + if self.maxHeight is not None: + namespaceprefix_ = ( + self.maxHeight_nsprefix_ + ":" + if (UseCapturedNS_ and self.maxHeight_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%smaxHeight>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.maxHeight, input_name="maxHeight"), + namespaceprefix_, + eol_, + ) + ) + if self.maxShipmentWeight is not None: + namespaceprefix_ = ( + self.maxShipmentWeight_nsprefix_ + ":" + if (UseCapturedNS_ and self.maxShipmentWeight_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%smaxShipmentWeight>%s%s" + % ( + namespaceprefix_, + self.gds_format_float( + self.maxShipmentWeight, input_name="maxShipmentWeight" + ), + namespaceprefix_, + eol_, + ) + ) + if self.maxShipmentPc is not None: + namespaceprefix_ = ( + self.maxShipmentPc_nsprefix_ + ":" + if (UseCapturedNS_ and self.maxShipmentPc_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%smaxShipmentPc>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer( + self.maxShipmentPc, input_name="maxShipmentPc" + ), + namespaceprefix_, + eol_, + ) + ) + if self.maxCod is not None: + namespaceprefix_ = ( + self.maxCod_nsprefix_ + ":" + if (UseCapturedNS_ and self.maxCod_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%smaxCod>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.maxCod, input_name="maxCod"), + namespaceprefix_, + eol_, + ) + ) + if self.codCurrency is not None: + namespaceprefix_ = ( + self.codCurrency_nsprefix_ + ":" + if (UseCapturedNS_ and self.codCurrency_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scodCurrency>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.codCurrency), input_name="codCurrency" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.exchRate is not None: + namespaceprefix_ = ( + self.exchRate_nsprefix_ + ":" + if (UseCapturedNS_ and self.exchRate_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sexchRate>%s%s" + % ( + namespaceprefix_, + self.gds_format_float(self.exchRate, input_name="exchRate"), + namespaceprefix_, + eol_, + ) + ) + if self.nst is not None: + namespaceprefix_ = ( + self.nst_nsprefix_ + ":" + if (UseCapturedNS_ and self.nst_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%snst>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean(self.nst, input_name="nst"), + namespaceprefix_, + eol_, + ) + ) + if self.maxNst is not None: + namespaceprefix_ = ( + self.maxNst_nsprefix_ + ":" + if (UseCapturedNS_ and self.maxNst_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%smaxNst>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.maxNst, input_name="maxNst"), + namespaceprefix_, + eol_, + ) + ) + if self.girth is not None: + namespaceprefix_ = ( + self.girth_nsprefix_ + ":" + if (UseCapturedNS_ and self.girth_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sgirth>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.girth, input_name="girth"), + namespaceprefix_, + eol_, + ) + ) + if self.packstation is not None: + namespaceprefix_ = ( + self.packstation_nsprefix_ + ":" + if (UseCapturedNS_ and self.packstation_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spackstation>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean(self.packstation, input_name="packstation"), + namespaceprefix_, + eol_, + ) + ) + if self.psMaxWeight is not None: + namespaceprefix_ = ( + self.psMaxWeight_nsprefix_ + ":" + if (UseCapturedNS_ and self.psMaxWeight_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spsMaxWeight>%s%s" + % ( + namespaceprefix_, + self.gds_format_float(self.psMaxWeight, input_name="psMaxWeight"), + namespaceprefix_, + eol_, + ) + ) + if self.psMaxLength is not None: + namespaceprefix_ = ( + self.psMaxLength_nsprefix_ + ":" + if (UseCapturedNS_ and self.psMaxLength_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spsMaxLength>%s%s" + % ( + namespaceprefix_, + self.gds_format_float(self.psMaxLength, input_name="psMaxLength"), + namespaceprefix_, + eol_, + ) + ) + if self.psMaxWidth is not None: + namespaceprefix_ = ( + self.psMaxWidth_nsprefix_ + ":" + if (UseCapturedNS_ and self.psMaxWidth_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spsMaxWidth>%s%s" + % ( + namespaceprefix_, + self.gds_format_float(self.psMaxWidth, input_name="psMaxWidth"), + namespaceprefix_, + eol_, + ) + ) + if self.psMaxHeight is not None: + namespaceprefix_ = ( + self.psMaxHeight_nsprefix_ + ":" + if (UseCapturedNS_ and self.psMaxHeight_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spsMaxHeight>%s%s" + % ( + namespaceprefix_, + self.gds_format_float(self.psMaxHeight, input_name="psMaxHeight"), + namespaceprefix_, + eol_, + ) + ) + if self.postfiliale is not None: + namespaceprefix_ = ( + self.postfiliale_nsprefix_ + ":" + if (UseCapturedNS_ and self.postfiliale_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spostfiliale>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.postfiliale, input_name="postfiliale"), + namespaceprefix_, + eol_, + ) + ) + if self.pfMaxWeight is not None: + namespaceprefix_ = ( + self.pfMaxWeight_nsprefix_ + ":" + if (UseCapturedNS_ and self.pfMaxWeight_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spfMaxWeight>%s%s" + % ( + namespaceprefix_, + self.gds_format_float(self.pfMaxWeight, input_name="pfMaxWeight"), + namespaceprefix_, + eol_, + ) + ) + if self.pfMaxWidth is not None: + namespaceprefix_ = ( + self.pfMaxWidth_nsprefix_ + ":" + if (UseCapturedNS_ and self.pfMaxWidth_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spfMaxWidth>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.pfMaxWidth, input_name="pfMaxWidth"), + namespaceprefix_, + eol_, + ) + ) + if self.pfMaxHeight is not None: + namespaceprefix_ = ( + self.pfMaxHeight_nsprefix_ + ":" + if (UseCapturedNS_ and self.pfMaxHeight_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spfMaxHeight>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.pfMaxHeight, input_name="pfMaxHeight"), + namespaceprefix_, + eol_, + ) + ) + if self.pfMaxLength is not None: + namespaceprefix_ = ( + self.pfMaxLength_nsprefix_ + ":" + if (UseCapturedNS_ and self.pfMaxLength_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spfMaxLength>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.pfMaxLength, input_name="pfMaxLength"), + namespaceprefix_, + eol_, + ) + ) + if self.zipFormat is not None: + namespaceprefix_ = ( + self.zipFormat_nsprefix_ + ":" + if (UseCapturedNS_ and self.zipFormat_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%szipFormat>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.zipFormat), input_name="zipFormat" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.active is not None: + namespaceprefix_ = ( + self.active_nsprefix_ + ":" + if (UseCapturedNS_ and self.active_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sactive>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean(self.active, input_name="active"), + namespaceprefix_, + eol_, + ) + ) + if self.identifier is not None: + namespaceprefix_ = ( + self.identifier_nsprefix_ + ":" + if (UseCapturedNS_ and self.identifier_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sidentifier>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.identifier), input_name="identifier" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.emailRec is not None: + namespaceprefix_ = ( + self.emailRec_nsprefix_ + ":" + if (UseCapturedNS_ and self.emailRec_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%semailRec>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean(self.emailRec, input_name="emailRec"), + namespaceprefix_, + eol_, + ) + ) + if self.deliveryMethod is not None: + namespaceprefix_ = ( + self.deliveryMethod_nsprefix_ + ":" + if (UseCapturedNS_ and self.deliveryMethod_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sdeliveryMethod>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.deliveryMethod), input_name="deliveryMethod" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.deliveryOption is not None: + namespaceprefix_ = ( + self.deliveryOption_nsprefix_ + ":" + if (UseCapturedNS_ and self.deliveryOption_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sdeliveryOption>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.deliveryOption), input_name="deliveryOption" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.deliveryInfo is not None: + namespaceprefix_ = ( + self.deliveryInfo_nsprefix_ + ":" + if (UseCapturedNS_ and self.deliveryInfo_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sdeliveryInfo>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.deliveryInfo), input_name="deliveryInfo" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.tntUrl is not None: + namespaceprefix_ = ( + self.tntUrl_nsprefix_ + ":" + if (UseCapturedNS_ and self.tntUrl_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%stntUrl>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.tntUrl), input_name="tntUrl" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.emailSen is not None: + namespaceprefix_ = ( + self.emailSen_nsprefix_ + ":" + if (UseCapturedNS_ and self.emailSen_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%semailSen>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean(self.emailSen, input_name="emailSen"), + namespaceprefix_, + eol_, + ) + ) + if self.mobPhoneRec is not None: + namespaceprefix_ = ( + self.mobPhoneRec_nsprefix_ + ":" + if (UseCapturedNS_ and self.mobPhoneRec_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%smobPhoneRec>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean(self.mobPhoneRec, input_name="mobPhoneRec"), + namespaceprefix_, + eol_, + ) + ) + if self.insuranceBase is not None: + namespaceprefix_ = ( + self.insuranceBase_nsprefix_ + ":" + if (UseCapturedNS_ and self.insuranceBase_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sinsuranceBase>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer( + self.insuranceBase, input_name="insuranceBase" + ), + namespaceprefix_, + eol_, + ) + ) + if self.insuranceMaxcashPln is not None: + namespaceprefix_ = ( + self.insuranceMaxcashPln_nsprefix_ + ":" + if (UseCapturedNS_ and self.insuranceMaxcashPln_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sinsuranceMaxcashPln>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer( + self.insuranceMaxcashPln, input_name="insuranceMaxcashPln" + ), + namespaceprefix_, + eol_, + ) + ) + if self.zipformatInfo is not None: + namespaceprefix_ = ( + self.zipformatInfo_nsprefix_ + ":" + if (UseCapturedNS_ and self.zipformatInfo_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%szipformatInfo>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.zipformatInfo), input_name="zipformatInfo" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.printReceiversPhone is not None: + namespaceprefix_ = ( + self.printReceiversPhone_nsprefix_ + ":" + if (UseCapturedNS_ and self.printReceiversPhone_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sprintReceiversPhone>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.printReceiversPhone, input_name="printReceiversPhone" + ), + namespaceprefix_, + eol_, + ) + ) + if self.countryUe is not None: + namespaceprefix_ = ( + self.countryUe_nsprefix_ + ":" + if (UseCapturedNS_ and self.countryUe_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scountryUe>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean(self.countryUe, input_name="countryUe"), + namespaceprefix_, + eol_, + ) + ) + if self.deliveryOptionEn is not None: + namespaceprefix_ = ( + self.deliveryOptionEn_nsprefix_ + ":" + if (UseCapturedNS_ and self.deliveryOptionEn_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sdeliveryOptionEn>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.deliveryOptionEn), + input_name="deliveryOptionEn", + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.deliveryInfoEn is not None: + namespaceprefix_ = ( + self.deliveryInfoEn_nsprefix_ + ":" + if (UseCapturedNS_ and self.deliveryInfoEn_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sdeliveryInfoEn>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.deliveryInfoEn), input_name="deliveryInfoEn" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.zipformatInfoEn is not None: + namespaceprefix_ = ( + self.zipformatInfoEn_nsprefix_ + ":" + if (UseCapturedNS_ and self.zipformatInfoEn_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%szipformatInfoEn>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.zipformatInfoEn), + input_name="zipformatInfoEn", + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.countryCode3 is not None: + namespaceprefix_ = ( + self.countryCode3_nsprefix_ + ":" + if (UseCapturedNS_ and self.countryCode3_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scountryCode3>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.countryCode3), input_name="countryCode3" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.mobPhoneSen is not None: + namespaceprefix_ = ( + self.mobPhoneSen_nsprefix_ + ":" + if (UseCapturedNS_ and self.mobPhoneSen_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%smobPhoneSen>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean(self.mobPhoneSen, input_name="mobPhoneSen"), + namespaceprefix_, + eol_, + ) + ) + if self.routeLabel is not None: + namespaceprefix_ = ( + self.routeLabel_nsprefix_ + ":" + if (UseCapturedNS_ and self.routeLabel_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%srouteLabel>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.routeLabel), input_name="routeLabel" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.maxValue is not None: + namespaceprefix_ = ( + self.maxValue_nsprefix_ + ":" + if (UseCapturedNS_ and self.maxValue_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%smaxValue>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.maxValue, input_name="maxValue"), + namespaceprefix_, + eol_, + ) + ) + if self.productName is not None: + namespaceprefix_ = ( + self.productName_nsprefix_ + ":" + if (UseCapturedNS_ and self.productName_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sproductName>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.productName), input_name="productName" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.dutyIndividual is not None: + namespaceprefix_ = ( + self.dutyIndividual_nsprefix_ + ":" + if (UseCapturedNS_ and self.dutyIndividual_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sdutyIndividual>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.dutyIndividual, input_name="dutyIndividual" + ), + namespaceprefix_, + eol_, + ) + ) + if self.dutySimple is not None: + namespaceprefix_ = ( + self.dutySimple_nsprefix_ + ":" + if (UseCapturedNS_ and self.dutySimple_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sdutySimple>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean(self.dutySimple, input_name="dutySimple"), + namespaceprefix_, + eol_, + ) + ) + if self.dhl24Available is not None: + namespaceprefix_ = ( + self.dhl24Available_nsprefix_ + ":" + if (UseCapturedNS_ and self.dhl24Available_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sdhl24Available>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.dhl24Available, input_name="dhl24Available" + ), + namespaceprefix_, + eol_, + ) + ) + if self.dhl24FuAvailable is not None: + namespaceprefix_ = ( + self.dhl24FuAvailable_nsprefix_ + ":" + if (UseCapturedNS_ and self.dhl24FuAvailable_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sdhl24FuAvailable>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.dhl24FuAvailable, input_name="dhl24FuAvailable" + ), + namespaceprefix_, + eol_, + ) + ) + if self.isbAvailable is not None: + namespaceprefix_ = ( + self.isbAvailable_nsprefix_ + ":" + if (UseCapturedNS_ and self.isbAvailable_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sisbAvailable>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.isbAvailable, input_name="isbAvailable" + ), + namespaceprefix_, + eol_, + ) + ) + if self.psmAvailable is not None: + namespaceprefix_ = ( + self.psmAvailable_nsprefix_ + ":" + if (UseCapturedNS_ and self.psmAvailable_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spsmAvailable>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.psmAvailable, input_name="psmAvailable" + ), + namespaceprefix_, + eol_, + ) + ) + if self.mobPhoneSpRec is not None: + namespaceprefix_ = ( + self.mobPhoneSpRec_nsprefix_ + ":" + if (UseCapturedNS_ and self.mobPhoneSpRec_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%smobPhoneSpRec>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.mobPhoneSpRec, input_name="mobPhoneSpRec" + ), + namespaceprefix_, + eol_, + ) + ) + if self.emailSpRec is not None: + namespaceprefix_ = ( + self.emailSpRec_nsprefix_ + ":" + if (UseCapturedNS_ and self.emailSpRec_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%semailSpRec>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean(self.emailSpRec, input_name="emailSpRec"), + namespaceprefix_, + eol_, + ) + ) + if self.emailPlRec is not None: + namespaceprefix_ = ( + self.emailPlRec_nsprefix_ + ":" + if (UseCapturedNS_ and self.emailPlRec_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%semailPlRec>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean(self.emailPlRec, input_name="emailPlRec"), + namespaceprefix_, + eol_, + ) + ) + if self.mobPhonePlRec is not None: + namespaceprefix_ = ( + self.mobPhonePlRec_nsprefix_ + ":" + if (UseCapturedNS_ and self.mobPhonePlRec_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%smobPhonePlRec>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.mobPhonePlRec, input_name="mobPhonePlRec" + ), + namespaceprefix_, + eol_, + ) + ) + if self.podAvailable is not None: + namespaceprefix_ = ( + self.podAvailable_nsprefix_ + ":" + if (UseCapturedNS_ and self.podAvailable_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spodAvailable>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.podAvailable, input_name="podAvailable" + ), + namespaceprefix_, + eol_, + ) + ) + if self.minLength is not None: + namespaceprefix_ = ( + self.minLength_nsprefix_ + ":" + if (UseCapturedNS_ and self.minLength_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sminLength>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.minLength, input_name="minLength"), + namespaceprefix_, + eol_, + ) + ) + if self.minWidth is not None: + namespaceprefix_ = ( + self.minWidth_nsprefix_ + ":" + if (UseCapturedNS_ and self.minWidth_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sminWidth>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.minWidth, input_name="minWidth"), + namespaceprefix_, + eol_, + ) + ) + if self.minHeight is not None: + namespaceprefix_ = ( + self.minHeight_nsprefix_ + ":" + if (UseCapturedNS_ and self.minHeight_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sminHeight>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.minHeight, input_name="minHeight"), + namespaceprefix_, + eol_, + ) + ) + if self.fmNstKurier is not None: + namespaceprefix_ = ( + self.fmNstKurier_nsprefix_ + ":" + if (UseCapturedNS_ and self.fmNstKurier_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sfmNstKurier>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean(self.fmNstKurier, input_name="fmNstKurier"), + namespaceprefix_, + eol_, + ) + ) + if self.adhocpickup is not None: + namespaceprefix_ = ( + self.adhocpickup_nsprefix_ + ":" + if (UseCapturedNS_ and self.adhocpickup_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sadhocpickup>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean(self.adhocpickup, input_name="adhocpickup"), + namespaceprefix_, + eol_, + ) + ) + if self.fmNstPf is not None: + namespaceprefix_ = ( + self.fmNstPf_nsprefix_ + ":" + if (UseCapturedNS_ and self.fmNstPf_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sfmNstPf>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean(self.fmNstPf, input_name="fmNstPf"), + namespaceprefix_, + eol_, + ) + ) + if self.fmNstPs is not None: + namespaceprefix_ = ( + self.fmNstPs_nsprefix_ + ":" + if (UseCapturedNS_ and self.fmNstPs_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sfmNstPs>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean(self.fmNstPs, input_name="fmNstPs"), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "customerType": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "customerType") + value_ = self.gds_validate_string(value_, node, "customerType") + self.customerType = value_ + self.customerType_nsprefix_ = child_.prefix + elif nodeName_ == "elementType": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "elementType") + value_ = self.gds_validate_string(value_, node, "elementType") + self.elementType = value_ + self.elementType_nsprefix_ = child_.prefix + elif nodeName_ == "pickUpDays": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "pickUpDays") + value_ = self.gds_validate_string(value_, node, "pickUpDays") + self.pickUpDays = value_ + self.pickUpDays_nsprefix_ = child_.prefix + elif nodeName_ == "product": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "product") + value_ = self.gds_validate_string(value_, node, "product") + self.product = value_ + self.product_nsprefix_ = child_.prefix + elif nodeName_ == "pieceHeader": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "pieceHeader") + value_ = self.gds_validate_string(value_, node, "pieceHeader") + self.pieceHeader = value_ + self.pieceHeader_nsprefix_ = child_.prefix + elif nodeName_ == "routing": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "routing") + value_ = self.gds_validate_string(value_, node, "routing") + self.routing = value_ + self.routing_nsprefix_ = child_.prefix + elif nodeName_ == "code" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "code") + ival_ = self.gds_validate_integer(ival_, node, "code") + self.code = ival_ + self.code_nsprefix_ = child_.prefix + elif nodeName_ == "maxWeight" and child_.text: + sval_ = child_.text + fval_ = self.gds_parse_float(sval_, node, "maxWeight") + fval_ = self.gds_validate_float(fval_, node, "maxWeight") + self.maxWeight = fval_ + self.maxWeight_nsprefix_ = child_.prefix + elif nodeName_ == "maxWidth" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "maxWidth") + ival_ = self.gds_validate_integer(ival_, node, "maxWidth") + self.maxWidth = ival_ + self.maxWidth_nsprefix_ = child_.prefix + elif nodeName_ == "maxLength" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "maxLength") + ival_ = self.gds_validate_integer(ival_, node, "maxLength") + self.maxLength = ival_ + self.maxLength_nsprefix_ = child_.prefix + elif nodeName_ == "maxHeight" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "maxHeight") + ival_ = self.gds_validate_integer(ival_, node, "maxHeight") + self.maxHeight = ival_ + self.maxHeight_nsprefix_ = child_.prefix + elif nodeName_ == "maxShipmentWeight" and child_.text: + sval_ = child_.text + fval_ = self.gds_parse_float(sval_, node, "maxShipmentWeight") + fval_ = self.gds_validate_float(fval_, node, "maxShipmentWeight") + self.maxShipmentWeight = fval_ + self.maxShipmentWeight_nsprefix_ = child_.prefix + elif nodeName_ == "maxShipmentPc" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "maxShipmentPc") + ival_ = self.gds_validate_integer(ival_, node, "maxShipmentPc") + self.maxShipmentPc = ival_ + self.maxShipmentPc_nsprefix_ = child_.prefix + elif nodeName_ == "maxCod" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "maxCod") + ival_ = self.gds_validate_integer(ival_, node, "maxCod") + self.maxCod = ival_ + self.maxCod_nsprefix_ = child_.prefix + elif nodeName_ == "codCurrency": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "codCurrency") + value_ = self.gds_validate_string(value_, node, "codCurrency") + self.codCurrency = value_ + self.codCurrency_nsprefix_ = child_.prefix + elif nodeName_ == "exchRate" and child_.text: + sval_ = child_.text + fval_ = self.gds_parse_float(sval_, node, "exchRate") + fval_ = self.gds_validate_float(fval_, node, "exchRate") + self.exchRate = fval_ + self.exchRate_nsprefix_ = child_.prefix + elif nodeName_ == "nst": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "nst") + ival_ = self.gds_validate_boolean(ival_, node, "nst") + self.nst = ival_ + self.nst_nsprefix_ = child_.prefix + elif nodeName_ == "maxNst" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "maxNst") + ival_ = self.gds_validate_integer(ival_, node, "maxNst") + self.maxNst = ival_ + self.maxNst_nsprefix_ = child_.prefix + elif nodeName_ == "girth" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "girth") + ival_ = self.gds_validate_integer(ival_, node, "girth") + self.girth = ival_ + self.girth_nsprefix_ = child_.prefix + elif nodeName_ == "packstation": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "packstation") + ival_ = self.gds_validate_boolean(ival_, node, "packstation") + self.packstation = ival_ + self.packstation_nsprefix_ = child_.prefix + elif nodeName_ == "psMaxWeight" and child_.text: + sval_ = child_.text + fval_ = self.gds_parse_float(sval_, node, "psMaxWeight") + fval_ = self.gds_validate_float(fval_, node, "psMaxWeight") + self.psMaxWeight = fval_ + self.psMaxWeight_nsprefix_ = child_.prefix + elif nodeName_ == "psMaxLength" and child_.text: + sval_ = child_.text + fval_ = self.gds_parse_float(sval_, node, "psMaxLength") + fval_ = self.gds_validate_float(fval_, node, "psMaxLength") + self.psMaxLength = fval_ + self.psMaxLength_nsprefix_ = child_.prefix + elif nodeName_ == "psMaxWidth" and child_.text: + sval_ = child_.text + fval_ = self.gds_parse_float(sval_, node, "psMaxWidth") + fval_ = self.gds_validate_float(fval_, node, "psMaxWidth") + self.psMaxWidth = fval_ + self.psMaxWidth_nsprefix_ = child_.prefix + elif nodeName_ == "psMaxHeight" and child_.text: + sval_ = child_.text + fval_ = self.gds_parse_float(sval_, node, "psMaxHeight") + fval_ = self.gds_validate_float(fval_, node, "psMaxHeight") + self.psMaxHeight = fval_ + self.psMaxHeight_nsprefix_ = child_.prefix + elif nodeName_ == "postfiliale" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "postfiliale") + ival_ = self.gds_validate_integer(ival_, node, "postfiliale") + self.postfiliale = ival_ + self.postfiliale_nsprefix_ = child_.prefix + elif nodeName_ == "pfMaxWeight" and child_.text: + sval_ = child_.text + fval_ = self.gds_parse_float(sval_, node, "pfMaxWeight") + fval_ = self.gds_validate_float(fval_, node, "pfMaxWeight") + self.pfMaxWeight = fval_ + self.pfMaxWeight_nsprefix_ = child_.prefix + elif nodeName_ == "pfMaxWidth" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "pfMaxWidth") + ival_ = self.gds_validate_integer(ival_, node, "pfMaxWidth") + self.pfMaxWidth = ival_ + self.pfMaxWidth_nsprefix_ = child_.prefix + elif nodeName_ == "pfMaxHeight" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "pfMaxHeight") + ival_ = self.gds_validate_integer(ival_, node, "pfMaxHeight") + self.pfMaxHeight = ival_ + self.pfMaxHeight_nsprefix_ = child_.prefix + elif nodeName_ == "pfMaxLength" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "pfMaxLength") + ival_ = self.gds_validate_integer(ival_, node, "pfMaxLength") + self.pfMaxLength = ival_ + self.pfMaxLength_nsprefix_ = child_.prefix + elif nodeName_ == "zipFormat": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "zipFormat") + value_ = self.gds_validate_string(value_, node, "zipFormat") + self.zipFormat = value_ + self.zipFormat_nsprefix_ = child_.prefix + elif nodeName_ == "active": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "active") + ival_ = self.gds_validate_boolean(ival_, node, "active") + self.active = ival_ + self.active_nsprefix_ = child_.prefix + elif nodeName_ == "identifier": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "identifier") + value_ = self.gds_validate_string(value_, node, "identifier") + self.identifier = value_ + self.identifier_nsprefix_ = child_.prefix + elif nodeName_ == "emailRec": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "emailRec") + ival_ = self.gds_validate_boolean(ival_, node, "emailRec") + self.emailRec = ival_ + self.emailRec_nsprefix_ = child_.prefix + elif nodeName_ == "deliveryMethod": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "deliveryMethod") + value_ = self.gds_validate_string(value_, node, "deliveryMethod") + self.deliveryMethod = value_ + self.deliveryMethod_nsprefix_ = child_.prefix + elif nodeName_ == "deliveryOption": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "deliveryOption") + value_ = self.gds_validate_string(value_, node, "deliveryOption") + self.deliveryOption = value_ + self.deliveryOption_nsprefix_ = child_.prefix + elif nodeName_ == "deliveryInfo": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "deliveryInfo") + value_ = self.gds_validate_string(value_, node, "deliveryInfo") + self.deliveryInfo = value_ + self.deliveryInfo_nsprefix_ = child_.prefix + elif nodeName_ == "tntUrl": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "tntUrl") + value_ = self.gds_validate_string(value_, node, "tntUrl") + self.tntUrl = value_ + self.tntUrl_nsprefix_ = child_.prefix + elif nodeName_ == "emailSen": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "emailSen") + ival_ = self.gds_validate_boolean(ival_, node, "emailSen") + self.emailSen = ival_ + self.emailSen_nsprefix_ = child_.prefix + elif nodeName_ == "mobPhoneRec": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "mobPhoneRec") + ival_ = self.gds_validate_boolean(ival_, node, "mobPhoneRec") + self.mobPhoneRec = ival_ + self.mobPhoneRec_nsprefix_ = child_.prefix + elif nodeName_ == "insuranceBase" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "insuranceBase") + ival_ = self.gds_validate_integer(ival_, node, "insuranceBase") + self.insuranceBase = ival_ + self.insuranceBase_nsprefix_ = child_.prefix + elif nodeName_ == "insuranceMaxcashPln" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "insuranceMaxcashPln") + ival_ = self.gds_validate_integer(ival_, node, "insuranceMaxcashPln") + self.insuranceMaxcashPln = ival_ + self.insuranceMaxcashPln_nsprefix_ = child_.prefix + elif nodeName_ == "zipformatInfo": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "zipformatInfo") + value_ = self.gds_validate_string(value_, node, "zipformatInfo") + self.zipformatInfo = value_ + self.zipformatInfo_nsprefix_ = child_.prefix + elif nodeName_ == "printReceiversPhone": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "printReceiversPhone") + ival_ = self.gds_validate_boolean(ival_, node, "printReceiversPhone") + self.printReceiversPhone = ival_ + self.printReceiversPhone_nsprefix_ = child_.prefix + elif nodeName_ == "countryUe": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "countryUe") + ival_ = self.gds_validate_boolean(ival_, node, "countryUe") + self.countryUe = ival_ + self.countryUe_nsprefix_ = child_.prefix + elif nodeName_ == "deliveryOptionEn": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "deliveryOptionEn") + value_ = self.gds_validate_string(value_, node, "deliveryOptionEn") + self.deliveryOptionEn = value_ + self.deliveryOptionEn_nsprefix_ = child_.prefix + elif nodeName_ == "deliveryInfoEn": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "deliveryInfoEn") + value_ = self.gds_validate_string(value_, node, "deliveryInfoEn") + self.deliveryInfoEn = value_ + self.deliveryInfoEn_nsprefix_ = child_.prefix + elif nodeName_ == "zipformatInfoEn": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "zipformatInfoEn") + value_ = self.gds_validate_string(value_, node, "zipformatInfoEn") + self.zipformatInfoEn = value_ + self.zipformatInfoEn_nsprefix_ = child_.prefix + elif nodeName_ == "countryCode3": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "countryCode3") + value_ = self.gds_validate_string(value_, node, "countryCode3") + self.countryCode3 = value_ + self.countryCode3_nsprefix_ = child_.prefix + elif nodeName_ == "mobPhoneSen": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "mobPhoneSen") + ival_ = self.gds_validate_boolean(ival_, node, "mobPhoneSen") + self.mobPhoneSen = ival_ + self.mobPhoneSen_nsprefix_ = child_.prefix + elif nodeName_ == "routeLabel": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "routeLabel") + value_ = self.gds_validate_string(value_, node, "routeLabel") + self.routeLabel = value_ + self.routeLabel_nsprefix_ = child_.prefix + elif nodeName_ == "maxValue" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "maxValue") + ival_ = self.gds_validate_integer(ival_, node, "maxValue") + self.maxValue = ival_ + self.maxValue_nsprefix_ = child_.prefix + elif nodeName_ == "productName": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "productName") + value_ = self.gds_validate_string(value_, node, "productName") + self.productName = value_ + self.productName_nsprefix_ = child_.prefix + elif nodeName_ == "dutyIndividual": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "dutyIndividual") + ival_ = self.gds_validate_boolean(ival_, node, "dutyIndividual") + self.dutyIndividual = ival_ + self.dutyIndividual_nsprefix_ = child_.prefix + elif nodeName_ == "dutySimple": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "dutySimple") + ival_ = self.gds_validate_boolean(ival_, node, "dutySimple") + self.dutySimple = ival_ + self.dutySimple_nsprefix_ = child_.prefix + elif nodeName_ == "dhl24Available": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "dhl24Available") + ival_ = self.gds_validate_boolean(ival_, node, "dhl24Available") + self.dhl24Available = ival_ + self.dhl24Available_nsprefix_ = child_.prefix + elif nodeName_ == "dhl24FuAvailable": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "dhl24FuAvailable") + ival_ = self.gds_validate_boolean(ival_, node, "dhl24FuAvailable") + self.dhl24FuAvailable = ival_ + self.dhl24FuAvailable_nsprefix_ = child_.prefix + elif nodeName_ == "isbAvailable": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "isbAvailable") + ival_ = self.gds_validate_boolean(ival_, node, "isbAvailable") + self.isbAvailable = ival_ + self.isbAvailable_nsprefix_ = child_.prefix + elif nodeName_ == "psmAvailable": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "psmAvailable") + ival_ = self.gds_validate_boolean(ival_, node, "psmAvailable") + self.psmAvailable = ival_ + self.psmAvailable_nsprefix_ = child_.prefix + elif nodeName_ == "mobPhoneSpRec": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "mobPhoneSpRec") + ival_ = self.gds_validate_boolean(ival_, node, "mobPhoneSpRec") + self.mobPhoneSpRec = ival_ + self.mobPhoneSpRec_nsprefix_ = child_.prefix + elif nodeName_ == "emailSpRec": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "emailSpRec") + ival_ = self.gds_validate_boolean(ival_, node, "emailSpRec") + self.emailSpRec = ival_ + self.emailSpRec_nsprefix_ = child_.prefix + elif nodeName_ == "emailPlRec": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "emailPlRec") + ival_ = self.gds_validate_boolean(ival_, node, "emailPlRec") + self.emailPlRec = ival_ + self.emailPlRec_nsprefix_ = child_.prefix + elif nodeName_ == "mobPhonePlRec": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "mobPhonePlRec") + ival_ = self.gds_validate_boolean(ival_, node, "mobPhonePlRec") + self.mobPhonePlRec = ival_ + self.mobPhonePlRec_nsprefix_ = child_.prefix + elif nodeName_ == "podAvailable": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "podAvailable") + ival_ = self.gds_validate_boolean(ival_, node, "podAvailable") + self.podAvailable = ival_ + self.podAvailable_nsprefix_ = child_.prefix + elif nodeName_ == "minLength" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "minLength") + ival_ = self.gds_validate_integer(ival_, node, "minLength") + self.minLength = ival_ + self.minLength_nsprefix_ = child_.prefix + elif nodeName_ == "minWidth" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "minWidth") + ival_ = self.gds_validate_integer(ival_, node, "minWidth") + self.minWidth = ival_ + self.minWidth_nsprefix_ = child_.prefix + elif nodeName_ == "minHeight" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "minHeight") + ival_ = self.gds_validate_integer(ival_, node, "minHeight") + self.minHeight = ival_ + self.minHeight_nsprefix_ = child_.prefix + elif nodeName_ == "fmNstKurier": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "fmNstKurier") + ival_ = self.gds_validate_boolean(ival_, node, "fmNstKurier") + self.fmNstKurier = ival_ + self.fmNstKurier_nsprefix_ = child_.prefix + elif nodeName_ == "adhocpickup": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "adhocpickup") + ival_ = self.gds_validate_boolean(ival_, node, "adhocpickup") + self.adhocpickup = ival_ + self.adhocpickup_nsprefix_ = child_.prefix + elif nodeName_ == "fmNstPf": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "fmNstPf") + ival_ = self.gds_validate_boolean(ival_, node, "fmNstPf") + self.fmNstPf = ival_ + self.fmNstPf_nsprefix_ = child_.prefix + elif nodeName_ == "fmNstPs": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "fmNstPs") + ival_ = self.gds_validate_boolean(ival_, node, "fmNstPs") + self.fmNstPs = ival_ + self.fmNstPs_nsprefix_ = child_.prefix + + +# end class ReturnPip2Param + + +class ArrayOfReturnpip2param(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, item=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + if item is None: + self.item = [] + else: + self.item = item + self.item_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, ArrayOfReturnpip2param + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ArrayOfReturnpip2param.subclass: + return ArrayOfReturnpip2param.subclass(*args_, **kwargs_) + else: + return ArrayOfReturnpip2param(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_item(self): + return self.item + + def set_item(self, item): + self.item = item + + def add_item(self, value): + self.item.append(value) + + def insert_item_at(self, index, value): + self.item.insert(index, value) + + def replace_item_at(self, index, value): + self.item[index] = value + + def _hasContent(self): + if self.item: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfReturnpip2param", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ArrayOfReturnpip2param") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ArrayOfReturnpip2param": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="ArrayOfReturnpip2param", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ArrayOfReturnpip2param", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ArrayOfReturnpip2param", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfReturnpip2param", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + for item_ in self.item: + namespaceprefix_ = ( + self.item_nsprefix_ + ":" + if (UseCapturedNS_ and self.item_nsprefix_) + else "" + ) + item_.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="item", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "item": + obj_ = ReturnPip2Param.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.item.append(obj_) + obj_.original_tagname_ = "item" + + +# end class ArrayOfReturnpip2param + + +class ReturnPip2Country(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + countryName=None, + countryNameEn=None, + countryCode=None, + products=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.countryName = countryName + self.countryName_nsprefix_ = None + self.countryNameEn = countryNameEn + self.countryNameEn_nsprefix_ = None + self.countryCode = countryCode + self.countryCode_nsprefix_ = None + self.products = products + self.products_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, ReturnPip2Country) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ReturnPip2Country.subclass: + return ReturnPip2Country.subclass(*args_, **kwargs_) + else: + return ReturnPip2Country(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_countryName(self): + return self.countryName + + def set_countryName(self, countryName): + self.countryName = countryName + + def get_countryNameEn(self): + return self.countryNameEn + + def set_countryNameEn(self, countryNameEn): + self.countryNameEn = countryNameEn + + def get_countryCode(self): + return self.countryCode + + def set_countryCode(self, countryCode): + self.countryCode = countryCode + + def get_products(self): + return self.products + + def set_products(self, products): + self.products = products + + def _hasContent(self): + if ( + self.countryName is not None + or self.countryNameEn is not None + or self.countryCode is not None + or self.products is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ReturnPip2Country", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ReturnPip2Country") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ReturnPip2Country": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="ReturnPip2Country", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ReturnPip2Country", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ReturnPip2Country", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ReturnPip2Country", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.countryName is not None: + namespaceprefix_ = ( + self.countryName_nsprefix_ + ":" + if (UseCapturedNS_ and self.countryName_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scountryName>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.countryName), input_name="countryName" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.countryNameEn is not None: + namespaceprefix_ = ( + self.countryNameEn_nsprefix_ + ":" + if (UseCapturedNS_ and self.countryNameEn_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scountryNameEn>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.countryNameEn), input_name="countryNameEn" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.countryCode is not None: + namespaceprefix_ = ( + self.countryCode_nsprefix_ + ":" + if (UseCapturedNS_ and self.countryCode_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scountryCode>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.countryCode), input_name="countryCode" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.products is not None: + namespaceprefix_ = ( + self.products_nsprefix_ + ":" + if (UseCapturedNS_ and self.products_nsprefix_) + else "" + ) + self.products.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="products", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "countryName": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "countryName") + value_ = self.gds_validate_string(value_, node, "countryName") + self.countryName = value_ + self.countryName_nsprefix_ = child_.prefix + elif nodeName_ == "countryNameEn": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "countryNameEn") + value_ = self.gds_validate_string(value_, node, "countryNameEn") + self.countryNameEn = value_ + self.countryNameEn_nsprefix_ = child_.prefix + elif nodeName_ == "countryCode": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "countryCode") + value_ = self.gds_validate_string(value_, node, "countryCode") + self.countryCode = value_ + self.countryCode_nsprefix_ = child_.prefix + elif nodeName_ == "products": + obj_ = ArrayOfReturnpip2param.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.products = obj_ + obj_.original_tagname_ = "products" + + +# end class ReturnPip2Country + + +class ArrayOfReturnpip2country(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, item=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + if item is None: + self.item = [] + else: + self.item = item + self.item_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, ArrayOfReturnpip2country + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ArrayOfReturnpip2country.subclass: + return ArrayOfReturnpip2country.subclass(*args_, **kwargs_) + else: + return ArrayOfReturnpip2country(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_item(self): + return self.item + + def set_item(self, item): + self.item = item + + def add_item(self, value): + self.item.append(value) + + def insert_item_at(self, index, value): + self.item.insert(index, value) + + def replace_item_at(self, index, value): + self.item[index] = value + + def _hasContent(self): + if self.item: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfReturnpip2country", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ArrayOfReturnpip2country") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ArrayOfReturnpip2country": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="ArrayOfReturnpip2country", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ArrayOfReturnpip2country", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ArrayOfReturnpip2country", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfReturnpip2country", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + for item_ in self.item: + namespaceprefix_ = ( + self.item_nsprefix_ + ":" + if (UseCapturedNS_ and self.item_nsprefix_) + else "" + ) + item_.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="item", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "item": + obj_ = ReturnPip2Country.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.item.append(obj_) + obj_.original_tagname_ = "item" + + +# end class ArrayOfReturnpip2country + + +class GetPip2Response(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, params=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.params = params + self.params_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, GetPip2Response) + if subclass is not None: + return subclass(*args_, **kwargs_) + if GetPip2Response.subclass: + return GetPip2Response.subclass(*args_, **kwargs_) + else: + return GetPip2Response(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_params(self): + return self.params + + def set_params(self, params): + self.params = params + + def _hasContent(self): + if self.params is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="GetPip2Response", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("GetPip2Response") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "GetPip2Response": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="GetPip2Response" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="GetPip2Response", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="GetPip2Response", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="GetPip2Response", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.params is not None: + namespaceprefix_ = ( + self.params_nsprefix_ + ":" + if (UseCapturedNS_ and self.params_nsprefix_) + else "" + ) + self.params.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="params", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "params": + obj_ = ArrayOfReturnpip2country.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.params = obj_ + obj_.original_tagname_ = "params" + + +# end class GetPip2Response + + +class getInternationalParams2Response(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, getInternationalParams2Result=None, gds_collector_=None, **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.getInternationalParams2Result = getInternationalParams2Result + self.getInternationalParams2Result_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, getInternationalParams2Response + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if getInternationalParams2Response.subclass: + return getInternationalParams2Response.subclass(*args_, **kwargs_) + else: + return getInternationalParams2Response(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_getInternationalParams2Result(self): + return self.getInternationalParams2Result + + def set_getInternationalParams2Result(self, getInternationalParams2Result): + self.getInternationalParams2Result = getInternationalParams2Result + + def _hasContent(self): + if self.getInternationalParams2Result is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getInternationalParams2Response", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get( + "getInternationalParams2Response" + ) + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if ( + self.original_tagname_ is not None + and name_ == "getInternationalParams2Response" + ): + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="getInternationalParams2Response", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="getInternationalParams2Response", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="getInternationalParams2Response", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getInternationalParams2Response", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.getInternationalParams2Result is not None: + namespaceprefix_ = ( + self.getInternationalParams2Result_nsprefix_ + ":" + if (UseCapturedNS_ and self.getInternationalParams2Result_nsprefix_) + else "" + ) + self.getInternationalParams2Result.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="getInternationalParams2Result", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "getInternationalParams2Result": + obj_ = GetPip2Response.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.getInternationalParams2Result = obj_ + obj_.original_tagname_ = "getInternationalParams2Result" + + +# end class getInternationalParams2Response + + +class PieceShipmentItem(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + shipmentNumber=None, + cedexNumber=None, + packageNumber=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.shipmentNumber = shipmentNumber + self.shipmentNumber_nsprefix_ = None + self.cedexNumber = cedexNumber + self.cedexNumber_nsprefix_ = None + self.packageNumber = packageNumber + self.packageNumber_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, PieceShipmentItem) + if subclass is not None: + return subclass(*args_, **kwargs_) + if PieceShipmentItem.subclass: + return PieceShipmentItem.subclass(*args_, **kwargs_) + else: + return PieceShipmentItem(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_shipmentNumber(self): + return self.shipmentNumber + + def set_shipmentNumber(self, shipmentNumber): + self.shipmentNumber = shipmentNumber + + def get_cedexNumber(self): + return self.cedexNumber + + def set_cedexNumber(self, cedexNumber): + self.cedexNumber = cedexNumber + + def get_packageNumber(self): + return self.packageNumber + + def set_packageNumber(self, packageNumber): + self.packageNumber = packageNumber + + def _hasContent(self): + if ( + self.shipmentNumber is not None + or self.cedexNumber is not None + or self.packageNumber is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="PieceShipmentItem", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("PieceShipmentItem") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "PieceShipmentItem": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="PieceShipmentItem", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="PieceShipmentItem", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="PieceShipmentItem", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="PieceShipmentItem", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.shipmentNumber is not None: + namespaceprefix_ = ( + self.shipmentNumber_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipmentNumber_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sshipmentNumber>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer( + self.shipmentNumber, input_name="shipmentNumber" + ), + namespaceprefix_, + eol_, + ) + ) + if self.cedexNumber is not None: + namespaceprefix_ = ( + self.cedexNumber_nsprefix_ + ":" + if (UseCapturedNS_ and self.cedexNumber_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scedexNumber>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.cedexNumber), input_name="cedexNumber" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.packageNumber is not None: + namespaceprefix_ = ( + self.packageNumber_nsprefix_ + ":" + if (UseCapturedNS_ and self.packageNumber_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spackageNumber>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.packageNumber), input_name="packageNumber" + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "shipmentNumber" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "shipmentNumber") + ival_ = self.gds_validate_integer(ival_, node, "shipmentNumber") + self.shipmentNumber = ival_ + self.shipmentNumber_nsprefix_ = child_.prefix + elif nodeName_ == "cedexNumber": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "cedexNumber") + value_ = self.gds_validate_string(value_, node, "cedexNumber") + self.cedexNumber = value_ + self.cedexNumber_nsprefix_ = child_.prefix + elif nodeName_ == "packageNumber": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "packageNumber") + value_ = self.gds_validate_string(value_, node, "packageNumber") + self.packageNumber = value_ + self.packageNumber_nsprefix_ = child_.prefix + + +# end class PieceShipmentItem + + +class ArrayOfPieceshipmentitem(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, item=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + if item is None: + self.item = [] + else: + self.item = item + self.item_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, ArrayOfPieceshipmentitem + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ArrayOfPieceshipmentitem.subclass: + return ArrayOfPieceshipmentitem.subclass(*args_, **kwargs_) + else: + return ArrayOfPieceshipmentitem(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_item(self): + return self.item + + def set_item(self, item): + self.item = item + + def add_item(self, value): + self.item.append(value) + + def insert_item_at(self, index, value): + self.item.insert(index, value) + + def replace_item_at(self, index, value): + self.item[index] = value + + def _hasContent(self): + if self.item: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfPieceshipmentitem", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ArrayOfPieceshipmentitem") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ArrayOfPieceshipmentitem": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="ArrayOfPieceshipmentitem", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ArrayOfPieceshipmentitem", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ArrayOfPieceshipmentitem", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfPieceshipmentitem", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + for item_ in self.item: + namespaceprefix_ = ( + self.item_nsprefix_ + ":" + if (UseCapturedNS_ and self.item_nsprefix_) + else "" + ) + item_.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="item", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "item": + obj_ = PieceShipmentItem.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.item.append(obj_) + obj_.original_tagname_ = "item" + + +# end class ArrayOfPieceshipmentitem + + +class GetPieceIdRequest(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, items=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.items = items + self.items_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, GetPieceIdRequest) + if subclass is not None: + return subclass(*args_, **kwargs_) + if GetPieceIdRequest.subclass: + return GetPieceIdRequest.subclass(*args_, **kwargs_) + else: + return GetPieceIdRequest(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_items(self): + return self.items + + def set_items(self, items): + self.items = items + + def _hasContent(self): + if self.items is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="GetPieceIdRequest", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("GetPieceIdRequest") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "GetPieceIdRequest": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="GetPieceIdRequest", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="GetPieceIdRequest", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="GetPieceIdRequest", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="GetPieceIdRequest", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.items is not None: + namespaceprefix_ = ( + self.items_nsprefix_ + ":" + if (UseCapturedNS_ and self.items_nsprefix_) + else "" + ) + self.items.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="items", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "items": + obj_ = ArrayOfPieceshipmentitem.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.items = obj_ + obj_.original_tagname_ = "items" + + +# end class GetPieceIdRequest + + +class getPieceId(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, authData=None, request=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.authData = authData + self.authData_nsprefix_ = "tns" + self.request = request + self.request_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, getPieceId) + if subclass is not None: + return subclass(*args_, **kwargs_) + if getPieceId.subclass: + return getPieceId.subclass(*args_, **kwargs_) + else: + return getPieceId(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_authData(self): + return self.authData + + def set_authData(self, authData): + self.authData = authData + + def get_request(self): + return self.request + + def set_request(self, request): + self.request = request + + def _hasContent(self): + if self.authData is not None or self.request is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getPieceId", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("getPieceId") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "getPieceId": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="getPieceId" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="getPieceId", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, outfile, level, already_processed, namespaceprefix_="", name_="getPieceId" + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getPieceId", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.authData is not None: + namespaceprefix_ = ( + self.authData_nsprefix_ + ":" + if (UseCapturedNS_ and self.authData_nsprefix_) + else "" + ) + self.authData.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="authData", + pretty_print=pretty_print, + ) + if self.request is not None: + namespaceprefix_ = ( + self.request_nsprefix_ + ":" + if (UseCapturedNS_ and self.request_nsprefix_) + else "" + ) + self.request.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="request", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "authData": + obj_ = AuthData.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.authData = obj_ + obj_.original_tagname_ = "authData" + elif nodeName_ == "request": + obj_ = GetPieceIdRequest.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.request = obj_ + obj_.original_tagname_ = "request" + + +# end class getPieceId + + +class Piece(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + packageNumber=None, + productType=None, + weightReal=None, + weighVolumetric=None, + width=None, + length=None, + height=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.packageNumber = packageNumber + self.packageNumber_nsprefix_ = None + self.productType = productType + self.productType_nsprefix_ = None + self.weightReal = weightReal + self.weightReal_nsprefix_ = None + self.weighVolumetric = weighVolumetric + self.weighVolumetric_nsprefix_ = None + self.width = width + self.width_nsprefix_ = None + self.length = length + self.length_nsprefix_ = None + self.height = height + self.height_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, Piece) + if subclass is not None: + return subclass(*args_, **kwargs_) + if Piece.subclass: + return Piece.subclass(*args_, **kwargs_) + else: + return Piece(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_packageNumber(self): + return self.packageNumber + + def set_packageNumber(self, packageNumber): + self.packageNumber = packageNumber + + def get_productType(self): + return self.productType + + def set_productType(self, productType): + self.productType = productType + + def get_weightReal(self): + return self.weightReal + + def set_weightReal(self, weightReal): + self.weightReal = weightReal + + def get_weighVolumetric(self): + return self.weighVolumetric + + def set_weighVolumetric(self, weighVolumetric): + self.weighVolumetric = weighVolumetric + + def get_width(self): + return self.width + + def set_width(self, width): + self.width = width + + def get_length(self): + return self.length + + def set_length(self, length): + self.length = length + + def get_height(self): + return self.height + + def set_height(self, height): + self.height = height + + def _hasContent(self): + if ( + self.packageNumber is not None + or self.productType is not None + or self.weightReal is not None + or self.weighVolumetric is not None + or self.width is not None + or self.length is not None + or self.height is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="Piece", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("Piece") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "Piece": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="Piece" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="Piece", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, outfile, level, already_processed, namespaceprefix_="", name_="Piece" + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="Piece", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.packageNumber is not None: + namespaceprefix_ = ( + self.packageNumber_nsprefix_ + ":" + if (UseCapturedNS_ and self.packageNumber_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spackageNumber>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.packageNumber), input_name="packageNumber" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.productType is not None: + namespaceprefix_ = ( + self.productType_nsprefix_ + ":" + if (UseCapturedNS_ and self.productType_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sproductType>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.productType), input_name="productType" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.weightReal is not None: + namespaceprefix_ = ( + self.weightReal_nsprefix_ + ":" + if (UseCapturedNS_ and self.weightReal_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sweightReal>%s%s" + % ( + namespaceprefix_, + self.gds_format_float(self.weightReal, input_name="weightReal"), + namespaceprefix_, + eol_, + ) + ) + if self.weighVolumetric is not None: + namespaceprefix_ = ( + self.weighVolumetric_nsprefix_ + ":" + if (UseCapturedNS_ and self.weighVolumetric_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sweighVolumetric>%s%s" + % ( + namespaceprefix_, + self.gds_format_float( + self.weighVolumetric, input_name="weighVolumetric" + ), + namespaceprefix_, + eol_, + ) + ) + if self.width is not None: + namespaceprefix_ = ( + self.width_nsprefix_ + ":" + if (UseCapturedNS_ and self.width_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%swidth>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.width, input_name="width"), + namespaceprefix_, + eol_, + ) + ) + if self.length is not None: + namespaceprefix_ = ( + self.length_nsprefix_ + ":" + if (UseCapturedNS_ and self.length_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%slength>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.length, input_name="length"), + namespaceprefix_, + eol_, + ) + ) + if self.height is not None: + namespaceprefix_ = ( + self.height_nsprefix_ + ":" + if (UseCapturedNS_ and self.height_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sheight>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.height, input_name="height"), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "packageNumber": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "packageNumber") + value_ = self.gds_validate_string(value_, node, "packageNumber") + self.packageNumber = value_ + self.packageNumber_nsprefix_ = child_.prefix + elif nodeName_ == "productType": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "productType") + value_ = self.gds_validate_string(value_, node, "productType") + self.productType = value_ + self.productType_nsprefix_ = child_.prefix + elif nodeName_ == "weightReal" and child_.text: + sval_ = child_.text + fval_ = self.gds_parse_float(sval_, node, "weightReal") + fval_ = self.gds_validate_float(fval_, node, "weightReal") + self.weightReal = fval_ + self.weightReal_nsprefix_ = child_.prefix + elif nodeName_ == "weighVolumetric" and child_.text: + sval_ = child_.text + fval_ = self.gds_parse_float(sval_, node, "weighVolumetric") + fval_ = self.gds_validate_float(fval_, node, "weighVolumetric") + self.weighVolumetric = fval_ + self.weighVolumetric_nsprefix_ = child_.prefix + elif nodeName_ == "width" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "width") + ival_ = self.gds_validate_integer(ival_, node, "width") + self.width = ival_ + self.width_nsprefix_ = child_.prefix + elif nodeName_ == "length" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "length") + ival_ = self.gds_validate_integer(ival_, node, "length") + self.length = ival_ + self.length_nsprefix_ = child_.prefix + elif nodeName_ == "height" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "height") + ival_ = self.gds_validate_integer(ival_, node, "height") + self.height = ival_ + self.height_nsprefix_ = child_.prefix + + +# end class Piece + + +class ArrayOfPiece(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, item=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + if item is None: + self.item = [] + else: + self.item = item + self.item_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, ArrayOfPiece) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ArrayOfPiece.subclass: + return ArrayOfPiece.subclass(*args_, **kwargs_) + else: + return ArrayOfPiece(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_item(self): + return self.item + + def set_item(self, item): + self.item = item + + def add_item(self, value): + self.item.append(value) + + def insert_item_at(self, index, value): + self.item.insert(index, value) + + def replace_item_at(self, index, value): + self.item[index] = value + + def _hasContent(self): + if self.item: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfPiece", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ArrayOfPiece") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ArrayOfPiece": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="ArrayOfPiece" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ArrayOfPiece", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ArrayOfPiece", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfPiece", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + for item_ in self.item: + namespaceprefix_ = ( + self.item_nsprefix_ + ":" + if (UseCapturedNS_ and self.item_nsprefix_) + else "" + ) + item_.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="item", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "item": + obj_ = Piece.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.item.append(obj_) + obj_.original_tagname_ = "item" + + +# end class ArrayOfPiece + + +class PieceShipment(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + shipmentNumber=None, + cedexNumber=None, + packages=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.shipmentNumber = shipmentNumber + self.shipmentNumber_nsprefix_ = None + self.cedexNumber = cedexNumber + self.cedexNumber_nsprefix_ = None + self.packages = packages + self.packages_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, PieceShipment) + if subclass is not None: + return subclass(*args_, **kwargs_) + if PieceShipment.subclass: + return PieceShipment.subclass(*args_, **kwargs_) + else: + return PieceShipment(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_shipmentNumber(self): + return self.shipmentNumber + + def set_shipmentNumber(self, shipmentNumber): + self.shipmentNumber = shipmentNumber + + def get_cedexNumber(self): + return self.cedexNumber + + def set_cedexNumber(self, cedexNumber): + self.cedexNumber = cedexNumber + + def get_packages(self): + return self.packages + + def set_packages(self, packages): + self.packages = packages + + def _hasContent(self): + if ( + self.shipmentNumber is not None + or self.cedexNumber is not None + or self.packages is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="PieceShipment", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("PieceShipment") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "PieceShipment": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="PieceShipment" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="PieceShipment", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="PieceShipment", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="PieceShipment", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.shipmentNumber is not None: + namespaceprefix_ = ( + self.shipmentNumber_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipmentNumber_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sshipmentNumber>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer( + self.shipmentNumber, input_name="shipmentNumber" + ), + namespaceprefix_, + eol_, + ) + ) + if self.cedexNumber is not None: + namespaceprefix_ = ( + self.cedexNumber_nsprefix_ + ":" + if (UseCapturedNS_ and self.cedexNumber_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scedexNumber>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.cedexNumber), input_name="cedexNumber" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.packages is not None: + namespaceprefix_ = ( + self.packages_nsprefix_ + ":" + if (UseCapturedNS_ and self.packages_nsprefix_) + else "" + ) + self.packages.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="packages", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "shipmentNumber" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "shipmentNumber") + ival_ = self.gds_validate_integer(ival_, node, "shipmentNumber") + self.shipmentNumber = ival_ + self.shipmentNumber_nsprefix_ = child_.prefix + elif nodeName_ == "cedexNumber": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "cedexNumber") + value_ = self.gds_validate_string(value_, node, "cedexNumber") + self.cedexNumber = value_ + self.cedexNumber_nsprefix_ = child_.prefix + elif nodeName_ == "packages": + obj_ = ArrayOfPiece.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.packages = obj_ + obj_.original_tagname_ = "packages" + + +# end class PieceShipment + + +class ArrayOfPieceshipment(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, item=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + if item is None: + self.item = [] + else: + self.item = item + self.item_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, ArrayOfPieceshipment + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ArrayOfPieceshipment.subclass: + return ArrayOfPieceshipment.subclass(*args_, **kwargs_) + else: + return ArrayOfPieceshipment(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_item(self): + return self.item + + def set_item(self, item): + self.item = item + + def add_item(self, value): + self.item.append(value) + + def insert_item_at(self, index, value): + self.item.insert(index, value) + + def replace_item_at(self, index, value): + self.item[index] = value + + def _hasContent(self): + if self.item: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfPieceshipment", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ArrayOfPieceshipment") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ArrayOfPieceshipment": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="ArrayOfPieceshipment", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ArrayOfPieceshipment", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ArrayOfPieceshipment", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfPieceshipment", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + for item_ in self.item: + namespaceprefix_ = ( + self.item_nsprefix_ + ":" + if (UseCapturedNS_ and self.item_nsprefix_) + else "" + ) + item_.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="item", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "item": + obj_ = PieceShipment.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.item.append(obj_) + obj_.original_tagname_ = "item" + + +# end class ArrayOfPieceshipment + + +class GetPieceIdResponse(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, shipments=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.shipments = shipments + self.shipments_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, GetPieceIdResponse + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if GetPieceIdResponse.subclass: + return GetPieceIdResponse.subclass(*args_, **kwargs_) + else: + return GetPieceIdResponse(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_shipments(self): + return self.shipments + + def set_shipments(self, shipments): + self.shipments = shipments + + def _hasContent(self): + if self.shipments is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="GetPieceIdResponse", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("GetPieceIdResponse") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "GetPieceIdResponse": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="GetPieceIdResponse", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="GetPieceIdResponse", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="GetPieceIdResponse", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="GetPieceIdResponse", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.shipments is not None: + namespaceprefix_ = ( + self.shipments_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipments_nsprefix_) + else "" + ) + self.shipments.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="shipments", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "shipments": + obj_ = ArrayOfPieceshipment.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.shipments = obj_ + obj_.original_tagname_ = "shipments" + + +# end class GetPieceIdResponse + + +class getPieceIdResponse(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, getPieceIdResult=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.getPieceIdResult = getPieceIdResult + self.getPieceIdResult_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, getPieceIdResponse + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if getPieceIdResponse.subclass: + return getPieceIdResponse.subclass(*args_, **kwargs_) + else: + return getPieceIdResponse(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_getPieceIdResult(self): + return self.getPieceIdResult + + def set_getPieceIdResult(self, getPieceIdResult): + self.getPieceIdResult = getPieceIdResult + + def _hasContent(self): + if self.getPieceIdResult is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getPieceIdResponse", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("getPieceIdResponse") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "getPieceIdResponse": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="getPieceIdResponse", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="getPieceIdResponse", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="getPieceIdResponse", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getPieceIdResponse", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.getPieceIdResult is not None: + namespaceprefix_ = ( + self.getPieceIdResult_nsprefix_ + ":" + if (UseCapturedNS_ and self.getPieceIdResult_nsprefix_) + else "" + ) + self.getPieceIdResult.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="getPieceIdResult", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "getPieceIdResult": + obj_ = GetPieceIdResponse.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.getPieceIdResult = obj_ + obj_.original_tagname_ = "getPieceIdResult" + + +# end class getPieceIdResponse + + +class ItemToLabelData(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, shipmentId=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.shipmentId = shipmentId + self.shipmentId_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, ItemToLabelData) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ItemToLabelData.subclass: + return ItemToLabelData.subclass(*args_, **kwargs_) + else: + return ItemToLabelData(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_shipmentId(self): + return self.shipmentId + + def set_shipmentId(self, shipmentId): + self.shipmentId = shipmentId + + def _hasContent(self): + if self.shipmentId is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ItemToLabelData", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ItemToLabelData") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ItemToLabelData": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="ItemToLabelData" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ItemToLabelData", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ItemToLabelData", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ItemToLabelData", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.shipmentId is not None: + namespaceprefix_ = ( + self.shipmentId_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipmentId_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sshipmentId>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.shipmentId), input_name="shipmentId" + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "shipmentId": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "shipmentId") + value_ = self.gds_validate_string(value_, node, "shipmentId") + self.shipmentId = value_ + self.shipmentId_nsprefix_ = child_.prefix + + +# end class ItemToLabelData + + +class ArrayOfItemtolabeldata(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, item=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + if item is None: + self.item = [] + else: + self.item = item + self.item_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, ArrayOfItemtolabeldata + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ArrayOfItemtolabeldata.subclass: + return ArrayOfItemtolabeldata.subclass(*args_, **kwargs_) + else: + return ArrayOfItemtolabeldata(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_item(self): + return self.item + + def set_item(self, item): + self.item = item + + def add_item(self, value): + self.item.append(value) + + def insert_item_at(self, index, value): + self.item.insert(index, value) + + def replace_item_at(self, index, value): + self.item[index] = value + + def _hasContent(self): + if self.item: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfItemtolabeldata", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ArrayOfItemtolabeldata") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ArrayOfItemtolabeldata": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="ArrayOfItemtolabeldata", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ArrayOfItemtolabeldata", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ArrayOfItemtolabeldata", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfItemtolabeldata", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + for item_ in self.item: + namespaceprefix_ = ( + self.item_nsprefix_ + ":" + if (UseCapturedNS_ and self.item_nsprefix_) + else "" + ) + item_.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="item", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "item": + obj_ = ItemToLabelData.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.item.append(obj_) + obj_.original_tagname_ = "item" + + +# end class ArrayOfItemtolabeldata + + +class getLabelsData(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, authData=None, itemsToLabelData=None, gds_collector_=None, **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.authData = authData + self.authData_nsprefix_ = "tns" + self.itemsToLabelData = itemsToLabelData + self.itemsToLabelData_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, getLabelsData) + if subclass is not None: + return subclass(*args_, **kwargs_) + if getLabelsData.subclass: + return getLabelsData.subclass(*args_, **kwargs_) + else: + return getLabelsData(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_authData(self): + return self.authData + + def set_authData(self, authData): + self.authData = authData + + def get_itemsToLabelData(self): + return self.itemsToLabelData + + def set_itemsToLabelData(self, itemsToLabelData): + self.itemsToLabelData = itemsToLabelData + + def _hasContent(self): + if self.authData is not None or self.itemsToLabelData is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getLabelsData", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("getLabelsData") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "getLabelsData": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="getLabelsData" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="getLabelsData", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="getLabelsData", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getLabelsData", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.authData is not None: + namespaceprefix_ = ( + self.authData_nsprefix_ + ":" + if (UseCapturedNS_ and self.authData_nsprefix_) + else "" + ) + self.authData.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="authData", + pretty_print=pretty_print, + ) + if self.itemsToLabelData is not None: + namespaceprefix_ = ( + self.itemsToLabelData_nsprefix_ + ":" + if (UseCapturedNS_ and self.itemsToLabelData_nsprefix_) + else "" + ) + self.itemsToLabelData.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="itemsToLabelData", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "authData": + obj_ = AuthData.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.authData = obj_ + obj_.original_tagname_ = "authData" + elif nodeName_ == "itemsToLabelData": + obj_ = ArrayOfItemtolabeldata.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.itemsToLabelData = obj_ + obj_.original_tagname_ = "itemsToLabelData" + + +# end class getLabelsData + + +class ShipmentTimeLabelData(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + labelExpDate=None, + shipmentDate=None, + shipmentStartHour=None, + shipmentEndHour=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.labelExpDate = labelExpDate + self.labelExpDate_nsprefix_ = None + self.shipmentDate = shipmentDate + self.shipmentDate_nsprefix_ = None + self.shipmentStartHour = shipmentStartHour + self.shipmentStartHour_nsprefix_ = None + self.shipmentEndHour = shipmentEndHour + self.shipmentEndHour_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, ShipmentTimeLabelData + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ShipmentTimeLabelData.subclass: + return ShipmentTimeLabelData.subclass(*args_, **kwargs_) + else: + return ShipmentTimeLabelData(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_labelExpDate(self): + return self.labelExpDate + + def set_labelExpDate(self, labelExpDate): + self.labelExpDate = labelExpDate + + def get_shipmentDate(self): + return self.shipmentDate + + def set_shipmentDate(self, shipmentDate): + self.shipmentDate = shipmentDate + + def get_shipmentStartHour(self): + return self.shipmentStartHour + + def set_shipmentStartHour(self, shipmentStartHour): + self.shipmentStartHour = shipmentStartHour + + def get_shipmentEndHour(self): + return self.shipmentEndHour + + def set_shipmentEndHour(self, shipmentEndHour): + self.shipmentEndHour = shipmentEndHour + + def _hasContent(self): + if ( + self.labelExpDate is not None + or self.shipmentDate is not None + or self.shipmentStartHour is not None + or self.shipmentEndHour is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ShipmentTimeLabelData", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ShipmentTimeLabelData") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ShipmentTimeLabelData": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="ShipmentTimeLabelData", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ShipmentTimeLabelData", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ShipmentTimeLabelData", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ShipmentTimeLabelData", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.labelExpDate is not None: + namespaceprefix_ = ( + self.labelExpDate_nsprefix_ + ":" + if (UseCapturedNS_ and self.labelExpDate_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%slabelExpDate>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.labelExpDate), input_name="labelExpDate" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.shipmentDate is not None: + namespaceprefix_ = ( + self.shipmentDate_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipmentDate_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sshipmentDate>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.shipmentDate), input_name="shipmentDate" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.shipmentStartHour is not None: + namespaceprefix_ = ( + self.shipmentStartHour_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipmentStartHour_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sshipmentStartHour>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.shipmentStartHour), + input_name="shipmentStartHour", + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.shipmentEndHour is not None: + namespaceprefix_ = ( + self.shipmentEndHour_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipmentEndHour_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sshipmentEndHour>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.shipmentEndHour), + input_name="shipmentEndHour", + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "labelExpDate": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "labelExpDate") + value_ = self.gds_validate_string(value_, node, "labelExpDate") + self.labelExpDate = value_ + self.labelExpDate_nsprefix_ = child_.prefix + elif nodeName_ == "shipmentDate": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "shipmentDate") + value_ = self.gds_validate_string(value_, node, "shipmentDate") + self.shipmentDate = value_ + self.shipmentDate_nsprefix_ = child_.prefix + elif nodeName_ == "shipmentStartHour": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "shipmentStartHour") + value_ = self.gds_validate_string(value_, node, "shipmentStartHour") + self.shipmentStartHour = value_ + self.shipmentStartHour_nsprefix_ = child_.prefix + elif nodeName_ == "shipmentEndHour": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "shipmentEndHour") + value_ = self.gds_validate_string(value_, node, "shipmentEndHour") + self.shipmentEndHour = value_ + self.shipmentEndHour_nsprefix_ = child_.prefix + + +# end class ShipmentTimeLabelData + + +class Routing(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + senderDepot=None, + receiverDepot=None, + senderAps=None, + receiverAps=None, + tourId=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.senderDepot = senderDepot + self.senderDepot_nsprefix_ = None + self.receiverDepot = receiverDepot + self.receiverDepot_nsprefix_ = None + self.senderAps = senderAps + self.senderAps_nsprefix_ = None + self.receiverAps = receiverAps + self.receiverAps_nsprefix_ = None + self.tourId = tourId + self.tourId_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, Routing) + if subclass is not None: + return subclass(*args_, **kwargs_) + if Routing.subclass: + return Routing.subclass(*args_, **kwargs_) + else: + return Routing(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_senderDepot(self): + return self.senderDepot + + def set_senderDepot(self, senderDepot): + self.senderDepot = senderDepot + + def get_receiverDepot(self): + return self.receiverDepot + + def set_receiverDepot(self, receiverDepot): + self.receiverDepot = receiverDepot + + def get_senderAps(self): + return self.senderAps + + def set_senderAps(self, senderAps): + self.senderAps = senderAps + + def get_receiverAps(self): + return self.receiverAps + + def set_receiverAps(self, receiverAps): + self.receiverAps = receiverAps + + def get_tourId(self): + return self.tourId + + def set_tourId(self, tourId): + self.tourId = tourId + + def _hasContent(self): + if ( + self.senderDepot is not None + or self.receiverDepot is not None + or self.senderAps is not None + or self.receiverAps is not None + or self.tourId is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="Routing", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("Routing") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "Routing": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="Routing" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="Routing", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, outfile, level, already_processed, namespaceprefix_="", name_="Routing" + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="Routing", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.senderDepot is not None: + namespaceprefix_ = ( + self.senderDepot_nsprefix_ + ":" + if (UseCapturedNS_ and self.senderDepot_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%ssenderDepot>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.senderDepot), input_name="senderDepot" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.receiverDepot is not None: + namespaceprefix_ = ( + self.receiverDepot_nsprefix_ + ":" + if (UseCapturedNS_ and self.receiverDepot_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sreceiverDepot>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.receiverDepot), input_name="receiverDepot" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.senderAps is not None: + namespaceprefix_ = ( + self.senderAps_nsprefix_ + ":" + if (UseCapturedNS_ and self.senderAps_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%ssenderAps>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.senderAps), input_name="senderAps" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.receiverAps is not None: + namespaceprefix_ = ( + self.receiverAps_nsprefix_ + ":" + if (UseCapturedNS_ and self.receiverAps_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sreceiverAps>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.receiverAps), input_name="receiverAps" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.tourId is not None: + namespaceprefix_ = ( + self.tourId_nsprefix_ + ":" + if (UseCapturedNS_ and self.tourId_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%stourId>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.tourId), input_name="tourId" + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "senderDepot": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "senderDepot") + value_ = self.gds_validate_string(value_, node, "senderDepot") + self.senderDepot = value_ + self.senderDepot_nsprefix_ = child_.prefix + elif nodeName_ == "receiverDepot": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "receiverDepot") + value_ = self.gds_validate_string(value_, node, "receiverDepot") + self.receiverDepot = value_ + self.receiverDepot_nsprefix_ = child_.prefix + elif nodeName_ == "senderAps": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "senderAps") + value_ = self.gds_validate_string(value_, node, "senderAps") + self.senderAps = value_ + self.senderAps_nsprefix_ = child_.prefix + elif nodeName_ == "receiverAps": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "receiverAps") + value_ = self.gds_validate_string(value_, node, "receiverAps") + self.receiverAps = value_ + self.receiverAps_nsprefix_ = child_.prefix + elif nodeName_ == "tourId": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "tourId") + value_ = self.gds_validate_string(value_, node, "tourId") + self.tourId = value_ + self.tourId_nsprefix_ = child_.prefix + + +# end class Routing + + +class ShipperAddressLabelData(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + contactPerson=None, + contactPhone=None, + contactEmail=None, + preavisoPhone=None, + preavisoEmail=None, + preavisoPerson=None, + country=None, + name=None, + postalCode=None, + city=None, + street=None, + houseNumber=None, + apartmentNumber=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.contactPerson = contactPerson + self.contactPerson_nsprefix_ = None + self.contactPhone = contactPhone + self.contactPhone_nsprefix_ = None + self.contactEmail = contactEmail + self.contactEmail_nsprefix_ = None + self.preavisoPhone = preavisoPhone + self.preavisoPhone_nsprefix_ = None + self.preavisoEmail = preavisoEmail + self.preavisoEmail_nsprefix_ = None + self.preavisoPerson = preavisoPerson + self.preavisoPerson_nsprefix_ = None + self.country = country + self.country_nsprefix_ = None + self.name = name + self.name_nsprefix_ = None + self.postalCode = postalCode + self.postalCode_nsprefix_ = None + self.city = city + self.city_nsprefix_ = None + self.street = street + self.street_nsprefix_ = None + self.houseNumber = houseNumber + self.houseNumber_nsprefix_ = None + self.apartmentNumber = apartmentNumber + self.apartmentNumber_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, ShipperAddressLabelData + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ShipperAddressLabelData.subclass: + return ShipperAddressLabelData.subclass(*args_, **kwargs_) + else: + return ShipperAddressLabelData(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_contactPerson(self): + return self.contactPerson + + def set_contactPerson(self, contactPerson): + self.contactPerson = contactPerson + + def get_contactPhone(self): + return self.contactPhone + + def set_contactPhone(self, contactPhone): + self.contactPhone = contactPhone + + def get_contactEmail(self): + return self.contactEmail + + def set_contactEmail(self, contactEmail): + self.contactEmail = contactEmail + + def get_preavisoPhone(self): + return self.preavisoPhone + + def set_preavisoPhone(self, preavisoPhone): + self.preavisoPhone = preavisoPhone + + def get_preavisoEmail(self): + return self.preavisoEmail + + def set_preavisoEmail(self, preavisoEmail): + self.preavisoEmail = preavisoEmail + + def get_preavisoPerson(self): + return self.preavisoPerson + + def set_preavisoPerson(self, preavisoPerson): + self.preavisoPerson = preavisoPerson + + def get_country(self): + return self.country + + def set_country(self, country): + self.country = country + + def get_name(self): + return self.name + + def set_name(self, name): + self.name = name + + def get_postalCode(self): + return self.postalCode + + def set_postalCode(self, postalCode): + self.postalCode = postalCode + + def get_city(self): + return self.city + + def set_city(self, city): + self.city = city + + def get_street(self): + return self.street + + def set_street(self, street): + self.street = street + + def get_houseNumber(self): + return self.houseNumber + + def set_houseNumber(self, houseNumber): + self.houseNumber = houseNumber + + def get_apartmentNumber(self): + return self.apartmentNumber + + def set_apartmentNumber(self, apartmentNumber): + self.apartmentNumber = apartmentNumber + + def _hasContent(self): + if ( + self.contactPerson is not None + or self.contactPhone is not None + or self.contactEmail is not None + or self.preavisoPhone is not None + or self.preavisoEmail is not None + or self.preavisoPerson is not None + or self.country is not None + or self.name is not None + or self.postalCode is not None + or self.city is not None + or self.street is not None + or self.houseNumber is not None + or self.apartmentNumber is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ShipperAddressLabelData", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ShipperAddressLabelData") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ShipperAddressLabelData": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="ShipperAddressLabelData", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ShipperAddressLabelData", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ShipperAddressLabelData", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ShipperAddressLabelData", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.contactPerson is not None: + namespaceprefix_ = ( + self.contactPerson_nsprefix_ + ":" + if (UseCapturedNS_ and self.contactPerson_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scontactPerson>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.contactPerson), input_name="contactPerson" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.contactPhone is not None: + namespaceprefix_ = ( + self.contactPhone_nsprefix_ + ":" + if (UseCapturedNS_ and self.contactPhone_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scontactPhone>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.contactPhone), input_name="contactPhone" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.contactEmail is not None: + namespaceprefix_ = ( + self.contactEmail_nsprefix_ + ":" + if (UseCapturedNS_ and self.contactEmail_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scontactEmail>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.contactEmail), input_name="contactEmail" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.preavisoPhone is not None: + namespaceprefix_ = ( + self.preavisoPhone_nsprefix_ + ":" + if (UseCapturedNS_ and self.preavisoPhone_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spreavisoPhone>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.preavisoPhone), input_name="preavisoPhone" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.preavisoEmail is not None: + namespaceprefix_ = ( + self.preavisoEmail_nsprefix_ + ":" + if (UseCapturedNS_ and self.preavisoEmail_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spreavisoEmail>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.preavisoEmail), input_name="preavisoEmail" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.preavisoPerson is not None: + namespaceprefix_ = ( + self.preavisoPerson_nsprefix_ + ":" + if (UseCapturedNS_ and self.preavisoPerson_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spreavisoPerson>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.preavisoPerson), input_name="preavisoPerson" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.country is not None: + namespaceprefix_ = ( + self.country_nsprefix_ + ":" + if (UseCapturedNS_ and self.country_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scountry>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.country), input_name="country" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.name is not None: + namespaceprefix_ = ( + self.name_nsprefix_ + ":" + if (UseCapturedNS_ and self.name_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sname>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string(quote_xml(self.name), input_name="name") + ), + namespaceprefix_, + eol_, + ) + ) + if self.postalCode is not None: + namespaceprefix_ = ( + self.postalCode_nsprefix_ + ":" + if (UseCapturedNS_ and self.postalCode_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spostalCode>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.postalCode), input_name="postalCode" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.city is not None: + namespaceprefix_ = ( + self.city_nsprefix_ + ":" + if (UseCapturedNS_ and self.city_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scity>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string(quote_xml(self.city), input_name="city") + ), + namespaceprefix_, + eol_, + ) + ) + if self.street is not None: + namespaceprefix_ = ( + self.street_nsprefix_ + ":" + if (UseCapturedNS_ and self.street_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sstreet>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.street), input_name="street" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.houseNumber is not None: + namespaceprefix_ = ( + self.houseNumber_nsprefix_ + ":" + if (UseCapturedNS_ and self.houseNumber_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%shouseNumber>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.houseNumber), input_name="houseNumber" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.apartmentNumber is not None: + namespaceprefix_ = ( + self.apartmentNumber_nsprefix_ + ":" + if (UseCapturedNS_ and self.apartmentNumber_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sapartmentNumber>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.apartmentNumber), + input_name="apartmentNumber", + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "contactPerson": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "contactPerson") + value_ = self.gds_validate_string(value_, node, "contactPerson") + self.contactPerson = value_ + self.contactPerson_nsprefix_ = child_.prefix + elif nodeName_ == "contactPhone": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "contactPhone") + value_ = self.gds_validate_string(value_, node, "contactPhone") + self.contactPhone = value_ + self.contactPhone_nsprefix_ = child_.prefix + elif nodeName_ == "contactEmail": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "contactEmail") + value_ = self.gds_validate_string(value_, node, "contactEmail") + self.contactEmail = value_ + self.contactEmail_nsprefix_ = child_.prefix + elif nodeName_ == "preavisoPhone": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "preavisoPhone") + value_ = self.gds_validate_string(value_, node, "preavisoPhone") + self.preavisoPhone = value_ + self.preavisoPhone_nsprefix_ = child_.prefix + elif nodeName_ == "preavisoEmail": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "preavisoEmail") + value_ = self.gds_validate_string(value_, node, "preavisoEmail") + self.preavisoEmail = value_ + self.preavisoEmail_nsprefix_ = child_.prefix + elif nodeName_ == "preavisoPerson": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "preavisoPerson") + value_ = self.gds_validate_string(value_, node, "preavisoPerson") + self.preavisoPerson = value_ + self.preavisoPerson_nsprefix_ = child_.prefix + elif nodeName_ == "country": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "country") + value_ = self.gds_validate_string(value_, node, "country") + self.country = value_ + self.country_nsprefix_ = child_.prefix + elif nodeName_ == "name": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "name") + value_ = self.gds_validate_string(value_, node, "name") + self.name = value_ + self.name_nsprefix_ = child_.prefix + elif nodeName_ == "postalCode": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "postalCode") + value_ = self.gds_validate_string(value_, node, "postalCode") + self.postalCode = value_ + self.postalCode_nsprefix_ = child_.prefix + elif nodeName_ == "city": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "city") + value_ = self.gds_validate_string(value_, node, "city") + self.city = value_ + self.city_nsprefix_ = child_.prefix + elif nodeName_ == "street": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "street") + value_ = self.gds_validate_string(value_, node, "street") + self.street = value_ + self.street_nsprefix_ = child_.prefix + elif nodeName_ == "houseNumber": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "houseNumber") + value_ = self.gds_validate_string(value_, node, "houseNumber") + self.houseNumber = value_ + self.houseNumber_nsprefix_ = child_.prefix + elif nodeName_ == "apartmentNumber": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "apartmentNumber") + value_ = self.gds_validate_string(value_, node, "apartmentNumber") + self.apartmentNumber = value_ + self.apartmentNumber_nsprefix_ = child_.prefix + + +# end class ShipperAddressLabelData + + +class ReceiverAddressLabelData(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + contactPerson=None, + contactPhone=None, + contactEmail=None, + preavisoPhone=None, + preavisoEmail=None, + preavisoPerson=None, + country=None, + isPackstation=None, + isPostfiliale=None, + postnummer=None, + addressType=None, + name=None, + postalCode=None, + city=None, + street=None, + houseNumber=None, + apartmentNumber=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.contactPerson = contactPerson + self.contactPerson_nsprefix_ = None + self.contactPhone = contactPhone + self.contactPhone_nsprefix_ = None + self.contactEmail = contactEmail + self.contactEmail_nsprefix_ = None + self.preavisoPhone = preavisoPhone + self.preavisoPhone_nsprefix_ = None + self.preavisoEmail = preavisoEmail + self.preavisoEmail_nsprefix_ = None + self.preavisoPerson = preavisoPerson + self.preavisoPerson_nsprefix_ = None + self.country = country + self.country_nsprefix_ = None + self.isPackstation = isPackstation + self.isPackstation_nsprefix_ = None + self.isPostfiliale = isPostfiliale + self.isPostfiliale_nsprefix_ = None + self.postnummer = postnummer + self.postnummer_nsprefix_ = None + self.addressType = addressType + self.addressType_nsprefix_ = None + self.name = name + self.name_nsprefix_ = None + self.postalCode = postalCode + self.postalCode_nsprefix_ = None + self.city = city + self.city_nsprefix_ = None + self.street = street + self.street_nsprefix_ = None + self.houseNumber = houseNumber + self.houseNumber_nsprefix_ = None + self.apartmentNumber = apartmentNumber + self.apartmentNumber_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, ReceiverAddressLabelData + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ReceiverAddressLabelData.subclass: + return ReceiverAddressLabelData.subclass(*args_, **kwargs_) + else: + return ReceiverAddressLabelData(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_contactPerson(self): + return self.contactPerson + + def set_contactPerson(self, contactPerson): + self.contactPerson = contactPerson + + def get_contactPhone(self): + return self.contactPhone + + def set_contactPhone(self, contactPhone): + self.contactPhone = contactPhone + + def get_contactEmail(self): + return self.contactEmail + + def set_contactEmail(self, contactEmail): + self.contactEmail = contactEmail + + def get_preavisoPhone(self): + return self.preavisoPhone + + def set_preavisoPhone(self, preavisoPhone): + self.preavisoPhone = preavisoPhone + + def get_preavisoEmail(self): + return self.preavisoEmail + + def set_preavisoEmail(self, preavisoEmail): + self.preavisoEmail = preavisoEmail + + def get_preavisoPerson(self): + return self.preavisoPerson + + def set_preavisoPerson(self, preavisoPerson): + self.preavisoPerson = preavisoPerson + + def get_country(self): + return self.country + + def set_country(self, country): + self.country = country + + def get_isPackstation(self): + return self.isPackstation + + def set_isPackstation(self, isPackstation): + self.isPackstation = isPackstation + + def get_isPostfiliale(self): + return self.isPostfiliale + + def set_isPostfiliale(self, isPostfiliale): + self.isPostfiliale = isPostfiliale + + def get_postnummer(self): + return self.postnummer + + def set_postnummer(self, postnummer): + self.postnummer = postnummer + + def get_addressType(self): + return self.addressType + + def set_addressType(self, addressType): + self.addressType = addressType + + def get_name(self): + return self.name + + def set_name(self, name): + self.name = name + + def get_postalCode(self): + return self.postalCode + + def set_postalCode(self, postalCode): + self.postalCode = postalCode + + def get_city(self): + return self.city + + def set_city(self, city): + self.city = city + + def get_street(self): + return self.street + + def set_street(self, street): + self.street = street + + def get_houseNumber(self): + return self.houseNumber + + def set_houseNumber(self, houseNumber): + self.houseNumber = houseNumber + + def get_apartmentNumber(self): + return self.apartmentNumber + + def set_apartmentNumber(self, apartmentNumber): + self.apartmentNumber = apartmentNumber + + def _hasContent(self): + if ( + self.contactPerson is not None + or self.contactPhone is not None + or self.contactEmail is not None + or self.preavisoPhone is not None + or self.preavisoEmail is not None + or self.preavisoPerson is not None + or self.country is not None + or self.isPackstation is not None + or self.isPostfiliale is not None + or self.postnummer is not None + or self.addressType is not None + or self.name is not None + or self.postalCode is not None + or self.city is not None + or self.street is not None + or self.houseNumber is not None + or self.apartmentNumber is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ReceiverAddressLabelData", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ReceiverAddressLabelData") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ReceiverAddressLabelData": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="ReceiverAddressLabelData", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ReceiverAddressLabelData", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ReceiverAddressLabelData", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ReceiverAddressLabelData", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.contactPerson is not None: + namespaceprefix_ = ( + self.contactPerson_nsprefix_ + ":" + if (UseCapturedNS_ and self.contactPerson_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scontactPerson>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.contactPerson), input_name="contactPerson" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.contactPhone is not None: + namespaceprefix_ = ( + self.contactPhone_nsprefix_ + ":" + if (UseCapturedNS_ and self.contactPhone_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scontactPhone>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.contactPhone), input_name="contactPhone" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.contactEmail is not None: + namespaceprefix_ = ( + self.contactEmail_nsprefix_ + ":" + if (UseCapturedNS_ and self.contactEmail_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scontactEmail>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.contactEmail), input_name="contactEmail" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.preavisoPhone is not None: + namespaceprefix_ = ( + self.preavisoPhone_nsprefix_ + ":" + if (UseCapturedNS_ and self.preavisoPhone_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spreavisoPhone>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.preavisoPhone), input_name="preavisoPhone" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.preavisoEmail is not None: + namespaceprefix_ = ( + self.preavisoEmail_nsprefix_ + ":" + if (UseCapturedNS_ and self.preavisoEmail_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spreavisoEmail>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.preavisoEmail), input_name="preavisoEmail" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.preavisoPerson is not None: + namespaceprefix_ = ( + self.preavisoPerson_nsprefix_ + ":" + if (UseCapturedNS_ and self.preavisoPerson_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spreavisoPerson>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.preavisoPerson), input_name="preavisoPerson" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.country is not None: + namespaceprefix_ = ( + self.country_nsprefix_ + ":" + if (UseCapturedNS_ and self.country_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scountry>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.country), input_name="country" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.isPackstation is not None: + namespaceprefix_ = ( + self.isPackstation_nsprefix_ + ":" + if (UseCapturedNS_ and self.isPackstation_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sisPackstation>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.isPackstation, input_name="isPackstation" + ), + namespaceprefix_, + eol_, + ) + ) + if self.isPostfiliale is not None: + namespaceprefix_ = ( + self.isPostfiliale_nsprefix_ + ":" + if (UseCapturedNS_ and self.isPostfiliale_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sisPostfiliale>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.isPostfiliale, input_name="isPostfiliale" + ), + namespaceprefix_, + eol_, + ) + ) + if self.postnummer is not None: + namespaceprefix_ = ( + self.postnummer_nsprefix_ + ":" + if (UseCapturedNS_ and self.postnummer_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spostnummer>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.postnummer), input_name="postnummer" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.addressType is not None: + namespaceprefix_ = ( + self.addressType_nsprefix_ + ":" + if (UseCapturedNS_ and self.addressType_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%saddressType>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.addressType), input_name="addressType" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.name is not None: + namespaceprefix_ = ( + self.name_nsprefix_ + ":" + if (UseCapturedNS_ and self.name_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sname>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string(quote_xml(self.name), input_name="name") + ), + namespaceprefix_, + eol_, + ) + ) + if self.postalCode is not None: + namespaceprefix_ = ( + self.postalCode_nsprefix_ + ":" + if (UseCapturedNS_ and self.postalCode_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spostalCode>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.postalCode), input_name="postalCode" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.city is not None: + namespaceprefix_ = ( + self.city_nsprefix_ + ":" + if (UseCapturedNS_ and self.city_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scity>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string(quote_xml(self.city), input_name="city") + ), + namespaceprefix_, + eol_, + ) + ) + if self.street is not None: + namespaceprefix_ = ( + self.street_nsprefix_ + ":" + if (UseCapturedNS_ and self.street_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sstreet>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.street), input_name="street" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.houseNumber is not None: + namespaceprefix_ = ( + self.houseNumber_nsprefix_ + ":" + if (UseCapturedNS_ and self.houseNumber_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%shouseNumber>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.houseNumber), input_name="houseNumber" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.apartmentNumber is not None: + namespaceprefix_ = ( + self.apartmentNumber_nsprefix_ + ":" + if (UseCapturedNS_ and self.apartmentNumber_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sapartmentNumber>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.apartmentNumber), + input_name="apartmentNumber", + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "contactPerson": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "contactPerson") + value_ = self.gds_validate_string(value_, node, "contactPerson") + self.contactPerson = value_ + self.contactPerson_nsprefix_ = child_.prefix + elif nodeName_ == "contactPhone": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "contactPhone") + value_ = self.gds_validate_string(value_, node, "contactPhone") + self.contactPhone = value_ + self.contactPhone_nsprefix_ = child_.prefix + elif nodeName_ == "contactEmail": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "contactEmail") + value_ = self.gds_validate_string(value_, node, "contactEmail") + self.contactEmail = value_ + self.contactEmail_nsprefix_ = child_.prefix + elif nodeName_ == "preavisoPhone": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "preavisoPhone") + value_ = self.gds_validate_string(value_, node, "preavisoPhone") + self.preavisoPhone = value_ + self.preavisoPhone_nsprefix_ = child_.prefix + elif nodeName_ == "preavisoEmail": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "preavisoEmail") + value_ = self.gds_validate_string(value_, node, "preavisoEmail") + self.preavisoEmail = value_ + self.preavisoEmail_nsprefix_ = child_.prefix + elif nodeName_ == "preavisoPerson": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "preavisoPerson") + value_ = self.gds_validate_string(value_, node, "preavisoPerson") + self.preavisoPerson = value_ + self.preavisoPerson_nsprefix_ = child_.prefix + elif nodeName_ == "country": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "country") + value_ = self.gds_validate_string(value_, node, "country") + self.country = value_ + self.country_nsprefix_ = child_.prefix + elif nodeName_ == "isPackstation": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "isPackstation") + ival_ = self.gds_validate_boolean(ival_, node, "isPackstation") + self.isPackstation = ival_ + self.isPackstation_nsprefix_ = child_.prefix + elif nodeName_ == "isPostfiliale": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "isPostfiliale") + ival_ = self.gds_validate_boolean(ival_, node, "isPostfiliale") + self.isPostfiliale = ival_ + self.isPostfiliale_nsprefix_ = child_.prefix + elif nodeName_ == "postnummer": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "postnummer") + value_ = self.gds_validate_string(value_, node, "postnummer") + self.postnummer = value_ + self.postnummer_nsprefix_ = child_.prefix + elif nodeName_ == "addressType": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "addressType") + value_ = self.gds_validate_string(value_, node, "addressType") + self.addressType = value_ + self.addressType_nsprefix_ = child_.prefix + elif nodeName_ == "name": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "name") + value_ = self.gds_validate_string(value_, node, "name") + self.name = value_ + self.name_nsprefix_ = child_.prefix + elif nodeName_ == "postalCode": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "postalCode") + value_ = self.gds_validate_string(value_, node, "postalCode") + self.postalCode = value_ + self.postalCode_nsprefix_ = child_.prefix + elif nodeName_ == "city": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "city") + value_ = self.gds_validate_string(value_, node, "city") + self.city = value_ + self.city_nsprefix_ = child_.prefix + elif nodeName_ == "street": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "street") + value_ = self.gds_validate_string(value_, node, "street") + self.street = value_ + self.street_nsprefix_ = child_.prefix + elif nodeName_ == "houseNumber": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "houseNumber") + value_ = self.gds_validate_string(value_, node, "houseNumber") + self.houseNumber = value_ + self.houseNumber_nsprefix_ = child_.prefix + elif nodeName_ == "apartmentNumber": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "apartmentNumber") + value_ = self.gds_validate_string(value_, node, "apartmentNumber") + self.apartmentNumber = value_ + self.apartmentNumber_nsprefix_ = child_.prefix + + +# end class ReceiverAddressLabelData + + +class ServicePoint(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + servicePointAccountNumber=None, + name=None, + country=None, + postcode=None, + city=None, + street=None, + houseNumber=None, + apartmentNumber=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.servicePointAccountNumber = servicePointAccountNumber + self.servicePointAccountNumber_nsprefix_ = None + self.name = name + self.name_nsprefix_ = None + self.country = country + self.country_nsprefix_ = None + self.postcode = postcode + self.postcode_nsprefix_ = None + self.city = city + self.city_nsprefix_ = None + self.street = street + self.street_nsprefix_ = None + self.houseNumber = houseNumber + self.houseNumber_nsprefix_ = None + self.apartmentNumber = apartmentNumber + self.apartmentNumber_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_(CurrentSubclassModule_, ServicePoint) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ServicePoint.subclass: + return ServicePoint.subclass(*args_, **kwargs_) + else: + return ServicePoint(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_servicePointAccountNumber(self): + return self.servicePointAccountNumber + + def set_servicePointAccountNumber(self, servicePointAccountNumber): + self.servicePointAccountNumber = servicePointAccountNumber + + def get_name(self): + return self.name + + def set_name(self, name): + self.name = name + + def get_country(self): + return self.country + + def set_country(self, country): + self.country = country + + def get_postcode(self): + return self.postcode + + def set_postcode(self, postcode): + self.postcode = postcode + + def get_city(self): + return self.city + + def set_city(self, city): + self.city = city + + def get_street(self): + return self.street + + def set_street(self, street): + self.street = street + + def get_houseNumber(self): + return self.houseNumber + + def set_houseNumber(self, houseNumber): + self.houseNumber = houseNumber + + def get_apartmentNumber(self): + return self.apartmentNumber + + def set_apartmentNumber(self, apartmentNumber): + self.apartmentNumber = apartmentNumber + + def _hasContent(self): + if ( + self.servicePointAccountNumber is not None + or self.name is not None + or self.country is not None + or self.postcode is not None + or self.city is not None + or self.street is not None + or self.houseNumber is not None + or self.apartmentNumber is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ServicePoint", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ServicePoint") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ServicePoint": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, level, already_processed, namespaceprefix_, name_="ServicePoint" + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ServicePoint", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ServicePoint", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ServicePoint", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.servicePointAccountNumber is not None: + namespaceprefix_ = ( + self.servicePointAccountNumber_nsprefix_ + ":" + if (UseCapturedNS_ and self.servicePointAccountNumber_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sservicePointAccountNumber>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.servicePointAccountNumber), + input_name="servicePointAccountNumber", + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.name is not None: + namespaceprefix_ = ( + self.name_nsprefix_ + ":" + if (UseCapturedNS_ and self.name_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sname>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string(quote_xml(self.name), input_name="name") + ), + namespaceprefix_, + eol_, + ) + ) + if self.country is not None: + namespaceprefix_ = ( + self.country_nsprefix_ + ":" + if (UseCapturedNS_ and self.country_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scountry>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.country), input_name="country" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.postcode is not None: + namespaceprefix_ = ( + self.postcode_nsprefix_ + ":" + if (UseCapturedNS_ and self.postcode_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spostcode>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.postcode), input_name="postcode" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.city is not None: + namespaceprefix_ = ( + self.city_nsprefix_ + ":" + if (UseCapturedNS_ and self.city_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scity>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string(quote_xml(self.city), input_name="city") + ), + namespaceprefix_, + eol_, + ) + ) + if self.street is not None: + namespaceprefix_ = ( + self.street_nsprefix_ + ":" + if (UseCapturedNS_ and self.street_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sstreet>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.street), input_name="street" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.houseNumber is not None: + namespaceprefix_ = ( + self.houseNumber_nsprefix_ + ":" + if (UseCapturedNS_ and self.houseNumber_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%shouseNumber>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.houseNumber), input_name="houseNumber" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.apartmentNumber is not None: + namespaceprefix_ = ( + self.apartmentNumber_nsprefix_ + ":" + if (UseCapturedNS_ and self.apartmentNumber_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sapartmentNumber>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.apartmentNumber), + input_name="apartmentNumber", + ) + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "servicePointAccountNumber": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "servicePointAccountNumber") + value_ = self.gds_validate_string(value_, node, "servicePointAccountNumber") + self.servicePointAccountNumber = value_ + self.servicePointAccountNumber_nsprefix_ = child_.prefix + elif nodeName_ == "name": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "name") + value_ = self.gds_validate_string(value_, node, "name") + self.name = value_ + self.name_nsprefix_ = child_.prefix + elif nodeName_ == "country": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "country") + value_ = self.gds_validate_string(value_, node, "country") + self.country = value_ + self.country_nsprefix_ = child_.prefix + elif nodeName_ == "postcode": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "postcode") + value_ = self.gds_validate_string(value_, node, "postcode") + self.postcode = value_ + self.postcode_nsprefix_ = child_.prefix + elif nodeName_ == "city": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "city") + value_ = self.gds_validate_string(value_, node, "city") + self.city = value_ + self.city_nsprefix_ = child_.prefix + elif nodeName_ == "street": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "street") + value_ = self.gds_validate_string(value_, node, "street") + self.street = value_ + self.street_nsprefix_ = child_.prefix + elif nodeName_ == "houseNumber": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "houseNumber") + value_ = self.gds_validate_string(value_, node, "houseNumber") + self.houseNumber = value_ + self.houseNumber_nsprefix_ = child_.prefix + elif nodeName_ == "apartmentNumber": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "apartmentNumber") + value_ = self.gds_validate_string(value_, node, "apartmentNumber") + self.apartmentNumber = value_ + self.apartmentNumber_nsprefix_ = child_.prefix + + +# end class ServicePoint + + +class LabelDataServiceDefinition(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + product=None, + deliveryEvening=None, + deliveryOnSaturday=None, + pickupOnSaturday=None, + collectOnDelivery=None, + collectOnDeliveryValue=None, + collectOnDeliveryForm=None, + collectOnDeliveryReference=None, + insurance=None, + insuranceValue=None, + returnOnDelivery=None, + returnOnDeliveryReference=None, + proofOfDelivery=None, + selfCollect=None, + predeliveryInformation=None, + deliveryToNeighbour=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.product = product + self.product_nsprefix_ = None + self.deliveryEvening = deliveryEvening + self.deliveryEvening_nsprefix_ = None + self.deliveryOnSaturday = deliveryOnSaturday + self.deliveryOnSaturday_nsprefix_ = None + self.pickupOnSaturday = pickupOnSaturday + self.pickupOnSaturday_nsprefix_ = None + self.collectOnDelivery = collectOnDelivery + self.collectOnDelivery_nsprefix_ = None + self.collectOnDeliveryValue = collectOnDeliveryValue + self.collectOnDeliveryValue_nsprefix_ = None + self.collectOnDeliveryForm = collectOnDeliveryForm + self.collectOnDeliveryForm_nsprefix_ = None + self.collectOnDeliveryReference = collectOnDeliveryReference + self.collectOnDeliveryReference_nsprefix_ = None + self.insurance = insurance + self.insurance_nsprefix_ = None + self.insuranceValue = insuranceValue + self.insuranceValue_nsprefix_ = None + self.returnOnDelivery = returnOnDelivery + self.returnOnDelivery_nsprefix_ = None + self.returnOnDeliveryReference = returnOnDeliveryReference + self.returnOnDeliveryReference_nsprefix_ = None + self.proofOfDelivery = proofOfDelivery + self.proofOfDelivery_nsprefix_ = None + self.selfCollect = selfCollect + self.selfCollect_nsprefix_ = None + self.predeliveryInformation = predeliveryInformation + self.predeliveryInformation_nsprefix_ = None + self.deliveryToNeighbour = deliveryToNeighbour + self.deliveryToNeighbour_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, LabelDataServiceDefinition + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if LabelDataServiceDefinition.subclass: + return LabelDataServiceDefinition.subclass(*args_, **kwargs_) + else: + return LabelDataServiceDefinition(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_product(self): + return self.product + + def set_product(self, product): + self.product = product + + def get_deliveryEvening(self): + return self.deliveryEvening + + def set_deliveryEvening(self, deliveryEvening): + self.deliveryEvening = deliveryEvening + + def get_deliveryOnSaturday(self): + return self.deliveryOnSaturday + + def set_deliveryOnSaturday(self, deliveryOnSaturday): + self.deliveryOnSaturday = deliveryOnSaturday + + def get_pickupOnSaturday(self): + return self.pickupOnSaturday + + def set_pickupOnSaturday(self, pickupOnSaturday): + self.pickupOnSaturday = pickupOnSaturday + + def get_collectOnDelivery(self): + return self.collectOnDelivery + + def set_collectOnDelivery(self, collectOnDelivery): + self.collectOnDelivery = collectOnDelivery + + def get_collectOnDeliveryValue(self): + return self.collectOnDeliveryValue + + def set_collectOnDeliveryValue(self, collectOnDeliveryValue): + self.collectOnDeliveryValue = collectOnDeliveryValue + + def get_collectOnDeliveryForm(self): + return self.collectOnDeliveryForm + + def set_collectOnDeliveryForm(self, collectOnDeliveryForm): + self.collectOnDeliveryForm = collectOnDeliveryForm + + def get_collectOnDeliveryReference(self): + return self.collectOnDeliveryReference + + def set_collectOnDeliveryReference(self, collectOnDeliveryReference): + self.collectOnDeliveryReference = collectOnDeliveryReference + + def get_insurance(self): + return self.insurance + + def set_insurance(self, insurance): + self.insurance = insurance + + def get_insuranceValue(self): + return self.insuranceValue + + def set_insuranceValue(self, insuranceValue): + self.insuranceValue = insuranceValue + + def get_returnOnDelivery(self): + return self.returnOnDelivery + + def set_returnOnDelivery(self, returnOnDelivery): + self.returnOnDelivery = returnOnDelivery + + def get_returnOnDeliveryReference(self): + return self.returnOnDeliveryReference + + def set_returnOnDeliveryReference(self, returnOnDeliveryReference): + self.returnOnDeliveryReference = returnOnDeliveryReference + + def get_proofOfDelivery(self): + return self.proofOfDelivery + + def set_proofOfDelivery(self, proofOfDelivery): + self.proofOfDelivery = proofOfDelivery + + def get_selfCollect(self): + return self.selfCollect + + def set_selfCollect(self, selfCollect): + self.selfCollect = selfCollect + + def get_predeliveryInformation(self): + return self.predeliveryInformation + + def set_predeliveryInformation(self, predeliveryInformation): + self.predeliveryInformation = predeliveryInformation + + def get_deliveryToNeighbour(self): + return self.deliveryToNeighbour + + def set_deliveryToNeighbour(self, deliveryToNeighbour): + self.deliveryToNeighbour = deliveryToNeighbour + + def _hasContent(self): + if ( + self.product is not None + or self.deliveryEvening is not None + or self.deliveryOnSaturday is not None + or self.pickupOnSaturday is not None + or self.collectOnDelivery is not None + or self.collectOnDeliveryValue is not None + or self.collectOnDeliveryForm is not None + or self.collectOnDeliveryReference is not None + or self.insurance is not None + or self.insuranceValue is not None + or self.returnOnDelivery is not None + or self.returnOnDeliveryReference is not None + or self.proofOfDelivery is not None + or self.selfCollect is not None + or self.predeliveryInformation is not None + or self.deliveryToNeighbour is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="LabelDataServiceDefinition", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("LabelDataServiceDefinition") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "LabelDataServiceDefinition": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="LabelDataServiceDefinition", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="LabelDataServiceDefinition", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="LabelDataServiceDefinition", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="LabelDataServiceDefinition", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.product is not None: + namespaceprefix_ = ( + self.product_nsprefix_ + ":" + if (UseCapturedNS_ and self.product_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sproduct>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.product), input_name="product" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.deliveryEvening is not None: + namespaceprefix_ = ( + self.deliveryEvening_nsprefix_ + ":" + if (UseCapturedNS_ and self.deliveryEvening_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sdeliveryEvening>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.deliveryEvening, input_name="deliveryEvening" + ), + namespaceprefix_, + eol_, + ) + ) + if self.deliveryOnSaturday is not None: + namespaceprefix_ = ( + self.deliveryOnSaturday_nsprefix_ + ":" + if (UseCapturedNS_ and self.deliveryOnSaturday_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sdeliveryOnSaturday>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.deliveryOnSaturday, input_name="deliveryOnSaturday" + ), + namespaceprefix_, + eol_, + ) + ) + if self.pickupOnSaturday is not None: + namespaceprefix_ = ( + self.pickupOnSaturday_nsprefix_ + ":" + if (UseCapturedNS_ and self.pickupOnSaturday_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spickupOnSaturday>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.pickupOnSaturday, input_name="pickupOnSaturday" + ), + namespaceprefix_, + eol_, + ) + ) + if self.collectOnDelivery is not None: + namespaceprefix_ = ( + self.collectOnDelivery_nsprefix_ + ":" + if (UseCapturedNS_ and self.collectOnDelivery_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scollectOnDelivery>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.collectOnDelivery, input_name="collectOnDelivery" + ), + namespaceprefix_, + eol_, + ) + ) + if self.collectOnDeliveryValue is not None: + namespaceprefix_ = ( + self.collectOnDeliveryValue_nsprefix_ + ":" + if (UseCapturedNS_ and self.collectOnDeliveryValue_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scollectOnDeliveryValue>%s%s" + % ( + namespaceprefix_, + self.gds_format_float( + self.collectOnDeliveryValue, input_name="collectOnDeliveryValue" + ), + namespaceprefix_, + eol_, + ) + ) + if self.collectOnDeliveryForm is not None: + namespaceprefix_ = ( + self.collectOnDeliveryForm_nsprefix_ + ":" + if (UseCapturedNS_ and self.collectOnDeliveryForm_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scollectOnDeliveryForm>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.collectOnDeliveryForm), + input_name="collectOnDeliveryForm", + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.collectOnDeliveryReference is not None: + namespaceprefix_ = ( + self.collectOnDeliveryReference_nsprefix_ + ":" + if (UseCapturedNS_ and self.collectOnDeliveryReference_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scollectOnDeliveryReference>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.collectOnDeliveryReference), + input_name="collectOnDeliveryReference", + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.insurance is not None: + namespaceprefix_ = ( + self.insurance_nsprefix_ + ":" + if (UseCapturedNS_ and self.insurance_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sinsurance>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean(self.insurance, input_name="insurance"), + namespaceprefix_, + eol_, + ) + ) + if self.insuranceValue is not None: + namespaceprefix_ = ( + self.insuranceValue_nsprefix_ + ":" + if (UseCapturedNS_ and self.insuranceValue_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sinsuranceValue>%s%s" + % ( + namespaceprefix_, + self.gds_format_float( + self.insuranceValue, input_name="insuranceValue" + ), + namespaceprefix_, + eol_, + ) + ) + if self.returnOnDelivery is not None: + namespaceprefix_ = ( + self.returnOnDelivery_nsprefix_ + ":" + if (UseCapturedNS_ and self.returnOnDelivery_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sreturnOnDelivery>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.returnOnDelivery, input_name="returnOnDelivery" + ), + namespaceprefix_, + eol_, + ) + ) + if self.returnOnDeliveryReference is not None: + namespaceprefix_ = ( + self.returnOnDeliveryReference_nsprefix_ + ":" + if (UseCapturedNS_ and self.returnOnDeliveryReference_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sreturnOnDeliveryReference>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.returnOnDeliveryReference), + input_name="returnOnDeliveryReference", + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.proofOfDelivery is not None: + namespaceprefix_ = ( + self.proofOfDelivery_nsprefix_ + ":" + if (UseCapturedNS_ and self.proofOfDelivery_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sproofOfDelivery>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.proofOfDelivery, input_name="proofOfDelivery" + ), + namespaceprefix_, + eol_, + ) + ) + if self.selfCollect is not None: + namespaceprefix_ = ( + self.selfCollect_nsprefix_ + ":" + if (UseCapturedNS_ and self.selfCollect_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sselfCollect>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean(self.selfCollect, input_name="selfCollect"), + namespaceprefix_, + eol_, + ) + ) + if self.predeliveryInformation is not None: + namespaceprefix_ = ( + self.predeliveryInformation_nsprefix_ + ":" + if (UseCapturedNS_ and self.predeliveryInformation_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%spredeliveryInformation>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.predeliveryInformation, input_name="predeliveryInformation" + ), + namespaceprefix_, + eol_, + ) + ) + if self.deliveryToNeighbour is not None: + namespaceprefix_ = ( + self.deliveryToNeighbour_nsprefix_ + ":" + if (UseCapturedNS_ and self.deliveryToNeighbour_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sdeliveryToNeighbour>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean( + self.deliveryToNeighbour, input_name="deliveryToNeighbour" + ), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "product": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "product") + value_ = self.gds_validate_string(value_, node, "product") + self.product = value_ + self.product_nsprefix_ = child_.prefix + elif nodeName_ == "deliveryEvening": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "deliveryEvening") + ival_ = self.gds_validate_boolean(ival_, node, "deliveryEvening") + self.deliveryEvening = ival_ + self.deliveryEvening_nsprefix_ = child_.prefix + elif nodeName_ == "deliveryOnSaturday": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "deliveryOnSaturday") + ival_ = self.gds_validate_boolean(ival_, node, "deliveryOnSaturday") + self.deliveryOnSaturday = ival_ + self.deliveryOnSaturday_nsprefix_ = child_.prefix + elif nodeName_ == "pickupOnSaturday": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "pickupOnSaturday") + ival_ = self.gds_validate_boolean(ival_, node, "pickupOnSaturday") + self.pickupOnSaturday = ival_ + self.pickupOnSaturday_nsprefix_ = child_.prefix + elif nodeName_ == "collectOnDelivery": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "collectOnDelivery") + ival_ = self.gds_validate_boolean(ival_, node, "collectOnDelivery") + self.collectOnDelivery = ival_ + self.collectOnDelivery_nsprefix_ = child_.prefix + elif nodeName_ == "collectOnDeliveryValue" and child_.text: + sval_ = child_.text + fval_ = self.gds_parse_float(sval_, node, "collectOnDeliveryValue") + fval_ = self.gds_validate_float(fval_, node, "collectOnDeliveryValue") + self.collectOnDeliveryValue = fval_ + self.collectOnDeliveryValue_nsprefix_ = child_.prefix + elif nodeName_ == "collectOnDeliveryForm": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "collectOnDeliveryForm") + value_ = self.gds_validate_string(value_, node, "collectOnDeliveryForm") + self.collectOnDeliveryForm = value_ + self.collectOnDeliveryForm_nsprefix_ = child_.prefix + elif nodeName_ == "collectOnDeliveryReference": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "collectOnDeliveryReference") + value_ = self.gds_validate_string( + value_, node, "collectOnDeliveryReference" + ) + self.collectOnDeliveryReference = value_ + self.collectOnDeliveryReference_nsprefix_ = child_.prefix + elif nodeName_ == "insurance": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "insurance") + ival_ = self.gds_validate_boolean(ival_, node, "insurance") + self.insurance = ival_ + self.insurance_nsprefix_ = child_.prefix + elif nodeName_ == "insuranceValue" and child_.text: + sval_ = child_.text + fval_ = self.gds_parse_float(sval_, node, "insuranceValue") + fval_ = self.gds_validate_float(fval_, node, "insuranceValue") + self.insuranceValue = fval_ + self.insuranceValue_nsprefix_ = child_.prefix + elif nodeName_ == "returnOnDelivery": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "returnOnDelivery") + ival_ = self.gds_validate_boolean(ival_, node, "returnOnDelivery") + self.returnOnDelivery = ival_ + self.returnOnDelivery_nsprefix_ = child_.prefix + elif nodeName_ == "returnOnDeliveryReference": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "returnOnDeliveryReference") + value_ = self.gds_validate_string(value_, node, "returnOnDeliveryReference") + self.returnOnDeliveryReference = value_ + self.returnOnDeliveryReference_nsprefix_ = child_.prefix + elif nodeName_ == "proofOfDelivery": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "proofOfDelivery") + ival_ = self.gds_validate_boolean(ival_, node, "proofOfDelivery") + self.proofOfDelivery = ival_ + self.proofOfDelivery_nsprefix_ = child_.prefix + elif nodeName_ == "selfCollect": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "selfCollect") + ival_ = self.gds_validate_boolean(ival_, node, "selfCollect") + self.selfCollect = ival_ + self.selfCollect_nsprefix_ = child_.prefix + elif nodeName_ == "predeliveryInformation": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "predeliveryInformation") + ival_ = self.gds_validate_boolean(ival_, node, "predeliveryInformation") + self.predeliveryInformation = ival_ + self.predeliveryInformation_nsprefix_ = child_.prefix + elif nodeName_ == "deliveryToNeighbour": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "deliveryToNeighbour") + ival_ = self.gds_validate_boolean(ival_, node, "deliveryToNeighbour") + self.deliveryToNeighbour = ival_ + self.deliveryToNeighbour_nsprefix_ = child_.prefix + + +# end class LabelDataServiceDefinition + + +class PieceDefinitionLabelData(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + routingBarcode=None, + type_=None, + width=None, + height=None, + length=None, + weight=None, + quantity=None, + nonStandard=None, + blpPieceId=None, + euroReturn=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.routingBarcode = routingBarcode + self.routingBarcode_nsprefix_ = None + self.type_ = type_ + self.type__nsprefix_ = None + self.width = width + self.width_nsprefix_ = None + self.height = height + self.height_nsprefix_ = None + self.length = length + self.length_nsprefix_ = None + self.weight = weight + self.weight_nsprefix_ = None + self.quantity = quantity + self.quantity_nsprefix_ = None + self.nonStandard = nonStandard + self.nonStandard_nsprefix_ = None + self.blpPieceId = blpPieceId + self.blpPieceId_nsprefix_ = None + self.euroReturn = euroReturn + self.euroReturn_nsprefix_ = None + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, PieceDefinitionLabelData + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if PieceDefinitionLabelData.subclass: + return PieceDefinitionLabelData.subclass(*args_, **kwargs_) + else: + return PieceDefinitionLabelData(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_routingBarcode(self): + return self.routingBarcode + + def set_routingBarcode(self, routingBarcode): + self.routingBarcode = routingBarcode + + def get_type(self): + return self.type_ + + def set_type(self, type_): + self.type_ = type_ + + def get_width(self): + return self.width + + def set_width(self, width): + self.width = width + + def get_height(self): + return self.height + + def set_height(self, height): + self.height = height + + def get_length(self): + return self.length + + def set_length(self, length): + self.length = length + + def get_weight(self): + return self.weight + + def set_weight(self, weight): + self.weight = weight + + def get_quantity(self): + return self.quantity + + def set_quantity(self, quantity): + self.quantity = quantity + + def get_nonStandard(self): + return self.nonStandard + + def set_nonStandard(self, nonStandard): + self.nonStandard = nonStandard + + def get_blpPieceId(self): + return self.blpPieceId + + def set_blpPieceId(self, blpPieceId): + self.blpPieceId = blpPieceId + + def get_euroReturn(self): + return self.euroReturn + + def set_euroReturn(self, euroReturn): + self.euroReturn = euroReturn + + def _hasContent(self): + if ( + self.routingBarcode is not None + or self.type_ is not None + or self.width is not None + or self.height is not None + or self.length is not None + or self.weight is not None + or self.quantity is not None + or self.nonStandard is not None + or self.blpPieceId is not None + or self.euroReturn is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="PieceDefinitionLabelData", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("PieceDefinitionLabelData") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "PieceDefinitionLabelData": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="PieceDefinitionLabelData", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="PieceDefinitionLabelData", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="PieceDefinitionLabelData", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="PieceDefinitionLabelData", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.routingBarcode is not None: + namespaceprefix_ = ( + self.routingBarcode_nsprefix_ + ":" + if (UseCapturedNS_ and self.routingBarcode_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sroutingBarcode>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.routingBarcode), input_name="routingBarcode" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.type_ is not None: + namespaceprefix_ = ( + self.type__nsprefix_ + ":" + if (UseCapturedNS_ and self.type__nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%stype>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string(quote_xml(self.type_), input_name="type") + ), + namespaceprefix_, + eol_, + ) + ) + if self.width is not None: + namespaceprefix_ = ( + self.width_nsprefix_ + ":" + if (UseCapturedNS_ and self.width_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%swidth>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.width, input_name="width"), + namespaceprefix_, + eol_, + ) + ) + if self.height is not None: + namespaceprefix_ = ( + self.height_nsprefix_ + ":" + if (UseCapturedNS_ and self.height_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sheight>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.height, input_name="height"), + namespaceprefix_, + eol_, + ) + ) + if self.length is not None: + namespaceprefix_ = ( + self.length_nsprefix_ + ":" + if (UseCapturedNS_ and self.length_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%slength>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.length, input_name="length"), + namespaceprefix_, + eol_, + ) + ) + if self.weight is not None: + namespaceprefix_ = ( + self.weight_nsprefix_ + ":" + if (UseCapturedNS_ and self.weight_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sweight>%s%s" + % ( + namespaceprefix_, + self.gds_format_float(self.weight, input_name="weight"), + namespaceprefix_, + eol_, + ) + ) + if self.quantity is not None: + namespaceprefix_ = ( + self.quantity_nsprefix_ + ":" + if (UseCapturedNS_ and self.quantity_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%squantity>%s%s" + % ( + namespaceprefix_, + self.gds_format_integer(self.quantity, input_name="quantity"), + namespaceprefix_, + eol_, + ) + ) + if self.nonStandard is not None: + namespaceprefix_ = ( + self.nonStandard_nsprefix_ + ":" + if (UseCapturedNS_ and self.nonStandard_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%snonStandard>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean(self.nonStandard, input_name="nonStandard"), + namespaceprefix_, + eol_, + ) + ) + if self.blpPieceId is not None: + namespaceprefix_ = ( + self.blpPieceId_nsprefix_ + ":" + if (UseCapturedNS_ and self.blpPieceId_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sblpPieceId>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.blpPieceId), input_name="blpPieceId" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.euroReturn is not None: + namespaceprefix_ = ( + self.euroReturn_nsprefix_ + ":" + if (UseCapturedNS_ and self.euroReturn_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%seuroReturn>%s%s" + % ( + namespaceprefix_, + self.gds_format_boolean(self.euroReturn, input_name="euroReturn"), + namespaceprefix_, + eol_, + ) + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "routingBarcode": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "routingBarcode") + value_ = self.gds_validate_string(value_, node, "routingBarcode") + self.routingBarcode = value_ + self.routingBarcode_nsprefix_ = child_.prefix + elif nodeName_ == "type": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "type") + value_ = self.gds_validate_string(value_, node, "type") + self.type_ = value_ + self.type_nsprefix_ = child_.prefix + elif nodeName_ == "width" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "width") + ival_ = self.gds_validate_integer(ival_, node, "width") + self.width = ival_ + self.width_nsprefix_ = child_.prefix + elif nodeName_ == "height" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "height") + ival_ = self.gds_validate_integer(ival_, node, "height") + self.height = ival_ + self.height_nsprefix_ = child_.prefix + elif nodeName_ == "length" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "length") + ival_ = self.gds_validate_integer(ival_, node, "length") + self.length = ival_ + self.length_nsprefix_ = child_.prefix + elif nodeName_ == "weight" and child_.text: + sval_ = child_.text + fval_ = self.gds_parse_float(sval_, node, "weight") + fval_ = self.gds_validate_float(fval_, node, "weight") + self.weight = fval_ + self.weight_nsprefix_ = child_.prefix + elif nodeName_ == "quantity" and child_.text: + sval_ = child_.text + ival_ = self.gds_parse_integer(sval_, node, "quantity") + ival_ = self.gds_validate_integer(ival_, node, "quantity") + self.quantity = ival_ + self.quantity_nsprefix_ = child_.prefix + elif nodeName_ == "nonStandard": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "nonStandard") + ival_ = self.gds_validate_boolean(ival_, node, "nonStandard") + self.nonStandard = ival_ + self.nonStandard_nsprefix_ = child_.prefix + elif nodeName_ == "blpPieceId": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "blpPieceId") + value_ = self.gds_validate_string(value_, node, "blpPieceId") + self.blpPieceId = value_ + self.blpPieceId_nsprefix_ = child_.prefix + elif nodeName_ == "euroReturn": + sval_ = child_.text + ival_ = self.gds_parse_boolean(sval_, node, "euroReturn") + ival_ = self.gds_validate_boolean(ival_, node, "euroReturn") + self.euroReturn = ival_ + self.euroReturn_nsprefix_ = child_.prefix + + +# end class PieceDefinitionLabelData + + +class ArrayOfPiecedefinitionlabeldata(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, item=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + if item is None: + self.item = [] + else: + self.item = item + self.item_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, ArrayOfPiecedefinitionlabeldata + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ArrayOfPiecedefinitionlabeldata.subclass: + return ArrayOfPiecedefinitionlabeldata.subclass(*args_, **kwargs_) + else: + return ArrayOfPiecedefinitionlabeldata(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_item(self): + return self.item + + def set_item(self, item): + self.item = item + + def add_item(self, value): + self.item.append(value) + + def insert_item_at(self, index, value): + self.item.insert(index, value) + + def replace_item_at(self, index, value): + self.item[index] = value + + def _hasContent(self): + if self.item: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfPiecedefinitionlabeldata", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get( + "ArrayOfPiecedefinitionlabeldata" + ) + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if ( + self.original_tagname_ is not None + and name_ == "ArrayOfPiecedefinitionlabeldata" + ): + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="ArrayOfPiecedefinitionlabeldata", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ArrayOfPiecedefinitionlabeldata", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ArrayOfPiecedefinitionlabeldata", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfPiecedefinitionlabeldata", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + for item_ in self.item: + namespaceprefix_ = ( + self.item_nsprefix_ + ":" + if (UseCapturedNS_ and self.item_nsprefix_) + else "" + ) + item_.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="item", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "item": + obj_ = PieceDefinitionLabelData.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.item.append(obj_) + obj_.original_tagname_ = "item" + + +# end class ArrayOfPiecedefinitionlabeldata + + +class ItemToLabelDataResponse(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__( + self, + shipmentId=None, + primaryWaybillNumber=None, + dispatchNotificationNumber=None, + labelHeader=None, + content=None, + comment=None, + reference=None, + billing=None, + shipmentTime=None, + routing=None, + shipper=None, + receiver=None, + neighbour=None, + servicepoint=None, + service=None, + pieceList=None, + gds_collector_=None, + **kwargs_ + ): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.shipmentId = shipmentId + self.shipmentId_nsprefix_ = None + self.primaryWaybillNumber = primaryWaybillNumber + self.primaryWaybillNumber_nsprefix_ = None + self.dispatchNotificationNumber = dispatchNotificationNumber + self.dispatchNotificationNumber_nsprefix_ = None + self.labelHeader = labelHeader + self.labelHeader_nsprefix_ = None + self.content = content + self.content_nsprefix_ = None + self.comment = comment + self.comment_nsprefix_ = None + self.reference = reference + self.reference_nsprefix_ = None + self.billing = billing + self.billing_nsprefix_ = "tns" + self.shipmentTime = shipmentTime + self.shipmentTime_nsprefix_ = "tns" + self.routing = routing + self.routing_nsprefix_ = "tns" + self.shipper = shipper + self.shipper_nsprefix_ = "tns" + self.receiver = receiver + self.receiver_nsprefix_ = "tns" + self.neighbour = neighbour + self.neighbour_nsprefix_ = "tns" + self.servicepoint = servicepoint + self.servicepoint_nsprefix_ = "tns" + self.service = service + self.service_nsprefix_ = "tns" + self.pieceList = pieceList + self.pieceList_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, ItemToLabelDataResponse + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ItemToLabelDataResponse.subclass: + return ItemToLabelDataResponse.subclass(*args_, **kwargs_) + else: + return ItemToLabelDataResponse(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_shipmentId(self): + return self.shipmentId + + def set_shipmentId(self, shipmentId): + self.shipmentId = shipmentId + + def get_primaryWaybillNumber(self): + return self.primaryWaybillNumber + + def set_primaryWaybillNumber(self, primaryWaybillNumber): + self.primaryWaybillNumber = primaryWaybillNumber + + def get_dispatchNotificationNumber(self): + return self.dispatchNotificationNumber + + def set_dispatchNotificationNumber(self, dispatchNotificationNumber): + self.dispatchNotificationNumber = dispatchNotificationNumber + + def get_labelHeader(self): + return self.labelHeader + + def set_labelHeader(self, labelHeader): + self.labelHeader = labelHeader + + def get_content(self): + return self.content + + def set_content(self, content): + self.content = content + + def get_comment(self): + return self.comment + + def set_comment(self, comment): + self.comment = comment + + def get_reference(self): + return self.reference + + def set_reference(self, reference): + self.reference = reference + + def get_billing(self): + return self.billing + + def set_billing(self, billing): + self.billing = billing + + def get_shipmentTime(self): + return self.shipmentTime + + def set_shipmentTime(self, shipmentTime): + self.shipmentTime = shipmentTime + + def get_routing(self): + return self.routing + + def set_routing(self, routing): + self.routing = routing + + def get_shipper(self): + return self.shipper + + def set_shipper(self, shipper): + self.shipper = shipper + + def get_receiver(self): + return self.receiver + + def set_receiver(self, receiver): + self.receiver = receiver + + def get_neighbour(self): + return self.neighbour + + def set_neighbour(self, neighbour): + self.neighbour = neighbour + + def get_servicepoint(self): + return self.servicepoint + + def set_servicepoint(self, servicepoint): + self.servicepoint = servicepoint + + def get_service(self): + return self.service + + def set_service(self, service): + self.service = service + + def get_pieceList(self): + return self.pieceList + + def set_pieceList(self, pieceList): + self.pieceList = pieceList + + def _hasContent(self): + if ( + self.shipmentId is not None + or self.primaryWaybillNumber is not None + or self.dispatchNotificationNumber is not None + or self.labelHeader is not None + or self.content is not None + or self.comment is not None + or self.reference is not None + or self.billing is not None + or self.shipmentTime is not None + or self.routing is not None + or self.shipper is not None + or self.receiver is not None + or self.neighbour is not None + or self.servicepoint is not None + or self.service is not None + or self.pieceList is not None + ): + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ItemToLabelDataResponse", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("ItemToLabelDataResponse") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "ItemToLabelDataResponse": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="ItemToLabelDataResponse", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ItemToLabelDataResponse", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ItemToLabelDataResponse", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ItemToLabelDataResponse", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.shipmentId is not None: + namespaceprefix_ = ( + self.shipmentId_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipmentId_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sshipmentId>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.shipmentId), input_name="shipmentId" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.primaryWaybillNumber is not None: + namespaceprefix_ = ( + self.primaryWaybillNumber_nsprefix_ + ":" + if (UseCapturedNS_ and self.primaryWaybillNumber_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sprimaryWaybillNumber>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.primaryWaybillNumber), + input_name="primaryWaybillNumber", + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.dispatchNotificationNumber is not None: + namespaceprefix_ = ( + self.dispatchNotificationNumber_nsprefix_ + ":" + if (UseCapturedNS_ and self.dispatchNotificationNumber_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sdispatchNotificationNumber>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.dispatchNotificationNumber), + input_name="dispatchNotificationNumber", + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.labelHeader is not None: + namespaceprefix_ = ( + self.labelHeader_nsprefix_ + ":" + if (UseCapturedNS_ and self.labelHeader_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%slabelHeader>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.labelHeader), input_name="labelHeader" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.content is not None: + namespaceprefix_ = ( + self.content_nsprefix_ + ":" + if (UseCapturedNS_ and self.content_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scontent>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.content), input_name="content" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.comment is not None: + namespaceprefix_ = ( + self.comment_nsprefix_ + ":" + if (UseCapturedNS_ and self.comment_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%scomment>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.comment), input_name="comment" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.reference is not None: + namespaceprefix_ = ( + self.reference_nsprefix_ + ":" + if (UseCapturedNS_ and self.reference_nsprefix_) + else "" + ) + showIndent(outfile, level, pretty_print) + outfile.write( + "<%sreference>%s%s" + % ( + namespaceprefix_, + self.gds_encode( + self.gds_format_string( + quote_xml(self.reference), input_name="reference" + ) + ), + namespaceprefix_, + eol_, + ) + ) + if self.billing is not None: + namespaceprefix_ = ( + self.billing_nsprefix_ + ":" + if (UseCapturedNS_ and self.billing_nsprefix_) + else "" + ) + self.billing.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="billing", + pretty_print=pretty_print, + ) + if self.shipmentTime is not None: + namespaceprefix_ = ( + self.shipmentTime_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipmentTime_nsprefix_) + else "" + ) + self.shipmentTime.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="shipmentTime", + pretty_print=pretty_print, + ) + if self.routing is not None: + namespaceprefix_ = ( + self.routing_nsprefix_ + ":" + if (UseCapturedNS_ and self.routing_nsprefix_) + else "" + ) + self.routing.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="routing", + pretty_print=pretty_print, + ) + if self.shipper is not None: + namespaceprefix_ = ( + self.shipper_nsprefix_ + ":" + if (UseCapturedNS_ and self.shipper_nsprefix_) + else "" + ) + self.shipper.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="shipper", + pretty_print=pretty_print, + ) + if self.receiver is not None: + namespaceprefix_ = ( + self.receiver_nsprefix_ + ":" + if (UseCapturedNS_ and self.receiver_nsprefix_) + else "" + ) + self.receiver.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="receiver", + pretty_print=pretty_print, + ) + if self.neighbour is not None: + namespaceprefix_ = ( + self.neighbour_nsprefix_ + ":" + if (UseCapturedNS_ and self.neighbour_nsprefix_) + else "" + ) + self.neighbour.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="neighbour", + pretty_print=pretty_print, + ) + if self.servicepoint is not None: + namespaceprefix_ = ( + self.servicepoint_nsprefix_ + ":" + if (UseCapturedNS_ and self.servicepoint_nsprefix_) + else "" + ) + self.servicepoint.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="servicepoint", + pretty_print=pretty_print, + ) + if self.service is not None: + namespaceprefix_ = ( + self.service_nsprefix_ + ":" + if (UseCapturedNS_ and self.service_nsprefix_) + else "" + ) + self.service.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="service", + pretty_print=pretty_print, + ) + if self.pieceList is not None: + namespaceprefix_ = ( + self.pieceList_nsprefix_ + ":" + if (UseCapturedNS_ and self.pieceList_nsprefix_) + else "" + ) + self.pieceList.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="pieceList", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "shipmentId": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "shipmentId") + value_ = self.gds_validate_string(value_, node, "shipmentId") + self.shipmentId = value_ + self.shipmentId_nsprefix_ = child_.prefix + elif nodeName_ == "primaryWaybillNumber": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "primaryWaybillNumber") + value_ = self.gds_validate_string(value_, node, "primaryWaybillNumber") + self.primaryWaybillNumber = value_ + self.primaryWaybillNumber_nsprefix_ = child_.prefix + elif nodeName_ == "dispatchNotificationNumber": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "dispatchNotificationNumber") + value_ = self.gds_validate_string( + value_, node, "dispatchNotificationNumber" + ) + self.dispatchNotificationNumber = value_ + self.dispatchNotificationNumber_nsprefix_ = child_.prefix + elif nodeName_ == "labelHeader": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "labelHeader") + value_ = self.gds_validate_string(value_, node, "labelHeader") + self.labelHeader = value_ + self.labelHeader_nsprefix_ = child_.prefix + elif nodeName_ == "content": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "content") + value_ = self.gds_validate_string(value_, node, "content") + self.content = value_ + self.content_nsprefix_ = child_.prefix + elif nodeName_ == "comment": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "comment") + value_ = self.gds_validate_string(value_, node, "comment") + self.comment = value_ + self.comment_nsprefix_ = child_.prefix + elif nodeName_ == "reference": + value_ = child_.text + value_ = self.gds_parse_string(value_, node, "reference") + value_ = self.gds_validate_string(value_, node, "reference") + self.reference = value_ + self.reference_nsprefix_ = child_.prefix + elif nodeName_ == "billing": + obj_ = Billing.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.billing = obj_ + obj_.original_tagname_ = "billing" + elif nodeName_ == "shipmentTime": + obj_ = ShipmentTimeLabelData.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.shipmentTime = obj_ + obj_.original_tagname_ = "shipmentTime" + elif nodeName_ == "routing": + obj_ = Routing.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.routing = obj_ + obj_.original_tagname_ = "routing" + elif nodeName_ == "shipper": + obj_ = ShipperAddressLabelData.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.shipper = obj_ + obj_.original_tagname_ = "shipper" + elif nodeName_ == "receiver": + obj_ = ReceiverAddressLabelData.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.receiver = obj_ + obj_.original_tagname_ = "receiver" + elif nodeName_ == "neighbour": + obj_ = NeighbourAddress.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.neighbour = obj_ + obj_.original_tagname_ = "neighbour" + elif nodeName_ == "servicepoint": + obj_ = ServicePoint.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.servicepoint = obj_ + obj_.original_tagname_ = "servicepoint" + elif nodeName_ == "service": + obj_ = LabelDataServiceDefinition.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.service = obj_ + obj_.original_tagname_ = "service" + elif nodeName_ == "pieceList": + obj_ = ArrayOfPiecedefinitionlabeldata.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.pieceList = obj_ + obj_.original_tagname_ = "pieceList" + + +# end class ItemToLabelDataResponse + + +class ArrayOfItemtolabeldataresponse(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, item=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + if item is None: + self.item = [] + else: + self.item = item + self.item_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, ArrayOfItemtolabeldataresponse + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if ArrayOfItemtolabeldataresponse.subclass: + return ArrayOfItemtolabeldataresponse.subclass(*args_, **kwargs_) + else: + return ArrayOfItemtolabeldataresponse(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_item(self): + return self.item + + def set_item(self, item): + self.item = item + + def add_item(self, value): + self.item.append(value) + + def insert_item_at(self, index, value): + self.item.insert(index, value) + + def replace_item_at(self, index, value): + self.item[index] = value + + def _hasContent(self): + if self.item: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfItemtolabeldataresponse", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get( + "ArrayOfItemtolabeldataresponse" + ) + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if ( + self.original_tagname_ is not None + and name_ == "ArrayOfItemtolabeldataresponse" + ): + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="ArrayOfItemtolabeldataresponse", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="ArrayOfItemtolabeldataresponse", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="ArrayOfItemtolabeldataresponse", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="ArrayOfItemtolabeldataresponse", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + for item_ in self.item: + namespaceprefix_ = ( + self.item_nsprefix_ + ":" + if (UseCapturedNS_ and self.item_nsprefix_) + else "" + ) + item_.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="item", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "item": + obj_ = ItemToLabelDataResponse.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.item.append(obj_) + obj_.original_tagname_ = "item" + + +# end class ArrayOfItemtolabeldataresponse + + +class getLabelsDataResponse(GeneratedsSuper): + __hash__ = GeneratedsSuper.__hash__ + subclass = None + superclass = None + + def __init__(self, getLabelsDataResult=None, gds_collector_=None, **kwargs_): + self.gds_collector_ = gds_collector_ + self.gds_elementtree_node_ = None + self.original_tagname_ = None + self.parent_object_ = kwargs_.get("parent_object_") + self.ns_prefix_ = None + self.getLabelsDataResult = getLabelsDataResult + self.getLabelsDataResult_nsprefix_ = "tns" + + def factory(*args_, **kwargs_): + if CurrentSubclassModule_ is not None: + subclass = getSubclassFromModule_( + CurrentSubclassModule_, getLabelsDataResponse + ) + if subclass is not None: + return subclass(*args_, **kwargs_) + if getLabelsDataResponse.subclass: + return getLabelsDataResponse.subclass(*args_, **kwargs_) + else: + return getLabelsDataResponse(*args_, **kwargs_) + + factory = staticmethod(factory) + + def get_ns_prefix_(self): + return self.ns_prefix_ + + def set_ns_prefix_(self, ns_prefix): + self.ns_prefix_ = ns_prefix + + def get_getLabelsDataResult(self): + return self.getLabelsDataResult + + def set_getLabelsDataResult(self, getLabelsDataResult): + self.getLabelsDataResult = getLabelsDataResult + + def _hasContent(self): + if self.getLabelsDataResult is not None: + return True + else: + return False + + def export( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getLabelsDataResponse", + pretty_print=True, + ): + imported_ns_def_ = GenerateDSNamespaceDefs_.get("getLabelsDataResponse") + if imported_ns_def_ is not None: + namespacedef_ = imported_ns_def_ + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.original_tagname_ is not None and name_ == "getLabelsDataResponse": + name_ = self.original_tagname_ + if UseCapturedNS_ and self.ns_prefix_: + namespaceprefix_ = self.ns_prefix_ + ":" + showIndent(outfile, level, pretty_print) + outfile.write( + "<%s%s%s" + % ( + namespaceprefix_, + name_, + namespacedef_ and " " + namespacedef_ or "", + ) + ) + already_processed = set() + self._exportAttributes( + outfile, + level, + already_processed, + namespaceprefix_, + name_="getLabelsDataResponse", + ) + if self._hasContent(): + outfile.write(">%s" % (eol_,)) + self._exportChildren( + outfile, + level + 1, + namespaceprefix_, + namespacedef_, + name_="getLabelsDataResponse", + pretty_print=pretty_print, + ) + showIndent(outfile, level, pretty_print) + outfile.write("%s" % (namespaceprefix_, name_, eol_)) + else: + outfile.write("/>%s" % (eol_,)) + + def _exportAttributes( + self, + outfile, + level, + already_processed, + namespaceprefix_="", + name_="getLabelsDataResponse", + ): + pass + + def _exportChildren( + self, + outfile, + level, + namespaceprefix_="", + namespacedef_="", + name_="getLabelsDataResponse", + fromsubclass_=False, + pretty_print=True, + ): + if pretty_print: + eol_ = "\n" + else: + eol_ = "" + if self.getLabelsDataResult is not None: + namespaceprefix_ = ( + self.getLabelsDataResult_nsprefix_ + ":" + if (UseCapturedNS_ and self.getLabelsDataResult_nsprefix_) + else "" + ) + self.getLabelsDataResult.export( + outfile, + level, + namespaceprefix_, + namespacedef_="", + name_="getLabelsDataResult", + pretty_print=pretty_print, + ) + + def build(self, node, gds_collector_=None): + self.gds_collector_ = gds_collector_ + if SaveElementTreeNode: + self.gds_elementtree_node_ = node + already_processed = set() + self.ns_prefix_ = node.prefix + self._buildAttributes(node, node.attrib, already_processed) + for child in node: + nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + return self + + def _buildAttributes(self, node, attrs, already_processed): + pass + + def _buildChildren( + self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None + ): + if nodeName_ == "getLabelsDataResult": + obj_ = ArrayOfItemtolabeldataresponse.factory(parent_object_=self) + obj_.build(child_, gds_collector_=gds_collector_) + self.getLabelsDataResult = obj_ + obj_.original_tagname_ = "getLabelsDataResult" + + +# end class getLabelsDataResponse + + +GDSClassesMapping = {} + + +USAGE_TEXT = """ +Usage: python .py [ -s ] +""" + + +def usage(): + print(USAGE_TEXT) + sys.exit(1) + + +def get_root_tag(node): + tag = Tag_pattern_.match(node.tag).groups()[-1] + rootClass = GDSClassesMapping.get(tag) + if rootClass is None: + rootClass = globals().get(tag) + return tag, rootClass + + +def get_required_ns_prefix_defs(rootNode): + """Get all name space prefix definitions required in this XML doc. + Return a dictionary of definitions and a char string of definitions. + """ + nsmap = { + prefix: uri + for node in rootNode.iter() + for (prefix, uri) in node.nsmap.items() + if prefix is not None + } + namespacedefs = " ".join( + ['xmlns:{}="{}"'.format(prefix, uri) for prefix, uri in nsmap.items()] + ) + return nsmap, namespacedefs + + +def parse(inFileName, silence=False, print_warnings=True): + global CapturedNsmap_ + gds_collector = GdsCollector_() + parser = None + doc = parsexml_(inFileName, parser) + rootNode = doc.getroot() + rootTag, rootClass = get_root_tag(rootNode) + if rootClass is None: + rootTag = "getVersion" + rootClass = getVersion + rootObj = rootClass.factory() + rootObj.build(rootNode, gds_collector_=gds_collector) + CapturedNsmap_, namespacedefs = get_required_ns_prefix_defs(rootNode) + if not SaveElementTreeNode: + doc = None + rootNode = None + if not silence: + sys.stdout.write('\n') + rootObj.export( + sys.stdout, 0, name_=rootTag, namespacedef_=namespacedefs, pretty_print=True + ) + if print_warnings and len(gds_collector.get_messages()) > 0: + separator = ("-" * 50) + "\n" + sys.stderr.write(separator) + sys.stderr.write( + "----- Warnings -- count: {} -----\n".format( + len(gds_collector.get_messages()), + ) + ) + gds_collector.write_messages(sys.stderr) + sys.stderr.write(separator) + return rootObj + + +def parseEtree( + inFileName, + silence=False, + print_warnings=True, + mapping=None, + reverse_mapping=None, + nsmap=None, +): + parser = None + doc = parsexml_(inFileName, parser) + gds_collector = GdsCollector_() + rootNode = doc.getroot() + rootTag, rootClass = get_root_tag(rootNode) + if rootClass is None: + rootTag = "getVersion" + rootClass = getVersion + rootObj = rootClass.factory() + rootObj.build(rootNode, gds_collector_=gds_collector) + if mapping is None: + mapping = {} + if reverse_mapping is None: + reverse_mapping = {} + rootElement = rootObj.to_etree( + None, + name_=rootTag, + mapping_=mapping, + reverse_mapping_=reverse_mapping, + nsmap_=nsmap, + ) + reverse_node_mapping = rootObj.gds_reverse_node_mapping(mapping) + # Enable Python to collect the space used by the DOM. + if not SaveElementTreeNode: + doc = None + rootNode = None + if not silence: + content = etree_.tostring( + rootElement, pretty_print=True, xml_declaration=True, encoding="utf-8" + ) + sys.stdout.write(str(content)) + sys.stdout.write("\n") + if print_warnings and len(gds_collector.get_messages()) > 0: + separator = ("-" * 50) + "\n" + sys.stderr.write(separator) + sys.stderr.write( + "----- Warnings -- count: {} -----\n".format( + len(gds_collector.get_messages()), + ) + ) + gds_collector.write_messages(sys.stderr) + sys.stderr.write(separator) + return rootObj, rootElement, mapping, reverse_node_mapping + + +def parseString(inString, silence=False, print_warnings=True): + """Parse a string, create the object tree, and export it. + + Arguments: + - inString -- A string. This XML fragment should not start + with an XML declaration containing an encoding. + - silence -- A boolean. If False, export the object. + Returns -- The root object in the tree. + """ + parser = None + rootNode = parsexmlstring_(inString, parser) + gds_collector = GdsCollector_() + rootTag, rootClass = get_root_tag(rootNode) + if rootClass is None: + rootTag = "getVersion" + rootClass = getVersion + rootObj = rootClass.factory() + rootObj.build(rootNode, gds_collector_=gds_collector) + if not SaveElementTreeNode: + rootNode = None + if not silence: + sys.stdout.write('\n') + rootObj.export( + sys.stdout, + 0, + name_=rootTag, + namespacedef_='xmlns:tns="https://dhl24.com.pl/webapi2/provider/service.html?ws=1"', + ) + if print_warnings and len(gds_collector.get_messages()) > 0: + separator = ("-" * 50) + "\n" + sys.stderr.write(separator) + sys.stderr.write( + "----- Warnings -- count: {} -----\n".format( + len(gds_collector.get_messages()), + ) + ) + gds_collector.write_messages(sys.stderr) + sys.stderr.write(separator) + return rootObj + + +def parseLiteral(inFileName, silence=False, print_warnings=True): + parser = None + doc = parsexml_(inFileName, parser) + gds_collector = GdsCollector_() + rootNode = doc.getroot() + rootTag, rootClass = get_root_tag(rootNode) + if rootClass is None: + rootTag = "getVersion" + rootClass = getVersion + rootObj = rootClass.factory() + rootObj.build(rootNode, gds_collector_=gds_collector) + # Enable Python to collect the space used by the DOM. + if not SaveElementTreeNode: + doc = None + rootNode = None + if not silence: + sys.stdout.write("#from services import *\n\n") + sys.stdout.write("import services as model_\n\n") + sys.stdout.write("rootObj = model_.rootClass(\n") + rootObj.exportLiteral(sys.stdout, 0, name_=rootTag) + sys.stdout.write(")\n") + if print_warnings and len(gds_collector.get_messages()) > 0: + separator = ("-" * 50) + "\n" + sys.stderr.write(separator) + sys.stderr.write( + "----- Warnings -- count: {} -----\n".format( + len(gds_collector.get_messages()), + ) + ) + gds_collector.write_messages(sys.stderr) + sys.stderr.write(separator) + return rootObj + + +def main(): + args = sys.argv[1:] + if len(args) == 1: + parse(args[0]) + else: + usage() + + +if __name__ == "__main__": + # import pdb; pdb.set_trace() + main() + +RenameMappings_ = {} + +# +# Mapping of namespaces to types defined in them +# and the file in which each is defined. +# simpleTypes are marked "ST" and complexTypes "CT". +NamespaceToDefMappings_ = { + "https://dhl24.com.pl/webapi2/provider/service.html?ws=1": [ + ("AuthData", "./schemas/webapi2.xsd", "CT"), + ("AddressData", "./schemas/webapi2.xsd", "CT"), + ("ReceiverAddressData", "./schemas/webapi2.xsd", "CT"), + ("NeighbourAddress", "./schemas/webapi2.xsd", "CT"), + ("PieceDefinition", "./schemas/webapi2.xsd", "CT"), + ("ArrayOfPiecedefinition", "./schemas/webapi2.xsd", "CT"), + ("PaymentData", "./schemas/webapi2.xsd", "CT"), + ("ServiceDefinition", "./schemas/webapi2.xsd", "CT"), + ("CustomsItemData", "./schemas/webapi2.xsd", "CT"), + ("ArrayOfCustomsitemdata", "./schemas/webapi2.xsd", "CT"), + ("CustomsAgreementData", "./schemas/webapi2.xsd", "CT"), + ("CustomsData", "./schemas/webapi2.xsd", "CT"), + ("ShipmentFullData", "./schemas/webapi2.xsd", "CT"), + ("ArrayOfShipmentfulldata", "./schemas/webapi2.xsd", "CT"), + ("ShipmentBasicData", "./schemas/webapi2.xsd", "CT"), + ("ArrayOfShipmentbasicdata", "./schemas/webapi2.xsd", "CT"), + ("ReturnItemToPrint", "./schemas/webapi2.xsd", "CT"), + ("ArrayOfReturnitemtoprint", "./schemas/webapi2.xsd", "CT"), + ("Label", "./schemas/webapi2.xsd", "CT"), + ("CreateShipmentResponse", "./schemas/webapi2.xsd", "CT"), + ("ArrayOfCreateshipmentresponse", "./schemas/webapi2.xsd", "CT"), + ("Billing", "./schemas/webapi2.xsd", "CT"), + ("ReturnService", "./schemas/webapi2.xsd", "CT"), + ("ArrayOfReturnservice", "./schemas/webapi2.xsd", "CT"), + ("ReturnShipmentTime", "./schemas/webapi2.xsd", "CT"), + ("ReturnShipmentInfo", "./schemas/webapi2.xsd", "CT"), + ("PreavisoContact", "./schemas/webapi2.xsd", "CT"), + ("ShipperAddress", "./schemas/webapi2.xsd", "CT"), + ("ReturnAddressat", "./schemas/webapi2.xsd", "CT"), + ("ReturnShip", "./schemas/webapi2.xsd", "CT"), + ("ReturnPackage", "./schemas/webapi2.xsd", "CT"), + ("ArrayOfReturnpackage", "./schemas/webapi2.xsd", "CT"), + ("CreateReturnShipmentRequest", "./schemas/webapi2.xsd", "CT"), + ("CreateReturnShipmentResponse", "./schemas/webapi2.xsd", "CT"), + ("ArrayOfCreatereturnshipmentresponse", "./schemas/webapi2.xsd", "CT"), + ("ArrayOfString", "./schemas/webapi2.xsd", "CT"), + ("DeleteNotification", "./schemas/webapi2.xsd", "CT"), + ("ArrayOfDeletenotification", "./schemas/webapi2.xsd", "CT"), + ("PostalCodeServicesResponse", "./schemas/webapi2.xsd", "CT"), + ("TrackAndTraceEvent", "./schemas/webapi2.xsd", "CT"), + ("ArrayOfTrackandtraceevent", "./schemas/webapi2.xsd", "CT"), + ("TrackAndTraceResponse", "./schemas/webapi2.xsd", "CT"), + ("ShipmentOrderInfo", "./schemas/webapi2.xsd", "CT"), + ("ItemToPrint", "./schemas/webapi2.xsd", "CT"), + ("ArrayOfItemtoprint", "./schemas/webapi2.xsd", "CT"), + ("ItemToPrintResponse", "./schemas/webapi2.xsd", "CT"), + ("ArrayOfItemtoprintresponse", "./schemas/webapi2.xsd", "CT"), + ("PnpRequest", "./schemas/webapi2.xsd", "CT"), + ("PnpResponse", "./schemas/webapi2.xsd", "CT"), + ("ScanToPrintResponse", "./schemas/webapi2.xsd", "CT"), + ("Service", "./schemas/webapi2.xsd", "CT"), + ("ArrayOfService", "./schemas/webapi2.xsd", "CT"), + ("ShipmentTime", "./schemas/webapi2.xsd", "CT"), + ("ShipmentInfo", "./schemas/webapi2.xsd", "CT"), + ("Address", "./schemas/webapi2.xsd", "CT"), + ("Addressat", "./schemas/webapi2.xsd", "CT"), + ("ReceiverAddress", "./schemas/webapi2.xsd", "CT"), + ("ReceiverAddressat", "./schemas/webapi2.xsd", "CT"), + ("Ship", "./schemas/webapi2.xsd", "CT"), + ("Package", "./schemas/webapi2.xsd", "CT"), + ("ArrayOfPackage", "./schemas/webapi2.xsd", "CT"), + ("CreateShipmentRequest", "./schemas/webapi2.xsd", "CT"), + ("DeleteShipmentRequest", "./schemas/webapi2.xsd", "CT"), + ("DeleteShipmentResponse", "./schemas/webapi2.xsd", "CT"), + ("GetNearestServicepointsRequest", "./schemas/webapi2.xsd", "CT"), + ("SearchAddress", "./schemas/webapi2.xsd", "CT"), + ("Point", "./schemas/webapi2.xsd", "CT"), + ("ArrayOfPoint", "./schemas/webapi2.xsd", "CT"), + ("GetNearestServicepointsResponse", "./schemas/webapi2.xsd", "CT"), + ("InternationalParam", "./schemas/webapi2.xsd", "CT"), + ("ArrayOfInternationalparam", "./schemas/webapi2.xsd", "CT"), + ("GetInternationalParamsResponse", "./schemas/webapi2.xsd", "CT"), + ("ReturnParam", "./schemas/webapi2.xsd", "CT"), + ("ArrayOfReturnparam", "./schemas/webapi2.xsd", "CT"), + ("GetReturnParamsResponse", "./schemas/webapi2.xsd", "CT"), + ("ReturnPip2Param", "./schemas/webapi2.xsd", "CT"), + ("ArrayOfReturnpip2param", "./schemas/webapi2.xsd", "CT"), + ("ReturnPip2Country", "./schemas/webapi2.xsd", "CT"), + ("ArrayOfReturnpip2country", "./schemas/webapi2.xsd", "CT"), + ("GetPip2Response", "./schemas/webapi2.xsd", "CT"), + ("PieceShipmentItem", "./schemas/webapi2.xsd", "CT"), + ("ArrayOfPieceshipmentitem", "./schemas/webapi2.xsd", "CT"), + ("GetPieceIdRequest", "./schemas/webapi2.xsd", "CT"), + ("Piece", "./schemas/webapi2.xsd", "CT"), + ("ArrayOfPiece", "./schemas/webapi2.xsd", "CT"), + ("PieceShipment", "./schemas/webapi2.xsd", "CT"), + ("ArrayOfPieceshipment", "./schemas/webapi2.xsd", "CT"), + ("GetPieceIdResponse", "./schemas/webapi2.xsd", "CT"), + ("ItemToLabelData", "./schemas/webapi2.xsd", "CT"), + ("ArrayOfItemtolabeldata", "./schemas/webapi2.xsd", "CT"), + ("ShipmentTimeLabelData", "./schemas/webapi2.xsd", "CT"), + ("Routing", "./schemas/webapi2.xsd", "CT"), + ("ShipperAddressLabelData", "./schemas/webapi2.xsd", "CT"), + ("ReceiverAddressLabelData", "./schemas/webapi2.xsd", "CT"), + ("ServicePoint", "./schemas/webapi2.xsd", "CT"), + ("LabelDataServiceDefinition", "./schemas/webapi2.xsd", "CT"), + ("PieceDefinitionLabelData", "./schemas/webapi2.xsd", "CT"), + ("ArrayOfPiecedefinitionlabeldata", "./schemas/webapi2.xsd", "CT"), + ("ItemToLabelDataResponse", "./schemas/webapi2.xsd", "CT"), + ("ArrayOfItemtolabeldataresponse", "./schemas/webapi2.xsd", "CT"), + ] +} + +__all__ = [ + "Address", + "AddressData", + "Addressat", + "ArrayOfCreatereturnshipmentresponse", + "ArrayOfCreateshipmentresponse", + "ArrayOfCustomsitemdata", + "ArrayOfDeletenotification", + "ArrayOfInternationalparam", + "ArrayOfItemtolabeldata", + "ArrayOfItemtolabeldataresponse", + "ArrayOfItemtoprint", + "ArrayOfItemtoprintresponse", + "ArrayOfPackage", + "ArrayOfPiece", + "ArrayOfPiecedefinition", + "ArrayOfPiecedefinitionlabeldata", + "ArrayOfPieceshipment", + "ArrayOfPieceshipmentitem", + "ArrayOfPoint", + "ArrayOfReturnitemtoprint", + "ArrayOfReturnpackage", + "ArrayOfReturnparam", + "ArrayOfReturnpip2country", + "ArrayOfReturnpip2param", + "ArrayOfReturnservice", + "ArrayOfService", + "ArrayOfShipmentbasicdata", + "ArrayOfShipmentfulldata", + "ArrayOfString", + "ArrayOfTrackandtraceevent", + "AuthData", + "Billing", + "CreateReturnShipmentRequest", + "CreateReturnShipmentResponse", + "CreateShipmentRequest", + "CreateShipmentResponse", + "CustomsAgreementData", + "CustomsData", + "CustomsItemData", + "DeleteNotification", + "DeleteShipmentRequest", + "DeleteShipmentResponse", + "GetInternationalParamsResponse", + "GetNearestServicepointsRequest", + "GetNearestServicepointsResponse", + "GetPieceIdRequest", + "GetPieceIdResponse", + "GetPip2Response", + "GetReturnParamsResponse", + "InternationalParam", + "ItemToLabelData", + "ItemToLabelDataResponse", + "ItemToPrint", + "ItemToPrintResponse", + "Label", + "LabelDataServiceDefinition", + "NeighbourAddress", + "Package", + "PaymentData", + "Piece", + "PieceDefinition", + "PieceDefinitionLabelData", + "PieceShipment", + "PieceShipmentItem", + "PnpRequest", + "PnpResponse", + "Point", + "PostalCodeServicesResponse", + "PreavisoContact", + "ReceiverAddress", + "ReceiverAddressData", + "ReceiverAddressLabelData", + "ReceiverAddressat", + "ReturnAddressat", + "ReturnItemToPrint", + "ReturnPackage", + "ReturnParam", + "ReturnPip2Country", + "ReturnPip2Param", + "ReturnService", + "ReturnShip", + "ReturnShipmentInfo", + "ReturnShipmentTime", + "Routing", + "ScanToPrintResponse", + "SearchAddress", + "Service", + "ServiceDefinition", + "ServicePoint", + "Ship", + "ShipmentBasicData", + "ShipmentFullData", + "ShipmentInfo", + "ShipmentOrderInfo", + "ShipmentTime", + "ShipmentTimeLabelData", + "ShipperAddress", + "ShipperAddressLabelData", + "TrackAndTraceEvent", + "TrackAndTraceResponse", + "bookCourier", + "bookCourierResponse", + "cancelCourierBooking", + "cancelCourierBookingResponse", + "createShipment", + "createShipmentResponse", + "createShipmentReturn", + "createShipmentReturnResponse", + "createShipments", + "createShipmentsResponse", + "deleteShipment", + "deleteShipmentResponse", + "deleteShipments", + "deleteShipmentsResponse", + "getInternationalParams", + "getInternationalParams2", + "getInternationalParams2Response", + "getInternationalParamsResponse", + "getLabels", + "getLabelsData", + "getLabelsDataResponse", + "getLabelsResponse", + "getMyShipments", + "getMyShipmentsCount", + "getMyShipmentsCountResponse", + "getMyShipmentsResponse", + "getNearestServicepoints", + "getNearestServicepointsResponse", + "getPieceId", + "getPieceIdResponse", + "getPnp", + "getPnpResponse", + "getPostalCodeServices", + "getPostalCodeServicesResponse", + "getReturnByWaybill", + "getReturnByWaybillResponse", + "getReturnParams", + "getReturnParamsResponse", + "getShipmentScan", + "getShipmentScanResponse", + "getTrackAndTraceInfo", + "getTrackAndTraceInfoResponse", + "getVersion", + "getVersionResponse", +] diff --git a/schemas/dhl_poland/generate.sh b/schemas/dhl_poland/generate.sh new file mode 100755 index 0000000000..4930ce5ab9 --- /dev/null +++ b/schemas/dhl_poland/generate.sh @@ -0,0 +1,7 @@ +SCHEMAS=./schemas +LIB_MODULES=./dhl_poland_lib +mkdir -p $LIB_MODULES +find "${LIB_MODULES}" -name "*.py" -exec rm -r {} \; +touch "${LIB_MODULES}/__init__.py" + +generateDS --no-namespace-defs -o "${LIB_MODULES}/services.py" "${SCHEMAS}/webapi2.xsd" diff --git a/schemas/dhl_poland/pyproject.toml b/schemas/dhl_poland/pyproject.toml new file mode 100644 index 0000000000..c11a3b153b --- /dev/null +++ b/schemas/dhl_poland/pyproject.toml @@ -0,0 +1,29 @@ +[tool.poetry] +name = "carrier.dhl_poland" +version = "2021.11" +description = "DHL Parcel Poland Web API Schemas Python Data Types library" +repository="https://github.com/purplship/purplship-carriers" +homepage="https://github.com/purplship/purplship-carriers/tree/main/schemas/carrier.dhl_poland" +authors = ["Purplship "] +license = "Apache-2.0" +readme = "README.md" +packages = [ + { include = "dhl_poland_lib" } +] +classifiers = [ + "Intended Audience :: Developers", + "Operating System :: OS Independent", + "Programming Language :: Python :: 3", + "License :: OSI Approved :: Apache Software License", +] + +[tool.poetry.dependencies] +python = "^3.6" +six = "" +lxml = "" + +[tool.poetry.dev-dependencies] + +[build-system] +requires = ["poetry-core>=1.0.0", "setuptools!=50.0"] +build-backend = "poetry.core.masonry.api" diff --git a/schemas/dhl_poland/schemas/webapi2.xsd b/schemas/dhl_poland/schemas/webapi2.xsd new file mode 100644 index 0000000000..25ea3bedbb --- /dev/null +++ b/schemas/dhl_poland/schemas/webapi2.xsd @@ -0,0 +1,1331 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemas/dhl_poland/setup.py b/schemas/dhl_poland/setup.py new file mode 100644 index 0000000000..cd1cc1dbef --- /dev/null +++ b/schemas/dhl_poland/setup.py @@ -0,0 +1,12 @@ +"""Warning: This setup.py is only there for git install until poetry support git subdirectory""" + +from setuptools import setup, find_packages + +setup( + name="carrier.dhl_poland", + version="0.0.0-dev", + license="MIT", + packages=find_packages(), + install_requires=["six", "lxml"], + zip_safe=False, +) diff --git a/schemas/dhl_universal/poetry.lock b/schemas/dhl_universal/poetry.lock deleted file mode 100644 index c0f20eefa8..0000000000 --- a/schemas/dhl_universal/poetry.lock +++ /dev/null @@ -1,38 +0,0 @@ -[[package]] -name = "attrs" -version = "21.2.0" -description = "Classes Without Boilerplate" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" - -[package.extras] -dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit"] -docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"] -tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface"] -tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins"] - -[[package]] -name = "jstruct" -version = "2021.7" -description = "Readable serializable and deserializable Python nested models" -category = "main" -optional = false -python-versions = "*" - -[package.dependencies] -attrs = "*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.6" -content-hash = "d4bb079c1f203114105cccb0b7dfb0a164371ce2fd95810733400e543cc47dac" - -[metadata.files] -attrs = [ - {file = "attrs-21.2.0-py2.py3-none-any.whl", hash = "sha256:149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1"}, - {file = "attrs-21.2.0.tar.gz", hash = "sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"}, -] -jstruct = [ - {file = "jstruct-2021.7-py3-none-any.whl", hash = "sha256:e423aa7336c025581ff7b3dae3c886753d22a884d38f18f99a4836a6c97ff8a2"}, -] diff --git a/schemas/dhl_universal/pyproject.toml b/schemas/dhl_universal/pyproject.toml index 05354df0d1..6a52f34845 100644 --- a/schemas/dhl_universal/pyproject.toml +++ b/schemas/dhl_universal/pyproject.toml @@ -5,7 +5,7 @@ description = "DHL eCommerce API Schemas Python Data Types library" repository="https://github.com/purplship/purplship" homepage="https://github.com/purplship/purplship/tree/main/carrier.dhl_universal" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [{ include = "dhl_universal_lib" }] classifiers = [ diff --git a/schemas/dicom/poetry.lock b/schemas/dicom/poetry.lock deleted file mode 100644 index c0f20eefa8..0000000000 --- a/schemas/dicom/poetry.lock +++ /dev/null @@ -1,38 +0,0 @@ -[[package]] -name = "attrs" -version = "21.2.0" -description = "Classes Without Boilerplate" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" - -[package.extras] -dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit"] -docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"] -tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface"] -tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins"] - -[[package]] -name = "jstruct" -version = "2021.7" -description = "Readable serializable and deserializable Python nested models" -category = "main" -optional = false -python-versions = "*" - -[package.dependencies] -attrs = "*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.6" -content-hash = "d4bb079c1f203114105cccb0b7dfb0a164371ce2fd95810733400e543cc47dac" - -[metadata.files] -attrs = [ - {file = "attrs-21.2.0-py2.py3-none-any.whl", hash = "sha256:149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1"}, - {file = "attrs-21.2.0.tar.gz", hash = "sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"}, -] -jstruct = [ - {file = "jstruct-2021.7-py3-none-any.whl", hash = "sha256:e423aa7336c025581ff7b3dae3c886753d22a884d38f18f99a4836a6c97ff8a2"}, -] diff --git a/schemas/dicom/pyproject.toml b/schemas/dicom/pyproject.toml index 610da3c65b..66d941bca9 100644 --- a/schemas/dicom/pyproject.toml +++ b/schemas/dicom/pyproject.toml @@ -5,7 +5,7 @@ description = "Dicom Web API Schemas Python Data Types library" repository="https://github.com/purplship/purplship" homepage="https://github.com/purplship/purplship/tree/main/carrier.dicom" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [ { include = "dicom_lib" } diff --git a/schemas/fedex/poetry.lock b/schemas/fedex/poetry.lock deleted file mode 100644 index a2399304f4..0000000000 --- a/schemas/fedex/poetry.lock +++ /dev/null @@ -1,71 +0,0 @@ -[[package]] -name = "lxml" -version = "4.6.2" -description = "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API." -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*" - -[package.extras] -cssselect = ["cssselect (>=0.7)"] -html5 = ["html5lib"] -htmlsoup = ["beautifulsoup4"] -source = ["Cython (>=0.29.7)"] - -[[package]] -name = "six" -version = "1.15.0" -description = "Python 2 and 3 compatibility utilities" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.6" -content-hash = "ac23fabec3fe14e5c01d89383de3fd7c7e0642c06d783be7b52b7c138c673571" - -[metadata.files] -lxml = [ - {file = "lxml-4.6.2-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:a9d6bc8642e2c67db33f1247a77c53476f3a166e09067c0474facb045756087f"}, - {file = "lxml-4.6.2-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:791394449e98243839fa822a637177dd42a95f4883ad3dec2a0ce6ac99fb0a9d"}, - {file = "lxml-4.6.2-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:68a5d77e440df94011214b7db907ec8f19e439507a70c958f750c18d88f995d2"}, - {file = "lxml-4.6.2-cp27-cp27m-win32.whl", hash = "sha256:fc37870d6716b137e80d19241d0e2cff7a7643b925dfa49b4c8ebd1295eb506e"}, - {file = "lxml-4.6.2-cp27-cp27m-win_amd64.whl", hash = "sha256:69a63f83e88138ab7642d8f61418cf3180a4d8cd13995df87725cb8b893e950e"}, - {file = "lxml-4.6.2-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:42ebca24ba2a21065fb546f3e6bd0c58c3fe9ac298f3a320147029a4850f51a2"}, - {file = "lxml-4.6.2-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:f83d281bb2a6217cd806f4cf0ddded436790e66f393e124dfe9731f6b3fb9afe"}, - {file = "lxml-4.6.2-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:535f067002b0fd1a4e5296a8f1bf88193080ff992a195e66964ef2a6cfec5388"}, - {file = "lxml-4.6.2-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:366cb750140f221523fa062d641393092813b81e15d0e25d9f7c6025f910ee80"}, - {file = "lxml-4.6.2-cp35-cp35m-manylinux2014_aarch64.whl", hash = "sha256:97db258793d193c7b62d4e2586c6ed98d51086e93f9a3af2b2034af01450a74b"}, - {file = "lxml-4.6.2-cp35-cp35m-win32.whl", hash = "sha256:648914abafe67f11be7d93c1a546068f8eff3c5fa938e1f94509e4a5d682b2d8"}, - {file = "lxml-4.6.2-cp35-cp35m-win_amd64.whl", hash = "sha256:4e751e77006da34643ab782e4a5cc21ea7b755551db202bc4d3a423b307db780"}, - {file = "lxml-4.6.2-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:681d75e1a38a69f1e64ab82fe4b1ed3fd758717bed735fb9aeaa124143f051af"}, - {file = "lxml-4.6.2-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:127f76864468d6630e1b453d3ffbbd04b024c674f55cf0a30dc2595137892d37"}, - {file = "lxml-4.6.2-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:4fb85c447e288df535b17ebdebf0ec1cf3a3f1a8eba7e79169f4f37af43c6b98"}, - {file = "lxml-4.6.2-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:5be4a2e212bb6aa045e37f7d48e3e1e4b6fd259882ed5a00786f82e8c37ce77d"}, - {file = "lxml-4.6.2-cp36-cp36m-win32.whl", hash = "sha256:8c88b599e226994ad4db29d93bc149aa1aff3dc3a4355dd5757569ba78632bdf"}, - {file = "lxml-4.6.2-cp36-cp36m-win_amd64.whl", hash = "sha256:6e4183800f16f3679076dfa8abf2db3083919d7e30764a069fb66b2b9eff9939"}, - {file = "lxml-4.6.2-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:d8d3d4713f0c28bdc6c806a278d998546e8efc3498949e3ace6e117462ac0a5e"}, - {file = "lxml-4.6.2-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:8246f30ca34dc712ab07e51dc34fea883c00b7ccb0e614651e49da2c49a30711"}, - {file = "lxml-4.6.2-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:923963e989ffbceaa210ac37afc9b906acebe945d2723e9679b643513837b089"}, - {file = "lxml-4.6.2-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:1471cee35eba321827d7d53d104e7b8c593ea3ad376aa2df89533ce8e1b24a01"}, - {file = "lxml-4.6.2-cp37-cp37m-win32.whl", hash = "sha256:2363c35637d2d9d6f26f60a208819e7eafc4305ce39dc1d5005eccc4593331c2"}, - {file = "lxml-4.6.2-cp37-cp37m-win_amd64.whl", hash = "sha256:f4822c0660c3754f1a41a655e37cb4dbbc9be3d35b125a37fab6f82d47674ebc"}, - {file = "lxml-4.6.2-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:0448576c148c129594d890265b1a83b9cd76fd1f0a6a04620753d9a6bcfd0a4d"}, - {file = "lxml-4.6.2-cp38-cp38-manylinux1_i686.whl", hash = "sha256:60a20bfc3bd234d54d49c388950195d23a5583d4108e1a1d47c9eef8d8c042b3"}, - {file = "lxml-4.6.2-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:2e5cc908fe43fe1aa299e58046ad66981131a66aea3129aac7770c37f590a644"}, - {file = "lxml-4.6.2-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:50c348995b47b5a4e330362cf39fc503b4a43b14a91c34c83b955e1805c8e308"}, - {file = "lxml-4.6.2-cp38-cp38-win32.whl", hash = "sha256:94d55bd03d8671686e3f012577d9caa5421a07286dd351dfef64791cf7c6c505"}, - {file = "lxml-4.6.2-cp38-cp38-win_amd64.whl", hash = "sha256:7a7669ff50f41225ca5d6ee0a1ec8413f3a0d8aa2b109f86d540887b7ec0d72a"}, - {file = "lxml-4.6.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:e0bfe9bb028974a481410432dbe1b182e8191d5d40382e5b8ff39cdd2e5c5931"}, - {file = "lxml-4.6.2-cp39-cp39-manylinux1_i686.whl", hash = "sha256:6fd8d5903c2e53f49e99359b063df27fdf7acb89a52b6a12494208bf61345a03"}, - {file = "lxml-4.6.2-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:7e9eac1e526386df7c70ef253b792a0a12dd86d833b1d329e038c7a235dfceb5"}, - {file = "lxml-4.6.2-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:7ee8af0b9f7de635c61cdd5b8534b76c52cd03536f29f51151b377f76e214a1a"}, - {file = "lxml-4.6.2-cp39-cp39-win32.whl", hash = "sha256:2e6fd1b8acd005bd71e6c94f30c055594bbd0aa02ef51a22bbfa961ab63b2d75"}, - {file = "lxml-4.6.2-cp39-cp39-win_amd64.whl", hash = "sha256:535332fe9d00c3cd455bd3dd7d4bacab86e2d564bdf7606079160fa6251caacf"}, - {file = "lxml-4.6.2.tar.gz", hash = "sha256:cd11c7e8d21af997ee8079037fff88f16fda188a9776eb4b81c7e4c9c0a7d7fc"}, -] -six = [ - {file = "six-1.15.0-py2.py3-none-any.whl", hash = "sha256:8b74bedcbbbaca38ff6d7491d76f2b06b3592611af620f8426e82dddb04a5ced"}, - {file = "six-1.15.0.tar.gz", hash = "sha256:30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259"}, -] diff --git a/schemas/fedex/pyproject.toml b/schemas/fedex/pyproject.toml index 5929035dec..556be88196 100644 --- a/schemas/fedex/pyproject.toml +++ b/schemas/fedex/pyproject.toml @@ -5,7 +5,7 @@ description = "FedEx Web API Schemas Python Data Types library" repository="https://github.com/purplship/purplship" homepage="https://github.com/purplship/purplship/tree/main/carrier.fedex" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [ { include = "fedex_lib" } diff --git a/schemas/ics_courier/poetry.lock b/schemas/ics_courier/poetry.lock deleted file mode 100644 index 0c249cba13..0000000000 --- a/schemas/ics_courier/poetry.lock +++ /dev/null @@ -1,80 +0,0 @@ -[[package]] -name = "lxml" -version = "4.6.3" -description = "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API." -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*" - -[package.extras] -cssselect = ["cssselect (>=0.7)"] -html5 = ["html5lib"] -htmlsoup = ["beautifulsoup4"] -source = ["Cython (>=0.29.7)"] - -[[package]] -name = "six" -version = "1.16.0" -description = "Python 2 and 3 compatibility utilities" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.6" -content-hash = "a263a9cf580cc387fc0c49ffea9b17e41228db7cf15473814d565771e720c69b" - -[metadata.files] -lxml = [ - {file = "lxml-4.6.3-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:df7c53783a46febb0e70f6b05df2ba104610f2fb0d27023409734a3ecbb78fb2"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:1b7584d421d254ab86d4f0b13ec662a9014397678a7c4265a02a6d7c2b18a75f"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:079f3ae844f38982d156efce585bc540c16a926d4436712cf4baee0cce487a3d"}, - {file = "lxml-4.6.3-cp27-cp27m-win32.whl", hash = "sha256:bc4313cbeb0e7a416a488d72f9680fffffc645f8a838bd2193809881c67dd106"}, - {file = "lxml-4.6.3-cp27-cp27m-win_amd64.whl", hash = "sha256:8157dadbb09a34a6bd95a50690595e1fa0af1a99445e2744110e3dca7831c4ee"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:7728e05c35412ba36d3e9795ae8995e3c86958179c9770e65558ec3fdfd3724f"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:4bff24dfeea62f2e56f5bab929b4428ae6caba2d1eea0c2d6eb618e30a71e6d4"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:74f7d8d439b18fa4c385f3f5dfd11144bb87c1da034a466c5b5577d23a1d9b51"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:f90ba11136bfdd25cae3951af8da2e95121c9b9b93727b1b896e3fa105b2f586"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux2010_i686.whl", hash = "sha256:4c61b3a0db43a1607d6264166b230438f85bfed02e8cff20c22e564d0faff354"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux2014_x86_64.whl", hash = "sha256:5c8c163396cc0df3fd151b927e74f6e4acd67160d6c33304e805b84293351d16"}, - {file = "lxml-4.6.3-cp35-cp35m-win32.whl", hash = "sha256:f2380a6376dfa090227b663f9678150ef27543483055cc327555fb592c5967e2"}, - {file = "lxml-4.6.3-cp35-cp35m-win_amd64.whl", hash = "sha256:c4f05c5a7c49d2fb70223d0d5bcfbe474cf928310ac9fa6a7c6dddc831d0b1d4"}, - {file = "lxml-4.6.3-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:d2e35d7bf1c1ac8c538f88d26b396e73dd81440d59c1ef8522e1ea77b345ede4"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:289e9ca1a9287f08daaf796d96e06cb2bc2958891d7911ac7cae1c5f9e1e0ee3"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:bccbfc27563652de7dc9bdc595cb25e90b59c5f8e23e806ed0fd623755b6565d"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux2010_i686.whl", hash = "sha256:d916d31fd85b2f78c76400d625076d9124de3e4bda8b016d25a050cc7d603f24"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:820628b7b3135403540202e60551e741f9b6d3304371712521be939470b454ec"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux2014_x86_64.whl", hash = "sha256:c47ff7e0a36d4efac9fd692cfa33fbd0636674c102e9e8d9b26e1b93a94e7617"}, - {file = "lxml-4.6.3-cp36-cp36m-win32.whl", hash = "sha256:5a0a14e264069c03e46f926be0d8919f4105c1623d620e7ec0e612a2e9bf1c04"}, - {file = "lxml-4.6.3-cp36-cp36m-win_amd64.whl", hash = "sha256:92e821e43ad382332eade6812e298dc9701c75fe289f2a2d39c7960b43d1e92a"}, - {file = "lxml-4.6.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:efd7a09678fd8b53117f6bae4fa3825e0a22b03ef0a932e070c0bdbb3a35e654"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:efac139c3f0bf4f0939f9375af4b02c5ad83a622de52d6dfa8e438e8e01d0eb0"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:0fbcf5565ac01dff87cbfc0ff323515c823081c5777a9fc7703ff58388c258c3"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux2010_i686.whl", hash = "sha256:36108c73739985979bf302006527cf8a20515ce444ba916281d1c43938b8bb96"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:122fba10466c7bd4178b07dba427aa516286b846b2cbd6f6169141917283aae2"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux2014_x86_64.whl", hash = "sha256:cdaf11d2bd275bf391b5308f86731e5194a21af45fbaaaf1d9e8147b9160ea92"}, - {file = "lxml-4.6.3-cp37-cp37m-win32.whl", hash = "sha256:3439c71103ef0e904ea0a1901611863e51f50b5cd5e8654a151740fde5e1cade"}, - {file = "lxml-4.6.3-cp37-cp37m-win_amd64.whl", hash = "sha256:4289728b5e2000a4ad4ab8da6e1db2e093c63c08bdc0414799ee776a3f78da4b"}, - {file = "lxml-4.6.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:b007cbb845b28db4fb8b6a5cdcbf65bacb16a8bd328b53cbc0698688a68e1caa"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_i686.whl", hash = "sha256:76fa7b1362d19f8fbd3e75fe2fb7c79359b0af8747e6f7141c338f0bee2f871a"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:26e761ab5b07adf5f555ee82fb4bfc35bf93750499c6c7614bd64d12aaa67927"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux2010_i686.whl", hash = "sha256:e1cbd3f19a61e27e011e02f9600837b921ac661f0c40560eefb366e4e4fb275e"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:66e575c62792c3f9ca47cb8b6fab9e35bab91360c783d1606f758761810c9791"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux2014_x86_64.whl", hash = "sha256:1b38116b6e628118dea5b2186ee6820ab138dbb1e24a13e478490c7db2f326ae"}, - {file = "lxml-4.6.3-cp38-cp38-win32.whl", hash = "sha256:89b8b22a5ff72d89d48d0e62abb14340d9e99fd637d046c27b8b257a01ffbe28"}, - {file = "lxml-4.6.3-cp38-cp38-win_amd64.whl", hash = "sha256:2a9d50e69aac3ebee695424f7dbd7b8c6d6eb7de2a2eb6b0f6c7db6aa41e02b7"}, - {file = "lxml-4.6.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:ce256aaa50f6cc9a649c51be3cd4ff142d67295bfc4f490c9134d0f9f6d58ef0"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_i686.whl", hash = "sha256:7610b8c31688f0b1be0ef882889817939490a36d0ee880ea562a4e1399c447a1"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:f8380c03e45cf09f8557bdaa41e1fa7c81f3ae22828e1db470ab2a6c96d8bc23"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux2010_i686.whl", hash = "sha256:3082c518be8e97324390614dacd041bb1358c882d77108ca1957ba47738d9d59"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:884ab9b29feaca361f7f88d811b1eea9bfca36cf3da27768d28ad45c3ee6f969"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux2014_x86_64.whl", hash = "sha256:6f12e1427285008fd32a6025e38e977d44d6382cf28e7201ed10d6c1698d2a9a"}, - {file = "lxml-4.6.3-cp39-cp39-win32.whl", hash = "sha256:33bb934a044cf32157c12bfcfbb6649807da20aa92c062ef51903415c704704f"}, - {file = "lxml-4.6.3-cp39-cp39-win_amd64.whl", hash = "sha256:542d454665a3e277f76954418124d67516c5f88e51a900365ed54a9806122b83"}, - {file = "lxml-4.6.3.tar.gz", hash = "sha256:39b78571b3b30645ac77b95f7c69d1bffc4cf8c3b157c435a34da72e78c82468"}, -] -six = [ - {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"}, - {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"}, -] diff --git a/schemas/ics_courier/pyproject.toml b/schemas/ics_courier/pyproject.toml index 877705f43c..afe178ff7d 100644 --- a/schemas/ics_courier/pyproject.toml +++ b/schemas/ics_courier/pyproject.toml @@ -5,7 +5,7 @@ description = "ICS courier Web API Schemas Python Data Types library" repository="https://github.com/purplship/purplship-carriers" homepage="https://github.com/purplship/purplship-carriers/tree/master/carrier.ics_courier" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [ { include = "ics_courier_lib" } diff --git a/schemas/nationex/poetry.lock b/schemas/nationex/poetry.lock deleted file mode 100644 index d488261a22..0000000000 --- a/schemas/nationex/poetry.lock +++ /dev/null @@ -1,38 +0,0 @@ -[[package]] -name = "attrs" -version = "21.2.0" -description = "Classes Without Boilerplate" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" - -[package.extras] -dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit"] -docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"] -tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface"] -tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins"] - -[[package]] -name = "jstruct" -version = "2021.7.1" -description = "Readable serializable and deserializable Python nested models" -category = "main" -optional = false -python-versions = "*" - -[package.dependencies] -attrs = "*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.6" -content-hash = "d4bb079c1f203114105cccb0b7dfb0a164371ce2fd95810733400e543cc47dac" - -[metadata.files] -attrs = [ - {file = "attrs-21.2.0-py2.py3-none-any.whl", hash = "sha256:149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1"}, - {file = "attrs-21.2.0.tar.gz", hash = "sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"}, -] -jstruct = [ - {file = "jstruct-2021.7.1-py3-none-any.whl", hash = "sha256:3711294897334e51bc5a706231896018d474a8e458f879cc493eac9cdc6365c3"}, -] diff --git a/schemas/nationex/pyproject.toml b/schemas/nationex/pyproject.toml index 6e87d9930b..0dcb1246fb 100644 --- a/schemas/nationex/pyproject.toml +++ b/schemas/nationex/pyproject.toml @@ -5,7 +5,7 @@ description = "Nationex API Schemas Python Data Types library" repository="https://github.com/purplship/purplship" homepage="https://github.com/purplship/purplship/tree/main/carrier.nationex" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [ { include = "nationex_lib" } diff --git a/schemas/oca/poetry.lock b/schemas/oca/poetry.lock deleted file mode 100644 index a2399304f4..0000000000 --- a/schemas/oca/poetry.lock +++ /dev/null @@ -1,71 +0,0 @@ -[[package]] -name = "lxml" -version = "4.6.2" -description = "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API." -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*" - -[package.extras] -cssselect = ["cssselect (>=0.7)"] -html5 = ["html5lib"] -htmlsoup = ["beautifulsoup4"] -source = ["Cython (>=0.29.7)"] - -[[package]] -name = "six" -version = "1.15.0" -description = "Python 2 and 3 compatibility utilities" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.6" -content-hash = "ac23fabec3fe14e5c01d89383de3fd7c7e0642c06d783be7b52b7c138c673571" - -[metadata.files] -lxml = [ - {file = "lxml-4.6.2-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:a9d6bc8642e2c67db33f1247a77c53476f3a166e09067c0474facb045756087f"}, - {file = "lxml-4.6.2-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:791394449e98243839fa822a637177dd42a95f4883ad3dec2a0ce6ac99fb0a9d"}, - {file = "lxml-4.6.2-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:68a5d77e440df94011214b7db907ec8f19e439507a70c958f750c18d88f995d2"}, - {file = "lxml-4.6.2-cp27-cp27m-win32.whl", hash = "sha256:fc37870d6716b137e80d19241d0e2cff7a7643b925dfa49b4c8ebd1295eb506e"}, - {file = "lxml-4.6.2-cp27-cp27m-win_amd64.whl", hash = "sha256:69a63f83e88138ab7642d8f61418cf3180a4d8cd13995df87725cb8b893e950e"}, - {file = "lxml-4.6.2-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:42ebca24ba2a21065fb546f3e6bd0c58c3fe9ac298f3a320147029a4850f51a2"}, - {file = "lxml-4.6.2-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:f83d281bb2a6217cd806f4cf0ddded436790e66f393e124dfe9731f6b3fb9afe"}, - {file = "lxml-4.6.2-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:535f067002b0fd1a4e5296a8f1bf88193080ff992a195e66964ef2a6cfec5388"}, - {file = "lxml-4.6.2-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:366cb750140f221523fa062d641393092813b81e15d0e25d9f7c6025f910ee80"}, - {file = "lxml-4.6.2-cp35-cp35m-manylinux2014_aarch64.whl", hash = "sha256:97db258793d193c7b62d4e2586c6ed98d51086e93f9a3af2b2034af01450a74b"}, - {file = "lxml-4.6.2-cp35-cp35m-win32.whl", hash = "sha256:648914abafe67f11be7d93c1a546068f8eff3c5fa938e1f94509e4a5d682b2d8"}, - {file = "lxml-4.6.2-cp35-cp35m-win_amd64.whl", hash = "sha256:4e751e77006da34643ab782e4a5cc21ea7b755551db202bc4d3a423b307db780"}, - {file = "lxml-4.6.2-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:681d75e1a38a69f1e64ab82fe4b1ed3fd758717bed735fb9aeaa124143f051af"}, - {file = "lxml-4.6.2-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:127f76864468d6630e1b453d3ffbbd04b024c674f55cf0a30dc2595137892d37"}, - {file = "lxml-4.6.2-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:4fb85c447e288df535b17ebdebf0ec1cf3a3f1a8eba7e79169f4f37af43c6b98"}, - {file = "lxml-4.6.2-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:5be4a2e212bb6aa045e37f7d48e3e1e4b6fd259882ed5a00786f82e8c37ce77d"}, - {file = "lxml-4.6.2-cp36-cp36m-win32.whl", hash = "sha256:8c88b599e226994ad4db29d93bc149aa1aff3dc3a4355dd5757569ba78632bdf"}, - {file = "lxml-4.6.2-cp36-cp36m-win_amd64.whl", hash = "sha256:6e4183800f16f3679076dfa8abf2db3083919d7e30764a069fb66b2b9eff9939"}, - {file = "lxml-4.6.2-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:d8d3d4713f0c28bdc6c806a278d998546e8efc3498949e3ace6e117462ac0a5e"}, - {file = "lxml-4.6.2-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:8246f30ca34dc712ab07e51dc34fea883c00b7ccb0e614651e49da2c49a30711"}, - {file = "lxml-4.6.2-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:923963e989ffbceaa210ac37afc9b906acebe945d2723e9679b643513837b089"}, - {file = "lxml-4.6.2-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:1471cee35eba321827d7d53d104e7b8c593ea3ad376aa2df89533ce8e1b24a01"}, - {file = "lxml-4.6.2-cp37-cp37m-win32.whl", hash = "sha256:2363c35637d2d9d6f26f60a208819e7eafc4305ce39dc1d5005eccc4593331c2"}, - {file = "lxml-4.6.2-cp37-cp37m-win_amd64.whl", hash = "sha256:f4822c0660c3754f1a41a655e37cb4dbbc9be3d35b125a37fab6f82d47674ebc"}, - {file = "lxml-4.6.2-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:0448576c148c129594d890265b1a83b9cd76fd1f0a6a04620753d9a6bcfd0a4d"}, - {file = "lxml-4.6.2-cp38-cp38-manylinux1_i686.whl", hash = "sha256:60a20bfc3bd234d54d49c388950195d23a5583d4108e1a1d47c9eef8d8c042b3"}, - {file = "lxml-4.6.2-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:2e5cc908fe43fe1aa299e58046ad66981131a66aea3129aac7770c37f590a644"}, - {file = "lxml-4.6.2-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:50c348995b47b5a4e330362cf39fc503b4a43b14a91c34c83b955e1805c8e308"}, - {file = "lxml-4.6.2-cp38-cp38-win32.whl", hash = "sha256:94d55bd03d8671686e3f012577d9caa5421a07286dd351dfef64791cf7c6c505"}, - {file = "lxml-4.6.2-cp38-cp38-win_amd64.whl", hash = "sha256:7a7669ff50f41225ca5d6ee0a1ec8413f3a0d8aa2b109f86d540887b7ec0d72a"}, - {file = "lxml-4.6.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:e0bfe9bb028974a481410432dbe1b182e8191d5d40382e5b8ff39cdd2e5c5931"}, - {file = "lxml-4.6.2-cp39-cp39-manylinux1_i686.whl", hash = "sha256:6fd8d5903c2e53f49e99359b063df27fdf7acb89a52b6a12494208bf61345a03"}, - {file = "lxml-4.6.2-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:7e9eac1e526386df7c70ef253b792a0a12dd86d833b1d329e038c7a235dfceb5"}, - {file = "lxml-4.6.2-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:7ee8af0b9f7de635c61cdd5b8534b76c52cd03536f29f51151b377f76e214a1a"}, - {file = "lxml-4.6.2-cp39-cp39-win32.whl", hash = "sha256:2e6fd1b8acd005bd71e6c94f30c055594bbd0aa02ef51a22bbfa961ab63b2d75"}, - {file = "lxml-4.6.2-cp39-cp39-win_amd64.whl", hash = "sha256:535332fe9d00c3cd455bd3dd7d4bacab86e2d564bdf7606079160fa6251caacf"}, - {file = "lxml-4.6.2.tar.gz", hash = "sha256:cd11c7e8d21af997ee8079037fff88f16fda188a9776eb4b81c7e4c9c0a7d7fc"}, -] -six = [ - {file = "six-1.15.0-py2.py3-none-any.whl", hash = "sha256:8b74bedcbbbaca38ff6d7491d76f2b06b3592611af620f8426e82dddb04a5ced"}, - {file = "six-1.15.0.tar.gz", hash = "sha256:30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259"}, -] diff --git a/schemas/oca/pyproject.toml b/schemas/oca/pyproject.toml index 5bf365dd53..f162df7275 100644 --- a/schemas/oca/pyproject.toml +++ b/schemas/oca/pyproject.toml @@ -5,7 +5,7 @@ description = "OCA Web API Schemas Python Data Types library" repository="https://github.com/purplship/purplship" homepage="https://github.com/purplship/purplship/tree/main/carrier.oca" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [ { include = "oca_lib" } diff --git a/schemas/purolator/poetry.lock b/schemas/purolator/poetry.lock deleted file mode 100644 index a2399304f4..0000000000 --- a/schemas/purolator/poetry.lock +++ /dev/null @@ -1,71 +0,0 @@ -[[package]] -name = "lxml" -version = "4.6.2" -description = "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API." -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*" - -[package.extras] -cssselect = ["cssselect (>=0.7)"] -html5 = ["html5lib"] -htmlsoup = ["beautifulsoup4"] -source = ["Cython (>=0.29.7)"] - -[[package]] -name = "six" -version = "1.15.0" -description = "Python 2 and 3 compatibility utilities" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.6" -content-hash = "ac23fabec3fe14e5c01d89383de3fd7c7e0642c06d783be7b52b7c138c673571" - -[metadata.files] -lxml = [ - {file = "lxml-4.6.2-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:a9d6bc8642e2c67db33f1247a77c53476f3a166e09067c0474facb045756087f"}, - {file = "lxml-4.6.2-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:791394449e98243839fa822a637177dd42a95f4883ad3dec2a0ce6ac99fb0a9d"}, - {file = "lxml-4.6.2-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:68a5d77e440df94011214b7db907ec8f19e439507a70c958f750c18d88f995d2"}, - {file = "lxml-4.6.2-cp27-cp27m-win32.whl", hash = "sha256:fc37870d6716b137e80d19241d0e2cff7a7643b925dfa49b4c8ebd1295eb506e"}, - {file = "lxml-4.6.2-cp27-cp27m-win_amd64.whl", hash = "sha256:69a63f83e88138ab7642d8f61418cf3180a4d8cd13995df87725cb8b893e950e"}, - {file = "lxml-4.6.2-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:42ebca24ba2a21065fb546f3e6bd0c58c3fe9ac298f3a320147029a4850f51a2"}, - {file = "lxml-4.6.2-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:f83d281bb2a6217cd806f4cf0ddded436790e66f393e124dfe9731f6b3fb9afe"}, - {file = "lxml-4.6.2-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:535f067002b0fd1a4e5296a8f1bf88193080ff992a195e66964ef2a6cfec5388"}, - {file = "lxml-4.6.2-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:366cb750140f221523fa062d641393092813b81e15d0e25d9f7c6025f910ee80"}, - {file = "lxml-4.6.2-cp35-cp35m-manylinux2014_aarch64.whl", hash = "sha256:97db258793d193c7b62d4e2586c6ed98d51086e93f9a3af2b2034af01450a74b"}, - {file = "lxml-4.6.2-cp35-cp35m-win32.whl", hash = "sha256:648914abafe67f11be7d93c1a546068f8eff3c5fa938e1f94509e4a5d682b2d8"}, - {file = "lxml-4.6.2-cp35-cp35m-win_amd64.whl", hash = "sha256:4e751e77006da34643ab782e4a5cc21ea7b755551db202bc4d3a423b307db780"}, - {file = "lxml-4.6.2-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:681d75e1a38a69f1e64ab82fe4b1ed3fd758717bed735fb9aeaa124143f051af"}, - {file = "lxml-4.6.2-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:127f76864468d6630e1b453d3ffbbd04b024c674f55cf0a30dc2595137892d37"}, - {file = "lxml-4.6.2-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:4fb85c447e288df535b17ebdebf0ec1cf3a3f1a8eba7e79169f4f37af43c6b98"}, - {file = "lxml-4.6.2-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:5be4a2e212bb6aa045e37f7d48e3e1e4b6fd259882ed5a00786f82e8c37ce77d"}, - {file = "lxml-4.6.2-cp36-cp36m-win32.whl", hash = "sha256:8c88b599e226994ad4db29d93bc149aa1aff3dc3a4355dd5757569ba78632bdf"}, - {file = "lxml-4.6.2-cp36-cp36m-win_amd64.whl", hash = "sha256:6e4183800f16f3679076dfa8abf2db3083919d7e30764a069fb66b2b9eff9939"}, - {file = "lxml-4.6.2-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:d8d3d4713f0c28bdc6c806a278d998546e8efc3498949e3ace6e117462ac0a5e"}, - {file = "lxml-4.6.2-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:8246f30ca34dc712ab07e51dc34fea883c00b7ccb0e614651e49da2c49a30711"}, - {file = "lxml-4.6.2-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:923963e989ffbceaa210ac37afc9b906acebe945d2723e9679b643513837b089"}, - {file = "lxml-4.6.2-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:1471cee35eba321827d7d53d104e7b8c593ea3ad376aa2df89533ce8e1b24a01"}, - {file = "lxml-4.6.2-cp37-cp37m-win32.whl", hash = "sha256:2363c35637d2d9d6f26f60a208819e7eafc4305ce39dc1d5005eccc4593331c2"}, - {file = "lxml-4.6.2-cp37-cp37m-win_amd64.whl", hash = "sha256:f4822c0660c3754f1a41a655e37cb4dbbc9be3d35b125a37fab6f82d47674ebc"}, - {file = "lxml-4.6.2-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:0448576c148c129594d890265b1a83b9cd76fd1f0a6a04620753d9a6bcfd0a4d"}, - {file = "lxml-4.6.2-cp38-cp38-manylinux1_i686.whl", hash = "sha256:60a20bfc3bd234d54d49c388950195d23a5583d4108e1a1d47c9eef8d8c042b3"}, - {file = "lxml-4.6.2-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:2e5cc908fe43fe1aa299e58046ad66981131a66aea3129aac7770c37f590a644"}, - {file = "lxml-4.6.2-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:50c348995b47b5a4e330362cf39fc503b4a43b14a91c34c83b955e1805c8e308"}, - {file = "lxml-4.6.2-cp38-cp38-win32.whl", hash = "sha256:94d55bd03d8671686e3f012577d9caa5421a07286dd351dfef64791cf7c6c505"}, - {file = "lxml-4.6.2-cp38-cp38-win_amd64.whl", hash = "sha256:7a7669ff50f41225ca5d6ee0a1ec8413f3a0d8aa2b109f86d540887b7ec0d72a"}, - {file = "lxml-4.6.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:e0bfe9bb028974a481410432dbe1b182e8191d5d40382e5b8ff39cdd2e5c5931"}, - {file = "lxml-4.6.2-cp39-cp39-manylinux1_i686.whl", hash = "sha256:6fd8d5903c2e53f49e99359b063df27fdf7acb89a52b6a12494208bf61345a03"}, - {file = "lxml-4.6.2-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:7e9eac1e526386df7c70ef253b792a0a12dd86d833b1d329e038c7a235dfceb5"}, - {file = "lxml-4.6.2-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:7ee8af0b9f7de635c61cdd5b8534b76c52cd03536f29f51151b377f76e214a1a"}, - {file = "lxml-4.6.2-cp39-cp39-win32.whl", hash = "sha256:2e6fd1b8acd005bd71e6c94f30c055594bbd0aa02ef51a22bbfa961ab63b2d75"}, - {file = "lxml-4.6.2-cp39-cp39-win_amd64.whl", hash = "sha256:535332fe9d00c3cd455bd3dd7d4bacab86e2d564bdf7606079160fa6251caacf"}, - {file = "lxml-4.6.2.tar.gz", hash = "sha256:cd11c7e8d21af997ee8079037fff88f16fda188a9776eb4b81c7e4c9c0a7d7fc"}, -] -six = [ - {file = "six-1.15.0-py2.py3-none-any.whl", hash = "sha256:8b74bedcbbbaca38ff6d7491d76f2b06b3592611af620f8426e82dddb04a5ced"}, - {file = "six-1.15.0.tar.gz", hash = "sha256:30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259"}, -] diff --git a/schemas/purolator/pyproject.toml b/schemas/purolator/pyproject.toml index bea74c45c0..83cca68b10 100644 --- a/schemas/purolator/pyproject.toml +++ b/schemas/purolator/pyproject.toml @@ -5,7 +5,7 @@ description = "Purolator Web API Schemas Python Data Types library" repository="https://github.com/purplship/purplship" homepage="https://github.com/purplship/purplship/tree/main/carrier.purolator" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [ { include = "purolator_lib" } diff --git a/schemas/royalmail/poetry.lock b/schemas/royalmail/poetry.lock deleted file mode 100644 index c0f20eefa8..0000000000 --- a/schemas/royalmail/poetry.lock +++ /dev/null @@ -1,38 +0,0 @@ -[[package]] -name = "attrs" -version = "21.2.0" -description = "Classes Without Boilerplate" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" - -[package.extras] -dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit"] -docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"] -tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface"] -tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins"] - -[[package]] -name = "jstruct" -version = "2021.7" -description = "Readable serializable and deserializable Python nested models" -category = "main" -optional = false -python-versions = "*" - -[package.dependencies] -attrs = "*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.6" -content-hash = "d4bb079c1f203114105cccb0b7dfb0a164371ce2fd95810733400e543cc47dac" - -[metadata.files] -attrs = [ - {file = "attrs-21.2.0-py2.py3-none-any.whl", hash = "sha256:149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1"}, - {file = "attrs-21.2.0.tar.gz", hash = "sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"}, -] -jstruct = [ - {file = "jstruct-2021.7-py3-none-any.whl", hash = "sha256:e423aa7336c025581ff7b3dae3c886753d22a884d38f18f99a4836a6c97ff8a2"}, -] diff --git a/schemas/royalmail/pyproject.toml b/schemas/royalmail/pyproject.toml index ba00e184ec..cd384015e2 100644 --- a/schemas/royalmail/pyproject.toml +++ b/schemas/royalmail/pyproject.toml @@ -5,7 +5,7 @@ description = "Australia Post API Schemas Python Data Types library" repository="https://github.com/purplship/purplship" homepage="https://github.com/purplship/purplship/tree/main/carrier.royalmail" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [ { include = "royalmail_lib" } diff --git a/schemas/sendle/poetry.lock b/schemas/sendle/poetry.lock deleted file mode 100644 index c0f20eefa8..0000000000 --- a/schemas/sendle/poetry.lock +++ /dev/null @@ -1,38 +0,0 @@ -[[package]] -name = "attrs" -version = "21.2.0" -description = "Classes Without Boilerplate" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" - -[package.extras] -dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit"] -docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"] -tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface"] -tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins"] - -[[package]] -name = "jstruct" -version = "2021.7" -description = "Readable serializable and deserializable Python nested models" -category = "main" -optional = false -python-versions = "*" - -[package.dependencies] -attrs = "*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.6" -content-hash = "d4bb079c1f203114105cccb0b7dfb0a164371ce2fd95810733400e543cc47dac" - -[metadata.files] -attrs = [ - {file = "attrs-21.2.0-py2.py3-none-any.whl", hash = "sha256:149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1"}, - {file = "attrs-21.2.0.tar.gz", hash = "sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"}, -] -jstruct = [ - {file = "jstruct-2021.7-py3-none-any.whl", hash = "sha256:e423aa7336c025581ff7b3dae3c886753d22a884d38f18f99a4836a6c97ff8a2"}, -] diff --git a/schemas/sendle/pyproject.toml b/schemas/sendle/pyproject.toml index 3b5cd62e4d..0e52239ab4 100644 --- a/schemas/sendle/pyproject.toml +++ b/schemas/sendle/pyproject.toml @@ -1,11 +1,11 @@ [tool.poetry] name = "carrier.sendle" -version = "2021.2.1" +version = "2021.11" description = "Sendle API Schemas Python Data Types library" repository="https://github.com/purplship/purplship" homepage="https://github.com/purplship/purplship/tree/main/carrier.sendle" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [ { include = "sendle_lib" } diff --git a/schemas/sf_express/poetry.lock b/schemas/sf_express/poetry.lock deleted file mode 100644 index a2399304f4..0000000000 --- a/schemas/sf_express/poetry.lock +++ /dev/null @@ -1,71 +0,0 @@ -[[package]] -name = "lxml" -version = "4.6.2" -description = "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API." -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*" - -[package.extras] -cssselect = ["cssselect (>=0.7)"] -html5 = ["html5lib"] -htmlsoup = ["beautifulsoup4"] -source = ["Cython (>=0.29.7)"] - -[[package]] -name = "six" -version = "1.15.0" -description = "Python 2 and 3 compatibility utilities" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.6" -content-hash = "ac23fabec3fe14e5c01d89383de3fd7c7e0642c06d783be7b52b7c138c673571" - -[metadata.files] -lxml = [ - {file = "lxml-4.6.2-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:a9d6bc8642e2c67db33f1247a77c53476f3a166e09067c0474facb045756087f"}, - {file = "lxml-4.6.2-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:791394449e98243839fa822a637177dd42a95f4883ad3dec2a0ce6ac99fb0a9d"}, - {file = "lxml-4.6.2-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:68a5d77e440df94011214b7db907ec8f19e439507a70c958f750c18d88f995d2"}, - {file = "lxml-4.6.2-cp27-cp27m-win32.whl", hash = "sha256:fc37870d6716b137e80d19241d0e2cff7a7643b925dfa49b4c8ebd1295eb506e"}, - {file = "lxml-4.6.2-cp27-cp27m-win_amd64.whl", hash = "sha256:69a63f83e88138ab7642d8f61418cf3180a4d8cd13995df87725cb8b893e950e"}, - {file = "lxml-4.6.2-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:42ebca24ba2a21065fb546f3e6bd0c58c3fe9ac298f3a320147029a4850f51a2"}, - {file = "lxml-4.6.2-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:f83d281bb2a6217cd806f4cf0ddded436790e66f393e124dfe9731f6b3fb9afe"}, - {file = "lxml-4.6.2-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:535f067002b0fd1a4e5296a8f1bf88193080ff992a195e66964ef2a6cfec5388"}, - {file = "lxml-4.6.2-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:366cb750140f221523fa062d641393092813b81e15d0e25d9f7c6025f910ee80"}, - {file = "lxml-4.6.2-cp35-cp35m-manylinux2014_aarch64.whl", hash = "sha256:97db258793d193c7b62d4e2586c6ed98d51086e93f9a3af2b2034af01450a74b"}, - {file = "lxml-4.6.2-cp35-cp35m-win32.whl", hash = "sha256:648914abafe67f11be7d93c1a546068f8eff3c5fa938e1f94509e4a5d682b2d8"}, - {file = "lxml-4.6.2-cp35-cp35m-win_amd64.whl", hash = "sha256:4e751e77006da34643ab782e4a5cc21ea7b755551db202bc4d3a423b307db780"}, - {file = "lxml-4.6.2-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:681d75e1a38a69f1e64ab82fe4b1ed3fd758717bed735fb9aeaa124143f051af"}, - {file = "lxml-4.6.2-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:127f76864468d6630e1b453d3ffbbd04b024c674f55cf0a30dc2595137892d37"}, - {file = "lxml-4.6.2-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:4fb85c447e288df535b17ebdebf0ec1cf3a3f1a8eba7e79169f4f37af43c6b98"}, - {file = "lxml-4.6.2-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:5be4a2e212bb6aa045e37f7d48e3e1e4b6fd259882ed5a00786f82e8c37ce77d"}, - {file = "lxml-4.6.2-cp36-cp36m-win32.whl", hash = "sha256:8c88b599e226994ad4db29d93bc149aa1aff3dc3a4355dd5757569ba78632bdf"}, - {file = "lxml-4.6.2-cp36-cp36m-win_amd64.whl", hash = "sha256:6e4183800f16f3679076dfa8abf2db3083919d7e30764a069fb66b2b9eff9939"}, - {file = "lxml-4.6.2-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:d8d3d4713f0c28bdc6c806a278d998546e8efc3498949e3ace6e117462ac0a5e"}, - {file = "lxml-4.6.2-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:8246f30ca34dc712ab07e51dc34fea883c00b7ccb0e614651e49da2c49a30711"}, - {file = "lxml-4.6.2-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:923963e989ffbceaa210ac37afc9b906acebe945d2723e9679b643513837b089"}, - {file = "lxml-4.6.2-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:1471cee35eba321827d7d53d104e7b8c593ea3ad376aa2df89533ce8e1b24a01"}, - {file = "lxml-4.6.2-cp37-cp37m-win32.whl", hash = "sha256:2363c35637d2d9d6f26f60a208819e7eafc4305ce39dc1d5005eccc4593331c2"}, - {file = "lxml-4.6.2-cp37-cp37m-win_amd64.whl", hash = "sha256:f4822c0660c3754f1a41a655e37cb4dbbc9be3d35b125a37fab6f82d47674ebc"}, - {file = "lxml-4.6.2-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:0448576c148c129594d890265b1a83b9cd76fd1f0a6a04620753d9a6bcfd0a4d"}, - {file = "lxml-4.6.2-cp38-cp38-manylinux1_i686.whl", hash = "sha256:60a20bfc3bd234d54d49c388950195d23a5583d4108e1a1d47c9eef8d8c042b3"}, - {file = "lxml-4.6.2-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:2e5cc908fe43fe1aa299e58046ad66981131a66aea3129aac7770c37f590a644"}, - {file = "lxml-4.6.2-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:50c348995b47b5a4e330362cf39fc503b4a43b14a91c34c83b955e1805c8e308"}, - {file = "lxml-4.6.2-cp38-cp38-win32.whl", hash = "sha256:94d55bd03d8671686e3f012577d9caa5421a07286dd351dfef64791cf7c6c505"}, - {file = "lxml-4.6.2-cp38-cp38-win_amd64.whl", hash = "sha256:7a7669ff50f41225ca5d6ee0a1ec8413f3a0d8aa2b109f86d540887b7ec0d72a"}, - {file = "lxml-4.6.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:e0bfe9bb028974a481410432dbe1b182e8191d5d40382e5b8ff39cdd2e5c5931"}, - {file = "lxml-4.6.2-cp39-cp39-manylinux1_i686.whl", hash = "sha256:6fd8d5903c2e53f49e99359b063df27fdf7acb89a52b6a12494208bf61345a03"}, - {file = "lxml-4.6.2-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:7e9eac1e526386df7c70ef253b792a0a12dd86d833b1d329e038c7a235dfceb5"}, - {file = "lxml-4.6.2-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:7ee8af0b9f7de635c61cdd5b8534b76c52cd03536f29f51151b377f76e214a1a"}, - {file = "lxml-4.6.2-cp39-cp39-win32.whl", hash = "sha256:2e6fd1b8acd005bd71e6c94f30c055594bbd0aa02ef51a22bbfa961ab63b2d75"}, - {file = "lxml-4.6.2-cp39-cp39-win_amd64.whl", hash = "sha256:535332fe9d00c3cd455bd3dd7d4bacab86e2d564bdf7606079160fa6251caacf"}, - {file = "lxml-4.6.2.tar.gz", hash = "sha256:cd11c7e8d21af997ee8079037fff88f16fda188a9776eb4b81c7e4c9c0a7d7fc"}, -] -six = [ - {file = "six-1.15.0-py2.py3-none-any.whl", hash = "sha256:8b74bedcbbbaca38ff6d7491d76f2b06b3592611af620f8426e82dddb04a5ced"}, - {file = "six-1.15.0.tar.gz", hash = "sha256:30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259"}, -] diff --git a/schemas/sf_express/pyproject.toml b/schemas/sf_express/pyproject.toml index ef5bd76785..4dd165a88d 100644 --- a/schemas/sf_express/pyproject.toml +++ b/schemas/sf_express/pyproject.toml @@ -5,7 +5,7 @@ description = "Purolator Web API Schemas Python Data Types library" repository="https://github.com/purplship/purplship" homepage="https://github.com/purplship/purplship/tree/main/carrier.sf_express" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [ { include = "sf_express_lib" } diff --git a/schemas/soap/generate.sh b/schemas/soap/generate.sh index c834100d16..9ac10add4d 100755 --- a/schemas/soap/generate.sh +++ b/schemas/soap/generate.sh @@ -1,5 +1,5 @@ SCHEMAS=$1 -find ./soap_lib/ -name "*.py" -exec rm -r {} \; -echo "from soap_lib.envelope import Header, Body, Envelope" > ./soap_lib/__init__.py +find ./pysoap/ -name "*.py" -exec rm -r {} \; +echo "from pysoap.envelope import Header, Body, Envelope" > ./pysoap/__init__.py -generateDS --no-namespace-defs -o "./soap_lib/envelope.py" ./schemas/schemas.xmlsoap.org.xml +generateDS --no-namespace-defs -o "./pysoap/envelope.py" ./schemas/schemas.xmlsoap.org.xml diff --git a/schemas/soap/pyproject.toml b/schemas/soap/pyproject.toml new file mode 100644 index 0000000000..8821b290e4 --- /dev/null +++ b/schemas/soap/pyproject.toml @@ -0,0 +1,29 @@ +[tool.poetry] +name = "py-soap" +version = "2021.11" +description = "SOAP Schemas Python Data Types library" +repository="https://github.com/purplship/purplship" +homepage="https://github.com/purplship/purplship/tree/main/schemas/soap" +authors = ["Purplship "] +license = "Apache-2.0" +readme = "README.md" +packages = [ + { include = "pysoap" } +] +classifiers = [ + "Intended Audience :: Developers", + "Operating System :: OS Independent", + "Programming Language :: Python :: 3", + "License :: OSI Approved :: Apache Software License", +] + +[tool.poetry.dependencies] +python = "^3.6" +six = "" +lxml = "" + +[tool.poetry.dev-dependencies] + +[build-system] +requires = ["poetry-core>=1.0.0", "setuptools!=50.0"] +build-backend = "poetry.core.masonry.api" diff --git a/schemas/soap/soap_lib/__init__.py b/schemas/soap/pysoap/__init__.py similarity index 100% rename from schemas/soap/soap_lib/__init__.py rename to schemas/soap/pysoap/__init__.py diff --git a/schemas/soap/soap_lib/envelope.py b/schemas/soap/pysoap/envelope.py similarity index 86% rename from schemas/soap/soap_lib/envelope.py rename to schemas/soap/pysoap/envelope.py index 9d441f4c67..344ba4d287 100644 --- a/schemas/soap/soap_lib/envelope.py +++ b/schemas/soap/pysoap/envelope.py @@ -2,21 +2,35 @@ # -*- coding: utf-8 -*- # -# Generated Sun Mar 15 08:52:02 2020 by generateDS.py version 2.35.15. -# Python 3.8.1 (v3.8.1:1b293b6006, Dec 18 2019, 14:08:53) [Clang 6.0 (clang-600.0.57)] - +# Generated Sun Nov 21 22:54:33 2021 by generateDS.py version 2.40.5. +# Python 3.8.6 (v3.8.6:db455296be, Sep 23 2020, 13:31:39) [Clang 6.0 (clang-600.0.57)] +# +# Command line options: +# ('--no-namespace-defs', '') +# ('-o', './pysoap/envelope.py') +# +# Command line arguments: +# ./schemas/schemas.xmlsoap.org.xml +# +# Command line: +# /Users/danielkobina/Workspace/project/purplship/.venv/purplship/bin/generateDS --no-namespace-defs -o "./pysoap/envelope.py" ./schemas/schemas.xmlsoap.org.xml +# +# Current working directory (os.getcwd()): +# soap +# +import sys +try: + ModulenotfoundExp_ = ModuleNotFoundError +except NameError: + ModulenotfoundExp_ = ImportError from six.moves import zip_longest import os -import sys import re as re_ import base64 import datetime as datetime_ import decimal as decimal_ -try: - from lxml import etree as etree_ -except ImportError: - from xml.etree import ElementTree as etree_ +from lxml import etree as etree_ Validate_simpletypes_ = True @@ -79,7 +93,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # Additionally, the generatedsnamespaces module can contain a python # dictionary named GenerateDSNamespaceTypePrefixes that associates element # types with the namespace prefixes that are to be added to the -# "xsi:type" attribute value. See the exportAttributes method of +# "xsi:type" attribute value. See the _exportAttributes method of # any generated element type and the generation of "xsi:type" for an # example of the use of this table. # An example table: @@ -94,11 +108,11 @@ def parsexmlstring_(instring, parser=None, **kwargs): try: from generatedsnamespaces import GenerateDSNamespaceDefs as GenerateDSNamespaceDefs_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceDefs_ = {} try: from generatedsnamespaces import GenerateDSNamespaceTypePrefixes as GenerateDSNamespaceTypePrefixes_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceTypePrefixes_ = {} # @@ -109,7 +123,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # try: from generatedscollector import GdsCollector as GdsCollector_ -except ImportError: +except ModulenotfoundExp_ : class GdsCollector_(object): @@ -143,7 +157,7 @@ def write_messages(self, outstream): try: from enum import Enum -except ImportError: +except ModulenotfoundExp_ : Enum = object # @@ -155,9 +169,14 @@ def write_messages(self, outstream): try: from generatedssuper import GeneratedsSuper -except ImportError as exp: +except ModulenotfoundExp_ as exp: + try: + from generatedssupersuper import GeneratedsSuperSuper + except ModulenotfoundExp_ as exp: + class GeneratedsSuperSuper(object): + pass - class GeneratedsSuper(object): + class GeneratedsSuper(GeneratedsSuperSuper): __hash__ = object.__hash__ tzoff_pattern = re_.compile(r'(\+|-)((0\d|1[0-3]):[0-5]\d|14:00)$') class _FixedOffsetTZ(datetime_.tzinfo): @@ -170,6 +189,30 @@ def tzname(self, dt): return self.__name def dst(self, dt): return None + def __str__(self): + settings = { + 'str_pretty_print': True, + 'str_indent_level': 0, + 'str_namespaceprefix': '', + 'str_name': None, + 'str_namespacedefs': '', + } + for n in settings: + if hasattr(self, n): + setattr(settings[n], self[n]) + from io import StringIO + output = StringIO() + self.export( + output, + settings['str_indent_level'], + pretty_print=settings['str_pretty_print'], + namespaceprefix_=settings['str_namespaceprefix'], + name_=settings['str_name'], + namespacedef_=settings['str_namespacedefs'] + ) + strval = output.getvalue() + output.close() + return strval def gds_format_string(self, input_data, input_name=''): return input_data def gds_parse_string(self, input_data, node=None, input_name=''): @@ -180,11 +223,11 @@ def gds_validate_string(self, input_data, node=None, input_name=''): else: return input_data def gds_format_base64(self, input_data, input_name=''): - return base64.b64encode(input_data) + return base64.b64encode(input_data).decode('ascii') def gds_validate_base64(self, input_data, node=None, input_name=''): return input_data def gds_format_integer(self, input_data, input_name=''): - return '%d' % input_data + return '%d' % int(input_data) def gds_parse_integer(self, input_data, node=None, input_name=''): try: ival = int(input_data) @@ -198,6 +241,8 @@ def gds_validate_integer(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires integer value') return value def gds_format_integer_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_integer_list( self, input_data, node=None, input_name=''): @@ -206,10 +251,10 @@ def gds_validate_integer_list( try: int(value) except (TypeError, ValueError): - raise_parse_error(node, 'Requires sequence of integer valuess') + raise_parse_error(node, 'Requires sequence of integer values') return values def gds_format_float(self, input_data, input_name=''): - return ('%.15f' % input_data).rstrip('0') + return ('%.15f' % float(input_data)).rstrip('0') def gds_parse_float(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -223,6 +268,8 @@ def gds_validate_float(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires float value') return value def gds_format_float_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_float_list( self, input_data, node=None, input_name=''): @@ -234,7 +281,12 @@ def gds_validate_float_list( raise_parse_error(node, 'Requires sequence of float values') return values def gds_format_decimal(self, input_data, input_name=''): - return ('%s' % input_data).rstrip('0') + return_value = '%s' % input_data + if '.' in return_value: + return_value = return_value.rstrip('0') + if return_value.endswith('.'): + return_value = return_value.rstrip('.') + return return_value def gds_parse_decimal(self, input_data, node=None, input_name=''): try: decimal_value = decimal_.Decimal(input_data) @@ -248,7 +300,9 @@ def gds_validate_decimal(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires decimal value') return value def gds_format_decimal_list(self, input_data, input_name=''): - return '%s' % ' '.join(input_data) + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] + return ' '.join([self.gds_format_decimal(item) for item in input_data]) def gds_validate_decimal_list( self, input_data, node=None, input_name=''): values = input_data.split() @@ -259,7 +313,7 @@ def gds_validate_decimal_list( raise_parse_error(node, 'Requires sequence of decimal values') return values def gds_format_double(self, input_data, input_name=''): - return '%e' % input_data + return '%s' % input_data def gds_parse_double(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -273,6 +327,8 @@ def gds_validate_double(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires double or float value') return value def gds_format_double_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_double_list( self, input_data, node=None, input_name=''): @@ -302,11 +358,14 @@ def gds_validate_boolean(self, input_data, node=None, input_name=''): '(one of True, 1, False, 0)') return input_data def gds_format_boolean_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_boolean_list( self, input_data, node=None, input_name=''): values = input_data.split() for value in values: + value = self.gds_parse_boolean(value, node, input_name) if value not in (True, 1, False, 0, ): raise_parse_error( node, @@ -753,7 +812,10 @@ def find_attr_value_(attr_name, node): value = attrs.get(attr_name) elif len(attr_parts) == 2: prefix, name = attr_parts - namespace = node.nsmap.get(prefix) + if prefix == 'xml': + namespace = 'http://www.w3.org/XML/1998/namespace' + else: + namespace = node.nsmap.get(prefix) if namespace is not None: value = attrs.get('{%s}%s' % (namespace, name, )) return value @@ -834,7 +896,7 @@ def exportSimple(self, outfile, level, name): self.name, base64.b64encode(self.value), self.name)) - def to_etree(self, element): + def to_etree(self, element, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.category == MixedContainer.CategoryText: # Prevent exporting empty content as empty lines. if self.value.strip(): @@ -854,7 +916,7 @@ def to_etree(self, element): subelement.text = self.to_etree_simple() else: # category == MixedContainer.CategoryComplex self.value.to_etree(element) - def to_etree_simple(self): + def to_etree_simple(self, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.content_type == MixedContainer.TypeString: text = self.value elif (self.content_type == MixedContainer.TypeInteger or @@ -980,7 +1042,7 @@ def add_anytypeobjs_(self, value): self.anytypeobjs_.append(value) def insert_anytypeobjs_(self, index, value): self._anytypeobjs_[index] = value def get_anyAttributes_(self): return self.anyAttributes_ def set_anyAttributes_(self, anyAttributes_): self.anyAttributes_ = anyAttributes_ - def hasContent_(self): + def _hasContent(self): if ( self.Header is not None or self.Body is not None or @@ -1004,15 +1066,15 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='E showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='Envelope') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='Envelope') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='Envelope', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='Envelope', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='Envelope'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='Envelope'): unique_counter = 0 for name, value in self.anyAttributes_.items(): xsinamespaceprefix = 'xsi' @@ -1045,7 +1107,7 @@ def exportAttributes(self, outfile, level, already_processed, namespaceprefix_=' outfile.write(' %s=%s' % ( name, quote_attrib(value), )) pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='Envelope', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='Envelope', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1056,25 +1118,28 @@ def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', if self.Body is not None: namespaceprefix_ = self.Body_nsprefix_ + ':' if (UseCapturedNS_ and self.Body_nsprefix_) else '' self.Body.export(outfile, level, namespaceprefix_='tns:', namespacedef_='', name_='Body', pretty_print=pretty_print) - for obj_ in self.anytypeobjs_: - obj_.export(outfile, level, namespaceprefix_, pretty_print=pretty_print) + if not fromsubclass_: + for obj_ in self.anytypeobjs_: + showIndent(outfile, level, pretty_print) + outfile.write(obj_) + outfile.write('\n') def build(self, node, gds_collector_=None): self.gds_collector_ = gds_collector_ if SaveElementTreeNode: self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): self.anyAttributes_ = {} for name, value in attrs.items(): if name not in already_processed: self.anyAttributes_[name] = value - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Header': obj_ = Header.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1087,7 +1152,7 @@ def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collec obj_.original_tagname_ = 'Body' else: content_ = self.gds_build_any(child_, 'Envelope') - self.add_anytypeobjs_(content_) + self.anytypeobjs_.append(content_) # end class Envelope @@ -1127,7 +1192,7 @@ def add_anytypeobjs_(self, value): self.anytypeobjs_.append(value) def insert_anytypeobjs_(self, index, value): self._anytypeobjs_[index] = value def get_anyAttributes_(self): return self.anyAttributes_ def set_anyAttributes_(self, anyAttributes_): self.anyAttributes_ = anyAttributes_ - def hasContent_(self): + def _hasContent(self): if ( self.anytypeobjs_ ): @@ -1149,15 +1214,15 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='H showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='Header') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='Header') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='Header', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='Header', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='Header'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='Header'): unique_counter = 0 for name, value in self.anyAttributes_.items(): xsinamespaceprefix = 'xsi' @@ -1190,38 +1255,39 @@ def exportAttributes(self, outfile, level, already_processed, namespaceprefix_=' outfile.write(' %s=%s' % ( name, quote_attrib(value), )) pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='Header', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='Header', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' - for obj_ in self.anytypeobjs_: - obj_.export(outfile, level, namespaceprefix_, pretty_print=pretty_print) + if not fromsubclass_: + for obj_ in self.anytypeobjs_: + showIndent(outfile, level, pretty_print) + outfile.write(obj_) + outfile.write('\n') def build(self, node, gds_collector_=None): self.gds_collector_ = gds_collector_ if SaveElementTreeNode: self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): self.anyAttributes_ = {} for name, value in attrs.items(): if name not in already_processed: self.anyAttributes_[name] = value - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): content_ = self.gds_build_any(child_, 'Header') - self.add_anytypeobjs_(content_) + self.anytypeobjs_.append(content_) # end class Header class Body(GeneratedsSuper): - """Prose in the spec does not specify that attributes are allowed on the - Body element""" __hash__ = GeneratedsSuper.__hash__ subclass = None superclass = None @@ -1257,7 +1323,7 @@ def add_anytypeobjs_(self, value): self.anytypeobjs_.append(value) def insert_anytypeobjs_(self, index, value): self._anytypeobjs_[index] = value def get_anyAttributes_(self): return self.anyAttributes_ def set_anyAttributes_(self, anyAttributes_): self.anyAttributes_ = anyAttributes_ - def hasContent_(self): + def _hasContent(self): if ( self.anytypeobjs_ ): @@ -1279,15 +1345,15 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='B showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='Body') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='Body') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='Body', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='Body', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='Body'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='Body'): unique_counter = 0 for name, value in self.anyAttributes_.items(): xsinamespaceprefix = 'xsi' @@ -1320,37 +1386,39 @@ def exportAttributes(self, outfile, level, already_processed, namespaceprefix_=' outfile.write(' %s=%s' % ( name, quote_attrib(value), )) pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='Body', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='Body', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' - for obj_ in self.anytypeobjs_: - obj_.export(outfile, level, namespaceprefix_, pretty_print=pretty_print) + if not fromsubclass_: + for obj_ in self.anytypeobjs_: + showIndent(outfile, level, pretty_print) + outfile.write(obj_) + outfile.write('\n') def build(self, node, gds_collector_=None): self.gds_collector_ = gds_collector_ if SaveElementTreeNode: self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): self.anyAttributes_ = {} for name, value in attrs.items(): if name not in already_processed: self.anyAttributes_[name] = value - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): content_ = self.gds_build_any(child_, 'Body') - self.add_anytypeobjs_(content_) + self.anytypeobjs_.append(content_) # end class Body class Fault(GeneratedsSuper): - """Fault reporting structure""" __hash__ = GeneratedsSuper.__hash__ subclass = None superclass = None @@ -1399,7 +1467,7 @@ def get_detail(self): return self.detail def set_detail(self, detail): self.detail = detail - def hasContent_(self): + def _hasContent(self): if ( self.faultcode is not None or self.faultstring is not None or @@ -1424,17 +1492,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='F showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='Fault') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='Fault') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='Fault', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='Fault', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='Fault'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='Fault'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='Fault', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='Fault', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1460,14 +1528,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'faultcode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'faultcode') @@ -1530,7 +1598,7 @@ def add_anytypeobjs_(self, value): self.anytypeobjs_.append(value) def insert_anytypeobjs_(self, index, value): self._anytypeobjs_[index] = value def get_anyAttributes_(self): return self.anyAttributes_ def set_anyAttributes_(self, anyAttributes_): self.anyAttributes_ = anyAttributes_ - def hasContent_(self): + def _hasContent(self): if ( self.anytypeobjs_ ): @@ -1552,15 +1620,15 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='d showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='detail') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='detail') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='detail', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='detail', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='detail'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='detail'): unique_counter = 0 for name, value in self.anyAttributes_.items(): xsinamespaceprefix = 'xsi' @@ -1593,32 +1661,35 @@ def exportAttributes(self, outfile, level, already_processed, namespaceprefix_=' outfile.write(' %s=%s' % ( name, quote_attrib(value), )) pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='detail', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='detail', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' - for obj_ in self.anytypeobjs_: - obj_.export(outfile, level, namespaceprefix_, pretty_print=pretty_print) + if not fromsubclass_: + for obj_ in self.anytypeobjs_: + showIndent(outfile, level, pretty_print) + outfile.write(obj_) + outfile.write('\n') def build(self, node, gds_collector_=None): self.gds_collector_ = gds_collector_ if SaveElementTreeNode: self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): self.anyAttributes_ = {} for name, value in attrs.items(): if name not in already_processed: self.anyAttributes_[name] = value - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): content_ = self.gds_build_any(child_, 'detail') - self.add_anytypeobjs_(content_) + self.anytypeobjs_.append(content_) # end class detail @@ -1697,7 +1768,8 @@ def parse(inFileName, silence=False, print_warnings=True): return rootObj -def parseEtree(inFileName, silence=False, print_warnings=True): +def parseEtree(inFileName, silence=False, print_warnings=True, + mapping=None, reverse_mapping=None, nsmap=None): parser = None doc = parsexml_(inFileName, parser) gds_collector = GdsCollector_() @@ -1708,10 +1780,15 @@ def parseEtree(inFileName, silence=False, print_warnings=True): rootClass = Envelope rootObj = rootClass.factory() rootObj.build(rootNode, gds_collector_=gds_collector) + if mapping is None: + mapping = {} + if reverse_mapping is None: + reverse_mapping = {} + rootElement = rootObj.to_etree( + None, name_=rootTag, mapping_=mapping, + reverse_mapping_=reverse_mapping, nsmap_=nsmap) + reverse_node_mapping = rootObj.gds_reverse_node_mapping(mapping) # Enable Python to collect the space used by the DOM. - mapping = {} - rootElement = rootObj.to_etree(None, name_=rootTag, mapping_=mapping) - reverse_mapping = rootObj.gds_reverse_node_mapping(mapping) if not SaveElementTreeNode: doc = None rootNode = None @@ -1728,7 +1805,7 @@ def parseEtree(inFileName, silence=False, print_warnings=True): len(gds_collector.get_messages()), )) gds_collector.write_messages(sys.stderr) sys.stderr.write(separator) - return rootObj, rootElement, mapping, reverse_mapping + return rootObj, rootElement, mapping, reverse_node_mapping def parseString(inString, silence=False, print_warnings=True): @@ -1812,6 +1889,29 @@ def main(): RenameMappings_ = { } +# +# Mapping of namespaces to types defined in them +# and the file in which each is defined. +# simpleTypes are marked "ST" and complexTypes "CT". +NamespaceToDefMappings_ = {'http://schemas.xmlsoap.org/soap/envelope/': [('encodingStyle', + './schemas/schemas.xmlsoap.org.xml', + 'ST'), + ('Envelope', + './schemas/schemas.xmlsoap.org.xml', + 'CT'), + ('Header', + './schemas/schemas.xmlsoap.org.xml', + 'CT'), + ('Body', + './schemas/schemas.xmlsoap.org.xml', + 'CT'), + ('Fault', + './schemas/schemas.xmlsoap.org.xml', + 'CT'), + ('detail', + './schemas/schemas.xmlsoap.org.xml', + 'CT')]} + __all__ = [ "Body", "Envelope", diff --git a/schemas/soap/setup.py b/schemas/soap/setup.py new file mode 100644 index 0000000000..b4f93417f5 --- /dev/null +++ b/schemas/soap/setup.py @@ -0,0 +1,12 @@ +"""Warning: This setup.py is only there for git install until poetry support git subdirectory""" + +from setuptools import setup, find_packages + +setup( + name="py-soap", + version="0.0.0-dev", + license="MIT", + packages=find_packages(), + install_requires=["six", "lxml"], + zip_safe=False, +) diff --git a/schemas/tnt/pyproject.toml b/schemas/tnt/pyproject.toml index c109be9510..d60d55d8ea 100644 --- a/schemas/tnt/pyproject.toml +++ b/schemas/tnt/pyproject.toml @@ -5,7 +5,7 @@ description = "TNT Web API Schemas Python Data Types library" repository="https://github.com/purplship/purplship" homepage="https://github.com/purplship/purplship/tree/main/carrier.tnt" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [ { include = "tnt_lib" } diff --git a/schemas/ups/generate.sh b/schemas/ups/generate.sh old mode 100644 new mode 100755 index 527b4a9da6..d10b4a1325 --- a/schemas/ups/generate.sh +++ b/schemas/ups/generate.sh @@ -1,32 +1,45 @@ -SCHEMAS=$1 -find ./pyups -name "*.py" -exec rm -r {} \; -touch ./pyups/__init__.py +SCHEMAS=./schemas +LIB_MODULES=./ups_lib +mkdir -p $LIB_MODULES +find "${LIB_MODULES}" -name "*.py" -exec rm -r {} \; +touch "${LIB_MODULES}/__init__.py" -generateDS --no-namespace-defs -o "./pyups/av_request.py" $SCHEMAS/AVRequest.xsd -generateDS --no-namespace-defs -o "./pyups/av_response.py" $SCHEMAS/AVResponse.xsd -generateDS --no-namespace-defs -o "./pyups/access_request.py" $SCHEMAS/AccessRequest.xsd -generateDS --no-namespace-defs -o "./pyups/access_request_xpci.py" $SCHEMAS/AccessRequestXPCI.xsd -generateDS --no-namespace-defs -o "./pyups/dangerous_goods_utility.py" $SCHEMAS/DangerousGoodsUtility.xsd -generateDS --no-namespace-defs -o "./pyups/denied_party_web_service_schema.py" $SCHEMAS/DeniedPartyWebServiceSchema.xsd -generateDS --no-namespace-defs -o "./pyups/error_1_1.py" $SCHEMAS/Error1.1.xsd -generateDS --no-namespace-defs -o "./pyups/error_xpci.py" $SCHEMAS/ErrorXPCI.xsd -generateDS --no-namespace-defs -o "./pyups/freight_pickup_web_service_schema.py" $SCHEMAS/FreightPickupWebServiceSchema.xsd -generateDS --no-namespace-defs -o "./pyups/freight_rate_web_service_schema.py" $SCHEMAS/FreightRateWebServiceSchema.xsd -generateDS --no-namespace-defs -o "./pyups/freight_ship_web_service_schema.py" $SCHEMAS/FreightShipWebServiceSchema.xsd -generateDS --no-namespace-defs -o "./pyups/ifws.py" $SCHEMAS/IFWS.xsd -generateDS --no-namespace-defs -o "./pyups/lb_recovery.py" $SCHEMAS/LBRecovery.xsd -generateDS --no-namespace-defs -o "./pyups/landed_cost_web_service_schema.py" $SCHEMAS/LandedCostWebServiceSchema.xsd -generateDS --no-namespace-defs -o "./pyups/locator_request.py" $SCHEMAS/LocatorRequest.xsd -generateDS --no-namespace-defs -o "./pyups/locator_response.py" $SCHEMAS/LocatorResponse.xsd -generateDS --no-namespace-defs -o "./pyups/paperless_document_api.py" $SCHEMAS/PaperlessDocumentAPI.xsd -generateDS --no-namespace-defs -o "./pyups/pickup_web_service_schema.py" $SCHEMAS/PickupWebServiceSchema.xsd -generateDS --no-namespace-defs -o "./pyups/pre_notification_web_service_schema.py" $SCHEMAS/PreNotificationWebServiceSchema.xsd -generateDS --no-namespace-defs -o "./pyups/quantum_view_request.py" $SCHEMAS/QuantumViewRequest.xsd -generateDS --no-namespace-defs -o "./pyups/quantum_view_response.py" $SCHEMAS/QuantumViewResponse.xsd -generateDS --no-namespace-defs -o "./pyups/rate_web_service_schema.py" $SCHEMAS/RateWebServiceSchema.xsd -generateDS --no-namespace-defs -o "./pyups/ship_web_service_schema.py" $SCHEMAS/ShipWebServiceSchema.xsd -generateDS --no-namespace-defs -o "./pyups/time_in_transit_web_service_schema.py" $SCHEMAS/TimeInTransitWebServiceSchema.xsd -generateDS --no-namespace-defs -o "./pyups/track_web_service_schema.py" $SCHEMAS/TrackWebServiceSchema.xsd -generateDS --no-namespace-defs -o "./pyups/ups_security.py" $SCHEMAS/UPSSecurity.xsd -generateDS --no-namespace-defs -o "./pyups/void_web_service_schema.py" $SCHEMAS/VoidWebServiceSchema.xsd -generateDS --no-namespace-defs -o "./pyups/common.py" $SCHEMAS/common.xsd +quicktype () { + echo "Generating $1..." + docker run -it -v $PWD:/app -e SCHEMAS=/app/schemas -e LIB_MODULES=/app/ups_lib \ + purplship/tools /quicktype/script/quicktype --no-uuids --no-date-times --no-enums --src-lang json --lang jstruct \ + --no-nice-property-names --all-properties-optional $@ +} + +generateDS --no-namespace-defs -o "${LIB_MODULES}/av_request.py" "${SCHEMAS}/AVRequest.xsd" +generateDS --no-namespace-defs -o "${LIB_MODULES}/av_response.py" "${SCHEMAS}/AVResponse.xsd" +generateDS --no-namespace-defs -o "${LIB_MODULES}/access_request.py" "${SCHEMAS}/AccessRequest.xsd" +generateDS --no-namespace-defs -o "${LIB_MODULES}/access_request_xpci.py" "${SCHEMAS}/AccessRequestXPCI.xsd" +generateDS --no-namespace-defs -o "${LIB_MODULES}/dangerous_goods_utility.py" "${SCHEMAS}/DangerousGoodsUtility.xsd" +generateDS --no-namespace-defs -o "${LIB_MODULES}/denied_party_web_service_schema.py" "${SCHEMAS}/DeniedPartyWebServiceSchema.xsd" +generateDS --no-namespace-defs -o "${LIB_MODULES}/error_1_1.py" "${SCHEMAS}/Error1.1".xsd +generateDS --no-namespace-defs -o "${LIB_MODULES}/error_xpci.py" "${SCHEMAS}/ErrorXPCI.xsd" +generateDS --no-namespace-defs -o "${LIB_MODULES}/freight_pickup_web_service_schema.py" "${SCHEMAS}/FreightPickupWebServiceSchema.xsd" +generateDS --no-namespace-defs -o "${LIB_MODULES}/freight_rate_web_service_schema.py" "${SCHEMAS}/FreightRateWebServiceSchema.xsd" +generateDS --no-namespace-defs -o "${LIB_MODULES}/freight_ship_web_service_schema.py" "${SCHEMAS}/FreightShipWebServiceSchema.xsd" +generateDS --no-namespace-defs -o "${LIB_MODULES}/ifws.py" "${SCHEMAS}/IFWS.xsd" +generateDS --no-namespace-defs -o "${LIB_MODULES}/lb_recovery.py" "${SCHEMAS}/LBRecovery.xsd" +generateDS --no-namespace-defs -o "${LIB_MODULES}/landed_cost_web_service_schema.py" "${SCHEMAS}/LandedCostWebServiceSchema.xsd" +generateDS --no-namespace-defs -o "${LIB_MODULES}/locator_request.py" "${SCHEMAS}/LocatorRequest.xsd" +generateDS --no-namespace-defs -o "${LIB_MODULES}/locator_response.py" "${SCHEMAS}/LocatorResponse.xsd" +generateDS --no-namespace-defs -o "${LIB_MODULES}/paperless_document_api.py" "${SCHEMAS}/PaperlessDocumentAPI.xsd" +generateDS --no-namespace-defs -o "${LIB_MODULES}/pickup_web_service_schema.py" "${SCHEMAS}/PickupWebServiceSchema.xsd" +generateDS --no-namespace-defs -o "${LIB_MODULES}/pre_notification_web_service_schema.py" "${SCHEMAS}/PreNotificationWebServiceSchema.xsd" +generateDS --no-namespace-defs -o "${LIB_MODULES}/quantum_view_request.py" "${SCHEMAS}/QuantumViewRequest.xsd" +generateDS --no-namespace-defs -o "${LIB_MODULES}/quantum_view_response.py" "${SCHEMAS}/QuantumViewResponse.xsd" +generateDS --no-namespace-defs -o "${LIB_MODULES}/rate_web_service_schema.py" "${SCHEMAS}/RateWebServiceSchema.xsd" +generateDS --no-namespace-defs -o "${LIB_MODULES}/ship_web_service_schema.py" "${SCHEMAS}/ShipWebServiceSchema.xsd" +generateDS --no-namespace-defs -o "${LIB_MODULES}/time_in_transit_web_service_schema.py" "${SCHEMAS}/TimeInTransitWebServiceSchema.xsd" +generateDS --no-namespace-defs -o "${LIB_MODULES}/track_web_service_schema.py" "${SCHEMAS}/TrackWebServiceSchema.xsd" +generateDS --no-namespace-defs -o "${LIB_MODULES}/ups_security.py" "${SCHEMAS}/UPSSecurity.xsd" +generateDS --no-namespace-defs -o "${LIB_MODULES}/void_web_service_schema.py" "${SCHEMAS}/VoidWebServiceSchema.xsd" +generateDS --no-namespace-defs -o "${LIB_MODULES}/common.py" "${SCHEMAS}/common.xsd" + + +quicktype --src="${SCHEMAS}/rest_tracking_response.json" --out="${LIB_MODULES}/rest_tracking_response.py" +quicktype --src="${SCHEMAS}/rest_error.json" --out="${LIB_MODULES}/rest_error.py" diff --git a/schemas/ups/poetry.lock b/schemas/ups/poetry.lock deleted file mode 100644 index a2399304f4..0000000000 --- a/schemas/ups/poetry.lock +++ /dev/null @@ -1,71 +0,0 @@ -[[package]] -name = "lxml" -version = "4.6.2" -description = "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API." -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*" - -[package.extras] -cssselect = ["cssselect (>=0.7)"] -html5 = ["html5lib"] -htmlsoup = ["beautifulsoup4"] -source = ["Cython (>=0.29.7)"] - -[[package]] -name = "six" -version = "1.15.0" -description = "Python 2 and 3 compatibility utilities" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.6" -content-hash = "ac23fabec3fe14e5c01d89383de3fd7c7e0642c06d783be7b52b7c138c673571" - -[metadata.files] -lxml = [ - {file = "lxml-4.6.2-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:a9d6bc8642e2c67db33f1247a77c53476f3a166e09067c0474facb045756087f"}, - {file = "lxml-4.6.2-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:791394449e98243839fa822a637177dd42a95f4883ad3dec2a0ce6ac99fb0a9d"}, - {file = "lxml-4.6.2-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:68a5d77e440df94011214b7db907ec8f19e439507a70c958f750c18d88f995d2"}, - {file = "lxml-4.6.2-cp27-cp27m-win32.whl", hash = "sha256:fc37870d6716b137e80d19241d0e2cff7a7643b925dfa49b4c8ebd1295eb506e"}, - {file = "lxml-4.6.2-cp27-cp27m-win_amd64.whl", hash = "sha256:69a63f83e88138ab7642d8f61418cf3180a4d8cd13995df87725cb8b893e950e"}, - {file = "lxml-4.6.2-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:42ebca24ba2a21065fb546f3e6bd0c58c3fe9ac298f3a320147029a4850f51a2"}, - {file = "lxml-4.6.2-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:f83d281bb2a6217cd806f4cf0ddded436790e66f393e124dfe9731f6b3fb9afe"}, - {file = "lxml-4.6.2-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:535f067002b0fd1a4e5296a8f1bf88193080ff992a195e66964ef2a6cfec5388"}, - {file = "lxml-4.6.2-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:366cb750140f221523fa062d641393092813b81e15d0e25d9f7c6025f910ee80"}, - {file = "lxml-4.6.2-cp35-cp35m-manylinux2014_aarch64.whl", hash = "sha256:97db258793d193c7b62d4e2586c6ed98d51086e93f9a3af2b2034af01450a74b"}, - {file = "lxml-4.6.2-cp35-cp35m-win32.whl", hash = "sha256:648914abafe67f11be7d93c1a546068f8eff3c5fa938e1f94509e4a5d682b2d8"}, - {file = "lxml-4.6.2-cp35-cp35m-win_amd64.whl", hash = "sha256:4e751e77006da34643ab782e4a5cc21ea7b755551db202bc4d3a423b307db780"}, - {file = "lxml-4.6.2-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:681d75e1a38a69f1e64ab82fe4b1ed3fd758717bed735fb9aeaa124143f051af"}, - {file = "lxml-4.6.2-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:127f76864468d6630e1b453d3ffbbd04b024c674f55cf0a30dc2595137892d37"}, - {file = "lxml-4.6.2-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:4fb85c447e288df535b17ebdebf0ec1cf3a3f1a8eba7e79169f4f37af43c6b98"}, - {file = "lxml-4.6.2-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:5be4a2e212bb6aa045e37f7d48e3e1e4b6fd259882ed5a00786f82e8c37ce77d"}, - {file = "lxml-4.6.2-cp36-cp36m-win32.whl", hash = "sha256:8c88b599e226994ad4db29d93bc149aa1aff3dc3a4355dd5757569ba78632bdf"}, - {file = "lxml-4.6.2-cp36-cp36m-win_amd64.whl", hash = "sha256:6e4183800f16f3679076dfa8abf2db3083919d7e30764a069fb66b2b9eff9939"}, - {file = "lxml-4.6.2-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:d8d3d4713f0c28bdc6c806a278d998546e8efc3498949e3ace6e117462ac0a5e"}, - {file = "lxml-4.6.2-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:8246f30ca34dc712ab07e51dc34fea883c00b7ccb0e614651e49da2c49a30711"}, - {file = "lxml-4.6.2-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:923963e989ffbceaa210ac37afc9b906acebe945d2723e9679b643513837b089"}, - {file = "lxml-4.6.2-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:1471cee35eba321827d7d53d104e7b8c593ea3ad376aa2df89533ce8e1b24a01"}, - {file = "lxml-4.6.2-cp37-cp37m-win32.whl", hash = "sha256:2363c35637d2d9d6f26f60a208819e7eafc4305ce39dc1d5005eccc4593331c2"}, - {file = "lxml-4.6.2-cp37-cp37m-win_amd64.whl", hash = "sha256:f4822c0660c3754f1a41a655e37cb4dbbc9be3d35b125a37fab6f82d47674ebc"}, - {file = "lxml-4.6.2-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:0448576c148c129594d890265b1a83b9cd76fd1f0a6a04620753d9a6bcfd0a4d"}, - {file = "lxml-4.6.2-cp38-cp38-manylinux1_i686.whl", hash = "sha256:60a20bfc3bd234d54d49c388950195d23a5583d4108e1a1d47c9eef8d8c042b3"}, - {file = "lxml-4.6.2-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:2e5cc908fe43fe1aa299e58046ad66981131a66aea3129aac7770c37f590a644"}, - {file = "lxml-4.6.2-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:50c348995b47b5a4e330362cf39fc503b4a43b14a91c34c83b955e1805c8e308"}, - {file = "lxml-4.6.2-cp38-cp38-win32.whl", hash = "sha256:94d55bd03d8671686e3f012577d9caa5421a07286dd351dfef64791cf7c6c505"}, - {file = "lxml-4.6.2-cp38-cp38-win_amd64.whl", hash = "sha256:7a7669ff50f41225ca5d6ee0a1ec8413f3a0d8aa2b109f86d540887b7ec0d72a"}, - {file = "lxml-4.6.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:e0bfe9bb028974a481410432dbe1b182e8191d5d40382e5b8ff39cdd2e5c5931"}, - {file = "lxml-4.6.2-cp39-cp39-manylinux1_i686.whl", hash = "sha256:6fd8d5903c2e53f49e99359b063df27fdf7acb89a52b6a12494208bf61345a03"}, - {file = "lxml-4.6.2-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:7e9eac1e526386df7c70ef253b792a0a12dd86d833b1d329e038c7a235dfceb5"}, - {file = "lxml-4.6.2-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:7ee8af0b9f7de635c61cdd5b8534b76c52cd03536f29f51151b377f76e214a1a"}, - {file = "lxml-4.6.2-cp39-cp39-win32.whl", hash = "sha256:2e6fd1b8acd005bd71e6c94f30c055594bbd0aa02ef51a22bbfa961ab63b2d75"}, - {file = "lxml-4.6.2-cp39-cp39-win_amd64.whl", hash = "sha256:535332fe9d00c3cd455bd3dd7d4bacab86e2d564bdf7606079160fa6251caacf"}, - {file = "lxml-4.6.2.tar.gz", hash = "sha256:cd11c7e8d21af997ee8079037fff88f16fda188a9776eb4b81c7e4c9c0a7d7fc"}, -] -six = [ - {file = "six-1.15.0-py2.py3-none-any.whl", hash = "sha256:8b74bedcbbbaca38ff6d7491d76f2b06b3592611af620f8426e82dddb04a5ced"}, - {file = "six-1.15.0.tar.gz", hash = "sha256:30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259"}, -] diff --git a/schemas/ups/pyproject.toml b/schemas/ups/pyproject.toml index 62330b9da5..817d71c0d2 100644 --- a/schemas/ups/pyproject.toml +++ b/schemas/ups/pyproject.toml @@ -1,11 +1,11 @@ [tool.poetry] name = "carrier.ups" -version = "2020.3.1" +version = "2020.11" description = "UPS Web API Schemas Python Data Types library" repository="https://github.com/purplship/purplship" homepage="https://github.com/purplship/purplship/tree/main/carrier.ups" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [ { include = "ups_lib" } diff --git a/schemas/ups/schemas/AVRequest.xsd b/schemas/ups/schemas/AVRequest.xsd new file mode 100644 index 0000000000..9cc8c4583d --- /dev/null +++ b/schemas/ups/schemas/AVRequest.xsd @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/schemas/ups/schemas/AVResponse.xsd b/schemas/ups/schemas/AVResponse.xsd new file mode 100644 index 0000000000..9739381255 --- /dev/null +++ b/schemas/ups/schemas/AVResponse.xsd @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/schemas/ups/schemas/AccessRequest.xsd b/schemas/ups/schemas/AccessRequest.xsd new file mode 100644 index 0000000000..1662597dd9 --- /dev/null +++ b/schemas/ups/schemas/AccessRequest.xsd @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/schemas/ups/schemas/AccessRequestXPCI.xsd b/schemas/ups/schemas/AccessRequestXPCI.xsd new file mode 100644 index 0000000000..fc5fd43b82 --- /dev/null +++ b/schemas/ups/schemas/AccessRequestXPCI.xsd @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/schemas/ups/schemas/DangerousGoodsUtility.xsd b/schemas/ups/schemas/DangerousGoodsUtility.xsd new file mode 100644 index 0000000000..729763944b --- /dev/null +++ b/schemas/ups/schemas/DangerousGoodsUtility.xsd @@ -0,0 +1,169 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemas/ups/schemas/DeniedPartyWebServiceSchema.xsd b/schemas/ups/schemas/DeniedPartyWebServiceSchema.xsd new file mode 100644 index 0000000000..d50f4620f2 --- /dev/null +++ b/schemas/ups/schemas/DeniedPartyWebServiceSchema.xsd @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/schemas/ups/schemas/Error1.1.xsd b/schemas/ups/schemas/Error1.1.xsd new file mode 100644 index 0000000000..c720608ab1 --- /dev/null +++ b/schemas/ups/schemas/Error1.1.xsd @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemas/ups/schemas/ErrorXPCI.xsd b/schemas/ups/schemas/ErrorXPCI.xsd new file mode 100644 index 0000000000..e779124fef --- /dev/null +++ b/schemas/ups/schemas/ErrorXPCI.xsd @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemas/ups/schemas/FreightPickupWebServiceSchema.xsd b/schemas/ups/schemas/FreightPickupWebServiceSchema.xsd new file mode 100644 index 0000000000..5531d5c09e --- /dev/null +++ b/schemas/ups/schemas/FreightPickupWebServiceSchema.xsd @@ -0,0 +1,169 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemas/ups/schemas/FreightRateWebServiceSchema.xsd b/schemas/ups/schemas/FreightRateWebServiceSchema.xsd new file mode 100644 index 0000000000..273e176310 --- /dev/null +++ b/schemas/ups/schemas/FreightRateWebServiceSchema.xsd @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/schemas/ups/schemas/FreightShipWebServiceSchema.xsd b/schemas/ups/schemas/FreightShipWebServiceSchema.xsd new file mode 100644 index 0000000000..f45cc8dac0 --- /dev/null +++ b/schemas/ups/schemas/FreightShipWebServiceSchema.xsd @@ -0,0 +1,622 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemas/ups/schemas/IFWS.xsd b/schemas/ups/schemas/IFWS.xsd new file mode 100644 index 0000000000..c36e5b33ae --- /dev/null +++ b/schemas/ups/schemas/IFWS.xsd @@ -0,0 +1,318 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemas/ups/schemas/LBRecovery.xsd b/schemas/ups/schemas/LBRecovery.xsd new file mode 100644 index 0000000000..05588c56e7 --- /dev/null +++ b/schemas/ups/schemas/LBRecovery.xsd @@ -0,0 +1,166 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemas/ups/schemas/LandedCostWebServiceSchema.xsd b/schemas/ups/schemas/LandedCostWebServiceSchema.xsd new file mode 100644 index 0000000000..3b8012c30c --- /dev/null +++ b/schemas/ups/schemas/LandedCostWebServiceSchema.xsd @@ -0,0 +1,216 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemas/ups/schemas/LocatorRequest.xsd b/schemas/ups/schemas/LocatorRequest.xsd new file mode 100644 index 0000000000..2bc27f42e8 --- /dev/null +++ b/schemas/ups/schemas/LocatorRequest.xsd @@ -0,0 +1,208 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemas/ups/schemas/LocatorResponse.xsd b/schemas/ups/schemas/LocatorResponse.xsd new file mode 100644 index 0000000000..bb3d630a4b --- /dev/null +++ b/schemas/ups/schemas/LocatorResponse.xsd @@ -0,0 +1,364 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/schemas/ups/schemas/PaperlessDocumentAPI.xsd b/schemas/ups/schemas/PaperlessDocumentAPI.xsd new file mode 100644 index 0000000000..7901e09037 --- /dev/null +++ b/schemas/ups/schemas/PaperlessDocumentAPI.xsd @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemas/ups/schemas/PickupWebServiceSchema.xsd b/schemas/ups/schemas/PickupWebServiceSchema.xsd new file mode 100644 index 0000000000..1775dae998 --- /dev/null +++ b/schemas/ups/schemas/PickupWebServiceSchema.xsd @@ -0,0 +1,481 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemas/ups/schemas/PreNotificationWebServiceSchema.xsd b/schemas/ups/schemas/PreNotificationWebServiceSchema.xsd new file mode 100644 index 0000000000..3a7d042982 --- /dev/null +++ b/schemas/ups/schemas/PreNotificationWebServiceSchema.xsd @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/schemas/ups/schemas/QuantumViewRequest.xsd b/schemas/ups/schemas/QuantumViewRequest.xsd new file mode 100644 index 0000000000..a5b22f1865 --- /dev/null +++ b/schemas/ups/schemas/QuantumViewRequest.xsd @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/schemas/ups/schemas/QuantumViewResponse.xsd b/schemas/ups/schemas/QuantumViewResponse.xsd new file mode 100644 index 0000000000..3fc82c72f9 --- /dev/null +++ b/schemas/ups/schemas/QuantumViewResponse.xsd @@ -0,0 +1,491 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemas/ups/schemas/RateWebServiceSchema.xsd b/schemas/ups/schemas/RateWebServiceSchema.xsd new file mode 100644 index 0000000000..12dcfa9507 --- /dev/null +++ b/schemas/ups/schemas/RateWebServiceSchema.xsd @@ -0,0 +1,633 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemas/ups/schemas/ShipWebServiceSchema.xsd b/schemas/ups/schemas/ShipWebServiceSchema.xsd new file mode 100644 index 0000000000..2347a2d487 --- /dev/null +++ b/schemas/ups/schemas/ShipWebServiceSchema.xsd @@ -0,0 +1,895 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemas/ups/schemas/TimeInTransitWebServiceSchema.xsd b/schemas/ups/schemas/TimeInTransitWebServiceSchema.xsd new file mode 100644 index 0000000000..1c6928e0a4 --- /dev/null +++ b/schemas/ups/schemas/TimeInTransitWebServiceSchema.xsd @@ -0,0 +1,193 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemas/ups/schemas/TrackWebServiceSchema.xsd b/schemas/ups/schemas/TrackWebServiceSchema.xsd new file mode 100755 index 0000000000..25a4e3a6d4 --- /dev/null +++ b/schemas/ups/schemas/TrackWebServiceSchema.xsd @@ -0,0 +1,413 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemas/ups/schemas/UPSSecurity.xsd b/schemas/ups/schemas/UPSSecurity.xsd new file mode 100644 index 0000000000..63378ec4b7 --- /dev/null +++ b/schemas/ups/schemas/UPSSecurity.xsd @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemas/ups/schemas/VoidWebServiceSchema.xsd b/schemas/ups/schemas/VoidWebServiceSchema.xsd new file mode 100644 index 0000000000..7b69d7c0af --- /dev/null +++ b/schemas/ups/schemas/VoidWebServiceSchema.xsd @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemas/ups/schemas/common.xsd b/schemas/ups/schemas/common.xsd new file mode 100644 index 0000000000..ddb84840bc --- /dev/null +++ b/schemas/ups/schemas/common.xsd @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemas/ups/schemas/rest_error.json b/schemas/ups/schemas/rest_error.json new file mode 100644 index 0000000000..ae87539c8d --- /dev/null +++ b/schemas/ups/schemas/rest_error.json @@ -0,0 +1,10 @@ +{ + "response": { + "errors": [ + { + "code": "250003", + "message": "Invalid Access License number" + } + ] + } +} diff --git a/schemas/ups/schemas/rest_tracking_response.json b/schemas/ups/schemas/rest_tracking_response.json new file mode 100644 index 0000000000..23746e1709 --- /dev/null +++ b/schemas/ups/schemas/rest_tracking_response.json @@ -0,0 +1,230 @@ +{ + "trackResponse": { + "shipment": [ + { + "package": [ + { + "trackingNumber": "1ZR760R60332160282", + "deliveryDate": [ + { + "type": "DEL", + "date": "20211021" + } + ], + "deliveryTime": { + "startTime": "", + "endTime": "143316", + "type": "DEL" + }, + "activity": [ + { + "location": { + "address": { + "city": "ADRIAN", + "stateProvince": "MI", + "postalCode": "", + "country": "US" + } + }, + "status": { + "type": "D", + "description": "Delivered", + "code": "FS" + }, + "date": "20211021", + "time": "143316" + }, + { + "location": { + "address": { + "city": "Adrian", + "stateProvince": "MI", + "postalCode": "", + "country": "US" + } + }, + "status": { + "type": "I", + "description": "Out For Delivery Today", + "code": "OT" + }, + "date": "20211021", + "time": "092215" + }, + { + "location": { + "address": { + "city": "Adrian", + "stateProvince": "MI", + "postalCode": "", + "country": "US" + } + }, + "status": { + "type": "I", + "description": "Processing at UPS Facility", + "code": "YP" + }, + "date": "20211021", + "time": "042712" + }, + { + "location": { + "address": { + "city": "Adrian", + "stateProvince": "MI", + "postalCode": "", + "country": "US" + } + }, + "status": { + "type": "I", + "description": "Arrived at Facility", + "code": "AR" + }, + "date": "20211021", + "time": "011500" + }, + { + "location": { + "address": { + "city": "Maumee", + "stateProvince": "OH", + "postalCode": "", + "country": "US" + } + }, + "status": { + "type": "I", + "description": "Departed from Facility", + "code": "DP" + }, + "date": "20211021", + "time": "002700" + }, + { + "location": { + "address": { + "city": "Maumee", + "stateProvince": "OH", + "postalCode": "", + "country": "US" + } + }, + "status": { + "type": "I", + "description": "Arrived at Facility", + "code": "AR" + }, + "date": "20211020", + "time": "175700" + }, + { + "location": { + "address": { + "city": "Nashville", + "stateProvince": "TN", + "postalCode": "", + "country": "US" + } + }, + "status": { + "type": "I", + "description": "Departed from Facility", + "code": "DP" + }, + "date": "20211020", + "time": "082000" + }, + { + "location": { + "address": { + "city": "Nashville", + "stateProvince": "TN", + "postalCode": "", + "country": "US" + } + }, + "status": { + "type": "I", + "description": "Arrived at Facility", + "code": "AR" + }, + "date": "20211019", + "time": "222400" + }, + { + "location": { + "address": { + "city": "Nashville", + "stateProvince": "TN", + "postalCode": "", + "country": "US" + } + }, + "status": { + "type": "I", + "description": "Departed from Facility", + "code": "DP" + }, + "date": "20211019", + "time": "215900" + }, + { + "location": { + "address": { + "city": "Nashville", + "stateProvince": "TN", + "postalCode": "", + "country": "US" + } + }, + "status": { + "type": "I", + "description": "Origin Scan", + "code": "OR" + }, + "date": "20211019", + "time": "200952" + }, + { + "location": { + "address": { + "city": "Nashville", + "stateProvince": "TN", + "postalCode": "", + "country": "US" + } + }, + "status": { + "type": "I", + "description": "Drop-Off", + "code": "XD" + }, + "date": "20211019", + "time": "121800" + }, + { + "location": { + "address": { + "city": "", + "stateProvince": "", + "postalCode": "", + "country": "US" + } + }, + "status": { + "type": "M", + "description": "Shipper created a label, UPS has not received the package yet. ", + "code": "MP" + }, + "date": "20211018", + "time": "140229" + } + ] + } + ] + } + ] + } +} diff --git a/schemas/ups/ups_lib/access_request.py b/schemas/ups/ups_lib/access_request.py index a3076b831d..8b452671b5 100644 --- a/schemas/ups/ups_lib/access_request.py +++ b/schemas/ups/ups_lib/access_request.py @@ -2,34 +2,35 @@ # -*- coding: utf-8 -*- # -# Generated Sat Mar 7 09:04:11 2020 by generateDS.py version 2.35.15. -# Python 3.8.1 (v3.8.1:1b293b6006, Dec 18 2019, 14:08:53) [Clang 6.0 (clang-600.0.57)] +# Generated Wed Nov 10 10:00:58 2021 by generateDS.py version 2.40.5. +# Python 3.8.6 (v3.8.6:db455296be, Sep 23 2020, 13:31:39) [Clang 6.0 (clang-600.0.57)] # # Command line options: # ('--no-namespace-defs', '') -# ('-o', './python/access_request.py') +# ('-o', './ups_lib/access_request.py') # # Command line arguments: # ./schemas/AccessRequest.xsd # # Command line: -# /Users/danielkobina/Documents/Open/.env/bin/generateDS --no-namespace-defs -o "./python/access_request.py" ./schemas/AccessRequest.xsd +# /Users/danielkobina/Workspace/project/purplship/.venv/purplship/bin/generateDS --no-namespace-defs -o "./ups_lib/access_request.py" ./schemas/AccessRequest.xsd # # Current working directory (os.getcwd()): -# 2020-03 +# ups # +import sys +try: + ModulenotfoundExp_ = ModuleNotFoundError +except NameError: + ModulenotfoundExp_ = ImportError from six.moves import zip_longest import os -import sys import re as re_ import base64 import datetime as datetime_ import decimal as decimal_ -try: - from lxml import etree as etree_ -except ImportError: - from xml.etree import ElementTree as etree_ +from lxml import etree as etree_ Validate_simpletypes_ = True @@ -92,7 +93,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # Additionally, the generatedsnamespaces module can contain a python # dictionary named GenerateDSNamespaceTypePrefixes that associates element # types with the namespace prefixes that are to be added to the -# "xsi:type" attribute value. See the exportAttributes method of +# "xsi:type" attribute value. See the _exportAttributes method of # any generated element type and the generation of "xsi:type" for an # example of the use of this table. # An example table: @@ -107,11 +108,11 @@ def parsexmlstring_(instring, parser=None, **kwargs): try: from generatedsnamespaces import GenerateDSNamespaceDefs as GenerateDSNamespaceDefs_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceDefs_ = {} try: from generatedsnamespaces import GenerateDSNamespaceTypePrefixes as GenerateDSNamespaceTypePrefixes_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceTypePrefixes_ = {} # @@ -122,7 +123,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # try: from generatedscollector import GdsCollector as GdsCollector_ -except ImportError: +except ModulenotfoundExp_ : class GdsCollector_(object): @@ -156,7 +157,7 @@ def write_messages(self, outstream): try: from enum import Enum -except ImportError: +except ModulenotfoundExp_ : Enum = object # @@ -168,9 +169,14 @@ def write_messages(self, outstream): try: from generatedssuper import GeneratedsSuper -except ImportError as exp: +except ModulenotfoundExp_ as exp: + try: + from generatedssupersuper import GeneratedsSuperSuper + except ModulenotfoundExp_ as exp: + class GeneratedsSuperSuper(object): + pass - class GeneratedsSuper(object): + class GeneratedsSuper(GeneratedsSuperSuper): __hash__ = object.__hash__ tzoff_pattern = re_.compile(r'(\+|-)((0\d|1[0-3]):[0-5]\d|14:00)$') class _FixedOffsetTZ(datetime_.tzinfo): @@ -183,6 +189,30 @@ def tzname(self, dt): return self.__name def dst(self, dt): return None + def __str__(self): + settings = { + 'str_pretty_print': True, + 'str_indent_level': 0, + 'str_namespaceprefix': '', + 'str_name': None, + 'str_namespacedefs': '', + } + for n in settings: + if hasattr(self, n): + setattr(settings[n], self[n]) + from io import StringIO + output = StringIO() + self.export( + output, + settings['str_indent_level'], + pretty_print=settings['str_pretty_print'], + namespaceprefix_=settings['str_namespaceprefix'], + name_=settings['str_name'], + namespacedef_=settings['str_namespacedefs'] + ) + strval = output.getvalue() + output.close() + return strval def gds_format_string(self, input_data, input_name=''): return input_data def gds_parse_string(self, input_data, node=None, input_name=''): @@ -193,11 +223,11 @@ def gds_validate_string(self, input_data, node=None, input_name=''): else: return input_data def gds_format_base64(self, input_data, input_name=''): - return base64.b64encode(input_data) + return base64.b64encode(input_data).decode('ascii') def gds_validate_base64(self, input_data, node=None, input_name=''): return input_data def gds_format_integer(self, input_data, input_name=''): - return '%d' % input_data + return '%d' % int(input_data) def gds_parse_integer(self, input_data, node=None, input_name=''): try: ival = int(input_data) @@ -211,6 +241,8 @@ def gds_validate_integer(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires integer value') return value def gds_format_integer_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_integer_list( self, input_data, node=None, input_name=''): @@ -219,10 +251,10 @@ def gds_validate_integer_list( try: int(value) except (TypeError, ValueError): - raise_parse_error(node, 'Requires sequence of integer valuess') + raise_parse_error(node, 'Requires sequence of integer values') return values def gds_format_float(self, input_data, input_name=''): - return ('%.15f' % input_data).rstrip('0') + return ('%.15f' % float(input_data)).rstrip('0') def gds_parse_float(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -236,6 +268,8 @@ def gds_validate_float(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires float value') return value def gds_format_float_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_float_list( self, input_data, node=None, input_name=''): @@ -247,7 +281,12 @@ def gds_validate_float_list( raise_parse_error(node, 'Requires sequence of float values') return values def gds_format_decimal(self, input_data, input_name=''): - return ('%s' % input_data).rstrip('0') + return_value = '%s' % input_data + if '.' in return_value: + return_value = return_value.rstrip('0') + if return_value.endswith('.'): + return_value = return_value.rstrip('.') + return return_value def gds_parse_decimal(self, input_data, node=None, input_name=''): try: decimal_value = decimal_.Decimal(input_data) @@ -261,7 +300,9 @@ def gds_validate_decimal(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires decimal value') return value def gds_format_decimal_list(self, input_data, input_name=''): - return '%s' % ' '.join(input_data) + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] + return ' '.join([self.gds_format_decimal(item) for item in input_data]) def gds_validate_decimal_list( self, input_data, node=None, input_name=''): values = input_data.split() @@ -272,7 +313,7 @@ def gds_validate_decimal_list( raise_parse_error(node, 'Requires sequence of decimal values') return values def gds_format_double(self, input_data, input_name=''): - return '%e' % input_data + return '%s' % input_data def gds_parse_double(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -286,6 +327,8 @@ def gds_validate_double(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires double or float value') return value def gds_format_double_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_double_list( self, input_data, node=None, input_name=''): @@ -315,11 +358,14 @@ def gds_validate_boolean(self, input_data, node=None, input_name=''): '(one of True, 1, False, 0)') return input_data def gds_format_boolean_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_boolean_list( self, input_data, node=None, input_name=''): values = input_data.split() for value in values: + value = self.gds_parse_boolean(value, node, input_name) if value not in (True, 1, False, 0, ): raise_parse_error( node, @@ -766,7 +812,10 @@ def find_attr_value_(attr_name, node): value = attrs.get(attr_name) elif len(attr_parts) == 2: prefix, name = attr_parts - namespace = node.nsmap.get(prefix) + if prefix == 'xml': + namespace = 'http://www.w3.org/XML/1998/namespace' + else: + namespace = node.nsmap.get(prefix) if namespace is not None: value = attrs.get('{%s}%s' % (namespace, name, )) return value @@ -847,7 +896,7 @@ def exportSimple(self, outfile, level, name): self.name, base64.b64encode(self.value), self.name)) - def to_etree(self, element): + def to_etree(self, element, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.category == MixedContainer.CategoryText: # Prevent exporting empty content as empty lines. if self.value.strip(): @@ -867,7 +916,7 @@ def to_etree(self, element): subelement.text = self.to_etree_simple() else: # category == MixedContainer.CategoryComplex self.value.to_etree(element) - def to_etree_simple(self): + def to_etree_simple(self, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.content_type == MixedContainer.TypeString: text = self.value elif (self.content_type == MixedContainer.TypeInteger or @@ -988,7 +1037,7 @@ def get_Password(self): return self.Password def set_Password(self, Password): self.Password = Password - def hasContent_(self): + def _hasContent(self): if ( self.AccessLicenseNumber is not None or self.UserId is not None or @@ -1012,17 +1061,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AccessRequest') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AccessRequest') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AccessRequest', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AccessRequest', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AccessRequest'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AccessRequest'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AccessRequest', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AccessRequest', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1045,14 +1094,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AccessLicenseNumber': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'AccessLicenseNumber') @@ -1145,7 +1194,8 @@ def parse(inFileName, silence=False, print_warnings=True): return rootObj -def parseEtree(inFileName, silence=False, print_warnings=True): +def parseEtree(inFileName, silence=False, print_warnings=True, + mapping=None, reverse_mapping=None, nsmap=None): parser = None doc = parsexml_(inFileName, parser) gds_collector = GdsCollector_() @@ -1156,10 +1206,15 @@ def parseEtree(inFileName, silence=False, print_warnings=True): rootClass = AccessRequest rootObj = rootClass.factory() rootObj.build(rootNode, gds_collector_=gds_collector) + if mapping is None: + mapping = {} + if reverse_mapping is None: + reverse_mapping = {} + rootElement = rootObj.to_etree( + None, name_=rootTag, mapping_=mapping, + reverse_mapping_=reverse_mapping, nsmap_=nsmap) + reverse_node_mapping = rootObj.gds_reverse_node_mapping(mapping) # Enable Python to collect the space used by the DOM. - mapping = {} - rootElement = rootObj.to_etree(None, name_=rootTag, mapping_=mapping) - reverse_mapping = rootObj.gds_reverse_node_mapping(mapping) if not SaveElementTreeNode: doc = None rootNode = None @@ -1176,7 +1231,7 @@ def parseEtree(inFileName, silence=False, print_warnings=True): len(gds_collector.get_messages()), )) gds_collector.write_messages(sys.stderr) sys.stderr.write(separator) - return rootObj, rootElement, mapping, reverse_mapping + return rootObj, rootElement, mapping, reverse_node_mapping def parseString(inString, silence=False, print_warnings=True): @@ -1260,6 +1315,12 @@ def main(): RenameMappings_ = { } +# +# Mapping of namespaces to types defined in them +# and the file in which each is defined. +# simpleTypes are marked "ST" and complexTypes "CT". +NamespaceToDefMappings_ = {} + __all__ = [ "AccessRequest" ] diff --git a/schemas/ups/ups_lib/access_request_xpci.py b/schemas/ups/ups_lib/access_request_xpci.py index ef3a3a243b..bfef0bb65f 100644 --- a/schemas/ups/ups_lib/access_request_xpci.py +++ b/schemas/ups/ups_lib/access_request_xpci.py @@ -2,34 +2,35 @@ # -*- coding: utf-8 -*- # -# Generated Sat Mar 7 09:04:12 2020 by generateDS.py version 2.35.15. -# Python 3.8.1 (v3.8.1:1b293b6006, Dec 18 2019, 14:08:53) [Clang 6.0 (clang-600.0.57)] +# Generated Wed Nov 10 10:00:58 2021 by generateDS.py version 2.40.5. +# Python 3.8.6 (v3.8.6:db455296be, Sep 23 2020, 13:31:39) [Clang 6.0 (clang-600.0.57)] # # Command line options: # ('--no-namespace-defs', '') -# ('-o', './python/access_request_xpci.py') +# ('-o', './ups_lib/access_request_xpci.py') # # Command line arguments: # ./schemas/AccessRequestXPCI.xsd # # Command line: -# /Users/danielkobina/Documents/Open/.env/bin/generateDS --no-namespace-defs -o "./python/access_request_xpci.py" ./schemas/AccessRequestXPCI.xsd +# /Users/danielkobina/Workspace/project/purplship/.venv/purplship/bin/generateDS --no-namespace-defs -o "./ups_lib/access_request_xpci.py" ./schemas/AccessRequestXPCI.xsd # # Current working directory (os.getcwd()): -# 2020-03 +# ups # +import sys +try: + ModulenotfoundExp_ = ModuleNotFoundError +except NameError: + ModulenotfoundExp_ = ImportError from six.moves import zip_longest import os -import sys import re as re_ import base64 import datetime as datetime_ import decimal as decimal_ -try: - from lxml import etree as etree_ -except ImportError: - from xml.etree import ElementTree as etree_ +from lxml import etree as etree_ Validate_simpletypes_ = True @@ -92,7 +93,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # Additionally, the generatedsnamespaces module can contain a python # dictionary named GenerateDSNamespaceTypePrefixes that associates element # types with the namespace prefixes that are to be added to the -# "xsi:type" attribute value. See the exportAttributes method of +# "xsi:type" attribute value. See the _exportAttributes method of # any generated element type and the generation of "xsi:type" for an # example of the use of this table. # An example table: @@ -107,11 +108,11 @@ def parsexmlstring_(instring, parser=None, **kwargs): try: from generatedsnamespaces import GenerateDSNamespaceDefs as GenerateDSNamespaceDefs_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceDefs_ = {} try: from generatedsnamespaces import GenerateDSNamespaceTypePrefixes as GenerateDSNamespaceTypePrefixes_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceTypePrefixes_ = {} # @@ -122,7 +123,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # try: from generatedscollector import GdsCollector as GdsCollector_ -except ImportError: +except ModulenotfoundExp_ : class GdsCollector_(object): @@ -156,7 +157,7 @@ def write_messages(self, outstream): try: from enum import Enum -except ImportError: +except ModulenotfoundExp_ : Enum = object # @@ -168,9 +169,14 @@ def write_messages(self, outstream): try: from generatedssuper import GeneratedsSuper -except ImportError as exp: +except ModulenotfoundExp_ as exp: + try: + from generatedssupersuper import GeneratedsSuperSuper + except ModulenotfoundExp_ as exp: + class GeneratedsSuperSuper(object): + pass - class GeneratedsSuper(object): + class GeneratedsSuper(GeneratedsSuperSuper): __hash__ = object.__hash__ tzoff_pattern = re_.compile(r'(\+|-)((0\d|1[0-3]):[0-5]\d|14:00)$') class _FixedOffsetTZ(datetime_.tzinfo): @@ -183,6 +189,30 @@ def tzname(self, dt): return self.__name def dst(self, dt): return None + def __str__(self): + settings = { + 'str_pretty_print': True, + 'str_indent_level': 0, + 'str_namespaceprefix': '', + 'str_name': None, + 'str_namespacedefs': '', + } + for n in settings: + if hasattr(self, n): + setattr(settings[n], self[n]) + from io import StringIO + output = StringIO() + self.export( + output, + settings['str_indent_level'], + pretty_print=settings['str_pretty_print'], + namespaceprefix_=settings['str_namespaceprefix'], + name_=settings['str_name'], + namespacedef_=settings['str_namespacedefs'] + ) + strval = output.getvalue() + output.close() + return strval def gds_format_string(self, input_data, input_name=''): return input_data def gds_parse_string(self, input_data, node=None, input_name=''): @@ -193,11 +223,11 @@ def gds_validate_string(self, input_data, node=None, input_name=''): else: return input_data def gds_format_base64(self, input_data, input_name=''): - return base64.b64encode(input_data) + return base64.b64encode(input_data).decode('ascii') def gds_validate_base64(self, input_data, node=None, input_name=''): return input_data def gds_format_integer(self, input_data, input_name=''): - return '%d' % input_data + return '%d' % int(input_data) def gds_parse_integer(self, input_data, node=None, input_name=''): try: ival = int(input_data) @@ -211,6 +241,8 @@ def gds_validate_integer(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires integer value') return value def gds_format_integer_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_integer_list( self, input_data, node=None, input_name=''): @@ -219,10 +251,10 @@ def gds_validate_integer_list( try: int(value) except (TypeError, ValueError): - raise_parse_error(node, 'Requires sequence of integer valuess') + raise_parse_error(node, 'Requires sequence of integer values') return values def gds_format_float(self, input_data, input_name=''): - return ('%.15f' % input_data).rstrip('0') + return ('%.15f' % float(input_data)).rstrip('0') def gds_parse_float(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -236,6 +268,8 @@ def gds_validate_float(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires float value') return value def gds_format_float_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_float_list( self, input_data, node=None, input_name=''): @@ -247,7 +281,12 @@ def gds_validate_float_list( raise_parse_error(node, 'Requires sequence of float values') return values def gds_format_decimal(self, input_data, input_name=''): - return ('%s' % input_data).rstrip('0') + return_value = '%s' % input_data + if '.' in return_value: + return_value = return_value.rstrip('0') + if return_value.endswith('.'): + return_value = return_value.rstrip('.') + return return_value def gds_parse_decimal(self, input_data, node=None, input_name=''): try: decimal_value = decimal_.Decimal(input_data) @@ -261,7 +300,9 @@ def gds_validate_decimal(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires decimal value') return value def gds_format_decimal_list(self, input_data, input_name=''): - return '%s' % ' '.join(input_data) + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] + return ' '.join([self.gds_format_decimal(item) for item in input_data]) def gds_validate_decimal_list( self, input_data, node=None, input_name=''): values = input_data.split() @@ -272,7 +313,7 @@ def gds_validate_decimal_list( raise_parse_error(node, 'Requires sequence of decimal values') return values def gds_format_double(self, input_data, input_name=''): - return '%e' % input_data + return '%s' % input_data def gds_parse_double(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -286,6 +327,8 @@ def gds_validate_double(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires double or float value') return value def gds_format_double_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_double_list( self, input_data, node=None, input_name=''): @@ -315,11 +358,14 @@ def gds_validate_boolean(self, input_data, node=None, input_name=''): '(one of True, 1, False, 0)') return input_data def gds_format_boolean_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_boolean_list( self, input_data, node=None, input_name=''): values = input_data.split() for value in values: + value = self.gds_parse_boolean(value, node, input_name) if value not in (True, 1, False, 0, ): raise_parse_error( node, @@ -766,7 +812,10 @@ def find_attr_value_(attr_name, node): value = attrs.get(attr_name) elif len(attr_parts) == 2: prefix, name = attr_parts - namespace = node.nsmap.get(prefix) + if prefix == 'xml': + namespace = 'http://www.w3.org/XML/1998/namespace' + else: + namespace = node.nsmap.get(prefix) if namespace is not None: value = attrs.get('{%s}%s' % (namespace, name, )) return value @@ -847,7 +896,7 @@ def exportSimple(self, outfile, level, name): self.name, base64.b64encode(self.value), self.name)) - def to_etree(self, element): + def to_etree(self, element, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.category == MixedContainer.CategoryText: # Prevent exporting empty content as empty lines. if self.value.strip(): @@ -867,7 +916,7 @@ def to_etree(self, element): subelement.text = self.to_etree_simple() else: # category == MixedContainer.CategoryComplex self.value.to_etree(element) - def to_etree_simple(self): + def to_etree_simple(self, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.content_type == MixedContainer.TypeString: text = self.value elif (self.content_type == MixedContainer.TypeInteger or @@ -988,7 +1037,7 @@ def get_AccessLicenseNumber(self): return self.AccessLicenseNumber def set_AccessLicenseNumber(self, AccessLicenseNumber): self.AccessLicenseNumber = AccessLicenseNumber - def hasContent_(self): + def _hasContent(self): if ( self.UserId is not None or self.Password is not None or @@ -1012,17 +1061,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AccessRequest') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AccessRequest') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AccessRequest', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AccessRequest', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AccessRequest'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AccessRequest'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AccessRequest', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AccessRequest', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1045,14 +1094,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'UserId': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'UserId') @@ -1145,7 +1194,8 @@ def parse(inFileName, silence=False, print_warnings=True): return rootObj -def parseEtree(inFileName, silence=False, print_warnings=True): +def parseEtree(inFileName, silence=False, print_warnings=True, + mapping=None, reverse_mapping=None, nsmap=None): parser = None doc = parsexml_(inFileName, parser) gds_collector = GdsCollector_() @@ -1156,10 +1206,15 @@ def parseEtree(inFileName, silence=False, print_warnings=True): rootClass = AccessRequest rootObj = rootClass.factory() rootObj.build(rootNode, gds_collector_=gds_collector) + if mapping is None: + mapping = {} + if reverse_mapping is None: + reverse_mapping = {} + rootElement = rootObj.to_etree( + None, name_=rootTag, mapping_=mapping, + reverse_mapping_=reverse_mapping, nsmap_=nsmap) + reverse_node_mapping = rootObj.gds_reverse_node_mapping(mapping) # Enable Python to collect the space used by the DOM. - mapping = {} - rootElement = rootObj.to_etree(None, name_=rootTag, mapping_=mapping) - reverse_mapping = rootObj.gds_reverse_node_mapping(mapping) if not SaveElementTreeNode: doc = None rootNode = None @@ -1176,7 +1231,7 @@ def parseEtree(inFileName, silence=False, print_warnings=True): len(gds_collector.get_messages()), )) gds_collector.write_messages(sys.stderr) sys.stderr.write(separator) - return rootObj, rootElement, mapping, reverse_mapping + return rootObj, rootElement, mapping, reverse_node_mapping def parseString(inString, silence=False, print_warnings=True): @@ -1260,6 +1315,12 @@ def main(): RenameMappings_ = { } +# +# Mapping of namespaces to types defined in them +# and the file in which each is defined. +# simpleTypes are marked "ST" and complexTypes "CT". +NamespaceToDefMappings_ = {'http://www.ups.com/schema/xpci/1.0/auth': []} + __all__ = [ "AccessRequest" ] diff --git a/schemas/ups/ups_lib/av_request.py b/schemas/ups/ups_lib/av_request.py index 330218d8ae..fbc7e8ed98 100644 --- a/schemas/ups/ups_lib/av_request.py +++ b/schemas/ups/ups_lib/av_request.py @@ -2,34 +2,35 @@ # -*- coding: utf-8 -*- # -# Generated Sat Mar 7 09:04:11 2020 by generateDS.py version 2.35.15. -# Python 3.8.1 (v3.8.1:1b293b6006, Dec 18 2019, 14:08:53) [Clang 6.0 (clang-600.0.57)] +# Generated Wed Nov 10 10:00:57 2021 by generateDS.py version 2.40.5. +# Python 3.8.6 (v3.8.6:db455296be, Sep 23 2020, 13:31:39) [Clang 6.0 (clang-600.0.57)] # # Command line options: # ('--no-namespace-defs', '') -# ('-o', './python/av_request.py') +# ('-o', './ups_lib/av_request.py') # # Command line arguments: # ./schemas/AVRequest.xsd # # Command line: -# /Users/danielkobina/Documents/Open/.env/bin/generateDS --no-namespace-defs -o "./python/av_request.py" ./schemas/AVRequest.xsd +# /Users/danielkobina/Workspace/project/purplship/.venv/purplship/bin/generateDS --no-namespace-defs -o "./ups_lib/av_request.py" ./schemas/AVRequest.xsd # # Current working directory (os.getcwd()): -# 2020-03 +# ups # +import sys +try: + ModulenotfoundExp_ = ModuleNotFoundError +except NameError: + ModulenotfoundExp_ = ImportError from six.moves import zip_longest import os -import sys import re as re_ import base64 import datetime as datetime_ import decimal as decimal_ -try: - from lxml import etree as etree_ -except ImportError: - from xml.etree import ElementTree as etree_ +from lxml import etree as etree_ Validate_simpletypes_ = True @@ -92,7 +93,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # Additionally, the generatedsnamespaces module can contain a python # dictionary named GenerateDSNamespaceTypePrefixes that associates element # types with the namespace prefixes that are to be added to the -# "xsi:type" attribute value. See the exportAttributes method of +# "xsi:type" attribute value. See the _exportAttributes method of # any generated element type and the generation of "xsi:type" for an # example of the use of this table. # An example table: @@ -107,11 +108,11 @@ def parsexmlstring_(instring, parser=None, **kwargs): try: from generatedsnamespaces import GenerateDSNamespaceDefs as GenerateDSNamespaceDefs_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceDefs_ = {} try: from generatedsnamespaces import GenerateDSNamespaceTypePrefixes as GenerateDSNamespaceTypePrefixes_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceTypePrefixes_ = {} # @@ -122,7 +123,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # try: from generatedscollector import GdsCollector as GdsCollector_ -except ImportError: +except ModulenotfoundExp_ : class GdsCollector_(object): @@ -156,7 +157,7 @@ def write_messages(self, outstream): try: from enum import Enum -except ImportError: +except ModulenotfoundExp_ : Enum = object # @@ -168,9 +169,14 @@ def write_messages(self, outstream): try: from generatedssuper import GeneratedsSuper -except ImportError as exp: +except ModulenotfoundExp_ as exp: + try: + from generatedssupersuper import GeneratedsSuperSuper + except ModulenotfoundExp_ as exp: + class GeneratedsSuperSuper(object): + pass - class GeneratedsSuper(object): + class GeneratedsSuper(GeneratedsSuperSuper): __hash__ = object.__hash__ tzoff_pattern = re_.compile(r'(\+|-)((0\d|1[0-3]):[0-5]\d|14:00)$') class _FixedOffsetTZ(datetime_.tzinfo): @@ -183,6 +189,30 @@ def tzname(self, dt): return self.__name def dst(self, dt): return None + def __str__(self): + settings = { + 'str_pretty_print': True, + 'str_indent_level': 0, + 'str_namespaceprefix': '', + 'str_name': None, + 'str_namespacedefs': '', + } + for n in settings: + if hasattr(self, n): + setattr(settings[n], self[n]) + from io import StringIO + output = StringIO() + self.export( + output, + settings['str_indent_level'], + pretty_print=settings['str_pretty_print'], + namespaceprefix_=settings['str_namespaceprefix'], + name_=settings['str_name'], + namespacedef_=settings['str_namespacedefs'] + ) + strval = output.getvalue() + output.close() + return strval def gds_format_string(self, input_data, input_name=''): return input_data def gds_parse_string(self, input_data, node=None, input_name=''): @@ -193,11 +223,11 @@ def gds_validate_string(self, input_data, node=None, input_name=''): else: return input_data def gds_format_base64(self, input_data, input_name=''): - return base64.b64encode(input_data) + return base64.b64encode(input_data).decode('ascii') def gds_validate_base64(self, input_data, node=None, input_name=''): return input_data def gds_format_integer(self, input_data, input_name=''): - return '%d' % input_data + return '%d' % int(input_data) def gds_parse_integer(self, input_data, node=None, input_name=''): try: ival = int(input_data) @@ -211,6 +241,8 @@ def gds_validate_integer(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires integer value') return value def gds_format_integer_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_integer_list( self, input_data, node=None, input_name=''): @@ -219,10 +251,10 @@ def gds_validate_integer_list( try: int(value) except (TypeError, ValueError): - raise_parse_error(node, 'Requires sequence of integer valuess') + raise_parse_error(node, 'Requires sequence of integer values') return values def gds_format_float(self, input_data, input_name=''): - return ('%.15f' % input_data).rstrip('0') + return ('%.15f' % float(input_data)).rstrip('0') def gds_parse_float(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -236,6 +268,8 @@ def gds_validate_float(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires float value') return value def gds_format_float_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_float_list( self, input_data, node=None, input_name=''): @@ -247,7 +281,12 @@ def gds_validate_float_list( raise_parse_error(node, 'Requires sequence of float values') return values def gds_format_decimal(self, input_data, input_name=''): - return ('%s' % input_data).rstrip('0') + return_value = '%s' % input_data + if '.' in return_value: + return_value = return_value.rstrip('0') + if return_value.endswith('.'): + return_value = return_value.rstrip('.') + return return_value def gds_parse_decimal(self, input_data, node=None, input_name=''): try: decimal_value = decimal_.Decimal(input_data) @@ -261,7 +300,9 @@ def gds_validate_decimal(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires decimal value') return value def gds_format_decimal_list(self, input_data, input_name=''): - return '%s' % ' '.join(input_data) + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] + return ' '.join([self.gds_format_decimal(item) for item in input_data]) def gds_validate_decimal_list( self, input_data, node=None, input_name=''): values = input_data.split() @@ -272,7 +313,7 @@ def gds_validate_decimal_list( raise_parse_error(node, 'Requires sequence of decimal values') return values def gds_format_double(self, input_data, input_name=''): - return '%e' % input_data + return '%s' % input_data def gds_parse_double(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -286,6 +327,8 @@ def gds_validate_double(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires double or float value') return value def gds_format_double_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_double_list( self, input_data, node=None, input_name=''): @@ -315,11 +358,14 @@ def gds_validate_boolean(self, input_data, node=None, input_name=''): '(one of True, 1, False, 0)') return input_data def gds_format_boolean_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_boolean_list( self, input_data, node=None, input_name=''): values = input_data.split() for value in values: + value = self.gds_parse_boolean(value, node, input_name) if value not in (True, 1, False, 0, ): raise_parse_error( node, @@ -766,7 +812,10 @@ def find_attr_value_(attr_name, node): value = attrs.get(attr_name) elif len(attr_parts) == 2: prefix, name = attr_parts - namespace = node.nsmap.get(prefix) + if prefix == 'xml': + namespace = 'http://www.w3.org/XML/1998/namespace' + else: + namespace = node.nsmap.get(prefix) if namespace is not None: value = attrs.get('{%s}%s' % (namespace, name, )) return value @@ -847,7 +896,7 @@ def exportSimple(self, outfile, level, name): self.name, base64.b64encode(self.value), self.name)) - def to_etree(self, element): + def to_etree(self, element, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.category == MixedContainer.CategoryText: # Prevent exporting empty content as empty lines. if self.value.strip(): @@ -867,7 +916,7 @@ def to_etree(self, element): subelement.text = self.to_etree_simple() else: # category == MixedContainer.CategoryComplex self.value.to_etree(element) - def to_etree_simple(self): + def to_etree_simple(self, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.content_type == MixedContainer.TypeString: text = self.value elif (self.content_type == MixedContainer.TypeInteger or @@ -982,7 +1031,7 @@ def get_Address(self): return self.Address def set_Address(self, Address): self.Address = Address - def hasContent_(self): + def _hasContent(self): if ( self.Request is not None or self.Address is not None @@ -1005,17 +1054,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressValidationRequest') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressValidationRequest') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressValidationRequest', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressValidationRequest', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AddressValidationRequest'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AddressValidationRequest'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AddressValidationRequest', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AddressValidationRequest', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1032,14 +1081,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Request': obj_ = RequestType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1102,7 +1151,7 @@ def get_PostalCode(self): return self.PostalCode def set_PostalCode(self, PostalCode): self.PostalCode = PostalCode - def hasContent_(self): + def _hasContent(self): if ( self.City is not None or self.StateProvinceCode is not None or @@ -1127,17 +1176,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AddressType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AddressType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AddressType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AddressType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1164,14 +1213,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'City': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'City') @@ -1236,7 +1285,7 @@ def get_RequestAction(self): return self.RequestAction def set_RequestAction(self, RequestAction): self.RequestAction = RequestAction - def hasContent_(self): + def _hasContent(self): if ( self.TransactionReference is not None or self.RequestAction is not None @@ -1259,17 +1308,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RequestType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RequestType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RequestType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RequestType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1287,14 +1336,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'TransactionReference': obj_ = TransactionReferenceType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1340,7 +1389,7 @@ def get_CustomerContext(self): return self.CustomerContext def set_CustomerContext(self, CustomerContext): self.CustomerContext = CustomerContext - def hasContent_(self): + def _hasContent(self): if ( self.CustomerContext is not None ): @@ -1362,17 +1411,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='T showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionReferenceType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionReferenceType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionReferenceType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionReferenceType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TransactionReferenceType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TransactionReferenceType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TransactionReferenceType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TransactionReferenceType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1387,14 +1436,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CustomerContext': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CustomerContext') @@ -1475,7 +1524,8 @@ def parse(inFileName, silence=False, print_warnings=True): return rootObj -def parseEtree(inFileName, silence=False, print_warnings=True): +def parseEtree(inFileName, silence=False, print_warnings=True, + mapping=None, reverse_mapping=None, nsmap=None): parser = None doc = parsexml_(inFileName, parser) gds_collector = GdsCollector_() @@ -1486,10 +1536,15 @@ def parseEtree(inFileName, silence=False, print_warnings=True): rootClass = AddressValidationRequest rootObj = rootClass.factory() rootObj.build(rootNode, gds_collector_=gds_collector) + if mapping is None: + mapping = {} + if reverse_mapping is None: + reverse_mapping = {} + rootElement = rootObj.to_etree( + None, name_=rootTag, mapping_=mapping, + reverse_mapping_=reverse_mapping, nsmap_=nsmap) + reverse_node_mapping = rootObj.gds_reverse_node_mapping(mapping) # Enable Python to collect the space used by the DOM. - mapping = {} - rootElement = rootObj.to_etree(None, name_=rootTag, mapping_=mapping) - reverse_mapping = rootObj.gds_reverse_node_mapping(mapping) if not SaveElementTreeNode: doc = None rootNode = None @@ -1506,7 +1561,7 @@ def parseEtree(inFileName, silence=False, print_warnings=True): len(gds_collector.get_messages()), )) gds_collector.write_messages(sys.stderr) sys.stderr.write(separator) - return rootObj, rootElement, mapping, reverse_mapping + return rootObj, rootElement, mapping, reverse_node_mapping def parseString(inString, silence=False, print_warnings=True): @@ -1590,6 +1645,12 @@ def main(): RenameMappings_ = { } +# +# Mapping of namespaces to types defined in them +# and the file in which each is defined. +# simpleTypes are marked "ST" and complexTypes "CT". +NamespaceToDefMappings_ = {} + __all__ = [ "AddressType", "AddressValidationRequest", diff --git a/schemas/ups/ups_lib/av_response.py b/schemas/ups/ups_lib/av_response.py index 2038d4eb17..4ab30ac3d1 100644 --- a/schemas/ups/ups_lib/av_response.py +++ b/schemas/ups/ups_lib/av_response.py @@ -2,34 +2,35 @@ # -*- coding: utf-8 -*- # -# Generated Sat Mar 7 09:04:11 2020 by generateDS.py version 2.35.15. -# Python 3.8.1 (v3.8.1:1b293b6006, Dec 18 2019, 14:08:53) [Clang 6.0 (clang-600.0.57)] +# Generated Wed Nov 10 10:00:57 2021 by generateDS.py version 2.40.5. +# Python 3.8.6 (v3.8.6:db455296be, Sep 23 2020, 13:31:39) [Clang 6.0 (clang-600.0.57)] # # Command line options: # ('--no-namespace-defs', '') -# ('-o', './python/av_response.py') +# ('-o', './ups_lib/av_response.py') # # Command line arguments: # ./schemas/AVResponse.xsd # # Command line: -# /Users/danielkobina/Documents/Open/.env/bin/generateDS --no-namespace-defs -o "./python/av_response.py" ./schemas/AVResponse.xsd +# /Users/danielkobina/Workspace/project/purplship/.venv/purplship/bin/generateDS --no-namespace-defs -o "./ups_lib/av_response.py" ./schemas/AVResponse.xsd # # Current working directory (os.getcwd()): -# 2020-03 +# ups # +import sys +try: + ModulenotfoundExp_ = ModuleNotFoundError +except NameError: + ModulenotfoundExp_ = ImportError from six.moves import zip_longest import os -import sys import re as re_ import base64 import datetime as datetime_ import decimal as decimal_ -try: - from lxml import etree as etree_ -except ImportError: - from xml.etree import ElementTree as etree_ +from lxml import etree as etree_ Validate_simpletypes_ = True @@ -92,7 +93,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # Additionally, the generatedsnamespaces module can contain a python # dictionary named GenerateDSNamespaceTypePrefixes that associates element # types with the namespace prefixes that are to be added to the -# "xsi:type" attribute value. See the exportAttributes method of +# "xsi:type" attribute value. See the _exportAttributes method of # any generated element type and the generation of "xsi:type" for an # example of the use of this table. # An example table: @@ -107,11 +108,11 @@ def parsexmlstring_(instring, parser=None, **kwargs): try: from generatedsnamespaces import GenerateDSNamespaceDefs as GenerateDSNamespaceDefs_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceDefs_ = {} try: from generatedsnamespaces import GenerateDSNamespaceTypePrefixes as GenerateDSNamespaceTypePrefixes_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceTypePrefixes_ = {} # @@ -122,7 +123,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # try: from generatedscollector import GdsCollector as GdsCollector_ -except ImportError: +except ModulenotfoundExp_ : class GdsCollector_(object): @@ -156,7 +157,7 @@ def write_messages(self, outstream): try: from enum import Enum -except ImportError: +except ModulenotfoundExp_ : Enum = object # @@ -168,9 +169,14 @@ def write_messages(self, outstream): try: from generatedssuper import GeneratedsSuper -except ImportError as exp: +except ModulenotfoundExp_ as exp: + try: + from generatedssupersuper import GeneratedsSuperSuper + except ModulenotfoundExp_ as exp: + class GeneratedsSuperSuper(object): + pass - class GeneratedsSuper(object): + class GeneratedsSuper(GeneratedsSuperSuper): __hash__ = object.__hash__ tzoff_pattern = re_.compile(r'(\+|-)((0\d|1[0-3]):[0-5]\d|14:00)$') class _FixedOffsetTZ(datetime_.tzinfo): @@ -183,6 +189,30 @@ def tzname(self, dt): return self.__name def dst(self, dt): return None + def __str__(self): + settings = { + 'str_pretty_print': True, + 'str_indent_level': 0, + 'str_namespaceprefix': '', + 'str_name': None, + 'str_namespacedefs': '', + } + for n in settings: + if hasattr(self, n): + setattr(settings[n], self[n]) + from io import StringIO + output = StringIO() + self.export( + output, + settings['str_indent_level'], + pretty_print=settings['str_pretty_print'], + namespaceprefix_=settings['str_namespaceprefix'], + name_=settings['str_name'], + namespacedef_=settings['str_namespacedefs'] + ) + strval = output.getvalue() + output.close() + return strval def gds_format_string(self, input_data, input_name=''): return input_data def gds_parse_string(self, input_data, node=None, input_name=''): @@ -193,11 +223,11 @@ def gds_validate_string(self, input_data, node=None, input_name=''): else: return input_data def gds_format_base64(self, input_data, input_name=''): - return base64.b64encode(input_data) + return base64.b64encode(input_data).decode('ascii') def gds_validate_base64(self, input_data, node=None, input_name=''): return input_data def gds_format_integer(self, input_data, input_name=''): - return '%d' % input_data + return '%d' % int(input_data) def gds_parse_integer(self, input_data, node=None, input_name=''): try: ival = int(input_data) @@ -211,6 +241,8 @@ def gds_validate_integer(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires integer value') return value def gds_format_integer_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_integer_list( self, input_data, node=None, input_name=''): @@ -219,10 +251,10 @@ def gds_validate_integer_list( try: int(value) except (TypeError, ValueError): - raise_parse_error(node, 'Requires sequence of integer valuess') + raise_parse_error(node, 'Requires sequence of integer values') return values def gds_format_float(self, input_data, input_name=''): - return ('%.15f' % input_data).rstrip('0') + return ('%.15f' % float(input_data)).rstrip('0') def gds_parse_float(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -236,6 +268,8 @@ def gds_validate_float(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires float value') return value def gds_format_float_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_float_list( self, input_data, node=None, input_name=''): @@ -247,7 +281,12 @@ def gds_validate_float_list( raise_parse_error(node, 'Requires sequence of float values') return values def gds_format_decimal(self, input_data, input_name=''): - return ('%s' % input_data).rstrip('0') + return_value = '%s' % input_data + if '.' in return_value: + return_value = return_value.rstrip('0') + if return_value.endswith('.'): + return_value = return_value.rstrip('.') + return return_value def gds_parse_decimal(self, input_data, node=None, input_name=''): try: decimal_value = decimal_.Decimal(input_data) @@ -261,7 +300,9 @@ def gds_validate_decimal(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires decimal value') return value def gds_format_decimal_list(self, input_data, input_name=''): - return '%s' % ' '.join(input_data) + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] + return ' '.join([self.gds_format_decimal(item) for item in input_data]) def gds_validate_decimal_list( self, input_data, node=None, input_name=''): values = input_data.split() @@ -272,7 +313,7 @@ def gds_validate_decimal_list( raise_parse_error(node, 'Requires sequence of decimal values') return values def gds_format_double(self, input_data, input_name=''): - return '%e' % input_data + return '%s' % input_data def gds_parse_double(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -286,6 +327,8 @@ def gds_validate_double(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires double or float value') return value def gds_format_double_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_double_list( self, input_data, node=None, input_name=''): @@ -315,11 +358,14 @@ def gds_validate_boolean(self, input_data, node=None, input_name=''): '(one of True, 1, False, 0)') return input_data def gds_format_boolean_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_boolean_list( self, input_data, node=None, input_name=''): values = input_data.split() for value in values: + value = self.gds_parse_boolean(value, node, input_name) if value not in (True, 1, False, 0, ): raise_parse_error( node, @@ -766,7 +812,10 @@ def find_attr_value_(attr_name, node): value = attrs.get(attr_name) elif len(attr_parts) == 2: prefix, name = attr_parts - namespace = node.nsmap.get(prefix) + if prefix == 'xml': + namespace = 'http://www.w3.org/XML/1998/namespace' + else: + namespace = node.nsmap.get(prefix) if namespace is not None: value = attrs.get('{%s}%s' % (namespace, name, )) return value @@ -847,7 +896,7 @@ def exportSimple(self, outfile, level, name): self.name, base64.b64encode(self.value), self.name)) - def to_etree(self, element): + def to_etree(self, element, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.category == MixedContainer.CategoryText: # Prevent exporting empty content as empty lines. if self.value.strip(): @@ -867,7 +916,7 @@ def to_etree(self, element): subelement.text = self.to_etree_simple() else: # category == MixedContainer.CategoryComplex self.value.to_etree(element) - def to_etree_simple(self): + def to_etree_simple(self, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.content_type == MixedContainer.TypeString: text = self.value elif (self.content_type == MixedContainer.TypeInteger or @@ -991,7 +1040,7 @@ def insert_AddressValidationResult_at(self, index, value): self.AddressValidationResult.insert(index, value) def replace_AddressValidationResult_at(self, index, value): self.AddressValidationResult[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Response is not None or self.AddressValidationResult @@ -1014,17 +1063,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressValidationResponse') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressValidationResponse') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressValidationResponse', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressValidationResponse', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AddressValidationResponse'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AddressValidationResponse'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AddressValidationResponse', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AddressValidationResponse', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1041,14 +1090,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Response': obj_ = Response.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1117,7 +1166,7 @@ def get_PostalCodeHighEnd(self): return self.PostalCodeHighEnd def set_PostalCodeHighEnd(self, PostalCodeHighEnd): self.PostalCodeHighEnd = PostalCodeHighEnd - def hasContent_(self): + def _hasContent(self): if ( self.Rank is not None or self.Quality is not None or @@ -1143,17 +1192,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressValidationResultType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressValidationResultType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressValidationResultType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressValidationResultType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AddressValidationResultType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AddressValidationResultType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AddressValidationResultType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AddressValidationResultType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1183,14 +1232,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Rank': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Rank') @@ -1260,7 +1309,7 @@ def get_StateProvinceCode(self): return self.StateProvinceCode def set_StateProvinceCode(self, StateProvinceCode): self.StateProvinceCode = StateProvinceCode - def hasContent_(self): + def _hasContent(self): if ( self.City is not None or self.StateProvinceCode is not None @@ -1283,17 +1332,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AddressType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AddressType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AddressType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AddressType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1312,14 +1361,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'City': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'City') @@ -1393,7 +1442,7 @@ def insert_Error_at(self, index, value): self.Error.insert(index, value) def replace_Error_at(self, index, value): self.Error[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.TransactionReference is not None or self.ResponseStatusCode is not None or @@ -1418,17 +1467,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='Response') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='Response') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='Response', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='Response', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='Response'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='Response'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='Response', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='Response', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1453,14 +1502,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'TransactionReference': obj_ = TransactionReference.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1517,7 +1566,7 @@ def get_CustomerContext(self): return self.CustomerContext def set_CustomerContext(self, CustomerContext): self.CustomerContext = CustomerContext - def hasContent_(self): + def _hasContent(self): if ( self.CustomerContext is not None ): @@ -1539,17 +1588,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='T showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionReference') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionReference') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionReference', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionReference', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TransactionReference'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TransactionReference'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TransactionReference', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TransactionReference', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1564,14 +1613,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CustomerContext': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CustomerContext') @@ -1660,7 +1709,7 @@ def insert_ErrorDigest_at(self, index, value): self.ErrorDigest.insert(index, value) def replace_ErrorDigest_at(self, index, value): self.ErrorDigest[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.ErrorSeverity is not None or self.ErrorCode is not None or @@ -1687,17 +1736,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='E showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='Error') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='Error') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='Error', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='Error', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='Error'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='Error'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='Error', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='Error', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1731,14 +1780,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ErrorSeverity': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ErrorSeverity') @@ -1814,7 +1863,7 @@ def get_ErrorLocationAttributeName(self): return self.ErrorLocationAttributeName def set_ErrorLocationAttributeName(self, ErrorLocationAttributeName): self.ErrorLocationAttributeName = ErrorLocationAttributeName - def hasContent_(self): + def _hasContent(self): if ( self.ErrorLocationElementName is not None or self.ErrorLocationAttributeName is not None @@ -1837,17 +1886,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='E showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ErrorLocation') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ErrorLocation') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ErrorLocation', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ErrorLocation', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ErrorLocation'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ErrorLocation'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ErrorLocation', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ErrorLocation', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1866,14 +1915,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ErrorLocationElementName': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ErrorLocationElementName') @@ -1960,7 +2009,8 @@ def parse(inFileName, silence=False, print_warnings=True): return rootObj -def parseEtree(inFileName, silence=False, print_warnings=True): +def parseEtree(inFileName, silence=False, print_warnings=True, + mapping=None, reverse_mapping=None, nsmap=None): parser = None doc = parsexml_(inFileName, parser) gds_collector = GdsCollector_() @@ -1971,10 +2021,15 @@ def parseEtree(inFileName, silence=False, print_warnings=True): rootClass = AddressValidationResponse rootObj = rootClass.factory() rootObj.build(rootNode, gds_collector_=gds_collector) + if mapping is None: + mapping = {} + if reverse_mapping is None: + reverse_mapping = {} + rootElement = rootObj.to_etree( + None, name_=rootTag, mapping_=mapping, + reverse_mapping_=reverse_mapping, nsmap_=nsmap) + reverse_node_mapping = rootObj.gds_reverse_node_mapping(mapping) # Enable Python to collect the space used by the DOM. - mapping = {} - rootElement = rootObj.to_etree(None, name_=rootTag, mapping_=mapping) - reverse_mapping = rootObj.gds_reverse_node_mapping(mapping) if not SaveElementTreeNode: doc = None rootNode = None @@ -1991,7 +2046,7 @@ def parseEtree(inFileName, silence=False, print_warnings=True): len(gds_collector.get_messages()), )) gds_collector.write_messages(sys.stderr) sys.stderr.write(separator) - return rootObj, rootElement, mapping, reverse_mapping + return rootObj, rootElement, mapping, reverse_node_mapping def parseString(inString, silence=False, print_warnings=True): @@ -2075,6 +2130,12 @@ def main(): RenameMappings_ = { } +# +# Mapping of namespaces to types defined in them +# and the file in which each is defined. +# simpleTypes are marked "ST" and complexTypes "CT". +NamespaceToDefMappings_ = {} + __all__ = [ "AddressType", "AddressValidationResponse", diff --git a/schemas/ups/ups_lib/common.py b/schemas/ups/ups_lib/common.py index a574251708..8eae084332 100644 --- a/schemas/ups/ups_lib/common.py +++ b/schemas/ups/ups_lib/common.py @@ -2,34 +2,35 @@ # -*- coding: utf-8 -*- # -# Generated Sat Mar 7 09:04:22 2020 by generateDS.py version 2.35.15. -# Python 3.8.1 (v3.8.1:1b293b6006, Dec 18 2019, 14:08:53) [Clang 6.0 (clang-600.0.57)] +# Generated Wed Nov 10 10:01:04 2021 by generateDS.py version 2.40.5. +# Python 3.8.6 (v3.8.6:db455296be, Sep 23 2020, 13:31:39) [Clang 6.0 (clang-600.0.57)] # # Command line options: # ('--no-namespace-defs', '') -# ('-o', './python/common.py') +# ('-o', './ups_lib/common.py') # # Command line arguments: # ./schemas/common.xsd # # Command line: -# /Users/danielkobina/Documents/Open/.env/bin/generateDS --no-namespace-defs -o "./python/common.py" ./schemas/common.xsd +# /Users/danielkobina/Workspace/project/purplship/.venv/purplship/bin/generateDS --no-namespace-defs -o "./ups_lib/common.py" ./schemas/common.xsd # # Current working directory (os.getcwd()): -# 2020-03 +# ups # +import sys +try: + ModulenotfoundExp_ = ModuleNotFoundError +except NameError: + ModulenotfoundExp_ = ImportError from six.moves import zip_longest import os -import sys import re as re_ import base64 import datetime as datetime_ import decimal as decimal_ -try: - from lxml import etree as etree_ -except ImportError: - from xml.etree import ElementTree as etree_ +from lxml import etree as etree_ Validate_simpletypes_ = True @@ -92,7 +93,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # Additionally, the generatedsnamespaces module can contain a python # dictionary named GenerateDSNamespaceTypePrefixes that associates element # types with the namespace prefixes that are to be added to the -# "xsi:type" attribute value. See the exportAttributes method of +# "xsi:type" attribute value. See the _exportAttributes method of # any generated element type and the generation of "xsi:type" for an # example of the use of this table. # An example table: @@ -107,11 +108,11 @@ def parsexmlstring_(instring, parser=None, **kwargs): try: from generatedsnamespaces import GenerateDSNamespaceDefs as GenerateDSNamespaceDefs_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceDefs_ = {} try: from generatedsnamespaces import GenerateDSNamespaceTypePrefixes as GenerateDSNamespaceTypePrefixes_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceTypePrefixes_ = {} # @@ -122,7 +123,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # try: from generatedscollector import GdsCollector as GdsCollector_ -except ImportError: +except ModulenotfoundExp_ : class GdsCollector_(object): @@ -156,7 +157,7 @@ def write_messages(self, outstream): try: from enum import Enum -except ImportError: +except ModulenotfoundExp_ : Enum = object # @@ -168,9 +169,14 @@ def write_messages(self, outstream): try: from generatedssuper import GeneratedsSuper -except ImportError as exp: +except ModulenotfoundExp_ as exp: + try: + from generatedssupersuper import GeneratedsSuperSuper + except ModulenotfoundExp_ as exp: + class GeneratedsSuperSuper(object): + pass - class GeneratedsSuper(object): + class GeneratedsSuper(GeneratedsSuperSuper): __hash__ = object.__hash__ tzoff_pattern = re_.compile(r'(\+|-)((0\d|1[0-3]):[0-5]\d|14:00)$') class _FixedOffsetTZ(datetime_.tzinfo): @@ -183,6 +189,30 @@ def tzname(self, dt): return self.__name def dst(self, dt): return None + def __str__(self): + settings = { + 'str_pretty_print': True, + 'str_indent_level': 0, + 'str_namespaceprefix': '', + 'str_name': None, + 'str_namespacedefs': '', + } + for n in settings: + if hasattr(self, n): + setattr(settings[n], self[n]) + from io import StringIO + output = StringIO() + self.export( + output, + settings['str_indent_level'], + pretty_print=settings['str_pretty_print'], + namespaceprefix_=settings['str_namespaceprefix'], + name_=settings['str_name'], + namespacedef_=settings['str_namespacedefs'] + ) + strval = output.getvalue() + output.close() + return strval def gds_format_string(self, input_data, input_name=''): return input_data def gds_parse_string(self, input_data, node=None, input_name=''): @@ -193,11 +223,11 @@ def gds_validate_string(self, input_data, node=None, input_name=''): else: return input_data def gds_format_base64(self, input_data, input_name=''): - return base64.b64encode(input_data) + return base64.b64encode(input_data).decode('ascii') def gds_validate_base64(self, input_data, node=None, input_name=''): return input_data def gds_format_integer(self, input_data, input_name=''): - return '%d' % input_data + return '%d' % int(input_data) def gds_parse_integer(self, input_data, node=None, input_name=''): try: ival = int(input_data) @@ -211,6 +241,8 @@ def gds_validate_integer(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires integer value') return value def gds_format_integer_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_integer_list( self, input_data, node=None, input_name=''): @@ -219,10 +251,10 @@ def gds_validate_integer_list( try: int(value) except (TypeError, ValueError): - raise_parse_error(node, 'Requires sequence of integer valuess') + raise_parse_error(node, 'Requires sequence of integer values') return values def gds_format_float(self, input_data, input_name=''): - return ('%.15f' % input_data).rstrip('0') + return ('%.15f' % float(input_data)).rstrip('0') def gds_parse_float(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -236,6 +268,8 @@ def gds_validate_float(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires float value') return value def gds_format_float_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_float_list( self, input_data, node=None, input_name=''): @@ -247,7 +281,12 @@ def gds_validate_float_list( raise_parse_error(node, 'Requires sequence of float values') return values def gds_format_decimal(self, input_data, input_name=''): - return ('%s' % input_data).rstrip('0') + return_value = '%s' % input_data + if '.' in return_value: + return_value = return_value.rstrip('0') + if return_value.endswith('.'): + return_value = return_value.rstrip('.') + return return_value def gds_parse_decimal(self, input_data, node=None, input_name=''): try: decimal_value = decimal_.Decimal(input_data) @@ -261,7 +300,9 @@ def gds_validate_decimal(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires decimal value') return value def gds_format_decimal_list(self, input_data, input_name=''): - return '%s' % ' '.join(input_data) + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] + return ' '.join([self.gds_format_decimal(item) for item in input_data]) def gds_validate_decimal_list( self, input_data, node=None, input_name=''): values = input_data.split() @@ -272,7 +313,7 @@ def gds_validate_decimal_list( raise_parse_error(node, 'Requires sequence of decimal values') return values def gds_format_double(self, input_data, input_name=''): - return '%e' % input_data + return '%s' % input_data def gds_parse_double(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -286,6 +327,8 @@ def gds_validate_double(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires double or float value') return value def gds_format_double_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_double_list( self, input_data, node=None, input_name=''): @@ -315,11 +358,14 @@ def gds_validate_boolean(self, input_data, node=None, input_name=''): '(one of True, 1, False, 0)') return input_data def gds_format_boolean_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_boolean_list( self, input_data, node=None, input_name=''): values = input_data.split() for value in values: + value = self.gds_parse_boolean(value, node, input_name) if value not in (True, 1, False, 0, ): raise_parse_error( node, @@ -766,7 +812,10 @@ def find_attr_value_(attr_name, node): value = attrs.get(attr_name) elif len(attr_parts) == 2: prefix, name = attr_parts - namespace = node.nsmap.get(prefix) + if prefix == 'xml': + namespace = 'http://www.w3.org/XML/1998/namespace' + else: + namespace = node.nsmap.get(prefix) if namespace is not None: value = attrs.get('{%s}%s' % (namespace, name, )) return value @@ -847,7 +896,7 @@ def exportSimple(self, outfile, level, name): self.name, base64.b64encode(self.value), self.name)) - def to_etree(self, element): + def to_etree(self, element, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.category == MixedContainer.CategoryText: # Prevent exporting empty content as empty lines. if self.value.strip(): @@ -867,7 +916,7 @@ def to_etree(self, element): subelement.text = self.to_etree_simple() else: # category == MixedContainer.CategoryComplex self.value.to_etree(element) - def to_etree_simple(self): + def to_etree_simple(self, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.content_type == MixedContainer.TypeString: text = self.value elif (self.content_type == MixedContainer.TypeInteger or @@ -985,7 +1034,7 @@ def insert_Property_at(self, index, value): self.Property.insert(index, value) def replace_Property_at(self, index, value): self.Property[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Property ): @@ -1007,17 +1056,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ClientInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ClientInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ClientInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ClientInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ClientInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ClientInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ClientInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ClientInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1031,14 +1080,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Property': obj_ = PropertyType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1065,7 +1114,7 @@ def __init__(self, RequestOption=None, SubVersion=None, TransactionReference=Non self.SubVersion = SubVersion self.SubVersion_nsprefix_ = None self.TransactionReference = TransactionReference - self.TransactionReference_nsprefix_ = None + self.TransactionReference_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1099,7 +1148,7 @@ def get_TransactionReference(self): return self.TransactionReference def set_TransactionReference(self, TransactionReference): self.TransactionReference = TransactionReference - def hasContent_(self): + def _hasContent(self): if ( self.RequestOption or self.SubVersion is not None or @@ -1123,17 +1172,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RequestType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RequestType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RequestType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RequestType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1155,14 +1204,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'RequestOption': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'RequestOption') @@ -1220,7 +1269,7 @@ def get_TransactionIdentifier(self): return self.TransactionIdentifier def set_TransactionIdentifier(self, TransactionIdentifier): self.TransactionIdentifier = TransactionIdentifier - def hasContent_(self): + def _hasContent(self): if ( self.CustomerContext is not None or self.TransactionIdentifier is not None @@ -1243,17 +1292,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='T showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionReferenceType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionReferenceType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionReferenceType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionReferenceType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TransactionReferenceType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TransactionReferenceType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TransactionReferenceType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TransactionReferenceType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1272,14 +1321,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CustomerContext': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CustomerContext') @@ -1306,19 +1355,19 @@ def __init__(self, ResponseStatus=None, Alert=None, AlertDetail=None, Transactio self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.ResponseStatus = ResponseStatus - self.ResponseStatus_nsprefix_ = None + self.ResponseStatus_nsprefix_ = "common" if Alert is None: self.Alert = [] else: self.Alert = Alert - self.Alert_nsprefix_ = None + self.Alert_nsprefix_ = "common" if AlertDetail is None: self.AlertDetail = [] else: self.AlertDetail = AlertDetail - self.AlertDetail_nsprefix_ = None + self.AlertDetail_nsprefix_ = "common" self.TransactionReference = TransactionReference - self.TransactionReference_nsprefix_ = None + self.TransactionReference_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1362,7 +1411,7 @@ def get_TransactionReference(self): return self.TransactionReference def set_TransactionReference(self, TransactionReference): self.TransactionReference = TransactionReference - def hasContent_(self): + def _hasContent(self): if ( self.ResponseStatus is not None or self.Alert or @@ -1387,17 +1436,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ResponseType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ResponseType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ResponseType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ResponseType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1420,14 +1469,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ResponseStatus': obj_ = CodeDescriptionType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1488,7 +1537,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -1511,17 +1560,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeDescriptionType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeDescriptionType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeDescriptionType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeDescriptionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CodeDescriptionType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CodeDescriptionType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CodeDescriptionType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CodeDescriptionType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1540,14 +1589,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -1578,7 +1627,7 @@ def __init__(self, Code=None, Description=None, ElementLevelInformation=None, gd self.Description = Description self.Description_nsprefix_ = None self.ElementLevelInformation = ElementLevelInformation - self.ElementLevelInformation_nsprefix_ = None + self.ElementLevelInformation_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1606,7 +1655,7 @@ def get_ElementLevelInformation(self): return self.ElementLevelInformation def set_ElementLevelInformation(self, ElementLevelInformation): self.ElementLevelInformation = ElementLevelInformation - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None or @@ -1630,17 +1679,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DetailType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DetailType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DetailType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DetailType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DetailType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DetailType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DetailType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DetailType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1662,14 +1711,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -1706,7 +1755,7 @@ def __init__(self, Level=None, ElementIdentifier=None, gds_collector_=None, **kw self.ElementIdentifier = [] else: self.ElementIdentifier = ElementIdentifier - self.ElementIdentifier_nsprefix_ = None + self.ElementIdentifier_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1736,7 +1785,7 @@ def insert_ElementIdentifier_at(self, index, value): self.ElementIdentifier.insert(index, value) def replace_ElementIdentifier_at(self, index, value): self.ElementIdentifier[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Level is not None or self.ElementIdentifier @@ -1759,17 +1808,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='E showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementLevelInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementLevelInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementLevelInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementLevelInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ElementLevelInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ElementLevelInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ElementLevelInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ElementLevelInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1787,14 +1836,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Level': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Level') @@ -1846,7 +1895,7 @@ def get_Value(self): return self.Value def set_Value(self, Value): self.Value = Value - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Value is not None @@ -1869,17 +1918,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='E showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementIdentifierType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementIdentifierType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementIdentifierType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementIdentifierType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ElementIdentifierType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ElementIdentifierType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ElementIdentifierType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ElementIdentifierType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1898,14 +1947,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -1955,7 +2004,7 @@ def set_Key(self, Key): self.Key = Key def get_valueOf_(self): return self.valueOf_ def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_ - def hasContent_(self): + def _hasContent(self): if ( (1 if type(self.valueOf_) in [int,float] else self.valueOf_) ): @@ -1977,19 +2026,19 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PropertyType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PropertyType') + if self._hasContent(): outfile.write('>') outfile.write(self.convert_unicode(self.valueOf_)) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PropertyType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PropertyType', pretty_print=pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PropertyType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PropertyType'): if self.Key is not None and 'Key' not in already_processed: already_processed.add('Key') outfile.write(' Key=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.Key), input_name='Key')), )) - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PropertyType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PropertyType', fromsubclass_=False, pretty_print=True): pass def build(self, node, gds_collector_=None): self.gds_collector_ = gds_collector_ @@ -1997,18 +2046,18 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) self.valueOf_ = get_all_text_(node) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('Key', node) if value is not None and 'Key' not in already_processed: already_processed.add('Key') self.Key = value - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): pass # end class PropertyType @@ -2087,7 +2136,8 @@ def parse(inFileName, silence=False, print_warnings=True): return rootObj -def parseEtree(inFileName, silence=False, print_warnings=True): +def parseEtree(inFileName, silence=False, print_warnings=True, + mapping=None, reverse_mapping=None, nsmap=None): parser = None doc = parsexml_(inFileName, parser) gds_collector = GdsCollector_() @@ -2098,10 +2148,15 @@ def parseEtree(inFileName, silence=False, print_warnings=True): rootClass = RequestType rootObj = rootClass.factory() rootObj.build(rootNode, gds_collector_=gds_collector) + if mapping is None: + mapping = {} + if reverse_mapping is None: + reverse_mapping = {} + rootElement = rootObj.to_etree( + None, name_=rootTag, mapping_=mapping, + reverse_mapping_=reverse_mapping, nsmap_=nsmap) + reverse_node_mapping = rootObj.gds_reverse_node_mapping(mapping) # Enable Python to collect the space used by the DOM. - mapping = {} - rootElement = rootObj.to_etree(None, name_=rootTag, mapping_=mapping) - reverse_mapping = rootObj.gds_reverse_node_mapping(mapping) if not SaveElementTreeNode: doc = None rootNode = None @@ -2118,7 +2173,7 @@ def parseEtree(inFileName, silence=False, print_warnings=True): len(gds_collector.get_messages()), )) gds_collector.write_messages(sys.stderr) sys.stderr.write(separator) - return rootObj, rootElement, mapping, reverse_mapping + return rootObj, rootElement, mapping, reverse_node_mapping def parseString(inString, silence=False, print_warnings=True): @@ -2202,6 +2257,35 @@ def main(): RenameMappings_ = { } +# +# Mapping of namespaces to types defined in them +# and the file in which each is defined. +# simpleTypes are marked "ST" and complexTypes "CT". +NamespaceToDefMappings_ = {'http://www.ups.com/XMLSchema/XOLTWS/Common/v1.0': [('ClientInformationType', + './schemas/common.xsd', + 'CT'), + ('RequestType', + './schemas/common.xsd', + 'CT'), + ('TransactionReferenceType', + './schemas/common.xsd', + 'CT'), + ('ResponseType', + './schemas/common.xsd', + 'CT'), + ('CodeDescriptionType', + './schemas/common.xsd', + 'CT'), + ('DetailType', + './schemas/common.xsd', + 'CT'), + ('ElementLevelInformationType', + './schemas/common.xsd', + 'CT'), + ('ElementIdentifierType', + './schemas/common.xsd', + 'CT')]} + __all__ = [ "ClientInformationType", "CodeDescriptionType", diff --git a/schemas/ups/ups_lib/dangerous_goods_utility.py b/schemas/ups/ups_lib/dangerous_goods_utility.py index e836dcc127..c544eb4a28 100644 --- a/schemas/ups/ups_lib/dangerous_goods_utility.py +++ b/schemas/ups/ups_lib/dangerous_goods_utility.py @@ -2,34 +2,35 @@ # -*- coding: utf-8 -*- # -# Generated Sat Mar 7 09:04:12 2020 by generateDS.py version 2.35.15. -# Python 3.8.1 (v3.8.1:1b293b6006, Dec 18 2019, 14:08:53) [Clang 6.0 (clang-600.0.57)] +# Generated Wed Nov 10 10:00:58 2021 by generateDS.py version 2.40.5. +# Python 3.8.6 (v3.8.6:db455296be, Sep 23 2020, 13:31:39) [Clang 6.0 (clang-600.0.57)] # # Command line options: # ('--no-namespace-defs', '') -# ('-o', './python/dangerous_goods_utility.py') +# ('-o', './ups_lib/dangerous_goods_utility.py') # # Command line arguments: # ./schemas/DangerousGoodsUtility.xsd # # Command line: -# /Users/danielkobina/Documents/Open/.env/bin/generateDS --no-namespace-defs -o "./python/dangerous_goods_utility.py" ./schemas/DangerousGoodsUtility.xsd +# /Users/danielkobina/Workspace/project/purplship/.venv/purplship/bin/generateDS --no-namespace-defs -o "./ups_lib/dangerous_goods_utility.py" ./schemas/DangerousGoodsUtility.xsd # # Current working directory (os.getcwd()): -# 2020-03 +# ups # +import sys +try: + ModulenotfoundExp_ = ModuleNotFoundError +except NameError: + ModulenotfoundExp_ = ImportError from six.moves import zip_longest import os -import sys import re as re_ import base64 import datetime as datetime_ import decimal as decimal_ -try: - from lxml import etree as etree_ -except ImportError: - from xml.etree import ElementTree as etree_ +from lxml import etree as etree_ Validate_simpletypes_ = True @@ -92,7 +93,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # Additionally, the generatedsnamespaces module can contain a python # dictionary named GenerateDSNamespaceTypePrefixes that associates element # types with the namespace prefixes that are to be added to the -# "xsi:type" attribute value. See the exportAttributes method of +# "xsi:type" attribute value. See the _exportAttributes method of # any generated element type and the generation of "xsi:type" for an # example of the use of this table. # An example table: @@ -107,11 +108,11 @@ def parsexmlstring_(instring, parser=None, **kwargs): try: from generatedsnamespaces import GenerateDSNamespaceDefs as GenerateDSNamespaceDefs_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceDefs_ = {} try: from generatedsnamespaces import GenerateDSNamespaceTypePrefixes as GenerateDSNamespaceTypePrefixes_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceTypePrefixes_ = {} # @@ -122,7 +123,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # try: from generatedscollector import GdsCollector as GdsCollector_ -except ImportError: +except ModulenotfoundExp_ : class GdsCollector_(object): @@ -156,7 +157,7 @@ def write_messages(self, outstream): try: from enum import Enum -except ImportError: +except ModulenotfoundExp_ : Enum = object # @@ -168,9 +169,14 @@ def write_messages(self, outstream): try: from generatedssuper import GeneratedsSuper -except ImportError as exp: +except ModulenotfoundExp_ as exp: + try: + from generatedssupersuper import GeneratedsSuperSuper + except ModulenotfoundExp_ as exp: + class GeneratedsSuperSuper(object): + pass - class GeneratedsSuper(object): + class GeneratedsSuper(GeneratedsSuperSuper): __hash__ = object.__hash__ tzoff_pattern = re_.compile(r'(\+|-)((0\d|1[0-3]):[0-5]\d|14:00)$') class _FixedOffsetTZ(datetime_.tzinfo): @@ -183,6 +189,30 @@ def tzname(self, dt): return self.__name def dst(self, dt): return None + def __str__(self): + settings = { + 'str_pretty_print': True, + 'str_indent_level': 0, + 'str_namespaceprefix': '', + 'str_name': None, + 'str_namespacedefs': '', + } + for n in settings: + if hasattr(self, n): + setattr(settings[n], self[n]) + from io import StringIO + output = StringIO() + self.export( + output, + settings['str_indent_level'], + pretty_print=settings['str_pretty_print'], + namespaceprefix_=settings['str_namespaceprefix'], + name_=settings['str_name'], + namespacedef_=settings['str_namespacedefs'] + ) + strval = output.getvalue() + output.close() + return strval def gds_format_string(self, input_data, input_name=''): return input_data def gds_parse_string(self, input_data, node=None, input_name=''): @@ -193,11 +223,11 @@ def gds_validate_string(self, input_data, node=None, input_name=''): else: return input_data def gds_format_base64(self, input_data, input_name=''): - return base64.b64encode(input_data) + return base64.b64encode(input_data).decode('ascii') def gds_validate_base64(self, input_data, node=None, input_name=''): return input_data def gds_format_integer(self, input_data, input_name=''): - return '%d' % input_data + return '%d' % int(input_data) def gds_parse_integer(self, input_data, node=None, input_name=''): try: ival = int(input_data) @@ -211,6 +241,8 @@ def gds_validate_integer(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires integer value') return value def gds_format_integer_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_integer_list( self, input_data, node=None, input_name=''): @@ -219,10 +251,10 @@ def gds_validate_integer_list( try: int(value) except (TypeError, ValueError): - raise_parse_error(node, 'Requires sequence of integer valuess') + raise_parse_error(node, 'Requires sequence of integer values') return values def gds_format_float(self, input_data, input_name=''): - return ('%.15f' % input_data).rstrip('0') + return ('%.15f' % float(input_data)).rstrip('0') def gds_parse_float(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -236,6 +268,8 @@ def gds_validate_float(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires float value') return value def gds_format_float_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_float_list( self, input_data, node=None, input_name=''): @@ -247,7 +281,12 @@ def gds_validate_float_list( raise_parse_error(node, 'Requires sequence of float values') return values def gds_format_decimal(self, input_data, input_name=''): - return ('%s' % input_data).rstrip('0') + return_value = '%s' % input_data + if '.' in return_value: + return_value = return_value.rstrip('0') + if return_value.endswith('.'): + return_value = return_value.rstrip('.') + return return_value def gds_parse_decimal(self, input_data, node=None, input_name=''): try: decimal_value = decimal_.Decimal(input_data) @@ -261,7 +300,9 @@ def gds_validate_decimal(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires decimal value') return value def gds_format_decimal_list(self, input_data, input_name=''): - return '%s' % ' '.join(input_data) + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] + return ' '.join([self.gds_format_decimal(item) for item in input_data]) def gds_validate_decimal_list( self, input_data, node=None, input_name=''): values = input_data.split() @@ -272,7 +313,7 @@ def gds_validate_decimal_list( raise_parse_error(node, 'Requires sequence of decimal values') return values def gds_format_double(self, input_data, input_name=''): - return '%e' % input_data + return '%s' % input_data def gds_parse_double(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -286,6 +327,8 @@ def gds_validate_double(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires double or float value') return value def gds_format_double_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_double_list( self, input_data, node=None, input_name=''): @@ -315,11 +358,14 @@ def gds_validate_boolean(self, input_data, node=None, input_name=''): '(one of True, 1, False, 0)') return input_data def gds_format_boolean_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_boolean_list( self, input_data, node=None, input_name=''): values = input_data.split() for value in values: + value = self.gds_parse_boolean(value, node, input_name) if value not in (True, 1, False, 0, ): raise_parse_error( node, @@ -766,7 +812,10 @@ def find_attr_value_(attr_name, node): value = attrs.get(attr_name) elif len(attr_parts) == 2: prefix, name = attr_parts - namespace = node.nsmap.get(prefix) + if prefix == 'xml': + namespace = 'http://www.w3.org/XML/1998/namespace' + else: + namespace = node.nsmap.get(prefix) if namespace is not None: value = attrs.get('{%s}%s' % (namespace, name, )) return value @@ -847,7 +896,7 @@ def exportSimple(self, outfile, level, name): self.name, base64.b64encode(self.value), self.name)) - def to_etree(self, element): + def to_etree(self, element, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.category == MixedContainer.CategoryText: # Prevent exporting empty content as empty lines. if self.value.strip(): @@ -867,7 +916,7 @@ def to_etree(self, element): subelement.text = self.to_etree_simple() else: # category == MixedContainer.CategoryComplex self.value.to_etree(element) - def to_etree_simple(self): + def to_etree_simple(self, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.content_type == MixedContainer.TypeString: text = self.value elif (self.content_type == MixedContainer.TypeInteger or @@ -956,11 +1005,11 @@ def __init__(self, Request=None, OriginRecordTransactionTimestamp=None, Shipment self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Request = Request - self.Request_nsprefix_ = None + self.Request_nsprefix_ = "common" self.OriginRecordTransactionTimestamp = OriginRecordTransactionTimestamp self.OriginRecordTransactionTimestamp_nsprefix_ = None self.Shipment = Shipment - self.Shipment_nsprefix_ = None + self.Shipment_nsprefix_ = "dg" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -988,7 +1037,7 @@ def get_Shipment(self): return self.Shipment def set_Shipment(self, Shipment): self.Shipment = Shipment - def hasContent_(self): + def _hasContent(self): if ( self.Request is not None or self.OriginRecordTransactionTimestamp is not None or @@ -1012,17 +1061,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AcceptanceAuditPreCheckRequest') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AcceptanceAuditPreCheckRequest') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AcceptanceAuditPreCheckRequest', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AcceptanceAuditPreCheckRequest', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AcceptanceAuditPreCheckRequest'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AcceptanceAuditPreCheckRequest'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AcceptanceAuditPreCheckRequest', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AcceptanceAuditPreCheckRequest', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1043,14 +1092,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Request': obj_ = RequestType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1083,18 +1132,18 @@ def __init__(self, ShipperNumber=None, ShipFromAddress=None, ShipToAddress=None, self.ShipperNumber = ShipperNumber self.ShipperNumber_nsprefix_ = None self.ShipFromAddress = ShipFromAddress - self.ShipFromAddress_nsprefix_ = None + self.ShipFromAddress_nsprefix_ = "dg" self.ShipToAddress = ShipToAddress - self.ShipToAddress_nsprefix_ = None + self.ShipToAddress_nsprefix_ = "dg" self.Service = Service - self.Service_nsprefix_ = None + self.Service_nsprefix_ = "dg" self.RegulationSet = RegulationSet self.RegulationSet_nsprefix_ = None if Package is None: self.Package = [] else: self.Package = Package - self.Package_nsprefix_ = None + self.Package_nsprefix_ = "dg" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1140,7 +1189,7 @@ def insert_Package_at(self, index, value): self.Package.insert(index, value) def replace_Package_at(self, index, value): self.Package[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.ShipperNumber is not None or self.ShipFromAddress is not None or @@ -1167,17 +1216,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1208,14 +1257,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ShipperNumber': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ShipperNumber') @@ -1306,7 +1355,7 @@ def get_CountryCode(self): return self.CountryCode def set_CountryCode(self, CountryCode): self.CountryCode = CountryCode - def hasContent_(self): + def _hasContent(self): if ( self.AddressLine is not None or self.City is not None or @@ -1332,17 +1381,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AddressType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AddressType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AddressType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AddressType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1373,14 +1422,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AddressLine': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'AddressLine') @@ -1451,7 +1500,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -1474,17 +1523,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ServiceType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ServiceType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ServiceType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ServiceType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ServiceType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ServiceType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ServiceType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ServiceType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1503,14 +1552,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -1539,7 +1588,7 @@ def __init__(self, PackageIdentifier=None, PackageWeight=None, QValue=None, Over self.PackageIdentifier = PackageIdentifier self.PackageIdentifier_nsprefix_ = None self.PackageWeight = PackageWeight - self.PackageWeight_nsprefix_ = None + self.PackageWeight_nsprefix_ = "dg" self.QValue = QValue self.QValue_nsprefix_ = None self.OverPackedIndicator = OverPackedIndicator @@ -1554,7 +1603,7 @@ def __init__(self, PackageIdentifier=None, PackageWeight=None, QValue=None, Over self.ChemicalRecord = [] else: self.ChemicalRecord = ChemicalRecord - self.ChemicalRecord_nsprefix_ = None + self.ChemicalRecord_nsprefix_ = "dg" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1608,7 +1657,7 @@ def insert_ChemicalRecord_at(self, index, value): self.ChemicalRecord.insert(index, value) def replace_ChemicalRecord_at(self, index, value): self.ChemicalRecord[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.PackageIdentifier is not None or self.PackageWeight is not None or @@ -1637,17 +1686,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1688,14 +1737,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PackageIdentifier': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'PackageIdentifier') @@ -1758,7 +1807,7 @@ def __init__(self, Weight=None, UnitOfMeasurement=None, gds_collector_=None, **k self.Weight = Weight self.Weight_nsprefix_ = None self.UnitOfMeasurement = UnitOfMeasurement - self.UnitOfMeasurement_nsprefix_ = None + self.UnitOfMeasurement_nsprefix_ = "dg" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1782,7 +1831,7 @@ def get_UnitOfMeasurement(self): return self.UnitOfMeasurement def set_UnitOfMeasurement(self, UnitOfMeasurement): self.UnitOfMeasurement = UnitOfMeasurement - def hasContent_(self): + def _hasContent(self): if ( self.Weight is not None or self.UnitOfMeasurement is not None @@ -1805,17 +1854,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageWeightType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageWeightType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageWeightType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageWeightType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageWeightType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageWeightType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageWeightType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageWeightType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1833,14 +1882,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Weight': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Weight') @@ -1892,7 +1941,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -1915,17 +1964,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageWeightUOMType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageWeightUOMType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageWeightUOMType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageWeightUOMType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageWeightUOMType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageWeightUOMType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageWeightUOMType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageWeightUOMType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1944,14 +1993,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -2106,7 +2155,7 @@ def get_AllPackedInOneIndicator(self): return self.AllPackedInOneIndicator def set_AllPackedInOneIndicator(self, AllPackedInOneIndicator): self.AllPackedInOneIndicator = AllPackedInOneIndicator - def hasContent_(self): + def _hasContent(self): if ( self.ChemicalRecordIdentifier is not None or self.ReportableQuantity is not None or @@ -2146,17 +2195,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ChemicalRecordType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ChemicalRecordType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ChemicalRecordType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ChemicalRecordType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ChemicalRecordType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ChemicalRecordType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ChemicalRecordType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ChemicalRecordType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2243,14 +2292,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ChemicalRecordIdentifier': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ChemicalRecordIdentifier') @@ -2379,18 +2428,18 @@ def __init__(self, Response=None, ShipperNumber=None, Service=None, RegulationSe self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Response = Response - self.Response_nsprefix_ = None + self.Response_nsprefix_ = "common" self.ShipperNumber = ShipperNumber self.ShipperNumber_nsprefix_ = None self.Service = Service - self.Service_nsprefix_ = None + self.Service_nsprefix_ = "dg" self.RegulationSet = RegulationSet self.RegulationSet_nsprefix_ = None if PackageResults is None: self.PackageResults = [] else: self.PackageResults = PackageResults - self.PackageResults_nsprefix_ = None + self.PackageResults_nsprefix_ = "dg" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -2432,7 +2481,7 @@ def insert_PackageResults_at(self, index, value): self.PackageResults.insert(index, value) def replace_PackageResults_at(self, index, value): self.PackageResults[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Response is not None or self.ShipperNumber is not None or @@ -2458,17 +2507,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AcceptanceAuditPreCheckResponse') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AcceptanceAuditPreCheckResponse') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AcceptanceAuditPreCheckResponse', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AcceptanceAuditPreCheckResponse', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AcceptanceAuditPreCheckResponse'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AcceptanceAuditPreCheckResponse'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AcceptanceAuditPreCheckResponse', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AcceptanceAuditPreCheckResponse', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2496,14 +2545,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Response': obj_ = ResponseType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -2554,7 +2603,7 @@ def __init__(self, PackageIdentifier=None, AccessibleIndicator=None, EuropeBUInd self.ChemicalRecordResults = [] else: self.ChemicalRecordResults = ChemicalRecordResults - self.ChemicalRecordResults_nsprefix_ = None + self.ChemicalRecordResults_nsprefix_ = "dg" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -2592,7 +2641,7 @@ def insert_ChemicalRecordResults_at(self, index, value): self.ChemicalRecordResults.insert(index, value) def replace_ChemicalRecordResults_at(self, index, value): self.ChemicalRecordResults[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.PackageIdentifier is not None or self.AccessibleIndicator is not None or @@ -2617,17 +2666,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageResultsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageResultsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageResultsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageResultsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageResultsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageResultsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageResultsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageResultsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2653,14 +2702,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PackageIdentifier': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'PackageIdentifier') @@ -2742,7 +2791,7 @@ def get_ADRUnits(self): return self.ADRUnits def set_ADRUnits(self, ADRUnits): self.ADRUnits = ADRUnits - def hasContent_(self): + def _hasContent(self): if ( self.ChemicalRecordIdentifier is not None or self.ADRPoints is not None or @@ -2768,17 +2817,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ChemicalRecordResultsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ChemicalRecordResultsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ChemicalRecordResultsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ChemicalRecordResultsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ChemicalRecordResultsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ChemicalRecordResultsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ChemicalRecordResultsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ChemicalRecordResultsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2809,14 +2858,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ChemicalRecordIdentifier': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ChemicalRecordIdentifier') @@ -2861,7 +2910,7 @@ def __init__(self, Request=None, IDNumber=None, ProperShippingName=None, Shipper self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Request = Request - self.Request_nsprefix_ = None + self.Request_nsprefix_ = "common" self.IDNumber = IDNumber self.IDNumber_nsprefix_ = None self.ProperShippingName = ProperShippingName @@ -2899,7 +2948,7 @@ def get_ShipperNumber(self): return self.ShipperNumber def set_ShipperNumber(self, ShipperNumber): self.ShipperNumber = ShipperNumber - def hasContent_(self): + def _hasContent(self): if ( self.Request is not None or self.IDNumber is not None or @@ -2924,17 +2973,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ChemicalReferenceDataRequest') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ChemicalReferenceDataRequest') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ChemicalReferenceDataRequest', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ChemicalReferenceDataRequest', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ChemicalReferenceDataRequest'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ChemicalReferenceDataRequest'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ChemicalReferenceDataRequest', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ChemicalReferenceDataRequest', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2960,14 +3009,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Request': obj_ = RequestType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -3005,12 +3054,12 @@ def __init__(self, Response=None, ChemicalData=None, gds_collector_=None, **kwar self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Response = Response - self.Response_nsprefix_ = None + self.Response_nsprefix_ = "common" if ChemicalData is None: self.ChemicalData = [] else: self.ChemicalData = ChemicalData - self.ChemicalData_nsprefix_ = None + self.ChemicalData_nsprefix_ = "dg" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -3040,7 +3089,7 @@ def insert_ChemicalData_at(self, index, value): self.ChemicalData.insert(index, value) def replace_ChemicalData_at(self, index, value): self.ChemicalData[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Response is not None or self.ChemicalData @@ -3063,17 +3112,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ChemicalReferenceDataResponse') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ChemicalReferenceDataResponse') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ChemicalReferenceDataResponse', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ChemicalReferenceDataResponse', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ChemicalReferenceDataResponse'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ChemicalReferenceDataResponse'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ChemicalReferenceDataResponse', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ChemicalReferenceDataResponse', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3090,14 +3139,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Response': obj_ = ResponseType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -3122,14 +3171,14 @@ def __init__(self, ChemicalDetail=None, ProperShippingNameDetail=None, PackageQu self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.ChemicalDetail = ChemicalDetail - self.ChemicalDetail_nsprefix_ = None + self.ChemicalDetail_nsprefix_ = "dg" self.ProperShippingNameDetail = ProperShippingNameDetail - self.ProperShippingNameDetail_nsprefix_ = None + self.ProperShippingNameDetail_nsprefix_ = "dg" if PackageQuantityLimitDetail is None: self.PackageQuantityLimitDetail = [] else: self.PackageQuantityLimitDetail = PackageQuantityLimitDetail - self.PackageQuantityLimitDetail_nsprefix_ = None + self.PackageQuantityLimitDetail_nsprefix_ = "dg" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -3163,7 +3212,7 @@ def insert_PackageQuantityLimitDetail_at(self, index, value): self.PackageQuantityLimitDetail.insert(index, value) def replace_PackageQuantityLimitDetail_at(self, index, value): self.PackageQuantityLimitDetail[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.ChemicalDetail is not None or self.ProperShippingNameDetail is not None or @@ -3187,17 +3236,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ChemicalDataType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ChemicalDataType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ChemicalDataType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ChemicalDataType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ChemicalDataType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ChemicalDataType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ChemicalDataType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ChemicalDataType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3217,14 +3266,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ChemicalDetail': obj_ = ChemicalDetailType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -3358,7 +3407,7 @@ def get_CAToUSShipmentAllowedIndicator(self): return self.CAToUSShipmentAllowedIndicator def set_CAToUSShipmentAllowedIndicator(self, CAToUSShipmentAllowedIndicator): self.CAToUSShipmentAllowedIndicator = CAToUSShipmentAllowedIndicator - def hasContent_(self): + def _hasContent(self): if ( self.RegulationSet is not None or self.IDNumber is not None or @@ -3394,17 +3443,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ChemicalDetailType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ChemicalDetailType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ChemicalDetailType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ChemicalDetailType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ChemicalDetailType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ChemicalDetailType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ChemicalDetailType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ChemicalDetailType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3475,14 +3524,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'RegulationSet': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'RegulationSet') @@ -3616,7 +3665,7 @@ def insert_ProperShippingName_at(self, index, value): self.ProperShippingName.insert(index, value) def replace_ProperShippingName_at(self, index, value): self.ProperShippingName[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.ProperShippingName ): @@ -3638,17 +3687,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ProperShippingNameDetailType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ProperShippingNameDetailType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ProperShippingNameDetailType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ProperShippingNameDetailType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ProperShippingNameDetailType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ProperShippingNameDetailType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ProperShippingNameDetailType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ProperShippingNameDetailType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3663,14 +3712,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ProperShippingName': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ProperShippingName') @@ -3729,7 +3778,7 @@ def get_PackagingInstructionCode(self): return self.PackagingInstructionCode def set_PackagingInstructionCode(self, PackagingInstructionCode): self.PackagingInstructionCode = PackagingInstructionCode - def hasContent_(self): + def _hasContent(self): if ( self.PackageQuantityLimitTypeCode is not None or self.Quantity is not None or @@ -3754,17 +3803,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageQuantityLimitDetailType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageQuantityLimitDetailType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageQuantityLimitDetailType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageQuantityLimitDetailType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageQuantityLimitDetailType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageQuantityLimitDetailType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageQuantityLimitDetailType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageQuantityLimitDetailType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3791,14 +3840,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PackageQuantityLimitTypeCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'PackageQuantityLimitTypeCode') @@ -3866,7 +3915,7 @@ def insert_Property_at(self, index, value): self.Property.insert(index, value) def replace_Property_at(self, index, value): self.Property[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Property ): @@ -3888,17 +3937,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ClientInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ClientInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ClientInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ClientInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ClientInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ClientInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ClientInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ClientInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3912,14 +3961,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Property': obj_ = PropertyType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -3946,7 +3995,7 @@ def __init__(self, RequestOption=None, SubVersion=None, TransactionReference=Non self.SubVersion = SubVersion self.SubVersion_nsprefix_ = None self.TransactionReference = TransactionReference - self.TransactionReference_nsprefix_ = None + self.TransactionReference_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -3980,7 +4029,7 @@ def get_TransactionReference(self): return self.TransactionReference def set_TransactionReference(self, TransactionReference): self.TransactionReference = TransactionReference - def hasContent_(self): + def _hasContent(self): if ( self.RequestOption or self.SubVersion is not None or @@ -4004,17 +4053,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='RequestType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='RequestType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='RequestType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='RequestType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4036,14 +4085,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'RequestOption': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'RequestOption') @@ -4101,7 +4150,7 @@ def get_TransactionIdentifier(self): return self.TransactionIdentifier def set_TransactionIdentifier(self, TransactionIdentifier): self.TransactionIdentifier = TransactionIdentifier - def hasContent_(self): + def _hasContent(self): if ( self.CustomerContext is not None or self.TransactionIdentifier is not None @@ -4124,17 +4173,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionReferenceType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionReferenceType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionReferenceType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionReferenceType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='TransactionReferenceType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='TransactionReferenceType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='TransactionReferenceType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='TransactionReferenceType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4153,14 +4202,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CustomerContext': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CustomerContext') @@ -4187,19 +4236,19 @@ def __init__(self, ResponseStatus=None, Alert=None, AlertDetail=None, Transactio self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.ResponseStatus = ResponseStatus - self.ResponseStatus_nsprefix_ = None + self.ResponseStatus_nsprefix_ = "common" if Alert is None: self.Alert = [] else: self.Alert = Alert - self.Alert_nsprefix_ = None + self.Alert_nsprefix_ = "common" if AlertDetail is None: self.AlertDetail = [] else: self.AlertDetail = AlertDetail - self.AlertDetail_nsprefix_ = None + self.AlertDetail_nsprefix_ = "common" self.TransactionReference = TransactionReference - self.TransactionReference_nsprefix_ = None + self.TransactionReference_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -4243,7 +4292,7 @@ def get_TransactionReference(self): return self.TransactionReference def set_TransactionReference(self, TransactionReference): self.TransactionReference = TransactionReference - def hasContent_(self): + def _hasContent(self): if ( self.ResponseStatus is not None or self.Alert or @@ -4268,17 +4317,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ResponseType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ResponseType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ResponseType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ResponseType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4301,14 +4350,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ResponseStatus': obj_ = CodeDescriptionType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -4369,7 +4418,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -4392,17 +4441,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeDescriptionType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeDescriptionType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeDescriptionType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeDescriptionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='CodeDescriptionType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='CodeDescriptionType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='CodeDescriptionType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='CodeDescriptionType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4421,14 +4470,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -4459,7 +4508,7 @@ def __init__(self, Code=None, Description=None, ElementLevelInformation=None, gd self.Description = Description self.Description_nsprefix_ = None self.ElementLevelInformation = ElementLevelInformation - self.ElementLevelInformation_nsprefix_ = None + self.ElementLevelInformation_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -4487,7 +4536,7 @@ def get_ElementLevelInformation(self): return self.ElementLevelInformation def set_ElementLevelInformation(self, ElementLevelInformation): self.ElementLevelInformation = ElementLevelInformation - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None or @@ -4511,17 +4560,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DetailType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DetailType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DetailType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DetailType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='DetailType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='DetailType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='DetailType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='DetailType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4543,14 +4592,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -4587,7 +4636,7 @@ def __init__(self, Level=None, ElementIdentifier=None, gds_collector_=None, **kw self.ElementIdentifier = [] else: self.ElementIdentifier = ElementIdentifier - self.ElementIdentifier_nsprefix_ = None + self.ElementIdentifier_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -4617,7 +4666,7 @@ def insert_ElementIdentifier_at(self, index, value): self.ElementIdentifier.insert(index, value) def replace_ElementIdentifier_at(self, index, value): self.ElementIdentifier[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Level is not None or self.ElementIdentifier @@ -4640,17 +4689,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementLevelInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementLevelInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementLevelInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementLevelInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementLevelInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementLevelInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementLevelInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementLevelInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4668,14 +4717,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Level': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Level') @@ -4727,7 +4776,7 @@ def get_Value(self): return self.Value def set_Value(self, Value): self.Value = Value - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Value is not None @@ -4750,17 +4799,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementIdentifierType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementIdentifierType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementIdentifierType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementIdentifierType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementIdentifierType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementIdentifierType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementIdentifierType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementIdentifierType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4779,14 +4828,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -4836,7 +4885,7 @@ def set_Key(self, Key): self.Key = Key def get_valueOf_(self): return self.valueOf_ def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_ - def hasContent_(self): + def _hasContent(self): if ( (1 if type(self.valueOf_) in [int,float] else self.valueOf_) ): @@ -4858,19 +4907,19 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PropertyType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PropertyType') + if self._hasContent(): outfile.write('>') outfile.write(self.convert_unicode(self.valueOf_)) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PropertyType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PropertyType', pretty_print=pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PropertyType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PropertyType'): if self.Key is not None and 'Key' not in already_processed: already_processed.add('Key') outfile.write(' Key=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.Key), input_name='Key')), )) - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PropertyType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PropertyType', fromsubclass_=False, pretty_print=True): pass def build(self, node, gds_collector_=None): self.gds_collector_ = gds_collector_ @@ -4878,18 +4927,18 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) self.valueOf_ = get_all_text_(node) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('Key', node) if value is not None and 'Key' not in already_processed: already_processed.add('Key') self.Key = value - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): pass # end class PropertyType @@ -4968,7 +5017,8 @@ def parse(inFileName, silence=False, print_warnings=True): return rootObj -def parseEtree(inFileName, silence=False, print_warnings=True): +def parseEtree(inFileName, silence=False, print_warnings=True, + mapping=None, reverse_mapping=None, nsmap=None): parser = None doc = parsexml_(inFileName, parser) gds_collector = GdsCollector_() @@ -4979,10 +5029,15 @@ def parseEtree(inFileName, silence=False, print_warnings=True): rootClass = AcceptanceAuditPreCheckRequest rootObj = rootClass.factory() rootObj.build(rootNode, gds_collector_=gds_collector) + if mapping is None: + mapping = {} + if reverse_mapping is None: + reverse_mapping = {} + rootElement = rootObj.to_etree( + None, name_=rootTag, mapping_=mapping, + reverse_mapping_=reverse_mapping, nsmap_=nsmap) + reverse_node_mapping = rootObj.gds_reverse_node_mapping(mapping) # Enable Python to collect the space used by the DOM. - mapping = {} - rootElement = rootObj.to_etree(None, name_=rootTag, mapping_=mapping) - reverse_mapping = rootObj.gds_reverse_node_mapping(mapping) if not SaveElementTreeNode: doc = None rootNode = None @@ -4999,7 +5054,7 @@ def parseEtree(inFileName, silence=False, print_warnings=True): len(gds_collector.get_messages()), )) gds_collector.write_messages(sys.stderr) sys.stderr.write(separator) - return rootObj, rootElement, mapping, reverse_mapping + return rootObj, rootElement, mapping, reverse_node_mapping def parseString(inString, silence=False, print_warnings=True): @@ -5083,6 +5138,74 @@ def main(): RenameMappings_ = { } +# +# Mapping of namespaces to types defined in them +# and the file in which each is defined. +# simpleTypes are marked "ST" and complexTypes "CT". +NamespaceToDefMappings_ = {'http://www.ups.com/XMLSchema/XOLTWS/Common/v1.0': [('ClientInformationType', + './schemas/common.xsd', + 'CT'), + ('RequestType', + './schemas/common.xsd', + 'CT'), + ('TransactionReferenceType', + './schemas/common.xsd', + 'CT'), + ('ResponseType', + './schemas/common.xsd', + 'CT'), + ('CodeDescriptionType', + './schemas/common.xsd', + 'CT'), + ('DetailType', + './schemas/common.xsd', + 'CT'), + ('ElementLevelInformationType', + './schemas/common.xsd', + 'CT'), + ('ElementIdentifierType', + './schemas/common.xsd', + 'CT')], + 'http://www.ups.com/XMLSchema/XOLTWS/DangerousGoodsUtility/v1.0': [('ShipmentType', + './schemas/DangerousGoodsUtility.xsd', + 'CT'), + ('AddressType', + './schemas/DangerousGoodsUtility.xsd', + 'CT'), + ('ServiceType', + './schemas/DangerousGoodsUtility.xsd', + 'CT'), + ('PackageType', + './schemas/DangerousGoodsUtility.xsd', + 'CT'), + ('PackageWeightType', + './schemas/DangerousGoodsUtility.xsd', + 'CT'), + ('PackageWeightUOMType', + './schemas/DangerousGoodsUtility.xsd', + 'CT'), + ('ChemicalRecordType', + './schemas/DangerousGoodsUtility.xsd', + 'CT'), + ('PackageResultsType', + './schemas/DangerousGoodsUtility.xsd', + 'CT'), + ('ChemicalRecordResultsType', + './schemas/DangerousGoodsUtility.xsd', + 'CT'), + ('ChemicalDataType', + './schemas/DangerousGoodsUtility.xsd', + 'CT'), + ('ChemicalDetailType', + './schemas/DangerousGoodsUtility.xsd', + 'CT'), + ('ProperShippingNameDetailType', + './schemas/DangerousGoodsUtility.xsd', + 'CT'), + ('PackageQuantityLimitDetailType', + './schemas/DangerousGoodsUtility.xsd', + 'CT')]} + __all__ = [ "AcceptanceAuditPreCheckRequest", "AcceptanceAuditPreCheckResponse", diff --git a/schemas/ups/ups_lib/denied_party_web_service_schema.py b/schemas/ups/ups_lib/denied_party_web_service_schema.py index 3862edbf94..ff36cca8c8 100644 --- a/schemas/ups/ups_lib/denied_party_web_service_schema.py +++ b/schemas/ups/ups_lib/denied_party_web_service_schema.py @@ -2,34 +2,35 @@ # -*- coding: utf-8 -*- # -# Generated Sat Mar 7 09:04:13 2020 by generateDS.py version 2.35.15. -# Python 3.8.1 (v3.8.1:1b293b6006, Dec 18 2019, 14:08:53) [Clang 6.0 (clang-600.0.57)] +# Generated Wed Nov 10 10:00:58 2021 by generateDS.py version 2.40.5. +# Python 3.8.6 (v3.8.6:db455296be, Sep 23 2020, 13:31:39) [Clang 6.0 (clang-600.0.57)] # # Command line options: # ('--no-namespace-defs', '') -# ('-o', './python/denied_party_web_service_schema.py') +# ('-o', './ups_lib/denied_party_web_service_schema.py') # # Command line arguments: # ./schemas/DeniedPartyWebServiceSchema.xsd # # Command line: -# /Users/danielkobina/Documents/Open/.env/bin/generateDS --no-namespace-defs -o "./python/denied_party_web_service_schema.py" ./schemas/DeniedPartyWebServiceSchema.xsd +# /Users/danielkobina/Workspace/project/purplship/.venv/purplship/bin/generateDS --no-namespace-defs -o "./ups_lib/denied_party_web_service_schema.py" ./schemas/DeniedPartyWebServiceSchema.xsd # # Current working directory (os.getcwd()): -# 2020-03 +# ups # +import sys +try: + ModulenotfoundExp_ = ModuleNotFoundError +except NameError: + ModulenotfoundExp_ = ImportError from six.moves import zip_longest import os -import sys import re as re_ import base64 import datetime as datetime_ import decimal as decimal_ -try: - from lxml import etree as etree_ -except ImportError: - from xml.etree import ElementTree as etree_ +from lxml import etree as etree_ Validate_simpletypes_ = True @@ -92,7 +93,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # Additionally, the generatedsnamespaces module can contain a python # dictionary named GenerateDSNamespaceTypePrefixes that associates element # types with the namespace prefixes that are to be added to the -# "xsi:type" attribute value. See the exportAttributes method of +# "xsi:type" attribute value. See the _exportAttributes method of # any generated element type and the generation of "xsi:type" for an # example of the use of this table. # An example table: @@ -107,11 +108,11 @@ def parsexmlstring_(instring, parser=None, **kwargs): try: from generatedsnamespaces import GenerateDSNamespaceDefs as GenerateDSNamespaceDefs_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceDefs_ = {} try: from generatedsnamespaces import GenerateDSNamespaceTypePrefixes as GenerateDSNamespaceTypePrefixes_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceTypePrefixes_ = {} # @@ -122,7 +123,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # try: from generatedscollector import GdsCollector as GdsCollector_ -except ImportError: +except ModulenotfoundExp_ : class GdsCollector_(object): @@ -156,7 +157,7 @@ def write_messages(self, outstream): try: from enum import Enum -except ImportError: +except ModulenotfoundExp_ : Enum = object # @@ -168,9 +169,14 @@ def write_messages(self, outstream): try: from generatedssuper import GeneratedsSuper -except ImportError as exp: +except ModulenotfoundExp_ as exp: + try: + from generatedssupersuper import GeneratedsSuperSuper + except ModulenotfoundExp_ as exp: + class GeneratedsSuperSuper(object): + pass - class GeneratedsSuper(object): + class GeneratedsSuper(GeneratedsSuperSuper): __hash__ = object.__hash__ tzoff_pattern = re_.compile(r'(\+|-)((0\d|1[0-3]):[0-5]\d|14:00)$') class _FixedOffsetTZ(datetime_.tzinfo): @@ -183,6 +189,30 @@ def tzname(self, dt): return self.__name def dst(self, dt): return None + def __str__(self): + settings = { + 'str_pretty_print': True, + 'str_indent_level': 0, + 'str_namespaceprefix': '', + 'str_name': None, + 'str_namespacedefs': '', + } + for n in settings: + if hasattr(self, n): + setattr(settings[n], self[n]) + from io import StringIO + output = StringIO() + self.export( + output, + settings['str_indent_level'], + pretty_print=settings['str_pretty_print'], + namespaceprefix_=settings['str_namespaceprefix'], + name_=settings['str_name'], + namespacedef_=settings['str_namespacedefs'] + ) + strval = output.getvalue() + output.close() + return strval def gds_format_string(self, input_data, input_name=''): return input_data def gds_parse_string(self, input_data, node=None, input_name=''): @@ -193,11 +223,11 @@ def gds_validate_string(self, input_data, node=None, input_name=''): else: return input_data def gds_format_base64(self, input_data, input_name=''): - return base64.b64encode(input_data) + return base64.b64encode(input_data).decode('ascii') def gds_validate_base64(self, input_data, node=None, input_name=''): return input_data def gds_format_integer(self, input_data, input_name=''): - return '%d' % input_data + return '%d' % int(input_data) def gds_parse_integer(self, input_data, node=None, input_name=''): try: ival = int(input_data) @@ -211,6 +241,8 @@ def gds_validate_integer(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires integer value') return value def gds_format_integer_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_integer_list( self, input_data, node=None, input_name=''): @@ -219,10 +251,10 @@ def gds_validate_integer_list( try: int(value) except (TypeError, ValueError): - raise_parse_error(node, 'Requires sequence of integer valuess') + raise_parse_error(node, 'Requires sequence of integer values') return values def gds_format_float(self, input_data, input_name=''): - return ('%.15f' % input_data).rstrip('0') + return ('%.15f' % float(input_data)).rstrip('0') def gds_parse_float(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -236,6 +268,8 @@ def gds_validate_float(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires float value') return value def gds_format_float_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_float_list( self, input_data, node=None, input_name=''): @@ -247,7 +281,12 @@ def gds_validate_float_list( raise_parse_error(node, 'Requires sequence of float values') return values def gds_format_decimal(self, input_data, input_name=''): - return ('%s' % input_data).rstrip('0') + return_value = '%s' % input_data + if '.' in return_value: + return_value = return_value.rstrip('0') + if return_value.endswith('.'): + return_value = return_value.rstrip('.') + return return_value def gds_parse_decimal(self, input_data, node=None, input_name=''): try: decimal_value = decimal_.Decimal(input_data) @@ -261,7 +300,9 @@ def gds_validate_decimal(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires decimal value') return value def gds_format_decimal_list(self, input_data, input_name=''): - return '%s' % ' '.join(input_data) + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] + return ' '.join([self.gds_format_decimal(item) for item in input_data]) def gds_validate_decimal_list( self, input_data, node=None, input_name=''): values = input_data.split() @@ -272,7 +313,7 @@ def gds_validate_decimal_list( raise_parse_error(node, 'Requires sequence of decimal values') return values def gds_format_double(self, input_data, input_name=''): - return '%e' % input_data + return '%s' % input_data def gds_parse_double(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -286,6 +327,8 @@ def gds_validate_double(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires double or float value') return value def gds_format_double_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_double_list( self, input_data, node=None, input_name=''): @@ -315,11 +358,14 @@ def gds_validate_boolean(self, input_data, node=None, input_name=''): '(one of True, 1, False, 0)') return input_data def gds_format_boolean_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_boolean_list( self, input_data, node=None, input_name=''): values = input_data.split() for value in values: + value = self.gds_parse_boolean(value, node, input_name) if value not in (True, 1, False, 0, ): raise_parse_error( node, @@ -766,7 +812,10 @@ def find_attr_value_(attr_name, node): value = attrs.get(attr_name) elif len(attr_parts) == 2: prefix, name = attr_parts - namespace = node.nsmap.get(prefix) + if prefix == 'xml': + namespace = 'http://www.w3.org/XML/1998/namespace' + else: + namespace = node.nsmap.get(prefix) if namespace is not None: value = attrs.get('{%s}%s' % (namespace, name, )) return value @@ -847,7 +896,7 @@ def exportSimple(self, outfile, level, name): self.name, base64.b64encode(self.value), self.name)) - def to_etree(self, element): + def to_etree(self, element, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.category == MixedContainer.CategoryText: # Prevent exporting empty content as empty lines. if self.value.strip(): @@ -867,7 +916,7 @@ def to_etree(self, element): subelement.text = self.to_etree_simple() else: # category == MixedContainer.CategoryComplex self.value.to_etree(element) - def to_etree_simple(self): + def to_etree_simple(self, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.content_type == MixedContainer.TypeString: text = self.value elif (self.content_type == MixedContainer.TypeInteger or @@ -956,9 +1005,9 @@ def __init__(self, Request=None, Party=None, TransactionReferenceID=None, gds_co self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Request = Request - self.Request_nsprefix_ = None + self.Request_nsprefix_ = "dps" self.Party = Party - self.Party_nsprefix_ = None + self.Party_nsprefix_ = "dps" if TransactionReferenceID is None: self.TransactionReferenceID = [] else: @@ -997,7 +1046,7 @@ def insert_TransactionReferenceID_at(self, index, value): self.TransactionReferenceID.insert(index, value) def replace_TransactionReferenceID_at(self, index, value): self.TransactionReferenceID[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Request is not None or self.Party is not None or @@ -1021,17 +1070,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DeniedPartyScreenerRequest') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DeniedPartyScreenerRequest') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DeniedPartyScreenerRequest', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DeniedPartyScreenerRequest', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DeniedPartyScreenerRequest'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DeniedPartyScreenerRequest'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DeniedPartyScreenerRequest', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DeniedPartyScreenerRequest', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1052,14 +1101,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Request': obj_ = RequestTransportType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1090,14 +1139,14 @@ def __init__(self, Response=None, TransactionInfo=None, GovernmentList=None, gds self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Response = Response - self.Response_nsprefix_ = None + self.Response_nsprefix_ = "dps" self.TransactionInfo = TransactionInfo - self.TransactionInfo_nsprefix_ = None + self.TransactionInfo_nsprefix_ = "dps" if GovernmentList is None: self.GovernmentList = [] else: self.GovernmentList = GovernmentList - self.GovernmentList_nsprefix_ = None + self.GovernmentList_nsprefix_ = "dps" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1131,7 +1180,7 @@ def insert_GovernmentList_at(self, index, value): self.GovernmentList.insert(index, value) def replace_GovernmentList_at(self, index, value): self.GovernmentList[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Response is not None or self.TransactionInfo is not None or @@ -1155,17 +1204,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DeniedPartyScreenerResponse') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DeniedPartyScreenerResponse') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DeniedPartyScreenerResponse', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DeniedPartyScreenerResponse', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DeniedPartyScreenerResponse'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DeniedPartyScreenerResponse'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DeniedPartyScreenerResponse', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DeniedPartyScreenerResponse', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1185,14 +1234,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Response': obj_ = ResponseTransportType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1257,7 +1306,7 @@ def get_DeniedPartySearchStatus(self): return self.DeniedPartySearchStatus def set_DeniedPartySearchStatus(self, DeniedPartySearchStatus): self.DeniedPartySearchStatus = DeniedPartySearchStatus - def hasContent_(self): + def _hasContent(self): if ( self.Warning or self.DeniedPartySearchStatus is not None @@ -1280,17 +1329,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseTransportType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseTransportType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseTransportType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseTransportType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ResponseTransportType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ResponseTransportType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ResponseTransportType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ResponseTransportType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1309,14 +1358,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Warning': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Warning') @@ -1378,7 +1427,7 @@ def insert_RequestOption_at(self, index, value): self.RequestOption.insert(index, value) def replace_RequestOption_at(self, index, value): self.RequestOption[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.RequestAction is not None or self.RequestOption @@ -1401,17 +1450,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestTransportType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestTransportType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestTransportType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestTransportType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RequestTransportType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RequestTransportType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RequestTransportType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RequestTransportType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1430,14 +1479,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'RequestAction': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'RequestAction') @@ -1470,7 +1519,7 @@ def __init__(self, ScreenType=None, ContactName=None, CompanyName=None, Address= self.CompanyName = CompanyName self.CompanyName_nsprefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "dps" self.MatchLevel = MatchLevel self.MatchLevel_nsprefix_ = None def factory(*args_, **kwargs_): @@ -1508,7 +1557,7 @@ def get_MatchLevel(self): return self.MatchLevel def set_MatchLevel(self, MatchLevel): self.MatchLevel = MatchLevel - def hasContent_(self): + def _hasContent(self): if ( self.ScreenType is not None or self.ContactName is not None or @@ -1534,17 +1583,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PartyType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PartyType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PartyType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PartyType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PartyType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PartyType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PartyType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PartyType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1574,14 +1623,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ScreenType': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ScreenType') @@ -1684,7 +1733,7 @@ def get_CountryCode(self): return self.CountryCode def set_CountryCode(self, CountryCode): self.CountryCode = CountryCode - def hasContent_(self): + def _hasContent(self): if ( self.AddressLine or self.City is not None or @@ -1711,17 +1760,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AddressType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AddressType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AddressType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AddressType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1756,14 +1805,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AddressLine': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'AddressLine') @@ -1846,7 +1895,7 @@ def get_TransactionCharge(self): return self.TransactionCharge def set_TransactionCharge(self, TransactionCharge): self.TransactionCharge = TransactionCharge - def hasContent_(self): + def _hasContent(self): if ( self.Date is not None or self.Time is not None or @@ -1870,17 +1919,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='T showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionInfoType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionInfoType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionInfoType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionInfoType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TransactionInfoType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TransactionInfoType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TransactionInfoType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TransactionInfoType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1902,14 +1951,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Date': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Date') @@ -1976,7 +2025,7 @@ def insert_DeniedParty_at(self, index, value): self.DeniedParty.insert(index, value) def replace_DeniedParty_at(self, index, value): self.DeniedParty[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.ListDescription is not None or self.DeniedParty @@ -1999,17 +2048,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='G showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='GovernmentListType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='GovernmentListType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='GovernmentListType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='GovernmentListType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='GovernmentListType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='GovernmentListType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='GovernmentListType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='GovernmentListType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2026,14 +2075,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ListDescription': obj_ = ListDescriptionType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -2084,7 +2133,7 @@ def get_CurrencyCode(self): return self.CurrencyCode def set_CurrencyCode(self, CurrencyCode): self.CurrencyCode = CurrencyCode - def hasContent_(self): + def _hasContent(self): if ( self.MonetaryValue is not None or self.CurrencyCode is not None @@ -2107,17 +2156,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='T showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionChargeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionChargeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionChargeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionChargeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TransactionChargeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TransactionChargeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TransactionChargeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TransactionChargeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2136,14 +2185,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'MonetaryValue': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'MonetaryValue') @@ -2208,7 +2257,7 @@ def get_LastRegulatoryUpdate(self): return self.LastRegulatoryUpdate def set_LastRegulatoryUpdate(self, LastRegulatoryUpdate): self.LastRegulatoryUpdate = LastRegulatoryUpdate - def hasContent_(self): + def _hasContent(self): if ( self.ListName is not None or self.Description is not None or @@ -2233,17 +2282,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='L showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ListDescriptionType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ListDescriptionType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ListDescriptionType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ListDescriptionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ListDescriptionType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ListDescriptionType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ListDescriptionType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ListDescriptionType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2270,14 +2319,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ListName': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ListName') @@ -2348,7 +2397,7 @@ def get_Remarks(self): return self.Remarks def set_Remarks(self, Remarks): self.Remarks = Remarks - def hasContent_(self): + def _hasContent(self): if ( self.Names is not None or self.Addresses is not None or @@ -2372,17 +2421,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DeniedPartyType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DeniedPartyType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DeniedPartyType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DeniedPartyType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DeniedPartyType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DeniedPartyType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DeniedPartyType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DeniedPartyType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2403,14 +2452,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Names': obj_ = NamesType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -2470,7 +2519,7 @@ def insert_Name_at(self, index, value): self.Name.insert(index, value) def replace_Name_at(self, index, value): self.Name[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Name ): @@ -2492,17 +2541,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='N showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='NamesType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='NamesType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='NamesType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='NamesType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='NamesType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='NamesType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='NamesType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='NamesType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2517,14 +2566,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Name': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Name') @@ -2574,7 +2623,7 @@ def insert_Address_at(self, index, value): self.Address.insert(index, value) def replace_Address_at(self, index, value): self.Address[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Address ): @@ -2596,17 +2645,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressesType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressesType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressesType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressesType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AddressesType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AddressesType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AddressesType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AddressesType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2620,14 +2669,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Address': obj_ = AddressType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -2707,7 +2756,8 @@ def parse(inFileName, silence=False, print_warnings=True): return rootObj -def parseEtree(inFileName, silence=False, print_warnings=True): +def parseEtree(inFileName, silence=False, print_warnings=True, + mapping=None, reverse_mapping=None, nsmap=None): parser = None doc = parsexml_(inFileName, parser) gds_collector = GdsCollector_() @@ -2718,10 +2768,15 @@ def parseEtree(inFileName, silence=False, print_warnings=True): rootClass = DeniedPartyScreenerRequest rootObj = rootClass.factory() rootObj.build(rootNode, gds_collector_=gds_collector) + if mapping is None: + mapping = {} + if reverse_mapping is None: + reverse_mapping = {} + rootElement = rootObj.to_etree( + None, name_=rootTag, mapping_=mapping, + reverse_mapping_=reverse_mapping, nsmap_=nsmap) + reverse_node_mapping = rootObj.gds_reverse_node_mapping(mapping) # Enable Python to collect the space used by the DOM. - mapping = {} - rootElement = rootObj.to_etree(None, name_=rootTag, mapping_=mapping) - reverse_mapping = rootObj.gds_reverse_node_mapping(mapping) if not SaveElementTreeNode: doc = None rootNode = None @@ -2738,7 +2793,7 @@ def parseEtree(inFileName, silence=False, print_warnings=True): len(gds_collector.get_messages()), )) gds_collector.write_messages(sys.stderr) sys.stderr.write(separator) - return rootObj, rootElement, mapping, reverse_mapping + return rootObj, rootElement, mapping, reverse_node_mapping def parseString(inString, silence=False, print_warnings=True): @@ -2822,6 +2877,29 @@ def main(): RenameMappings_ = { } +# +# Mapping of namespaces to types defined in them +# and the file in which each is defined. +# simpleTypes are marked "ST" and complexTypes "CT". +NamespaceToDefMappings_ = {'http://www.ups.com/schema/xpci/1.0/dps': [('ResponseTransportType', + './schemas/DeniedPartyWebServiceSchema.xsd', + 'CT'), + ('RequestTransportType', + './schemas/DeniedPartyWebServiceSchema.xsd', + 'CT'), + ('PartyType', + './schemas/DeniedPartyWebServiceSchema.xsd', + 'CT'), + ('AddressType', + './schemas/DeniedPartyWebServiceSchema.xsd', + 'CT'), + ('TransactionInfoType', + './schemas/DeniedPartyWebServiceSchema.xsd', + 'CT'), + ('GovernmentListType', + './schemas/DeniedPartyWebServiceSchema.xsd', + 'CT')]} + __all__ = [ "AddressType", "AddressesType", diff --git a/schemas/ups/ups_lib/error_1_1.py b/schemas/ups/ups_lib/error_1_1.py index f8c4a31f76..57d5b79e2a 100644 --- a/schemas/ups/ups_lib/error_1_1.py +++ b/schemas/ups/ups_lib/error_1_1.py @@ -2,34 +2,35 @@ # -*- coding: utf-8 -*- # -# Generated Sat Mar 7 09:04:13 2020 by generateDS.py version 2.35.15. -# Python 3.8.1 (v3.8.1:1b293b6006, Dec 18 2019, 14:08:53) [Clang 6.0 (clang-600.0.57)] +# Generated Wed Nov 10 10:00:58 2021 by generateDS.py version 2.40.5. +# Python 3.8.6 (v3.8.6:db455296be, Sep 23 2020, 13:31:39) [Clang 6.0 (clang-600.0.57)] # # Command line options: # ('--no-namespace-defs', '') -# ('-o', './python/error_1_1.py') +# ('-o', './ups_lib/error_1_1.py') # # Command line arguments: # ./schemas/Error1.1.xsd # # Command line: -# /Users/danielkobina/Documents/Open/.env/bin/generateDS --no-namespace-defs -o "./python/error_1_1.py" ./schemas/Error1.1.xsd +# /Users/danielkobina/Workspace/project/purplship/.venv/purplship/bin/generateDS --no-namespace-defs -o "./ups_lib/error_1_1.py" ./schemas/Error1.1.xsd # # Current working directory (os.getcwd()): -# 2020-03 +# ups # +import sys +try: + ModulenotfoundExp_ = ModuleNotFoundError +except NameError: + ModulenotfoundExp_ = ImportError from six.moves import zip_longest import os -import sys import re as re_ import base64 import datetime as datetime_ import decimal as decimal_ -try: - from lxml import etree as etree_ -except ImportError: - from xml.etree import ElementTree as etree_ +from lxml import etree as etree_ Validate_simpletypes_ = True @@ -92,7 +93,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # Additionally, the generatedsnamespaces module can contain a python # dictionary named GenerateDSNamespaceTypePrefixes that associates element # types with the namespace prefixes that are to be added to the -# "xsi:type" attribute value. See the exportAttributes method of +# "xsi:type" attribute value. See the _exportAttributes method of # any generated element type and the generation of "xsi:type" for an # example of the use of this table. # An example table: @@ -107,11 +108,11 @@ def parsexmlstring_(instring, parser=None, **kwargs): try: from generatedsnamespaces import GenerateDSNamespaceDefs as GenerateDSNamespaceDefs_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceDefs_ = {} try: from generatedsnamespaces import GenerateDSNamespaceTypePrefixes as GenerateDSNamespaceTypePrefixes_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceTypePrefixes_ = {} # @@ -122,7 +123,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # try: from generatedscollector import GdsCollector as GdsCollector_ -except ImportError: +except ModulenotfoundExp_ : class GdsCollector_(object): @@ -156,7 +157,7 @@ def write_messages(self, outstream): try: from enum import Enum -except ImportError: +except ModulenotfoundExp_ : Enum = object # @@ -168,9 +169,14 @@ def write_messages(self, outstream): try: from generatedssuper import GeneratedsSuper -except ImportError as exp: +except ModulenotfoundExp_ as exp: + try: + from generatedssupersuper import GeneratedsSuperSuper + except ModulenotfoundExp_ as exp: + class GeneratedsSuperSuper(object): + pass - class GeneratedsSuper(object): + class GeneratedsSuper(GeneratedsSuperSuper): __hash__ = object.__hash__ tzoff_pattern = re_.compile(r'(\+|-)((0\d|1[0-3]):[0-5]\d|14:00)$') class _FixedOffsetTZ(datetime_.tzinfo): @@ -183,6 +189,30 @@ def tzname(self, dt): return self.__name def dst(self, dt): return None + def __str__(self): + settings = { + 'str_pretty_print': True, + 'str_indent_level': 0, + 'str_namespaceprefix': '', + 'str_name': None, + 'str_namespacedefs': '', + } + for n in settings: + if hasattr(self, n): + setattr(settings[n], self[n]) + from io import StringIO + output = StringIO() + self.export( + output, + settings['str_indent_level'], + pretty_print=settings['str_pretty_print'], + namespaceprefix_=settings['str_namespaceprefix'], + name_=settings['str_name'], + namespacedef_=settings['str_namespacedefs'] + ) + strval = output.getvalue() + output.close() + return strval def gds_format_string(self, input_data, input_name=''): return input_data def gds_parse_string(self, input_data, node=None, input_name=''): @@ -193,11 +223,11 @@ def gds_validate_string(self, input_data, node=None, input_name=''): else: return input_data def gds_format_base64(self, input_data, input_name=''): - return base64.b64encode(input_data) + return base64.b64encode(input_data).decode('ascii') def gds_validate_base64(self, input_data, node=None, input_name=''): return input_data def gds_format_integer(self, input_data, input_name=''): - return '%d' % input_data + return '%d' % int(input_data) def gds_parse_integer(self, input_data, node=None, input_name=''): try: ival = int(input_data) @@ -211,6 +241,8 @@ def gds_validate_integer(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires integer value') return value def gds_format_integer_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_integer_list( self, input_data, node=None, input_name=''): @@ -219,10 +251,10 @@ def gds_validate_integer_list( try: int(value) except (TypeError, ValueError): - raise_parse_error(node, 'Requires sequence of integer valuess') + raise_parse_error(node, 'Requires sequence of integer values') return values def gds_format_float(self, input_data, input_name=''): - return ('%.15f' % input_data).rstrip('0') + return ('%.15f' % float(input_data)).rstrip('0') def gds_parse_float(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -236,6 +268,8 @@ def gds_validate_float(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires float value') return value def gds_format_float_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_float_list( self, input_data, node=None, input_name=''): @@ -247,7 +281,12 @@ def gds_validate_float_list( raise_parse_error(node, 'Requires sequence of float values') return values def gds_format_decimal(self, input_data, input_name=''): - return ('%s' % input_data).rstrip('0') + return_value = '%s' % input_data + if '.' in return_value: + return_value = return_value.rstrip('0') + if return_value.endswith('.'): + return_value = return_value.rstrip('.') + return return_value def gds_parse_decimal(self, input_data, node=None, input_name=''): try: decimal_value = decimal_.Decimal(input_data) @@ -261,7 +300,9 @@ def gds_validate_decimal(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires decimal value') return value def gds_format_decimal_list(self, input_data, input_name=''): - return '%s' % ' '.join(input_data) + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] + return ' '.join([self.gds_format_decimal(item) for item in input_data]) def gds_validate_decimal_list( self, input_data, node=None, input_name=''): values = input_data.split() @@ -272,7 +313,7 @@ def gds_validate_decimal_list( raise_parse_error(node, 'Requires sequence of decimal values') return values def gds_format_double(self, input_data, input_name=''): - return '%e' % input_data + return '%s' % input_data def gds_parse_double(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -286,6 +327,8 @@ def gds_validate_double(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires double or float value') return value def gds_format_double_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_double_list( self, input_data, node=None, input_name=''): @@ -315,11 +358,14 @@ def gds_validate_boolean(self, input_data, node=None, input_name=''): '(one of True, 1, False, 0)') return input_data def gds_format_boolean_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_boolean_list( self, input_data, node=None, input_name=''): values = input_data.split() for value in values: + value = self.gds_parse_boolean(value, node, input_name) if value not in (True, 1, False, 0, ): raise_parse_error( node, @@ -766,7 +812,10 @@ def find_attr_value_(attr_name, node): value = attrs.get(attr_name) elif len(attr_parts) == 2: prefix, name = attr_parts - namespace = node.nsmap.get(prefix) + if prefix == 'xml': + namespace = 'http://www.w3.org/XML/1998/namespace' + else: + namespace = node.nsmap.get(prefix) if namespace is not None: value = attrs.get('{%s}%s' % (namespace, name, )) return value @@ -847,7 +896,7 @@ def exportSimple(self, outfile, level, name): self.name, base64.b64encode(self.value), self.name)) - def to_etree(self, element): + def to_etree(self, element, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.category == MixedContainer.CategoryText: # Prevent exporting empty content as empty lines. if self.value.strip(): @@ -867,7 +916,7 @@ def to_etree(self, element): subelement.text = self.to_etree_simple() else: # category == MixedContainer.CategoryComplex self.value.to_etree(element) - def to_etree_simple(self): + def to_etree_simple(self, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.content_type == MixedContainer.TypeString: text = self.value elif (self.content_type == MixedContainer.TypeInteger or @@ -959,7 +1008,7 @@ def __init__(self, ErrorDetail=None, gds_collector_=None, **kwargs_): self.ErrorDetail = [] else: self.ErrorDetail = ErrorDetail - self.ErrorDetail_nsprefix_ = None + self.ErrorDetail_nsprefix_ = "error" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -985,7 +1034,7 @@ def insert_ErrorDetail_at(self, index, value): self.ErrorDetail.insert(index, value) def replace_ErrorDetail_at(self, index, value): self.ErrorDetail[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.ErrorDetail ): @@ -1007,17 +1056,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='E showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='Errors') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='Errors') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='Errors', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='Errors', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='Errors'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='Errors'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='Errors', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='Errors', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1031,14 +1080,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ErrorDetail': obj_ = ErrorDetailType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1060,23 +1109,23 @@ def __init__(self, Severity=None, PrimaryErrorCode=None, MinimumRetrySeconds=Non self.Severity = Severity self.Severity_nsprefix_ = None self.PrimaryErrorCode = PrimaryErrorCode - self.PrimaryErrorCode_nsprefix_ = None + self.PrimaryErrorCode_nsprefix_ = "error" self.MinimumRetrySeconds = MinimumRetrySeconds self.MinimumRetrySeconds_nsprefix_ = None self.Location = Location - self.Location_nsprefix_ = None + self.Location_nsprefix_ = "error" if SubErrorCode is None: self.SubErrorCode = [] else: self.SubErrorCode = SubErrorCode - self.SubErrorCode_nsprefix_ = None + self.SubErrorCode_nsprefix_ = "error" if AdditionalInformation is None: self.AdditionalInformation = [] else: self.AdditionalInformation = AdditionalInformation - self.AdditionalInformation_nsprefix_ = None + self.AdditionalInformation_nsprefix_ = "error" self.ElementLevelInformation = ElementLevelInformation - self.ElementLevelInformation_nsprefix_ = None + self.ElementLevelInformation_nsprefix_ = "error" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1132,7 +1181,7 @@ def get_ElementLevelInformation(self): return self.ElementLevelInformation def set_ElementLevelInformation(self, ElementLevelInformation): self.ElementLevelInformation = ElementLevelInformation - def hasContent_(self): + def _hasContent(self): if ( self.Severity is not None or self.PrimaryErrorCode is not None or @@ -1160,17 +1209,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='E showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ErrorDetailType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ErrorDetailType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ErrorDetailType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ErrorDetailType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ErrorDetailType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ErrorDetailType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ErrorDetailType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ErrorDetailType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1204,14 +1253,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Severity': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Severity') @@ -1268,7 +1317,7 @@ def __init__(self, Level=None, ElementIdentifier=None, gds_collector_=None, **kw self.ElementIdentifier = [] else: self.ElementIdentifier = ElementIdentifier - self.ElementIdentifier_nsprefix_ = None + self.ElementIdentifier_nsprefix_ = "error" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1298,7 +1347,7 @@ def insert_ElementIdentifier_at(self, index, value): self.ElementIdentifier.insert(index, value) def replace_ElementIdentifier_at(self, index, value): self.ElementIdentifier[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Level is not None or self.ElementIdentifier @@ -1321,17 +1370,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='E showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementLevelInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementLevelInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementLevelInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementLevelInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ElementLevelInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ElementLevelInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ElementLevelInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ElementLevelInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1349,14 +1398,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Level': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Level') @@ -1408,7 +1457,7 @@ def get_Value(self): return self.Value def set_Value(self, Value): self.Value = Value - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Value is not None @@ -1431,17 +1480,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='E showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementIdentifierType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementIdentifierType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementIdentifierType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementIdentifierType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ElementIdentifierType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ElementIdentifierType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ElementIdentifierType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ElementIdentifierType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1460,14 +1509,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -1526,7 +1575,7 @@ def get_Digest(self): return self.Digest def set_Digest(self, Digest): self.Digest = Digest - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None or @@ -1550,17 +1599,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CodeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CodeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CodeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CodeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1583,14 +1632,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -1628,7 +1677,7 @@ def __init__(self, Type=None, Value=None, gds_collector_=None, **kwargs_): self.Value = [] else: self.Value = Value - self.Value_nsprefix_ = None + self.Value_nsprefix_ = "error" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1658,7 +1707,7 @@ def insert_Value_at(self, index, value): self.Value.insert(index, value) def replace_Value_at(self, index, value): self.Value[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Type is not None or self.Value @@ -1681,17 +1730,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AdditionalInfoType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AdditionalInfoType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AdditionalInfoType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AdditionalInfoType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AdditionalInfoType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AdditionalInfoType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AdditionalInfoType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AdditionalInfoType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1709,14 +1758,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Type': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Type') @@ -1768,7 +1817,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -1791,17 +1840,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AdditionalCodeDescType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AdditionalCodeDescType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AdditionalCodeDescType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AdditionalCodeDescType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AdditionalCodeDescType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AdditionalCodeDescType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AdditionalCodeDescType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AdditionalCodeDescType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1820,14 +1869,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -1886,7 +1935,7 @@ def get_OriginalValue(self): return self.OriginalValue def set_OriginalValue(self, OriginalValue): self.OriginalValue = OriginalValue - def hasContent_(self): + def _hasContent(self): if ( self.LocationElementName is not None or self.XPathOfElement is not None or @@ -1910,17 +1959,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='L showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LocationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LocationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LocationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LocationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LocationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LocationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LocationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LocationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1943,14 +1992,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'LocationElementName': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'LocationElementName') @@ -2043,7 +2092,8 @@ def parse(inFileName, silence=False, print_warnings=True): return rootObj -def parseEtree(inFileName, silence=False, print_warnings=True): +def parseEtree(inFileName, silence=False, print_warnings=True, + mapping=None, reverse_mapping=None, nsmap=None): parser = None doc = parsexml_(inFileName, parser) gds_collector = GdsCollector_() @@ -2054,10 +2104,15 @@ def parseEtree(inFileName, silence=False, print_warnings=True): rootClass = Errors rootObj = rootClass.factory() rootObj.build(rootNode, gds_collector_=gds_collector) + if mapping is None: + mapping = {} + if reverse_mapping is None: + reverse_mapping = {} + rootElement = rootObj.to_etree( + None, name_=rootTag, mapping_=mapping, + reverse_mapping_=reverse_mapping, nsmap_=nsmap) + reverse_node_mapping = rootObj.gds_reverse_node_mapping(mapping) # Enable Python to collect the space used by the DOM. - mapping = {} - rootElement = rootObj.to_etree(None, name_=rootTag, mapping_=mapping) - reverse_mapping = rootObj.gds_reverse_node_mapping(mapping) if not SaveElementTreeNode: doc = None rootNode = None @@ -2074,7 +2129,7 @@ def parseEtree(inFileName, silence=False, print_warnings=True): len(gds_collector.get_messages()), )) gds_collector.write_messages(sys.stderr) sys.stderr.write(separator) - return rootObj, rootElement, mapping, reverse_mapping + return rootObj, rootElement, mapping, reverse_node_mapping def parseString(inString, silence=False, print_warnings=True): @@ -2158,6 +2213,32 @@ def main(): RenameMappings_ = { } +# +# Mapping of namespaces to types defined in them +# and the file in which each is defined. +# simpleTypes are marked "ST" and complexTypes "CT". +NamespaceToDefMappings_ = {'http://www.ups.com/XMLSchema/XOLTWS/Error/v1.1': [('ErrorDetailType', + './schemas/Error1.1.xsd', + 'CT'), + ('ElementLevelInformationType', + './schemas/Error1.1.xsd', + 'CT'), + ('ElementIdentifierType', + './schemas/Error1.1.xsd', + 'CT'), + ('CodeType', + './schemas/Error1.1.xsd', + 'CT'), + ('AdditionalInfoType', + './schemas/Error1.1.xsd', + 'CT'), + ('AdditionalCodeDescType', + './schemas/Error1.1.xsd', + 'CT'), + ('LocationType', + './schemas/Error1.1.xsd', + 'CT')]} + __all__ = [ "AdditionalCodeDescType", "AdditionalInfoType", diff --git a/schemas/ups/ups_lib/error_xpci.py b/schemas/ups/ups_lib/error_xpci.py index 4cb3305a5e..8faae78600 100644 --- a/schemas/ups/ups_lib/error_xpci.py +++ b/schemas/ups/ups_lib/error_xpci.py @@ -2,34 +2,35 @@ # -*- coding: utf-8 -*- # -# Generated Sat Mar 7 09:04:13 2020 by generateDS.py version 2.35.15. -# Python 3.8.1 (v3.8.1:1b293b6006, Dec 18 2019, 14:08:53) [Clang 6.0 (clang-600.0.57)] +# Generated Wed Nov 10 10:00:59 2021 by generateDS.py version 2.40.5. +# Python 3.8.6 (v3.8.6:db455296be, Sep 23 2020, 13:31:39) [Clang 6.0 (clang-600.0.57)] # # Command line options: # ('--no-namespace-defs', '') -# ('-o', './python/error_xpci.py') +# ('-o', './ups_lib/error_xpci.py') # # Command line arguments: # ./schemas/ErrorXPCI.xsd # # Command line: -# /Users/danielkobina/Documents/Open/.env/bin/generateDS --no-namespace-defs -o "./python/error_xpci.py" ./schemas/ErrorXPCI.xsd +# /Users/danielkobina/Workspace/project/purplship/.venv/purplship/bin/generateDS --no-namespace-defs -o "./ups_lib/error_xpci.py" ./schemas/ErrorXPCI.xsd # # Current working directory (os.getcwd()): -# 2020-03 +# ups # +import sys +try: + ModulenotfoundExp_ = ModuleNotFoundError +except NameError: + ModulenotfoundExp_ = ImportError from six.moves import zip_longest import os -import sys import re as re_ import base64 import datetime as datetime_ import decimal as decimal_ -try: - from lxml import etree as etree_ -except ImportError: - from xml.etree import ElementTree as etree_ +from lxml import etree as etree_ Validate_simpletypes_ = True @@ -92,7 +93,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # Additionally, the generatedsnamespaces module can contain a python # dictionary named GenerateDSNamespaceTypePrefixes that associates element # types with the namespace prefixes that are to be added to the -# "xsi:type" attribute value. See the exportAttributes method of +# "xsi:type" attribute value. See the _exportAttributes method of # any generated element type and the generation of "xsi:type" for an # example of the use of this table. # An example table: @@ -107,11 +108,11 @@ def parsexmlstring_(instring, parser=None, **kwargs): try: from generatedsnamespaces import GenerateDSNamespaceDefs as GenerateDSNamespaceDefs_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceDefs_ = {} try: from generatedsnamespaces import GenerateDSNamespaceTypePrefixes as GenerateDSNamespaceTypePrefixes_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceTypePrefixes_ = {} # @@ -122,7 +123,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # try: from generatedscollector import GdsCollector as GdsCollector_ -except ImportError: +except ModulenotfoundExp_ : class GdsCollector_(object): @@ -156,7 +157,7 @@ def write_messages(self, outstream): try: from enum import Enum -except ImportError: +except ModulenotfoundExp_ : Enum = object # @@ -168,9 +169,14 @@ def write_messages(self, outstream): try: from generatedssuper import GeneratedsSuper -except ImportError as exp: +except ModulenotfoundExp_ as exp: + try: + from generatedssupersuper import GeneratedsSuperSuper + except ModulenotfoundExp_ as exp: + class GeneratedsSuperSuper(object): + pass - class GeneratedsSuper(object): + class GeneratedsSuper(GeneratedsSuperSuper): __hash__ = object.__hash__ tzoff_pattern = re_.compile(r'(\+|-)((0\d|1[0-3]):[0-5]\d|14:00)$') class _FixedOffsetTZ(datetime_.tzinfo): @@ -183,6 +189,30 @@ def tzname(self, dt): return self.__name def dst(self, dt): return None + def __str__(self): + settings = { + 'str_pretty_print': True, + 'str_indent_level': 0, + 'str_namespaceprefix': '', + 'str_name': None, + 'str_namespacedefs': '', + } + for n in settings: + if hasattr(self, n): + setattr(settings[n], self[n]) + from io import StringIO + output = StringIO() + self.export( + output, + settings['str_indent_level'], + pretty_print=settings['str_pretty_print'], + namespaceprefix_=settings['str_namespaceprefix'], + name_=settings['str_name'], + namespacedef_=settings['str_namespacedefs'] + ) + strval = output.getvalue() + output.close() + return strval def gds_format_string(self, input_data, input_name=''): return input_data def gds_parse_string(self, input_data, node=None, input_name=''): @@ -193,11 +223,11 @@ def gds_validate_string(self, input_data, node=None, input_name=''): else: return input_data def gds_format_base64(self, input_data, input_name=''): - return base64.b64encode(input_data) + return base64.b64encode(input_data).decode('ascii') def gds_validate_base64(self, input_data, node=None, input_name=''): return input_data def gds_format_integer(self, input_data, input_name=''): - return '%d' % input_data + return '%d' % int(input_data) def gds_parse_integer(self, input_data, node=None, input_name=''): try: ival = int(input_data) @@ -211,6 +241,8 @@ def gds_validate_integer(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires integer value') return value def gds_format_integer_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_integer_list( self, input_data, node=None, input_name=''): @@ -219,10 +251,10 @@ def gds_validate_integer_list( try: int(value) except (TypeError, ValueError): - raise_parse_error(node, 'Requires sequence of integer valuess') + raise_parse_error(node, 'Requires sequence of integer values') return values def gds_format_float(self, input_data, input_name=''): - return ('%.15f' % input_data).rstrip('0') + return ('%.15f' % float(input_data)).rstrip('0') def gds_parse_float(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -236,6 +268,8 @@ def gds_validate_float(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires float value') return value def gds_format_float_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_float_list( self, input_data, node=None, input_name=''): @@ -247,7 +281,12 @@ def gds_validate_float_list( raise_parse_error(node, 'Requires sequence of float values') return values def gds_format_decimal(self, input_data, input_name=''): - return ('%s' % input_data).rstrip('0') + return_value = '%s' % input_data + if '.' in return_value: + return_value = return_value.rstrip('0') + if return_value.endswith('.'): + return_value = return_value.rstrip('.') + return return_value def gds_parse_decimal(self, input_data, node=None, input_name=''): try: decimal_value = decimal_.Decimal(input_data) @@ -261,7 +300,9 @@ def gds_validate_decimal(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires decimal value') return value def gds_format_decimal_list(self, input_data, input_name=''): - return '%s' % ' '.join(input_data) + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] + return ' '.join([self.gds_format_decimal(item) for item in input_data]) def gds_validate_decimal_list( self, input_data, node=None, input_name=''): values = input_data.split() @@ -272,7 +313,7 @@ def gds_validate_decimal_list( raise_parse_error(node, 'Requires sequence of decimal values') return values def gds_format_double(self, input_data, input_name=''): - return '%e' % input_data + return '%s' % input_data def gds_parse_double(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -286,6 +327,8 @@ def gds_validate_double(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires double or float value') return value def gds_format_double_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_double_list( self, input_data, node=None, input_name=''): @@ -315,11 +358,14 @@ def gds_validate_boolean(self, input_data, node=None, input_name=''): '(one of True, 1, False, 0)') return input_data def gds_format_boolean_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_boolean_list( self, input_data, node=None, input_name=''): values = input_data.split() for value in values: + value = self.gds_parse_boolean(value, node, input_name) if value not in (True, 1, False, 0, ): raise_parse_error( node, @@ -766,7 +812,10 @@ def find_attr_value_(attr_name, node): value = attrs.get(attr_name) elif len(attr_parts) == 2: prefix, name = attr_parts - namespace = node.nsmap.get(prefix) + if prefix == 'xml': + namespace = 'http://www.w3.org/XML/1998/namespace' + else: + namespace = node.nsmap.get(prefix) if namespace is not None: value = attrs.get('{%s}%s' % (namespace, name, )) return value @@ -847,7 +896,7 @@ def exportSimple(self, outfile, level, name): self.name, base64.b64encode(self.value), self.name)) - def to_etree(self, element): + def to_etree(self, element, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.category == MixedContainer.CategoryText: # Prevent exporting empty content as empty lines. if self.value.strip(): @@ -867,7 +916,7 @@ def to_etree(self, element): subelement.text = self.to_etree_simple() else: # category == MixedContainer.CategoryComplex self.value.to_etree(element) - def to_etree_simple(self): + def to_etree_simple(self, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.content_type == MixedContainer.TypeString: text = self.value elif (self.content_type == MixedContainer.TypeInteger or @@ -959,7 +1008,7 @@ def __init__(self, ErrorDetail=None, gds_collector_=None, **kwargs_): self.ErrorDetail = [] else: self.ErrorDetail = ErrorDetail - self.ErrorDetail_nsprefix_ = None + self.ErrorDetail_nsprefix_ = "error" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -985,7 +1034,7 @@ def insert_ErrorDetail_at(self, index, value): self.ErrorDetail.insert(index, value) def replace_ErrorDetail_at(self, index, value): self.ErrorDetail[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.ErrorDetail ): @@ -1007,17 +1056,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='E showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='Errors') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='Errors') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='Errors', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='Errors', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='Errors'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='Errors'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='Errors', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='Errors', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1031,14 +1080,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ErrorDetail': obj_ = ErrorDetailType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1060,21 +1109,21 @@ def __init__(self, Severity=None, PrimaryErrorCode=None, MinimumRetrySeconds=Non self.Severity = Severity self.Severity_nsprefix_ = None self.PrimaryErrorCode = PrimaryErrorCode - self.PrimaryErrorCode_nsprefix_ = None + self.PrimaryErrorCode_nsprefix_ = "error" self.MinimumRetrySeconds = MinimumRetrySeconds self.MinimumRetrySeconds_nsprefix_ = None self.Location = Location - self.Location_nsprefix_ = None + self.Location_nsprefix_ = "error" if SubErrorCode is None: self.SubErrorCode = [] else: self.SubErrorCode = SubErrorCode - self.SubErrorCode_nsprefix_ = None + self.SubErrorCode_nsprefix_ = "error" if AdditionalInformation is None: self.AdditionalInformation = [] else: self.AdditionalInformation = AdditionalInformation - self.AdditionalInformation_nsprefix_ = None + self.AdditionalInformation_nsprefix_ = "error" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1126,7 +1175,7 @@ def insert_AdditionalInformation_at(self, index, value): self.AdditionalInformation.insert(index, value) def replace_AdditionalInformation_at(self, index, value): self.AdditionalInformation[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Severity is not None or self.PrimaryErrorCode is not None or @@ -1153,17 +1202,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='E showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ErrorDetailType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ErrorDetailType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ErrorDetailType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ErrorDetailType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ErrorDetailType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ErrorDetailType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ErrorDetailType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ErrorDetailType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1194,14 +1243,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Severity': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Severity') @@ -1280,7 +1329,7 @@ def get_Digest(self): return self.Digest def set_Digest(self, Digest): self.Digest = Digest - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None or @@ -1304,17 +1353,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CodeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CodeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CodeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CodeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1337,14 +1386,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -1382,7 +1431,7 @@ def __init__(self, Type=None, Value=None, gds_collector_=None, **kwargs_): self.Value = [] else: self.Value = Value - self.Value_nsprefix_ = None + self.Value_nsprefix_ = "error" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1412,7 +1461,7 @@ def insert_Value_at(self, index, value): self.Value.insert(index, value) def replace_Value_at(self, index, value): self.Value[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Type is not None or self.Value @@ -1435,17 +1484,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AdditionalInfoType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AdditionalInfoType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AdditionalInfoType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AdditionalInfoType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AdditionalInfoType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AdditionalInfoType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AdditionalInfoType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AdditionalInfoType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1463,14 +1512,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Type': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Type') @@ -1522,7 +1571,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -1545,17 +1594,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AdditionalCodeDescType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AdditionalCodeDescType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AdditionalCodeDescType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AdditionalCodeDescType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AdditionalCodeDescType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AdditionalCodeDescType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AdditionalCodeDescType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AdditionalCodeDescType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1574,14 +1623,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -1640,7 +1689,7 @@ def get_OriginalValue(self): return self.OriginalValue def set_OriginalValue(self, OriginalValue): self.OriginalValue = OriginalValue - def hasContent_(self): + def _hasContent(self): if ( self.LocationElementName is not None or self.XPathOfElement is not None or @@ -1664,17 +1713,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='L showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LocationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LocationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LocationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LocationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LocationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LocationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LocationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LocationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1697,14 +1746,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'LocationElementName': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'LocationElementName') @@ -1797,7 +1846,8 @@ def parse(inFileName, silence=False, print_warnings=True): return rootObj -def parseEtree(inFileName, silence=False, print_warnings=True): +def parseEtree(inFileName, silence=False, print_warnings=True, + mapping=None, reverse_mapping=None, nsmap=None): parser = None doc = parsexml_(inFileName, parser) gds_collector = GdsCollector_() @@ -1808,10 +1858,15 @@ def parseEtree(inFileName, silence=False, print_warnings=True): rootClass = Errors rootObj = rootClass.factory() rootObj.build(rootNode, gds_collector_=gds_collector) + if mapping is None: + mapping = {} + if reverse_mapping is None: + reverse_mapping = {} + rootElement = rootObj.to_etree( + None, name_=rootTag, mapping_=mapping, + reverse_mapping_=reverse_mapping, nsmap_=nsmap) + reverse_node_mapping = rootObj.gds_reverse_node_mapping(mapping) # Enable Python to collect the space used by the DOM. - mapping = {} - rootElement = rootObj.to_etree(None, name_=rootTag, mapping_=mapping) - reverse_mapping = rootObj.gds_reverse_node_mapping(mapping) if not SaveElementTreeNode: doc = None rootNode = None @@ -1828,7 +1883,7 @@ def parseEtree(inFileName, silence=False, print_warnings=True): len(gds_collector.get_messages()), )) gds_collector.write_messages(sys.stderr) sys.stderr.write(separator) - return rootObj, rootElement, mapping, reverse_mapping + return rootObj, rootElement, mapping, reverse_node_mapping def parseString(inString, silence=False, print_warnings=True): @@ -1912,6 +1967,26 @@ def main(): RenameMappings_ = { } +# +# Mapping of namespaces to types defined in them +# and the file in which each is defined. +# simpleTypes are marked "ST" and complexTypes "CT". +NamespaceToDefMappings_ = {'http://www.ups.com/schema/xpci/1.0/error': [('ErrorDetailType', + './schemas/ErrorXPCI.xsd', + 'CT'), + ('CodeType', + './schemas/ErrorXPCI.xsd', + 'CT'), + ('AdditionalInfoType', + './schemas/ErrorXPCI.xsd', + 'CT'), + ('AdditionalCodeDescType', + './schemas/ErrorXPCI.xsd', + 'CT'), + ('LocationType', + './schemas/ErrorXPCI.xsd', + 'CT')]} + __all__ = [ "AdditionalCodeDescType", "AdditionalInfoType", diff --git a/schemas/ups/ups_lib/freight_pickup_web_service_schema.py b/schemas/ups/ups_lib/freight_pickup_web_service_schema.py index 8e55c9a534..e911abe4cd 100644 --- a/schemas/ups/ups_lib/freight_pickup_web_service_schema.py +++ b/schemas/ups/ups_lib/freight_pickup_web_service_schema.py @@ -2,34 +2,35 @@ # -*- coding: utf-8 -*- # -# Generated Sat Mar 7 09:04:14 2020 by generateDS.py version 2.35.15. -# Python 3.8.1 (v3.8.1:1b293b6006, Dec 18 2019, 14:08:53) [Clang 6.0 (clang-600.0.57)] +# Generated Wed Nov 10 10:00:59 2021 by generateDS.py version 2.40.5. +# Python 3.8.6 (v3.8.6:db455296be, Sep 23 2020, 13:31:39) [Clang 6.0 (clang-600.0.57)] # # Command line options: # ('--no-namespace-defs', '') -# ('-o', './python/freight_pickup_web_service_schema.py') +# ('-o', './ups_lib/freight_pickup_web_service_schema.py') # # Command line arguments: # ./schemas/FreightPickupWebServiceSchema.xsd # # Command line: -# /Users/danielkobina/Documents/Open/.env/bin/generateDS --no-namespace-defs -o "./python/freight_pickup_web_service_schema.py" ./schemas/FreightPickupWebServiceSchema.xsd +# /Users/danielkobina/Workspace/project/purplship/.venv/purplship/bin/generateDS --no-namespace-defs -o "./ups_lib/freight_pickup_web_service_schema.py" ./schemas/FreightPickupWebServiceSchema.xsd # # Current working directory (os.getcwd()): -# 2020-03 +# ups # +import sys +try: + ModulenotfoundExp_ = ModuleNotFoundError +except NameError: + ModulenotfoundExp_ = ImportError from six.moves import zip_longest import os -import sys import re as re_ import base64 import datetime as datetime_ import decimal as decimal_ -try: - from lxml import etree as etree_ -except ImportError: - from xml.etree import ElementTree as etree_ +from lxml import etree as etree_ Validate_simpletypes_ = True @@ -92,7 +93,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # Additionally, the generatedsnamespaces module can contain a python # dictionary named GenerateDSNamespaceTypePrefixes that associates element # types with the namespace prefixes that are to be added to the -# "xsi:type" attribute value. See the exportAttributes method of +# "xsi:type" attribute value. See the _exportAttributes method of # any generated element type and the generation of "xsi:type" for an # example of the use of this table. # An example table: @@ -107,11 +108,11 @@ def parsexmlstring_(instring, parser=None, **kwargs): try: from generatedsnamespaces import GenerateDSNamespaceDefs as GenerateDSNamespaceDefs_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceDefs_ = {} try: from generatedsnamespaces import GenerateDSNamespaceTypePrefixes as GenerateDSNamespaceTypePrefixes_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceTypePrefixes_ = {} # @@ -122,7 +123,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # try: from generatedscollector import GdsCollector as GdsCollector_ -except ImportError: +except ModulenotfoundExp_ : class GdsCollector_(object): @@ -156,7 +157,7 @@ def write_messages(self, outstream): try: from enum import Enum -except ImportError: +except ModulenotfoundExp_ : Enum = object # @@ -168,9 +169,14 @@ def write_messages(self, outstream): try: from generatedssuper import GeneratedsSuper -except ImportError as exp: +except ModulenotfoundExp_ as exp: + try: + from generatedssupersuper import GeneratedsSuperSuper + except ModulenotfoundExp_ as exp: + class GeneratedsSuperSuper(object): + pass - class GeneratedsSuper(object): + class GeneratedsSuper(GeneratedsSuperSuper): __hash__ = object.__hash__ tzoff_pattern = re_.compile(r'(\+|-)((0\d|1[0-3]):[0-5]\d|14:00)$') class _FixedOffsetTZ(datetime_.tzinfo): @@ -183,6 +189,30 @@ def tzname(self, dt): return self.__name def dst(self, dt): return None + def __str__(self): + settings = { + 'str_pretty_print': True, + 'str_indent_level': 0, + 'str_namespaceprefix': '', + 'str_name': None, + 'str_namespacedefs': '', + } + for n in settings: + if hasattr(self, n): + setattr(settings[n], self[n]) + from io import StringIO + output = StringIO() + self.export( + output, + settings['str_indent_level'], + pretty_print=settings['str_pretty_print'], + namespaceprefix_=settings['str_namespaceprefix'], + name_=settings['str_name'], + namespacedef_=settings['str_namespacedefs'] + ) + strval = output.getvalue() + output.close() + return strval def gds_format_string(self, input_data, input_name=''): return input_data def gds_parse_string(self, input_data, node=None, input_name=''): @@ -193,11 +223,11 @@ def gds_validate_string(self, input_data, node=None, input_name=''): else: return input_data def gds_format_base64(self, input_data, input_name=''): - return base64.b64encode(input_data) + return base64.b64encode(input_data).decode('ascii') def gds_validate_base64(self, input_data, node=None, input_name=''): return input_data def gds_format_integer(self, input_data, input_name=''): - return '%d' % input_data + return '%d' % int(input_data) def gds_parse_integer(self, input_data, node=None, input_name=''): try: ival = int(input_data) @@ -211,6 +241,8 @@ def gds_validate_integer(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires integer value') return value def gds_format_integer_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_integer_list( self, input_data, node=None, input_name=''): @@ -219,10 +251,10 @@ def gds_validate_integer_list( try: int(value) except (TypeError, ValueError): - raise_parse_error(node, 'Requires sequence of integer valuess') + raise_parse_error(node, 'Requires sequence of integer values') return values def gds_format_float(self, input_data, input_name=''): - return ('%.15f' % input_data).rstrip('0') + return ('%.15f' % float(input_data)).rstrip('0') def gds_parse_float(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -236,6 +268,8 @@ def gds_validate_float(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires float value') return value def gds_format_float_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_float_list( self, input_data, node=None, input_name=''): @@ -247,7 +281,12 @@ def gds_validate_float_list( raise_parse_error(node, 'Requires sequence of float values') return values def gds_format_decimal(self, input_data, input_name=''): - return ('%s' % input_data).rstrip('0') + return_value = '%s' % input_data + if '.' in return_value: + return_value = return_value.rstrip('0') + if return_value.endswith('.'): + return_value = return_value.rstrip('.') + return return_value def gds_parse_decimal(self, input_data, node=None, input_name=''): try: decimal_value = decimal_.Decimal(input_data) @@ -261,7 +300,9 @@ def gds_validate_decimal(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires decimal value') return value def gds_format_decimal_list(self, input_data, input_name=''): - return '%s' % ' '.join(input_data) + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] + return ' '.join([self.gds_format_decimal(item) for item in input_data]) def gds_validate_decimal_list( self, input_data, node=None, input_name=''): values = input_data.split() @@ -272,7 +313,7 @@ def gds_validate_decimal_list( raise_parse_error(node, 'Requires sequence of decimal values') return values def gds_format_double(self, input_data, input_name=''): - return '%e' % input_data + return '%s' % input_data def gds_parse_double(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -286,6 +327,8 @@ def gds_validate_double(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires double or float value') return value def gds_format_double_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_double_list( self, input_data, node=None, input_name=''): @@ -315,11 +358,14 @@ def gds_validate_boolean(self, input_data, node=None, input_name=''): '(one of True, 1, False, 0)') return input_data def gds_format_boolean_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_boolean_list( self, input_data, node=None, input_name=''): values = input_data.split() for value in values: + value = self.gds_parse_boolean(value, node, input_name) if value not in (True, 1, False, 0, ): raise_parse_error( node, @@ -766,7 +812,10 @@ def find_attr_value_(attr_name, node): value = attrs.get(attr_name) elif len(attr_parts) == 2: prefix, name = attr_parts - namespace = node.nsmap.get(prefix) + if prefix == 'xml': + namespace = 'http://www.w3.org/XML/1998/namespace' + else: + namespace = node.nsmap.get(prefix) if namespace is not None: value = attrs.get('{%s}%s' % (namespace, name, )) return value @@ -847,7 +896,7 @@ def exportSimple(self, outfile, level, name): self.name, base64.b64encode(self.value), self.name)) - def to_etree(self, element): + def to_etree(self, element, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.category == MixedContainer.CategoryText: # Prevent exporting empty content as empty lines. if self.value.strip(): @@ -867,7 +916,7 @@ def to_etree(self, element): subelement.text = self.to_etree_simple() else: # category == MixedContainer.CategoryComplex self.value.to_etree(element) - def to_etree_simple(self): + def to_etree_simple(self, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.content_type == MixedContainer.TypeString: text = self.value elif (self.content_type == MixedContainer.TypeInteger or @@ -956,7 +1005,7 @@ def __init__(self, Request=None, PickupRequestConfirmationNumber=None, Destinati self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Request = Request - self.Request_nsprefix_ = None + self.Request_nsprefix_ = "common" self.PickupRequestConfirmationNumber = PickupRequestConfirmationNumber self.PickupRequestConfirmationNumber_nsprefix_ = None self.DestinationPostalCode = DestinationPostalCode @@ -964,11 +1013,11 @@ def __init__(self, Request=None, PickupRequestConfirmationNumber=None, Destinati self.DestinationCountryCode = DestinationCountryCode self.DestinationCountryCode_nsprefix_ = None self.Requester = Requester - self.Requester_nsprefix_ = None + self.Requester_nsprefix_ = "fpu" self.ShipFrom = ShipFrom - self.ShipFrom_nsprefix_ = None + self.ShipFrom_nsprefix_ = "fpu" self.ShipTo = ShipTo - self.ShipTo_nsprefix_ = None + self.ShipTo_nsprefix_ = "fpu" self.PickupDate = PickupDate self.PickupDate_nsprefix_ = None self.EarliestTimeReady = EarliestTimeReady @@ -976,16 +1025,16 @@ def __init__(self, Request=None, PickupRequestConfirmationNumber=None, Destinati self.LatestTimeReady = LatestTimeReady self.LatestTimeReady_nsprefix_ = None self.ShipmentServiceOptions = ShipmentServiceOptions - self.ShipmentServiceOptions_nsprefix_ = None + self.ShipmentServiceOptions_nsprefix_ = "fpu" if ShipmentDetail is None: self.ShipmentDetail = [] else: self.ShipmentDetail = ShipmentDetail - self.ShipmentDetail_nsprefix_ = None + self.ShipmentDetail_nsprefix_ = "fpu" self.ExistingShipmentID = ExistingShipmentID - self.ExistingShipmentID_nsprefix_ = None + self.ExistingShipmentID_nsprefix_ = "fpu" self.POM = POM - self.POM_nsprefix_ = None + self.POM_nsprefix_ = "fpu" self.PickupInstructions = PickupInstructions self.PickupInstructions_nsprefix_ = None self.AdditionalComments = AdditionalComments @@ -1093,7 +1142,7 @@ def get_DeliveryInstructions(self): return self.DeliveryInstructions def set_DeliveryInstructions(self, DeliveryInstructions): self.DeliveryInstructions = DeliveryInstructions - def hasContent_(self): + def _hasContent(self): if ( self.Request is not None or self.PickupRequestConfirmationNumber is not None or @@ -1133,17 +1182,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='F showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightPickupRequest') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightPickupRequest') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightPickupRequest', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightPickupRequest', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightPickupRequest'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightPickupRequest'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightPickupRequest', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightPickupRequest', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1222,14 +1271,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Request': obj_ = RequestType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1350,7 +1399,7 @@ def __init__(self, Request=None, PickupRequestConfirmationNumber=None, gds_colle self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Request = Request - self.Request_nsprefix_ = None + self.Request_nsprefix_ = "common" self.PickupRequestConfirmationNumber = PickupRequestConfirmationNumber self.PickupRequestConfirmationNumber_nsprefix_ = None def factory(*args_, **kwargs_): @@ -1376,7 +1425,7 @@ def get_PickupRequestConfirmationNumber(self): return self.PickupRequestConfirmationNumber def set_PickupRequestConfirmationNumber(self, PickupRequestConfirmationNumber): self.PickupRequestConfirmationNumber = PickupRequestConfirmationNumber - def hasContent_(self): + def _hasContent(self): if ( self.Request is not None or self.PickupRequestConfirmationNumber is not None @@ -1399,17 +1448,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='F showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightCancelPickupRequest') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightCancelPickupRequest') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightCancelPickupRequest', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightCancelPickupRequest', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightCancelPickupRequest'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightCancelPickupRequest'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightCancelPickupRequest', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightCancelPickupRequest', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1427,14 +1476,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Request': obj_ = RequestType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1460,7 +1509,7 @@ def __init__(self, Response=None, PickupRequestConfirmationNumber=None, gds_coll self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Response = Response - self.Response_nsprefix_ = None + self.Response_nsprefix_ = "common" self.PickupRequestConfirmationNumber = PickupRequestConfirmationNumber self.PickupRequestConfirmationNumber_nsprefix_ = None def factory(*args_, **kwargs_): @@ -1486,7 +1535,7 @@ def get_PickupRequestConfirmationNumber(self): return self.PickupRequestConfirmationNumber def set_PickupRequestConfirmationNumber(self, PickupRequestConfirmationNumber): self.PickupRequestConfirmationNumber = PickupRequestConfirmationNumber - def hasContent_(self): + def _hasContent(self): if ( self.Response is not None or self.PickupRequestConfirmationNumber is not None @@ -1509,17 +1558,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='F showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightPickupResponse') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightPickupResponse') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightPickupResponse', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightPickupResponse', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightPickupResponse'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightPickupResponse'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightPickupResponse', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightPickupResponse', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1537,14 +1586,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Response': obj_ = ResponseType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1570,9 +1619,9 @@ def __init__(self, Response=None, FreightCancelStatus=None, gds_collector_=None, self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Response = Response - self.Response_nsprefix_ = None + self.Response_nsprefix_ = "common" self.FreightCancelStatus = FreightCancelStatus - self.FreightCancelStatus_nsprefix_ = None + self.FreightCancelStatus_nsprefix_ = "fpu" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1596,7 +1645,7 @@ def get_FreightCancelStatus(self): return self.FreightCancelStatus def set_FreightCancelStatus(self, FreightCancelStatus): self.FreightCancelStatus = FreightCancelStatus - def hasContent_(self): + def _hasContent(self): if ( self.Response is not None or self.FreightCancelStatus is not None @@ -1619,17 +1668,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='F showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightCancelPickupResponse') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightCancelPickupResponse') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightCancelPickupResponse', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightCancelPickupResponse', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightCancelPickupResponse'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightCancelPickupResponse'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightCancelPickupResponse', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightCancelPickupResponse', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1646,14 +1695,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Response': obj_ = ResponseType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1686,7 +1735,7 @@ def __init__(self, ThirdPartyIndicator=None, AttentionName=None, EMailAddress=No self.Name = Name self.Name_nsprefix_ = None self.Phone = Phone - self.Phone_nsprefix_ = None + self.Phone_nsprefix_ = "fpu" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1722,7 +1771,7 @@ def get_Phone(self): return self.Phone def set_Phone(self, Phone): self.Phone = Phone - def hasContent_(self): + def _hasContent(self): if ( self.ThirdPartyIndicator is not None or self.AttentionName is not None or @@ -1748,17 +1797,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequesterType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequesterType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequesterType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequesterType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RequesterType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RequesterType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RequesterType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RequesterType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1788,14 +1837,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ThirdPartyIndicator': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ThirdPartyIndicator') @@ -1892,7 +1941,7 @@ def get_CountryCode(self): return self.CountryCode def set_CountryCode(self, CountryCode): self.CountryCode = CountryCode - def hasContent_(self): + def _hasContent(self): if ( self.AddressLine or self.City is not None or @@ -1918,17 +1967,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AddressType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AddressType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AddressType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AddressType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1959,14 +2008,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AddressLine': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'AddressLine') @@ -2037,7 +2086,7 @@ def get_Extension(self): return self.Extension def set_Extension(self, Extension): self.Extension = Extension - def hasContent_(self): + def _hasContent(self): if ( self.Number is not None or self.Extension is not None @@ -2060,17 +2109,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PhoneType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PhoneType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PhoneType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PhoneType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PhoneType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PhoneType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PhoneType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PhoneType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2089,14 +2138,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Number': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Number') @@ -2127,9 +2176,9 @@ def __init__(self, AttentionName=None, Name=None, Address=None, Phone=None, EMai self.Name = Name self.Name_nsprefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "fpu" self.Phone = Phone - self.Phone_nsprefix_ = None + self.Phone_nsprefix_ = "fpu" self.EMailAddress = EMailAddress self.EMailAddress_nsprefix_ = None def factory(*args_, **kwargs_): @@ -2167,7 +2216,7 @@ def get_EMailAddress(self): return self.EMailAddress def set_EMailAddress(self, EMailAddress): self.EMailAddress = EMailAddress - def hasContent_(self): + def _hasContent(self): if ( self.AttentionName is not None or self.Name is not None or @@ -2193,17 +2242,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipFromType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipFromType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipFromType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipFromType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipFromType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipFromType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipFromType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipFromType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2232,14 +2281,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AttentionName': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'AttentionName') @@ -2284,9 +2333,9 @@ def __init__(self, AttentionName=None, Address=None, Phone=None, EMailAddress=No self.AttentionName = AttentionName self.AttentionName_nsprefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "fpu" self.Phone = Phone - self.Phone_nsprefix_ = None + self.Phone_nsprefix_ = "fpu" self.EMailAddress = EMailAddress self.EMailAddress_nsprefix_ = None def factory(*args_, **kwargs_): @@ -2320,7 +2369,7 @@ def get_EMailAddress(self): return self.EMailAddress def set_EMailAddress(self, EMailAddress): self.EMailAddress = EMailAddress - def hasContent_(self): + def _hasContent(self): if ( self.AttentionName is not None or self.Address is not None or @@ -2345,17 +2394,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipToType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipToType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipToType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipToType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipToType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipToType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipToType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipToType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2380,14 +2429,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AttentionName': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'AttentionName') @@ -2462,7 +2511,7 @@ def get_ExtremeLengthIndicator(self): return self.ExtremeLengthIndicator def set_ExtremeLengthIndicator(self, ExtremeLengthIndicator): self.ExtremeLengthIndicator = ExtremeLengthIndicator - def hasContent_(self): + def _hasContent(self): if ( self.FreezableProtectionIndicator is not None or self.LimitedAccessPickupIndicator is not None or @@ -2487,17 +2536,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentServiceOptionsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentServiceOptionsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentServiceOptionsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentServiceOptionsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentServiceOptionsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentServiceOptionsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentServiceOptionsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentServiceOptionsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2524,14 +2573,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'FreezableProtectionIndicator': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'FreezableProtectionIndicator') @@ -2572,13 +2621,13 @@ def __init__(self, HazmatIndicator=None, PackagingType=None, NumberOfPieces=None self.HazmatIndicator = HazmatIndicator self.HazmatIndicator_nsprefix_ = None self.PackagingType = PackagingType - self.PackagingType_nsprefix_ = None + self.PackagingType_nsprefix_ = "fpu" self.NumberOfPieces = NumberOfPieces self.NumberOfPieces_nsprefix_ = None self.DescriptionOfCommodity = DescriptionOfCommodity self.DescriptionOfCommodity_nsprefix_ = None self.Weight = Weight - self.Weight_nsprefix_ = None + self.Weight_nsprefix_ = "fpu" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -2614,7 +2663,7 @@ def get_Weight(self): return self.Weight def set_Weight(self, Weight): self.Weight = Weight - def hasContent_(self): + def _hasContent(self): if ( self.HazmatIndicator is not None or self.PackagingType is not None or @@ -2640,17 +2689,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentDetailType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentDetailType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentDetailType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentDetailType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentDetailType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentDetailType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentDetailType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentDetailType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2679,14 +2728,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'HazmatIndicator': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'HazmatIndicator') @@ -2755,7 +2804,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -2778,17 +2827,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupCodeDescriptionType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupCodeDescriptionType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupCodeDescriptionType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupCodeDescriptionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupCodeDescriptionType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupCodeDescriptionType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupCodeDescriptionType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupCodeDescriptionType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2807,14 +2856,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -2845,7 +2894,7 @@ def __init__(self, POMNumber=None, POMNumberType=None, PickupNotifications=None, self.POMNumberType = POMNumberType self.POMNumberType_nsprefix_ = None self.PickupNotifications = PickupNotifications - self.PickupNotifications_nsprefix_ = None + self.PickupNotifications_nsprefix_ = "fpu" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -2873,7 +2922,7 @@ def get_PickupNotifications(self): return self.PickupNotifications def set_PickupNotifications(self, PickupNotifications): self.PickupNotifications = PickupNotifications - def hasContent_(self): + def _hasContent(self): if ( self.POMNumber is not None or self.POMNumberType is not None or @@ -2897,17 +2946,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='POMType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='POMType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='POMType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='POMType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='POMType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='POMType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='POMType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='POMType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2929,14 +2978,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'POMNumber': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'POMNumber') @@ -2973,7 +3022,7 @@ def __init__(self, CompanyName=None, EMailNotification=None, FailedEMail=None, g self.EMailNotification = [] else: self.EMailNotification = EMailNotification - self.EMailNotification_nsprefix_ = None + self.EMailNotification_nsprefix_ = "fpu" self.FailedEMail = FailedEMail self.FailedEMail_nsprefix_ = None def factory(*args_, **kwargs_): @@ -3009,7 +3058,7 @@ def get_FailedEMail(self): return self.FailedEMail def set_FailedEMail(self, FailedEMail): self.FailedEMail = FailedEMail - def hasContent_(self): + def _hasContent(self): if ( self.CompanyName is not None or self.EMailNotification or @@ -3033,17 +3082,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupNotificationsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupNotificationsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupNotificationsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupNotificationsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupNotificationsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupNotificationsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupNotificationsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupNotificationsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3065,14 +3114,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CompanyName': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CompanyName') @@ -3104,7 +3153,7 @@ def __init__(self, UnitOfMeasurement=None, Value=None, gds_collector_=None, **kw self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.UnitOfMeasurement = UnitOfMeasurement - self.UnitOfMeasurement_nsprefix_ = None + self.UnitOfMeasurement_nsprefix_ = "fpu" self.Value = Value self.Value_nsprefix_ = None def factory(*args_, **kwargs_): @@ -3130,7 +3179,7 @@ def get_Value(self): return self.Value def set_Value(self, Value): self.Value = Value - def hasContent_(self): + def _hasContent(self): if ( self.UnitOfMeasurement is not None or self.Value is not None @@ -3153,17 +3202,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='W showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='WeightType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='WeightType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='WeightType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='WeightType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='WeightType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='WeightType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='WeightType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='WeightType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3181,14 +3230,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'UnitOfMeasurement': obj_ = UnitOfMeasurementType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -3240,7 +3289,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -3263,17 +3312,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='U showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UnitOfMeasurementType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UnitOfMeasurementType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UnitOfMeasurementType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UnitOfMeasurementType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UnitOfMeasurementType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UnitOfMeasurementType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UnitOfMeasurementType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UnitOfMeasurementType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3292,14 +3341,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -3352,7 +3401,7 @@ def get_BOLID(self): return self.BOLID def set_BOLID(self, BOLID): self.BOLID = BOLID - def hasContent_(self): + def _hasContent(self): if ( self.ShipmentNumber is not None or self.BOLID is not None @@ -3375,17 +3424,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='E showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ExistingShipmentIDType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ExistingShipmentIDType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ExistingShipmentIDType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ExistingShipmentIDType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ExistingShipmentIDType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ExistingShipmentIDType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ExistingShipmentIDType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ExistingShipmentIDType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3404,14 +3453,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ShipmentNumber': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ShipmentNumber') @@ -3473,7 +3522,7 @@ def insert_EventType_at(self, index, value): self.EventType.insert(index, value) def replace_EventType_at(self, index, value): self.EventType[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.EMailAddress is not None or self.EventType @@ -3496,17 +3545,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='E showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='EMailNotificationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='EMailNotificationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='EMailNotificationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='EMailNotificationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='EMailNotificationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='EMailNotificationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='EMailNotificationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='EMailNotificationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3525,14 +3574,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'EMailAddress': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'EMailAddress') @@ -3585,7 +3634,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -3608,17 +3657,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CancelStatusCodeDescriptionType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CancelStatusCodeDescriptionType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CancelStatusCodeDescriptionType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CancelStatusCodeDescriptionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CancelStatusCodeDescriptionType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CancelStatusCodeDescriptionType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CancelStatusCodeDescriptionType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CancelStatusCodeDescriptionType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3637,14 +3686,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -3700,7 +3749,7 @@ def insert_Property_at(self, index, value): self.Property.insert(index, value) def replace_Property_at(self, index, value): self.Property[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Property ): @@ -3722,17 +3771,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ClientInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ClientInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ClientInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ClientInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ClientInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ClientInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ClientInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ClientInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3746,14 +3795,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Property': obj_ = PropertyType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -3780,7 +3829,7 @@ def __init__(self, RequestOption=None, SubVersion=None, TransactionReference=Non self.SubVersion = SubVersion self.SubVersion_nsprefix_ = None self.TransactionReference = TransactionReference - self.TransactionReference_nsprefix_ = None + self.TransactionReference_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -3814,7 +3863,7 @@ def get_TransactionReference(self): return self.TransactionReference def set_TransactionReference(self, TransactionReference): self.TransactionReference = TransactionReference - def hasContent_(self): + def _hasContent(self): if ( self.RequestOption or self.SubVersion is not None or @@ -3838,17 +3887,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='RequestType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='RequestType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='RequestType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='RequestType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3870,14 +3919,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'RequestOption': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'RequestOption') @@ -3935,7 +3984,7 @@ def get_TransactionIdentifier(self): return self.TransactionIdentifier def set_TransactionIdentifier(self, TransactionIdentifier): self.TransactionIdentifier = TransactionIdentifier - def hasContent_(self): + def _hasContent(self): if ( self.CustomerContext is not None or self.TransactionIdentifier is not None @@ -3958,17 +4007,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionReferenceType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionReferenceType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionReferenceType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionReferenceType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='TransactionReferenceType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='TransactionReferenceType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='TransactionReferenceType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='TransactionReferenceType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3987,14 +4036,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CustomerContext': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CustomerContext') @@ -4021,19 +4070,19 @@ def __init__(self, ResponseStatus=None, Alert=None, AlertDetail=None, Transactio self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.ResponseStatus = ResponseStatus - self.ResponseStatus_nsprefix_ = None + self.ResponseStatus_nsprefix_ = "common" if Alert is None: self.Alert = [] else: self.Alert = Alert - self.Alert_nsprefix_ = None + self.Alert_nsprefix_ = "common" if AlertDetail is None: self.AlertDetail = [] else: self.AlertDetail = AlertDetail - self.AlertDetail_nsprefix_ = None + self.AlertDetail_nsprefix_ = "common" self.TransactionReference = TransactionReference - self.TransactionReference_nsprefix_ = None + self.TransactionReference_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -4077,7 +4126,7 @@ def get_TransactionReference(self): return self.TransactionReference def set_TransactionReference(self, TransactionReference): self.TransactionReference = TransactionReference - def hasContent_(self): + def _hasContent(self): if ( self.ResponseStatus is not None or self.Alert or @@ -4102,17 +4151,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ResponseType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ResponseType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ResponseType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ResponseType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4135,14 +4184,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ResponseStatus': obj_ = CodeDescriptionType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -4203,7 +4252,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -4226,17 +4275,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeDescriptionType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeDescriptionType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeDescriptionType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeDescriptionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='CodeDescriptionType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='CodeDescriptionType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='CodeDescriptionType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='CodeDescriptionType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4255,14 +4304,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -4293,7 +4342,7 @@ def __init__(self, Code=None, Description=None, ElementLevelInformation=None, gd self.Description = Description self.Description_nsprefix_ = None self.ElementLevelInformation = ElementLevelInformation - self.ElementLevelInformation_nsprefix_ = None + self.ElementLevelInformation_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -4321,7 +4370,7 @@ def get_ElementLevelInformation(self): return self.ElementLevelInformation def set_ElementLevelInformation(self, ElementLevelInformation): self.ElementLevelInformation = ElementLevelInformation - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None or @@ -4345,17 +4394,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DetailType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DetailType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DetailType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DetailType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='DetailType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='DetailType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='DetailType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='DetailType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4377,14 +4426,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -4421,7 +4470,7 @@ def __init__(self, Level=None, ElementIdentifier=None, gds_collector_=None, **kw self.ElementIdentifier = [] else: self.ElementIdentifier = ElementIdentifier - self.ElementIdentifier_nsprefix_ = None + self.ElementIdentifier_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -4451,7 +4500,7 @@ def insert_ElementIdentifier_at(self, index, value): self.ElementIdentifier.insert(index, value) def replace_ElementIdentifier_at(self, index, value): self.ElementIdentifier[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Level is not None or self.ElementIdentifier @@ -4474,17 +4523,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementLevelInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementLevelInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementLevelInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementLevelInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementLevelInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementLevelInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementLevelInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementLevelInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4502,14 +4551,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Level': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Level') @@ -4561,7 +4610,7 @@ def get_Value(self): return self.Value def set_Value(self, Value): self.Value = Value - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Value is not None @@ -4584,17 +4633,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementIdentifierType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementIdentifierType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementIdentifierType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementIdentifierType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementIdentifierType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementIdentifierType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementIdentifierType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementIdentifierType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4613,14 +4662,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -4670,7 +4719,7 @@ def set_Key(self, Key): self.Key = Key def get_valueOf_(self): return self.valueOf_ def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_ - def hasContent_(self): + def _hasContent(self): if ( (1 if type(self.valueOf_) in [int,float] else self.valueOf_) ): @@ -4692,19 +4741,19 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PropertyType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PropertyType') + if self._hasContent(): outfile.write('>') outfile.write(self.convert_unicode(self.valueOf_)) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PropertyType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PropertyType', pretty_print=pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PropertyType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PropertyType'): if self.Key is not None and 'Key' not in already_processed: already_processed.add('Key') outfile.write(' Key=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.Key), input_name='Key')), )) - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PropertyType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PropertyType', fromsubclass_=False, pretty_print=True): pass def build(self, node, gds_collector_=None): self.gds_collector_ = gds_collector_ @@ -4712,18 +4761,18 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) self.valueOf_ = get_all_text_(node) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('Key', node) if value is not None and 'Key' not in already_processed: already_processed.add('Key') self.Key = value - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): pass # end class PropertyType @@ -4802,7 +4851,8 @@ def parse(inFileName, silence=False, print_warnings=True): return rootObj -def parseEtree(inFileName, silence=False, print_warnings=True): +def parseEtree(inFileName, silence=False, print_warnings=True, + mapping=None, reverse_mapping=None, nsmap=None): parser = None doc = parsexml_(inFileName, parser) gds_collector = GdsCollector_() @@ -4813,10 +4863,15 @@ def parseEtree(inFileName, silence=False, print_warnings=True): rootClass = FreightPickupRequest rootObj = rootClass.factory() rootObj.build(rootNode, gds_collector_=gds_collector) + if mapping is None: + mapping = {} + if reverse_mapping is None: + reverse_mapping = {} + rootElement = rootObj.to_etree( + None, name_=rootTag, mapping_=mapping, + reverse_mapping_=reverse_mapping, nsmap_=nsmap) + reverse_node_mapping = rootObj.gds_reverse_node_mapping(mapping) # Enable Python to collect the space used by the DOM. - mapping = {} - rootElement = rootObj.to_etree(None, name_=rootTag, mapping_=mapping) - reverse_mapping = rootObj.gds_reverse_node_mapping(mapping) if not SaveElementTreeNode: doc = None rootNode = None @@ -4833,7 +4888,7 @@ def parseEtree(inFileName, silence=False, print_warnings=True): len(gds_collector.get_messages()), )) gds_collector.write_messages(sys.stderr) sys.stderr.write(separator) - return rootObj, rootElement, mapping, reverse_mapping + return rootObj, rootElement, mapping, reverse_node_mapping def parseString(inString, silence=False, print_warnings=True): @@ -4917,6 +4972,80 @@ def main(): RenameMappings_ = { } +# +# Mapping of namespaces to types defined in them +# and the file in which each is defined. +# simpleTypes are marked "ST" and complexTypes "CT". +NamespaceToDefMappings_ = {'http://www.ups.com/XMLSchema/XOLTWS/Common/v1.0': [('ClientInformationType', + './schemas/common.xsd', + 'CT'), + ('RequestType', + './schemas/common.xsd', + 'CT'), + ('TransactionReferenceType', + './schemas/common.xsd', + 'CT'), + ('ResponseType', + './schemas/common.xsd', + 'CT'), + ('CodeDescriptionType', + './schemas/common.xsd', + 'CT'), + ('DetailType', + './schemas/common.xsd', + 'CT'), + ('ElementLevelInformationType', + './schemas/common.xsd', + 'CT'), + ('ElementIdentifierType', + './schemas/common.xsd', + 'CT')], + 'http://www.ups.com/XMLSchema/XOLTWS/FreightPickup/v1.0': [('RequesterType', + './schemas/FreightPickupWebServiceSchema.xsd', + 'CT'), + ('AddressType', + './schemas/FreightPickupWebServiceSchema.xsd', + 'CT'), + ('PhoneType', + './schemas/FreightPickupWebServiceSchema.xsd', + 'CT'), + ('ShipFromType', + './schemas/FreightPickupWebServiceSchema.xsd', + 'CT'), + ('ShipToType', + './schemas/FreightPickupWebServiceSchema.xsd', + 'CT'), + ('ShipmentServiceOptionsType', + './schemas/FreightPickupWebServiceSchema.xsd', + 'CT'), + ('ShipmentDetailType', + './schemas/FreightPickupWebServiceSchema.xsd', + 'CT'), + ('PickupCodeDescriptionType', + './schemas/FreightPickupWebServiceSchema.xsd', + 'CT'), + ('POMType', + './schemas/FreightPickupWebServiceSchema.xsd', + 'CT'), + ('PickupNotificationsType', + './schemas/FreightPickupWebServiceSchema.xsd', + 'CT'), + ('WeightType', + './schemas/FreightPickupWebServiceSchema.xsd', + 'CT'), + ('UnitOfMeasurementType', + './schemas/FreightPickupWebServiceSchema.xsd', + 'CT'), + ('ExistingShipmentIDType', + './schemas/FreightPickupWebServiceSchema.xsd', + 'CT'), + ('EMailNotificationType', + './schemas/FreightPickupWebServiceSchema.xsd', + 'CT'), + ('CancelStatusCodeDescriptionType', + './schemas/FreightPickupWebServiceSchema.xsd', + 'CT')]} + __all__ = [ "AddressType", "CancelStatusCodeDescriptionType", diff --git a/schemas/ups/ups_lib/freight_rate_web_service_schema.py b/schemas/ups/ups_lib/freight_rate_web_service_schema.py index b1e83b1ac1..4079b7f5c3 100644 --- a/schemas/ups/ups_lib/freight_rate_web_service_schema.py +++ b/schemas/ups/ups_lib/freight_rate_web_service_schema.py @@ -2,34 +2,35 @@ # -*- coding: utf-8 -*- # -# Generated Sat Mar 7 09:04:14 2020 by generateDS.py version 2.35.15. -# Python 3.8.1 (v3.8.1:1b293b6006, Dec 18 2019, 14:08:53) [Clang 6.0 (clang-600.0.57)] +# Generated Wed Nov 10 10:00:59 2021 by generateDS.py version 2.40.5. +# Python 3.8.6 (v3.8.6:db455296be, Sep 23 2020, 13:31:39) [Clang 6.0 (clang-600.0.57)] # # Command line options: # ('--no-namespace-defs', '') -# ('-o', './python/freight_rate_web_service_schema.py') +# ('-o', './ups_lib/freight_rate_web_service_schema.py') # # Command line arguments: # ./schemas/FreightRateWebServiceSchema.xsd # # Command line: -# /Users/danielkobina/Documents/Open/.env/bin/generateDS --no-namespace-defs -o "./python/freight_rate_web_service_schema.py" ./schemas/FreightRateWebServiceSchema.xsd +# /Users/danielkobina/Workspace/project/purplship/.venv/purplship/bin/generateDS --no-namespace-defs -o "./ups_lib/freight_rate_web_service_schema.py" ./schemas/FreightRateWebServiceSchema.xsd # # Current working directory (os.getcwd()): -# 2020-03 +# ups # +import sys +try: + ModulenotfoundExp_ = ModuleNotFoundError +except NameError: + ModulenotfoundExp_ = ImportError from six.moves import zip_longest import os -import sys import re as re_ import base64 import datetime as datetime_ import decimal as decimal_ -try: - from lxml import etree as etree_ -except ImportError: - from xml.etree import ElementTree as etree_ +from lxml import etree as etree_ Validate_simpletypes_ = True @@ -92,7 +93,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # Additionally, the generatedsnamespaces module can contain a python # dictionary named GenerateDSNamespaceTypePrefixes that associates element # types with the namespace prefixes that are to be added to the -# "xsi:type" attribute value. See the exportAttributes method of +# "xsi:type" attribute value. See the _exportAttributes method of # any generated element type and the generation of "xsi:type" for an # example of the use of this table. # An example table: @@ -107,11 +108,11 @@ def parsexmlstring_(instring, parser=None, **kwargs): try: from generatedsnamespaces import GenerateDSNamespaceDefs as GenerateDSNamespaceDefs_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceDefs_ = {} try: from generatedsnamespaces import GenerateDSNamespaceTypePrefixes as GenerateDSNamespaceTypePrefixes_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceTypePrefixes_ = {} # @@ -122,7 +123,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # try: from generatedscollector import GdsCollector as GdsCollector_ -except ImportError: +except ModulenotfoundExp_ : class GdsCollector_(object): @@ -156,7 +157,7 @@ def write_messages(self, outstream): try: from enum import Enum -except ImportError: +except ModulenotfoundExp_ : Enum = object # @@ -168,9 +169,14 @@ def write_messages(self, outstream): try: from generatedssuper import GeneratedsSuper -except ImportError as exp: +except ModulenotfoundExp_ as exp: + try: + from generatedssupersuper import GeneratedsSuperSuper + except ModulenotfoundExp_ as exp: + class GeneratedsSuperSuper(object): + pass - class GeneratedsSuper(object): + class GeneratedsSuper(GeneratedsSuperSuper): __hash__ = object.__hash__ tzoff_pattern = re_.compile(r'(\+|-)((0\d|1[0-3]):[0-5]\d|14:00)$') class _FixedOffsetTZ(datetime_.tzinfo): @@ -183,6 +189,30 @@ def tzname(self, dt): return self.__name def dst(self, dt): return None + def __str__(self): + settings = { + 'str_pretty_print': True, + 'str_indent_level': 0, + 'str_namespaceprefix': '', + 'str_name': None, + 'str_namespacedefs': '', + } + for n in settings: + if hasattr(self, n): + setattr(settings[n], self[n]) + from io import StringIO + output = StringIO() + self.export( + output, + settings['str_indent_level'], + pretty_print=settings['str_pretty_print'], + namespaceprefix_=settings['str_namespaceprefix'], + name_=settings['str_name'], + namespacedef_=settings['str_namespacedefs'] + ) + strval = output.getvalue() + output.close() + return strval def gds_format_string(self, input_data, input_name=''): return input_data def gds_parse_string(self, input_data, node=None, input_name=''): @@ -193,11 +223,11 @@ def gds_validate_string(self, input_data, node=None, input_name=''): else: return input_data def gds_format_base64(self, input_data, input_name=''): - return base64.b64encode(input_data) + return base64.b64encode(input_data).decode('ascii') def gds_validate_base64(self, input_data, node=None, input_name=''): return input_data def gds_format_integer(self, input_data, input_name=''): - return '%d' % input_data + return '%d' % int(input_data) def gds_parse_integer(self, input_data, node=None, input_name=''): try: ival = int(input_data) @@ -211,6 +241,8 @@ def gds_validate_integer(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires integer value') return value def gds_format_integer_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_integer_list( self, input_data, node=None, input_name=''): @@ -219,10 +251,10 @@ def gds_validate_integer_list( try: int(value) except (TypeError, ValueError): - raise_parse_error(node, 'Requires sequence of integer valuess') + raise_parse_error(node, 'Requires sequence of integer values') return values def gds_format_float(self, input_data, input_name=''): - return ('%.15f' % input_data).rstrip('0') + return ('%.15f' % float(input_data)).rstrip('0') def gds_parse_float(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -236,6 +268,8 @@ def gds_validate_float(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires float value') return value def gds_format_float_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_float_list( self, input_data, node=None, input_name=''): @@ -247,7 +281,12 @@ def gds_validate_float_list( raise_parse_error(node, 'Requires sequence of float values') return values def gds_format_decimal(self, input_data, input_name=''): - return ('%s' % input_data).rstrip('0') + return_value = '%s' % input_data + if '.' in return_value: + return_value = return_value.rstrip('0') + if return_value.endswith('.'): + return_value = return_value.rstrip('.') + return return_value def gds_parse_decimal(self, input_data, node=None, input_name=''): try: decimal_value = decimal_.Decimal(input_data) @@ -261,7 +300,9 @@ def gds_validate_decimal(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires decimal value') return value def gds_format_decimal_list(self, input_data, input_name=''): - return '%s' % ' '.join(input_data) + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] + return ' '.join([self.gds_format_decimal(item) for item in input_data]) def gds_validate_decimal_list( self, input_data, node=None, input_name=''): values = input_data.split() @@ -272,7 +313,7 @@ def gds_validate_decimal_list( raise_parse_error(node, 'Requires sequence of decimal values') return values def gds_format_double(self, input_data, input_name=''): - return '%e' % input_data + return '%s' % input_data def gds_parse_double(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -286,6 +327,8 @@ def gds_validate_double(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires double or float value') return value def gds_format_double_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_double_list( self, input_data, node=None, input_name=''): @@ -315,11 +358,14 @@ def gds_validate_boolean(self, input_data, node=None, input_name=''): '(one of True, 1, False, 0)') return input_data def gds_format_boolean_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_boolean_list( self, input_data, node=None, input_name=''): values = input_data.split() for value in values: + value = self.gds_parse_boolean(value, node, input_name) if value not in (True, 1, False, 0, ): raise_parse_error( node, @@ -766,7 +812,10 @@ def find_attr_value_(attr_name, node): value = attrs.get(attr_name) elif len(attr_parts) == 2: prefix, name = attr_parts - namespace = node.nsmap.get(prefix) + if prefix == 'xml': + namespace = 'http://www.w3.org/XML/1998/namespace' + else: + namespace = node.nsmap.get(prefix) if namespace is not None: value = attrs.get('{%s}%s' % (namespace, name, )) return value @@ -847,7 +896,7 @@ def exportSimple(self, outfile, level, name): self.name, base64.b64encode(self.value), self.name)) - def to_etree(self, element): + def to_etree(self, element, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.category == MixedContainer.CategoryText: # Prevent exporting empty content as empty lines. if self.value.strip(): @@ -867,7 +916,7 @@ def to_etree(self, element): subelement.text = self.to_etree_simple() else: # category == MixedContainer.CategoryComplex self.value.to_etree(element) - def to_etree_simple(self): + def to_etree_simple(self, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.content_type == MixedContainer.TypeString: text = self.value elif (self.content_type == MixedContainer.TypeInteger or @@ -956,38 +1005,38 @@ def __init__(self, Request=None, ShipFrom=None, ShipTo=None, PaymentInformation= self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Request = Request - self.Request_nsprefix_ = None + self.Request_nsprefix_ = "common" self.ShipFrom = ShipFrom - self.ShipFrom_nsprefix_ = None + self.ShipFrom_nsprefix_ = "frt" self.ShipTo = ShipTo - self.ShipTo_nsprefix_ = None + self.ShipTo_nsprefix_ = "frt" self.PaymentInformation = PaymentInformation - self.PaymentInformation_nsprefix_ = None + self.PaymentInformation_nsprefix_ = "frt" self.Service = Service - self.Service_nsprefix_ = None + self.Service_nsprefix_ = "frt" self.HandlingUnitOne = HandlingUnitOne - self.HandlingUnitOne_nsprefix_ = None + self.HandlingUnitOne_nsprefix_ = "frt" self.HandlingUnitTwo = HandlingUnitTwo - self.HandlingUnitTwo_nsprefix_ = None + self.HandlingUnitTwo_nsprefix_ = "frt" if Commodity is None: self.Commodity = [] else: self.Commodity = Commodity - self.Commodity_nsprefix_ = None + self.Commodity_nsprefix_ = "frt" self.ShipmentServiceOptions = ShipmentServiceOptions - self.ShipmentServiceOptions_nsprefix_ = None + self.ShipmentServiceOptions_nsprefix_ = "frt" self.PickupRequest = PickupRequest - self.PickupRequest_nsprefix_ = None + self.PickupRequest_nsprefix_ = "frt" self.AlternateRateOptions = AlternateRateOptions - self.AlternateRateOptions_nsprefix_ = None + self.AlternateRateOptions_nsprefix_ = "frt" self.GFPOptions = GFPOptions - self.GFPOptions_nsprefix_ = None + self.GFPOptions_nsprefix_ = "frt" self.AccountType = AccountType - self.AccountType_nsprefix_ = None + self.AccountType_nsprefix_ = "frt" self.ShipmentTotalWeight = ShipmentTotalWeight - self.ShipmentTotalWeight_nsprefix_ = None + self.ShipmentTotalWeight_nsprefix_ = "frt" self.HandlingUnitWeight = HandlingUnitWeight - self.HandlingUnitWeight_nsprefix_ = None + self.HandlingUnitWeight_nsprefix_ = "frt" self.AdjustedWeightIndicator = AdjustedWeightIndicator self.AdjustedWeightIndicator_nsprefix_ = None self.TimeInTransitIndicator = TimeInTransitIndicator @@ -996,7 +1045,7 @@ def __init__(self, Request=None, ShipFrom=None, ShipTo=None, PaymentInformation= self.HandlingUnits = [] else: self.HandlingUnits = HandlingUnits - self.HandlingUnits_nsprefix_ = None + self.HandlingUnits_nsprefix_ = "frt" self.AdjustedHeightIndicator = AdjustedHeightIndicator self.AdjustedHeightIndicator_nsprefix_ = None self.DensityEligibleIndicator = DensityEligibleIndicator @@ -1114,7 +1163,7 @@ def get_QuoteNumberIndicator(self): return self.QuoteNumberIndicator def set_QuoteNumberIndicator(self, QuoteNumberIndicator): self.QuoteNumberIndicator = QuoteNumberIndicator - def hasContent_(self): + def _hasContent(self): if ( self.Request is not None or self.ShipFrom is not None or @@ -1156,17 +1205,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='F showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightRateRequest') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightRateRequest') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightRateRequest', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightRateRequest', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightRateRequest'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightRateRequest'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightRateRequest', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightRateRequest', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1245,14 +1294,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Request': obj_ = RequestType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1377,29 +1426,29 @@ def __init__(self, Response=None, CustomerServiceCenterPhone=None, Rate=None, Fr self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Response = Response - self.Response_nsprefix_ = None + self.Response_nsprefix_ = "common" self.CustomerServiceCenterPhone = CustomerServiceCenterPhone - self.CustomerServiceCenterPhone_nsprefix_ = None + self.CustomerServiceCenterPhone_nsprefix_ = "frt" if Rate is None: self.Rate = [] else: self.Rate = Rate - self.Rate_nsprefix_ = None + self.Rate_nsprefix_ = "frt" self.FreightDensityRate = FreightDensityRate - self.FreightDensityRate_nsprefix_ = None + self.FreightDensityRate_nsprefix_ = "frt" if Commodity is None: self.Commodity = [] else: self.Commodity = Commodity - self.Commodity_nsprefix_ = None + self.Commodity_nsprefix_ = "frt" self.TotalShipmentCharge = TotalShipmentCharge - self.TotalShipmentCharge_nsprefix_ = None + self.TotalShipmentCharge_nsprefix_ = "frt" self.BillableShipmentWeight = BillableShipmentWeight - self.BillableShipmentWeight_nsprefix_ = None + self.BillableShipmentWeight_nsprefix_ = "frt" self.DimensionalWeight = DimensionalWeight - self.DimensionalWeight_nsprefix_ = None + self.DimensionalWeight_nsprefix_ = "frt" self.Service = Service - self.Service_nsprefix_ = None + self.Service_nsprefix_ = "frt" self.GuaranteedIndicator = GuaranteedIndicator self.GuaranteedIndicator_nsprefix_ = None self.MinimumChargeAppliedIndicator = MinimumChargeAppliedIndicator @@ -1408,19 +1457,19 @@ def __init__(self, Response=None, CustomerServiceCenterPhone=None, Rate=None, Fr self.AlternateRatesResponse = [] else: self.AlternateRatesResponse = AlternateRatesResponse - self.AlternateRatesResponse_nsprefix_ = None + self.AlternateRatesResponse_nsprefix_ = "frt" self.MinimumBillableWeightAppliedIndicator = MinimumBillableWeightAppliedIndicator self.MinimumBillableWeightAppliedIndicator_nsprefix_ = None self.RatingSchedule = RatingSchedule - self.RatingSchedule_nsprefix_ = None + self.RatingSchedule_nsprefix_ = "frt" self.HoldAtAirportPickupDate = HoldAtAirportPickupDate self.HoldAtAirportPickupDate_nsprefix_ = None self.NextAvailablePickupDate = NextAvailablePickupDate self.NextAvailablePickupDate_nsprefix_ = None self.TimeInTransit = TimeInTransit - self.TimeInTransit_nsprefix_ = None + self.TimeInTransit_nsprefix_ = "frt" self.HandlingUnits = HandlingUnits - self.HandlingUnits_nsprefix_ = None + self.HandlingUnits_nsprefix_ = "frt" self.QuoteNumber = QuoteNumber self.QuoteNumber_nsprefix_ = None def factory(*args_, **kwargs_): @@ -1532,7 +1581,7 @@ def get_QuoteNumber(self): return self.QuoteNumber def set_QuoteNumber(self, QuoteNumber): self.QuoteNumber = QuoteNumber - def hasContent_(self): + def _hasContent(self): if ( self.Response is not None or self.CustomerServiceCenterPhone is not None or @@ -1572,17 +1621,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='F showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightRateResponse') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightRateResponse') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightRateResponse', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightRateResponse', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightRateResponse'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightRateResponse'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightRateResponse', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightRateResponse', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1656,14 +1705,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Response': obj_ = ResponseType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1805,7 +1854,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -1828,17 +1877,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AccountType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AccountType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AccountType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AccountType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AccountType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AccountType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AccountType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AccountType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1857,14 +1906,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -1893,7 +1942,7 @@ def __init__(self, Value=None, UnitOfMeasurement=None, gds_collector_=None, **kw self.Value = Value self.Value_nsprefix_ = None self.UnitOfMeasurement = UnitOfMeasurement - self.UnitOfMeasurement_nsprefix_ = None + self.UnitOfMeasurement_nsprefix_ = "frt" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1917,7 +1966,7 @@ def get_UnitOfMeasurement(self): return self.UnitOfMeasurement def set_UnitOfMeasurement(self, UnitOfMeasurement): self.UnitOfMeasurement = UnitOfMeasurement - def hasContent_(self): + def _hasContent(self): if ( self.Value is not None or self.UnitOfMeasurement is not None @@ -1940,17 +1989,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentTotalWeightType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentTotalWeightType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentTotalWeightType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentTotalWeightType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentTotalWeightType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentTotalWeightType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentTotalWeightType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentTotalWeightType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1968,14 +2017,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Value': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Value') @@ -2003,7 +2052,7 @@ def __init__(self, Value=None, UnitOfMeasurement=None, gds_collector_=None, **kw self.Value = Value self.Value_nsprefix_ = None self.UnitOfMeasurement = UnitOfMeasurement - self.UnitOfMeasurement_nsprefix_ = None + self.UnitOfMeasurement_nsprefix_ = "frt" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -2027,7 +2076,7 @@ def get_UnitOfMeasurement(self): return self.UnitOfMeasurement def set_UnitOfMeasurement(self, UnitOfMeasurement): self.UnitOfMeasurement = UnitOfMeasurement - def hasContent_(self): + def _hasContent(self): if ( self.Value is not None or self.UnitOfMeasurement is not None @@ -2050,17 +2099,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='H showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HandlingUnitWeightType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HandlingUnitWeightType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HandlingUnitWeightType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HandlingUnitWeightType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HandlingUnitWeightType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HandlingUnitWeightType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HandlingUnitWeightType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HandlingUnitWeightType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2078,14 +2127,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Value': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Value') @@ -2111,18 +2160,18 @@ def __init__(self, AlternateRateType=None, Rate=None, FreightDensityRate=None, B self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.AlternateRateType = AlternateRateType - self.AlternateRateType_nsprefix_ = None + self.AlternateRateType_nsprefix_ = "frt" if Rate is None: self.Rate = [] else: self.Rate = Rate - self.Rate_nsprefix_ = None + self.Rate_nsprefix_ = "frt" self.FreightDensityRate = FreightDensityRate - self.FreightDensityRate_nsprefix_ = None + self.FreightDensityRate_nsprefix_ = "frt" self.BillableShipmentWeight = BillableShipmentWeight - self.BillableShipmentWeight_nsprefix_ = None + self.BillableShipmentWeight_nsprefix_ = "frt" self.TimeInTransit = TimeInTransit - self.TimeInTransit_nsprefix_ = None + self.TimeInTransit_nsprefix_ = "frt" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -2164,7 +2213,7 @@ def get_TimeInTransit(self): return self.TimeInTransit def set_TimeInTransit(self, TimeInTransit): self.TimeInTransit = TimeInTransit - def hasContent_(self): + def _hasContent(self): if ( self.AlternateRateType is not None or self.Rate or @@ -2190,17 +2239,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AlternateRatesResponseType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AlternateRatesResponseType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AlternateRatesResponseType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AlternateRatesResponseType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AlternateRatesResponseType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AlternateRatesResponseType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AlternateRatesResponseType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AlternateRatesResponseType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2226,14 +2275,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AlternateRateType': obj_ = RateCodeDescriptionType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -2275,7 +2324,7 @@ def __init__(self, Name=None, Address=None, AttentionName=None, TariffPoint=None self.Name = Name self.Name_nsprefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "frt" self.AttentionName = AttentionName self.AttentionName_nsprefix_ = None self.TariffPoint = TariffPoint @@ -2311,7 +2360,7 @@ def get_TariffPoint(self): return self.TariffPoint def set_TariffPoint(self, TariffPoint): self.TariffPoint = TariffPoint - def hasContent_(self): + def _hasContent(self): if ( self.Name is not None or self.Address is not None or @@ -2336,17 +2385,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipFromType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipFromType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipFromType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipFromType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipFromType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipFromType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipFromType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipFromType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2372,14 +2421,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Name': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Name') @@ -2419,7 +2468,7 @@ def __init__(self, Name=None, Address=None, AttentionName=None, TariffPoint=None self.Name = Name self.Name_nsprefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "frt" self.AttentionName = AttentionName self.AttentionName_nsprefix_ = None self.TariffPoint = TariffPoint @@ -2455,7 +2504,7 @@ def get_TariffPoint(self): return self.TariffPoint def set_TariffPoint(self, TariffPoint): self.TariffPoint = TariffPoint - def hasContent_(self): + def _hasContent(self): if ( self.Name is not None or self.Address is not None or @@ -2480,17 +2529,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipToType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipToType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipToType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipToType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipToType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipToType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipToType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipToType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2516,14 +2565,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Name': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Name') @@ -2561,9 +2610,9 @@ def __init__(self, Payer=None, ShipmentBillingOption=None, gds_collector_=None, self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Payer = Payer - self.Payer_nsprefix_ = None + self.Payer_nsprefix_ = "frt" self.ShipmentBillingOption = ShipmentBillingOption - self.ShipmentBillingOption_nsprefix_ = None + self.ShipmentBillingOption_nsprefix_ = "frt" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -2587,7 +2636,7 @@ def get_ShipmentBillingOption(self): return self.ShipmentBillingOption def set_ShipmentBillingOption(self, ShipmentBillingOption): self.ShipmentBillingOption = ShipmentBillingOption - def hasContent_(self): + def _hasContent(self): if ( self.Payer is not None or self.ShipmentBillingOption is not None @@ -2610,17 +2659,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PaymentInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PaymentInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PaymentInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PaymentInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PaymentInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PaymentInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PaymentInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PaymentInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2637,14 +2686,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Payer': obj_ = PayerType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -2671,7 +2720,7 @@ def __init__(self, Name=None, Address=None, ShipperNumber=None, AttentionName=No self.Name = Name self.Name_nsprefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "frt" self.ShipperNumber = ShipperNumber self.ShipperNumber_nsprefix_ = None self.AttentionName = AttentionName @@ -2707,7 +2756,7 @@ def get_AttentionName(self): return self.AttentionName def set_AttentionName(self, AttentionName): self.AttentionName = AttentionName - def hasContent_(self): + def _hasContent(self): if ( self.Name is not None or self.Address is not None or @@ -2732,17 +2781,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PayerType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PayerType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PayerType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PayerType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PayerType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PayerType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PayerType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PayerType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2768,14 +2817,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Name': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Name') @@ -2878,7 +2927,7 @@ def get_ResidentialAddressIndicator(self): return self.ResidentialAddressIndicator def set_ResidentialAddressIndicator(self, ResidentialAddressIndicator): self.ResidentialAddressIndicator = ResidentialAddressIndicator - def hasContent_(self): + def _hasContent(self): if ( self.AddressLine or self.City is not None or @@ -2906,17 +2955,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AddressType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AddressType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AddressType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AddressType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2955,14 +3004,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AddressLine': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'AddressLine') @@ -3045,7 +3094,7 @@ def get_Extension(self): return self.Extension def set_Extension(self, Extension): self.Extension = Extension - def hasContent_(self): + def _hasContent(self): if ( self.Number is not None or self.Extension is not None @@ -3068,17 +3117,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PhoneType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PhoneType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PhoneType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PhoneType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PhoneType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PhoneType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PhoneType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PhoneType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3097,14 +3146,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Number': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Number') @@ -3157,7 +3206,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -3180,17 +3229,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RateCodeDescriptionType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RateCodeDescriptionType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RateCodeDescriptionType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RateCodeDescriptionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RateCodeDescriptionType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RateCodeDescriptionType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RateCodeDescriptionType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RateCodeDescriptionType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3209,14 +3258,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -3245,7 +3294,7 @@ def __init__(self, Quantity=None, Type=None, gds_collector_=None, **kwargs_): self.Quantity = Quantity self.Quantity_nsprefix_ = None self.Type = Type - self.Type_nsprefix_ = None + self.Type_nsprefix_ = "frt" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -3269,7 +3318,7 @@ def get_Type(self): return self.Type def set_Type(self, Type): self.Type = Type - def hasContent_(self): + def _hasContent(self): if ( self.Quantity is not None or self.Type is not None @@ -3292,17 +3341,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='H showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HandlingUnitType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HandlingUnitType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HandlingUnitType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HandlingUnitType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HandlingUnitType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HandlingUnitType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HandlingUnitType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HandlingUnitType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3320,14 +3369,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Quantity': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Quantity') @@ -3357,25 +3406,25 @@ def __init__(self, CommodityID=None, Description=None, Weight=None, AdjustedWeig self.Description = Description self.Description_nsprefix_ = None self.Weight = Weight - self.Weight_nsprefix_ = None + self.Weight_nsprefix_ = "frt" self.AdjustedWeight = AdjustedWeight - self.AdjustedWeight_nsprefix_ = None + self.AdjustedWeight_nsprefix_ = "frt" self.Dimensions = Dimensions - self.Dimensions_nsprefix_ = None + self.Dimensions_nsprefix_ = "frt" self.NumberOfPieces = NumberOfPieces self.NumberOfPieces_nsprefix_ = None self.PackagingType = PackagingType - self.PackagingType_nsprefix_ = None + self.PackagingType_nsprefix_ = "frt" self.DangerousGoodsIndicator = DangerousGoodsIndicator self.DangerousGoodsIndicator_nsprefix_ = None self.CommodityValue = CommodityValue - self.CommodityValue_nsprefix_ = None + self.CommodityValue_nsprefix_ = "frt" self.FreightClass = FreightClass self.FreightClass_nsprefix_ = None self.NMFCCommodityCode = NMFCCommodityCode self.NMFCCommodityCode_nsprefix_ = None self.NMFCCommodity = NMFCCommodity - self.NMFCCommodity_nsprefix_ = None + self.NMFCCommodity_nsprefix_ = "frt" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -3439,7 +3488,7 @@ def get_NMFCCommodity(self): return self.NMFCCommodity def set_NMFCCommodity(self, NMFCCommodity): self.NMFCCommodity = NMFCCommodity - def hasContent_(self): + def _hasContent(self): if ( self.CommodityID is not None or self.Description is not None or @@ -3472,17 +3521,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CommodityType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CommodityType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CommodityType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CommodityType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CommodityType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CommodityType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CommodityType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CommodityType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3535,14 +3584,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CommodityID': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CommodityID') @@ -3649,7 +3698,7 @@ def get_SubCode(self): return self.SubCode def set_SubCode(self, SubCode): self.SubCode = SubCode - def hasContent_(self): + def _hasContent(self): if ( self.PrimeCode is not None or self.SubCode is not None @@ -3672,17 +3721,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='N showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='NMFCCommodityType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='NMFCCommodityType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='NMFCCommodityType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='NMFCCommodityType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='NMFCCommodityType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='NMFCCommodityType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='NMFCCommodityType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='NMFCCommodityType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3701,14 +3750,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PrimeCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'PrimeCode') @@ -3737,7 +3786,7 @@ def __init__(self, Value=None, UnitOfMeasurement=None, gds_collector_=None, **kw self.Value = Value self.Value_nsprefix_ = None self.UnitOfMeasurement = UnitOfMeasurement - self.UnitOfMeasurement_nsprefix_ = None + self.UnitOfMeasurement_nsprefix_ = "frt" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -3761,7 +3810,7 @@ def get_UnitOfMeasurement(self): return self.UnitOfMeasurement def set_UnitOfMeasurement(self, UnitOfMeasurement): self.UnitOfMeasurement = UnitOfMeasurement - def hasContent_(self): + def _hasContent(self): if ( self.Value is not None or self.UnitOfMeasurement is not None @@ -3784,17 +3833,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='W showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='WeightType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='WeightType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='WeightType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='WeightType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='WeightType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='WeightType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='WeightType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='WeightType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3812,14 +3861,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Value': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Value') @@ -3847,7 +3896,7 @@ def __init__(self, Value=None, UnitOfMeasurement=None, gds_collector_=None, **kw self.Value = Value self.Value_nsprefix_ = None self.UnitOfMeasurement = UnitOfMeasurement - self.UnitOfMeasurement_nsprefix_ = None + self.UnitOfMeasurement_nsprefix_ = "frt" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -3871,7 +3920,7 @@ def get_UnitOfMeasurement(self): return self.UnitOfMeasurement def set_UnitOfMeasurement(self, UnitOfMeasurement): self.UnitOfMeasurement = UnitOfMeasurement - def hasContent_(self): + def _hasContent(self): if ( self.Value is not None or self.UnitOfMeasurement is not None @@ -3894,17 +3943,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AdjustedWeightType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AdjustedWeightType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AdjustedWeightType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AdjustedWeightType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AdjustedWeightType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AdjustedWeightType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AdjustedWeightType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AdjustedWeightType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3922,14 +3971,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Value': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Value') @@ -3981,7 +4030,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -4004,17 +4053,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='U showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UnitOfMeasurementType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UnitOfMeasurementType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UnitOfMeasurementType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UnitOfMeasurementType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UnitOfMeasurementType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UnitOfMeasurementType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UnitOfMeasurementType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UnitOfMeasurementType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4033,14 +4082,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -4067,7 +4116,7 @@ def __init__(self, UnitOfMeasurement=None, Length=None, Width=None, Height=None, self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.UnitOfMeasurement = UnitOfMeasurement - self.UnitOfMeasurement_nsprefix_ = None + self.UnitOfMeasurement_nsprefix_ = "frt" self.Length = Length self.Length_nsprefix_ = None self.Width = Width @@ -4105,7 +4154,7 @@ def get_Height(self): return self.Height def set_Height(self, Height): self.Height = Height - def hasContent_(self): + def _hasContent(self): if ( self.UnitOfMeasurement is not None or self.Length is not None or @@ -4130,17 +4179,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DimensionsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DimensionsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DimensionsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DimensionsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DimensionsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DimensionsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DimensionsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DimensionsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4166,14 +4215,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'UnitOfMeasurement': obj_ = UnitOfMeasurementType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -4237,7 +4286,7 @@ def get_MonetaryValue(self): return self.MonetaryValue def set_MonetaryValue(self, MonetaryValue): self.MonetaryValue = MonetaryValue - def hasContent_(self): + def _hasContent(self): if ( self.CurrencyCode is not None or self.MonetaryValue is not None @@ -4260,17 +4309,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CommodityValueType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CommodityValueType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CommodityValueType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CommodityValueType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CommodityValueType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CommodityValueType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CommodityValueType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CommodityValueType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4289,14 +4338,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CurrencyCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CurrencyCode') @@ -4323,29 +4372,29 @@ def __init__(self, PickupOptions=None, DeliveryOptions=None, OverSeasLeg=None, C self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.PickupOptions = PickupOptions - self.PickupOptions_nsprefix_ = None + self.PickupOptions_nsprefix_ = "frt" self.DeliveryOptions = DeliveryOptions - self.DeliveryOptions_nsprefix_ = None + self.DeliveryOptions_nsprefix_ = "frt" self.OverSeasLeg = OverSeasLeg - self.OverSeasLeg_nsprefix_ = None + self.OverSeasLeg_nsprefix_ = "frt" self.COD = COD - self.COD_nsprefix_ = None + self.COD_nsprefix_ = "frt" self.DangerousGoods = DangerousGoods - self.DangerousGoods_nsprefix_ = None + self.DangerousGoods_nsprefix_ = "frt" self.SortingAndSegregating = SortingAndSegregating - self.SortingAndSegregating_nsprefix_ = None + self.SortingAndSegregating_nsprefix_ = "frt" self.DeclaredValue = DeclaredValue - self.DeclaredValue_nsprefix_ = None + self.DeclaredValue_nsprefix_ = "frt" self.ExcessDeclaredValue = ExcessDeclaredValue - self.ExcessDeclaredValue_nsprefix_ = None + self.ExcessDeclaredValue_nsprefix_ = "frt" self.CustomsValue = CustomsValue - self.CustomsValue_nsprefix_ = None + self.CustomsValue_nsprefix_ = "frt" self.DeliveryDutiesPaidIndicator = DeliveryDutiesPaidIndicator self.DeliveryDutiesPaidIndicator_nsprefix_ = None self.DeliveryDutiesUnpaidIndicator = DeliveryDutiesUnpaidIndicator self.DeliveryDutiesUnpaidIndicator_nsprefix_ = None self.HandlingCharge = HandlingCharge - self.HandlingCharge_nsprefix_ = None + self.HandlingCharge_nsprefix_ = "frt" self.CustomsClearanceIndicator = CustomsClearanceIndicator self.CustomsClearanceIndicator_nsprefix_ = None self.FreezableProtectionIndicator = FreezableProtectionIndicator @@ -4355,7 +4404,7 @@ def __init__(self, PickupOptions=None, DeliveryOptions=None, OverSeasLeg=None, C self.LinearFeet = LinearFeet self.LinearFeet_nsprefix_ = None self.AdjustedHeight = AdjustedHeight - self.AdjustedHeight_nsprefix_ = None + self.AdjustedHeight_nsprefix_ = "frt" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -4439,7 +4488,7 @@ def get_AdjustedHeight(self): return self.AdjustedHeight def set_AdjustedHeight(self, AdjustedHeight): self.AdjustedHeight = AdjustedHeight - def hasContent_(self): + def _hasContent(self): if ( self.PickupOptions is not None or self.DeliveryOptions is not None or @@ -4477,17 +4526,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentServiceOptionsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentServiceOptionsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentServiceOptionsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentServiceOptionsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentServiceOptionsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentServiceOptionsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentServiceOptionsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentServiceOptionsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4555,14 +4604,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PickupOptions': obj_ = PickupOptionsType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -4668,9 +4717,9 @@ def __init__(self, EMailType=None, EMail=None, gds_collector_=None, **kwargs_): self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.EMailType = EMailType - self.EMailType_nsprefix_ = None + self.EMailType_nsprefix_ = "frt" self.EMail = EMail - self.EMail_nsprefix_ = None + self.EMail_nsprefix_ = "frt" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -4694,7 +4743,7 @@ def get_EMail(self): return self.EMail def set_EMail(self, EMail): self.EMail = EMail - def hasContent_(self): + def _hasContent(self): if ( self.EMailType is not None or self.EMail is not None @@ -4717,17 +4766,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='E showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='EmailInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='EmailInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='EmailInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='EmailInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='EmailInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='EmailInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='EmailInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='EmailInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4744,14 +4793,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'EMailType': obj_ = RateCodeDescriptionType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -4823,7 +4872,7 @@ def get_Subject(self): return self.Subject def set_Subject(self, Subject): self.Subject = Subject - def hasContent_(self): + def _hasContent(self): if ( self.EMailAddress or self.EMailText is not None or @@ -4848,17 +4897,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='E showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='EMailType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='EMailType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='EMailType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='EMailType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='EMailType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='EMailType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='EMailType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='EMailType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4885,14 +4934,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'EMailAddress': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'EMailAddress') @@ -4993,7 +5042,7 @@ def get_LimitedAccessPickupIndicator(self): return self.LimitedAccessPickupIndicator def set_LimitedAccessPickupIndicator(self, LimitedAccessPickupIndicator): self.LimitedAccessPickupIndicator = LimitedAccessPickupIndicator - def hasContent_(self): + def _hasContent(self): if ( self.HolidayPickupIndicator is not None or self.InsidePickupIndicator is not None or @@ -5022,17 +5071,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupOptionsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupOptionsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupOptionsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupOptionsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupOptionsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupOptionsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupOptionsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupOptionsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5075,14 +5124,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'HolidayPickupIndicator': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'HolidayPickupIndicator') @@ -5213,7 +5262,7 @@ def get_LimitedAccessDeliveryIndicator(self): return self.LimitedAccessDeliveryIndicator def set_LimitedAccessDeliveryIndicator(self, LimitedAccessDeliveryIndicator): self.LimitedAccessDeliveryIndicator = LimitedAccessDeliveryIndicator - def hasContent_(self): + def _hasContent(self): if ( self.CallBeforeDeliveryIndicator is not None or self.HolidayDeliveryIndicator is not None or @@ -5243,17 +5292,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DeliveryOptionsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DeliveryOptionsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DeliveryOptionsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DeliveryOptionsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DeliveryOptionsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DeliveryOptionsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DeliveryOptionsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DeliveryOptionsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5300,14 +5349,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CallBeforeDeliveryIndicator': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CallBeforeDeliveryIndicator') @@ -5376,9 +5425,9 @@ def __init__(self, Dimensions=None, Value=None, gds_collector_=None, **kwargs_): self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Dimensions = Dimensions - self.Dimensions_nsprefix_ = None + self.Dimensions_nsprefix_ = "frt" self.Value = Value - self.Value_nsprefix_ = None + self.Value_nsprefix_ = "frt" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -5402,7 +5451,7 @@ def get_Value(self): return self.Value def set_Value(self, Value): self.Value = Value - def hasContent_(self): + def _hasContent(self): if ( self.Dimensions is not None or self.Value is not None @@ -5425,17 +5474,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='O showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='OverSeasLegType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='OverSeasLegType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='OverSeasLegType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='OverSeasLegType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='OverSeasLegType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='OverSeasLegType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='OverSeasLegType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='OverSeasLegType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5452,14 +5501,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Dimensions': obj_ = DimensionType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -5492,7 +5541,7 @@ def __init__(self, Volume=None, Height=None, Length=None, Width=None, UnitOfMeas self.Width = Width self.Width_nsprefix_ = None self.UnitOfMeasurement = UnitOfMeasurement - self.UnitOfMeasurement_nsprefix_ = None + self.UnitOfMeasurement_nsprefix_ = "frt" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -5528,7 +5577,7 @@ def get_UnitOfMeasurement(self): return self.UnitOfMeasurement def set_UnitOfMeasurement(self, UnitOfMeasurement): self.UnitOfMeasurement = UnitOfMeasurement - def hasContent_(self): + def _hasContent(self): if ( self.Volume is not None or self.Height is not None or @@ -5554,17 +5603,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DimensionType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DimensionType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DimensionType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DimensionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DimensionType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DimensionType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DimensionType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DimensionType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5594,14 +5643,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Volume': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Volume') @@ -5645,9 +5694,9 @@ def __init__(self, Cube=None, CWT=None, gds_collector_=None, **kwargs_): self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Cube = Cube - self.Cube_nsprefix_ = None + self.Cube_nsprefix_ = "frt" self.CWT = CWT - self.CWT_nsprefix_ = None + self.CWT_nsprefix_ = "frt" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -5671,7 +5720,7 @@ def get_CWT(self): return self.CWT def set_CWT(self, CWT): self.CWT = CWT - def hasContent_(self): + def _hasContent(self): if ( self.Cube is not None or self.CWT is not None @@ -5694,17 +5743,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DimensionValueType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DimensionValueType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DimensionValueType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DimensionValueType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DimensionValueType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DimensionValueType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DimensionValueType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DimensionValueType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5721,14 +5770,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Cube': obj_ = CubeType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -5779,7 +5828,7 @@ def get_MonetaryValue(self): return self.MonetaryValue def set_MonetaryValue(self, MonetaryValue): self.MonetaryValue = MonetaryValue - def hasContent_(self): + def _hasContent(self): if ( self.CurrencyCode is not None or self.MonetaryValue is not None @@ -5802,17 +5851,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CubeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CubeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CubeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CubeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CubeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CubeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CubeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CubeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5831,14 +5880,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CurrencyCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CurrencyCode') @@ -5891,7 +5940,7 @@ def get_MonetaryValue(self): return self.MonetaryValue def set_MonetaryValue(self, MonetaryValue): self.MonetaryValue = MonetaryValue - def hasContent_(self): + def _hasContent(self): if ( self.CurrencyCode is not None or self.MonetaryValue is not None @@ -5914,17 +5963,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CWTType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CWTType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CWTType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CWTType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CWTType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CWTType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CWTType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CWTType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5943,14 +5992,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CurrencyCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CurrencyCode') @@ -5977,13 +6026,13 @@ def __init__(self, CODValue=None, CODPaymentMethod=None, CODBillingOption=None, self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.CODValue = CODValue - self.CODValue_nsprefix_ = None + self.CODValue_nsprefix_ = "frt" self.CODPaymentMethod = CODPaymentMethod - self.CODPaymentMethod_nsprefix_ = None + self.CODPaymentMethod_nsprefix_ = "frt" self.CODBillingOption = CODBillingOption - self.CODBillingOption_nsprefix_ = None + self.CODBillingOption_nsprefix_ = "frt" self.RemitTo = RemitTo - self.RemitTo_nsprefix_ = None + self.RemitTo_nsprefix_ = "frt" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -6015,7 +6064,7 @@ def get_RemitTo(self): return self.RemitTo def set_RemitTo(self, RemitTo): self.RemitTo = RemitTo - def hasContent_(self): + def _hasContent(self): if ( self.CODValue is not None or self.CODPaymentMethod is not None or @@ -6040,17 +6089,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CODType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CODType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CODType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CODType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CODType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CODType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CODType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CODType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6073,14 +6122,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CODValue': obj_ = CODValueType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -6141,7 +6190,7 @@ def get_MonetaryValue(self): return self.MonetaryValue def set_MonetaryValue(self, MonetaryValue): self.MonetaryValue = MonetaryValue - def hasContent_(self): + def _hasContent(self): if ( self.CurrencyCode is not None or self.MonetaryValue is not None @@ -6164,17 +6213,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CODValueType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CODValueType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CODValueType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CODValueType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CODValueType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CODValueType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CODValueType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CODValueType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6193,14 +6242,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CurrencyCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CurrencyCode') @@ -6229,7 +6278,7 @@ def __init__(self, Name=None, Address=None, AttentionName=None, gds_collector_=N self.Name = Name self.Name_nsprefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "frt" self.AttentionName = AttentionName self.AttentionName_nsprefix_ = None def factory(*args_, **kwargs_): @@ -6259,7 +6308,7 @@ def get_AttentionName(self): return self.AttentionName def set_AttentionName(self, AttentionName): self.AttentionName = AttentionName - def hasContent_(self): + def _hasContent(self): if ( self.Name is not None or self.Address is not None or @@ -6283,17 +6332,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RemitToType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RemitToType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RemitToType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RemitToType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RemitToType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RemitToType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RemitToType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RemitToType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6315,14 +6364,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Name': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Name') @@ -6356,9 +6405,9 @@ def __init__(self, Name=None, Phone=None, TransportationMode=None, gds_collector self.Name = Name self.Name_nsprefix_ = None self.Phone = Phone - self.Phone_nsprefix_ = None + self.Phone_nsprefix_ = "frt" self.TransportationMode = TransportationMode - self.TransportationMode_nsprefix_ = None + self.TransportationMode_nsprefix_ = "frt" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -6386,7 +6435,7 @@ def get_TransportationMode(self): return self.TransportationMode def set_TransportationMode(self, TransportationMode): self.TransportationMode = TransportationMode - def hasContent_(self): + def _hasContent(self): if ( self.Name is not None or self.Phone is not None or @@ -6410,17 +6459,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DangerousGoodsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DangerousGoodsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DangerousGoodsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DangerousGoodsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DangerousGoodsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DangerousGoodsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DangerousGoodsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DangerousGoodsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6441,14 +6490,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Name': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Name') @@ -6499,7 +6548,7 @@ def get_Quantity(self): return self.Quantity def set_Quantity(self, Quantity): self.Quantity = Quantity - def hasContent_(self): + def _hasContent(self): if ( self.Quantity is not None ): @@ -6521,17 +6570,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SortingAndSegregatingType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SortingAndSegregatingType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='SortingAndSegregatingType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='SortingAndSegregatingType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='SortingAndSegregatingType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='SortingAndSegregatingType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='SortingAndSegregatingType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='SortingAndSegregatingType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6546,14 +6595,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Quantity': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Quantity') @@ -6600,7 +6649,7 @@ def get_MonetaryValue(self): return self.MonetaryValue def set_MonetaryValue(self, MonetaryValue): self.MonetaryValue = MonetaryValue - def hasContent_(self): + def _hasContent(self): if ( self.CurrencyCode is not None or self.MonetaryValue is not None @@ -6623,17 +6672,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DeclaredValueType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DeclaredValueType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DeclaredValueType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DeclaredValueType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DeclaredValueType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DeclaredValueType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DeclaredValueType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DeclaredValueType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6652,14 +6701,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CurrencyCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CurrencyCode') @@ -6712,7 +6761,7 @@ def get_MonetaryValue(self): return self.MonetaryValue def set_MonetaryValue(self, MonetaryValue): self.MonetaryValue = MonetaryValue - def hasContent_(self): + def _hasContent(self): if ( self.CurrencyCode is not None or self.MonetaryValue is not None @@ -6735,17 +6784,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CustomsValueType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CustomsValueType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CustomsValueType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CustomsValueType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CustomsValueType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CustomsValueType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CustomsValueType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CustomsValueType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6764,14 +6813,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CurrencyCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CurrencyCode') @@ -6800,7 +6849,7 @@ def __init__(self, Percentage=None, Amount=None, gds_collector_=None, **kwargs_) self.Percentage = Percentage self.Percentage_nsprefix_ = None self.Amount = Amount - self.Amount_nsprefix_ = None + self.Amount_nsprefix_ = "frt" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -6824,7 +6873,7 @@ def get_Amount(self): return self.Amount def set_Amount(self, Amount): self.Amount = Amount - def hasContent_(self): + def _hasContent(self): if ( self.Percentage is not None or self.Amount is not None @@ -6847,17 +6896,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='H showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HandlingChargeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HandlingChargeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HandlingChargeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HandlingChargeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HandlingChargeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HandlingChargeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HandlingChargeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HandlingChargeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6875,14 +6924,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Percentage': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Percentage') @@ -6934,7 +6983,7 @@ def get_MonetaryValue(self): return self.MonetaryValue def set_MonetaryValue(self, MonetaryValue): self.MonetaryValue = MonetaryValue - def hasContent_(self): + def _hasContent(self): if ( self.CurrencyCode is not None or self.MonetaryValue is not None @@ -6957,17 +7006,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='H showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HandlingChargeAmountType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HandlingChargeAmountType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HandlingChargeAmountType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HandlingChargeAmountType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HandlingChargeAmountType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HandlingChargeAmountType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HandlingChargeAmountType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HandlingChargeAmountType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6986,14 +7035,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CurrencyCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CurrencyCode') @@ -7046,7 +7095,7 @@ def get_AdditionalComments(self): return self.AdditionalComments def set_AdditionalComments(self, AdditionalComments): self.AdditionalComments = AdditionalComments - def hasContent_(self): + def _hasContent(self): if ( self.PickupDate is not None or self.AdditionalComments is not None @@ -7069,17 +7118,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupRequestType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupRequestType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupRequestType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupRequestType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupRequestType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupRequestType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupRequestType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupRequestType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7098,14 +7147,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PickupDate': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'PickupDate') @@ -7132,11 +7181,11 @@ def __init__(self, Type=None, SubTypeCode=None, Factor=None, gds_collector_=None self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Type = Type - self.Type_nsprefix_ = None + self.Type_nsprefix_ = "frt" self.SubTypeCode = SubTypeCode self.SubTypeCode_nsprefix_ = None self.Factor = Factor - self.Factor_nsprefix_ = None + self.Factor_nsprefix_ = "frt" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -7164,7 +7213,7 @@ def get_Factor(self): return self.Factor def set_Factor(self, Factor): self.Factor = Factor - def hasContent_(self): + def _hasContent(self): if ( self.Type is not None or self.SubTypeCode is not None or @@ -7188,17 +7237,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RateType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RateType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RateType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RateType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RateType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RateType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RateType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RateType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7219,14 +7268,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Type': obj_ = RateCodeDescriptionType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -7261,9 +7310,9 @@ def __init__(self, CommodityID=None, Description=None, Weight=None, AdjustedWeig self.Description = Description self.Description_nsprefix_ = None self.Weight = Weight - self.Weight_nsprefix_ = None + self.Weight_nsprefix_ = "frt" self.AdjustedWeight = AdjustedWeight - self.AdjustedWeight_nsprefix_ = None + self.AdjustedWeight_nsprefix_ = "frt" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -7295,7 +7344,7 @@ def get_AdjustedWeight(self): return self.AdjustedWeight def set_AdjustedWeight(self, AdjustedWeight): self.AdjustedWeight = AdjustedWeight - def hasContent_(self): + def _hasContent(self): if ( self.CommodityID is not None or self.Description is not None or @@ -7320,17 +7369,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CommodityWeightType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CommodityWeightType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CommodityWeightType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CommodityWeightType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CommodityWeightType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CommodityWeightType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CommodityWeightType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CommodityWeightType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7355,14 +7404,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CommodityID': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CommodityID') @@ -7401,7 +7450,7 @@ def __init__(self, Value=None, UnitOfMeasurement=None, gds_collector_=None, **kw self.Value = Value self.Value_nsprefix_ = None self.UnitOfMeasurement = UnitOfMeasurement - self.UnitOfMeasurement_nsprefix_ = None + self.UnitOfMeasurement_nsprefix_ = "frt" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -7425,7 +7474,7 @@ def get_UnitOfMeasurement(self): return self.UnitOfMeasurement def set_UnitOfMeasurement(self, UnitOfMeasurement): self.UnitOfMeasurement = UnitOfMeasurement - def hasContent_(self): + def _hasContent(self): if ( self.Value is not None or self.UnitOfMeasurement is not None @@ -7448,17 +7497,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='F showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FactorType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FactorType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FactorType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FactorType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FactorType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FactorType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FactorType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FactorType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7476,14 +7525,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Value': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Value') @@ -7535,7 +7584,7 @@ def get_MonetaryValue(self): return self.MonetaryValue def set_MonetaryValue(self, MonetaryValue): self.MonetaryValue = MonetaryValue - def hasContent_(self): + def _hasContent(self): if ( self.CurrencyCode is not None or self.MonetaryValue is not None @@ -7558,17 +7607,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AmountType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AmountType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AmountType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AmountType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AmountType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AmountType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AmountType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AmountType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7587,14 +7636,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CurrencyCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CurrencyCode') @@ -7647,7 +7696,7 @@ def get_MonetaryValue(self): return self.MonetaryValue def set_MonetaryValue(self, MonetaryValue): self.MonetaryValue = MonetaryValue - def hasContent_(self): + def _hasContent(self): if ( self.CurrencyCode is not None or self.MonetaryValue is not None @@ -7670,17 +7719,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='T showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TotalShipmentChargeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TotalShipmentChargeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TotalShipmentChargeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TotalShipmentChargeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TotalShipmentChargeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TotalShipmentChargeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TotalShipmentChargeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TotalShipmentChargeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7699,14 +7748,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CurrencyCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CurrencyCode') @@ -7759,7 +7808,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -7782,17 +7831,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RatingScheduleType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RatingScheduleType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RatingScheduleType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RatingScheduleType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RatingScheduleType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RatingScheduleType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RatingScheduleType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RatingScheduleType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7811,14 +7860,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -7865,7 +7914,7 @@ def get_DaysInTransit(self): return self.DaysInTransit def set_DaysInTransit(self, DaysInTransit): self.DaysInTransit = DaysInTransit - def hasContent_(self): + def _hasContent(self): if ( self.DaysInTransit is not None ): @@ -7887,17 +7936,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='T showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TimeInTransitResponseType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TimeInTransitResponseType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TimeInTransitResponseType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TimeInTransitResponseType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TimeInTransitResponseType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TimeInTransitResponseType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TimeInTransitResponseType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TimeInTransitResponseType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7912,14 +7961,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'DaysInTransit': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'DaysInTransit') @@ -7942,7 +7991,7 @@ def __init__(self, GPFAccesorialRateIndicator=None, OnCallInformation=None, gds_ self.GPFAccesorialRateIndicator = GPFAccesorialRateIndicator self.GPFAccesorialRateIndicator_nsprefix_ = None self.OnCallInformation = OnCallInformation - self.OnCallInformation_nsprefix_ = None + self.OnCallInformation_nsprefix_ = "frt" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -7966,7 +8015,7 @@ def get_OnCallInformation(self): return self.OnCallInformation def set_OnCallInformation(self, OnCallInformation): self.OnCallInformation = OnCallInformation - def hasContent_(self): + def _hasContent(self): if ( self.GPFAccesorialRateIndicator is not None or self.OnCallInformation is not None @@ -7989,17 +8038,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='G showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='GFPOptionsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='GFPOptionsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='GFPOptionsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='GFPOptionsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='GFPOptionsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='GFPOptionsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='GFPOptionsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='GFPOptionsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8017,14 +8066,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'GPFAccesorialRateIndicator': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'GPFAccesorialRateIndicator') @@ -8070,7 +8119,7 @@ def get_OnCallPickupIndicator(self): return self.OnCallPickupIndicator def set_OnCallPickupIndicator(self, OnCallPickupIndicator): self.OnCallPickupIndicator = OnCallPickupIndicator - def hasContent_(self): + def _hasContent(self): if ( self.OnCallPickupIndicator is not None ): @@ -8092,17 +8141,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='O showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='OnCallInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='OnCallInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='OnCallInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='OnCallInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='OnCallInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='OnCallInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='OnCallInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='OnCallInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8117,14 +8166,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'OnCallPickupIndicator': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'OnCallPickupIndicator') @@ -8147,9 +8196,9 @@ def __init__(self, Quantity=None, Type=None, Dimensions=None, gds_collector_=Non self.Quantity = Quantity self.Quantity_nsprefix_ = None self.Type = Type - self.Type_nsprefix_ = None + self.Type_nsprefix_ = "frt" self.Dimensions = Dimensions - self.Dimensions_nsprefix_ = None + self.Dimensions_nsprefix_ = "frt" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -8177,7 +8226,7 @@ def get_Dimensions(self): return self.Dimensions def set_Dimensions(self, Dimensions): self.Dimensions = Dimensions - def hasContent_(self): + def _hasContent(self): if ( self.Quantity is not None or self.Type is not None or @@ -8201,17 +8250,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='H showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HandlingUnitsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HandlingUnitsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HandlingUnitsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HandlingUnitsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HandlingUnitsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HandlingUnitsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HandlingUnitsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HandlingUnitsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8232,14 +8281,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Quantity': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Quantity') @@ -8270,7 +8319,7 @@ def __init__(self, UnitOfMeasurement=None, Length=None, Width=None, Height=None, self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.UnitOfMeasurement = UnitOfMeasurement - self.UnitOfMeasurement_nsprefix_ = None + self.UnitOfMeasurement_nsprefix_ = "frt" self.Length = Length self.Length_nsprefix_ = None self.Width = Width @@ -8308,7 +8357,7 @@ def get_Height(self): return self.Height def set_Height(self, Height): self.Height = Height - def hasContent_(self): + def _hasContent(self): if ( self.UnitOfMeasurement is not None or self.Length is not None or @@ -8333,17 +8382,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='H showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HandlingUnitsDimensionsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HandlingUnitsDimensionsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HandlingUnitsDimensionsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HandlingUnitsDimensionsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HandlingUnitsDimensionsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HandlingUnitsDimensionsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HandlingUnitsDimensionsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HandlingUnitsDimensionsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8369,14 +8418,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'UnitOfMeasurement': obj_ = UnitOfMeasurementType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -8440,7 +8489,7 @@ def get_TotalCubicFeet(self): return self.TotalCubicFeet def set_TotalCubicFeet(self, TotalCubicFeet): self.TotalCubicFeet = TotalCubicFeet - def hasContent_(self): + def _hasContent(self): if ( self.Density is not None or self.TotalCubicFeet is not None @@ -8463,17 +8512,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='F showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightDensityRateType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightDensityRateType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightDensityRateType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightDensityRateType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightDensityRateType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightDensityRateType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightDensityRateType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightDensityRateType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8492,14 +8541,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Density': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Density') @@ -8528,7 +8577,7 @@ def __init__(self, Value=None, UnitOfMeasurement=None, gds_collector_=None, **kw self.Value = Value self.Value_nsprefix_ = None self.UnitOfMeasurement = UnitOfMeasurement - self.UnitOfMeasurement_nsprefix_ = None + self.UnitOfMeasurement_nsprefix_ = "frt" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -8552,7 +8601,7 @@ def get_UnitOfMeasurement(self): return self.UnitOfMeasurement def set_UnitOfMeasurement(self, UnitOfMeasurement): self.UnitOfMeasurement = UnitOfMeasurement - def hasContent_(self): + def _hasContent(self): if ( self.Value is not None or self.UnitOfMeasurement is not None @@ -8575,17 +8624,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AdjustedHeightType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AdjustedHeightType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AdjustedHeightType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AdjustedHeightType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AdjustedHeightType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AdjustedHeightType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AdjustedHeightType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AdjustedHeightType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8603,14 +8652,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Value': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Value') @@ -8638,11 +8687,11 @@ def __init__(self, Quantity=None, Type=None, Dimensions=None, AdjustedHeight=Non self.Quantity = Quantity self.Quantity_nsprefix_ = None self.Type = Type - self.Type_nsprefix_ = None + self.Type_nsprefix_ = "frt" self.Dimensions = Dimensions - self.Dimensions_nsprefix_ = None + self.Dimensions_nsprefix_ = "frt" self.AdjustedHeight = AdjustedHeight - self.AdjustedHeight_nsprefix_ = None + self.AdjustedHeight_nsprefix_ = "frt" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -8674,7 +8723,7 @@ def get_AdjustedHeight(self): return self.AdjustedHeight def set_AdjustedHeight(self, AdjustedHeight): self.AdjustedHeight = AdjustedHeight - def hasContent_(self): + def _hasContent(self): if ( self.Quantity is not None or self.Type is not None or @@ -8699,17 +8748,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='H showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HandlingUnitsInfoType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HandlingUnitsInfoType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HandlingUnitsInfoType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HandlingUnitsInfoType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HandlingUnitsInfoType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HandlingUnitsInfoType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HandlingUnitsInfoType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HandlingUnitsInfoType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8733,14 +8782,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Quantity': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Quantity') @@ -8805,7 +8854,7 @@ def insert_Property_at(self, index, value): self.Property.insert(index, value) def replace_Property_at(self, index, value): self.Property[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Property ): @@ -8827,17 +8876,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ClientInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ClientInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ClientInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ClientInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ClientInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ClientInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ClientInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ClientInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8851,14 +8900,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Property': obj_ = PropertyType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -8885,7 +8934,7 @@ def __init__(self, RequestOption=None, SubVersion=None, TransactionReference=Non self.SubVersion = SubVersion self.SubVersion_nsprefix_ = None self.TransactionReference = TransactionReference - self.TransactionReference_nsprefix_ = None + self.TransactionReference_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -8919,7 +8968,7 @@ def get_TransactionReference(self): return self.TransactionReference def set_TransactionReference(self, TransactionReference): self.TransactionReference = TransactionReference - def hasContent_(self): + def _hasContent(self): if ( self.RequestOption or self.SubVersion is not None or @@ -8943,17 +8992,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='RequestType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='RequestType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='RequestType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='RequestType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8975,14 +9024,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'RequestOption': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'RequestOption') @@ -9040,7 +9089,7 @@ def get_TransactionIdentifier(self): return self.TransactionIdentifier def set_TransactionIdentifier(self, TransactionIdentifier): self.TransactionIdentifier = TransactionIdentifier - def hasContent_(self): + def _hasContent(self): if ( self.CustomerContext is not None or self.TransactionIdentifier is not None @@ -9063,17 +9112,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionReferenceType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionReferenceType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionReferenceType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionReferenceType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='TransactionReferenceType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='TransactionReferenceType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='TransactionReferenceType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='TransactionReferenceType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -9092,14 +9141,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CustomerContext': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CustomerContext') @@ -9126,19 +9175,19 @@ def __init__(self, ResponseStatus=None, Alert=None, AlertDetail=None, Transactio self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.ResponseStatus = ResponseStatus - self.ResponseStatus_nsprefix_ = None + self.ResponseStatus_nsprefix_ = "common" if Alert is None: self.Alert = [] else: self.Alert = Alert - self.Alert_nsprefix_ = None + self.Alert_nsprefix_ = "common" if AlertDetail is None: self.AlertDetail = [] else: self.AlertDetail = AlertDetail - self.AlertDetail_nsprefix_ = None + self.AlertDetail_nsprefix_ = "common" self.TransactionReference = TransactionReference - self.TransactionReference_nsprefix_ = None + self.TransactionReference_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -9182,7 +9231,7 @@ def get_TransactionReference(self): return self.TransactionReference def set_TransactionReference(self, TransactionReference): self.TransactionReference = TransactionReference - def hasContent_(self): + def _hasContent(self): if ( self.ResponseStatus is not None or self.Alert or @@ -9207,17 +9256,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ResponseType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ResponseType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ResponseType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ResponseType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -9240,14 +9289,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ResponseStatus': obj_ = CodeDescriptionType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -9308,7 +9357,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -9331,17 +9380,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeDescriptionType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeDescriptionType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeDescriptionType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeDescriptionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='CodeDescriptionType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='CodeDescriptionType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='CodeDescriptionType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='CodeDescriptionType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -9360,14 +9409,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -9398,7 +9447,7 @@ def __init__(self, Code=None, Description=None, ElementLevelInformation=None, gd self.Description = Description self.Description_nsprefix_ = None self.ElementLevelInformation = ElementLevelInformation - self.ElementLevelInformation_nsprefix_ = None + self.ElementLevelInformation_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -9426,7 +9475,7 @@ def get_ElementLevelInformation(self): return self.ElementLevelInformation def set_ElementLevelInformation(self, ElementLevelInformation): self.ElementLevelInformation = ElementLevelInformation - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None or @@ -9450,17 +9499,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DetailType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DetailType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DetailType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DetailType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='DetailType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='DetailType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='DetailType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='DetailType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -9482,14 +9531,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -9526,7 +9575,7 @@ def __init__(self, Level=None, ElementIdentifier=None, gds_collector_=None, **kw self.ElementIdentifier = [] else: self.ElementIdentifier = ElementIdentifier - self.ElementIdentifier_nsprefix_ = None + self.ElementIdentifier_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -9556,7 +9605,7 @@ def insert_ElementIdentifier_at(self, index, value): self.ElementIdentifier.insert(index, value) def replace_ElementIdentifier_at(self, index, value): self.ElementIdentifier[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Level is not None or self.ElementIdentifier @@ -9579,17 +9628,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementLevelInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementLevelInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementLevelInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementLevelInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementLevelInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementLevelInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementLevelInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementLevelInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -9607,14 +9656,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Level': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Level') @@ -9666,7 +9715,7 @@ def get_Value(self): return self.Value def set_Value(self, Value): self.Value = Value - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Value is not None @@ -9689,17 +9738,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementIdentifierType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementIdentifierType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementIdentifierType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementIdentifierType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementIdentifierType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementIdentifierType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementIdentifierType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementIdentifierType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -9718,14 +9767,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -9775,7 +9824,7 @@ def set_Key(self, Key): self.Key = Key def get_valueOf_(self): return self.valueOf_ def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_ - def hasContent_(self): + def _hasContent(self): if ( (1 if type(self.valueOf_) in [int,float] else self.valueOf_) ): @@ -9797,19 +9846,19 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PropertyType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PropertyType') + if self._hasContent(): outfile.write('>') outfile.write(self.convert_unicode(self.valueOf_)) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PropertyType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PropertyType', pretty_print=pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PropertyType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PropertyType'): if self.Key is not None and 'Key' not in already_processed: already_processed.add('Key') outfile.write(' Key=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.Key), input_name='Key')), )) - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PropertyType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PropertyType', fromsubclass_=False, pretty_print=True): pass def build(self, node, gds_collector_=None): self.gds_collector_ = gds_collector_ @@ -9817,18 +9866,18 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) self.valueOf_ = get_all_text_(node) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('Key', node) if value is not None and 'Key' not in already_processed: already_processed.add('Key') self.Key = value - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): pass # end class PropertyType @@ -9907,7 +9956,8 @@ def parse(inFileName, silence=False, print_warnings=True): return rootObj -def parseEtree(inFileName, silence=False, print_warnings=True): +def parseEtree(inFileName, silence=False, print_warnings=True, + mapping=None, reverse_mapping=None, nsmap=None): parser = None doc = parsexml_(inFileName, parser) gds_collector = GdsCollector_() @@ -9918,10 +9968,15 @@ def parseEtree(inFileName, silence=False, print_warnings=True): rootClass = FreightRateRequest rootObj = rootClass.factory() rootObj.build(rootNode, gds_collector_=gds_collector) + if mapping is None: + mapping = {} + if reverse_mapping is None: + reverse_mapping = {} + rootElement = rootObj.to_etree( + None, name_=rootTag, mapping_=mapping, + reverse_mapping_=reverse_mapping, nsmap_=nsmap) + reverse_node_mapping = rootObj.gds_reverse_node_mapping(mapping) # Enable Python to collect the space used by the DOM. - mapping = {} - rootElement = rootObj.to_etree(None, name_=rootTag, mapping_=mapping) - reverse_mapping = rootObj.gds_reverse_node_mapping(mapping) if not SaveElementTreeNode: doc = None rootNode = None @@ -9938,7 +9993,7 @@ def parseEtree(inFileName, silence=False, print_warnings=True): len(gds_collector.get_messages()), )) gds_collector.write_messages(sys.stderr) sys.stderr.write(separator) - return rootObj, rootElement, mapping, reverse_mapping + return rootObj, rootElement, mapping, reverse_node_mapping def parseString(inString, silence=False, print_warnings=True): @@ -10022,6 +10077,194 @@ def main(): RenameMappings_ = { } +# +# Mapping of namespaces to types defined in them +# and the file in which each is defined. +# simpleTypes are marked "ST" and complexTypes "CT". +NamespaceToDefMappings_ = {'http://www.ups.com/XMLSchema/XOLTWS/Common/v1.0': [('ClientInformationType', + './schemas/common.xsd', + 'CT'), + ('RequestType', + './schemas/common.xsd', + 'CT'), + ('TransactionReferenceType', + './schemas/common.xsd', + 'CT'), + ('ResponseType', + './schemas/common.xsd', + 'CT'), + ('CodeDescriptionType', + './schemas/common.xsd', + 'CT'), + ('DetailType', + './schemas/common.xsd', + 'CT'), + ('ElementLevelInformationType', + './schemas/common.xsd', + 'CT'), + ('ElementIdentifierType', + './schemas/common.xsd', + 'CT')], + 'http://www.ups.com/XMLSchema/XOLTWS/FreightRate/v1.0': [('AccountType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('ShipmentTotalWeightType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('HandlingUnitWeightType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('AlternateRatesResponseType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('ShipFromType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('ShipToType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('PaymentInformationType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('PayerType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('AddressType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('PhoneType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('RateCodeDescriptionType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('HandlingUnitType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('CommodityType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('NMFCCommodityType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('WeightType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('AdjustedWeightType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('UnitOfMeasurementType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('DimensionsType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('CommodityValueType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('ShipmentServiceOptionsType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('EmailInformationType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('EMailType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('PickupOptionsType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('DeliveryOptionsType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('OverSeasLegType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('DimensionType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('DimensionValueType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('CubeType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('CWTType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('CODType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('CODValueType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('RemitToType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('DangerousGoodsType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('SortingAndSegregatingType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('DeclaredValueType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('CustomsValueType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('HandlingChargeType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('HandlingChargeAmountType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('PickupRequestType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('RateType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('CommodityWeightType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('FactorType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('AmountType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('TotalShipmentChargeType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('RatingScheduleType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('TimeInTransitResponseType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('GFPOptionsType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('OnCallInformationType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('HandlingUnitsType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('HandlingUnitsDimensionsType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('FreightDensityRateType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('AdjustedHeightType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT'), + ('HandlingUnitsInfoType', + './schemas/FreightRateWebServiceSchema.xsd', + 'CT')]} + __all__ = [ "AccountType", "AddressType", diff --git a/schemas/ups/ups_lib/freight_ship_web_service_schema.py b/schemas/ups/ups_lib/freight_ship_web_service_schema.py index 5a93702f25..f82d94e524 100644 --- a/schemas/ups/ups_lib/freight_ship_web_service_schema.py +++ b/schemas/ups/ups_lib/freight_ship_web_service_schema.py @@ -2,34 +2,35 @@ # -*- coding: utf-8 -*- # -# Generated Sat Mar 7 09:04:15 2020 by generateDS.py version 2.35.15. -# Python 3.8.1 (v3.8.1:1b293b6006, Dec 18 2019, 14:08:53) [Clang 6.0 (clang-600.0.57)] +# Generated Wed Nov 10 10:00:59 2021 by generateDS.py version 2.40.5. +# Python 3.8.6 (v3.8.6:db455296be, Sep 23 2020, 13:31:39) [Clang 6.0 (clang-600.0.57)] # # Command line options: # ('--no-namespace-defs', '') -# ('-o', './python/freight_ship_web_service_schema.py') +# ('-o', './ups_lib/freight_ship_web_service_schema.py') # # Command line arguments: # ./schemas/FreightShipWebServiceSchema.xsd # # Command line: -# /Users/danielkobina/Documents/Open/.env/bin/generateDS --no-namespace-defs -o "./python/freight_ship_web_service_schema.py" ./schemas/FreightShipWebServiceSchema.xsd +# /Users/danielkobina/Workspace/project/purplship/.venv/purplship/bin/generateDS --no-namespace-defs -o "./ups_lib/freight_ship_web_service_schema.py" ./schemas/FreightShipWebServiceSchema.xsd # # Current working directory (os.getcwd()): -# 2020-03 +# ups # +import sys +try: + ModulenotfoundExp_ = ModuleNotFoundError +except NameError: + ModulenotfoundExp_ = ImportError from six.moves import zip_longest import os -import sys import re as re_ import base64 import datetime as datetime_ import decimal as decimal_ -try: - from lxml import etree as etree_ -except ImportError: - from xml.etree import ElementTree as etree_ +from lxml import etree as etree_ Validate_simpletypes_ = True @@ -92,7 +93,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # Additionally, the generatedsnamespaces module can contain a python # dictionary named GenerateDSNamespaceTypePrefixes that associates element # types with the namespace prefixes that are to be added to the -# "xsi:type" attribute value. See the exportAttributes method of +# "xsi:type" attribute value. See the _exportAttributes method of # any generated element type and the generation of "xsi:type" for an # example of the use of this table. # An example table: @@ -107,11 +108,11 @@ def parsexmlstring_(instring, parser=None, **kwargs): try: from generatedsnamespaces import GenerateDSNamespaceDefs as GenerateDSNamespaceDefs_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceDefs_ = {} try: from generatedsnamespaces import GenerateDSNamespaceTypePrefixes as GenerateDSNamespaceTypePrefixes_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceTypePrefixes_ = {} # @@ -122,7 +123,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # try: from generatedscollector import GdsCollector as GdsCollector_ -except ImportError: +except ModulenotfoundExp_ : class GdsCollector_(object): @@ -156,7 +157,7 @@ def write_messages(self, outstream): try: from enum import Enum -except ImportError: +except ModulenotfoundExp_ : Enum = object # @@ -168,9 +169,14 @@ def write_messages(self, outstream): try: from generatedssuper import GeneratedsSuper -except ImportError as exp: +except ModulenotfoundExp_ as exp: + try: + from generatedssupersuper import GeneratedsSuperSuper + except ModulenotfoundExp_ as exp: + class GeneratedsSuperSuper(object): + pass - class GeneratedsSuper(object): + class GeneratedsSuper(GeneratedsSuperSuper): __hash__ = object.__hash__ tzoff_pattern = re_.compile(r'(\+|-)((0\d|1[0-3]):[0-5]\d|14:00)$') class _FixedOffsetTZ(datetime_.tzinfo): @@ -183,6 +189,30 @@ def tzname(self, dt): return self.__name def dst(self, dt): return None + def __str__(self): + settings = { + 'str_pretty_print': True, + 'str_indent_level': 0, + 'str_namespaceprefix': '', + 'str_name': None, + 'str_namespacedefs': '', + } + for n in settings: + if hasattr(self, n): + setattr(settings[n], self[n]) + from io import StringIO + output = StringIO() + self.export( + output, + settings['str_indent_level'], + pretty_print=settings['str_pretty_print'], + namespaceprefix_=settings['str_namespaceprefix'], + name_=settings['str_name'], + namespacedef_=settings['str_namespacedefs'] + ) + strval = output.getvalue() + output.close() + return strval def gds_format_string(self, input_data, input_name=''): return input_data def gds_parse_string(self, input_data, node=None, input_name=''): @@ -193,11 +223,11 @@ def gds_validate_string(self, input_data, node=None, input_name=''): else: return input_data def gds_format_base64(self, input_data, input_name=''): - return base64.b64encode(input_data) + return base64.b64encode(input_data).decode('ascii') def gds_validate_base64(self, input_data, node=None, input_name=''): return input_data def gds_format_integer(self, input_data, input_name=''): - return '%d' % input_data + return '%d' % int(input_data) def gds_parse_integer(self, input_data, node=None, input_name=''): try: ival = int(input_data) @@ -211,6 +241,8 @@ def gds_validate_integer(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires integer value') return value def gds_format_integer_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_integer_list( self, input_data, node=None, input_name=''): @@ -219,10 +251,10 @@ def gds_validate_integer_list( try: int(value) except (TypeError, ValueError): - raise_parse_error(node, 'Requires sequence of integer valuess') + raise_parse_error(node, 'Requires sequence of integer values') return values def gds_format_float(self, input_data, input_name=''): - return ('%.15f' % input_data).rstrip('0') + return ('%.15f' % float(input_data)).rstrip('0') def gds_parse_float(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -236,6 +268,8 @@ def gds_validate_float(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires float value') return value def gds_format_float_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_float_list( self, input_data, node=None, input_name=''): @@ -247,7 +281,12 @@ def gds_validate_float_list( raise_parse_error(node, 'Requires sequence of float values') return values def gds_format_decimal(self, input_data, input_name=''): - return ('%s' % input_data).rstrip('0') + return_value = '%s' % input_data + if '.' in return_value: + return_value = return_value.rstrip('0') + if return_value.endswith('.'): + return_value = return_value.rstrip('.') + return return_value def gds_parse_decimal(self, input_data, node=None, input_name=''): try: decimal_value = decimal_.Decimal(input_data) @@ -261,7 +300,9 @@ def gds_validate_decimal(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires decimal value') return value def gds_format_decimal_list(self, input_data, input_name=''): - return '%s' % ' '.join(input_data) + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] + return ' '.join([self.gds_format_decimal(item) for item in input_data]) def gds_validate_decimal_list( self, input_data, node=None, input_name=''): values = input_data.split() @@ -272,7 +313,7 @@ def gds_validate_decimal_list( raise_parse_error(node, 'Requires sequence of decimal values') return values def gds_format_double(self, input_data, input_name=''): - return '%e' % input_data + return '%s' % input_data def gds_parse_double(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -286,6 +327,8 @@ def gds_validate_double(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires double or float value') return value def gds_format_double_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_double_list( self, input_data, node=None, input_name=''): @@ -315,11 +358,14 @@ def gds_validate_boolean(self, input_data, node=None, input_name=''): '(one of True, 1, False, 0)') return input_data def gds_format_boolean_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_boolean_list( self, input_data, node=None, input_name=''): values = input_data.split() for value in values: + value = self.gds_parse_boolean(value, node, input_name) if value not in (True, 1, False, 0, ): raise_parse_error( node, @@ -766,7 +812,10 @@ def find_attr_value_(attr_name, node): value = attrs.get(attr_name) elif len(attr_parts) == 2: prefix, name = attr_parts - namespace = node.nsmap.get(prefix) + if prefix == 'xml': + namespace = 'http://www.w3.org/XML/1998/namespace' + else: + namespace = node.nsmap.get(prefix) if namespace is not None: value = attrs.get('{%s}%s' % (namespace, name, )) return value @@ -847,7 +896,7 @@ def exportSimple(self, outfile, level, name): self.name, base64.b64encode(self.value), self.name)) - def to_etree(self, element): + def to_etree(self, element, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.category == MixedContainer.CategoryText: # Prevent exporting empty content as empty lines. if self.value.strip(): @@ -867,7 +916,7 @@ def to_etree(self, element): subelement.text = self.to_etree_simple() else: # category == MixedContainer.CategoryComplex self.value.to_etree(element) - def to_etree_simple(self): + def to_etree_simple(self, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.content_type == MixedContainer.TypeString: text = self.value elif (self.content_type == MixedContainer.TypeInteger or @@ -956,9 +1005,9 @@ def __init__(self, Request=None, Shipment=None, gds_collector_=None, **kwargs_): self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Request = Request - self.Request_nsprefix_ = None + self.Request_nsprefix_ = "common" self.Shipment = Shipment - self.Shipment_nsprefix_ = None + self.Shipment_nsprefix_ = "fsp" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -982,7 +1031,7 @@ def get_Shipment(self): return self.Shipment def set_Shipment(self, Shipment): self.Shipment = Shipment - def hasContent_(self): + def _hasContent(self): if ( self.Request is not None or self.Shipment is not None @@ -1005,17 +1054,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='F showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightShipRequest') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightShipRequest') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightShipRequest', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightShipRequest', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightShipRequest'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightShipRequest'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightShipRequest', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightShipRequest', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1032,14 +1081,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Request': obj_ = RequestType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1064,9 +1113,9 @@ def __init__(self, Response=None, ShipmentResults=None, gds_collector_=None, **k self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Response = Response - self.Response_nsprefix_ = None + self.Response_nsprefix_ = "common" self.ShipmentResults = ShipmentResults - self.ShipmentResults_nsprefix_ = None + self.ShipmentResults_nsprefix_ = "fsp" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1090,7 +1139,7 @@ def get_ShipmentResults(self): return self.ShipmentResults def set_ShipmentResults(self, ShipmentResults): self.ShipmentResults = ShipmentResults - def hasContent_(self): + def _hasContent(self): if ( self.Response is not None or self.ShipmentResults is not None @@ -1113,17 +1162,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='F showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightShipResponse') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightShipResponse') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightShipResponse', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightShipResponse', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightShipResponse'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightShipResponse'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightShipResponse', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightShipResponse', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1140,14 +1189,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Response': obj_ = ResponseType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1172,26 +1221,26 @@ def __init__(self, ShipFrom=None, ShipperNumber=None, ShipTo=None, PaymentInform self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.ShipFrom = ShipFrom - self.ShipFrom_nsprefix_ = None + self.ShipFrom_nsprefix_ = "fsp" self.ShipperNumber = ShipperNumber self.ShipperNumber_nsprefix_ = None self.ShipTo = ShipTo - self.ShipTo_nsprefix_ = None + self.ShipTo_nsprefix_ = "fsp" self.PaymentInformation = PaymentInformation - self.PaymentInformation_nsprefix_ = None + self.PaymentInformation_nsprefix_ = "fsp" if ManufactureInformation is None: self.ManufactureInformation = [] else: self.ManufactureInformation = ManufactureInformation - self.ManufactureInformation_nsprefix_ = None + self.ManufactureInformation_nsprefix_ = "fsp" self.Service = Service - self.Service_nsprefix_ = None + self.Service_nsprefix_ = "fsp" self.HandlingUnitOne = HandlingUnitOne - self.HandlingUnitOne_nsprefix_ = None + self.HandlingUnitOne_nsprefix_ = "fsp" self.HandlingUnitTwo = HandlingUnitTwo - self.HandlingUnitTwo_nsprefix_ = None + self.HandlingUnitTwo_nsprefix_ = "fsp" self.ExistingShipmentID = ExistingShipmentID - self.ExistingShipmentID_nsprefix_ = None + self.ExistingShipmentID_nsprefix_ = "fsp" self.HandlingInstructions = HandlingInstructions self.HandlingInstructions_nsprefix_ = None self.DeliveryInstructions = DeliveryInstructions @@ -1201,27 +1250,27 @@ def __init__(self, ShipFrom=None, ShipperNumber=None, ShipTo=None, PaymentInform self.SpecialInstructions = SpecialInstructions self.SpecialInstructions_nsprefix_ = None self.ShipmentTotalWeight = ShipmentTotalWeight - self.ShipmentTotalWeight_nsprefix_ = None + self.ShipmentTotalWeight_nsprefix_ = "fsp" if Commodity is None: self.Commodity = [] else: self.Commodity = Commodity - self.Commodity_nsprefix_ = None + self.Commodity_nsprefix_ = "fsp" if Reference is None: self.Reference = [] else: self.Reference = Reference - self.Reference_nsprefix_ = None + self.Reference_nsprefix_ = "fsp" self.ShipmentServiceOptions = ShipmentServiceOptions - self.ShipmentServiceOptions_nsprefix_ = None + self.ShipmentServiceOptions_nsprefix_ = "fsp" self.PickupRequest = PickupRequest - self.PickupRequest_nsprefix_ = None + self.PickupRequest_nsprefix_ = "fsp" self.Documents = Documents - self.Documents_nsprefix_ = None + self.Documents_nsprefix_ = "fsp" self.ITNNumber = ITNNumber self.ITNNumber_nsprefix_ = None self.TaxID = TaxID - self.TaxID_nsprefix_ = None + self.TaxID_nsprefix_ = "fsp" self.MovementReferenceNumber = MovementReferenceNumber self.MovementReferenceNumber_nsprefix_ = None self.EICNumberAndStatement = EICNumberAndStatement @@ -1232,7 +1281,7 @@ def __init__(self, ShipFrom=None, ShipperNumber=None, ShipTo=None, PaymentInform self.HandlingUnits = [] else: self.HandlingUnits = HandlingUnits - self.HandlingUnits_nsprefix_ = None + self.HandlingUnits_nsprefix_ = "fsp" self.DensityEligibleIndicator = DensityEligibleIndicator self.DensityEligibleIndicator_nsprefix_ = None def factory(*args_, **kwargs_): @@ -1378,7 +1427,7 @@ def get_DensityEligibleIndicator(self): return self.DensityEligibleIndicator def set_DensityEligibleIndicator(self, DensityEligibleIndicator): self.DensityEligibleIndicator = DensityEligibleIndicator - def hasContent_(self): + def _hasContent(self): if ( self.ShipFrom is not None or self.ShipperNumber is not None or @@ -1425,17 +1474,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1534,14 +1583,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ShipFrom': obj_ = ShipFromType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1700,15 +1749,15 @@ def __init__(self, Name=None, TaxIdentificationNumber=None, TaxIDType=None, Tari self.TaxIdentificationNumber = TaxIdentificationNumber self.TaxIdentificationNumber_nsprefix_ = None self.TaxIDType = TaxIDType - self.TaxIDType_nsprefix_ = None + self.TaxIDType_nsprefix_ = "fsp" self.TariffPoint = TariffPoint self.TariffPoint_nsprefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "fsp" self.AttentionName = AttentionName self.AttentionName_nsprefix_ = None self.Phone = Phone - self.Phone_nsprefix_ = None + self.Phone_nsprefix_ = "fsp" self.FaxNumber = FaxNumber self.FaxNumber_nsprefix_ = None self.EMailAddress = EMailAddress @@ -1764,7 +1813,7 @@ def get_EMailAddress(self): return self.EMailAddress def set_EMailAddress(self, EMailAddress): self.EMailAddress = EMailAddress - def hasContent_(self): + def _hasContent(self): if ( self.Name is not None or self.TaxIdentificationNumber is not None or @@ -1794,17 +1843,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipFromType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipFromType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipFromType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipFromType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipFromType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipFromType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipFromType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipFromType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1848,14 +1897,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Name': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Name') @@ -1925,13 +1974,13 @@ def __init__(self, Name=None, TaxIdentificationNumber=None, Address=None, Tariff self.TaxIdentificationNumber = TaxIdentificationNumber self.TaxIdentificationNumber_nsprefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "fsp" self.TariffPoint = TariffPoint self.TariffPoint_nsprefix_ = None self.AttentionName = AttentionName self.AttentionName_nsprefix_ = None self.Phone = Phone - self.Phone_nsprefix_ = None + self.Phone_nsprefix_ = "fsp" self.FaxNumber = FaxNumber self.FaxNumber_nsprefix_ = None self.EMailAddress = EMailAddress @@ -1983,7 +2032,7 @@ def get_EMailAddress(self): return self.EMailAddress def set_EMailAddress(self, EMailAddress): self.EMailAddress = EMailAddress - def hasContent_(self): + def _hasContent(self): if ( self.Name is not None or self.TaxIdentificationNumber is not None or @@ -2012,17 +2061,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipToType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipToType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipToType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipToType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipToType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipToType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipToType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipToType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2063,14 +2112,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Name': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Name') @@ -2131,9 +2180,9 @@ def __init__(self, Payer=None, ShipmentBillingOption=None, gds_collector_=None, self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Payer = Payer - self.Payer_nsprefix_ = None + self.Payer_nsprefix_ = "fsp" self.ShipmentBillingOption = ShipmentBillingOption - self.ShipmentBillingOption_nsprefix_ = None + self.ShipmentBillingOption_nsprefix_ = "fsp" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -2157,7 +2206,7 @@ def get_ShipmentBillingOption(self): return self.ShipmentBillingOption def set_ShipmentBillingOption(self, ShipmentBillingOption): self.ShipmentBillingOption = ShipmentBillingOption - def hasContent_(self): + def _hasContent(self): if ( self.Payer is not None or self.ShipmentBillingOption is not None @@ -2180,17 +2229,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PaymentInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PaymentInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PaymentInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PaymentInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PaymentInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PaymentInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PaymentInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PaymentInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2207,14 +2256,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Payer': obj_ = PayerType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -2241,13 +2290,13 @@ def __init__(self, Name=None, Address=None, ShipperNumber=None, AttentionName=No self.Name = Name self.Name_nsprefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "fsp" self.ShipperNumber = ShipperNumber self.ShipperNumber_nsprefix_ = None self.AttentionName = AttentionName self.AttentionName_nsprefix_ = None self.Phone = Phone - self.Phone_nsprefix_ = None + self.Phone_nsprefix_ = "fsp" self.FaxNumber = FaxNumber self.FaxNumber_nsprefix_ = None self.EMailAddress = EMailAddress @@ -2295,7 +2344,7 @@ def get_EMailAddress(self): return self.EMailAddress def set_EMailAddress(self, EMailAddress): self.EMailAddress = EMailAddress - def hasContent_(self): + def _hasContent(self): if ( self.Name is not None or self.Address is not None or @@ -2323,17 +2372,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PayerType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PayerType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PayerType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PayerType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PayerType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PayerType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PayerType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PayerType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2370,14 +2419,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Name': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Name') @@ -2491,7 +2540,7 @@ def get_CountryCode(self): return self.CountryCode def set_CountryCode(self, CountryCode): self.CountryCode = CountryCode - def hasContent_(self): + def _hasContent(self): if ( self.AddressLine or self.City is not None or @@ -2518,17 +2567,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='F showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightShipAddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightShipAddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightShipAddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightShipAddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightShipAddressType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightShipAddressType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightShipAddressType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightShipAddressType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2563,14 +2612,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AddressLine': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'AddressLine') @@ -2647,7 +2696,7 @@ def get_Extension(self): return self.Extension def set_Extension(self, Extension): self.Extension = Extension - def hasContent_(self): + def _hasContent(self): if ( self.Number is not None or self.Extension is not None @@ -2670,17 +2719,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='F showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightShipPhoneType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightShipPhoneType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightShipPhoneType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightShipPhoneType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightShipPhoneType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightShipPhoneType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightShipPhoneType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightShipPhoneType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2699,14 +2748,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Number': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Number') @@ -2759,7 +2808,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -2782,17 +2831,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipCodeDescriptionType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipCodeDescriptionType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipCodeDescriptionType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipCodeDescriptionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipCodeDescriptionType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipCodeDescriptionType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipCodeDescriptionType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipCodeDescriptionType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2811,14 +2860,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -2847,7 +2896,7 @@ def __init__(self, Quantity=None, Type=None, gds_collector_=None, **kwargs_): self.Quantity = Quantity self.Quantity_nsprefix_ = None self.Type = Type - self.Type_nsprefix_ = None + self.Type_nsprefix_ = "fsp" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -2871,7 +2920,7 @@ def get_Type(self): return self.Type def set_Type(self, Type): self.Type = Type - def hasContent_(self): + def _hasContent(self): if ( self.Quantity is not None or self.Type is not None @@ -2894,17 +2943,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='H showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HandlingUnitType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HandlingUnitType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HandlingUnitType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HandlingUnitType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HandlingUnitType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HandlingUnitType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HandlingUnitType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HandlingUnitType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2922,14 +2971,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Quantity': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Quantity') @@ -2957,7 +3006,7 @@ def __init__(self, ShipmentNumber=None, ConfirmationNumber=None, CreationDate=No self.ShipmentNumber = ShipmentNumber self.ShipmentNumber_nsprefix_ = None self.ConfirmationNumber = ConfirmationNumber - self.ConfirmationNumber_nsprefix_ = None + self.ConfirmationNumber_nsprefix_ = "fsp" self.CreationDate = CreationDate self.CreationDate_nsprefix_ = None def factory(*args_, **kwargs_): @@ -2987,7 +3036,7 @@ def get_CreationDate(self): return self.CreationDate def set_CreationDate(self, CreationDate): self.CreationDate = CreationDate - def hasContent_(self): + def _hasContent(self): if ( self.ShipmentNumber is not None or self.ConfirmationNumber is not None or @@ -3011,17 +3060,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='E showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ExistingShipmentIDType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ExistingShipmentIDType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ExistingShipmentIDType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ExistingShipmentIDType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ExistingShipmentIDType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ExistingShipmentIDType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ExistingShipmentIDType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ExistingShipmentIDType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3043,14 +3092,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ShipmentNumber': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ShipmentNumber') @@ -3086,23 +3135,23 @@ def __init__(self, CommodityID=None, Description=None, Weight=None, Dimensions=N self.Description = Description self.Description_nsprefix_ = None self.Weight = Weight - self.Weight_nsprefix_ = None + self.Weight_nsprefix_ = "fsp" self.Dimensions = Dimensions - self.Dimensions_nsprefix_ = None + self.Dimensions_nsprefix_ = "fsp" self.NumberOfPieces = NumberOfPieces self.NumberOfPieces_nsprefix_ = None self.PackagingType = PackagingType - self.PackagingType_nsprefix_ = None + self.PackagingType_nsprefix_ = "fsp" self.DangerousGoodsIndicator = DangerousGoodsIndicator self.DangerousGoodsIndicator_nsprefix_ = None self.CommodityValue = CommodityValue - self.CommodityValue_nsprefix_ = None + self.CommodityValue_nsprefix_ = "fsp" self.FreightClass = FreightClass self.FreightClass_nsprefix_ = None self.NMFCCommodityCode = NMFCCommodityCode self.NMFCCommodityCode_nsprefix_ = None self.NMFCCommodity = NMFCCommodity - self.NMFCCommodity_nsprefix_ = None + self.NMFCCommodity_nsprefix_ = "fsp" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -3162,7 +3211,7 @@ def get_NMFCCommodity(self): return self.NMFCCommodity def set_NMFCCommodity(self, NMFCCommodity): self.NMFCCommodity = NMFCCommodity - def hasContent_(self): + def _hasContent(self): if ( self.CommodityID is not None or self.Description is not None or @@ -3194,17 +3243,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CommodityType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CommodityType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CommodityType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CommodityType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CommodityType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CommodityType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CommodityType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CommodityType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3254,14 +3303,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CommodityID': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CommodityID') @@ -3363,7 +3412,7 @@ def get_SubCode(self): return self.SubCode def set_SubCode(self, SubCode): self.SubCode = SubCode - def hasContent_(self): + def _hasContent(self): if ( self.PrimeCode is not None or self.SubCode is not None @@ -3386,17 +3435,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='N showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='NMFCCommodityType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='NMFCCommodityType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='NMFCCommodityType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='NMFCCommodityType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='NMFCCommodityType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='NMFCCommodityType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='NMFCCommodityType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='NMFCCommodityType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3415,14 +3464,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PrimeCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'PrimeCode') @@ -3449,7 +3498,7 @@ def __init__(self, UnitOfMeasurement=None, Value=None, gds_collector_=None, **kw self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.UnitOfMeasurement = UnitOfMeasurement - self.UnitOfMeasurement_nsprefix_ = None + self.UnitOfMeasurement_nsprefix_ = "fsp" self.Value = Value self.Value_nsprefix_ = None def factory(*args_, **kwargs_): @@ -3475,7 +3524,7 @@ def get_Value(self): return self.Value def set_Value(self, Value): self.Value = Value - def hasContent_(self): + def _hasContent(self): if ( self.UnitOfMeasurement is not None or self.Value is not None @@ -3498,17 +3547,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='W showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='WeightType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='WeightType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='WeightType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='WeightType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='WeightType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='WeightType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='WeightType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='WeightType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3526,14 +3575,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'UnitOfMeasurement': obj_ = FreightShipUnitOfMeasurementType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -3585,7 +3634,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -3608,17 +3657,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='F showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightShipUnitOfMeasurementType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightShipUnitOfMeasurementType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightShipUnitOfMeasurementType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightShipUnitOfMeasurementType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightShipUnitOfMeasurementType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightShipUnitOfMeasurementType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightShipUnitOfMeasurementType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightShipUnitOfMeasurementType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3637,14 +3686,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -3671,7 +3720,7 @@ def __init__(self, UnitOfMeasurement=None, Length=None, Width=None, Height=None, self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.UnitOfMeasurement = UnitOfMeasurement - self.UnitOfMeasurement_nsprefix_ = None + self.UnitOfMeasurement_nsprefix_ = "fsp" self.Length = Length self.Length_nsprefix_ = None self.Width = Width @@ -3709,7 +3758,7 @@ def get_Height(self): return self.Height def set_Height(self, Height): self.Height = Height - def hasContent_(self): + def _hasContent(self): if ( self.UnitOfMeasurement is not None or self.Length is not None or @@ -3734,17 +3783,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DimensionsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DimensionsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DimensionsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DimensionsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DimensionsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DimensionsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DimensionsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DimensionsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3770,14 +3819,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'UnitOfMeasurement': obj_ = FreightShipUnitOfMeasurementType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -3841,7 +3890,7 @@ def get_MonetaryValue(self): return self.MonetaryValue def set_MonetaryValue(self, MonetaryValue): self.MonetaryValue = MonetaryValue - def hasContent_(self): + def _hasContent(self): if ( self.CurrencyCode is not None or self.MonetaryValue is not None @@ -3864,17 +3913,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CommodityValueType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CommodityValueType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CommodityValueType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CommodityValueType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CommodityValueType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CommodityValueType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CommodityValueType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CommodityValueType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3893,14 +3942,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CurrencyCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CurrencyCode') @@ -3927,13 +3976,13 @@ def __init__(self, Number=None, BarCodeIndicator=None, NumberOfCartons=None, Wei self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Number = Number - self.Number_nsprefix_ = None + self.Number_nsprefix_ = "fsp" self.BarCodeIndicator = BarCodeIndicator self.BarCodeIndicator_nsprefix_ = None self.NumberOfCartons = NumberOfCartons self.NumberOfCartons_nsprefix_ = None self.Weight = Weight - self.Weight_nsprefix_ = None + self.Weight_nsprefix_ = "fsp" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -3965,7 +4014,7 @@ def get_Weight(self): return self.Weight def set_Weight(self, Weight): self.Weight = Weight - def hasContent_(self): + def _hasContent(self): if ( self.Number is not None or self.BarCodeIndicator is not None or @@ -3990,17 +4039,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ReferenceType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ReferenceType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ReferenceType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ReferenceType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ReferenceType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ReferenceType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ReferenceType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ReferenceType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4025,14 +4074,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Number': obj_ = ReferenceNumberType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -4095,7 +4144,7 @@ def get_Value(self): return self.Value def set_Value(self, Value): self.Value = Value - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Value is not None @@ -4118,17 +4167,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ReferenceNumberType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ReferenceNumberType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ReferenceNumberType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ReferenceNumberType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ReferenceNumberType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ReferenceNumberType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ReferenceNumberType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ReferenceNumberType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4147,14 +4196,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -4184,31 +4233,31 @@ def __init__(self, EMailInformation=None, PickupOptions=None, DeliveryOptions=No self.EMailInformation = [] else: self.EMailInformation = EMailInformation - self.EMailInformation_nsprefix_ = None + self.EMailInformation_nsprefix_ = "fsp" self.PickupOptions = PickupOptions - self.PickupOptions_nsprefix_ = None + self.PickupOptions_nsprefix_ = "fsp" self.DeliveryOptions = DeliveryOptions - self.DeliveryOptions_nsprefix_ = None + self.DeliveryOptions_nsprefix_ = "fsp" self.OverSeasLeg = OverSeasLeg - self.OverSeasLeg_nsprefix_ = None + self.OverSeasLeg_nsprefix_ = "fsp" self.COD = COD - self.COD_nsprefix_ = None + self.COD_nsprefix_ = "fsp" self.DangerousGoods = DangerousGoods - self.DangerousGoods_nsprefix_ = None + self.DangerousGoods_nsprefix_ = "fsp" self.SortingAndSegregating = SortingAndSegregating - self.SortingAndSegregating_nsprefix_ = None + self.SortingAndSegregating_nsprefix_ = "fsp" self.DeclaredValue = DeclaredValue - self.DeclaredValue_nsprefix_ = None + self.DeclaredValue_nsprefix_ = "fsp" self.ExcessDeclaredValue = ExcessDeclaredValue - self.ExcessDeclaredValue_nsprefix_ = None + self.ExcessDeclaredValue_nsprefix_ = "fsp" self.CustomsValue = CustomsValue - self.CustomsValue_nsprefix_ = None + self.CustomsValue_nsprefix_ = "fsp" self.DeliveryDutiesPaidIndicator = DeliveryDutiesPaidIndicator self.DeliveryDutiesPaidIndicator_nsprefix_ = None self.DeliveryDutiesUnpaidIndicator = DeliveryDutiesUnpaidIndicator self.DeliveryDutiesUnpaidIndicator_nsprefix_ = None self.HandlingCharge = HandlingCharge - self.HandlingCharge_nsprefix_ = None + self.HandlingCharge_nsprefix_ = "fsp" self.CustomsClearanceIndicator = CustomsClearanceIndicator self.CustomsClearanceIndicator_nsprefix_ = None self.FreezableProtectionIndicator = FreezableProtectionIndicator @@ -4306,7 +4355,7 @@ def get_LinearFeet(self): return self.LinearFeet def set_LinearFeet(self, LinearFeet): self.LinearFeet = LinearFeet - def hasContent_(self): + def _hasContent(self): if ( self.EMailInformation or self.PickupOptions is not None or @@ -4344,17 +4393,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentServiceOptionsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentServiceOptionsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentServiceOptionsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentServiceOptionsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentServiceOptionsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentServiceOptionsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentServiceOptionsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentServiceOptionsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4422,14 +4471,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'EMailInformation': obj_ = EMailInformationType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -4535,9 +4584,9 @@ def __init__(self, EMailType=None, EMail=None, gds_collector_=None, **kwargs_): self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.EMailType = EMailType - self.EMailType_nsprefix_ = None + self.EMailType_nsprefix_ = "fsp" self.EMail = EMail - self.EMail_nsprefix_ = None + self.EMail_nsprefix_ = "fsp" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -4561,7 +4610,7 @@ def get_EMail(self): return self.EMail def set_EMail(self, EMail): self.EMail = EMail - def hasContent_(self): + def _hasContent(self): if ( self.EMailType is not None or self.EMail is not None @@ -4584,17 +4633,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='E showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='EMailInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='EMailInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='EMailInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='EMailInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='EMailInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='EMailInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='EMailInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='EMailInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4611,14 +4660,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'EMailType': obj_ = ShipCodeDescriptionType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -4690,7 +4739,7 @@ def get_Subject(self): return self.Subject def set_Subject(self, Subject): self.Subject = Subject - def hasContent_(self): + def _hasContent(self): if ( self.EMailAddress or self.EMailText is not None or @@ -4715,17 +4764,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='E showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='EMailType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='EMailType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='EMailType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='EMailType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='EMailType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='EMailType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='EMailType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='EMailType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4752,14 +4801,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'EMailAddress': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'EMailAddress') @@ -4860,7 +4909,7 @@ def get_LimitedAccessPickupIndicator(self): return self.LimitedAccessPickupIndicator def set_LimitedAccessPickupIndicator(self, LimitedAccessPickupIndicator): self.LimitedAccessPickupIndicator = LimitedAccessPickupIndicator - def hasContent_(self): + def _hasContent(self): if ( self.HolidayPickupIndicator is not None or self.InsidePickupIndicator is not None or @@ -4889,17 +4938,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupOptionsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupOptionsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupOptionsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupOptionsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupOptionsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupOptionsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupOptionsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupOptionsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4942,14 +4991,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'HolidayPickupIndicator': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'HolidayPickupIndicator') @@ -5080,7 +5129,7 @@ def get_LimitedAccessDeliveryIndicator(self): return self.LimitedAccessDeliveryIndicator def set_LimitedAccessDeliveryIndicator(self, LimitedAccessDeliveryIndicator): self.LimitedAccessDeliveryIndicator = LimitedAccessDeliveryIndicator - def hasContent_(self): + def _hasContent(self): if ( self.CallBeforeDeliveryIndicator is not None or self.HolidayDeliveryIndicator is not None or @@ -5110,17 +5159,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DeliveryOptionsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DeliveryOptionsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DeliveryOptionsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DeliveryOptionsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DeliveryOptionsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DeliveryOptionsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DeliveryOptionsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DeliveryOptionsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5167,14 +5216,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CallBeforeDeliveryIndicator': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CallBeforeDeliveryIndicator') @@ -5243,9 +5292,9 @@ def __init__(self, Dimensions=None, Value=None, gds_collector_=None, **kwargs_): self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Dimensions = Dimensions - self.Dimensions_nsprefix_ = None + self.Dimensions_nsprefix_ = "fsp" self.Value = Value - self.Value_nsprefix_ = None + self.Value_nsprefix_ = "fsp" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -5269,7 +5318,7 @@ def get_Value(self): return self.Value def set_Value(self, Value): self.Value = Value - def hasContent_(self): + def _hasContent(self): if ( self.Dimensions is not None or self.Value is not None @@ -5292,17 +5341,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='O showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='OverSeasLegType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='OverSeasLegType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='OverSeasLegType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='OverSeasLegType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='OverSeasLegType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='OverSeasLegType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='OverSeasLegType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='OverSeasLegType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5319,14 +5368,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Dimensions': obj_ = DimensionType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -5359,7 +5408,7 @@ def __init__(self, Volume=None, Height=None, Length=None, Width=None, UnitOfMeas self.Width = Width self.Width_nsprefix_ = None self.UnitOfMeasurement = UnitOfMeasurement - self.UnitOfMeasurement_nsprefix_ = None + self.UnitOfMeasurement_nsprefix_ = "fsp" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -5395,7 +5444,7 @@ def get_UnitOfMeasurement(self): return self.UnitOfMeasurement def set_UnitOfMeasurement(self, UnitOfMeasurement): self.UnitOfMeasurement = UnitOfMeasurement - def hasContent_(self): + def _hasContent(self): if ( self.Volume is not None or self.Height is not None or @@ -5421,17 +5470,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DimensionType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DimensionType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DimensionType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DimensionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DimensionType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DimensionType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DimensionType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DimensionType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5461,14 +5510,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Volume': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Volume') @@ -5512,9 +5561,9 @@ def __init__(self, Cube=None, CWT=None, gds_collector_=None, **kwargs_): self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Cube = Cube - self.Cube_nsprefix_ = None + self.Cube_nsprefix_ = "fsp" self.CWT = CWT - self.CWT_nsprefix_ = None + self.CWT_nsprefix_ = "fsp" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -5538,7 +5587,7 @@ def get_CWT(self): return self.CWT def set_CWT(self, CWT): self.CWT = CWT - def hasContent_(self): + def _hasContent(self): if ( self.Cube is not None or self.CWT is not None @@ -5561,17 +5610,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DimensionValueType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DimensionValueType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DimensionValueType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DimensionValueType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DimensionValueType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DimensionValueType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DimensionValueType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DimensionValueType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5588,14 +5637,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Cube': obj_ = CubeType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -5646,7 +5695,7 @@ def get_MonetaryValue(self): return self.MonetaryValue def set_MonetaryValue(self, MonetaryValue): self.MonetaryValue = MonetaryValue - def hasContent_(self): + def _hasContent(self): if ( self.CurrencyCode is not None or self.MonetaryValue is not None @@ -5669,17 +5718,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CubeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CubeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CubeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CubeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CubeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CubeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CubeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CubeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5698,14 +5747,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CurrencyCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CurrencyCode') @@ -5758,7 +5807,7 @@ def get_MonetaryValue(self): return self.MonetaryValue def set_MonetaryValue(self, MonetaryValue): self.MonetaryValue = MonetaryValue - def hasContent_(self): + def _hasContent(self): if ( self.CurrencyCode is not None or self.MonetaryValue is not None @@ -5781,17 +5830,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CWTType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CWTType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CWTType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CWTType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CWTType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CWTType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CWTType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CWTType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5810,14 +5859,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CurrencyCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CurrencyCode') @@ -5844,13 +5893,13 @@ def __init__(self, CODValue=None, CODPaymentMethod=None, CODBillingOption=None, self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.CODValue = CODValue - self.CODValue_nsprefix_ = None + self.CODValue_nsprefix_ = "fsp" self.CODPaymentMethod = CODPaymentMethod - self.CODPaymentMethod_nsprefix_ = None + self.CODPaymentMethod_nsprefix_ = "fsp" self.CODBillingOption = CODBillingOption - self.CODBillingOption_nsprefix_ = None + self.CODBillingOption_nsprefix_ = "fsp" self.RemitTo = RemitTo - self.RemitTo_nsprefix_ = None + self.RemitTo_nsprefix_ = "fsp" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -5882,7 +5931,7 @@ def get_RemitTo(self): return self.RemitTo def set_RemitTo(self, RemitTo): self.RemitTo = RemitTo - def hasContent_(self): + def _hasContent(self): if ( self.CODValue is not None or self.CODPaymentMethod is not None or @@ -5907,17 +5956,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CODType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CODType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CODType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CODType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CODType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CODType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CODType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CODType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5940,14 +5989,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CODValue': obj_ = CODValueType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -6008,7 +6057,7 @@ def get_MonetaryValue(self): return self.MonetaryValue def set_MonetaryValue(self, MonetaryValue): self.MonetaryValue = MonetaryValue - def hasContent_(self): + def _hasContent(self): if ( self.CurrencyCode is not None or self.MonetaryValue is not None @@ -6031,17 +6080,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CODValueType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CODValueType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CODValueType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CODValueType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CODValueType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CODValueType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CODValueType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CODValueType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6060,14 +6109,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CurrencyCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CurrencyCode') @@ -6096,11 +6145,11 @@ def __init__(self, Name=None, Address=None, AttentionName=None, Phone=None, FaxN self.Name = Name self.Name_nsprefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "fsp" self.AttentionName = AttentionName self.AttentionName_nsprefix_ = None self.Phone = Phone - self.Phone_nsprefix_ = None + self.Phone_nsprefix_ = "fsp" self.FaxNumber = FaxNumber self.FaxNumber_nsprefix_ = None self.EMailAddress = EMailAddress @@ -6144,7 +6193,7 @@ def get_EMailAddress(self): return self.EMailAddress def set_EMailAddress(self, EMailAddress): self.EMailAddress = EMailAddress - def hasContent_(self): + def _hasContent(self): if ( self.Name is not None or self.Address is not None or @@ -6171,17 +6220,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RemitToType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RemitToType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RemitToType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RemitToType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RemitToType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RemitToType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RemitToType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RemitToType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6214,14 +6263,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Name': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Name') @@ -6272,9 +6321,9 @@ def __init__(self, Name=None, Phone=None, TransportationMode=None, gds_collector self.Name = Name self.Name_nsprefix_ = None self.Phone = Phone - self.Phone_nsprefix_ = None + self.Phone_nsprefix_ = "fsp" self.TransportationMode = TransportationMode - self.TransportationMode_nsprefix_ = None + self.TransportationMode_nsprefix_ = "fsp" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -6302,7 +6351,7 @@ def get_TransportationMode(self): return self.TransportationMode def set_TransportationMode(self, TransportationMode): self.TransportationMode = TransportationMode - def hasContent_(self): + def _hasContent(self): if ( self.Name is not None or self.Phone is not None or @@ -6326,17 +6375,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DangerousGoodsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DangerousGoodsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DangerousGoodsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DangerousGoodsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DangerousGoodsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DangerousGoodsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DangerousGoodsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DangerousGoodsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6357,14 +6406,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Name': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Name') @@ -6415,7 +6464,7 @@ def get_Quantity(self): return self.Quantity def set_Quantity(self, Quantity): self.Quantity = Quantity - def hasContent_(self): + def _hasContent(self): if ( self.Quantity is not None ): @@ -6437,17 +6486,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SortingAndSegregatingType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SortingAndSegregatingType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='SortingAndSegregatingType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='SortingAndSegregatingType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='SortingAndSegregatingType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='SortingAndSegregatingType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='SortingAndSegregatingType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='SortingAndSegregatingType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6462,14 +6511,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Quantity': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Quantity') @@ -6516,7 +6565,7 @@ def get_MonetaryValue(self): return self.MonetaryValue def set_MonetaryValue(self, MonetaryValue): self.MonetaryValue = MonetaryValue - def hasContent_(self): + def _hasContent(self): if ( self.CurrencyCode is not None or self.MonetaryValue is not None @@ -6539,17 +6588,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DeclaredValueType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DeclaredValueType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DeclaredValueType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DeclaredValueType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DeclaredValueType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DeclaredValueType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DeclaredValueType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DeclaredValueType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6568,14 +6617,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CurrencyCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CurrencyCode') @@ -6628,7 +6677,7 @@ def get_MonetaryValue(self): return self.MonetaryValue def set_MonetaryValue(self, MonetaryValue): self.MonetaryValue = MonetaryValue - def hasContent_(self): + def _hasContent(self): if ( self.CurrencyCode is not None or self.MonetaryValue is not None @@ -6651,17 +6700,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CustomsValueType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CustomsValueType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CustomsValueType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CustomsValueType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CustomsValueType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CustomsValueType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CustomsValueType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CustomsValueType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6680,14 +6729,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CurrencyCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CurrencyCode') @@ -6716,7 +6765,7 @@ def __init__(self, Percentage=None, Amount=None, gds_collector_=None, **kwargs_) self.Percentage = Percentage self.Percentage_nsprefix_ = None self.Amount = Amount - self.Amount_nsprefix_ = None + self.Amount_nsprefix_ = "fsp" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -6740,7 +6789,7 @@ def get_Amount(self): return self.Amount def set_Amount(self, Amount): self.Amount = Amount - def hasContent_(self): + def _hasContent(self): if ( self.Percentage is not None or self.Amount is not None @@ -6763,17 +6812,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='H showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HandlingChargeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HandlingChargeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HandlingChargeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HandlingChargeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HandlingChargeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HandlingChargeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HandlingChargeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HandlingChargeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6791,14 +6840,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Percentage': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Percentage') @@ -6850,7 +6899,7 @@ def get_MonetaryValue(self): return self.MonetaryValue def set_MonetaryValue(self, MonetaryValue): self.MonetaryValue = MonetaryValue - def hasContent_(self): + def _hasContent(self): if ( self.CurrencyCode is not None or self.MonetaryValue is not None @@ -6873,17 +6922,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='H showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HandlingChargeAmountType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HandlingChargeAmountType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HandlingChargeAmountType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HandlingChargeAmountType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HandlingChargeAmountType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HandlingChargeAmountType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HandlingChargeAmountType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HandlingChargeAmountType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6902,14 +6951,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CurrencyCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CurrencyCode') @@ -6938,7 +6987,7 @@ def __init__(self, AdditionalComments=None, Requester=None, PickupDate=None, Ear self.AdditionalComments = AdditionalComments self.AdditionalComments_nsprefix_ = None self.Requester = Requester - self.Requester_nsprefix_ = None + self.Requester_nsprefix_ = "fsp" self.PickupDate = PickupDate self.PickupDate_nsprefix_ = None self.EarliestTimeReady = EarliestTimeReady @@ -6950,7 +6999,7 @@ def __init__(self, AdditionalComments=None, Requester=None, PickupDate=None, Ear self.DropoffTimeReady = DropoffTimeReady self.DropoffTimeReady_nsprefix_ = None self.POM = POM - self.POM_nsprefix_ = None + self.POM_nsprefix_ = "fsp" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -6998,7 +7047,7 @@ def get_POM(self): return self.POM def set_POM(self, POM): self.POM = POM - def hasContent_(self): + def _hasContent(self): if ( self.AdditionalComments is not None or self.Requester is not None or @@ -7027,17 +7076,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupRequestType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupRequestType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupRequestType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupRequestType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupRequestType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupRequestType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupRequestType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupRequestType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7078,14 +7127,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AdditionalComments': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'AdditionalComments') @@ -7150,7 +7199,7 @@ def __init__(self, POMNumber=None, POMNumberType=None, PickupNotifications=None, self.POMNumberType = POMNumberType self.POMNumberType_nsprefix_ = None self.PickupNotifications = PickupNotifications - self.PickupNotifications_nsprefix_ = None + self.PickupNotifications_nsprefix_ = "fsp" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -7178,7 +7227,7 @@ def get_PickupNotifications(self): return self.PickupNotifications def set_PickupNotifications(self, PickupNotifications): self.PickupNotifications = PickupNotifications - def hasContent_(self): + def _hasContent(self): if ( self.POMNumber is not None or self.POMNumberType is not None or @@ -7202,17 +7251,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='POMType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='POMType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='POMType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='POMType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='POMType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='POMType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='POMType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='POMType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7234,14 +7283,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'POMNumber': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'POMNumber') @@ -7278,7 +7327,7 @@ def __init__(self, CompanyName=None, EMailNotification=None, FailedEMail=None, g self.EMailNotification = [] else: self.EMailNotification = EMailNotification - self.EMailNotification_nsprefix_ = None + self.EMailNotification_nsprefix_ = "fsp" self.FailedEMail = FailedEMail self.FailedEMail_nsprefix_ = None def factory(*args_, **kwargs_): @@ -7314,7 +7363,7 @@ def get_FailedEMail(self): return self.FailedEMail def set_FailedEMail(self, FailedEMail): self.FailedEMail = FailedEMail - def hasContent_(self): + def _hasContent(self): if ( self.CompanyName is not None or self.EMailNotification or @@ -7338,17 +7387,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupNotificationsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupNotificationsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupNotificationsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupNotificationsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupNotificationsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupNotificationsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupNotificationsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupNotificationsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7370,14 +7419,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CompanyName': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CompanyName') @@ -7444,7 +7493,7 @@ def insert_EventType_at(self, index, value): self.EventType.insert(index, value) def replace_EventType_at(self, index, value): self.EventType[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.EMailAddress is not None or self.EventType @@ -7467,17 +7516,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='E showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='EMailNotificationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='EMailNotificationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='EMailNotificationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='EMailNotificationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='EMailNotificationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='EMailNotificationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='EMailNotificationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='EMailNotificationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7496,14 +7545,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'EMailAddress': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'EMailAddress') @@ -7550,7 +7599,7 @@ def get_TelephoneNumber(self): return self.TelephoneNumber def set_TelephoneNumber(self, TelephoneNumber): self.TelephoneNumber = TelephoneNumber - def hasContent_(self): + def _hasContent(self): if ( self.TelephoneNumber is not None ): @@ -7572,17 +7621,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SMSType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SMSType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='SMSType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='SMSType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='SMSType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='SMSType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='SMSType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='SMSType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7597,14 +7646,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'TelephoneNumber': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'TelephoneNumber') @@ -7633,7 +7682,7 @@ def __init__(self, ThirdPartyIndicator=None, AttentionName=None, EMailAddress=No self.Name = Name self.Name_nsprefix_ = None self.Phone = Phone - self.Phone_nsprefix_ = None + self.Phone_nsprefix_ = "fsp" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -7669,7 +7718,7 @@ def get_Phone(self): return self.Phone def set_Phone(self, Phone): self.Phone = Phone - def hasContent_(self): + def _hasContent(self): if ( self.ThirdPartyIndicator is not None or self.AttentionName is not None or @@ -7695,17 +7744,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequesterType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequesterType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequesterType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequesterType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RequesterType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RequesterType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RequesterType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RequesterType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7735,14 +7784,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ThirdPartyIndicator': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ThirdPartyIndicator') @@ -7793,11 +7842,11 @@ def __init__(self, FormGroupId=None, FormGroupIdName=None, Image=None, PackingLi self.Image = [] else: self.Image = Image - self.Image_nsprefix_ = None + self.Image_nsprefix_ = "fsp" self.PackingList = PackingList - self.PackingList_nsprefix_ = None + self.PackingList_nsprefix_ = "fsp" self.InternationalForms = InternationalForms - self.InternationalForms_nsprefix_ = None + self.InternationalForms_nsprefix_ = "IF" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -7839,7 +7888,7 @@ def get_InternationalForms(self): return self.InternationalForms def set_InternationalForms(self, InternationalForms): self.InternationalForms = InternationalForms - def hasContent_(self): + def _hasContent(self): if ( self.FormGroupId is not None or self.FormGroupIdName is not None or @@ -7865,17 +7914,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DocumentsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DocumentsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DocumentsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DocumentsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DocumentsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DocumentsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DocumentsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DocumentsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7903,14 +7952,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'FormGroupId': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'FormGroupId') @@ -7952,15 +8001,15 @@ def __init__(self, Type=None, LabelsPerPage=None, Format=None, PrintFormat=None, self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Type = Type - self.Type_nsprefix_ = None + self.Type_nsprefix_ = "fsp" self.LabelsPerPage = LabelsPerPage self.LabelsPerPage_nsprefix_ = None self.Format = Format - self.Format_nsprefix_ = None + self.Format_nsprefix_ = "fsp" self.PrintFormat = PrintFormat - self.PrintFormat_nsprefix_ = None + self.PrintFormat_nsprefix_ = "fsp" self.PrintSize = PrintSize - self.PrintSize_nsprefix_ = None + self.PrintSize_nsprefix_ = "fsp" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -7996,7 +8045,7 @@ def get_PrintSize(self): return self.PrintSize def set_PrintSize(self, PrintSize): self.PrintSize = PrintSize - def hasContent_(self): + def _hasContent(self): if ( self.Type is not None or self.LabelsPerPage is not None or @@ -8022,17 +8071,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='I showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ImageType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ImageType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ImageType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ImageType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ImageType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ImageType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ImageType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ImageType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8059,14 +8108,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Type': obj_ = ShipCodeDescriptionType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -8133,7 +8182,7 @@ def get_Width(self): return self.Width def set_Width(self, Width): self.Width = Width - def hasContent_(self): + def _hasContent(self): if ( self.Length is not None or self.Width is not None @@ -8156,17 +8205,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PrintSizeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PrintSizeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PrintSizeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PrintSizeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PrintSizeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PrintSizeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PrintSizeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PrintSizeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8185,14 +8234,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Length': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Length') @@ -8219,16 +8268,16 @@ def __init__(self, ShipFrom=None, ShipTo=None, Reference=None, HandlingUnit=None self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.ShipFrom = ShipFrom - self.ShipFrom_nsprefix_ = None + self.ShipFrom_nsprefix_ = "fsp" self.ShipTo = ShipTo - self.ShipTo_nsprefix_ = None + self.ShipTo_nsprefix_ = "fsp" if Reference is None: self.Reference = [] else: self.Reference = Reference - self.Reference_nsprefix_ = None + self.Reference_nsprefix_ = "fsp" self.HandlingUnit = HandlingUnit - self.HandlingUnit_nsprefix_ = None + self.HandlingUnit_nsprefix_ = "fsp" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -8266,7 +8315,7 @@ def get_HandlingUnit(self): return self.HandlingUnit def set_HandlingUnit(self, HandlingUnit): self.HandlingUnit = HandlingUnit - def hasContent_(self): + def _hasContent(self): if ( self.ShipFrom is not None or self.ShipTo is not None or @@ -8291,17 +8340,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackingListType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackingListType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackingListType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackingListType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackingListType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackingListType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackingListType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackingListType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8324,14 +8373,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ShipFrom': obj_ = PackingListContactType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -8370,7 +8419,7 @@ def __init__(self, Name=None, AttentionName=None, Address=None, PhoneNumber=None self.AttentionName = AttentionName self.AttentionName_nsprefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "fsp" self.PhoneNumber = PhoneNumber self.PhoneNumber_nsprefix_ = None self.EMailAddress = EMailAddress @@ -8416,7 +8465,7 @@ def get_PhoneExtension(self): return self.PhoneExtension def set_PhoneExtension(self, PhoneExtension): self.PhoneExtension = PhoneExtension - def hasContent_(self): + def _hasContent(self): if ( self.Name is not None or self.AttentionName is not None or @@ -8443,17 +8492,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackingListContactType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackingListContactType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackingListContactType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackingListContactType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackingListContactType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackingListContactType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackingListContactType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackingListContactType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8487,14 +8536,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Name': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Name') @@ -8570,7 +8619,7 @@ def get_Value(self): return self.Value def set_Value(self, Value): self.Value = Value - def hasContent_(self): + def _hasContent(self): if ( self.Label is not None or self.Value is not None @@ -8593,17 +8642,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackingListReferenceType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackingListReferenceType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackingListReferenceType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackingListReferenceType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackingListReferenceType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackingListReferenceType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackingListReferenceType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackingListReferenceType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8622,14 +8671,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Label': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Label') @@ -8659,7 +8708,7 @@ def __init__(self, Commodity=None, SpecialInstructions=None, TotalNumberOfPieces self.Commodity = [] else: self.Commodity = Commodity - self.Commodity_nsprefix_ = None + self.Commodity_nsprefix_ = "fsp" self.SpecialInstructions = SpecialInstructions self.SpecialInstructions_nsprefix_ = None self.TotalNumberOfPieces = TotalNumberOfPieces @@ -8667,7 +8716,7 @@ def __init__(self, Commodity=None, SpecialInstructions=None, TotalNumberOfPieces self.TotalWeight = TotalWeight self.TotalWeight_nsprefix_ = None self.UnitOfMeasurement = UnitOfMeasurement - self.UnitOfMeasurement_nsprefix_ = None + self.UnitOfMeasurement_nsprefix_ = "fsp" self.CurrencyCode = CurrencyCode self.CurrencyCode_nsprefix_ = None def factory(*args_, **kwargs_): @@ -8715,7 +8764,7 @@ def get_CurrencyCode(self): return self.CurrencyCode def set_CurrencyCode(self, CurrencyCode): self.CurrencyCode = CurrencyCode - def hasContent_(self): + def _hasContent(self): if ( self.Commodity or self.SpecialInstructions is not None or @@ -8742,17 +8791,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackingListHandlingUnitType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackingListHandlingUnitType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackingListHandlingUnitType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackingListHandlingUnitType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackingListHandlingUnitType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackingListHandlingUnitType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackingListHandlingUnitType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackingListHandlingUnitType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8785,14 +8834,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Commodity': obj_ = PackingListCommodityType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -8843,7 +8892,7 @@ def __init__(self, NumberOfPieces=None, PackagingType=None, DangerousGoodsIndica self.NumberOfPieces = NumberOfPieces self.NumberOfPieces_nsprefix_ = None self.PackagingType = PackagingType - self.PackagingType_nsprefix_ = None + self.PackagingType_nsprefix_ = "fsp" self.DangerousGoodsIndicator = DangerousGoodsIndicator self.DangerousGoodsIndicator_nsprefix_ = None self.Description = Description @@ -8853,7 +8902,7 @@ def __init__(self, NumberOfPieces=None, PackagingType=None, DangerousGoodsIndica self.FreightClass = FreightClass self.FreightClass_nsprefix_ = None self.Dimensions = Dimensions - self.Dimensions_nsprefix_ = None + self.Dimensions_nsprefix_ = "fsp" self.Weight = Weight self.Weight_nsprefix_ = None self.CommodityValue = CommodityValue @@ -8909,7 +8958,7 @@ def get_CommodityValue(self): return self.CommodityValue def set_CommodityValue(self, CommodityValue): self.CommodityValue = CommodityValue - def hasContent_(self): + def _hasContent(self): if ( self.NumberOfPieces is not None or self.PackagingType is not None or @@ -8939,17 +8988,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackingListCommodityType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackingListCommodityType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackingListCommodityType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackingListCommodityType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackingListCommodityType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackingListCommodityType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackingListCommodityType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackingListCommodityType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8994,14 +9043,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'NumberOfPieces': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'NumberOfPieces') @@ -9100,7 +9149,7 @@ def get_Height(self): return self.Height def set_Height(self, Height): self.Height = Height - def hasContent_(self): + def _hasContent(self): if ( self.Length is not None or self.Width is not None or @@ -9124,17 +9173,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackingListDimensionsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackingListDimensionsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackingListDimensionsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackingListDimensionsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackingListDimensionsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackingListDimensionsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackingListDimensionsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackingListDimensionsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -9157,14 +9206,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Length': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Length') @@ -9197,7 +9246,7 @@ def __init__(self, AirFreightPickupRequest=None, ShipperNumber=None, CreationDat self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.AirFreightPickupRequest = AirFreightPickupRequest - self.AirFreightPickupRequest_nsprefix_ = None + self.AirFreightPickupRequest_nsprefix_ = "fsp" self.ShipperNumber = ShipperNumber self.ShipperNumber_nsprefix_ = None self.CreationDate = CreationDate @@ -9228,29 +9277,29 @@ def __init__(self, AirFreightPickupRequest=None, ShipperNumber=None, CreationDat self.Rate = [] else: self.Rate = Rate - self.Rate_nsprefix_ = None + self.Rate_nsprefix_ = "fsp" self.FreightDensityRate = FreightDensityRate - self.FreightDensityRate_nsprefix_ = None + self.FreightDensityRate_nsprefix_ = "fsp" self.TotalShipmentCharge = TotalShipmentCharge - self.TotalShipmentCharge_nsprefix_ = None + self.TotalShipmentCharge_nsprefix_ = "fsp" self.MinimumBillableWeightAppliedIndicator = MinimumBillableWeightAppliedIndicator self.MinimumBillableWeightAppliedIndicator_nsprefix_ = None self.BillableShipmentWeight = BillableShipmentWeight - self.BillableShipmentWeight_nsprefix_ = None + self.BillableShipmentWeight_nsprefix_ = "fsp" self.RatingSchedule = RatingSchedule - self.RatingSchedule_nsprefix_ = None + self.RatingSchedule_nsprefix_ = "fsp" self.DimensionalWeight = DimensionalWeight - self.DimensionalWeight_nsprefix_ = None + self.DimensionalWeight_nsprefix_ = "fsp" self.Service = Service - self.Service_nsprefix_ = None + self.Service_nsprefix_ = "fsp" self.Documents = Documents - self.Documents_nsprefix_ = None + self.Documents_nsprefix_ = "fsp" self.HoldAtAirportPickupDate = HoldAtAirportPickupDate self.HoldAtAirportPickupDate_nsprefix_ = None self.NextAvailablePickupDate = NextAvailablePickupDate self.NextAvailablePickupDate_nsprefix_ = None self.TimeInTransit = TimeInTransit - self.TimeInTransit_nsprefix_ = None + self.TimeInTransit_nsprefix_ = "fsp" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -9376,7 +9425,7 @@ def get_TimeInTransit(self): return self.TimeInTransit def set_TimeInTransit(self, TimeInTransit): self.TimeInTransit = TimeInTransit - def hasContent_(self): + def _hasContent(self): if ( self.AirFreightPickupRequest is not None or self.ShipperNumber is not None or @@ -9423,17 +9472,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentResultsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentResultsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentResultsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentResultsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentResultsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentResultsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentResultsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentResultsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -9538,14 +9587,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AirFreightPickupRequest': obj_ = AirFreightStatusType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -9706,9 +9755,9 @@ def __init__(self, Type=None, Factor=None, gds_collector_=None, **kwargs_): self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Type = Type - self.Type_nsprefix_ = None + self.Type_nsprefix_ = "fsp" self.Factor = Factor - self.Factor_nsprefix_ = None + self.Factor_nsprefix_ = "fsp" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -9732,7 +9781,7 @@ def get_Factor(self): return self.Factor def set_Factor(self, Factor): self.Factor = Factor - def hasContent_(self): + def _hasContent(self): if ( self.Type is not None or self.Factor is not None @@ -9755,17 +9804,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RateType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RateType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RateType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RateType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RateType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RateType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RateType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RateType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -9782,14 +9831,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Type': obj_ = ShipCodeDescriptionType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -9814,12 +9863,12 @@ def __init__(self, Status=None, PreAuthorizationReason=None, gds_collector_=None self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Status = Status - self.Status_nsprefix_ = None + self.Status_nsprefix_ = "fsp" if PreAuthorizationReason is None: self.PreAuthorizationReason = [] else: self.PreAuthorizationReason = PreAuthorizationReason - self.PreAuthorizationReason_nsprefix_ = None + self.PreAuthorizationReason_nsprefix_ = "fsp" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -9849,7 +9898,7 @@ def insert_PreAuthorizationReason_at(self, index, value): self.PreAuthorizationReason.insert(index, value) def replace_PreAuthorizationReason_at(self, index, value): self.PreAuthorizationReason[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Status is not None or self.PreAuthorizationReason @@ -9872,17 +9921,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AirFreightStatusType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AirFreightStatusType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AirFreightStatusType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AirFreightStatusType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AirFreightStatusType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AirFreightStatusType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AirFreightStatusType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AirFreightStatusType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -9899,14 +9948,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Status': obj_ = StatusType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -9931,7 +9980,7 @@ def __init__(self, Service=None, gds_collector_=None, **kwargs_): self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Service = Service - self.Service_nsprefix_ = None + self.Service_nsprefix_ = "fsp" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -9951,7 +10000,7 @@ def get_Service(self): return self.Service def set_Service(self, Service): self.Service = Service - def hasContent_(self): + def _hasContent(self): if ( self.Service is not None ): @@ -9973,17 +10022,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='V showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ValidServiceType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ValidServiceType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ValidServiceType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ValidServiceType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ValidServiceType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ValidServiceType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ValidServiceType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ValidServiceType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -9997,14 +10046,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Service': obj_ = ShipCodeDescriptionType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -10050,7 +10099,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -10073,17 +10122,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='StatusType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='StatusType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='StatusType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='StatusType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='StatusType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='StatusType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='StatusType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='StatusType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -10102,14 +10151,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -10136,7 +10185,7 @@ def __init__(self, Accessorial=None, gds_collector_=None, **kwargs_): self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Accessorial = Accessorial - self.Accessorial_nsprefix_ = None + self.Accessorial_nsprefix_ = "fsp" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -10156,7 +10205,7 @@ def get_Accessorial(self): return self.Accessorial def set_Accessorial(self, Accessorial): self.Accessorial = Accessorial - def hasContent_(self): + def _hasContent(self): if ( self.Accessorial is not None ): @@ -10178,17 +10227,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='V showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ValidAccessorialType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ValidAccessorialType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ValidAccessorialType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ValidAccessorialType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ValidAccessorialType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ValidAccessorialType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ValidAccessorialType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ValidAccessorialType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -10202,14 +10251,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Accessorial': obj_ = ShipCodeDescriptionType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -10255,7 +10304,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -10278,17 +10327,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PreAuthReasonType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PreAuthReasonType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PreAuthReasonType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PreAuthReasonType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PreAuthReasonType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PreAuthReasonType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PreAuthReasonType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PreAuthReasonType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -10307,14 +10356,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -10341,7 +10390,7 @@ def __init__(self, Type=None, Value=None, gds_collector_=None, **kwargs_): self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Type = Type - self.Type_nsprefix_ = None + self.Type_nsprefix_ = "fsp" self.Value = Value self.Value_nsprefix_ = None def factory(*args_, **kwargs_): @@ -10367,7 +10416,7 @@ def get_Value(self): return self.Value def set_Value(self, Value): self.Value = Value - def hasContent_(self): + def _hasContent(self): if ( self.Type is not None or self.Value is not None @@ -10390,17 +10439,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ConfirmationNumberType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ConfirmationNumberType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ConfirmationNumberType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ConfirmationNumberType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ConfirmationNumberType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ConfirmationNumberType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ConfirmationNumberType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ConfirmationNumberType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -10418,14 +10467,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Type': obj_ = ShipCodeDescriptionType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -10453,7 +10502,7 @@ def __init__(self, Value=None, UnitOfMeasurement=None, gds_collector_=None, **kw self.Value = Value self.Value_nsprefix_ = None self.UnitOfMeasurement = UnitOfMeasurement - self.UnitOfMeasurement_nsprefix_ = None + self.UnitOfMeasurement_nsprefix_ = "fsp" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -10477,7 +10526,7 @@ def get_UnitOfMeasurement(self): return self.UnitOfMeasurement def set_UnitOfMeasurement(self, UnitOfMeasurement): self.UnitOfMeasurement = UnitOfMeasurement - def hasContent_(self): + def _hasContent(self): if ( self.Value is not None or self.UnitOfMeasurement is not None @@ -10500,17 +10549,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='F showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FactorType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FactorType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FactorType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FactorType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FactorType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FactorType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FactorType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FactorType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -10528,14 +10577,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Value': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Value') @@ -10587,7 +10636,7 @@ def get_MonetaryValue(self): return self.MonetaryValue def set_MonetaryValue(self, MonetaryValue): self.MonetaryValue = MonetaryValue - def hasContent_(self): + def _hasContent(self): if ( self.CurrencyCode is not None or self.MonetaryValue is not None @@ -10610,17 +10659,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AmountType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AmountType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AmountType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AmountType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AmountType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AmountType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AmountType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AmountType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -10639,14 +10688,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CurrencyCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CurrencyCode') @@ -10699,7 +10748,7 @@ def get_MonetaryValue(self): return self.MonetaryValue def set_MonetaryValue(self, MonetaryValue): self.MonetaryValue = MonetaryValue - def hasContent_(self): + def _hasContent(self): if ( self.CurrencyCode is not None or self.MonetaryValue is not None @@ -10722,17 +10771,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='T showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TotalShipmentChargeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TotalShipmentChargeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TotalShipmentChargeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TotalShipmentChargeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TotalShipmentChargeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TotalShipmentChargeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TotalShipmentChargeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TotalShipmentChargeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -10751,14 +10800,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CurrencyCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CurrencyCode') @@ -10788,12 +10837,12 @@ def __init__(self, Image=None, Forms=None, gds_collector_=None, **kwargs_): self.Image = [] else: self.Image = Image - self.Image_nsprefix_ = None + self.Image_nsprefix_ = "fsp" if Forms is None: self.Forms = [] else: self.Forms = Forms - self.Forms_nsprefix_ = None + self.Forms_nsprefix_ = "fsp" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -10829,7 +10878,7 @@ def insert_Forms_at(self, index, value): self.Forms.insert(index, value) def replace_Forms_at(self, index, value): self.Forms[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Image or self.Forms @@ -10852,17 +10901,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DocumentType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DocumentType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DocumentType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DocumentType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DocumentType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DocumentType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DocumentType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DocumentType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -10879,14 +10928,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Image': obj_ = ImageFormsType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -10911,11 +10960,11 @@ def __init__(self, Type=None, GraphicImage=None, Format=None, gds_collector_=Non self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Type = Type - self.Type_nsprefix_ = None + self.Type_nsprefix_ = "fsp" self.GraphicImage = GraphicImage self.GraphicImage_nsprefix_ = None self.Format = Format - self.Format_nsprefix_ = None + self.Format_nsprefix_ = "fsp" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -10943,7 +10992,7 @@ def get_Format(self): return self.Format def set_Format(self, Format): self.Format = Format - def hasContent_(self): + def _hasContent(self): if ( self.Type is not None or self.GraphicImage is not None or @@ -10967,17 +11016,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='I showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ImageFormsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ImageFormsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ImageFormsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ImageFormsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ImageFormsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ImageFormsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ImageFormsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ImageFormsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -10998,14 +11047,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Type': obj_ = ImageCodeDescriptionType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -11062,7 +11111,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -11085,17 +11134,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='I showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ImageCodeDescriptionType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ImageCodeDescriptionType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ImageCodeDescriptionType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ImageCodeDescriptionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ImageCodeDescriptionType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ImageCodeDescriptionType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ImageCodeDescriptionType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ImageCodeDescriptionType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -11114,14 +11163,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -11168,7 +11217,7 @@ def get_CountryCode(self): return self.CountryCode def set_CountryCode(self, CountryCode): self.CountryCode = CountryCode - def hasContent_(self): + def _hasContent(self): if ( self.CountryCode is not None ): @@ -11190,17 +11239,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CountryOfManufactureType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CountryOfManufactureType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CountryOfManufactureType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CountryOfManufactureType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CountryOfManufactureType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CountryOfManufactureType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CountryOfManufactureType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CountryOfManufactureType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -11215,14 +11264,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CountryCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CountryCode') @@ -11245,7 +11294,7 @@ def __init__(self, Value=None, UnitOfMeasurement=None, gds_collector_=None, **kw self.Value = Value self.Value_nsprefix_ = None self.UnitOfMeasurement = UnitOfMeasurement - self.UnitOfMeasurement_nsprefix_ = None + self.UnitOfMeasurement_nsprefix_ = "fsp" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -11269,7 +11318,7 @@ def get_UnitOfMeasurement(self): return self.UnitOfMeasurement def set_UnitOfMeasurement(self, UnitOfMeasurement): self.UnitOfMeasurement = UnitOfMeasurement - def hasContent_(self): + def _hasContent(self): if ( self.Value is not None or self.UnitOfMeasurement is not None @@ -11292,17 +11341,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentTotalWeightType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentTotalWeightType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentTotalWeightType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentTotalWeightType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentTotalWeightType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentTotalWeightType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentTotalWeightType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentTotalWeightType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -11320,14 +11369,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Value': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Value') @@ -11379,7 +11428,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -11402,17 +11451,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='T showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TaxIDCodeDescType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TaxIDCodeDescType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TaxIDCodeDescType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TaxIDCodeDescType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TaxIDCodeDescType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TaxIDCodeDescType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TaxIDCodeDescType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TaxIDCodeDescType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -11431,14 +11480,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -11465,7 +11514,7 @@ def __init__(self, Type=None, Number=None, gds_collector_=None, **kwargs_): self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Type = Type - self.Type_nsprefix_ = None + self.Type_nsprefix_ = "fsp" self.Number = Number self.Number_nsprefix_ = None def factory(*args_, **kwargs_): @@ -11491,7 +11540,7 @@ def get_Number(self): return self.Number def set_Number(self, Number): self.Number = Number - def hasContent_(self): + def _hasContent(self): if ( self.Type is not None or self.Number is not None @@ -11514,17 +11563,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='T showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TaxIDType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TaxIDType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TaxIDType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TaxIDType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TaxIDType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TaxIDType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TaxIDType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TaxIDType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -11542,14 +11591,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Type': obj_ = TaxIDCodeDescType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -11595,7 +11644,7 @@ def get_DaysInTransit(self): return self.DaysInTransit def set_DaysInTransit(self, DaysInTransit): self.DaysInTransit = DaysInTransit - def hasContent_(self): + def _hasContent(self): if ( self.DaysInTransit is not None ): @@ -11617,17 +11666,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='T showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TimeInTransitResponseType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TimeInTransitResponseType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TimeInTransitResponseType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TimeInTransitResponseType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TimeInTransitResponseType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TimeInTransitResponseType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TimeInTransitResponseType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TimeInTransitResponseType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -11642,14 +11691,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'DaysInTransit': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'DaysInTransit') @@ -11672,9 +11721,9 @@ def __init__(self, Quantity=None, Type=None, Dimensions=None, gds_collector_=Non self.Quantity = Quantity self.Quantity_nsprefix_ = None self.Type = Type - self.Type_nsprefix_ = None + self.Type_nsprefix_ = "fsp" self.Dimensions = Dimensions - self.Dimensions_nsprefix_ = None + self.Dimensions_nsprefix_ = "fsp" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -11702,7 +11751,7 @@ def get_Dimensions(self): return self.Dimensions def set_Dimensions(self, Dimensions): self.Dimensions = Dimensions - def hasContent_(self): + def _hasContent(self): if ( self.Quantity is not None or self.Type is not None or @@ -11726,17 +11775,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='H showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HandlingUnitsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HandlingUnitsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HandlingUnitsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HandlingUnitsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HandlingUnitsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HandlingUnitsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HandlingUnitsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HandlingUnitsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -11757,14 +11806,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Quantity': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Quantity') @@ -11821,7 +11870,7 @@ def get_TotalCubicFeet(self): return self.TotalCubicFeet def set_TotalCubicFeet(self, TotalCubicFeet): self.TotalCubicFeet = TotalCubicFeet - def hasContent_(self): + def _hasContent(self): if ( self.Density is not None or self.TotalCubicFeet is not None @@ -11844,17 +11893,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='F showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightDensityRateType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightDensityRateType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightDensityRateType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightDensityRateType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightDensityRateType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightDensityRateType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightDensityRateType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightDensityRateType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -11873,14 +11922,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Density': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Density') @@ -11907,7 +11956,7 @@ def __init__(self, UnitOfMeasurement=None, Length=None, Width=None, Height=None, self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.UnitOfMeasurement = UnitOfMeasurement - self.UnitOfMeasurement_nsprefix_ = None + self.UnitOfMeasurement_nsprefix_ = "fsp" self.Length = Length self.Length_nsprefix_ = None self.Width = Width @@ -11945,7 +11994,7 @@ def get_Height(self): return self.Height def set_Height(self, Height): self.Height = Height - def hasContent_(self): + def _hasContent(self): if ( self.UnitOfMeasurement is not None or self.Length is not None or @@ -11970,17 +12019,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='H showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HandlingUnitsDimensionsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HandlingUnitsDimensionsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HandlingUnitsDimensionsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HandlingUnitsDimensionsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HandlingUnitsDimensionsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HandlingUnitsDimensionsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HandlingUnitsDimensionsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HandlingUnitsDimensionsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -12006,14 +12055,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'UnitOfMeasurement': obj_ = FreightShipUnitOfMeasurementType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -12080,7 +12129,7 @@ def insert_Property_at(self, index, value): self.Property.insert(index, value) def replace_Property_at(self, index, value): self.Property[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Property ): @@ -12102,17 +12151,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ClientInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ClientInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ClientInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ClientInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ClientInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ClientInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ClientInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ClientInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -12126,14 +12175,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Property': obj_ = PropertyType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -12160,7 +12209,7 @@ def __init__(self, RequestOption=None, SubVersion=None, TransactionReference=Non self.SubVersion = SubVersion self.SubVersion_nsprefix_ = None self.TransactionReference = TransactionReference - self.TransactionReference_nsprefix_ = None + self.TransactionReference_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -12194,7 +12243,7 @@ def get_TransactionReference(self): return self.TransactionReference def set_TransactionReference(self, TransactionReference): self.TransactionReference = TransactionReference - def hasContent_(self): + def _hasContent(self): if ( self.RequestOption or self.SubVersion is not None or @@ -12218,17 +12267,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='RequestType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='RequestType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='RequestType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='RequestType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -12250,14 +12299,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'RequestOption': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'RequestOption') @@ -12315,7 +12364,7 @@ def get_TransactionIdentifier(self): return self.TransactionIdentifier def set_TransactionIdentifier(self, TransactionIdentifier): self.TransactionIdentifier = TransactionIdentifier - def hasContent_(self): + def _hasContent(self): if ( self.CustomerContext is not None or self.TransactionIdentifier is not None @@ -12338,17 +12387,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionReferenceType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionReferenceType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionReferenceType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionReferenceType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='TransactionReferenceType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='TransactionReferenceType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='TransactionReferenceType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='TransactionReferenceType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -12367,14 +12416,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CustomerContext': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CustomerContext') @@ -12401,19 +12450,19 @@ def __init__(self, ResponseStatus=None, Alert=None, AlertDetail=None, Transactio self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.ResponseStatus = ResponseStatus - self.ResponseStatus_nsprefix_ = None + self.ResponseStatus_nsprefix_ = "common" if Alert is None: self.Alert = [] else: self.Alert = Alert - self.Alert_nsprefix_ = None + self.Alert_nsprefix_ = "common" if AlertDetail is None: self.AlertDetail = [] else: self.AlertDetail = AlertDetail - self.AlertDetail_nsprefix_ = None + self.AlertDetail_nsprefix_ = "common" self.TransactionReference = TransactionReference - self.TransactionReference_nsprefix_ = None + self.TransactionReference_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -12457,7 +12506,7 @@ def get_TransactionReference(self): return self.TransactionReference def set_TransactionReference(self, TransactionReference): self.TransactionReference = TransactionReference - def hasContent_(self): + def _hasContent(self): if ( self.ResponseStatus is not None or self.Alert or @@ -12482,17 +12531,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ResponseType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ResponseType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ResponseType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ResponseType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -12515,14 +12564,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ResponseStatus': obj_ = CodeDescriptionType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -12583,7 +12632,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -12606,17 +12655,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeDescriptionType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeDescriptionType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeDescriptionType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeDescriptionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='CodeDescriptionType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='CodeDescriptionType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='CodeDescriptionType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='CodeDescriptionType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -12635,14 +12684,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -12673,7 +12722,7 @@ def __init__(self, Code=None, Description=None, ElementLevelInformation=None, gd self.Description = Description self.Description_nsprefix_ = None self.ElementLevelInformation = ElementLevelInformation - self.ElementLevelInformation_nsprefix_ = None + self.ElementLevelInformation_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -12701,7 +12750,7 @@ def get_ElementLevelInformation(self): return self.ElementLevelInformation def set_ElementLevelInformation(self, ElementLevelInformation): self.ElementLevelInformation = ElementLevelInformation - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None or @@ -12725,17 +12774,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DetailType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DetailType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DetailType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DetailType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='DetailType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='DetailType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='DetailType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='DetailType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -12757,14 +12806,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -12801,7 +12850,7 @@ def __init__(self, Level=None, ElementIdentifier=None, gds_collector_=None, **kw self.ElementIdentifier = [] else: self.ElementIdentifier = ElementIdentifier - self.ElementIdentifier_nsprefix_ = None + self.ElementIdentifier_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -12831,7 +12880,7 @@ def insert_ElementIdentifier_at(self, index, value): self.ElementIdentifier.insert(index, value) def replace_ElementIdentifier_at(self, index, value): self.ElementIdentifier[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Level is not None or self.ElementIdentifier @@ -12854,17 +12903,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementLevelInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementLevelInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementLevelInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementLevelInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementLevelInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementLevelInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementLevelInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementLevelInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -12882,14 +12931,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Level': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Level') @@ -12941,7 +12990,7 @@ def get_Value(self): return self.Value def set_Value(self, Value): self.Value = Value - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Value is not None @@ -12964,17 +13013,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementIdentifierType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementIdentifierType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementIdentifierType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementIdentifierType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementIdentifierType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementIdentifierType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementIdentifierType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementIdentifierType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -12993,14 +13042,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -13032,11 +13081,11 @@ def __init__(self, FormType=None, UserCreatedForm=None, CN22Form=None, UPSPremiu self.FormType = FormType self.FormType_nsprefix_ = None self.UserCreatedForm = UserCreatedForm - self.UserCreatedForm_nsprefix_ = None + self.UserCreatedForm_nsprefix_ = "IF" self.CN22Form = CN22Form - self.CN22Form_nsprefix_ = None + self.CN22Form_nsprefix_ = "IF" self.UPSPremiumCareForm = UPSPremiumCareForm - self.UPSPremiumCareForm_nsprefix_ = None + self.UPSPremiumCareForm_nsprefix_ = "IF" self.AdditionalDocumentIndicator = AdditionalDocumentIndicator self.AdditionalDocumentIndicator_nsprefix_ = None self.FormGroupIdName = FormGroupIdName @@ -13044,14 +13093,14 @@ def __init__(self, FormType=None, UserCreatedForm=None, CN22Form=None, UPSPremiu self.SEDFilingOption = SEDFilingOption self.SEDFilingOption_nsprefix_ = None self.EEIFilingOption = EEIFilingOption - self.EEIFilingOption_nsprefix_ = None + self.EEIFilingOption_nsprefix_ = "IF" self.Contacts = Contacts - self.Contacts_nsprefix_ = None + self.Contacts_nsprefix_ = "IF" if Product is None: self.Product = [] else: self.Product = Product - self.Product_nsprefix_ = None + self.Product_nsprefix_ = "IF" self.InvoiceNumber = InvoiceNumber self.InvoiceNumber_nsprefix_ = None self.InvoiceDate = InvoiceDate @@ -13067,17 +13116,17 @@ def __init__(self, FormType=None, UserCreatedForm=None, CN22Form=None, UPSPremiu self.DeclarationStatement = DeclarationStatement self.DeclarationStatement_nsprefix_ = None self.Discount = Discount - self.Discount_nsprefix_ = None + self.Discount_nsprefix_ = "IF" self.FreightCharges = FreightCharges - self.FreightCharges_nsprefix_ = None + self.FreightCharges_nsprefix_ = "IF" self.InsuranceCharges = InsuranceCharges - self.InsuranceCharges_nsprefix_ = None + self.InsuranceCharges_nsprefix_ = "IF" self.OtherCharges = OtherCharges - self.OtherCharges_nsprefix_ = None + self.OtherCharges_nsprefix_ = "IF" self.CurrencyCode = CurrencyCode self.CurrencyCode_nsprefix_ = None self.BlanketPeriod = BlanketPeriod - self.BlanketPeriod_nsprefix_ = None + self.BlanketPeriod_nsprefix_ = "IF" self.ExportDate = ExportDate self.ExportDate_nsprefix_ = None self.ExportingCarrier = ExportingCarrier @@ -13107,7 +13156,7 @@ def __init__(self, FormType=None, UserCreatedForm=None, CN22Form=None, UPSPremiu self.ContainerizedIndicator = ContainerizedIndicator self.ContainerizedIndicator_nsprefix_ = None self.License = License - self.License_nsprefix_ = None + self.License_nsprefix_ = "IF" self.ECCNNumber = ECCNNumber self.ECCNNumber_nsprefix_ = None self.OverridePaperlessIndicator = OverridePaperlessIndicator @@ -13317,7 +13366,7 @@ def get_HazardousMaterialsIndicator(self): return self.HazardousMaterialsIndicator def set_HazardousMaterialsIndicator(self, HazardousMaterialsIndicator): self.HazardousMaterialsIndicator = HazardousMaterialsIndicator - def hasContent_(self): + def _hasContent(self): if ( self.FormType or self.UserCreatedForm is not None or @@ -13381,17 +13430,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='InternationalFormType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='InternationalFormType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='InternationalFormType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='InternationalFormType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='InternationalFormType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='InternationalFormType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='InternationalFormType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='InternationalFormType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -13562,14 +13611,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'FormType': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'FormType') @@ -13838,7 +13887,7 @@ def __init__(self, ShipmentDate=None, PageSize=None, PrintType=None, NumOfCopies self.NumOfCopies = NumOfCopies self.NumOfCopies_nsprefix_ = None self.LanguageForUPSPremiumCare = LanguageForUPSPremiumCare - self.LanguageForUPSPremiumCare_nsprefix_ = None + self.LanguageForUPSPremiumCare_nsprefix_ = "IF" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -13874,7 +13923,7 @@ def get_LanguageForUPSPremiumCare(self): return self.LanguageForUPSPremiumCare def set_LanguageForUPSPremiumCare(self, LanguageForUPSPremiumCare): self.LanguageForUPSPremiumCare = LanguageForUPSPremiumCare - def hasContent_(self): + def _hasContent(self): if ( self.ShipmentDate is not None or self.PageSize is not None or @@ -13900,17 +13949,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UPSPremiumCareFormType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UPSPremiumCareFormType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UPSPremiumCareFormType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UPSPremiumCareFormType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='UPSPremiumCareFormType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='UPSPremiumCareFormType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='UPSPremiumCareFormType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='UPSPremiumCareFormType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -13940,14 +13989,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ShipmentDate': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ShipmentDate') @@ -14020,7 +14069,7 @@ def insert_Language_at(self, index, value): self.Language.insert(index, value) def replace_Language_at(self, index, value): self.Language[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Language ): @@ -14042,17 +14091,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LanguageForUPSPremiumCareType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LanguageForUPSPremiumCareType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LanguageForUPSPremiumCareType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LanguageForUPSPremiumCareType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='LanguageForUPSPremiumCareType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='LanguageForUPSPremiumCareType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='LanguageForUPSPremiumCareType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='LanguageForUPSPremiumCareType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -14067,14 +14116,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Language': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Language') @@ -14124,7 +14173,7 @@ def insert_DocumentID_at(self, index, value): self.DocumentID.insert(index, value) def replace_DocumentID_at(self, index, value): self.DocumentID[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.DocumentID ): @@ -14146,17 +14195,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UserCreatedFormType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UserCreatedFormType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UserCreatedFormType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UserCreatedFormType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='UserCreatedFormType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='UserCreatedFormType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='UserCreatedFormType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='UserCreatedFormType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -14171,14 +14220,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'DocumentID': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'DocumentID') @@ -14214,7 +14263,7 @@ def __init__(self, LabelSize=None, PrintsPerPage=None, LabelPrintType=None, CN22 self.CN22Content = [] else: self.CN22Content = CN22Content - self.CN22Content_nsprefix_ = None + self.CN22Content_nsprefix_ = "IF" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -14264,7 +14313,7 @@ def insert_CN22Content_at(self, index, value): self.CN22Content.insert(index, value) def replace_CN22Content_at(self, index, value): self.CN22Content[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.LabelSize is not None or self.PrintsPerPage is not None or @@ -14292,17 +14341,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CN22FormType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CN22FormType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CN22FormType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CN22FormType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='CN22FormType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='CN22FormType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='CN22FormType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='CN22FormType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -14340,14 +14389,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'LabelSize': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'LabelSize') @@ -14407,7 +14456,7 @@ def __init__(self, CN22ContentQuantity=None, CN22ContentDescription=None, CN22Co self.CN22ContentDescription = CN22ContentDescription self.CN22ContentDescription_nsprefix_ = None self.CN22ContentWeight = CN22ContentWeight - self.CN22ContentWeight_nsprefix_ = None + self.CN22ContentWeight_nsprefix_ = "IF" self.CN22ContentTotalValue = CN22ContentTotalValue self.CN22ContentTotalValue_nsprefix_ = None self.CN22ContentCurrencyCode = CN22ContentCurrencyCode @@ -14459,7 +14508,7 @@ def get_CN22ContentTariffNumber(self): return self.CN22ContentTariffNumber def set_CN22ContentTariffNumber(self, CN22ContentTariffNumber): self.CN22ContentTariffNumber = CN22ContentTariffNumber - def hasContent_(self): + def _hasContent(self): if ( self.CN22ContentQuantity is not None or self.CN22ContentDescription is not None or @@ -14487,17 +14536,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CN22ContentType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CN22ContentType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CN22ContentType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CN22ContentType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='CN22ContentType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='CN22ContentType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='CN22ContentType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='CN22ContentType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -14535,14 +14584,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CN22ContentQuantity': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CN22ContentQuantity') @@ -14598,15 +14647,15 @@ def __init__(self, ForwardAgent=None, UltimateConsignee=None, IntermediateConsig self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.ForwardAgent = ForwardAgent - self.ForwardAgent_nsprefix_ = None + self.ForwardAgent_nsprefix_ = "IF" self.UltimateConsignee = UltimateConsignee - self.UltimateConsignee_nsprefix_ = None + self.UltimateConsignee_nsprefix_ = "IF" self.IntermediateConsignee = IntermediateConsignee - self.IntermediateConsignee_nsprefix_ = None + self.IntermediateConsignee_nsprefix_ = "IF" self.Producer = Producer - self.Producer_nsprefix_ = None + self.Producer_nsprefix_ = "IF" self.SoldTo = SoldTo - self.SoldTo_nsprefix_ = None + self.SoldTo_nsprefix_ = "IF" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -14642,7 +14691,7 @@ def get_SoldTo(self): return self.SoldTo def set_SoldTo(self, SoldTo): self.SoldTo = SoldTo - def hasContent_(self): + def _hasContent(self): if ( self.ForwardAgent is not None or self.UltimateConsignee is not None or @@ -14668,17 +14717,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ContactType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ContactType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ContactType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ContactType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='ContactType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='ContactType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='ContactType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='ContactType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -14704,14 +14753,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ForwardAgent': obj_ = ForwardAgentType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -14755,7 +14804,7 @@ def __init__(self, CompanyName=None, TaxIdentificationNumber=None, Address=None, self.TaxIdentificationNumber = TaxIdentificationNumber self.TaxIdentificationNumber_nsprefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "IF" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -14783,7 +14832,7 @@ def get_Address(self): return self.Address def set_Address(self, Address): self.Address = Address - def hasContent_(self): + def _hasContent(self): if ( self.CompanyName is not None or self.TaxIdentificationNumber is not None or @@ -14807,17 +14856,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ForwardAgentType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ForwardAgentType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ForwardAgentType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ForwardAgentType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='ForwardAgentType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='ForwardAgentType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='ForwardAgentType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='ForwardAgentType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -14839,14 +14888,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CompanyName': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CompanyName') @@ -14937,7 +14986,7 @@ def get_CountryCode(self): return self.CountryCode def set_CountryCode(self, CountryCode): self.CountryCode = CountryCode - def hasContent_(self): + def _hasContent(self): if ( self.AddressLine or self.City is not None or @@ -14964,17 +15013,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='AddressType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='AddressType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='AddressType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='AddressType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -15009,14 +15058,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AddressLine': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'AddressLine') @@ -15069,9 +15118,9 @@ def __init__(self, CompanyName=None, Address=None, UltimateConsigneeType_member= self.CompanyName = CompanyName self.CompanyName_nsprefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "IF" self.UltimateConsigneeType = UltimateConsigneeType_member - self.UltimateConsigneeType_nsprefix_ = None + self.UltimateConsigneeType_nsprefix_ = "IF" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -15099,7 +15148,7 @@ def get_UltimateConsigneeType(self): return self.UltimateConsigneeType def set_UltimateConsigneeType(self, UltimateConsigneeType): self.UltimateConsigneeType = UltimateConsigneeType - def hasContent_(self): + def _hasContent(self): if ( self.CompanyName is not None or self.Address is not None or @@ -15123,17 +15172,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UltimateConsigneeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UltimateConsigneeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UltimateConsigneeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UltimateConsigneeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='UltimateConsigneeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='UltimateConsigneeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='UltimateConsigneeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='UltimateConsigneeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -15154,14 +15203,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CompanyName': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CompanyName') @@ -15194,7 +15243,7 @@ def __init__(self, CompanyName=None, Address=None, gds_collector_=None, **kwargs self.CompanyName = CompanyName self.CompanyName_nsprefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "IF" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -15218,7 +15267,7 @@ def get_Address(self): return self.Address def set_Address(self, Address): self.Address = Address - def hasContent_(self): + def _hasContent(self): if ( self.CompanyName is not None or self.Address is not None @@ -15241,17 +15290,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='IntermediateConsigneeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='IntermediateConsigneeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='IntermediateConsigneeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='IntermediateConsigneeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='IntermediateConsigneeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='IntermediateConsigneeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='IntermediateConsigneeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='IntermediateConsigneeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -15269,14 +15318,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CompanyName': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CompanyName') @@ -15308,11 +15357,11 @@ def __init__(self, Option=None, CompanyName=None, TaxIdentificationNumber=None, self.TaxIdentificationNumber = TaxIdentificationNumber self.TaxIdentificationNumber_nsprefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "IF" self.AttentionName = AttentionName self.AttentionName_nsprefix_ = None self.Phone = Phone - self.Phone_nsprefix_ = None + self.Phone_nsprefix_ = "IF" self.EMailAddress = EMailAddress self.EMailAddress_nsprefix_ = None def factory(*args_, **kwargs_): @@ -15358,7 +15407,7 @@ def get_EMailAddress(self): return self.EMailAddress def set_EMailAddress(self, EMailAddress): self.EMailAddress = EMailAddress - def hasContent_(self): + def _hasContent(self): if ( self.Option is not None or self.CompanyName is not None or @@ -15386,17 +15435,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ProducerType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ProducerType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ProducerType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ProducerType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='ProducerType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='ProducerType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='ProducerType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='ProducerType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -15433,14 +15482,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Option': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Option') @@ -15500,7 +15549,7 @@ def __init__(self, Description=None, Unit=None, CommodityCode=None, PartNumber=N self.Description = Description self.Description_nsprefix_ = None self.Unit = Unit - self.Unit_nsprefix_ = None + self.Unit_nsprefix_ = "IF" self.CommodityCode = CommodityCode self.CommodityCode_nsprefix_ = None self.PartNumber = PartNumber @@ -15512,7 +15561,7 @@ def __init__(self, Description=None, Unit=None, CommodityCode=None, PartNumber=N self.NetCostCode = NetCostCode self.NetCostCode_nsprefix_ = None self.NetCostDateRange = NetCostDateRange - self.NetCostDateRange_nsprefix_ = None + self.NetCostDateRange_nsprefix_ = "IF" self.PreferenceCriteria = PreferenceCriteria self.PreferenceCriteria_nsprefix_ = None self.ProducerInfo = ProducerInfo @@ -15522,23 +15571,23 @@ def __init__(self, Description=None, Unit=None, CommodityCode=None, PartNumber=N self.NumberOfPackagesPerCommodity = NumberOfPackagesPerCommodity self.NumberOfPackagesPerCommodity_nsprefix_ = None self.ProductWeight = ProductWeight - self.ProductWeight_nsprefix_ = None + self.ProductWeight_nsprefix_ = "IF" self.VehicleID = VehicleID self.VehicleID_nsprefix_ = None self.ScheduleB = ScheduleB - self.ScheduleB_nsprefix_ = None + self.ScheduleB_nsprefix_ = "IF" self.ExportType = ExportType self.ExportType_nsprefix_ = None self.SEDTotalValue = SEDTotalValue self.SEDTotalValue_nsprefix_ = None self.ExcludeFromForm = ExcludeFromForm - self.ExcludeFromForm_nsprefix_ = None + self.ExcludeFromForm_nsprefix_ = "IF" self.ProductCurrencyCode = ProductCurrencyCode self.ProductCurrencyCode_nsprefix_ = None self.PackingListInfo = PackingListInfo - self.PackingListInfo_nsprefix_ = None + self.PackingListInfo_nsprefix_ = "IF" self.EEIInformation = EEIInformation - self.EEIInformation_nsprefix_ = None + self.EEIInformation_nsprefix_ = "IF" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -15644,7 +15693,7 @@ def get_EEIInformation(self): return self.EEIInformation def set_EEIInformation(self, EEIInformation): self.EEIInformation = EEIInformation - def hasContent_(self): + def _hasContent(self): if ( self.Description or self.Unit is not None or @@ -15686,17 +15735,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ProductType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ProductType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ProductType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ProductType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='ProductType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='ProductType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='ProductType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='ProductType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -15784,14 +15833,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Description': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Description') @@ -15954,7 +16003,7 @@ def insert_FormType_at(self, index, value): self.FormType.insert(index, value) def replace_FormType_at(self, index, value): self.FormType[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.FormType ): @@ -15976,17 +16025,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ExcludeFromFormType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ExcludeFromFormType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ExcludeFromFormType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ExcludeFromFormType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='ExcludeFromFormType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='ExcludeFromFormType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='ExcludeFromFormType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='ExcludeFromFormType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -16001,14 +16050,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'FormType': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'FormType') @@ -16031,7 +16080,7 @@ def __init__(self, Number=None, UnitOfMeasurement=None, Value=None, gds_collecto self.Number = Number self.Number_nsprefix_ = None self.UnitOfMeasurement = UnitOfMeasurement - self.UnitOfMeasurement_nsprefix_ = None + self.UnitOfMeasurement_nsprefix_ = "IF" self.Value = Value self.Value_nsprefix_ = None def factory(*args_, **kwargs_): @@ -16061,7 +16110,7 @@ def get_Value(self): return self.Value def set_Value(self, Value): self.Value = Value - def hasContent_(self): + def _hasContent(self): if ( self.Number is not None or self.UnitOfMeasurement is not None or @@ -16085,17 +16134,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UnitType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UnitType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UnitType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UnitType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='UnitType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='UnitType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='UnitType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='UnitType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -16117,14 +16166,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Number': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Number') @@ -16159,7 +16208,7 @@ def __init__(self, PackageAssociated=None, gds_collector_=None, **kwargs_): self.PackageAssociated = [] else: self.PackageAssociated = PackageAssociated - self.PackageAssociated_nsprefix_ = None + self.PackageAssociated_nsprefix_ = "IF" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -16185,7 +16234,7 @@ def insert_PackageAssociated_at(self, index, value): self.PackageAssociated.insert(index, value) def replace_PackageAssociated_at(self, index, value): self.PackageAssociated[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.PackageAssociated ): @@ -16207,17 +16256,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackingListInfoType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackingListInfoType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackingListInfoType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackingListInfoType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='PackingListInfoType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='PackingListInfoType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='PackingListInfoType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='PackingListInfoType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -16231,14 +16280,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PackageAssociated': obj_ = PackageAssociatedType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -16284,7 +16333,7 @@ def get_ProductAmount(self): return self.ProductAmount def set_ProductAmount(self, ProductAmount): self.ProductAmount = ProductAmount - def hasContent_(self): + def _hasContent(self): if ( self.PackageNumber is not None or self.ProductAmount is not None @@ -16307,17 +16356,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageAssociatedType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageAssociatedType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageAssociatedType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageAssociatedType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='PackageAssociatedType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='PackageAssociatedType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='PackageAssociatedType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='PackageAssociatedType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -16336,14 +16385,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PackageNumber': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'PackageNumber') @@ -16396,7 +16445,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -16419,17 +16468,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UnitOfMeasurementType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UnitOfMeasurementType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UnitOfMeasurementType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UnitOfMeasurementType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='UnitOfMeasurementType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='UnitOfMeasurementType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='UnitOfMeasurementType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='UnitOfMeasurementType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -16448,14 +16497,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -16508,7 +16557,7 @@ def get_EndDate(self): return self.EndDate def set_EndDate(self, EndDate): self.EndDate = EndDate - def hasContent_(self): + def _hasContent(self): if ( self.BeginDate is not None or self.EndDate is not None @@ -16531,17 +16580,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='NetCostDateType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='NetCostDateType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='NetCostDateType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='NetCostDateType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='NetCostDateType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='NetCostDateType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='NetCostDateType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='NetCostDateType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -16560,14 +16609,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'BeginDate': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'BeginDate') @@ -16594,7 +16643,7 @@ def __init__(self, UnitOfMeasurement=None, Weight=None, gds_collector_=None, **k self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.UnitOfMeasurement = UnitOfMeasurement - self.UnitOfMeasurement_nsprefix_ = None + self.UnitOfMeasurement_nsprefix_ = "IF" self.Weight = Weight self.Weight_nsprefix_ = None def factory(*args_, **kwargs_): @@ -16620,7 +16669,7 @@ def get_Weight(self): return self.Weight def set_Weight(self, Weight): self.Weight = Weight - def hasContent_(self): + def _hasContent(self): if ( self.UnitOfMeasurement is not None or self.Weight is not None @@ -16643,17 +16692,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ProductWeightType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ProductWeightType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ProductWeightType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ProductWeightType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='ProductWeightType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='ProductWeightType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='ProductWeightType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='ProductWeightType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -16671,14 +16720,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'UnitOfMeasurement': obj_ = UnitOfMeasurementType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -16714,7 +16763,7 @@ def __init__(self, Number=None, Quantity=None, UnitOfMeasurement=None, gds_colle self.UnitOfMeasurement = [] else: self.UnitOfMeasurement = UnitOfMeasurement - self.UnitOfMeasurement_nsprefix_ = None + self.UnitOfMeasurement_nsprefix_ = "IF" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -16754,7 +16803,7 @@ def insert_UnitOfMeasurement_at(self, index, value): self.UnitOfMeasurement.insert(index, value) def replace_UnitOfMeasurement_at(self, index, value): self.UnitOfMeasurement[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Number is not None or self.Quantity or @@ -16778,17 +16827,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ScheduleBType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ScheduleBType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ScheduleBType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ScheduleBType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='ScheduleBType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='ScheduleBType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='ScheduleBType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='ScheduleBType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -16810,14 +16859,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Number': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Number') @@ -16869,7 +16918,7 @@ def get_MonetaryValue(self): return self.MonetaryValue def set_MonetaryValue(self, MonetaryValue): self.MonetaryValue = MonetaryValue - def hasContent_(self): + def _hasContent(self): if ( self.MonetaryValue is not None ): @@ -16891,17 +16940,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='IFChargesType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='IFChargesType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='IFChargesType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='IFChargesType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='IFChargesType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='IFChargesType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='IFChargesType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='IFChargesType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -16916,14 +16965,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'MonetaryValue': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'MonetaryValue') @@ -16970,7 +17019,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.MonetaryValue is not None or self.Description is not None @@ -16993,17 +17042,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='OtherChargesType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='OtherChargesType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='OtherChargesType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='OtherChargesType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='OtherChargesType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='OtherChargesType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='OtherChargesType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='OtherChargesType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -17022,14 +17071,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'MonetaryValue': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'MonetaryValue') @@ -17082,7 +17131,7 @@ def get_EndDate(self): return self.EndDate def set_EndDate(self, EndDate): self.EndDate = EndDate - def hasContent_(self): + def _hasContent(self): if ( self.BeginDate is not None or self.EndDate is not None @@ -17105,17 +17154,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='BlanketPeriodType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='BlanketPeriodType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='BlanketPeriodType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='BlanketPeriodType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='BlanketPeriodType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='BlanketPeriodType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='BlanketPeriodType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='BlanketPeriodType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -17134,14 +17183,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'BeginDate': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'BeginDate') @@ -17200,7 +17249,7 @@ def get_ExceptionCode(self): return self.ExceptionCode def set_ExceptionCode(self, ExceptionCode): self.ExceptionCode = ExceptionCode - def hasContent_(self): + def _hasContent(self): if ( self.Number is not None or self.Date is not None or @@ -17224,17 +17273,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LicenseType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LicenseType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LicenseType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LicenseType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='LicenseType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='LicenseType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='LicenseType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='LicenseType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -17257,14 +17306,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Number': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Number') @@ -17303,11 +17352,11 @@ def __init__(self, Name=None, AttentionName=None, TaxIdentificationNumber=None, self.TaxIdentificationNumber = TaxIdentificationNumber self.TaxIdentificationNumber_nsprefix_ = None self.Phone = Phone - self.Phone_nsprefix_ = None + self.Phone_nsprefix_ = "IF" self.Option = Option self.Option_nsprefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "IF" self.EMailAddress = EMailAddress self.EMailAddress_nsprefix_ = None def factory(*args_, **kwargs_): @@ -17353,7 +17402,7 @@ def get_EMailAddress(self): return self.EMailAddress def set_EMailAddress(self, EMailAddress): self.EMailAddress = EMailAddress - def hasContent_(self): + def _hasContent(self): if ( self.Name is not None or self.AttentionName is not None or @@ -17381,17 +17430,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SoldToType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SoldToType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='SoldToType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='SoldToType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='SoldToType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='SoldToType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='SoldToType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='SoldToType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -17428,14 +17477,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Name': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Name') @@ -17516,7 +17565,7 @@ def get_Extension(self): return self.Extension def set_Extension(self, Extension): self.Extension = Extension - def hasContent_(self): + def _hasContent(self): if ( self.Number is not None or self.Extension is not None @@ -17539,17 +17588,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PhoneType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PhoneType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PhoneType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PhoneType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='PhoneType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='PhoneType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='PhoneType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='PhoneType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -17568,14 +17617,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Number': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Number') @@ -17612,7 +17661,7 @@ def __init__(self, ITARExemptionNumber=None, USMLCategoryCode=None, EligiblePart self.Quantity = Quantity self.Quantity_nsprefix_ = None self.UnitOfMeasurement = UnitOfMeasurement - self.UnitOfMeasurement_nsprefix_ = None + self.UnitOfMeasurement_nsprefix_ = "IF" self.SignificantMilitaryEquipmentIndicator = SignificantMilitaryEquipmentIndicator self.SignificantMilitaryEquipmentIndicator_nsprefix_ = None self.ACMNumber = ACMNumber @@ -17664,7 +17713,7 @@ def get_ACMNumber(self): return self.ACMNumber def set_ACMNumber(self, ACMNumber): self.ACMNumber = ACMNumber - def hasContent_(self): + def _hasContent(self): if ( self.ITARExemptionNumber is not None or self.USMLCategoryCode is not None or @@ -17693,17 +17742,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DDTCInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DDTCInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DDTCInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DDTCInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='DDTCInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='DDTCInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='DDTCInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='DDTCInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -17745,14 +17794,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ITARExemptionNumber': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ITARExemptionNumber') @@ -17852,7 +17901,7 @@ def get_ECCNNumber(self): return self.ECCNNumber def set_ECCNNumber(self, ECCNNumber): self.ECCNNumber = ECCNNumber - def hasContent_(self): + def _hasContent(self): if ( self.Number is not None or self.Code is not None or @@ -17877,17 +17926,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='EEILicenseType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='EEILicenseType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='EEILicenseType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='EEILicenseType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='EEILicenseType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='EEILicenseType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='EEILicenseType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='EEILicenseType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -17914,14 +17963,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Number': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Number') @@ -17966,9 +18015,9 @@ def __init__(self, Code=None, EMailAddress=None, Description=None, UPSFiled=None self.Description = Description self.Description_nsprefix_ = None self.UPSFiled = UPSFiled - self.UPSFiled_nsprefix_ = None + self.UPSFiled_nsprefix_ = "IF" self.ShipperFiled = ShipperFiled - self.ShipperFiled_nsprefix_ = None + self.ShipperFiled_nsprefix_ = "IF" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -18004,7 +18053,7 @@ def get_ShipperFiled(self): return self.ShipperFiled def set_ShipperFiled(self, ShipperFiled): self.ShipperFiled = ShipperFiled - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.EMailAddress is not None or @@ -18030,17 +18079,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='EEIFilingOptionType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='EEIFilingOptionType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='EEIFilingOptionType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='EEIFilingOptionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='EEIFilingOptionType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='EEIFilingOptionType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='EEIFilingOptionType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='EEIFilingOptionType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -18069,14 +18118,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -18119,7 +18168,7 @@ def __init__(self, POA=None, gds_collector_=None, **kwargs_): self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.POA = POA - self.POA_nsprefix_ = None + self.POA_nsprefix_ = "IF" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -18139,7 +18188,7 @@ def get_POA(self): return self.POA def set_POA(self, POA): self.POA = POA - def hasContent_(self): + def _hasContent(self): if ( self.POA is not None ): @@ -18161,17 +18210,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UPSFiledType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UPSFiledType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UPSFiledType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UPSFiledType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='UPSFiledType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='UPSFiledType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='UPSFiledType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='UPSFiledType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -18185,14 +18234,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'POA': obj_ = POAType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -18256,7 +18305,7 @@ def get_EEIShipmentReferenceNumber(self): return self.EEIShipmentReferenceNumber def set_EEIShipmentReferenceNumber(self, EEIShipmentReferenceNumber): self.EEIShipmentReferenceNumber = EEIShipmentReferenceNumber - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None or @@ -18282,17 +18331,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipperFiledType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipperFiledType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipperFiledType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipperFiledType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='ShipperFiledType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='ShipperFiledType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='ShipperFiledType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='ShipperFiledType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -18323,14 +18372,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -18377,9 +18426,9 @@ def __init__(self, ExportInformation=None, License=None, DDTCInformation=None, g self.ExportInformation = ExportInformation self.ExportInformation_nsprefix_ = None self.License = License - self.License_nsprefix_ = None + self.License_nsprefix_ = "IF" self.DDTCInformation = DDTCInformation - self.DDTCInformation_nsprefix_ = None + self.DDTCInformation_nsprefix_ = "IF" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -18407,7 +18456,7 @@ def get_DDTCInformation(self): return self.DDTCInformation def set_DDTCInformation(self, DDTCInformation): self.DDTCInformation = DDTCInformation - def hasContent_(self): + def _hasContent(self): if ( self.ExportInformation is not None or self.License is not None or @@ -18431,17 +18480,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='EEIInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='EEIInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='EEIInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='EEIInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='EEIInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='EEIInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='EEIInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='EEIInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -18462,14 +18511,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ExportInformation': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ExportInformation') @@ -18526,7 +18575,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -18549,17 +18598,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='POAType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='POAType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='POAType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='POAType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='POAType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='POAType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='POAType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='POAType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -18578,14 +18627,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -18638,7 +18687,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -18661,17 +18710,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UltimateConsigneeTypeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UltimateConsigneeTypeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UltimateConsigneeTypeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UltimateConsigneeTypeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='UltimateConsigneeTypeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='UltimateConsigneeTypeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='UltimateConsigneeTypeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='UltimateConsigneeTypeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -18690,14 +18739,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -18747,7 +18796,7 @@ def set_Key(self, Key): self.Key = Key def get_valueOf_(self): return self.valueOf_ def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_ - def hasContent_(self): + def _hasContent(self): if ( (1 if type(self.valueOf_) in [int,float] else self.valueOf_) ): @@ -18769,19 +18818,19 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PropertyType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PropertyType') + if self._hasContent(): outfile.write('>') outfile.write(self.convert_unicode(self.valueOf_)) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PropertyType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PropertyType', pretty_print=pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PropertyType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PropertyType'): if self.Key is not None and 'Key' not in already_processed: already_processed.add('Key') outfile.write(' Key=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.Key), input_name='Key')), )) - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PropertyType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PropertyType', fromsubclass_=False, pretty_print=True): pass def build(self, node, gds_collector_=None): self.gds_collector_ = gds_collector_ @@ -18789,18 +18838,18 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) self.valueOf_ = get_all_text_(node) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('Key', node) if value is not None and 'Key' not in already_processed: already_processed.add('Key') self.Key = value - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): pass # end class PropertyType @@ -18879,7 +18928,8 @@ def parse(inFileName, silence=False, print_warnings=True): return rootObj -def parseEtree(inFileName, silence=False, print_warnings=True): +def parseEtree(inFileName, silence=False, print_warnings=True, + mapping=None, reverse_mapping=None, nsmap=None): parser = None doc = parsexml_(inFileName, parser) gds_collector = GdsCollector_() @@ -18890,10 +18940,15 @@ def parseEtree(inFileName, silence=False, print_warnings=True): rootClass = FreightShipRequest rootObj = rootClass.factory() rootObj.build(rootNode, gds_collector_=gds_collector) + if mapping is None: + mapping = {} + if reverse_mapping is None: + reverse_mapping = {} + rootElement = rootObj.to_etree( + None, name_=rootTag, mapping_=mapping, + reverse_mapping_=reverse_mapping, nsmap_=nsmap) + reverse_node_mapping = rootObj.gds_reverse_node_mapping(mapping) # Enable Python to collect the space used by the DOM. - mapping = {} - rootElement = rootObj.to_etree(None, name_=rootTag, mapping_=mapping) - reverse_mapping = rootObj.gds_reverse_node_mapping(mapping) if not SaveElementTreeNode: doc = None rootNode = None @@ -18910,7 +18965,7 @@ def parseEtree(inFileName, silence=False, print_warnings=True): len(gds_collector.get_messages()), )) gds_collector.write_messages(sys.stderr) sys.stderr.write(separator) - return rootObj, rootElement, mapping, reverse_mapping + return rootObj, rootElement, mapping, reverse_node_mapping def parseString(inString, silence=False, print_warnings=True): @@ -18994,6 +19049,362 @@ def main(): RenameMappings_ = { } +# +# Mapping of namespaces to types defined in them +# and the file in which each is defined. +# simpleTypes are marked "ST" and complexTypes "CT". +NamespaceToDefMappings_ = {'http://www.ups.com/XMLSchema/XOLTWS/Common/v1.0': [('ClientInformationType', + './schemas/common.xsd', + 'CT'), + ('RequestType', + './schemas/common.xsd', + 'CT'), + ('TransactionReferenceType', + './schemas/common.xsd', + 'CT'), + ('ResponseType', + './schemas/common.xsd', + 'CT'), + ('CodeDescriptionType', + './schemas/common.xsd', + 'CT'), + ('DetailType', + './schemas/common.xsd', + 'CT'), + ('ElementLevelInformationType', + './schemas/common.xsd', + 'CT'), + ('ElementIdentifierType', + './schemas/common.xsd', + 'CT')], + 'http://www.ups.com/XMLSchema/XOLTWS/FreightShip/v1.0': [('ShipmentType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('ShipFromType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('ShipToType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('PaymentInformationType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('PayerType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('FreightShipAddressType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('FreightShipPhoneType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('ShipCodeDescriptionType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('HandlingUnitType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('ExistingShipmentIDType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('CommodityType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('NMFCCommodityType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('WeightType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('FreightShipUnitOfMeasurementType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('DimensionsType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('CommodityValueType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('ReferenceType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('ReferenceNumberType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('ShipmentServiceOptionsType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('EMailInformationType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('EMailType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('PickupOptionsType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('DeliveryOptionsType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('OverSeasLegType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('DimensionType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('DimensionValueType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('CubeType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('CWTType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('CODType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('CODValueType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('RemitToType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('DangerousGoodsType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('SortingAndSegregatingType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('DeclaredValueType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('CustomsValueType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('HandlingChargeType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('HandlingChargeAmountType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('PickupRequestType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('POMType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('PickupNotificationsType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('EMailNotificationType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('SMSType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('RequesterType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('DocumentsType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('ImageType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('PrintSizeType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('PackingListType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('PackingListContactType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('PackingListReferenceType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('PackingListHandlingUnitType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('PackingListCommodityType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('PackingListDimensionsType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('ShipmentResultsType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('RateType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('AirFreightStatusType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('ValidServiceType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('StatusType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('ValidAccessorialType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('PreAuthReasonType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('ConfirmationNumberType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('FactorType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('AmountType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('TotalShipmentChargeType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('DocumentType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('ImageFormsType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('ImageCodeDescriptionType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('CountryOfManufactureType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('ShipmentTotalWeightType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('TaxIDCodeDescType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('TaxIDType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('TimeInTransitResponseType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('HandlingUnitsType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('FreightDensityRateType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT'), + ('HandlingUnitsDimensionsType', + './schemas/FreightShipWebServiceSchema.xsd', + 'CT')], + 'http://www.ups.com/XMLSchema/XOLTWS/IF/v1.0': [('InternationalFormType', + './schemas/IFWS.xsd', + 'CT'), + ('UPSPremiumCareFormType', + './schemas/IFWS.xsd', + 'CT'), + ('LanguageForUPSPremiumCareType', + './schemas/IFWS.xsd', + 'CT'), + ('UserCreatedFormType', + './schemas/IFWS.xsd', + 'CT'), + ('CN22FormType', + './schemas/IFWS.xsd', + 'CT'), + ('CN22ContentType', + './schemas/IFWS.xsd', + 'CT'), + ('ContactType', + './schemas/IFWS.xsd', + 'CT'), + ('ForwardAgentType', + './schemas/IFWS.xsd', + 'CT'), + ('AddressType', + './schemas/IFWS.xsd', + 'CT'), + ('UltimateConsigneeType', + './schemas/IFWS.xsd', + 'CT'), + ('IntermediateConsigneeType', + './schemas/IFWS.xsd', + 'CT'), + ('ProducerType', + './schemas/IFWS.xsd', + 'CT'), + ('ProductType', + './schemas/IFWS.xsd', + 'CT'), + ('ExcludeFromFormType', + './schemas/IFWS.xsd', + 'CT'), + ('UnitType', + './schemas/IFWS.xsd', + 'CT'), + ('PackingListInfoType', + './schemas/IFWS.xsd', + 'CT'), + ('PackageAssociatedType', + './schemas/IFWS.xsd', + 'CT'), + ('UnitOfMeasurementType', + './schemas/IFWS.xsd', + 'CT'), + ('NetCostDateType', + './schemas/IFWS.xsd', + 'CT'), + ('ProductWeightType', + './schemas/IFWS.xsd', + 'CT'), + ('ScheduleBType', + './schemas/IFWS.xsd', + 'CT'), + ('IFChargesType', + './schemas/IFWS.xsd', + 'CT'), + ('OtherChargesType', + './schemas/IFWS.xsd', + 'CT'), + ('BlanketPeriodType', + './schemas/IFWS.xsd', + 'CT'), + ('LicenseType', + './schemas/IFWS.xsd', + 'CT'), + ('SoldToType', + './schemas/IFWS.xsd', + 'CT'), + ('PhoneType', + './schemas/IFWS.xsd', + 'CT'), + ('DDTCInformationType', + './schemas/IFWS.xsd', + 'CT'), + ('EEILicenseType', + './schemas/IFWS.xsd', + 'CT'), + ('EEIFilingOptionType', + './schemas/IFWS.xsd', + 'CT'), + ('UPSFiledType', + './schemas/IFWS.xsd', + 'CT'), + ('ShipperFiledType', + './schemas/IFWS.xsd', + 'CT'), + ('EEIInformationType', + './schemas/IFWS.xsd', + 'CT'), + ('POAType', + './schemas/IFWS.xsd', + 'CT'), + ('UltimateConsigneeTypeType', + './schemas/IFWS.xsd', + 'CT')]} + __all__ = [ "AddressType", "AirFreightStatusType", diff --git a/schemas/ups/ups_lib/ifws.py b/schemas/ups/ups_lib/ifws.py index 6f000e2b58..761a6c1cec 100644 --- a/schemas/ups/ups_lib/ifws.py +++ b/schemas/ups/ups_lib/ifws.py @@ -2,34 +2,35 @@ # -*- coding: utf-8 -*- # -# Generated Sat Mar 7 09:04:15 2020 by generateDS.py version 2.35.15. -# Python 3.8.1 (v3.8.1:1b293b6006, Dec 18 2019, 14:08:53) [Clang 6.0 (clang-600.0.57)] +# Generated Wed Nov 10 10:01:00 2021 by generateDS.py version 2.40.5. +# Python 3.8.6 (v3.8.6:db455296be, Sep 23 2020, 13:31:39) [Clang 6.0 (clang-600.0.57)] # # Command line options: # ('--no-namespace-defs', '') -# ('-o', './python/ifws.py') +# ('-o', './ups_lib/ifws.py') # # Command line arguments: # ./schemas/IFWS.xsd # # Command line: -# /Users/danielkobina/Documents/Open/.env/bin/generateDS --no-namespace-defs -o "./python/ifws.py" ./schemas/IFWS.xsd +# /Users/danielkobina/Workspace/project/purplship/.venv/purplship/bin/generateDS --no-namespace-defs -o "./ups_lib/ifws.py" ./schemas/IFWS.xsd # # Current working directory (os.getcwd()): -# 2020-03 +# ups # +import sys +try: + ModulenotfoundExp_ = ModuleNotFoundError +except NameError: + ModulenotfoundExp_ = ImportError from six.moves import zip_longest import os -import sys import re as re_ import base64 import datetime as datetime_ import decimal as decimal_ -try: - from lxml import etree as etree_ -except ImportError: - from xml.etree import ElementTree as etree_ +from lxml import etree as etree_ Validate_simpletypes_ = True @@ -92,7 +93,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # Additionally, the generatedsnamespaces module can contain a python # dictionary named GenerateDSNamespaceTypePrefixes that associates element # types with the namespace prefixes that are to be added to the -# "xsi:type" attribute value. See the exportAttributes method of +# "xsi:type" attribute value. See the _exportAttributes method of # any generated element type and the generation of "xsi:type" for an # example of the use of this table. # An example table: @@ -107,11 +108,11 @@ def parsexmlstring_(instring, parser=None, **kwargs): try: from generatedsnamespaces import GenerateDSNamespaceDefs as GenerateDSNamespaceDefs_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceDefs_ = {} try: from generatedsnamespaces import GenerateDSNamespaceTypePrefixes as GenerateDSNamespaceTypePrefixes_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceTypePrefixes_ = {} # @@ -122,7 +123,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # try: from generatedscollector import GdsCollector as GdsCollector_ -except ImportError: +except ModulenotfoundExp_ : class GdsCollector_(object): @@ -156,7 +157,7 @@ def write_messages(self, outstream): try: from enum import Enum -except ImportError: +except ModulenotfoundExp_ : Enum = object # @@ -168,9 +169,14 @@ def write_messages(self, outstream): try: from generatedssuper import GeneratedsSuper -except ImportError as exp: +except ModulenotfoundExp_ as exp: + try: + from generatedssupersuper import GeneratedsSuperSuper + except ModulenotfoundExp_ as exp: + class GeneratedsSuperSuper(object): + pass - class GeneratedsSuper(object): + class GeneratedsSuper(GeneratedsSuperSuper): __hash__ = object.__hash__ tzoff_pattern = re_.compile(r'(\+|-)((0\d|1[0-3]):[0-5]\d|14:00)$') class _FixedOffsetTZ(datetime_.tzinfo): @@ -183,6 +189,30 @@ def tzname(self, dt): return self.__name def dst(self, dt): return None + def __str__(self): + settings = { + 'str_pretty_print': True, + 'str_indent_level': 0, + 'str_namespaceprefix': '', + 'str_name': None, + 'str_namespacedefs': '', + } + for n in settings: + if hasattr(self, n): + setattr(settings[n], self[n]) + from io import StringIO + output = StringIO() + self.export( + output, + settings['str_indent_level'], + pretty_print=settings['str_pretty_print'], + namespaceprefix_=settings['str_namespaceprefix'], + name_=settings['str_name'], + namespacedef_=settings['str_namespacedefs'] + ) + strval = output.getvalue() + output.close() + return strval def gds_format_string(self, input_data, input_name=''): return input_data def gds_parse_string(self, input_data, node=None, input_name=''): @@ -193,11 +223,11 @@ def gds_validate_string(self, input_data, node=None, input_name=''): else: return input_data def gds_format_base64(self, input_data, input_name=''): - return base64.b64encode(input_data) + return base64.b64encode(input_data).decode('ascii') def gds_validate_base64(self, input_data, node=None, input_name=''): return input_data def gds_format_integer(self, input_data, input_name=''): - return '%d' % input_data + return '%d' % int(input_data) def gds_parse_integer(self, input_data, node=None, input_name=''): try: ival = int(input_data) @@ -211,6 +241,8 @@ def gds_validate_integer(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires integer value') return value def gds_format_integer_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_integer_list( self, input_data, node=None, input_name=''): @@ -219,10 +251,10 @@ def gds_validate_integer_list( try: int(value) except (TypeError, ValueError): - raise_parse_error(node, 'Requires sequence of integer valuess') + raise_parse_error(node, 'Requires sequence of integer values') return values def gds_format_float(self, input_data, input_name=''): - return ('%.15f' % input_data).rstrip('0') + return ('%.15f' % float(input_data)).rstrip('0') def gds_parse_float(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -236,6 +268,8 @@ def gds_validate_float(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires float value') return value def gds_format_float_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_float_list( self, input_data, node=None, input_name=''): @@ -247,7 +281,12 @@ def gds_validate_float_list( raise_parse_error(node, 'Requires sequence of float values') return values def gds_format_decimal(self, input_data, input_name=''): - return ('%s' % input_data).rstrip('0') + return_value = '%s' % input_data + if '.' in return_value: + return_value = return_value.rstrip('0') + if return_value.endswith('.'): + return_value = return_value.rstrip('.') + return return_value def gds_parse_decimal(self, input_data, node=None, input_name=''): try: decimal_value = decimal_.Decimal(input_data) @@ -261,7 +300,9 @@ def gds_validate_decimal(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires decimal value') return value def gds_format_decimal_list(self, input_data, input_name=''): - return '%s' % ' '.join(input_data) + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] + return ' '.join([self.gds_format_decimal(item) for item in input_data]) def gds_validate_decimal_list( self, input_data, node=None, input_name=''): values = input_data.split() @@ -272,7 +313,7 @@ def gds_validate_decimal_list( raise_parse_error(node, 'Requires sequence of decimal values') return values def gds_format_double(self, input_data, input_name=''): - return '%e' % input_data + return '%s' % input_data def gds_parse_double(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -286,6 +327,8 @@ def gds_validate_double(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires double or float value') return value def gds_format_double_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_double_list( self, input_data, node=None, input_name=''): @@ -315,11 +358,14 @@ def gds_validate_boolean(self, input_data, node=None, input_name=''): '(one of True, 1, False, 0)') return input_data def gds_format_boolean_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_boolean_list( self, input_data, node=None, input_name=''): values = input_data.split() for value in values: + value = self.gds_parse_boolean(value, node, input_name) if value not in (True, 1, False, 0, ): raise_parse_error( node, @@ -766,7 +812,10 @@ def find_attr_value_(attr_name, node): value = attrs.get(attr_name) elif len(attr_parts) == 2: prefix, name = attr_parts - namespace = node.nsmap.get(prefix) + if prefix == 'xml': + namespace = 'http://www.w3.org/XML/1998/namespace' + else: + namespace = node.nsmap.get(prefix) if namespace is not None: value = attrs.get('{%s}%s' % (namespace, name, )) return value @@ -847,7 +896,7 @@ def exportSimple(self, outfile, level, name): self.name, base64.b64encode(self.value), self.name)) - def to_etree(self, element): + def to_etree(self, element, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.category == MixedContainer.CategoryText: # Prevent exporting empty content as empty lines. if self.value.strip(): @@ -867,7 +916,7 @@ def to_etree(self, element): subelement.text = self.to_etree_simple() else: # category == MixedContainer.CategoryComplex self.value.to_etree(element) - def to_etree_simple(self): + def to_etree_simple(self, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.content_type == MixedContainer.TypeString: text = self.value elif (self.content_type == MixedContainer.TypeInteger or @@ -961,11 +1010,11 @@ def __init__(self, FormType=None, UserCreatedForm=None, CN22Form=None, UPSPremiu self.FormType = FormType self.FormType_nsprefix_ = None self.UserCreatedForm = UserCreatedForm - self.UserCreatedForm_nsprefix_ = None + self.UserCreatedForm_nsprefix_ = "IF" self.CN22Form = CN22Form - self.CN22Form_nsprefix_ = None + self.CN22Form_nsprefix_ = "IF" self.UPSPremiumCareForm = UPSPremiumCareForm - self.UPSPremiumCareForm_nsprefix_ = None + self.UPSPremiumCareForm_nsprefix_ = "IF" self.AdditionalDocumentIndicator = AdditionalDocumentIndicator self.AdditionalDocumentIndicator_nsprefix_ = None self.FormGroupIdName = FormGroupIdName @@ -973,14 +1022,14 @@ def __init__(self, FormType=None, UserCreatedForm=None, CN22Form=None, UPSPremiu self.SEDFilingOption = SEDFilingOption self.SEDFilingOption_nsprefix_ = None self.EEIFilingOption = EEIFilingOption - self.EEIFilingOption_nsprefix_ = None + self.EEIFilingOption_nsprefix_ = "IF" self.Contacts = Contacts - self.Contacts_nsprefix_ = None + self.Contacts_nsprefix_ = "IF" if Product is None: self.Product = [] else: self.Product = Product - self.Product_nsprefix_ = None + self.Product_nsprefix_ = "IF" self.InvoiceNumber = InvoiceNumber self.InvoiceNumber_nsprefix_ = None self.InvoiceDate = InvoiceDate @@ -996,17 +1045,17 @@ def __init__(self, FormType=None, UserCreatedForm=None, CN22Form=None, UPSPremiu self.DeclarationStatement = DeclarationStatement self.DeclarationStatement_nsprefix_ = None self.Discount = Discount - self.Discount_nsprefix_ = None + self.Discount_nsprefix_ = "IF" self.FreightCharges = FreightCharges - self.FreightCharges_nsprefix_ = None + self.FreightCharges_nsprefix_ = "IF" self.InsuranceCharges = InsuranceCharges - self.InsuranceCharges_nsprefix_ = None + self.InsuranceCharges_nsprefix_ = "IF" self.OtherCharges = OtherCharges - self.OtherCharges_nsprefix_ = None + self.OtherCharges_nsprefix_ = "IF" self.CurrencyCode = CurrencyCode self.CurrencyCode_nsprefix_ = None self.BlanketPeriod = BlanketPeriod - self.BlanketPeriod_nsprefix_ = None + self.BlanketPeriod_nsprefix_ = "IF" self.ExportDate = ExportDate self.ExportDate_nsprefix_ = None self.ExportingCarrier = ExportingCarrier @@ -1036,7 +1085,7 @@ def __init__(self, FormType=None, UserCreatedForm=None, CN22Form=None, UPSPremiu self.ContainerizedIndicator = ContainerizedIndicator self.ContainerizedIndicator_nsprefix_ = None self.License = License - self.License_nsprefix_ = None + self.License_nsprefix_ = "IF" self.ECCNNumber = ECCNNumber self.ECCNNumber_nsprefix_ = None self.OverridePaperlessIndicator = OverridePaperlessIndicator @@ -1246,7 +1295,7 @@ def get_HazardousMaterialsIndicator(self): return self.HazardousMaterialsIndicator def set_HazardousMaterialsIndicator(self, HazardousMaterialsIndicator): self.HazardousMaterialsIndicator = HazardousMaterialsIndicator - def hasContent_(self): + def _hasContent(self): if ( self.FormType or self.UserCreatedForm is not None or @@ -1310,17 +1359,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='I showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='InternationalFormType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='InternationalFormType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='InternationalFormType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='InternationalFormType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='InternationalFormType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='InternationalFormType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='InternationalFormType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='InternationalFormType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1491,14 +1540,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'FormType': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'FormType') @@ -1767,7 +1816,7 @@ def __init__(self, ShipmentDate=None, PageSize=None, PrintType=None, NumOfCopies self.NumOfCopies = NumOfCopies self.NumOfCopies_nsprefix_ = None self.LanguageForUPSPremiumCare = LanguageForUPSPremiumCare - self.LanguageForUPSPremiumCare_nsprefix_ = None + self.LanguageForUPSPremiumCare_nsprefix_ = "IF" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1803,7 +1852,7 @@ def get_LanguageForUPSPremiumCare(self): return self.LanguageForUPSPremiumCare def set_LanguageForUPSPremiumCare(self, LanguageForUPSPremiumCare): self.LanguageForUPSPremiumCare = LanguageForUPSPremiumCare - def hasContent_(self): + def _hasContent(self): if ( self.ShipmentDate is not None or self.PageSize is not None or @@ -1829,17 +1878,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='U showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UPSPremiumCareFormType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UPSPremiumCareFormType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UPSPremiumCareFormType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UPSPremiumCareFormType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UPSPremiumCareFormType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UPSPremiumCareFormType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UPSPremiumCareFormType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UPSPremiumCareFormType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1869,14 +1918,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ShipmentDate': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ShipmentDate') @@ -1949,7 +1998,7 @@ def insert_Language_at(self, index, value): self.Language.insert(index, value) def replace_Language_at(self, index, value): self.Language[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Language ): @@ -1971,17 +2020,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='L showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LanguageForUPSPremiumCareType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LanguageForUPSPremiumCareType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LanguageForUPSPremiumCareType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LanguageForUPSPremiumCareType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LanguageForUPSPremiumCareType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LanguageForUPSPremiumCareType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LanguageForUPSPremiumCareType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LanguageForUPSPremiumCareType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1996,14 +2045,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Language': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Language') @@ -2053,7 +2102,7 @@ def insert_DocumentID_at(self, index, value): self.DocumentID.insert(index, value) def replace_DocumentID_at(self, index, value): self.DocumentID[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.DocumentID ): @@ -2075,17 +2124,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='U showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UserCreatedFormType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UserCreatedFormType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UserCreatedFormType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UserCreatedFormType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UserCreatedFormType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UserCreatedFormType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UserCreatedFormType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UserCreatedFormType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2100,14 +2149,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'DocumentID': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'DocumentID') @@ -2143,7 +2192,7 @@ def __init__(self, LabelSize=None, PrintsPerPage=None, LabelPrintType=None, CN22 self.CN22Content = [] else: self.CN22Content = CN22Content - self.CN22Content_nsprefix_ = None + self.CN22Content_nsprefix_ = "IF" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -2193,7 +2242,7 @@ def insert_CN22Content_at(self, index, value): self.CN22Content.insert(index, value) def replace_CN22Content_at(self, index, value): self.CN22Content[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.LabelSize is not None or self.PrintsPerPage is not None or @@ -2221,17 +2270,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CN22FormType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CN22FormType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CN22FormType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CN22FormType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CN22FormType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CN22FormType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CN22FormType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CN22FormType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2269,14 +2318,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'LabelSize': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'LabelSize') @@ -2336,7 +2385,7 @@ def __init__(self, CN22ContentQuantity=None, CN22ContentDescription=None, CN22Co self.CN22ContentDescription = CN22ContentDescription self.CN22ContentDescription_nsprefix_ = None self.CN22ContentWeight = CN22ContentWeight - self.CN22ContentWeight_nsprefix_ = None + self.CN22ContentWeight_nsprefix_ = "IF" self.CN22ContentTotalValue = CN22ContentTotalValue self.CN22ContentTotalValue_nsprefix_ = None self.CN22ContentCurrencyCode = CN22ContentCurrencyCode @@ -2388,7 +2437,7 @@ def get_CN22ContentTariffNumber(self): return self.CN22ContentTariffNumber def set_CN22ContentTariffNumber(self, CN22ContentTariffNumber): self.CN22ContentTariffNumber = CN22ContentTariffNumber - def hasContent_(self): + def _hasContent(self): if ( self.CN22ContentQuantity is not None or self.CN22ContentDescription is not None or @@ -2416,17 +2465,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CN22ContentType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CN22ContentType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CN22ContentType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CN22ContentType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CN22ContentType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CN22ContentType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CN22ContentType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CN22ContentType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2464,14 +2513,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CN22ContentQuantity': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CN22ContentQuantity') @@ -2527,15 +2576,15 @@ def __init__(self, ForwardAgent=None, UltimateConsignee=None, IntermediateConsig self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.ForwardAgent = ForwardAgent - self.ForwardAgent_nsprefix_ = None + self.ForwardAgent_nsprefix_ = "IF" self.UltimateConsignee = UltimateConsignee - self.UltimateConsignee_nsprefix_ = None + self.UltimateConsignee_nsprefix_ = "IF" self.IntermediateConsignee = IntermediateConsignee - self.IntermediateConsignee_nsprefix_ = None + self.IntermediateConsignee_nsprefix_ = "IF" self.Producer = Producer - self.Producer_nsprefix_ = None + self.Producer_nsprefix_ = "IF" self.SoldTo = SoldTo - self.SoldTo_nsprefix_ = None + self.SoldTo_nsprefix_ = "IF" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -2571,7 +2620,7 @@ def get_SoldTo(self): return self.SoldTo def set_SoldTo(self, SoldTo): self.SoldTo = SoldTo - def hasContent_(self): + def _hasContent(self): if ( self.ForwardAgent is not None or self.UltimateConsignee is not None or @@ -2597,17 +2646,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ContactType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ContactType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ContactType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ContactType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ContactType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ContactType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ContactType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ContactType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2633,14 +2682,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ForwardAgent': obj_ = ForwardAgentType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -2684,7 +2733,7 @@ def __init__(self, CompanyName=None, TaxIdentificationNumber=None, Address=None, self.TaxIdentificationNumber = TaxIdentificationNumber self.TaxIdentificationNumber_nsprefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "IF" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -2712,7 +2761,7 @@ def get_Address(self): return self.Address def set_Address(self, Address): self.Address = Address - def hasContent_(self): + def _hasContent(self): if ( self.CompanyName is not None or self.TaxIdentificationNumber is not None or @@ -2736,17 +2785,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='F showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ForwardAgentType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ForwardAgentType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ForwardAgentType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ForwardAgentType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ForwardAgentType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ForwardAgentType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ForwardAgentType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ForwardAgentType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2768,14 +2817,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CompanyName': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CompanyName') @@ -2866,7 +2915,7 @@ def get_CountryCode(self): return self.CountryCode def set_CountryCode(self, CountryCode): self.CountryCode = CountryCode - def hasContent_(self): + def _hasContent(self): if ( self.AddressLine or self.City is not None or @@ -2893,17 +2942,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AddressType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AddressType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AddressType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AddressType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2938,14 +2987,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AddressLine': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'AddressLine') @@ -2998,9 +3047,9 @@ def __init__(self, CompanyName=None, Address=None, UltimateConsigneeType_member= self.CompanyName = CompanyName self.CompanyName_nsprefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "IF" self.UltimateConsigneeType = UltimateConsigneeType_member - self.UltimateConsigneeType_nsprefix_ = None + self.UltimateConsigneeType_nsprefix_ = "IF" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -3028,7 +3077,7 @@ def get_UltimateConsigneeType(self): return self.UltimateConsigneeType def set_UltimateConsigneeType(self, UltimateConsigneeType): self.UltimateConsigneeType = UltimateConsigneeType - def hasContent_(self): + def _hasContent(self): if ( self.CompanyName is not None or self.Address is not None or @@ -3052,17 +3101,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='U showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UltimateConsigneeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UltimateConsigneeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UltimateConsigneeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UltimateConsigneeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UltimateConsigneeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UltimateConsigneeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UltimateConsigneeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UltimateConsigneeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3083,14 +3132,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CompanyName': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CompanyName') @@ -3123,7 +3172,7 @@ def __init__(self, CompanyName=None, Address=None, gds_collector_=None, **kwargs self.CompanyName = CompanyName self.CompanyName_nsprefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "IF" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -3147,7 +3196,7 @@ def get_Address(self): return self.Address def set_Address(self, Address): self.Address = Address - def hasContent_(self): + def _hasContent(self): if ( self.CompanyName is not None or self.Address is not None @@ -3170,17 +3219,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='I showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='IntermediateConsigneeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='IntermediateConsigneeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='IntermediateConsigneeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='IntermediateConsigneeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='IntermediateConsigneeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='IntermediateConsigneeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='IntermediateConsigneeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='IntermediateConsigneeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3198,14 +3247,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CompanyName': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CompanyName') @@ -3237,11 +3286,11 @@ def __init__(self, Option=None, CompanyName=None, TaxIdentificationNumber=None, self.TaxIdentificationNumber = TaxIdentificationNumber self.TaxIdentificationNumber_nsprefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "IF" self.AttentionName = AttentionName self.AttentionName_nsprefix_ = None self.Phone = Phone - self.Phone_nsprefix_ = None + self.Phone_nsprefix_ = "IF" self.EMailAddress = EMailAddress self.EMailAddress_nsprefix_ = None def factory(*args_, **kwargs_): @@ -3287,7 +3336,7 @@ def get_EMailAddress(self): return self.EMailAddress def set_EMailAddress(self, EMailAddress): self.EMailAddress = EMailAddress - def hasContent_(self): + def _hasContent(self): if ( self.Option is not None or self.CompanyName is not None or @@ -3315,17 +3364,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ProducerType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ProducerType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ProducerType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ProducerType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ProducerType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ProducerType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ProducerType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ProducerType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3362,14 +3411,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Option': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Option') @@ -3429,7 +3478,7 @@ def __init__(self, Description=None, Unit=None, CommodityCode=None, PartNumber=N self.Description = Description self.Description_nsprefix_ = None self.Unit = Unit - self.Unit_nsprefix_ = None + self.Unit_nsprefix_ = "IF" self.CommodityCode = CommodityCode self.CommodityCode_nsprefix_ = None self.PartNumber = PartNumber @@ -3441,7 +3490,7 @@ def __init__(self, Description=None, Unit=None, CommodityCode=None, PartNumber=N self.NetCostCode = NetCostCode self.NetCostCode_nsprefix_ = None self.NetCostDateRange = NetCostDateRange - self.NetCostDateRange_nsprefix_ = None + self.NetCostDateRange_nsprefix_ = "IF" self.PreferenceCriteria = PreferenceCriteria self.PreferenceCriteria_nsprefix_ = None self.ProducerInfo = ProducerInfo @@ -3451,23 +3500,23 @@ def __init__(self, Description=None, Unit=None, CommodityCode=None, PartNumber=N self.NumberOfPackagesPerCommodity = NumberOfPackagesPerCommodity self.NumberOfPackagesPerCommodity_nsprefix_ = None self.ProductWeight = ProductWeight - self.ProductWeight_nsprefix_ = None + self.ProductWeight_nsprefix_ = "IF" self.VehicleID = VehicleID self.VehicleID_nsprefix_ = None self.ScheduleB = ScheduleB - self.ScheduleB_nsprefix_ = None + self.ScheduleB_nsprefix_ = "IF" self.ExportType = ExportType self.ExportType_nsprefix_ = None self.SEDTotalValue = SEDTotalValue self.SEDTotalValue_nsprefix_ = None self.ExcludeFromForm = ExcludeFromForm - self.ExcludeFromForm_nsprefix_ = None + self.ExcludeFromForm_nsprefix_ = "IF" self.ProductCurrencyCode = ProductCurrencyCode self.ProductCurrencyCode_nsprefix_ = None self.PackingListInfo = PackingListInfo - self.PackingListInfo_nsprefix_ = None + self.PackingListInfo_nsprefix_ = "IF" self.EEIInformation = EEIInformation - self.EEIInformation_nsprefix_ = None + self.EEIInformation_nsprefix_ = "IF" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -3573,7 +3622,7 @@ def get_EEIInformation(self): return self.EEIInformation def set_EEIInformation(self, EEIInformation): self.EEIInformation = EEIInformation - def hasContent_(self): + def _hasContent(self): if ( self.Description or self.Unit is not None or @@ -3615,17 +3664,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ProductType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ProductType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ProductType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ProductType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ProductType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ProductType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ProductType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ProductType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3713,14 +3762,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Description': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Description') @@ -3883,7 +3932,7 @@ def insert_FormType_at(self, index, value): self.FormType.insert(index, value) def replace_FormType_at(self, index, value): self.FormType[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.FormType ): @@ -3905,17 +3954,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='E showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ExcludeFromFormType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ExcludeFromFormType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ExcludeFromFormType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ExcludeFromFormType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ExcludeFromFormType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ExcludeFromFormType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ExcludeFromFormType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ExcludeFromFormType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3930,14 +3979,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'FormType': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'FormType') @@ -3960,7 +4009,7 @@ def __init__(self, Number=None, UnitOfMeasurement=None, Value=None, gds_collecto self.Number = Number self.Number_nsprefix_ = None self.UnitOfMeasurement = UnitOfMeasurement - self.UnitOfMeasurement_nsprefix_ = None + self.UnitOfMeasurement_nsprefix_ = "IF" self.Value = Value self.Value_nsprefix_ = None def factory(*args_, **kwargs_): @@ -3990,7 +4039,7 @@ def get_Value(self): return self.Value def set_Value(self, Value): self.Value = Value - def hasContent_(self): + def _hasContent(self): if ( self.Number is not None or self.UnitOfMeasurement is not None or @@ -4014,17 +4063,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='U showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UnitType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UnitType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UnitType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UnitType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UnitType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UnitType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UnitType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UnitType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4046,14 +4095,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Number': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Number') @@ -4088,7 +4137,7 @@ def __init__(self, PackageAssociated=None, gds_collector_=None, **kwargs_): self.PackageAssociated = [] else: self.PackageAssociated = PackageAssociated - self.PackageAssociated_nsprefix_ = None + self.PackageAssociated_nsprefix_ = "IF" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -4114,7 +4163,7 @@ def insert_PackageAssociated_at(self, index, value): self.PackageAssociated.insert(index, value) def replace_PackageAssociated_at(self, index, value): self.PackageAssociated[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.PackageAssociated ): @@ -4136,17 +4185,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackingListInfoType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackingListInfoType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackingListInfoType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackingListInfoType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackingListInfoType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackingListInfoType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackingListInfoType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackingListInfoType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4160,14 +4209,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PackageAssociated': obj_ = PackageAssociatedType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -4213,7 +4262,7 @@ def get_ProductAmount(self): return self.ProductAmount def set_ProductAmount(self, ProductAmount): self.ProductAmount = ProductAmount - def hasContent_(self): + def _hasContent(self): if ( self.PackageNumber is not None or self.ProductAmount is not None @@ -4236,17 +4285,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageAssociatedType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageAssociatedType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageAssociatedType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageAssociatedType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageAssociatedType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageAssociatedType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageAssociatedType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageAssociatedType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4265,14 +4314,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PackageNumber': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'PackageNumber') @@ -4325,7 +4374,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -4348,17 +4397,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='U showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UnitOfMeasurementType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UnitOfMeasurementType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UnitOfMeasurementType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UnitOfMeasurementType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UnitOfMeasurementType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UnitOfMeasurementType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UnitOfMeasurementType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UnitOfMeasurementType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4377,14 +4426,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -4437,7 +4486,7 @@ def get_EndDate(self): return self.EndDate def set_EndDate(self, EndDate): self.EndDate = EndDate - def hasContent_(self): + def _hasContent(self): if ( self.BeginDate is not None or self.EndDate is not None @@ -4460,17 +4509,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='N showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='NetCostDateType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='NetCostDateType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='NetCostDateType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='NetCostDateType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='NetCostDateType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='NetCostDateType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='NetCostDateType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='NetCostDateType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4489,14 +4538,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'BeginDate': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'BeginDate') @@ -4523,7 +4572,7 @@ def __init__(self, UnitOfMeasurement=None, Weight=None, gds_collector_=None, **k self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.UnitOfMeasurement = UnitOfMeasurement - self.UnitOfMeasurement_nsprefix_ = None + self.UnitOfMeasurement_nsprefix_ = "IF" self.Weight = Weight self.Weight_nsprefix_ = None def factory(*args_, **kwargs_): @@ -4549,7 +4598,7 @@ def get_Weight(self): return self.Weight def set_Weight(self, Weight): self.Weight = Weight - def hasContent_(self): + def _hasContent(self): if ( self.UnitOfMeasurement is not None or self.Weight is not None @@ -4572,17 +4621,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ProductWeightType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ProductWeightType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ProductWeightType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ProductWeightType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ProductWeightType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ProductWeightType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ProductWeightType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ProductWeightType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4600,14 +4649,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'UnitOfMeasurement': obj_ = UnitOfMeasurementType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -4643,7 +4692,7 @@ def __init__(self, Number=None, Quantity=None, UnitOfMeasurement=None, gds_colle self.UnitOfMeasurement = [] else: self.UnitOfMeasurement = UnitOfMeasurement - self.UnitOfMeasurement_nsprefix_ = None + self.UnitOfMeasurement_nsprefix_ = "IF" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -4683,7 +4732,7 @@ def insert_UnitOfMeasurement_at(self, index, value): self.UnitOfMeasurement.insert(index, value) def replace_UnitOfMeasurement_at(self, index, value): self.UnitOfMeasurement[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Number is not None or self.Quantity or @@ -4707,17 +4756,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ScheduleBType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ScheduleBType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ScheduleBType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ScheduleBType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ScheduleBType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ScheduleBType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ScheduleBType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ScheduleBType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4739,14 +4788,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Number': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Number') @@ -4798,7 +4847,7 @@ def get_MonetaryValue(self): return self.MonetaryValue def set_MonetaryValue(self, MonetaryValue): self.MonetaryValue = MonetaryValue - def hasContent_(self): + def _hasContent(self): if ( self.MonetaryValue is not None ): @@ -4820,17 +4869,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='I showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='IFChargesType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='IFChargesType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='IFChargesType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='IFChargesType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='IFChargesType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='IFChargesType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='IFChargesType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='IFChargesType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4845,14 +4894,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'MonetaryValue': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'MonetaryValue') @@ -4899,7 +4948,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.MonetaryValue is not None or self.Description is not None @@ -4922,17 +4971,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='O showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='OtherChargesType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='OtherChargesType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='OtherChargesType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='OtherChargesType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='OtherChargesType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='OtherChargesType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='OtherChargesType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='OtherChargesType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4951,14 +5000,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'MonetaryValue': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'MonetaryValue') @@ -5011,7 +5060,7 @@ def get_EndDate(self): return self.EndDate def set_EndDate(self, EndDate): self.EndDate = EndDate - def hasContent_(self): + def _hasContent(self): if ( self.BeginDate is not None or self.EndDate is not None @@ -5034,17 +5083,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='B showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='BlanketPeriodType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='BlanketPeriodType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='BlanketPeriodType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='BlanketPeriodType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='BlanketPeriodType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='BlanketPeriodType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='BlanketPeriodType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='BlanketPeriodType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5063,14 +5112,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'BeginDate': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'BeginDate') @@ -5129,7 +5178,7 @@ def get_ExceptionCode(self): return self.ExceptionCode def set_ExceptionCode(self, ExceptionCode): self.ExceptionCode = ExceptionCode - def hasContent_(self): + def _hasContent(self): if ( self.Number is not None or self.Date is not None or @@ -5153,17 +5202,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='L showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LicenseType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LicenseType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LicenseType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LicenseType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LicenseType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LicenseType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LicenseType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LicenseType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5186,14 +5235,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Number': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Number') @@ -5232,11 +5281,11 @@ def __init__(self, Name=None, AttentionName=None, TaxIdentificationNumber=None, self.TaxIdentificationNumber = TaxIdentificationNumber self.TaxIdentificationNumber_nsprefix_ = None self.Phone = Phone - self.Phone_nsprefix_ = None + self.Phone_nsprefix_ = "IF" self.Option = Option self.Option_nsprefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "IF" self.EMailAddress = EMailAddress self.EMailAddress_nsprefix_ = None def factory(*args_, **kwargs_): @@ -5282,7 +5331,7 @@ def get_EMailAddress(self): return self.EMailAddress def set_EMailAddress(self, EMailAddress): self.EMailAddress = EMailAddress - def hasContent_(self): + def _hasContent(self): if ( self.Name is not None or self.AttentionName is not None or @@ -5310,17 +5359,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SoldToType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SoldToType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='SoldToType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='SoldToType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='SoldToType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='SoldToType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='SoldToType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='SoldToType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5357,14 +5406,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Name': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Name') @@ -5445,7 +5494,7 @@ def get_Extension(self): return self.Extension def set_Extension(self, Extension): self.Extension = Extension - def hasContent_(self): + def _hasContent(self): if ( self.Number is not None or self.Extension is not None @@ -5468,17 +5517,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PhoneType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PhoneType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PhoneType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PhoneType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PhoneType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PhoneType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PhoneType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PhoneType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5497,14 +5546,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Number': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Number') @@ -5541,7 +5590,7 @@ def __init__(self, ITARExemptionNumber=None, USMLCategoryCode=None, EligiblePart self.Quantity = Quantity self.Quantity_nsprefix_ = None self.UnitOfMeasurement = UnitOfMeasurement - self.UnitOfMeasurement_nsprefix_ = None + self.UnitOfMeasurement_nsprefix_ = "IF" self.SignificantMilitaryEquipmentIndicator = SignificantMilitaryEquipmentIndicator self.SignificantMilitaryEquipmentIndicator_nsprefix_ = None self.ACMNumber = ACMNumber @@ -5593,7 +5642,7 @@ def get_ACMNumber(self): return self.ACMNumber def set_ACMNumber(self, ACMNumber): self.ACMNumber = ACMNumber - def hasContent_(self): + def _hasContent(self): if ( self.ITARExemptionNumber is not None or self.USMLCategoryCode is not None or @@ -5622,17 +5671,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DDTCInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DDTCInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DDTCInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DDTCInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DDTCInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DDTCInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DDTCInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DDTCInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5674,14 +5723,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ITARExemptionNumber': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ITARExemptionNumber') @@ -5781,7 +5830,7 @@ def get_ECCNNumber(self): return self.ECCNNumber def set_ECCNNumber(self, ECCNNumber): self.ECCNNumber = ECCNNumber - def hasContent_(self): + def _hasContent(self): if ( self.Number is not None or self.Code is not None or @@ -5806,17 +5855,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='E showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='EEILicenseType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='EEILicenseType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='EEILicenseType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='EEILicenseType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='EEILicenseType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='EEILicenseType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='EEILicenseType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='EEILicenseType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5843,14 +5892,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Number': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Number') @@ -5895,9 +5944,9 @@ def __init__(self, Code=None, EMailAddress=None, Description=None, UPSFiled=None self.Description = Description self.Description_nsprefix_ = None self.UPSFiled = UPSFiled - self.UPSFiled_nsprefix_ = None + self.UPSFiled_nsprefix_ = "IF" self.ShipperFiled = ShipperFiled - self.ShipperFiled_nsprefix_ = None + self.ShipperFiled_nsprefix_ = "IF" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -5933,7 +5982,7 @@ def get_ShipperFiled(self): return self.ShipperFiled def set_ShipperFiled(self, ShipperFiled): self.ShipperFiled = ShipperFiled - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.EMailAddress is not None or @@ -5959,17 +6008,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='E showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='EEIFilingOptionType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='EEIFilingOptionType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='EEIFilingOptionType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='EEIFilingOptionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='EEIFilingOptionType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='EEIFilingOptionType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='EEIFilingOptionType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='EEIFilingOptionType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5998,14 +6047,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -6048,7 +6097,7 @@ def __init__(self, POA=None, gds_collector_=None, **kwargs_): self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.POA = POA - self.POA_nsprefix_ = None + self.POA_nsprefix_ = "IF" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -6068,7 +6117,7 @@ def get_POA(self): return self.POA def set_POA(self, POA): self.POA = POA - def hasContent_(self): + def _hasContent(self): if ( self.POA is not None ): @@ -6090,17 +6139,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='U showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UPSFiledType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UPSFiledType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UPSFiledType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UPSFiledType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UPSFiledType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UPSFiledType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UPSFiledType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UPSFiledType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6114,14 +6163,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'POA': obj_ = POAType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -6185,7 +6234,7 @@ def get_EEIShipmentReferenceNumber(self): return self.EEIShipmentReferenceNumber def set_EEIShipmentReferenceNumber(self, EEIShipmentReferenceNumber): self.EEIShipmentReferenceNumber = EEIShipmentReferenceNumber - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None or @@ -6211,17 +6260,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipperFiledType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipperFiledType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipperFiledType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipperFiledType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipperFiledType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipperFiledType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipperFiledType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipperFiledType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6252,14 +6301,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -6306,9 +6355,9 @@ def __init__(self, ExportInformation=None, License=None, DDTCInformation=None, g self.ExportInformation = ExportInformation self.ExportInformation_nsprefix_ = None self.License = License - self.License_nsprefix_ = None + self.License_nsprefix_ = "IF" self.DDTCInformation = DDTCInformation - self.DDTCInformation_nsprefix_ = None + self.DDTCInformation_nsprefix_ = "IF" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -6336,7 +6385,7 @@ def get_DDTCInformation(self): return self.DDTCInformation def set_DDTCInformation(self, DDTCInformation): self.DDTCInformation = DDTCInformation - def hasContent_(self): + def _hasContent(self): if ( self.ExportInformation is not None or self.License is not None or @@ -6360,17 +6409,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='E showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='EEIInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='EEIInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='EEIInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='EEIInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='EEIInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='EEIInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='EEIInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='EEIInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6391,14 +6440,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ExportInformation': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ExportInformation') @@ -6455,7 +6504,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -6478,17 +6527,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='POAType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='POAType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='POAType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='POAType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='POAType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='POAType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='POAType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='POAType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6507,14 +6556,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -6567,7 +6616,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -6590,17 +6639,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='U showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UltimateConsigneeTypeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UltimateConsigneeTypeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UltimateConsigneeTypeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UltimateConsigneeTypeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UltimateConsigneeTypeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UltimateConsigneeTypeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UltimateConsigneeTypeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UltimateConsigneeTypeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6619,14 +6668,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -6713,7 +6762,8 @@ def parse(inFileName, silence=False, print_warnings=True): return rootObj -def parseEtree(inFileName, silence=False, print_warnings=True): +def parseEtree(inFileName, silence=False, print_warnings=True, + mapping=None, reverse_mapping=None, nsmap=None): parser = None doc = parsexml_(inFileName, parser) gds_collector = GdsCollector_() @@ -6724,10 +6774,15 @@ def parseEtree(inFileName, silence=False, print_warnings=True): rootClass = InternationalFormType rootObj = rootClass.factory() rootObj.build(rootNode, gds_collector_=gds_collector) + if mapping is None: + mapping = {} + if reverse_mapping is None: + reverse_mapping = {} + rootElement = rootObj.to_etree( + None, name_=rootTag, mapping_=mapping, + reverse_mapping_=reverse_mapping, nsmap_=nsmap) + reverse_node_mapping = rootObj.gds_reverse_node_mapping(mapping) # Enable Python to collect the space used by the DOM. - mapping = {} - rootElement = rootObj.to_etree(None, name_=rootTag, mapping_=mapping) - reverse_mapping = rootObj.gds_reverse_node_mapping(mapping) if not SaveElementTreeNode: doc = None rootNode = None @@ -6744,7 +6799,7 @@ def parseEtree(inFileName, silence=False, print_warnings=True): len(gds_collector.get_messages()), )) gds_collector.write_messages(sys.stderr) sys.stderr.write(separator) - return rootObj, rootElement, mapping, reverse_mapping + return rootObj, rootElement, mapping, reverse_node_mapping def parseString(inString, silence=False, print_warnings=True): @@ -6828,6 +6883,116 @@ def main(): RenameMappings_ = { } +# +# Mapping of namespaces to types defined in them +# and the file in which each is defined. +# simpleTypes are marked "ST" and complexTypes "CT". +NamespaceToDefMappings_ = {'http://www.ups.com/XMLSchema/XOLTWS/IF/v1.0': [('InternationalFormType', + './schemas/IFWS.xsd', + 'CT'), + ('UPSPremiumCareFormType', + './schemas/IFWS.xsd', + 'CT'), + ('LanguageForUPSPremiumCareType', + './schemas/IFWS.xsd', + 'CT'), + ('UserCreatedFormType', + './schemas/IFWS.xsd', + 'CT'), + ('CN22FormType', + './schemas/IFWS.xsd', + 'CT'), + ('CN22ContentType', + './schemas/IFWS.xsd', + 'CT'), + ('ContactType', + './schemas/IFWS.xsd', + 'CT'), + ('ForwardAgentType', + './schemas/IFWS.xsd', + 'CT'), + ('AddressType', + './schemas/IFWS.xsd', + 'CT'), + ('UltimateConsigneeType', + './schemas/IFWS.xsd', + 'CT'), + ('IntermediateConsigneeType', + './schemas/IFWS.xsd', + 'CT'), + ('ProducerType', + './schemas/IFWS.xsd', + 'CT'), + ('ProductType', + './schemas/IFWS.xsd', + 'CT'), + ('ExcludeFromFormType', + './schemas/IFWS.xsd', + 'CT'), + ('UnitType', + './schemas/IFWS.xsd', + 'CT'), + ('PackingListInfoType', + './schemas/IFWS.xsd', + 'CT'), + ('PackageAssociatedType', + './schemas/IFWS.xsd', + 'CT'), + ('UnitOfMeasurementType', + './schemas/IFWS.xsd', + 'CT'), + ('NetCostDateType', + './schemas/IFWS.xsd', + 'CT'), + ('ProductWeightType', + './schemas/IFWS.xsd', + 'CT'), + ('ScheduleBType', + './schemas/IFWS.xsd', + 'CT'), + ('IFChargesType', + './schemas/IFWS.xsd', + 'CT'), + ('OtherChargesType', + './schemas/IFWS.xsd', + 'CT'), + ('BlanketPeriodType', + './schemas/IFWS.xsd', + 'CT'), + ('LicenseType', + './schemas/IFWS.xsd', + 'CT'), + ('SoldToType', + './schemas/IFWS.xsd', + 'CT'), + ('PhoneType', + './schemas/IFWS.xsd', + 'CT'), + ('DDTCInformationType', + './schemas/IFWS.xsd', + 'CT'), + ('EEILicenseType', + './schemas/IFWS.xsd', + 'CT'), + ('EEIFilingOptionType', + './schemas/IFWS.xsd', + 'CT'), + ('UPSFiledType', + './schemas/IFWS.xsd', + 'CT'), + ('ShipperFiledType', + './schemas/IFWS.xsd', + 'CT'), + ('EEIInformationType', + './schemas/IFWS.xsd', + 'CT'), + ('POAType', + './schemas/IFWS.xsd', + 'CT'), + ('UltimateConsigneeTypeType', + './schemas/IFWS.xsd', + 'CT')]} + __all__ = [ "AddressType", "BlanketPeriodType", diff --git a/schemas/ups/ups_lib/landed_cost_web_service_schema.py b/schemas/ups/ups_lib/landed_cost_web_service_schema.py index a021ebc612..2d3c1cb1a3 100644 --- a/schemas/ups/ups_lib/landed_cost_web_service_schema.py +++ b/schemas/ups/ups_lib/landed_cost_web_service_schema.py @@ -2,34 +2,35 @@ # -*- coding: utf-8 -*- # -# Generated Sat Mar 7 09:04:16 2020 by generateDS.py version 2.35.15. -# Python 3.8.1 (v3.8.1:1b293b6006, Dec 18 2019, 14:08:53) [Clang 6.0 (clang-600.0.57)] +# Generated Wed Nov 10 10:01:01 2021 by generateDS.py version 2.40.5. +# Python 3.8.6 (v3.8.6:db455296be, Sep 23 2020, 13:31:39) [Clang 6.0 (clang-600.0.57)] # # Command line options: # ('--no-namespace-defs', '') -# ('-o', './python/landed_cost_web_service_schema.py') +# ('-o', './ups_lib/landed_cost_web_service_schema.py') # # Command line arguments: # ./schemas/LandedCostWebServiceSchema.xsd # # Command line: -# /Users/danielkobina/Documents/Open/.env/bin/generateDS --no-namespace-defs -o "./python/landed_cost_web_service_schema.py" ./schemas/LandedCostWebServiceSchema.xsd +# /Users/danielkobina/Workspace/project/purplship/.venv/purplship/bin/generateDS --no-namespace-defs -o "./ups_lib/landed_cost_web_service_schema.py" ./schemas/LandedCostWebServiceSchema.xsd # # Current working directory (os.getcwd()): -# 2020-03 +# ups # +import sys +try: + ModulenotfoundExp_ = ModuleNotFoundError +except NameError: + ModulenotfoundExp_ = ImportError from six.moves import zip_longest import os -import sys import re as re_ import base64 import datetime as datetime_ import decimal as decimal_ -try: - from lxml import etree as etree_ -except ImportError: - from xml.etree import ElementTree as etree_ +from lxml import etree as etree_ Validate_simpletypes_ = True @@ -92,7 +93,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # Additionally, the generatedsnamespaces module can contain a python # dictionary named GenerateDSNamespaceTypePrefixes that associates element # types with the namespace prefixes that are to be added to the -# "xsi:type" attribute value. See the exportAttributes method of +# "xsi:type" attribute value. See the _exportAttributes method of # any generated element type and the generation of "xsi:type" for an # example of the use of this table. # An example table: @@ -107,11 +108,11 @@ def parsexmlstring_(instring, parser=None, **kwargs): try: from generatedsnamespaces import GenerateDSNamespaceDefs as GenerateDSNamespaceDefs_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceDefs_ = {} try: from generatedsnamespaces import GenerateDSNamespaceTypePrefixes as GenerateDSNamespaceTypePrefixes_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceTypePrefixes_ = {} # @@ -122,7 +123,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # try: from generatedscollector import GdsCollector as GdsCollector_ -except ImportError: +except ModulenotfoundExp_ : class GdsCollector_(object): @@ -156,7 +157,7 @@ def write_messages(self, outstream): try: from enum import Enum -except ImportError: +except ModulenotfoundExp_ : Enum = object # @@ -168,9 +169,14 @@ def write_messages(self, outstream): try: from generatedssuper import GeneratedsSuper -except ImportError as exp: +except ModulenotfoundExp_ as exp: + try: + from generatedssupersuper import GeneratedsSuperSuper + except ModulenotfoundExp_ as exp: + class GeneratedsSuperSuper(object): + pass - class GeneratedsSuper(object): + class GeneratedsSuper(GeneratedsSuperSuper): __hash__ = object.__hash__ tzoff_pattern = re_.compile(r'(\+|-)((0\d|1[0-3]):[0-5]\d|14:00)$') class _FixedOffsetTZ(datetime_.tzinfo): @@ -183,6 +189,30 @@ def tzname(self, dt): return self.__name def dst(self, dt): return None + def __str__(self): + settings = { + 'str_pretty_print': True, + 'str_indent_level': 0, + 'str_namespaceprefix': '', + 'str_name': None, + 'str_namespacedefs': '', + } + for n in settings: + if hasattr(self, n): + setattr(settings[n], self[n]) + from io import StringIO + output = StringIO() + self.export( + output, + settings['str_indent_level'], + pretty_print=settings['str_pretty_print'], + namespaceprefix_=settings['str_namespaceprefix'], + name_=settings['str_name'], + namespacedef_=settings['str_namespacedefs'] + ) + strval = output.getvalue() + output.close() + return strval def gds_format_string(self, input_data, input_name=''): return input_data def gds_parse_string(self, input_data, node=None, input_name=''): @@ -193,11 +223,11 @@ def gds_validate_string(self, input_data, node=None, input_name=''): else: return input_data def gds_format_base64(self, input_data, input_name=''): - return base64.b64encode(input_data) + return base64.b64encode(input_data).decode('ascii') def gds_validate_base64(self, input_data, node=None, input_name=''): return input_data def gds_format_integer(self, input_data, input_name=''): - return '%d' % input_data + return '%d' % int(input_data) def gds_parse_integer(self, input_data, node=None, input_name=''): try: ival = int(input_data) @@ -211,6 +241,8 @@ def gds_validate_integer(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires integer value') return value def gds_format_integer_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_integer_list( self, input_data, node=None, input_name=''): @@ -219,10 +251,10 @@ def gds_validate_integer_list( try: int(value) except (TypeError, ValueError): - raise_parse_error(node, 'Requires sequence of integer valuess') + raise_parse_error(node, 'Requires sequence of integer values') return values def gds_format_float(self, input_data, input_name=''): - return ('%.15f' % input_data).rstrip('0') + return ('%.15f' % float(input_data)).rstrip('0') def gds_parse_float(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -236,6 +268,8 @@ def gds_validate_float(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires float value') return value def gds_format_float_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_float_list( self, input_data, node=None, input_name=''): @@ -247,7 +281,12 @@ def gds_validate_float_list( raise_parse_error(node, 'Requires sequence of float values') return values def gds_format_decimal(self, input_data, input_name=''): - return ('%s' % input_data).rstrip('0') + return_value = '%s' % input_data + if '.' in return_value: + return_value = return_value.rstrip('0') + if return_value.endswith('.'): + return_value = return_value.rstrip('.') + return return_value def gds_parse_decimal(self, input_data, node=None, input_name=''): try: decimal_value = decimal_.Decimal(input_data) @@ -261,7 +300,9 @@ def gds_validate_decimal(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires decimal value') return value def gds_format_decimal_list(self, input_data, input_name=''): - return '%s' % ' '.join(input_data) + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] + return ' '.join([self.gds_format_decimal(item) for item in input_data]) def gds_validate_decimal_list( self, input_data, node=None, input_name=''): values = input_data.split() @@ -272,7 +313,7 @@ def gds_validate_decimal_list( raise_parse_error(node, 'Requires sequence of decimal values') return values def gds_format_double(self, input_data, input_name=''): - return '%e' % input_data + return '%s' % input_data def gds_parse_double(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -286,6 +327,8 @@ def gds_validate_double(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires double or float value') return value def gds_format_double_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_double_list( self, input_data, node=None, input_name=''): @@ -315,11 +358,14 @@ def gds_validate_boolean(self, input_data, node=None, input_name=''): '(one of True, 1, False, 0)') return input_data def gds_format_boolean_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_boolean_list( self, input_data, node=None, input_name=''): values = input_data.split() for value in values: + value = self.gds_parse_boolean(value, node, input_name) if value not in (True, 1, False, 0, ): raise_parse_error( node, @@ -766,7 +812,10 @@ def find_attr_value_(attr_name, node): value = attrs.get(attr_name) elif len(attr_parts) == 2: prefix, name = attr_parts - namespace = node.nsmap.get(prefix) + if prefix == 'xml': + namespace = 'http://www.w3.org/XML/1998/namespace' + else: + namespace = node.nsmap.get(prefix) if namespace is not None: value = attrs.get('{%s}%s' % (namespace, name, )) return value @@ -847,7 +896,7 @@ def exportSimple(self, outfile, level, name): self.name, base64.b64encode(self.value), self.name)) - def to_etree(self, element): + def to_etree(self, element, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.category == MixedContainer.CategoryText: # Prevent exporting empty content as empty lines. if self.value.strip(): @@ -867,7 +916,7 @@ def to_etree(self, element): subelement.text = self.to_etree_simple() else: # category == MixedContainer.CategoryComplex self.value.to_etree(element) - def to_etree_simple(self): + def to_etree_simple(self, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.content_type == MixedContainer.TypeString: text = self.value elif (self.content_type == MixedContainer.TypeInteger or @@ -956,11 +1005,11 @@ def __init__(self, Request=None, QueryRequest=None, EstimateRequest=None, gds_co self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Request = Request - self.Request_nsprefix_ = None + self.Request_nsprefix_ = "lc" self.QueryRequest = QueryRequest - self.QueryRequest_nsprefix_ = None + self.QueryRequest_nsprefix_ = "lc" self.EstimateRequest = EstimateRequest - self.EstimateRequest_nsprefix_ = None + self.EstimateRequest_nsprefix_ = "lc" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -988,7 +1037,7 @@ def get_EstimateRequest(self): return self.EstimateRequest def set_EstimateRequest(self, EstimateRequest): self.EstimateRequest = EstimateRequest - def hasContent_(self): + def _hasContent(self): if ( self.Request is not None or self.QueryRequest is not None or @@ -1012,17 +1061,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='L showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LandedCostRequest') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LandedCostRequest') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LandedCostRequest', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LandedCostRequest', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LandedCostRequest'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LandedCostRequest'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LandedCostRequest', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LandedCostRequest', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1042,14 +1091,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Request': obj_ = RequestTransportType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1079,11 +1128,11 @@ def __init__(self, Response=None, QueryResponse=None, EstimateResponse=None, gds self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Response = Response - self.Response_nsprefix_ = None + self.Response_nsprefix_ = "lc" self.QueryResponse = QueryResponse - self.QueryResponse_nsprefix_ = None + self.QueryResponse_nsprefix_ = "lc" self.EstimateResponse = EstimateResponse - self.EstimateResponse_nsprefix_ = None + self.EstimateResponse_nsprefix_ = "lc" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1111,7 +1160,7 @@ def get_EstimateResponse(self): return self.EstimateResponse def set_EstimateResponse(self, EstimateResponse): self.EstimateResponse = EstimateResponse - def hasContent_(self): + def _hasContent(self): if ( self.Response is not None or self.QueryResponse is not None or @@ -1135,17 +1184,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='L showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LandedCostResponse') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LandedCostResponse') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LandedCostResponse', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LandedCostResponse', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LandedCostResponse'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LandedCostResponse'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LandedCostResponse', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LandedCostResponse', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1165,14 +1214,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Response': obj_ = ResponseTransportType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1237,7 +1286,7 @@ def insert_RequestOption_at(self, index, value): self.RequestOption.insert(index, value) def replace_RequestOption_at(self, index, value): self.RequestOption[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.RequestAction is not None or self.RequestOption @@ -1260,17 +1309,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestTransportType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestTransportType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestTransportType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestTransportType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RequestTransportType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RequestTransportType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RequestTransportType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RequestTransportType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1289,14 +1338,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'RequestAction': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'RequestAction') @@ -1323,7 +1372,7 @@ def __init__(self, Shipment=None, TransactionReferenceID=None, SuppressQuestionI self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Shipment = Shipment - self.Shipment_nsprefix_ = None + self.Shipment_nsprefix_ = "lc" if TransactionReferenceID is None: self.TransactionReferenceID = [] else: @@ -1364,7 +1413,7 @@ def get_SuppressQuestionIndicator(self): return self.SuppressQuestionIndicator def set_SuppressQuestionIndicator(self, SuppressQuestionIndicator): self.SuppressQuestionIndicator = SuppressQuestionIndicator - def hasContent_(self): + def _hasContent(self): if ( self.Shipment is not None or self.TransactionReferenceID or @@ -1388,17 +1437,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='Q showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='QueryRequestType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='QueryRequestType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='QueryRequestType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='QueryRequestType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='QueryRequestType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='QueryRequestType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='QueryRequestType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='QueryRequestType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1420,14 +1469,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Shipment': obj_ = ShipmentType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1459,7 +1508,7 @@ def __init__(self, Shipment=None, TransactionDigest=None, gds_collector_=None, * self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Shipment = Shipment - self.Shipment_nsprefix_ = None + self.Shipment_nsprefix_ = "lc" self.TransactionDigest = TransactionDigest self.TransactionDigest_nsprefix_ = None def factory(*args_, **kwargs_): @@ -1485,7 +1534,7 @@ def get_TransactionDigest(self): return self.TransactionDigest def set_TransactionDigest(self, TransactionDigest): self.TransactionDigest = TransactionDigest - def hasContent_(self): + def _hasContent(self): if ( self.Shipment is not None or self.TransactionDigest is not None @@ -1508,17 +1557,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='E showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='EstimateRequestType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='EstimateRequestType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='EstimateRequestType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='EstimateRequestType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='EstimateRequestType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='EstimateRequestType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='EstimateRequestType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='EstimateRequestType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1536,14 +1585,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Shipment': obj_ = ShipmentAnswerType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1598,7 +1647,7 @@ def insert_Warning_at(self, index, value): self.Warning.insert(index, value) def replace_Warning_at(self, index, value): self.Warning[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Warning ): @@ -1620,17 +1669,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseTransportType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseTransportType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseTransportType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseTransportType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ResponseTransportType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ResponseTransportType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ResponseTransportType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ResponseTransportType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1645,14 +1694,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Warning': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Warning') @@ -1673,7 +1722,7 @@ def __init__(self, Shipment=None, TransactionDigest=None, gds_collector_=None, * self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Shipment = Shipment - self.Shipment_nsprefix_ = None + self.Shipment_nsprefix_ = "lc" self.TransactionDigest = TransactionDigest self.TransactionDigest_nsprefix_ = None def factory(*args_, **kwargs_): @@ -1699,7 +1748,7 @@ def get_TransactionDigest(self): return self.TransactionDigest def set_TransactionDigest(self, TransactionDigest): self.TransactionDigest = TransactionDigest - def hasContent_(self): + def _hasContent(self): if ( self.Shipment is not None or self.TransactionDigest is not None @@ -1722,17 +1771,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='Q showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='QueryResponseType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='QueryResponseType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='QueryResponseType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='QueryResponseType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='QueryResponseType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='QueryResponseType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='QueryResponseType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='QueryResponseType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1750,14 +1799,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Shipment': obj_ = ShipmentResultType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1783,9 +1832,9 @@ def __init__(self, TransactionInfo=None, ShipmentEstimate=None, SuppressQuestion self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.TransactionInfo = TransactionInfo - self.TransactionInfo_nsprefix_ = None + self.TransactionInfo_nsprefix_ = "lc" self.ShipmentEstimate = ShipmentEstimate - self.ShipmentEstimate_nsprefix_ = None + self.ShipmentEstimate_nsprefix_ = "lc" self.SuppressQuestionIndicator = SuppressQuestionIndicator self.SuppressQuestionIndicator_nsprefix_ = None def factory(*args_, **kwargs_): @@ -1815,7 +1864,7 @@ def get_SuppressQuestionIndicator(self): return self.SuppressQuestionIndicator def set_SuppressQuestionIndicator(self, SuppressQuestionIndicator): self.SuppressQuestionIndicator = SuppressQuestionIndicator - def hasContent_(self): + def _hasContent(self): if ( self.TransactionInfo is not None or self.ShipmentEstimate is not None or @@ -1839,17 +1888,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='E showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='EstimateResponseType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='EstimateResponseType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='EstimateResponseType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='EstimateResponseType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='EstimateResponseType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='EstimateResponseType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='EstimateResponseType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='EstimateResponseType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1870,14 +1919,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'TransactionInfo': obj_ = TransactionInfoType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1918,14 +1967,14 @@ def __init__(self, OriginCountryCode=None, OriginStateProvinceCode=None, Destina self.TransportationMode = TransportationMode self.TransportationMode_nsprefix_ = None self.FreightCharges = FreightCharges - self.FreightCharges_nsprefix_ = None + self.FreightCharges_nsprefix_ = "lc" self.AdditionalInsurance = AdditionalInsurance - self.AdditionalInsurance_nsprefix_ = None + self.AdditionalInsurance_nsprefix_ = "lc" if Product is None: self.Product = [] else: self.Product = Product - self.Product_nsprefix_ = None + self.Product_nsprefix_ = "lc" self.ResultCurrencyCode = ResultCurrencyCode self.ResultCurrencyCode_nsprefix_ = None self.TariffCodeAlert = TariffCodeAlert @@ -1991,7 +2040,7 @@ def get_TariffCodeAlert(self): return self.TariffCodeAlert def set_TariffCodeAlert(self, TariffCodeAlert): self.TariffCodeAlert = TariffCodeAlert - def hasContent_(self): + def _hasContent(self): if ( self.OriginCountryCode is not None or self.OriginStateProvinceCode is not None or @@ -2022,17 +2071,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2080,14 +2129,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'OriginCountryCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'OriginCountryCode') @@ -2162,12 +2211,12 @@ def __init__(self, Product=None, Question=None, gds_collector_=None, **kwargs_): self.Product = [] else: self.Product = Product - self.Product_nsprefix_ = None + self.Product_nsprefix_ = "lc" if Question is None: self.Question = [] else: self.Question = Question - self.Question_nsprefix_ = None + self.Question_nsprefix_ = "lc" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -2203,7 +2252,7 @@ def insert_Question_at(self, index, value): self.Question.insert(index, value) def replace_Question_at(self, index, value): self.Question[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Product or self.Question @@ -2226,17 +2275,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentResultType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentResultType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentResultType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentResultType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentResultType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentResultType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentResultType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentResultType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2253,14 +2302,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Product': obj_ = ProductResultType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -2288,12 +2337,12 @@ def __init__(self, Product=None, Question=None, gds_collector_=None, **kwargs_): self.Product = [] else: self.Product = Product - self.Product_nsprefix_ = None + self.Product_nsprefix_ = "lc" if Question is None: self.Question = [] else: self.Question = Question - self.Question_nsprefix_ = None + self.Question_nsprefix_ = "lc" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -2329,7 +2378,7 @@ def insert_Question_at(self, index, value): self.Question.insert(index, value) def replace_Question_at(self, index, value): self.Question[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Product or self.Question @@ -2352,17 +2401,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentAnswerType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentAnswerType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentAnswerType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentAnswerType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentAnswerType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentAnswerType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentAnswerType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentAnswerType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2379,14 +2428,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Product': obj_ = ProductAnswerType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -2413,9 +2462,9 @@ def __init__(self, CurrencyCode=None, ShipmentCharges=None, ProductsCharges=None self.CurrencyCode = CurrencyCode self.CurrencyCode_nsprefix_ = None self.ShipmentCharges = ShipmentCharges - self.ShipmentCharges_nsprefix_ = None + self.ShipmentCharges_nsprefix_ = "lc" self.ProductsCharges = ProductsCharges - self.ProductsCharges_nsprefix_ = None + self.ProductsCharges_nsprefix_ = "lc" self.TotalLandedCost = TotalLandedCost self.TotalLandedCost_nsprefix_ = None def factory(*args_, **kwargs_): @@ -2449,7 +2498,7 @@ def get_TotalLandedCost(self): return self.TotalLandedCost def set_TotalLandedCost(self, TotalLandedCost): self.TotalLandedCost = TotalLandedCost - def hasContent_(self): + def _hasContent(self): if ( self.CurrencyCode is not None or self.ShipmentCharges is not None or @@ -2474,17 +2523,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentEstimateType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentEstimateType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentEstimateType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentEstimateType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentEstimateType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentEstimateType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentEstimateType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentEstimateType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2509,14 +2558,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CurrencyCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CurrencyCode') @@ -2585,7 +2634,7 @@ def get_TransactionCharge(self): return self.TransactionCharge def set_TransactionCharge(self, TransactionCharge): self.TransactionCharge = TransactionCharge - def hasContent_(self): + def _hasContent(self): if ( self.Date is not None or self.Time is not None or @@ -2609,17 +2658,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='T showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionInfoType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionInfoType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionInfoType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionInfoType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TransactionInfoType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TransactionInfoType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TransactionInfoType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TransactionInfoType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2641,14 +2690,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Date': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Date') @@ -2686,13 +2735,13 @@ def __init__(self, ProductName=None, ProductDescription=None, ProductCountryCode self.ProductCountryCodeOfOrigin = ProductCountryCodeOfOrigin self.ProductCountryCodeOfOrigin_nsprefix_ = None self.TariffInfo = TariffInfo - self.TariffInfo_nsprefix_ = None + self.TariffInfo_nsprefix_ = "lc" self.Quantity = Quantity - self.Quantity_nsprefix_ = None + self.Quantity_nsprefix_ = "lc" self.UnitPrice = UnitPrice - self.UnitPrice_nsprefix_ = None + self.UnitPrice_nsprefix_ = "lc" self.Weight = Weight - self.Weight_nsprefix_ = None + self.Weight_nsprefix_ = "lc" self.TariffCodeAlert = TariffCodeAlert self.TariffCodeAlert_nsprefix_ = None def factory(*args_, **kwargs_): @@ -2742,7 +2791,7 @@ def get_TariffCodeAlert(self): return self.TariffCodeAlert def set_TariffCodeAlert(self, TariffCodeAlert): self.TariffCodeAlert = TariffCodeAlert - def hasContent_(self): + def _hasContent(self): if ( self.ProductName is not None or self.ProductDescription is not None or @@ -2771,17 +2820,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ProductType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ProductType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ProductType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ProductType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ProductType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ProductType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ProductType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ProductType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2820,14 +2869,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ProductName': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ProductName') @@ -2891,7 +2940,7 @@ def __init__(self, TariffCode=None, Question=None, gds_collector_=None, **kwargs self.Question = [] else: self.Question = Question - self.Question_nsprefix_ = None + self.Question_nsprefix_ = "lc" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -2921,7 +2970,7 @@ def insert_Question_at(self, index, value): self.Question.insert(index, value) def replace_Question_at(self, index, value): self.Question[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.TariffCode is not None or self.Question @@ -2944,17 +2993,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ProductResultType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ProductResultType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ProductResultType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ProductResultType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ProductResultType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ProductResultType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ProductResultType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ProductResultType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2972,14 +3021,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'TariffCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'TariffCode') @@ -3010,7 +3059,7 @@ def __init__(self, TariffCode=None, Question=None, gds_collector_=None, **kwargs self.Question = [] else: self.Question = Question - self.Question_nsprefix_ = None + self.Question_nsprefix_ = "lc" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -3040,7 +3089,7 @@ def insert_Question_at(self, index, value): self.Question.insert(index, value) def replace_Question_at(self, index, value): self.Question[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.TariffCode is not None or self.Question @@ -3063,17 +3112,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ProductAnswerType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ProductAnswerType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ProductAnswerType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ProductAnswerType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ProductAnswerType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ProductAnswerType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ProductAnswerType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ProductAnswerType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3091,14 +3140,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'TariffCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'TariffCode') @@ -3127,7 +3176,7 @@ def __init__(self, Product=None, ProductsSubTotal=None, gds_collector_=None, **k self.Product = [] else: self.Product = Product - self.Product_nsprefix_ = None + self.Product_nsprefix_ = "lc" self.ProductsSubTotal = ProductsSubTotal self.ProductsSubTotal_nsprefix_ = None def factory(*args_, **kwargs_): @@ -3159,7 +3208,7 @@ def get_ProductsSubTotal(self): return self.ProductsSubTotal def set_ProductsSubTotal(self, ProductsSubTotal): self.ProductsSubTotal = ProductsSubTotal - def hasContent_(self): + def _hasContent(self): if ( self.Product or self.ProductsSubTotal is not None @@ -3182,17 +3231,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ProductsChargesType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ProductsChargesType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ProductsChargesType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ProductsChargesType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ProductsChargesType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ProductsChargesType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ProductsChargesType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ProductsChargesType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3210,14 +3259,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Product': obj_ = ProductEstimateType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -3245,7 +3294,7 @@ def __init__(self, TariffCode=None, Charges=None, gds_collector_=None, **kwargs_ self.TariffCode = TariffCode self.TariffCode_nsprefix_ = None self.Charges = Charges - self.Charges_nsprefix_ = None + self.Charges_nsprefix_ = "lc" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -3269,7 +3318,7 @@ def get_Charges(self): return self.Charges def set_Charges(self, Charges): self.Charges = Charges - def hasContent_(self): + def _hasContent(self): if ( self.TariffCode is not None or self.Charges is not None @@ -3292,17 +3341,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ProductEstimateType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ProductEstimateType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ProductEstimateType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ProductEstimateType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ProductEstimateType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ProductEstimateType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ProductEstimateType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ProductEstimateType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3320,14 +3369,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'TariffCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'TariffCode') @@ -3391,7 +3440,7 @@ def get_SecondaryDetailID(self): return self.SecondaryDetailID def set_SecondaryDetailID(self, SecondaryDetailID): self.SecondaryDetailID = SecondaryDetailID - def hasContent_(self): + def _hasContent(self): if ( self.TariffCode is not None or self.DetailID is not None or @@ -3416,17 +3465,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='T showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TariffInfoType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TariffInfoType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TariffInfoType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TariffInfoType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TariffInfoType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TariffInfoType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TariffInfoType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TariffInfoType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3453,14 +3502,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'TariffCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'TariffCode') @@ -3525,7 +3574,7 @@ def get_UnitOfMeasure(self): return self.UnitOfMeasure def set_UnitOfMeasure(self, UnitOfMeasure): self.UnitOfMeasure = UnitOfMeasure - def hasContent_(self): + def _hasContent(self): if ( self.Value is not None or self.UnitOfMeasure is not None @@ -3548,17 +3597,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='V showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ValueWithUnitsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ValueWithUnitsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ValueWithUnitsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ValueWithUnitsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ValueWithUnitsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ValueWithUnitsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ValueWithUnitsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ValueWithUnitsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3576,14 +3625,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Value': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Value') @@ -3635,7 +3684,7 @@ def get_CurrencyCode(self): return self.CurrencyCode def set_CurrencyCode(self, CurrencyCode): self.CurrencyCode = CurrencyCode - def hasContent_(self): + def _hasContent(self): if ( self.MonetaryValue is not None or self.CurrencyCode is not None @@ -3658,17 +3707,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ChargesType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ChargesType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ChargesType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ChargesType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ChargesType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ChargesType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ChargesType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ChargesType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3687,14 +3736,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'MonetaryValue': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'MonetaryValue') @@ -3759,7 +3808,7 @@ def get_Options(self): return self.Options def set_Options(self, Options): self.Options = Options - def hasContent_(self): + def _hasContent(self): if ( self.Name is not None or self.Text is not None or @@ -3784,17 +3833,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='Q showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='QuestionType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='QuestionType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='QuestionType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='QuestionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='QuestionType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='QuestionType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='QuestionType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='QuestionType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3820,14 +3869,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Name': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Name') @@ -3891,7 +3940,7 @@ def get_Value(self): return self.Value def set_Value(self, Value): self.Value = Value - def hasContent_(self): + def _hasContent(self): if ( self.Key is not None or self.Value is not None @@ -3914,17 +3963,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='K showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='KeyValuePairType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='KeyValuePairType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='KeyValuePairType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='KeyValuePairType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='KeyValuePairType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='KeyValuePairType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='KeyValuePairType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='KeyValuePairType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3943,14 +3992,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Key': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Key') @@ -4003,7 +4052,7 @@ def get_Answer(self): return self.Answer def set_Answer(self, Answer): self.Answer = Answer - def hasContent_(self): + def _hasContent(self): if ( self.Name is not None or self.Answer is not None @@ -4026,17 +4075,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AnswerType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AnswerType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AnswerType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AnswerType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AnswerType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AnswerType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AnswerType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AnswerType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4055,14 +4104,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Name': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Name') @@ -4133,7 +4182,7 @@ def get_SubTotal(self): return self.SubTotal def set_SubTotal(self, SubTotal): self.SubTotal = SubTotal - def hasContent_(self): + def _hasContent(self): if ( self.Duties is not None or self.TaxesAndFees is not None or @@ -4159,17 +4208,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ProductChargesType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ProductChargesType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ProductChargesType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ProductChargesType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ProductChargesType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ProductChargesType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ProductChargesType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ProductChargesType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4200,14 +4249,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Duties': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Duties') @@ -4290,7 +4339,7 @@ def get_SubTotal(self): return self.SubTotal def set_SubTotal(self, SubTotal): self.SubTotal = SubTotal - def hasContent_(self): + def _hasContent(self): if ( self.TaxesAndFees is not None or self.AdditionalInsuranceCost is not None or @@ -4315,17 +4364,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentChargesType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentChargesType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentChargesType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentChargesType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentChargesType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentChargesType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentChargesType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentChargesType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4352,14 +4401,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'TaxesAndFees': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'TaxesAndFees') @@ -4424,7 +4473,7 @@ def get_CurrencyCode(self): return self.CurrencyCode def set_CurrencyCode(self, CurrencyCode): self.CurrencyCode = CurrencyCode - def hasContent_(self): + def _hasContent(self): if ( self.MonetaryValue is not None or self.CurrencyCode is not None @@ -4447,17 +4496,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='T showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionChargeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionChargeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionChargeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionChargeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TransactionChargeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TransactionChargeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TransactionChargeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TransactionChargeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4476,14 +4525,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'MonetaryValue': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'MonetaryValue') @@ -4536,7 +4585,7 @@ def get_UnitDescription(self): return self.UnitDescription def set_UnitDescription(self, UnitDescription): self.UnitDescription = UnitDescription - def hasContent_(self): + def _hasContent(self): if ( self.UnitCode is not None or self.UnitDescription is not None @@ -4559,17 +4608,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='U showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UnitOfMeasureType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UnitOfMeasureType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UnitOfMeasureType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UnitOfMeasureType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UnitOfMeasureType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UnitOfMeasureType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UnitOfMeasureType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UnitOfMeasureType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4588,14 +4637,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'UnitCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'UnitCode') @@ -4651,7 +4700,7 @@ def insert_Option_at(self, index, value): self.Option.insert(index, value) def replace_Option_at(self, index, value): self.Option[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Option ): @@ -4673,17 +4722,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='O showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='OptionsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='OptionsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='OptionsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='OptionsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='OptionsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='OptionsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='OptionsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='OptionsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4697,14 +4746,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Option': obj_ = KeyValuePairType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -4784,7 +4833,8 @@ def parse(inFileName, silence=False, print_warnings=True): return rootObj -def parseEtree(inFileName, silence=False, print_warnings=True): +def parseEtree(inFileName, silence=False, print_warnings=True, + mapping=None, reverse_mapping=None, nsmap=None): parser = None doc = parsexml_(inFileName, parser) gds_collector = GdsCollector_() @@ -4795,10 +4845,15 @@ def parseEtree(inFileName, silence=False, print_warnings=True): rootClass = LandedCostRequest rootObj = rootClass.factory() rootObj.build(rootNode, gds_collector_=gds_collector) + if mapping is None: + mapping = {} + if reverse_mapping is None: + reverse_mapping = {} + rootElement = rootObj.to_etree( + None, name_=rootTag, mapping_=mapping, + reverse_mapping_=reverse_mapping, nsmap_=nsmap) + reverse_node_mapping = rootObj.gds_reverse_node_mapping(mapping) # Enable Python to collect the space used by the DOM. - mapping = {} - rootElement = rootObj.to_etree(None, name_=rootTag, mapping_=mapping) - reverse_mapping = rootObj.gds_reverse_node_mapping(mapping) if not SaveElementTreeNode: doc = None rootNode = None @@ -4815,7 +4870,7 @@ def parseEtree(inFileName, silence=False, print_warnings=True): len(gds_collector.get_messages()), )) gds_collector.write_messages(sys.stderr) sys.stderr.write(separator) - return rootObj, rootElement, mapping, reverse_mapping + return rootObj, rootElement, mapping, reverse_node_mapping def parseString(inString, silence=False, print_warnings=True): @@ -4899,6 +4954,83 @@ def main(): RenameMappings_ = { } +# +# Mapping of namespaces to types defined in them +# and the file in which each is defined. +# simpleTypes are marked "ST" and complexTypes "CT". +NamespaceToDefMappings_ = {'http://www.ups.com/schema/xpci/1.0/lc': [('RequestTransportType', + './schemas/LandedCostWebServiceSchema.xsd', + 'CT'), + ('QueryRequestType', + './schemas/LandedCostWebServiceSchema.xsd', + 'CT'), + ('EstimateRequestType', + './schemas/LandedCostWebServiceSchema.xsd', + 'CT'), + ('ResponseTransportType', + './schemas/LandedCostWebServiceSchema.xsd', + 'CT'), + ('QueryResponseType', + './schemas/LandedCostWebServiceSchema.xsd', + 'CT'), + ('EstimateResponseType', + './schemas/LandedCostWebServiceSchema.xsd', + 'CT'), + ('ShipmentType', + './schemas/LandedCostWebServiceSchema.xsd', + 'CT'), + ('ShipmentResultType', + './schemas/LandedCostWebServiceSchema.xsd', + 'CT'), + ('ShipmentAnswerType', + './schemas/LandedCostWebServiceSchema.xsd', + 'CT'), + ('ShipmentEstimateType', + './schemas/LandedCostWebServiceSchema.xsd', + 'CT'), + ('TransactionInfoType', + './schemas/LandedCostWebServiceSchema.xsd', + 'CT'), + ('ProductType', + './schemas/LandedCostWebServiceSchema.xsd', + 'CT'), + ('ProductResultType', + './schemas/LandedCostWebServiceSchema.xsd', + 'CT'), + ('ProductAnswerType', + './schemas/LandedCostWebServiceSchema.xsd', + 'CT'), + ('ProductsChargesType', + './schemas/LandedCostWebServiceSchema.xsd', + 'CT'), + ('ProductEstimateType', + './schemas/LandedCostWebServiceSchema.xsd', + 'CT'), + ('TariffInfoType', + './schemas/LandedCostWebServiceSchema.xsd', + 'CT'), + ('ValueWithUnitsType', + './schemas/LandedCostWebServiceSchema.xsd', + 'CT'), + ('ChargesType', + './schemas/LandedCostWebServiceSchema.xsd', + 'CT'), + ('QuestionType', + './schemas/LandedCostWebServiceSchema.xsd', + 'CT'), + ('KeyValuePairType', + './schemas/LandedCostWebServiceSchema.xsd', + 'CT'), + ('AnswerType', + './schemas/LandedCostWebServiceSchema.xsd', + 'CT'), + ('ProductChargesType', + './schemas/LandedCostWebServiceSchema.xsd', + 'CT'), + ('ShipmentChargesType', + './schemas/LandedCostWebServiceSchema.xsd', + 'CT')]} + __all__ = [ "AnswerType", "ChargesType", diff --git a/schemas/ups/ups_lib/lb_recovery.py b/schemas/ups/ups_lib/lb_recovery.py index bf3ca2ae44..0b7baef606 100644 --- a/schemas/ups/ups_lib/lb_recovery.py +++ b/schemas/ups/ups_lib/lb_recovery.py @@ -2,34 +2,35 @@ # -*- coding: utf-8 -*- # -# Generated Sat Mar 7 09:04:16 2020 by generateDS.py version 2.35.15. -# Python 3.8.1 (v3.8.1:1b293b6006, Dec 18 2019, 14:08:53) [Clang 6.0 (clang-600.0.57)] +# Generated Wed Nov 10 10:01:01 2021 by generateDS.py version 2.40.5. +# Python 3.8.6 (v3.8.6:db455296be, Sep 23 2020, 13:31:39) [Clang 6.0 (clang-600.0.57)] # # Command line options: # ('--no-namespace-defs', '') -# ('-o', './python/lb_recovery.py') +# ('-o', './ups_lib/lb_recovery.py') # # Command line arguments: # ./schemas/LBRecovery.xsd # # Command line: -# /Users/danielkobina/Documents/Open/.env/bin/generateDS --no-namespace-defs -o "./python/lb_recovery.py" ./schemas/LBRecovery.xsd +# /Users/danielkobina/Workspace/project/purplship/.venv/purplship/bin/generateDS --no-namespace-defs -o "./ups_lib/lb_recovery.py" ./schemas/LBRecovery.xsd # # Current working directory (os.getcwd()): -# 2020-03 +# ups # +import sys +try: + ModulenotfoundExp_ = ModuleNotFoundError +except NameError: + ModulenotfoundExp_ = ImportError from six.moves import zip_longest import os -import sys import re as re_ import base64 import datetime as datetime_ import decimal as decimal_ -try: - from lxml import etree as etree_ -except ImportError: - from xml.etree import ElementTree as etree_ +from lxml import etree as etree_ Validate_simpletypes_ = True @@ -92,7 +93,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # Additionally, the generatedsnamespaces module can contain a python # dictionary named GenerateDSNamespaceTypePrefixes that associates element # types with the namespace prefixes that are to be added to the -# "xsi:type" attribute value. See the exportAttributes method of +# "xsi:type" attribute value. See the _exportAttributes method of # any generated element type and the generation of "xsi:type" for an # example of the use of this table. # An example table: @@ -107,11 +108,11 @@ def parsexmlstring_(instring, parser=None, **kwargs): try: from generatedsnamespaces import GenerateDSNamespaceDefs as GenerateDSNamespaceDefs_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceDefs_ = {} try: from generatedsnamespaces import GenerateDSNamespaceTypePrefixes as GenerateDSNamespaceTypePrefixes_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceTypePrefixes_ = {} # @@ -122,7 +123,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # try: from generatedscollector import GdsCollector as GdsCollector_ -except ImportError: +except ModulenotfoundExp_ : class GdsCollector_(object): @@ -156,7 +157,7 @@ def write_messages(self, outstream): try: from enum import Enum -except ImportError: +except ModulenotfoundExp_ : Enum = object # @@ -168,9 +169,14 @@ def write_messages(self, outstream): try: from generatedssuper import GeneratedsSuper -except ImportError as exp: +except ModulenotfoundExp_ as exp: + try: + from generatedssupersuper import GeneratedsSuperSuper + except ModulenotfoundExp_ as exp: + class GeneratedsSuperSuper(object): + pass - class GeneratedsSuper(object): + class GeneratedsSuper(GeneratedsSuperSuper): __hash__ = object.__hash__ tzoff_pattern = re_.compile(r'(\+|-)((0\d|1[0-3]):[0-5]\d|14:00)$') class _FixedOffsetTZ(datetime_.tzinfo): @@ -183,6 +189,30 @@ def tzname(self, dt): return self.__name def dst(self, dt): return None + def __str__(self): + settings = { + 'str_pretty_print': True, + 'str_indent_level': 0, + 'str_namespaceprefix': '', + 'str_name': None, + 'str_namespacedefs': '', + } + for n in settings: + if hasattr(self, n): + setattr(settings[n], self[n]) + from io import StringIO + output = StringIO() + self.export( + output, + settings['str_indent_level'], + pretty_print=settings['str_pretty_print'], + namespaceprefix_=settings['str_namespaceprefix'], + name_=settings['str_name'], + namespacedef_=settings['str_namespacedefs'] + ) + strval = output.getvalue() + output.close() + return strval def gds_format_string(self, input_data, input_name=''): return input_data def gds_parse_string(self, input_data, node=None, input_name=''): @@ -193,11 +223,11 @@ def gds_validate_string(self, input_data, node=None, input_name=''): else: return input_data def gds_format_base64(self, input_data, input_name=''): - return base64.b64encode(input_data) + return base64.b64encode(input_data).decode('ascii') def gds_validate_base64(self, input_data, node=None, input_name=''): return input_data def gds_format_integer(self, input_data, input_name=''): - return '%d' % input_data + return '%d' % int(input_data) def gds_parse_integer(self, input_data, node=None, input_name=''): try: ival = int(input_data) @@ -211,6 +241,8 @@ def gds_validate_integer(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires integer value') return value def gds_format_integer_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_integer_list( self, input_data, node=None, input_name=''): @@ -219,10 +251,10 @@ def gds_validate_integer_list( try: int(value) except (TypeError, ValueError): - raise_parse_error(node, 'Requires sequence of integer valuess') + raise_parse_error(node, 'Requires sequence of integer values') return values def gds_format_float(self, input_data, input_name=''): - return ('%.15f' % input_data).rstrip('0') + return ('%.15f' % float(input_data)).rstrip('0') def gds_parse_float(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -236,6 +268,8 @@ def gds_validate_float(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires float value') return value def gds_format_float_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_float_list( self, input_data, node=None, input_name=''): @@ -247,7 +281,12 @@ def gds_validate_float_list( raise_parse_error(node, 'Requires sequence of float values') return values def gds_format_decimal(self, input_data, input_name=''): - return ('%s' % input_data).rstrip('0') + return_value = '%s' % input_data + if '.' in return_value: + return_value = return_value.rstrip('0') + if return_value.endswith('.'): + return_value = return_value.rstrip('.') + return return_value def gds_parse_decimal(self, input_data, node=None, input_name=''): try: decimal_value = decimal_.Decimal(input_data) @@ -261,7 +300,9 @@ def gds_validate_decimal(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires decimal value') return value def gds_format_decimal_list(self, input_data, input_name=''): - return '%s' % ' '.join(input_data) + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] + return ' '.join([self.gds_format_decimal(item) for item in input_data]) def gds_validate_decimal_list( self, input_data, node=None, input_name=''): values = input_data.split() @@ -272,7 +313,7 @@ def gds_validate_decimal_list( raise_parse_error(node, 'Requires sequence of decimal values') return values def gds_format_double(self, input_data, input_name=''): - return '%e' % input_data + return '%s' % input_data def gds_parse_double(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -286,6 +327,8 @@ def gds_validate_double(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires double or float value') return value def gds_format_double_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_double_list( self, input_data, node=None, input_name=''): @@ -315,11 +358,14 @@ def gds_validate_boolean(self, input_data, node=None, input_name=''): '(one of True, 1, False, 0)') return input_data def gds_format_boolean_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_boolean_list( self, input_data, node=None, input_name=''): values = input_data.split() for value in values: + value = self.gds_parse_boolean(value, node, input_name) if value not in (True, 1, False, 0, ): raise_parse_error( node, @@ -766,7 +812,10 @@ def find_attr_value_(attr_name, node): value = attrs.get(attr_name) elif len(attr_parts) == 2: prefix, name = attr_parts - namespace = node.nsmap.get(prefix) + if prefix == 'xml': + namespace = 'http://www.w3.org/XML/1998/namespace' + else: + namespace = node.nsmap.get(prefix) if namespace is not None: value = attrs.get('{%s}%s' % (namespace, name, )) return value @@ -847,7 +896,7 @@ def exportSimple(self, outfile, level, name): self.name, base64.b64encode(self.value), self.name)) - def to_etree(self, element): + def to_etree(self, element, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.category == MixedContainer.CategoryText: # Prevent exporting empty content as empty lines. if self.value.strip(): @@ -867,7 +916,7 @@ def to_etree(self, element): subelement.text = self.to_etree_simple() else: # category == MixedContainer.CategoryComplex self.value.to_etree(element) - def to_etree_simple(self): + def to_etree_simple(self, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.content_type == MixedContainer.TypeString: text = self.value elif (self.content_type == MixedContainer.TypeInteger or @@ -956,21 +1005,21 @@ def __init__(self, Request=None, LabelSpecification=None, Translate=None, LabelD self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Request = Request - self.Request_nsprefix_ = None + self.Request_nsprefix_ = "common" self.LabelSpecification = LabelSpecification - self.LabelSpecification_nsprefix_ = None + self.LabelSpecification_nsprefix_ = "lbrec" self.Translate = Translate - self.Translate_nsprefix_ = None + self.Translate_nsprefix_ = "lbrec" self.LabelDelivery = LabelDelivery - self.LabelDelivery_nsprefix_ = None + self.LabelDelivery_nsprefix_ = "lbrec" self.TrackingNumber = TrackingNumber self.TrackingNumber_nsprefix_ = None self.MailInnovationsTrackingNumber = MailInnovationsTrackingNumber self.MailInnovationsTrackingNumber_nsprefix_ = None self.ReferenceValues = ReferenceValues - self.ReferenceValues_nsprefix_ = None + self.ReferenceValues_nsprefix_ = "lbrec" self.UPSPremiumCareForm = UPSPremiumCareForm - self.UPSPremiumCareForm_nsprefix_ = None + self.UPSPremiumCareForm_nsprefix_ = "lbrec" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1018,7 +1067,7 @@ def get_UPSPremiumCareForm(self): return self.UPSPremiumCareForm def set_UPSPremiumCareForm(self, UPSPremiumCareForm): self.UPSPremiumCareForm = UPSPremiumCareForm - def hasContent_(self): + def _hasContent(self): if ( self.Request is not None or self.LabelSpecification is not None or @@ -1047,17 +1096,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='L showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LabelRecoveryRequest') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LabelRecoveryRequest') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LabelRecoveryRequest', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LabelRecoveryRequest', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LabelRecoveryRequest'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LabelRecoveryRequest'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LabelRecoveryRequest', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LabelRecoveryRequest', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1094,14 +1143,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Request': obj_ = RequestType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1158,7 +1207,7 @@ def __init__(self, ReferenceNumber=None, ShipperNumber=None, gds_collector_=None self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.ReferenceNumber = ReferenceNumber - self.ReferenceNumber_nsprefix_ = None + self.ReferenceNumber_nsprefix_ = "lbrec" self.ShipperNumber = ShipperNumber self.ShipperNumber_nsprefix_ = None def factory(*args_, **kwargs_): @@ -1184,7 +1233,7 @@ def get_ShipperNumber(self): return self.ShipperNumber def set_ShipperNumber(self, ShipperNumber): self.ShipperNumber = ShipperNumber - def hasContent_(self): + def _hasContent(self): if ( self.ReferenceNumber is not None or self.ShipperNumber is not None @@ -1207,17 +1256,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ReferenceValuesType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ReferenceValuesType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ReferenceValuesType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ReferenceValuesType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ReferenceValuesType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ReferenceValuesType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ReferenceValuesType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ReferenceValuesType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1235,14 +1284,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ReferenceNumber': obj_ = ReferenceNumberType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1288,7 +1337,7 @@ def get_Value(self): return self.Value def set_Value(self, Value): self.Value = Value - def hasContent_(self): + def _hasContent(self): if ( self.Value is not None ): @@ -1310,17 +1359,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ReferenceNumberType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ReferenceNumberType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ReferenceNumberType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ReferenceNumberType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ReferenceNumberType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ReferenceNumberType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ReferenceNumberType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ReferenceNumberType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1335,14 +1384,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Value': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Value') @@ -1365,9 +1414,9 @@ def __init__(self, HTTPUserAgent=None, LabelImageFormat=None, LabelStockSize=Non self.HTTPUserAgent = HTTPUserAgent self.HTTPUserAgent_nsprefix_ = None self.LabelImageFormat = LabelImageFormat - self.LabelImageFormat_nsprefix_ = None + self.LabelImageFormat_nsprefix_ = "lbrec" self.LabelStockSize = LabelStockSize - self.LabelStockSize_nsprefix_ = None + self.LabelStockSize_nsprefix_ = "lbrec" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1395,7 +1444,7 @@ def get_LabelStockSize(self): return self.LabelStockSize def set_LabelStockSize(self, LabelStockSize): self.LabelStockSize = LabelStockSize - def hasContent_(self): + def _hasContent(self): if ( self.HTTPUserAgent is not None or self.LabelImageFormat is not None or @@ -1419,17 +1468,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='L showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LabelSpecificationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LabelSpecificationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LabelSpecificationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LabelSpecificationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LabelSpecificationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LabelSpecificationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LabelSpecificationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LabelSpecificationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1450,14 +1499,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'HTTPUserAgent': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'HTTPUserAgent') @@ -1514,7 +1563,7 @@ def get_Width(self): return self.Width def set_Width(self, Width): self.Width = Width - def hasContent_(self): + def _hasContent(self): if ( self.Height is not None or self.Width is not None @@ -1537,17 +1586,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='L showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LabelStockSizeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LabelStockSizeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LabelStockSizeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LabelStockSizeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LabelStockSizeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LabelStockSizeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LabelStockSizeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LabelStockSizeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1566,14 +1615,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Height': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Height') @@ -1620,7 +1669,7 @@ def get_Code(self): return self.Code def set_Code(self, Code): self.Code = Code - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None ): @@ -1642,17 +1691,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='L showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LabelImageFormatType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LabelImageFormatType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LabelImageFormatType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LabelImageFormatType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LabelImageFormatType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LabelImageFormatType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LabelImageFormatType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LabelImageFormatType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1667,14 +1716,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -1727,7 +1776,7 @@ def get_Code(self): return self.Code def set_Code(self, Code): self.Code = Code - def hasContent_(self): + def _hasContent(self): if ( self.LanguageCode is not None or self.DialectCode is not None or @@ -1751,17 +1800,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='T showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TranslateType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TranslateType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TranslateType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TranslateType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TranslateType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TranslateType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TranslateType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TranslateType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1784,14 +1833,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'LanguageCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'LanguageCode') @@ -1844,7 +1893,7 @@ def get_LabelLinkIndicator(self): return self.LabelLinkIndicator def set_LabelLinkIndicator(self, LabelLinkIndicator): self.LabelLinkIndicator = LabelLinkIndicator - def hasContent_(self): + def _hasContent(self): if ( self.LabelLinkIndicator is not None ): @@ -1866,17 +1915,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='L showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LabelDeliveryType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LabelDeliveryType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LabelDeliveryType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LabelDeliveryType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LabelDeliveryType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LabelDeliveryType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LabelDeliveryType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LabelDeliveryType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1891,14 +1940,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'LabelLinkIndicator': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'LabelLinkIndicator') @@ -1919,25 +1968,25 @@ def __init__(self, Response=None, ShipmentIdentificationNumber=None, CODTurnInPa self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Response = Response - self.Response_nsprefix_ = None + self.Response_nsprefix_ = "common" self.ShipmentIdentificationNumber = ShipmentIdentificationNumber self.ShipmentIdentificationNumber_nsprefix_ = None self.CODTurnInPage = CODTurnInPage - self.CODTurnInPage_nsprefix_ = None + self.CODTurnInPage_nsprefix_ = "lbrec" self.Form = Form - self.Form_nsprefix_ = None + self.Form_nsprefix_ = "lbrec" self.HighValueReport = HighValueReport - self.HighValueReport_nsprefix_ = None + self.HighValueReport_nsprefix_ = "lbrec" if LabelResults is None: self.LabelResults = [] else: self.LabelResults = LabelResults - self.LabelResults_nsprefix_ = None + self.LabelResults_nsprefix_ = "lbrec" if TrackingCandidate is None: self.TrackingCandidate = [] else: self.TrackingCandidate = TrackingCandidate - self.TrackingCandidate_nsprefix_ = None + self.TrackingCandidate_nsprefix_ = "lbrec" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1993,7 +2042,7 @@ def insert_TrackingCandidate_at(self, index, value): self.TrackingCandidate.insert(index, value) def replace_TrackingCandidate_at(self, index, value): self.TrackingCandidate[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Response is not None or self.ShipmentIdentificationNumber is not None or @@ -2021,17 +2070,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='L showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LabelRecoveryResponse') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LabelRecoveryResponse') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LabelRecoveryResponse', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LabelRecoveryResponse', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LabelRecoveryResponse'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LabelRecoveryResponse'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LabelRecoveryResponse', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LabelRecoveryResponse', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2064,14 +2113,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Response': obj_ = ResponseType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -2124,15 +2173,15 @@ def __init__(self, TrackingNumber=None, LabelImage=None, Receipt=None, Form=None self.TrackingNumber = TrackingNumber self.TrackingNumber_nsprefix_ = None self.LabelImage = LabelImage - self.LabelImage_nsprefix_ = None + self.LabelImage_nsprefix_ = "lbrec" self.Receipt = Receipt - self.Receipt_nsprefix_ = None + self.Receipt_nsprefix_ = "lbrec" self.Form = Form - self.Form_nsprefix_ = None + self.Form_nsprefix_ = "lbrec" self.MailInnovationsTrackingNumber = MailInnovationsTrackingNumber self.MailInnovationsTrackingNumber_nsprefix_ = None self.MailInnovationsLabelImage = MailInnovationsLabelImage - self.MailInnovationsLabelImage_nsprefix_ = None + self.MailInnovationsLabelImage_nsprefix_ = "lbrec" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -2172,7 +2221,7 @@ def get_MailInnovationsLabelImage(self): return self.MailInnovationsLabelImage def set_MailInnovationsLabelImage(self, MailInnovationsLabelImage): self.MailInnovationsLabelImage = MailInnovationsLabelImage - def hasContent_(self): + def _hasContent(self): if ( self.TrackingNumber is not None or self.LabelImage is not None or @@ -2199,17 +2248,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='L showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LabelResultsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LabelResultsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LabelResultsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LabelResultsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LabelResultsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LabelResultsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LabelResultsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LabelResultsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2240,14 +2289,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'TrackingNumber': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'TrackingNumber') @@ -2294,7 +2343,7 @@ def __init__(self, LabelImageFormat=None, GraphicImage=None, HTMLImage=None, PDF self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.LabelImageFormat = LabelImageFormat - self.LabelImageFormat_nsprefix_ = None + self.LabelImageFormat_nsprefix_ = "lbrec" self.GraphicImage = GraphicImage self.GraphicImage_nsprefix_ = None self.HTMLImage = HTMLImage @@ -2344,7 +2393,7 @@ def get_URL(self): return self.URL def set_URL(self, URL): self.URL = URL - def hasContent_(self): + def _hasContent(self): if ( self.LabelImageFormat is not None or self.GraphicImage is not None or @@ -2371,17 +2420,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='L showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LabelImageType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LabelImageType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LabelImageType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LabelImageType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LabelImageType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LabelImageType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LabelImageType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LabelImageType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2415,14 +2464,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'LabelImageFormat': obj_ = LabelImageFormatType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -2474,7 +2523,7 @@ def __init__(self, HTMLImage=None, Image=None, URL=None, gds_collector_=None, ** self.HTMLImage = HTMLImage self.HTMLImage_nsprefix_ = None self.Image = Image - self.Image_nsprefix_ = None + self.Image_nsprefix_ = "lbrec" self.URL = URL self.URL_nsprefix_ = None def factory(*args_, **kwargs_): @@ -2504,7 +2553,7 @@ def get_URL(self): return self.URL def set_URL(self, URL): self.URL = URL - def hasContent_(self): + def _hasContent(self): if ( self.HTMLImage is not None or self.Image is not None or @@ -2528,17 +2577,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ReceiptType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ReceiptType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ReceiptType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ReceiptType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ReceiptType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ReceiptType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ReceiptType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ReceiptType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2560,14 +2609,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'HTMLImage': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'HTMLImage') @@ -2599,7 +2648,7 @@ def __init__(self, ImageFormat=None, GraphicImage=None, gds_collector_=None, **k self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.ImageFormat = ImageFormat - self.ImageFormat_nsprefix_ = None + self.ImageFormat_nsprefix_ = "lbrec" self.GraphicImage = GraphicImage self.GraphicImage_nsprefix_ = None def factory(*args_, **kwargs_): @@ -2625,7 +2674,7 @@ def get_GraphicImage(self): return self.GraphicImage def set_GraphicImage(self, GraphicImage): self.GraphicImage = GraphicImage - def hasContent_(self): + def _hasContent(self): if ( self.ImageFormat is not None or self.GraphicImage is not None @@ -2648,17 +2697,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='I showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ImageType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ImageType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ImageType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ImageType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ImageType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ImageType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ImageType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ImageType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2676,14 +2725,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ImageFormat': obj_ = LabelImageFormatType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -2715,7 +2764,7 @@ def __init__(self, TrackingNumber=None, DestinationPostalCode=None, DestinationC self.DestinationCountryCode = DestinationCountryCode self.DestinationCountryCode_nsprefix_ = None self.PickupDateRange = PickupDateRange - self.PickupDateRange_nsprefix_ = None + self.PickupDateRange_nsprefix_ = "lbrec" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -2747,7 +2796,7 @@ def get_PickupDateRange(self): return self.PickupDateRange def set_PickupDateRange(self, PickupDateRange): self.PickupDateRange = PickupDateRange - def hasContent_(self): + def _hasContent(self): if ( self.TrackingNumber is not None or self.DestinationPostalCode is not None or @@ -2772,17 +2821,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='T showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TrackingCandidateType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TrackingCandidateType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TrackingCandidateType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TrackingCandidateType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TrackingCandidateType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TrackingCandidateType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TrackingCandidateType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TrackingCandidateType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2808,14 +2857,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'TrackingNumber': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'TrackingNumber') @@ -2879,7 +2928,7 @@ def get_EndDate(self): return self.EndDate def set_EndDate(self, EndDate): self.EndDate = EndDate - def hasContent_(self): + def _hasContent(self): if ( self.BeginDate is not None or self.EndDate is not None @@ -2902,17 +2951,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupDateRangeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupDateRangeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupDateRangeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupDateRangeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupDateRangeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupDateRangeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupDateRangeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupDateRangeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2931,14 +2980,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'BeginDate': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'BeginDate') @@ -2965,7 +3014,7 @@ def __init__(self, Image=None, gds_collector_=None, **kwargs_): self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Image = Image - self.Image_nsprefix_ = None + self.Image_nsprefix_ = "lbrec" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -2985,7 +3034,7 @@ def get_Image(self): return self.Image def set_Image(self, Image): self.Image = Image - def hasContent_(self): + def _hasContent(self): if ( self.Image is not None ): @@ -3007,17 +3056,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseImageType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseImageType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseImageType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseImageType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ResponseImageType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ResponseImageType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ResponseImageType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ResponseImageType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3031,14 +3080,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Image': obj_ = ResponseImageDetailType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -3058,7 +3107,7 @@ def __init__(self, ImageFormat=None, GraphicImage=None, gds_collector_=None, **k self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.ImageFormat = ImageFormat - self.ImageFormat_nsprefix_ = None + self.ImageFormat_nsprefix_ = "lbrec" self.GraphicImage = GraphicImage self.GraphicImage_nsprefix_ = None def factory(*args_, **kwargs_): @@ -3084,7 +3133,7 @@ def get_GraphicImage(self): return self.GraphicImage def set_GraphicImage(self, GraphicImage): self.GraphicImage = GraphicImage - def hasContent_(self): + def _hasContent(self): if ( self.ImageFormat is not None or self.GraphicImage is not None @@ -3107,17 +3156,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseImageDetailType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseImageDetailType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseImageDetailType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseImageDetailType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ResponseImageDetailType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ResponseImageDetailType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ResponseImageDetailType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ResponseImageDetailType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3135,14 +3184,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ImageFormat': obj_ = ImageFormatCodeType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -3194,7 +3243,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -3217,17 +3266,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='I showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ImageFormatCodeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ImageFormatCodeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ImageFormatCodeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ImageFormatCodeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ImageFormatCodeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ImageFormatCodeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ImageFormatCodeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ImageFormatCodeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3246,14 +3295,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -3280,7 +3329,7 @@ def __init__(self, Image=None, gds_collector_=None, **kwargs_): self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Image = Image - self.Image_nsprefix_ = None + self.Image_nsprefix_ = "lbrec" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -3300,7 +3349,7 @@ def get_Image(self): return self.Image def set_Image(self, Image): self.Image = Image - def hasContent_(self): + def _hasContent(self): if ( self.Image is not None ): @@ -3322,17 +3371,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='F showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FormType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FormType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FormType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FormType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FormType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FormType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FormType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FormType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3346,14 +3395,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Image': obj_ = FormImageType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -3373,7 +3422,7 @@ def __init__(self, ImageFormat=None, GraphicImage=None, gds_collector_=None, **k self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.ImageFormat = ImageFormat - self.ImageFormat_nsprefix_ = None + self.ImageFormat_nsprefix_ = "lbrec" self.GraphicImage = GraphicImage self.GraphicImage_nsprefix_ = None def factory(*args_, **kwargs_): @@ -3399,7 +3448,7 @@ def get_GraphicImage(self): return self.GraphicImage def set_GraphicImage(self, GraphicImage): self.GraphicImage = GraphicImage - def hasContent_(self): + def _hasContent(self): if ( self.ImageFormat is not None or self.GraphicImage is not None @@ -3422,17 +3471,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='F showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FormImageType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FormImageType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FormImageType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FormImageType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FormImageType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FormImageType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FormImageType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FormImageType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3450,14 +3499,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ImageFormat': obj_ = ImageFormatCodeType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -3483,7 +3532,7 @@ def __init__(self, Image=None, gds_collector_=None, **kwargs_): self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Image = Image - self.Image_nsprefix_ = None + self.Image_nsprefix_ = "lbrec" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -3503,7 +3552,7 @@ def get_Image(self): return self.Image def set_Image(self, Image): self.Image = Image - def hasContent_(self): + def _hasContent(self): if ( self.Image is not None ): @@ -3525,17 +3574,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='H showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HighValueReportType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HighValueReportType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HighValueReportType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HighValueReportType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HighValueReportType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HighValueReportType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HighValueReportType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HighValueReportType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3549,14 +3598,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Image': obj_ = HVRImageType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -3576,7 +3625,7 @@ def __init__(self, ImageFormat=None, GraphicImage=None, gds_collector_=None, **k self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.ImageFormat = ImageFormat - self.ImageFormat_nsprefix_ = None + self.ImageFormat_nsprefix_ = "lbrec" self.GraphicImage = GraphicImage self.GraphicImage_nsprefix_ = None def factory(*args_, **kwargs_): @@ -3602,7 +3651,7 @@ def get_GraphicImage(self): return self.GraphicImage def set_GraphicImage(self, GraphicImage): self.GraphicImage = GraphicImage - def hasContent_(self): + def _hasContent(self): if ( self.ImageFormat is not None or self.GraphicImage is not None @@ -3625,17 +3674,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='H showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HVRImageType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HVRImageType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HVRImageType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HVRImageType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HVRImageType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HVRImageType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HVRImageType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HVRImageType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3653,14 +3702,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ImageFormat': obj_ = ImageFormatCodeType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -3712,7 +3761,7 @@ def get_PrintType(self): return self.PrintType def set_PrintType(self, PrintType): self.PrintType = PrintType - def hasContent_(self): + def _hasContent(self): if ( self.PageSize is not None or self.PrintType is not None @@ -3735,17 +3784,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='L showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LRUPSPremiumCareFormType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LRUPSPremiumCareFormType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LRUPSPremiumCareFormType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LRUPSPremiumCareFormType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LRUPSPremiumCareFormType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LRUPSPremiumCareFormType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LRUPSPremiumCareFormType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LRUPSPremiumCareFormType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3764,14 +3813,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PageSize': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'PageSize') @@ -3827,7 +3876,7 @@ def insert_Property_at(self, index, value): self.Property.insert(index, value) def replace_Property_at(self, index, value): self.Property[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Property ): @@ -3849,17 +3898,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ClientInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ClientInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ClientInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ClientInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ClientInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ClientInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ClientInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ClientInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3873,14 +3922,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Property': obj_ = PropertyType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -3907,7 +3956,7 @@ def __init__(self, RequestOption=None, SubVersion=None, TransactionReference=Non self.SubVersion = SubVersion self.SubVersion_nsprefix_ = None self.TransactionReference = TransactionReference - self.TransactionReference_nsprefix_ = None + self.TransactionReference_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -3941,7 +3990,7 @@ def get_TransactionReference(self): return self.TransactionReference def set_TransactionReference(self, TransactionReference): self.TransactionReference = TransactionReference - def hasContent_(self): + def _hasContent(self): if ( self.RequestOption or self.SubVersion is not None or @@ -3965,17 +4014,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='RequestType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='RequestType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='RequestType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='RequestType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3997,14 +4046,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'RequestOption': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'RequestOption') @@ -4062,7 +4111,7 @@ def get_TransactionIdentifier(self): return self.TransactionIdentifier def set_TransactionIdentifier(self, TransactionIdentifier): self.TransactionIdentifier = TransactionIdentifier - def hasContent_(self): + def _hasContent(self): if ( self.CustomerContext is not None or self.TransactionIdentifier is not None @@ -4085,17 +4134,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionReferenceType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionReferenceType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionReferenceType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionReferenceType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='TransactionReferenceType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='TransactionReferenceType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='TransactionReferenceType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='TransactionReferenceType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4114,14 +4163,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CustomerContext': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CustomerContext') @@ -4148,19 +4197,19 @@ def __init__(self, ResponseStatus=None, Alert=None, AlertDetail=None, Transactio self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.ResponseStatus = ResponseStatus - self.ResponseStatus_nsprefix_ = None + self.ResponseStatus_nsprefix_ = "common" if Alert is None: self.Alert = [] else: self.Alert = Alert - self.Alert_nsprefix_ = None + self.Alert_nsprefix_ = "common" if AlertDetail is None: self.AlertDetail = [] else: self.AlertDetail = AlertDetail - self.AlertDetail_nsprefix_ = None + self.AlertDetail_nsprefix_ = "common" self.TransactionReference = TransactionReference - self.TransactionReference_nsprefix_ = None + self.TransactionReference_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -4204,7 +4253,7 @@ def get_TransactionReference(self): return self.TransactionReference def set_TransactionReference(self, TransactionReference): self.TransactionReference = TransactionReference - def hasContent_(self): + def _hasContent(self): if ( self.ResponseStatus is not None or self.Alert or @@ -4229,17 +4278,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ResponseType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ResponseType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ResponseType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ResponseType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4262,14 +4311,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ResponseStatus': obj_ = CodeDescriptionType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -4330,7 +4379,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -4353,17 +4402,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeDescriptionType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeDescriptionType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeDescriptionType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeDescriptionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='CodeDescriptionType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='CodeDescriptionType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='CodeDescriptionType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='CodeDescriptionType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4382,14 +4431,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -4420,7 +4469,7 @@ def __init__(self, Code=None, Description=None, ElementLevelInformation=None, gd self.Description = Description self.Description_nsprefix_ = None self.ElementLevelInformation = ElementLevelInformation - self.ElementLevelInformation_nsprefix_ = None + self.ElementLevelInformation_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -4448,7 +4497,7 @@ def get_ElementLevelInformation(self): return self.ElementLevelInformation def set_ElementLevelInformation(self, ElementLevelInformation): self.ElementLevelInformation = ElementLevelInformation - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None or @@ -4472,17 +4521,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DetailType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DetailType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DetailType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DetailType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='DetailType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='DetailType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='DetailType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='DetailType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4504,14 +4553,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -4548,7 +4597,7 @@ def __init__(self, Level=None, ElementIdentifier=None, gds_collector_=None, **kw self.ElementIdentifier = [] else: self.ElementIdentifier = ElementIdentifier - self.ElementIdentifier_nsprefix_ = None + self.ElementIdentifier_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -4578,7 +4627,7 @@ def insert_ElementIdentifier_at(self, index, value): self.ElementIdentifier.insert(index, value) def replace_ElementIdentifier_at(self, index, value): self.ElementIdentifier[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Level is not None or self.ElementIdentifier @@ -4601,17 +4650,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementLevelInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementLevelInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementLevelInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementLevelInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementLevelInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementLevelInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementLevelInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementLevelInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4629,14 +4678,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Level': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Level') @@ -4688,7 +4737,7 @@ def get_Value(self): return self.Value def set_Value(self, Value): self.Value = Value - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Value is not None @@ -4711,17 +4760,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementIdentifierType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementIdentifierType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementIdentifierType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementIdentifierType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementIdentifierType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementIdentifierType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementIdentifierType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementIdentifierType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4740,14 +4789,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -4797,7 +4846,7 @@ def set_Key(self, Key): self.Key = Key def get_valueOf_(self): return self.valueOf_ def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_ - def hasContent_(self): + def _hasContent(self): if ( (1 if type(self.valueOf_) in [int,float] else self.valueOf_) ): @@ -4819,19 +4868,19 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PropertyType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PropertyType') + if self._hasContent(): outfile.write('>') outfile.write(self.convert_unicode(self.valueOf_)) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PropertyType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PropertyType', pretty_print=pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PropertyType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PropertyType'): if self.Key is not None and 'Key' not in already_processed: already_processed.add('Key') outfile.write(' Key=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.Key), input_name='Key')), )) - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PropertyType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PropertyType', fromsubclass_=False, pretty_print=True): pass def build(self, node, gds_collector_=None): self.gds_collector_ = gds_collector_ @@ -4839,18 +4888,18 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) self.valueOf_ = get_all_text_(node) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('Key', node) if value is not None and 'Key' not in already_processed: already_processed.add('Key') self.Key = value - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): pass # end class PropertyType @@ -4929,7 +4978,8 @@ def parse(inFileName, silence=False, print_warnings=True): return rootObj -def parseEtree(inFileName, silence=False, print_warnings=True): +def parseEtree(inFileName, silence=False, print_warnings=True, + mapping=None, reverse_mapping=None, nsmap=None): parser = None doc = parsexml_(inFileName, parser) gds_collector = GdsCollector_() @@ -4940,10 +4990,15 @@ def parseEtree(inFileName, silence=False, print_warnings=True): rootClass = LabelRecoveryRequest rootObj = rootClass.factory() rootObj.build(rootNode, gds_collector_=gds_collector) + if mapping is None: + mapping = {} + if reverse_mapping is None: + reverse_mapping = {} + rootElement = rootObj.to_etree( + None, name_=rootTag, mapping_=mapping, + reverse_mapping_=reverse_mapping, nsmap_=nsmap) + reverse_node_mapping = rootObj.gds_reverse_node_mapping(mapping) # Enable Python to collect the space used by the DOM. - mapping = {} - rootElement = rootObj.to_etree(None, name_=rootTag, mapping_=mapping) - reverse_mapping = rootObj.gds_reverse_node_mapping(mapping) if not SaveElementTreeNode: doc = None rootNode = None @@ -4960,7 +5015,7 @@ def parseEtree(inFileName, silence=False, print_warnings=True): len(gds_collector.get_messages()), )) gds_collector.write_messages(sys.stderr) sys.stderr.write(separator) - return rootObj, rootElement, mapping, reverse_mapping + return rootObj, rootElement, mapping, reverse_node_mapping def parseString(inString, silence=False, print_warnings=True): @@ -5044,6 +5099,98 @@ def main(): RenameMappings_ = { } +# +# Mapping of namespaces to types defined in them +# and the file in which each is defined. +# simpleTypes are marked "ST" and complexTypes "CT". +NamespaceToDefMappings_ = {'http://www.ups.com/XMLSchema/XOLTWS/Common/v1.0': [('ClientInformationType', + './schemas/common.xsd', + 'CT'), + ('RequestType', + './schemas/common.xsd', + 'CT'), + ('TransactionReferenceType', + './schemas/common.xsd', + 'CT'), + ('ResponseType', + './schemas/common.xsd', + 'CT'), + ('CodeDescriptionType', + './schemas/common.xsd', + 'CT'), + ('DetailType', + './schemas/common.xsd', + 'CT'), + ('ElementLevelInformationType', + './schemas/common.xsd', + 'CT'), + ('ElementIdentifierType', + './schemas/common.xsd', + 'CT')], + 'http://www.ups.com/XMLSchema/XOLTWS/LBRecovery/v1.0': [('ReferenceValuesType', + './schemas/LBRecovery.xsd', + 'CT'), + ('ReferenceNumberType', + './schemas/LBRecovery.xsd', + 'CT'), + ('LabelSpecificationType', + './schemas/LBRecovery.xsd', + 'CT'), + ('LabelStockSizeType', + './schemas/LBRecovery.xsd', + 'CT'), + ('LabelImageFormatType', + './schemas/LBRecovery.xsd', + 'CT'), + ('TranslateType', + './schemas/LBRecovery.xsd', + 'CT'), + ('LabelDeliveryType', + './schemas/LBRecovery.xsd', + 'CT'), + ('LabelResultsType', + './schemas/LBRecovery.xsd', + 'CT'), + ('LabelImageType', + './schemas/LBRecovery.xsd', + 'CT'), + ('ReceiptType', + './schemas/LBRecovery.xsd', + 'CT'), + ('ImageType', + './schemas/LBRecovery.xsd', + 'CT'), + ('TrackingCandidateType', + './schemas/LBRecovery.xsd', + 'CT'), + ('PickupDateRangeType', + './schemas/LBRecovery.xsd', + 'CT'), + ('ResponseImageType', + './schemas/LBRecovery.xsd', + 'CT'), + ('ResponseImageDetailType', + './schemas/LBRecovery.xsd', + 'CT'), + ('ImageFormatCodeType', + './schemas/LBRecovery.xsd', + 'CT'), + ('FormType', + './schemas/LBRecovery.xsd', + 'CT'), + ('FormImageType', + './schemas/LBRecovery.xsd', + 'CT'), + ('HighValueReportType', + './schemas/LBRecovery.xsd', + 'CT'), + ('HVRImageType', + './schemas/LBRecovery.xsd', + 'CT'), + ('LRUPSPremiumCareFormType', + './schemas/LBRecovery.xsd', + 'CT')]} + __all__ = [ "ClientInformationType", "CodeDescriptionType", diff --git a/schemas/ups/ups_lib/locator_request.py b/schemas/ups/ups_lib/locator_request.py index a7eb410dc8..0332588765 100644 --- a/schemas/ups/ups_lib/locator_request.py +++ b/schemas/ups/ups_lib/locator_request.py @@ -2,34 +2,35 @@ # -*- coding: utf-8 -*- # -# Generated Sat Mar 7 09:04:16 2020 by generateDS.py version 2.35.15. -# Python 3.8.1 (v3.8.1:1b293b6006, Dec 18 2019, 14:08:53) [Clang 6.0 (clang-600.0.57)] +# Generated Wed Nov 10 10:01:01 2021 by generateDS.py version 2.40.5. +# Python 3.8.6 (v3.8.6:db455296be, Sep 23 2020, 13:31:39) [Clang 6.0 (clang-600.0.57)] # # Command line options: # ('--no-namespace-defs', '') -# ('-o', './python/locator_request.py') +# ('-o', './ups_lib/locator_request.py') # # Command line arguments: # ./schemas/LocatorRequest.xsd # # Command line: -# /Users/danielkobina/Documents/Open/.env/bin/generateDS --no-namespace-defs -o "./python/locator_request.py" ./schemas/LocatorRequest.xsd +# /Users/danielkobina/Workspace/project/purplship/.venv/purplship/bin/generateDS --no-namespace-defs -o "./ups_lib/locator_request.py" ./schemas/LocatorRequest.xsd # # Current working directory (os.getcwd()): -# 2020-03 +# ups # +import sys +try: + ModulenotfoundExp_ = ModuleNotFoundError +except NameError: + ModulenotfoundExp_ = ImportError from six.moves import zip_longest import os -import sys import re as re_ import base64 import datetime as datetime_ import decimal as decimal_ -try: - from lxml import etree as etree_ -except ImportError: - from xml.etree import ElementTree as etree_ +from lxml import etree as etree_ Validate_simpletypes_ = True @@ -92,7 +93,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # Additionally, the generatedsnamespaces module can contain a python # dictionary named GenerateDSNamespaceTypePrefixes that associates element # types with the namespace prefixes that are to be added to the -# "xsi:type" attribute value. See the exportAttributes method of +# "xsi:type" attribute value. See the _exportAttributes method of # any generated element type and the generation of "xsi:type" for an # example of the use of this table. # An example table: @@ -107,11 +108,11 @@ def parsexmlstring_(instring, parser=None, **kwargs): try: from generatedsnamespaces import GenerateDSNamespaceDefs as GenerateDSNamespaceDefs_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceDefs_ = {} try: from generatedsnamespaces import GenerateDSNamespaceTypePrefixes as GenerateDSNamespaceTypePrefixes_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceTypePrefixes_ = {} # @@ -122,7 +123,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # try: from generatedscollector import GdsCollector as GdsCollector_ -except ImportError: +except ModulenotfoundExp_ : class GdsCollector_(object): @@ -156,7 +157,7 @@ def write_messages(self, outstream): try: from enum import Enum -except ImportError: +except ModulenotfoundExp_ : Enum = object # @@ -168,9 +169,14 @@ def write_messages(self, outstream): try: from generatedssuper import GeneratedsSuper -except ImportError as exp: +except ModulenotfoundExp_ as exp: + try: + from generatedssupersuper import GeneratedsSuperSuper + except ModulenotfoundExp_ as exp: + class GeneratedsSuperSuper(object): + pass - class GeneratedsSuper(object): + class GeneratedsSuper(GeneratedsSuperSuper): __hash__ = object.__hash__ tzoff_pattern = re_.compile(r'(\+|-)((0\d|1[0-3]):[0-5]\d|14:00)$') class _FixedOffsetTZ(datetime_.tzinfo): @@ -183,6 +189,30 @@ def tzname(self, dt): return self.__name def dst(self, dt): return None + def __str__(self): + settings = { + 'str_pretty_print': True, + 'str_indent_level': 0, + 'str_namespaceprefix': '', + 'str_name': None, + 'str_namespacedefs': '', + } + for n in settings: + if hasattr(self, n): + setattr(settings[n], self[n]) + from io import StringIO + output = StringIO() + self.export( + output, + settings['str_indent_level'], + pretty_print=settings['str_pretty_print'], + namespaceprefix_=settings['str_namespaceprefix'], + name_=settings['str_name'], + namespacedef_=settings['str_namespacedefs'] + ) + strval = output.getvalue() + output.close() + return strval def gds_format_string(self, input_data, input_name=''): return input_data def gds_parse_string(self, input_data, node=None, input_name=''): @@ -193,11 +223,11 @@ def gds_validate_string(self, input_data, node=None, input_name=''): else: return input_data def gds_format_base64(self, input_data, input_name=''): - return base64.b64encode(input_data) + return base64.b64encode(input_data).decode('ascii') def gds_validate_base64(self, input_data, node=None, input_name=''): return input_data def gds_format_integer(self, input_data, input_name=''): - return '%d' % input_data + return '%d' % int(input_data) def gds_parse_integer(self, input_data, node=None, input_name=''): try: ival = int(input_data) @@ -211,6 +241,8 @@ def gds_validate_integer(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires integer value') return value def gds_format_integer_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_integer_list( self, input_data, node=None, input_name=''): @@ -219,10 +251,10 @@ def gds_validate_integer_list( try: int(value) except (TypeError, ValueError): - raise_parse_error(node, 'Requires sequence of integer valuess') + raise_parse_error(node, 'Requires sequence of integer values') return values def gds_format_float(self, input_data, input_name=''): - return ('%.15f' % input_data).rstrip('0') + return ('%.15f' % float(input_data)).rstrip('0') def gds_parse_float(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -236,6 +268,8 @@ def gds_validate_float(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires float value') return value def gds_format_float_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_float_list( self, input_data, node=None, input_name=''): @@ -247,7 +281,12 @@ def gds_validate_float_list( raise_parse_error(node, 'Requires sequence of float values') return values def gds_format_decimal(self, input_data, input_name=''): - return ('%s' % input_data).rstrip('0') + return_value = '%s' % input_data + if '.' in return_value: + return_value = return_value.rstrip('0') + if return_value.endswith('.'): + return_value = return_value.rstrip('.') + return return_value def gds_parse_decimal(self, input_data, node=None, input_name=''): try: decimal_value = decimal_.Decimal(input_data) @@ -261,7 +300,9 @@ def gds_validate_decimal(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires decimal value') return value def gds_format_decimal_list(self, input_data, input_name=''): - return '%s' % ' '.join(input_data) + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] + return ' '.join([self.gds_format_decimal(item) for item in input_data]) def gds_validate_decimal_list( self, input_data, node=None, input_name=''): values = input_data.split() @@ -272,7 +313,7 @@ def gds_validate_decimal_list( raise_parse_error(node, 'Requires sequence of decimal values') return values def gds_format_double(self, input_data, input_name=''): - return '%e' % input_data + return '%s' % input_data def gds_parse_double(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -286,6 +327,8 @@ def gds_validate_double(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires double or float value') return value def gds_format_double_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_double_list( self, input_data, node=None, input_name=''): @@ -315,11 +358,14 @@ def gds_validate_boolean(self, input_data, node=None, input_name=''): '(one of True, 1, False, 0)') return input_data def gds_format_boolean_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_boolean_list( self, input_data, node=None, input_name=''): values = input_data.split() for value in values: + value = self.gds_parse_boolean(value, node, input_name) if value not in (True, 1, False, 0, ): raise_parse_error( node, @@ -766,7 +812,10 @@ def find_attr_value_(attr_name, node): value = attrs.get(attr_name) elif len(attr_parts) == 2: prefix, name = attr_parts - namespace = node.nsmap.get(prefix) + if prefix == 'xml': + namespace = 'http://www.w3.org/XML/1998/namespace' + else: + namespace = node.nsmap.get(prefix) if namespace is not None: value = attrs.get('{%s}%s' % (namespace, name, )) return value @@ -847,7 +896,7 @@ def exportSimple(self, outfile, level, name): self.name, base64.b64encode(self.value), self.name)) - def to_etree(self, element): + def to_etree(self, element, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.category == MixedContainer.CategoryText: # Prevent exporting empty content as empty lines. if self.value.strip(): @@ -867,7 +916,7 @@ def to_etree(self, element): subelement.text = self.to_etree_simple() else: # category == MixedContainer.CategoryComplex self.value.to_etree(element) - def to_etree_simple(self): + def to_etree_simple(self, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.content_type == MixedContainer.TypeString: text = self.value elif (self.content_type == MixedContainer.TypeInteger or @@ -1045,7 +1094,7 @@ def get_FreightIndicator(self): return self.FreightIndicator def set_FreightIndicator(self, FreightIndicator): self.FreightIndicator = FreightIndicator - def hasContent_(self): + def _hasContent(self): if ( self.Request is not None or self.OriginAddress is not None or @@ -1077,17 +1126,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='L showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LocatorRequest') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LocatorRequest') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LocatorRequest', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LocatorRequest', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LocatorRequest'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LocatorRequest'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LocatorRequest', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LocatorRequest', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1135,14 +1184,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Request': obj_ = Request.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1242,7 +1291,7 @@ def get_Longitude(self): return self.Longitude def set_Longitude(self, Longitude): self.Longitude = Longitude - def hasContent_(self): + def _hasContent(self): if ( self.Latitude is not None or self.Longitude is not None @@ -1265,17 +1314,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='G showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='GeocodeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='GeocodeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='GeocodeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='GeocodeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='GeocodeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='GeocodeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='GeocodeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='GeocodeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1294,14 +1343,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Latitude': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Latitude') @@ -1360,7 +1409,7 @@ def get_MaximumListSize(self): return self.MaximumListSize def set_MaximumListSize(self, MaximumListSize): self.MaximumListSize = MaximumListSize - def hasContent_(self): + def _hasContent(self): if ( self.Geocode is not None or self.AddressKeyFormat is not None or @@ -1384,17 +1433,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='O showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='OriginAddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='OriginAddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='OriginAddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='OriginAddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='OriginAddressType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='OriginAddressType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='OriginAddressType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='OriginAddressType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1415,14 +1464,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Geocode': obj_ = GeocodeType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1527,7 +1576,7 @@ def get_SingleLineAddress(self): return self.SingleLineAddress def set_SingleLineAddress(self, SingleLineAddress): self.SingleLineAddress = SingleLineAddress - def hasContent_(self): + def _hasContent(self): if ( self.AddressLine is not None or self.AddressLine3 is not None or @@ -1558,17 +1607,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressKeyFormatType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressKeyFormatType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressKeyFormatType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressKeyFormatType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AddressKeyFormatType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AddressKeyFormatType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AddressKeyFormatType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AddressKeyFormatType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1619,14 +1668,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AddressLine': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'AddressLine') @@ -1727,7 +1776,7 @@ def get_Locale(self): return self.Locale def set_Locale(self, Locale): self.Locale = Locale - def hasContent_(self): + def _hasContent(self): if ( self.LanguageCode is not None or self.Locale is not None @@ -1750,17 +1799,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='T showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TranslateType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TranslateType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TranslateType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TranslateType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TranslateType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TranslateType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TranslateType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TranslateType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1779,14 +1828,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'LanguageCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'LanguageCode') @@ -1833,7 +1882,7 @@ def get_Code(self): return self.Code def set_Code(self, Code): self.Code = Code - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None ): @@ -1855,17 +1904,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='U showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UnitOfMeasurementType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UnitOfMeasurementType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UnitOfMeasurementType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UnitOfMeasurementType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UnitOfMeasurementType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UnitOfMeasurementType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UnitOfMeasurementType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UnitOfMeasurementType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1880,14 +1929,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -1973,7 +2022,7 @@ def get_OpenTimeCriteria(self): return self.OpenTimeCriteria def set_OpenTimeCriteria(self, OpenTimeCriteria): self.OpenTimeCriteria = OpenTimeCriteria - def hasContent_(self): + def _hasContent(self): if ( self.SearchOption or self.MaximumListSize is not None or @@ -2001,17 +2050,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='L showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LocationSearchCriteriaType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LocationSearchCriteriaType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LocationSearchCriteriaType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LocationSearchCriteriaType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LocationSearchCriteriaType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LocationSearchCriteriaType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LocationSearchCriteriaType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LocationSearchCriteriaType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2045,14 +2094,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'SearchOption': obj_ = SearchOptionType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -2145,7 +2194,7 @@ def get_Relation(self): return self.Relation def set_Relation(self, Relation): self.Relation = Relation - def hasContent_(self): + def _hasContent(self): if ( self.OptionType is not None or self.OptionCode or @@ -2169,17 +2218,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SearchOptionType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SearchOptionType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='SearchOptionType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='SearchOptionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='SearchOptionType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='SearchOptionType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='SearchOptionType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='SearchOptionType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2199,14 +2248,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'OptionType': obj_ = CodeType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -2256,7 +2305,7 @@ def get_Code(self): return self.Code def set_Code(self, Code): self.Code = Code - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None ): @@ -2278,17 +2327,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='O showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='OptionCodeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='OptionCodeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='OptionCodeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='OptionCodeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='OptionCodeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='OptionCodeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='OptionCodeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='OptionCodeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2303,14 +2352,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -2351,7 +2400,7 @@ def get_Code(self): return self.Code def set_Code(self, Code): self.Code = Code - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None ): @@ -2373,17 +2422,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CodeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CodeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CodeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CodeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2398,14 +2447,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -2476,7 +2525,7 @@ def insert_ServiceOptionCode_at(self, index, value): self.ServiceOptionCode.insert(index, value) def replace_ServiceOptionCode_at(self, index, value): self.ServiceOptionCode[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Time is not None or self.ServiceCode or @@ -2500,17 +2549,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ServiceSearchType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ServiceSearchType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ServiceSearchType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ServiceSearchType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ServiceSearchType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ServiceSearchType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ServiceSearchType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ServiceSearchType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2531,14 +2580,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Time': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Time') @@ -2622,7 +2671,7 @@ def get_DayOfWeekCode(self): return self.DayOfWeekCode def set_DayOfWeekCode(self, DayOfWeekCode): self.DayOfWeekCode = DayOfWeekCode - def hasContent_(self): + def _hasContent(self): if ( self.FreightWillCallRequestType is not None or self.FacilityAddress or @@ -2648,17 +2697,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='F showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightWillCallSearchType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightWillCallSearchType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightWillCallSearchType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightWillCallSearchType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightWillCallSearchType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightWillCallSearchType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightWillCallSearchType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightWillCallSearchType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2688,14 +2737,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'FreightWillCallRequestType': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'FreightWillCallRequestType') @@ -2804,7 +2853,7 @@ def get_CountryCode(self): return self.CountryCode def set_CountryCode(self, CountryCode): self.CountryCode = CountryCode - def hasContent_(self): + def _hasContent(self): if ( self.SLIC is not None or self.AddressLine or @@ -2832,17 +2881,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='F showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FacilityAddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FacilityAddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FacilityAddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FacilityAddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FacilityAddressType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FacilityAddressType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FacilityAddressType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FacilityAddressType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2881,14 +2930,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'SLIC': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'SLIC') @@ -2971,7 +3020,7 @@ def get_GeoPoliticalUnit(self): return self.GeoPoliticalUnit def set_GeoPoliticalUnit(self, GeoPoliticalUnit): self.GeoPoliticalUnit = GeoPoliticalUnit - def hasContent_(self): + def _hasContent(self): if ( self.ServiceCode is not None or self.GeoPoliticalUnit is not None @@ -2994,17 +3043,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ServiceGeoUnitType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ServiceGeoUnitType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ServiceGeoUnitType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ServiceGeoUnitType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ServiceGeoUnitType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ServiceGeoUnitType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ServiceGeoUnitType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ServiceGeoUnitType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3023,14 +3072,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ServiceCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ServiceCode') @@ -3089,7 +3138,7 @@ def get_RequestOption(self): return self.RequestOption def set_RequestOption(self, RequestOption): self.RequestOption = RequestOption - def hasContent_(self): + def _hasContent(self): if ( self.TransactionReference is not None or self.RequestAction is not None or @@ -3113,17 +3162,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='Request') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='Request') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='Request', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='Request', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='Request'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='Request'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='Request', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='Request', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3145,14 +3194,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'TransactionReference': obj_ = TransactionReference.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -3204,7 +3253,7 @@ def get_CustomerContext(self): return self.CustomerContext def set_CustomerContext(self, CustomerContext): self.CustomerContext = CustomerContext - def hasContent_(self): + def _hasContent(self): if ( self.CustomerContext is not None ): @@ -3226,17 +3275,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='T showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionReference') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionReference') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionReference', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionReference', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TransactionReference'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TransactionReference'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TransactionReference', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TransactionReference', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3251,14 +3300,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CustomerContext': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CustomerContext') @@ -3329,7 +3378,7 @@ def get_SearchIdCriteria(self): return self.SearchIdCriteria def set_SearchIdCriteria(self, SearchIdCriteria): self.SearchIdCriteria = SearchIdCriteria - def hasContent_(self): + def _hasContent(self): if ( self.PublicAccessPointID is not None or self.AccessPointStatus is not None or @@ -3356,17 +3405,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AccessPointSearchType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AccessPointSearchType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AccessPointSearchType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AccessPointSearchType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AccessPointSearchType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AccessPointSearchType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AccessPointSearchType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AccessPointSearchType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3399,14 +3448,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PublicAccessPointID': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'PublicAccessPointID') @@ -3502,7 +3551,7 @@ def get_PostalCodeList(self): return self.PostalCodeList def set_PostalCodeList(self, PostalCodeList): self.PostalCodeList = PostalCodeList - def hasContent_(self): + def _hasContent(self): if ( self.BusinessClassificationCode or self.BusinessName is not None or @@ -3527,17 +3576,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='E showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ExcludeFromResultType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ExcludeFromResultType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ExcludeFromResultType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ExcludeFromResultType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ExcludeFromResultType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ExcludeFromResultType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ExcludeFromResultType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ExcludeFromResultType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3563,14 +3612,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'BusinessClassificationCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'BusinessClassificationCode') @@ -3637,7 +3686,7 @@ def insert_PostalCode_at(self, index, value): self.PostalCode.insert(index, value) def replace_PostalCode_at(self, index, value): self.PostalCode[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.PostalCode ): @@ -3659,17 +3708,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PostalCodeListType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PostalCodeListType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PostalCodeListType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PostalCodeListType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PostalCodeListType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PostalCodeListType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PostalCodeListType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PostalCodeListType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3683,14 +3732,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PostalCode': obj_ = PostalCodeType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -3736,7 +3785,7 @@ def get_SecondaryPostalCode(self): return self.SecondaryPostalCode def set_SecondaryPostalCode(self, SecondaryPostalCode): self.SecondaryPostalCode = SecondaryPostalCode - def hasContent_(self): + def _hasContent(self): if ( self.PrimaryPostalCode is not None or self.SecondaryPostalCode is not None @@ -3759,17 +3808,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PostalCodeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PostalCodeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PostalCodeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PostalCodeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PostalCodeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PostalCodeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PostalCodeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PostalCodeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3788,14 +3837,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PrimaryPostalCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'PrimaryPostalCode') @@ -3854,7 +3903,7 @@ def get_ServiceOfferingList(self): return self.ServiceOfferingList def set_ServiceOfferingList(self, ServiceOfferingList): self.ServiceOfferingList = ServiceOfferingList - def hasContent_(self): + def _hasContent(self): if ( self.MerchantAccountNumberList is not None or self.SearchFilter is not None or @@ -3878,17 +3927,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='I showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='IncludeCriteriaType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='IncludeCriteriaType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='IncludeCriteriaType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='IncludeCriteriaType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='IncludeCriteriaType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='IncludeCriteriaType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='IncludeCriteriaType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='IncludeCriteriaType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3908,14 +3957,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'MerchantAccountNumberList': obj_ = MerchantAccountNumberListType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -3983,7 +4032,7 @@ def get_ClickAndCollectSortWithDistance(self): return self.ClickAndCollectSortWithDistance def set_ClickAndCollectSortWithDistance(self, ClickAndCollectSortWithDistance): self.ClickAndCollectSortWithDistance = ClickAndCollectSortWithDistance - def hasContent_(self): + def _hasContent(self): if ( self.DCRIndicator is not None or self.ShippingAvailabilityIndicator is not None or @@ -4008,17 +4057,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SearchFilterType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SearchFilterType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='SearchFilterType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='SearchFilterType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='SearchFilterType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='SearchFilterType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='SearchFilterType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='SearchFilterType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4045,14 +4094,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'DCRIndicator': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'DCRIndicator') @@ -4120,7 +4169,7 @@ def insert_ServiceOffering_at(self, index, value): self.ServiceOffering.insert(index, value) def replace_ServiceOffering_at(self, index, value): self.ServiceOffering[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.ServiceOffering ): @@ -4142,17 +4191,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ServiceOfferingListType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ServiceOfferingListType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ServiceOfferingListType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ServiceOfferingListType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ServiceOfferingListType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ServiceOfferingListType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ServiceOfferingListType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ServiceOfferingListType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4166,14 +4215,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ServiceOffering': obj_ = CodeType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -4222,7 +4271,7 @@ def insert_MerchantAccountNumber_at(self, index, value): self.MerchantAccountNumber.insert(index, value) def replace_MerchantAccountNumber_at(self, index, value): self.MerchantAccountNumber[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.MerchantAccountNumber ): @@ -4244,17 +4293,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='M showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='MerchantAccountNumberListType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='MerchantAccountNumberListType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='MerchantAccountNumberListType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='MerchantAccountNumberListType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='MerchantAccountNumberListType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='MerchantAccountNumberListType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='MerchantAccountNumberListType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='MerchantAccountNumberListType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4269,14 +4318,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'MerchantAccountNumber': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'MerchantAccountNumber') @@ -4317,7 +4366,7 @@ def get_SortType(self): return self.SortType def set_SortType(self, SortType): self.SortType = SortType - def hasContent_(self): + def _hasContent(self): if ( self.SortType is not None ): @@ -4339,17 +4388,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SortCriteriaType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SortCriteriaType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='SortCriteriaType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='SortCriteriaType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='SortCriteriaType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='SortCriteriaType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='SortCriteriaType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='SortCriteriaType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4364,14 +4413,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'SortType': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'SortType') @@ -4418,7 +4467,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -4441,17 +4490,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='E showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='EnhancedSearchOptionType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='EnhancedSearchOptionType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='EnhancedSearchOptionType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='EnhancedSearchOptionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='EnhancedSearchOptionType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='EnhancedSearchOptionType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='EnhancedSearchOptionType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='EnhancedSearchOptionType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4470,14 +4519,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -4536,7 +4585,7 @@ def get_ToTime(self): return self.ToTime def set_ToTime(self, ToTime): self.ToTime = ToTime - def hasContent_(self): + def _hasContent(self): if ( self.DayOfWeekCode is not None or self.FromTime is not None or @@ -4560,17 +4609,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='O showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='OpenTimeCriteriaType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='OpenTimeCriteriaType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='OpenTimeCriteriaType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='OpenTimeCriteriaType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='OpenTimeCriteriaType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='OpenTimeCriteriaType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='OpenTimeCriteriaType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='OpenTimeCriteriaType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4593,14 +4642,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'DayOfWeekCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'DayOfWeekCode') @@ -4693,7 +4742,8 @@ def parse(inFileName, silence=False, print_warnings=True): return rootObj -def parseEtree(inFileName, silence=False, print_warnings=True): +def parseEtree(inFileName, silence=False, print_warnings=True, + mapping=None, reverse_mapping=None, nsmap=None): parser = None doc = parsexml_(inFileName, parser) gds_collector = GdsCollector_() @@ -4704,10 +4754,15 @@ def parseEtree(inFileName, silence=False, print_warnings=True): rootClass = LocatorRequest rootObj = rootClass.factory() rootObj.build(rootNode, gds_collector_=gds_collector) + if mapping is None: + mapping = {} + if reverse_mapping is None: + reverse_mapping = {} + rootElement = rootObj.to_etree( + None, name_=rootTag, mapping_=mapping, + reverse_mapping_=reverse_mapping, nsmap_=nsmap) + reverse_node_mapping = rootObj.gds_reverse_node_mapping(mapping) # Enable Python to collect the space used by the DOM. - mapping = {} - rootElement = rootObj.to_etree(None, name_=rootTag, mapping_=mapping) - reverse_mapping = rootObj.gds_reverse_node_mapping(mapping) if not SaveElementTreeNode: doc = None rootNode = None @@ -4724,7 +4779,7 @@ def parseEtree(inFileName, silence=False, print_warnings=True): len(gds_collector.get_messages()), )) gds_collector.write_messages(sys.stderr) sys.stderr.write(separator) - return rootObj, rootElement, mapping, reverse_mapping + return rootObj, rootElement, mapping, reverse_node_mapping def parseString(inString, silence=False, print_warnings=True): @@ -4808,6 +4863,12 @@ def main(): RenameMappings_ = { } +# +# Mapping of namespaces to types defined in them +# and the file in which each is defined. +# simpleTypes are marked "ST" and complexTypes "CT". +NamespaceToDefMappings_ = {} + __all__ = [ "AccessPointSearchType", "AddressKeyFormatType", diff --git a/schemas/ups/ups_lib/locator_response.py b/schemas/ups/ups_lib/locator_response.py index 8b06506710..f6f7dc9c89 100644 --- a/schemas/ups/ups_lib/locator_response.py +++ b/schemas/ups/ups_lib/locator_response.py @@ -2,34 +2,35 @@ # -*- coding: utf-8 -*- # -# Generated Sat Mar 7 09:04:17 2020 by generateDS.py version 2.35.15. -# Python 3.8.1 (v3.8.1:1b293b6006, Dec 18 2019, 14:08:53) [Clang 6.0 (clang-600.0.57)] +# Generated Wed Nov 10 10:01:01 2021 by generateDS.py version 2.40.5. +# Python 3.8.6 (v3.8.6:db455296be, Sep 23 2020, 13:31:39) [Clang 6.0 (clang-600.0.57)] # # Command line options: # ('--no-namespace-defs', '') -# ('-o', './python/locator_response.py') +# ('-o', './ups_lib/locator_response.py') # # Command line arguments: # ./schemas/LocatorResponse.xsd # # Command line: -# /Users/danielkobina/Documents/Open/.env/bin/generateDS --no-namespace-defs -o "./python/locator_response.py" ./schemas/LocatorResponse.xsd +# /Users/danielkobina/Workspace/project/purplship/.venv/purplship/bin/generateDS --no-namespace-defs -o "./ups_lib/locator_response.py" ./schemas/LocatorResponse.xsd # # Current working directory (os.getcwd()): -# 2020-03 +# ups # +import sys +try: + ModulenotfoundExp_ = ModuleNotFoundError +except NameError: + ModulenotfoundExp_ = ImportError from six.moves import zip_longest import os -import sys import re as re_ import base64 import datetime as datetime_ import decimal as decimal_ -try: - from lxml import etree as etree_ -except ImportError: - from xml.etree import ElementTree as etree_ +from lxml import etree as etree_ Validate_simpletypes_ = True @@ -92,7 +93,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # Additionally, the generatedsnamespaces module can contain a python # dictionary named GenerateDSNamespaceTypePrefixes that associates element # types with the namespace prefixes that are to be added to the -# "xsi:type" attribute value. See the exportAttributes method of +# "xsi:type" attribute value. See the _exportAttributes method of # any generated element type and the generation of "xsi:type" for an # example of the use of this table. # An example table: @@ -107,11 +108,11 @@ def parsexmlstring_(instring, parser=None, **kwargs): try: from generatedsnamespaces import GenerateDSNamespaceDefs as GenerateDSNamespaceDefs_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceDefs_ = {} try: from generatedsnamespaces import GenerateDSNamespaceTypePrefixes as GenerateDSNamespaceTypePrefixes_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceTypePrefixes_ = {} # @@ -122,7 +123,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # try: from generatedscollector import GdsCollector as GdsCollector_ -except ImportError: +except ModulenotfoundExp_ : class GdsCollector_(object): @@ -156,7 +157,7 @@ def write_messages(self, outstream): try: from enum import Enum -except ImportError: +except ModulenotfoundExp_ : Enum = object # @@ -168,9 +169,14 @@ def write_messages(self, outstream): try: from generatedssuper import GeneratedsSuper -except ImportError as exp: +except ModulenotfoundExp_ as exp: + try: + from generatedssupersuper import GeneratedsSuperSuper + except ModulenotfoundExp_ as exp: + class GeneratedsSuperSuper(object): + pass - class GeneratedsSuper(object): + class GeneratedsSuper(GeneratedsSuperSuper): __hash__ = object.__hash__ tzoff_pattern = re_.compile(r'(\+|-)((0\d|1[0-3]):[0-5]\d|14:00)$') class _FixedOffsetTZ(datetime_.tzinfo): @@ -183,6 +189,30 @@ def tzname(self, dt): return self.__name def dst(self, dt): return None + def __str__(self): + settings = { + 'str_pretty_print': True, + 'str_indent_level': 0, + 'str_namespaceprefix': '', + 'str_name': None, + 'str_namespacedefs': '', + } + for n in settings: + if hasattr(self, n): + setattr(settings[n], self[n]) + from io import StringIO + output = StringIO() + self.export( + output, + settings['str_indent_level'], + pretty_print=settings['str_pretty_print'], + namespaceprefix_=settings['str_namespaceprefix'], + name_=settings['str_name'], + namespacedef_=settings['str_namespacedefs'] + ) + strval = output.getvalue() + output.close() + return strval def gds_format_string(self, input_data, input_name=''): return input_data def gds_parse_string(self, input_data, node=None, input_name=''): @@ -193,11 +223,11 @@ def gds_validate_string(self, input_data, node=None, input_name=''): else: return input_data def gds_format_base64(self, input_data, input_name=''): - return base64.b64encode(input_data) + return base64.b64encode(input_data).decode('ascii') def gds_validate_base64(self, input_data, node=None, input_name=''): return input_data def gds_format_integer(self, input_data, input_name=''): - return '%d' % input_data + return '%d' % int(input_data) def gds_parse_integer(self, input_data, node=None, input_name=''): try: ival = int(input_data) @@ -211,6 +241,8 @@ def gds_validate_integer(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires integer value') return value def gds_format_integer_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_integer_list( self, input_data, node=None, input_name=''): @@ -219,10 +251,10 @@ def gds_validate_integer_list( try: int(value) except (TypeError, ValueError): - raise_parse_error(node, 'Requires sequence of integer valuess') + raise_parse_error(node, 'Requires sequence of integer values') return values def gds_format_float(self, input_data, input_name=''): - return ('%.15f' % input_data).rstrip('0') + return ('%.15f' % float(input_data)).rstrip('0') def gds_parse_float(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -236,6 +268,8 @@ def gds_validate_float(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires float value') return value def gds_format_float_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_float_list( self, input_data, node=None, input_name=''): @@ -247,7 +281,12 @@ def gds_validate_float_list( raise_parse_error(node, 'Requires sequence of float values') return values def gds_format_decimal(self, input_data, input_name=''): - return ('%s' % input_data).rstrip('0') + return_value = '%s' % input_data + if '.' in return_value: + return_value = return_value.rstrip('0') + if return_value.endswith('.'): + return_value = return_value.rstrip('.') + return return_value def gds_parse_decimal(self, input_data, node=None, input_name=''): try: decimal_value = decimal_.Decimal(input_data) @@ -261,7 +300,9 @@ def gds_validate_decimal(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires decimal value') return value def gds_format_decimal_list(self, input_data, input_name=''): - return '%s' % ' '.join(input_data) + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] + return ' '.join([self.gds_format_decimal(item) for item in input_data]) def gds_validate_decimal_list( self, input_data, node=None, input_name=''): values = input_data.split() @@ -272,7 +313,7 @@ def gds_validate_decimal_list( raise_parse_error(node, 'Requires sequence of decimal values') return values def gds_format_double(self, input_data, input_name=''): - return '%e' % input_data + return '%s' % input_data def gds_parse_double(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -286,6 +327,8 @@ def gds_validate_double(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires double or float value') return value def gds_format_double_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_double_list( self, input_data, node=None, input_name=''): @@ -315,11 +358,14 @@ def gds_validate_boolean(self, input_data, node=None, input_name=''): '(one of True, 1, False, 0)') return input_data def gds_format_boolean_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_boolean_list( self, input_data, node=None, input_name=''): values = input_data.split() for value in values: + value = self.gds_parse_boolean(value, node, input_name) if value not in (True, 1, False, 0, ): raise_parse_error( node, @@ -766,7 +812,10 @@ def find_attr_value_(attr_name, node): value = attrs.get(attr_name) elif len(attr_parts) == 2: prefix, name = attr_parts - namespace = node.nsmap.get(prefix) + if prefix == 'xml': + namespace = 'http://www.w3.org/XML/1998/namespace' + else: + namespace = node.nsmap.get(prefix) if namespace is not None: value = attrs.get('{%s}%s' % (namespace, name, )) return value @@ -847,7 +896,7 @@ def exportSimple(self, outfile, level, name): self.name, base64.b64encode(self.value), self.name)) - def to_etree(self, element): + def to_etree(self, element, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.category == MixedContainer.CategoryText: # Prevent exporting empty content as empty lines. if self.value.strip(): @@ -867,7 +916,7 @@ def to_etree(self, element): subelement.text = self.to_etree_simple() else: # category == MixedContainer.CategoryComplex self.value.to_etree(element) - def to_etree_simple(self): + def to_etree_simple(self, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.content_type == MixedContainer.TypeString: text = self.value elif (self.content_type == MixedContainer.TypeInteger or @@ -994,7 +1043,7 @@ def get_AllowAllConfidenceLevels(self): return self.AllowAllConfidenceLevels def set_AllowAllConfidenceLevels(self, AllowAllConfidenceLevels): self.AllowAllConfidenceLevels = AllowAllConfidenceLevels - def hasContent_(self): + def _hasContent(self): if ( self.Response is not None or self.Geocode is not None or @@ -1019,17 +1068,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='L showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LocatorResponse') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LocatorResponse') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LocatorResponse', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LocatorResponse', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LocatorResponse'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LocatorResponse'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LocatorResponse', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LocatorResponse', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1053,14 +1102,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Response': obj_ = Response.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1122,7 +1171,7 @@ def get_Longitude(self): return self.Longitude def set_Longitude(self, Longitude): self.Longitude = Longitude - def hasContent_(self): + def _hasContent(self): if ( self.Latitude is not None or self.Longitude is not None @@ -1145,17 +1194,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='G showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='GeocodeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='GeocodeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='GeocodeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='GeocodeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='GeocodeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='GeocodeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='GeocodeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='GeocodeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1174,14 +1223,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Latitude': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Latitude') @@ -1282,7 +1331,7 @@ def insert_AvailableLocationAttributes_at(self, index, value): self.AvailableLocationAttributes.insert(index, value) def replace_AvailableLocationAttributes_at(self, index, value): self.AvailableLocationAttributes[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.GeocodeCandidate or self.Disclaimer or @@ -1307,17 +1356,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SearchResultsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SearchResultsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='SearchResultsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='SearchResultsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='SearchResultsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='SearchResultsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='SearchResultsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='SearchResultsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1341,14 +1390,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'GeocodeCandidate': obj_ = GeocodeCandidateType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1416,7 +1465,7 @@ def get_LandmarkName(self): return self.LandmarkName def set_LandmarkName(self, LandmarkName): self.LandmarkName = LandmarkName - def hasContent_(self): + def _hasContent(self): if ( self.AddressKeyFormat is not None or self.Geocode is not None or @@ -1440,17 +1489,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='G showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='GeocodeCandidateType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='GeocodeCandidateType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='GeocodeCandidateType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='GeocodeCandidateType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='GeocodeCandidateType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='GeocodeCandidateType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='GeocodeCandidateType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='GeocodeCandidateType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1471,14 +1520,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AddressKeyFormat': obj_ = AddressKeyFormatType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1571,7 +1620,7 @@ def get_CountryCode(self): return self.CountryCode def set_CountryCode(self, CountryCode): self.CountryCode = CountryCode - def hasContent_(self): + def _hasContent(self): if ( self.ConsigneeName is not None or self.AddressLine is not None or @@ -1600,17 +1649,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressKeyFormatType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressKeyFormatType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressKeyFormatType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressKeyFormatType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AddressKeyFormatType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AddressKeyFormatType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AddressKeyFormatType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AddressKeyFormatType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1653,14 +1702,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ConsigneeName': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ConsigneeName') @@ -1737,7 +1786,7 @@ def get_ns_prefix_(self): return self.ns_prefix_ def set_ns_prefix_(self, ns_prefix): self.ns_prefix_ = ns_prefix - def hasContent_(self): + def _hasContent(self): if ( ): @@ -1759,16 +1808,16 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AdditionalChargeIndicator') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AdditionalChargeIndicator') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AdditionalChargeIndicator', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AdditionalChargeIndicator', pretty_print=pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AdditionalChargeIndicator'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AdditionalChargeIndicator'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AdditionalChargeIndicator', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AdditionalChargeIndicator', fromsubclass_=False, pretty_print=True): pass def build(self, node, gds_collector_=None): self.gds_collector_ = gds_collector_ @@ -1776,14 +1825,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): pass # end class AdditionalChargeIndicator @@ -1834,7 +1883,7 @@ def insert_OptionCode_at(self, index, value): self.OptionCode.insert(index, value) def replace_OptionCode_at(self, index, value): self.OptionCode[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.OptionType is not None or self.OptionCode @@ -1857,17 +1906,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='L showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LocationAttributesType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LocationAttributesType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LocationAttributesType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LocationAttributesType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LocationAttributesType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LocationAttributesType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LocationAttributesType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LocationAttributesType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1884,14 +1933,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'OptionType': obj_ = CodeType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1960,7 +2009,7 @@ def get_TransportationPickUpSchedule(self): return self.TransportationPickUpSchedule def set_TransportationPickUpSchedule(self, TransportationPickUpSchedule): self.TransportationPickUpSchedule = TransportationPickUpSchedule - def hasContent_(self): + def _hasContent(self): if ( self.Category is not None or self.Code is not None or @@ -1986,17 +2035,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='O showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='OptionCodeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='OptionCodeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='OptionCodeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='OptionCodeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='OptionCodeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='OptionCodeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='OptionCodeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='OptionCodeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2026,14 +2075,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Category': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Category') @@ -2106,7 +2155,7 @@ def insert_PickUp_at(self, index, value): self.PickUp.insert(index, value) def replace_PickUp_at(self, index, value): self.PickUp[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.PickUp ): @@ -2128,17 +2177,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='T showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransportationPickUpScheduleType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransportationPickUpScheduleType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransportationPickUpScheduleType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransportationPickUpScheduleType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TransportationPickUpScheduleType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TransportationPickUpScheduleType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TransportationPickUpScheduleType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TransportationPickUpScheduleType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2152,14 +2201,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PickUp': obj_ = PickUpType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -2205,7 +2254,7 @@ def get_PickUpDetails(self): return self.PickUpDetails def set_PickUpDetails(self, PickUpDetails): self.PickUpDetails = PickUpDetails - def hasContent_(self): + def _hasContent(self): if ( self.DayOfWeek is not None or self.PickUpDetails is not None @@ -2228,17 +2277,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickUpType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickUpType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickUpType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickUpType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickUpType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickUpType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickUpType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickUpType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2256,14 +2305,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'DayOfWeek': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'DayOfWeek') @@ -2315,7 +2364,7 @@ def get_NoPickUpIndicator(self): return self.NoPickUpIndicator def set_NoPickUpIndicator(self, NoPickUpIndicator): self.NoPickUpIndicator = NoPickUpIndicator - def hasContent_(self): + def _hasContent(self): if ( self.PickUpTime is not None or self.NoPickUpIndicator is not None @@ -2338,17 +2387,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickUpDetailsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickUpDetailsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickUpDetailsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickUpDetailsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickUpDetailsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickUpDetailsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickUpDetailsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickUpDetailsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2367,14 +2416,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PickUpTime': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'PickUpTime') @@ -2427,7 +2476,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -2450,17 +2499,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CodeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CodeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CodeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CodeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2479,14 +2528,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -2821,7 +2870,7 @@ def get_WillCallLocationIndicator(self): return self.WillCallLocationIndicator def set_WillCallLocationIndicator(self, WillCallLocationIndicator): self.WillCallLocationIndicator = WillCallLocationIndicator - def hasContent_(self): + def _hasContent(self): if ( self.LocationID is not None or self.IVR is not None or @@ -2879,17 +2928,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DropLocationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DropLocationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DropLocationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DropLocationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DropLocationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DropLocationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DropLocationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DropLocationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3033,14 +3082,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'LocationID': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'LocationID') @@ -3288,7 +3337,7 @@ def get_TextToSpeechIndicator(self): return self.TextToSpeechIndicator def set_TextToSpeechIndicator(self, TextToSpeechIndicator): self.TextToSpeechIndicator = TextToSpeechIndicator - def hasContent_(self): + def _hasContent(self): if ( self.PhraseID is not None or self.TextToSpeechIndicator is not None @@ -3311,17 +3360,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='I showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='IVRType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='IVRType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='IVRType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='IVRType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='IVRType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='IVRType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='IVRType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='IVRType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3339,14 +3388,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PhraseID': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'PhraseID') @@ -3386,7 +3435,7 @@ def get_ns_prefix_(self): return self.ns_prefix_ def set_ns_prefix_(self, ns_prefix): self.ns_prefix_ = ns_prefix - def hasContent_(self): + def _hasContent(self): if ( ): @@ -3408,16 +3457,16 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='T showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TextToSpeechIndicator') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TextToSpeechIndicator') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TextToSpeechIndicator', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TextToSpeechIndicator', pretty_print=pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TextToSpeechIndicator'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TextToSpeechIndicator'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TextToSpeechIndicator', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TextToSpeechIndicator', fromsubclass_=False, pretty_print=True): pass def build(self, node, gds_collector_=None): self.gds_collector_ = gds_collector_ @@ -3425,14 +3474,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): pass # end class TextToSpeechIndicator @@ -3474,7 +3523,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -3497,17 +3546,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='U showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UnitOfMeasurementType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UnitOfMeasurementType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UnitOfMeasurementType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UnitOfMeasurementType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UnitOfMeasurementType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UnitOfMeasurementType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UnitOfMeasurementType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UnitOfMeasurementType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3526,14 +3575,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -3586,7 +3635,7 @@ def get_UnitOfMeasurement(self): return self.UnitOfMeasurement def set_UnitOfMeasurement(self, UnitOfMeasurement): self.UnitOfMeasurement = UnitOfMeasurement - def hasContent_(self): + def _hasContent(self): if ( self.Value is not None or self.UnitOfMeasurement is not None @@ -3609,17 +3658,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DistanceType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DistanceType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DistanceType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DistanceType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DistanceType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DistanceType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DistanceType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DistanceType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3637,14 +3686,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Value': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Value') @@ -3696,7 +3745,7 @@ def get_Image(self): return self.Image def set_Image(self, Image): self.Image = Image - def hasContent_(self): + def _hasContent(self): if ( self.Type is not None or self.Image is not None @@ -3719,17 +3768,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='I showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ImageType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ImageType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ImageType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ImageType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ImageType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ImageType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ImageType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ImageType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3748,14 +3797,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Type': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Type') @@ -3811,7 +3860,7 @@ def insert_Segment_at(self, index, value): self.Segment.insert(index, value) def replace_Segment_at(self, index, value): self.Segment[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Segment ): @@ -3833,17 +3882,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SpecialInstructionsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SpecialInstructionsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='SpecialInstructionsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='SpecialInstructionsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='SpecialInstructionsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='SpecialInstructionsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='SpecialInstructionsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='SpecialInstructionsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3858,14 +3907,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Segment': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Segment') @@ -3912,7 +3961,7 @@ def get_Width(self): return self.Width def set_Width(self, Width): self.Width = Width - def hasContent_(self): + def _hasContent(self): if ( self.Height is not None or self.Width is not None @@ -3935,17 +3984,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='M showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='MapDimensionsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='MapDimensionsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='MapDimensionsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='MapDimensionsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='MapDimensionsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='MapDimensionsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='MapDimensionsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='MapDimensionsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3964,14 +4013,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Height': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Height') @@ -4030,7 +4079,7 @@ def get_YCoordinate(self): return self.YCoordinate def set_YCoordinate(self, YCoordinate): self.YCoordinate = YCoordinate - def hasContent_(self): + def _hasContent(self): if ( self.LocationID is not None or self.XCoordinate is not None or @@ -4054,17 +4103,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='I showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ImageMapType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ImageMapType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ImageMapType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ImageMapType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ImageMapType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ImageMapType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ImageMapType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ImageMapType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4087,14 +4136,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'LocationID': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'LocationID') @@ -4159,7 +4208,7 @@ def get_Time(self): return self.Time def set_Time(self, Time): self.Time = Time - def hasContent_(self): + def _hasContent(self): if ( self.Segment is not None or self.Distance is not None or @@ -4183,17 +4232,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DirectionsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DirectionsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DirectionsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DirectionsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DirectionsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DirectionsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DirectionsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DirectionsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4215,14 +4264,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Segment': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Segment') @@ -4274,7 +4323,7 @@ def get_Distance(self): return self.Distance def set_Distance(self, Distance): self.Distance = Distance - def hasContent_(self): + def _hasContent(self): if ( self.Distance is not None ): @@ -4296,17 +4345,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='T showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TotalDistanceType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TotalDistanceType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TotalDistanceType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TotalDistanceType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TotalDistanceType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TotalDistanceType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TotalDistanceType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TotalDistanceType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4320,14 +4369,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Distance': obj_ = DistanceType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -4373,7 +4422,7 @@ def get_Last50ftInstruction(self): return self.Last50ftInstruction def set_Last50ftInstruction(self, Last50ftInstruction): self.Last50ftInstruction = Last50ftInstruction - def hasContent_(self): + def _hasContent(self): if ( self.Locale is not None or self.Last50ftInstruction is not None @@ -4396,17 +4445,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='L showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LocalizedInstructionType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LocalizedInstructionType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LocalizedInstructionType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LocalizedInstructionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LocalizedInstructionType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LocalizedInstructionType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LocalizedInstructionType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LocalizedInstructionType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4425,14 +4474,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Locale': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Locale') @@ -4488,7 +4537,7 @@ def insert_StandardHours_at(self, index, value): self.StandardHours.insert(index, value) def replace_StandardHours_at(self, index, value): self.StandardHours[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.StandardHours ): @@ -4510,17 +4559,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='O showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='OperatingHoursType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='OperatingHoursType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='OperatingHoursType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='OperatingHoursType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='OperatingHoursType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='OperatingHoursType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='OperatingHoursType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='OperatingHoursType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4534,14 +4583,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'StandardHours': obj_ = StandardHoursType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -4596,7 +4645,7 @@ def insert_DayOfWeek_at(self, index, value): self.DayOfWeek.insert(index, value) def replace_DayOfWeek_at(self, index, value): self.DayOfWeek[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.HoursType is not None or self.DayOfWeek @@ -4619,17 +4668,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='StandardHoursType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='StandardHoursType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='StandardHoursType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='StandardHoursType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='StandardHoursType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='StandardHoursType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='StandardHoursType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='StandardHoursType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4647,14 +4696,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'HoursType': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'HoursType') @@ -4736,7 +4785,7 @@ def get_Open24HoursIndicator(self): return self.Open24HoursIndicator def set_Open24HoursIndicator(self, Open24HoursIndicator): self.Open24HoursIndicator = Open24HoursIndicator - def hasContent_(self): + def _hasContent(self): if ( self.Day is not None or self.OpenHours is not None or @@ -4764,17 +4813,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DayOfWeekType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DayOfWeekType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DayOfWeekType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DayOfWeekType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DayOfWeekType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DayOfWeekType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DayOfWeekType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DayOfWeekType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4813,14 +4862,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Day': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Day') @@ -4903,7 +4952,7 @@ def get_FreightSortFacilityCode(self): return self.FreightSortFacilityCode def set_FreightSortFacilityCode(self, FreightSortFacilityCode): self.FreightSortFacilityCode = FreightSortFacilityCode - def hasContent_(self): + def _hasContent(self): if ( self.HubSortCode is not None or self.FreightSortFacilityCode is not None @@ -4926,17 +4975,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SortCodeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SortCodeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='SortCodeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='SortCodeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='SortCodeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='SortCodeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='SortCodeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='SortCodeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4955,14 +5004,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'HubSortCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'HubSortCode') @@ -5018,7 +5067,7 @@ def insert_CommentType_at(self, index, value): self.CommentType.insert(index, value) def replace_CommentType_at(self, index, value): self.CommentType[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.CommentType ): @@ -5040,17 +5089,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AdditionalCommentsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AdditionalCommentsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AdditionalCommentsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AdditionalCommentsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AdditionalCommentsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AdditionalCommentsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AdditionalCommentsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AdditionalCommentsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5064,14 +5113,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CommentType': obj_ = CommentTypeType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -5117,7 +5166,7 @@ def get_Text(self): return self.Text def set_Text(self, Text): self.Text = Text - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Text is not None @@ -5140,17 +5189,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CommentTypeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CommentTypeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CommentTypeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CommentTypeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CommentTypeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CommentTypeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CommentTypeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CommentTypeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5169,14 +5218,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -5250,7 +5299,7 @@ def insert_Error_at(self, index, value): self.Error.insert(index, value) def replace_Error_at(self, index, value): self.Error[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.TransactionReference is not None or self.ResponseStatusCode is not None or @@ -5275,17 +5324,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='Response') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='Response') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='Response', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='Response', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='Response'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='Response'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='Response', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='Response', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5310,14 +5359,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'TransactionReference': obj_ = TransactionReference.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -5380,7 +5429,7 @@ def get_XpciVersion(self): return self.XpciVersion def set_XpciVersion(self, XpciVersion): self.XpciVersion = XpciVersion - def hasContent_(self): + def _hasContent(self): if ( self.CustomerContext is not None or self.XpciVersion is not None @@ -5403,17 +5452,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='T showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionReference') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionReference') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionReference', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionReference', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TransactionReference'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TransactionReference'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TransactionReference', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TransactionReference', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5432,14 +5481,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CustomerContext': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CustomerContext') @@ -5534,7 +5583,7 @@ def insert_ErrorDigest_at(self, index, value): self.ErrorDigest.insert(index, value) def replace_ErrorDigest_at(self, index, value): self.ErrorDigest[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.ErrorSeverity is not None or self.ErrorCode is not None or @@ -5561,17 +5610,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='E showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='Error') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='Error') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='Error', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='Error', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='Error'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='Error'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='Error', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='Error', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5605,14 +5654,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ErrorSeverity': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ErrorSeverity') @@ -5688,7 +5737,7 @@ def get_ErrorLocationAttributeName(self): return self.ErrorLocationAttributeName def set_ErrorLocationAttributeName(self, ErrorLocationAttributeName): self.ErrorLocationAttributeName = ErrorLocationAttributeName - def hasContent_(self): + def _hasContent(self): if ( self.ErrorLocationElementName is not None or self.ErrorLocationAttributeName is not None @@ -5711,17 +5760,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='E showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ErrorLocation') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ErrorLocation') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ErrorLocation', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ErrorLocation', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ErrorLocation'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ErrorLocation'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ErrorLocation', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ErrorLocation', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5740,14 +5789,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ErrorLocationElementName': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ErrorLocationElementName') @@ -5836,7 +5885,7 @@ def get_Availability(self): return self.Availability def set_Availability(self, Availability): self.Availability = Availability - def hasContent_(self): + def _hasContent(self): if ( self.PublicAccessPointID is not None or self.ImageURL is not None or @@ -5865,17 +5914,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AccessPointInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AccessPointInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AccessPointInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AccessPointInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AccessPointInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AccessPointInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AccessPointInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AccessPointInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5914,14 +5963,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PublicAccessPointID': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'PublicAccessPointID') @@ -6009,7 +6058,7 @@ def insert_BusinessClassification_at(self, index, value): self.BusinessClassification.insert(index, value) def replace_BusinessClassification_at(self, index, value): self.BusinessClassification[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.BusinessClassification ): @@ -6031,17 +6080,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='B showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='BusinessClassificationListType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='BusinessClassificationListType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='BusinessClassificationListType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='BusinessClassificationListType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='BusinessClassificationListType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='BusinessClassificationListType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='BusinessClassificationListType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='BusinessClassificationListType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6055,14 +6104,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'BusinessClassification': obj_ = CodeType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -6111,7 +6160,7 @@ def insert_PrivateNetwork_at(self, index, value): self.PrivateNetwork.insert(index, value) def replace_PrivateNetwork_at(self, index, value): self.PrivateNetwork[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.PrivateNetwork ): @@ -6133,17 +6182,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PrivateNetworkListType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PrivateNetworkListType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PrivateNetworkListType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PrivateNetworkListType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PrivateNetworkListType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PrivateNetworkListType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PrivateNetworkListType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PrivateNetworkListType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6157,14 +6206,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PrivateNetwork': obj_ = PrivateNetworkType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -6210,7 +6259,7 @@ def get_NetworkDescription(self): return self.NetworkDescription def set_NetworkDescription(self, NetworkDescription): self.NetworkDescription = NetworkDescription - def hasContent_(self): + def _hasContent(self): if ( self.NetworkID is not None or self.NetworkDescription is not None @@ -6233,17 +6282,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PrivateNetworkType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PrivateNetworkType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PrivateNetworkType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PrivateNetworkType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PrivateNetworkType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PrivateNetworkType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PrivateNetworkType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PrivateNetworkType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6262,14 +6311,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'NetworkID': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'NetworkID') @@ -6325,7 +6374,7 @@ def insert_ServiceOffering_at(self, index, value): self.ServiceOffering.insert(index, value) def replace_ServiceOffering_at(self, index, value): self.ServiceOffering[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.ServiceOffering ): @@ -6347,17 +6396,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ServiceOfferingListType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ServiceOfferingListType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ServiceOfferingListType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ServiceOfferingListType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ServiceOfferingListType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ServiceOfferingListType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ServiceOfferingListType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ServiceOfferingListType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6371,14 +6420,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ServiceOffering': obj_ = CodeType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -6424,7 +6473,7 @@ def get_DCRAvailability(self): return self.DCRAvailability def set_DCRAvailability(self, DCRAvailability): self.DCRAvailability = DCRAvailability - def hasContent_(self): + def _hasContent(self): if ( self.ShippingAvailability is not None or self.DCRAvailability is not None @@ -6447,17 +6496,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AvailabilityType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AvailabilityType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AvailabilityType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AvailabilityType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AvailabilityType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AvailabilityType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AvailabilityType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AvailabilityType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6474,14 +6523,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ShippingAvailability': obj_ = AvailableReasonType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -6532,7 +6581,7 @@ def get_Promotion(self): return self.Promotion def set_Promotion(self, Promotion): self.Promotion = Promotion - def hasContent_(self): + def _hasContent(self): if ( self.Locale is not None or self.Promotion is not None @@ -6555,17 +6604,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PromotionInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PromotionInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PromotionInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PromotionInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PromotionInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PromotionInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PromotionInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PromotionInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6584,14 +6633,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Locale': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Locale') @@ -6644,7 +6693,7 @@ def get_UnavailableReason(self): return self.UnavailableReason def set_UnavailableReason(self, UnavailableReason): self.UnavailableReason = UnavailableReason - def hasContent_(self): + def _hasContent(self): if ( self.AvailableIndicator is not None or self.UnavailableReason is not None @@ -6667,17 +6716,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AvailableReasonType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AvailableReasonType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AvailableReasonType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AvailableReasonType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AvailableReasonType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AvailableReasonType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AvailableReasonType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AvailableReasonType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6695,14 +6744,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AvailableIndicator': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'AvailableIndicator') @@ -6754,7 +6803,7 @@ def get_NonSecureURL(self): return self.NonSecureURL def set_NonSecureURL(self, NonSecureURL): self.NonSecureURL = NonSecureURL - def hasContent_(self): + def _hasContent(self): if ( self.SecureURL is not None or self.NonSecureURL is not None @@ -6777,17 +6826,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='L showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LocationImageType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LocationImageType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LocationImageType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LocationImageType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LocationImageType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LocationImageType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LocationImageType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LocationImageType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6806,14 +6855,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'SecureURL': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'SecureURL') @@ -6900,7 +6949,8 @@ def parse(inFileName, silence=False, print_warnings=True): return rootObj -def parseEtree(inFileName, silence=False, print_warnings=True): +def parseEtree(inFileName, silence=False, print_warnings=True, + mapping=None, reverse_mapping=None, nsmap=None): parser = None doc = parsexml_(inFileName, parser) gds_collector = GdsCollector_() @@ -6911,10 +6961,15 @@ def parseEtree(inFileName, silence=False, print_warnings=True): rootClass = LocatorResponse rootObj = rootClass.factory() rootObj.build(rootNode, gds_collector_=gds_collector) + if mapping is None: + mapping = {} + if reverse_mapping is None: + reverse_mapping = {} + rootElement = rootObj.to_etree( + None, name_=rootTag, mapping_=mapping, + reverse_mapping_=reverse_mapping, nsmap_=nsmap) + reverse_node_mapping = rootObj.gds_reverse_node_mapping(mapping) # Enable Python to collect the space used by the DOM. - mapping = {} - rootElement = rootObj.to_etree(None, name_=rootTag, mapping_=mapping) - reverse_mapping = rootObj.gds_reverse_node_mapping(mapping) if not SaveElementTreeNode: doc = None rootNode = None @@ -6931,7 +6986,7 @@ def parseEtree(inFileName, silence=False, print_warnings=True): len(gds_collector.get_messages()), )) gds_collector.write_messages(sys.stderr) sys.stderr.write(separator) - return rootObj, rootElement, mapping, reverse_mapping + return rootObj, rootElement, mapping, reverse_node_mapping def parseString(inString, silence=False, print_warnings=True): @@ -7015,6 +7070,12 @@ def main(): RenameMappings_ = { } +# +# Mapping of namespaces to types defined in them +# and the file in which each is defined. +# simpleTypes are marked "ST" and complexTypes "CT". +NamespaceToDefMappings_ = {} + __all__ = [ "AccessPointInformationType", "AdditionalChargeIndicator", diff --git a/schemas/ups/ups_lib/paperless_document_api.py b/schemas/ups/ups_lib/paperless_document_api.py index 3f02b6982d..b15bfdeaad 100644 --- a/schemas/ups/ups_lib/paperless_document_api.py +++ b/schemas/ups/ups_lib/paperless_document_api.py @@ -2,34 +2,35 @@ # -*- coding: utf-8 -*- # -# Generated Sat Mar 7 09:04:17 2020 by generateDS.py version 2.35.15. -# Python 3.8.1 (v3.8.1:1b293b6006, Dec 18 2019, 14:08:53) [Clang 6.0 (clang-600.0.57)] +# Generated Wed Nov 10 10:01:02 2021 by generateDS.py version 2.40.5. +# Python 3.8.6 (v3.8.6:db455296be, Sep 23 2020, 13:31:39) [Clang 6.0 (clang-600.0.57)] # # Command line options: # ('--no-namespace-defs', '') -# ('-o', './python/paperless_document_api.py') +# ('-o', './ups_lib/paperless_document_api.py') # # Command line arguments: # ./schemas/PaperlessDocumentAPI.xsd # # Command line: -# /Users/danielkobina/Documents/Open/.env/bin/generateDS --no-namespace-defs -o "./python/paperless_document_api.py" ./schemas/PaperlessDocumentAPI.xsd +# /Users/danielkobina/Workspace/project/purplship/.venv/purplship/bin/generateDS --no-namespace-defs -o "./ups_lib/paperless_document_api.py" ./schemas/PaperlessDocumentAPI.xsd # # Current working directory (os.getcwd()): -# 2020-03 +# ups # +import sys +try: + ModulenotfoundExp_ = ModuleNotFoundError +except NameError: + ModulenotfoundExp_ = ImportError from six.moves import zip_longest import os -import sys import re as re_ import base64 import datetime as datetime_ import decimal as decimal_ -try: - from lxml import etree as etree_ -except ImportError: - from xml.etree import ElementTree as etree_ +from lxml import etree as etree_ Validate_simpletypes_ = True @@ -92,7 +93,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # Additionally, the generatedsnamespaces module can contain a python # dictionary named GenerateDSNamespaceTypePrefixes that associates element # types with the namespace prefixes that are to be added to the -# "xsi:type" attribute value. See the exportAttributes method of +# "xsi:type" attribute value. See the _exportAttributes method of # any generated element type and the generation of "xsi:type" for an # example of the use of this table. # An example table: @@ -107,11 +108,11 @@ def parsexmlstring_(instring, parser=None, **kwargs): try: from generatedsnamespaces import GenerateDSNamespaceDefs as GenerateDSNamespaceDefs_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceDefs_ = {} try: from generatedsnamespaces import GenerateDSNamespaceTypePrefixes as GenerateDSNamespaceTypePrefixes_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceTypePrefixes_ = {} # @@ -122,7 +123,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # try: from generatedscollector import GdsCollector as GdsCollector_ -except ImportError: +except ModulenotfoundExp_ : class GdsCollector_(object): @@ -156,7 +157,7 @@ def write_messages(self, outstream): try: from enum import Enum -except ImportError: +except ModulenotfoundExp_ : Enum = object # @@ -168,9 +169,14 @@ def write_messages(self, outstream): try: from generatedssuper import GeneratedsSuper -except ImportError as exp: +except ModulenotfoundExp_ as exp: + try: + from generatedssupersuper import GeneratedsSuperSuper + except ModulenotfoundExp_ as exp: + class GeneratedsSuperSuper(object): + pass - class GeneratedsSuper(object): + class GeneratedsSuper(GeneratedsSuperSuper): __hash__ = object.__hash__ tzoff_pattern = re_.compile(r'(\+|-)((0\d|1[0-3]):[0-5]\d|14:00)$') class _FixedOffsetTZ(datetime_.tzinfo): @@ -183,6 +189,30 @@ def tzname(self, dt): return self.__name def dst(self, dt): return None + def __str__(self): + settings = { + 'str_pretty_print': True, + 'str_indent_level': 0, + 'str_namespaceprefix': '', + 'str_name': None, + 'str_namespacedefs': '', + } + for n in settings: + if hasattr(self, n): + setattr(settings[n], self[n]) + from io import StringIO + output = StringIO() + self.export( + output, + settings['str_indent_level'], + pretty_print=settings['str_pretty_print'], + namespaceprefix_=settings['str_namespaceprefix'], + name_=settings['str_name'], + namespacedef_=settings['str_namespacedefs'] + ) + strval = output.getvalue() + output.close() + return strval def gds_format_string(self, input_data, input_name=''): return input_data def gds_parse_string(self, input_data, node=None, input_name=''): @@ -193,11 +223,11 @@ def gds_validate_string(self, input_data, node=None, input_name=''): else: return input_data def gds_format_base64(self, input_data, input_name=''): - return base64.b64encode(input_data) + return base64.b64encode(input_data).decode('ascii') def gds_validate_base64(self, input_data, node=None, input_name=''): return input_data def gds_format_integer(self, input_data, input_name=''): - return '%d' % input_data + return '%d' % int(input_data) def gds_parse_integer(self, input_data, node=None, input_name=''): try: ival = int(input_data) @@ -211,6 +241,8 @@ def gds_validate_integer(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires integer value') return value def gds_format_integer_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_integer_list( self, input_data, node=None, input_name=''): @@ -219,10 +251,10 @@ def gds_validate_integer_list( try: int(value) except (TypeError, ValueError): - raise_parse_error(node, 'Requires sequence of integer valuess') + raise_parse_error(node, 'Requires sequence of integer values') return values def gds_format_float(self, input_data, input_name=''): - return ('%.15f' % input_data).rstrip('0') + return ('%.15f' % float(input_data)).rstrip('0') def gds_parse_float(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -236,6 +268,8 @@ def gds_validate_float(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires float value') return value def gds_format_float_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_float_list( self, input_data, node=None, input_name=''): @@ -247,7 +281,12 @@ def gds_validate_float_list( raise_parse_error(node, 'Requires sequence of float values') return values def gds_format_decimal(self, input_data, input_name=''): - return ('%s' % input_data).rstrip('0') + return_value = '%s' % input_data + if '.' in return_value: + return_value = return_value.rstrip('0') + if return_value.endswith('.'): + return_value = return_value.rstrip('.') + return return_value def gds_parse_decimal(self, input_data, node=None, input_name=''): try: decimal_value = decimal_.Decimal(input_data) @@ -261,7 +300,9 @@ def gds_validate_decimal(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires decimal value') return value def gds_format_decimal_list(self, input_data, input_name=''): - return '%s' % ' '.join(input_data) + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] + return ' '.join([self.gds_format_decimal(item) for item in input_data]) def gds_validate_decimal_list( self, input_data, node=None, input_name=''): values = input_data.split() @@ -272,7 +313,7 @@ def gds_validate_decimal_list( raise_parse_error(node, 'Requires sequence of decimal values') return values def gds_format_double(self, input_data, input_name=''): - return '%e' % input_data + return '%s' % input_data def gds_parse_double(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -286,6 +327,8 @@ def gds_validate_double(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires double or float value') return value def gds_format_double_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_double_list( self, input_data, node=None, input_name=''): @@ -315,11 +358,14 @@ def gds_validate_boolean(self, input_data, node=None, input_name=''): '(one of True, 1, False, 0)') return input_data def gds_format_boolean_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_boolean_list( self, input_data, node=None, input_name=''): values = input_data.split() for value in values: + value = self.gds_parse_boolean(value, node, input_name) if value not in (True, 1, False, 0, ): raise_parse_error( node, @@ -766,7 +812,10 @@ def find_attr_value_(attr_name, node): value = attrs.get(attr_name) elif len(attr_parts) == 2: prefix, name = attr_parts - namespace = node.nsmap.get(prefix) + if prefix == 'xml': + namespace = 'http://www.w3.org/XML/1998/namespace' + else: + namespace = node.nsmap.get(prefix) if namespace is not None: value = attrs.get('{%s}%s' % (namespace, name, )) return value @@ -847,7 +896,7 @@ def exportSimple(self, outfile, level, name): self.name, base64.b64encode(self.value), self.name)) - def to_etree(self, element): + def to_etree(self, element, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.category == MixedContainer.CategoryText: # Prevent exporting empty content as empty lines. if self.value.strip(): @@ -867,7 +916,7 @@ def to_etree(self, element): subelement.text = self.to_etree_simple() else: # category == MixedContainer.CategoryComplex self.value.to_etree(element) - def to_etree_simple(self): + def to_etree_simple(self, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.content_type == MixedContainer.TypeString: text = self.value elif (self.content_type == MixedContainer.TypeInteger or @@ -956,14 +1005,14 @@ def __init__(self, Request=None, ShipperNumber=None, UserCreatedForm=None, gds_c self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Request = Request - self.Request_nsprefix_ = None + self.Request_nsprefix_ = "common" self.ShipperNumber = ShipperNumber self.ShipperNumber_nsprefix_ = None if UserCreatedForm is None: self.UserCreatedForm = [] else: self.UserCreatedForm = UserCreatedForm - self.UserCreatedForm_nsprefix_ = None + self.UserCreatedForm_nsprefix_ = "da" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -997,7 +1046,7 @@ def insert_UserCreatedForm_at(self, index, value): self.UserCreatedForm.insert(index, value) def replace_UserCreatedForm_at(self, index, value): self.UserCreatedForm[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Request is not None or self.ShipperNumber is not None or @@ -1021,17 +1070,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='U showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UploadRequest') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UploadRequest') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UploadRequest', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UploadRequest', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UploadRequest'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UploadRequest'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UploadRequest', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UploadRequest', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1052,14 +1101,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Request': obj_ = RequestType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1137,7 +1186,7 @@ def insert_UserCreatedFormDocumentType_at(self, index, value): self.UserCreatedFormDocumentType.insert(index, value) def replace_UserCreatedFormDocumentType_at(self, index, value): self.UserCreatedFormDocumentType[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.UserCreatedFormFileName is not None or self.UserCreatedFormFile is not None or @@ -1162,17 +1211,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='U showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UserCreatedForm') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UserCreatedForm') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UserCreatedForm', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UserCreatedForm', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UserCreatedForm'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UserCreatedForm'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UserCreatedForm', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UserCreatedForm', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1199,14 +1248,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'UserCreatedFormFileName': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'UserCreatedFormFileName') @@ -1251,9 +1300,9 @@ def __init__(self, Response=None, FormsHistoryDocumentID=None, gds_collector_=No self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Response = Response - self.Response_nsprefix_ = None + self.Response_nsprefix_ = "common" self.FormsHistoryDocumentID = FormsHistoryDocumentID - self.FormsHistoryDocumentID_nsprefix_ = None + self.FormsHistoryDocumentID_nsprefix_ = "da" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1277,7 +1326,7 @@ def get_FormsHistoryDocumentID(self): return self.FormsHistoryDocumentID def set_FormsHistoryDocumentID(self, FormsHistoryDocumentID): self.FormsHistoryDocumentID = FormsHistoryDocumentID - def hasContent_(self): + def _hasContent(self): if ( self.Response is not None or self.FormsHistoryDocumentID is not None @@ -1300,17 +1349,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='U showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UploadResponse') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UploadResponse') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UploadResponse', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UploadResponse', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UploadResponse'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UploadResponse'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UploadResponse', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UploadResponse', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1327,14 +1376,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Response': obj_ = ResponseType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1388,7 +1437,7 @@ def insert_DocumentID_at(self, index, value): self.DocumentID.insert(index, value) def replace_DocumentID_at(self, index, value): self.DocumentID[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.DocumentID ): @@ -1410,17 +1459,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='F showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FormsHistoryDocumentIDType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FormsHistoryDocumentIDType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FormsHistoryDocumentIDType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FormsHistoryDocumentIDType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FormsHistoryDocumentIDType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FormsHistoryDocumentIDType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FormsHistoryDocumentIDType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FormsHistoryDocumentIDType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1435,14 +1484,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'DocumentID': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'DocumentID') @@ -1463,7 +1512,7 @@ def __init__(self, Request=None, ShipperNumber=None, DocumentID=None, gds_collec self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Request = Request - self.Request_nsprefix_ = None + self.Request_nsprefix_ = "common" self.ShipperNumber = ShipperNumber self.ShipperNumber_nsprefix_ = None self.DocumentID = DocumentID @@ -1495,7 +1544,7 @@ def get_DocumentID(self): return self.DocumentID def set_DocumentID(self, DocumentID): self.DocumentID = DocumentID - def hasContent_(self): + def _hasContent(self): if ( self.Request is not None or self.ShipperNumber is not None or @@ -1519,17 +1568,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DeleteRequest') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DeleteRequest') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DeleteRequest', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DeleteRequest', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DeleteRequest'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DeleteRequest'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DeleteRequest', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DeleteRequest', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1551,14 +1600,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Request': obj_ = RequestType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1590,7 +1639,7 @@ def __init__(self, Response=None, gds_collector_=None, **kwargs_): self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Response = Response - self.Response_nsprefix_ = None + self.Response_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1610,7 +1659,7 @@ def get_Response(self): return self.Response def set_Response(self, Response): self.Response = Response - def hasContent_(self): + def _hasContent(self): if ( self.Response is not None ): @@ -1632,17 +1681,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DeleteResponse') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DeleteResponse') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DeleteResponse', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DeleteResponse', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DeleteResponse'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DeleteResponse'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DeleteResponse', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DeleteResponse', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1656,14 +1705,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Response': obj_ = ResponseType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1683,11 +1732,11 @@ def __init__(self, Request=None, ShipperNumber=None, FormsHistoryDocumentID=None self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Request = Request - self.Request_nsprefix_ = None + self.Request_nsprefix_ = "common" self.ShipperNumber = ShipperNumber self.ShipperNumber_nsprefix_ = None self.FormsHistoryDocumentID = FormsHistoryDocumentID - self.FormsHistoryDocumentID_nsprefix_ = None + self.FormsHistoryDocumentID_nsprefix_ = "da" self.FormsGroupID = FormsGroupID self.FormsGroupID_nsprefix_ = None self.ShipmentIdentifier = ShipmentIdentifier @@ -1760,7 +1809,7 @@ def insert_TrackingNumber_at(self, index, value): self.TrackingNumber.insert(index, value) def replace_TrackingNumber_at(self, index, value): self.TrackingNumber[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Request is not None or self.ShipperNumber is not None or @@ -1790,17 +1839,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PushToImageRepositoryRequest') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PushToImageRepositoryRequest') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PushToImageRepositoryRequest', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PushToImageRepositoryRequest', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PushToImageRepositoryRequest'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PushToImageRepositoryRequest'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PushToImageRepositoryRequest', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PushToImageRepositoryRequest', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1845,14 +1894,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Request': obj_ = RequestType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1948,7 +1997,7 @@ def insert_DocumentID_at(self, index, value): self.DocumentID.insert(index, value) def replace_DocumentID_at(self, index, value): self.DocumentID[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.DocumentID ): @@ -1970,17 +2019,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='F showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FormsHistoryDocIDImageReq') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FormsHistoryDocIDImageReq') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FormsHistoryDocIDImageReq', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FormsHistoryDocIDImageReq', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FormsHistoryDocIDImageReq'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FormsHistoryDocIDImageReq'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FormsHistoryDocIDImageReq', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FormsHistoryDocIDImageReq', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1995,14 +2044,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'DocumentID': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'DocumentID') @@ -2023,7 +2072,7 @@ def __init__(self, Response=None, FormsGroupID=None, gds_collector_=None, **kwar self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Response = Response - self.Response_nsprefix_ = None + self.Response_nsprefix_ = "common" self.FormsGroupID = FormsGroupID self.FormsGroupID_nsprefix_ = None def factory(*args_, **kwargs_): @@ -2049,7 +2098,7 @@ def get_FormsGroupID(self): return self.FormsGroupID def set_FormsGroupID(self, FormsGroupID): self.FormsGroupID = FormsGroupID - def hasContent_(self): + def _hasContent(self): if ( self.Response is not None or self.FormsGroupID is not None @@ -2072,17 +2121,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PushToImageRepositoryResponse') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PushToImageRepositoryResponse') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PushToImageRepositoryResponse', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PushToImageRepositoryResponse', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PushToImageRepositoryResponse'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PushToImageRepositoryResponse'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PushToImageRepositoryResponse', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PushToImageRepositoryResponse', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2100,14 +2149,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Response': obj_ = ResponseType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -2162,7 +2211,7 @@ def insert_Property_at(self, index, value): self.Property.insert(index, value) def replace_Property_at(self, index, value): self.Property[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Property ): @@ -2184,17 +2233,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ClientInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ClientInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ClientInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ClientInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ClientInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ClientInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ClientInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ClientInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2208,14 +2257,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Property': obj_ = PropertyType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -2242,7 +2291,7 @@ def __init__(self, RequestOption=None, SubVersion=None, TransactionReference=Non self.SubVersion = SubVersion self.SubVersion_nsprefix_ = None self.TransactionReference = TransactionReference - self.TransactionReference_nsprefix_ = None + self.TransactionReference_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -2276,7 +2325,7 @@ def get_TransactionReference(self): return self.TransactionReference def set_TransactionReference(self, TransactionReference): self.TransactionReference = TransactionReference - def hasContent_(self): + def _hasContent(self): if ( self.RequestOption or self.SubVersion is not None or @@ -2300,17 +2349,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='RequestType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='RequestType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='RequestType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='RequestType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2332,14 +2381,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'RequestOption': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'RequestOption') @@ -2397,7 +2446,7 @@ def get_TransactionIdentifier(self): return self.TransactionIdentifier def set_TransactionIdentifier(self, TransactionIdentifier): self.TransactionIdentifier = TransactionIdentifier - def hasContent_(self): + def _hasContent(self): if ( self.CustomerContext is not None or self.TransactionIdentifier is not None @@ -2420,17 +2469,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionReferenceType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionReferenceType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionReferenceType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionReferenceType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='TransactionReferenceType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='TransactionReferenceType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='TransactionReferenceType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='TransactionReferenceType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2449,14 +2498,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CustomerContext': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CustomerContext') @@ -2483,19 +2532,19 @@ def __init__(self, ResponseStatus=None, Alert=None, AlertDetail=None, Transactio self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.ResponseStatus = ResponseStatus - self.ResponseStatus_nsprefix_ = None + self.ResponseStatus_nsprefix_ = "common" if Alert is None: self.Alert = [] else: self.Alert = Alert - self.Alert_nsprefix_ = None + self.Alert_nsprefix_ = "common" if AlertDetail is None: self.AlertDetail = [] else: self.AlertDetail = AlertDetail - self.AlertDetail_nsprefix_ = None + self.AlertDetail_nsprefix_ = "common" self.TransactionReference = TransactionReference - self.TransactionReference_nsprefix_ = None + self.TransactionReference_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -2539,7 +2588,7 @@ def get_TransactionReference(self): return self.TransactionReference def set_TransactionReference(self, TransactionReference): self.TransactionReference = TransactionReference - def hasContent_(self): + def _hasContent(self): if ( self.ResponseStatus is not None or self.Alert or @@ -2564,17 +2613,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ResponseType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ResponseType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ResponseType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ResponseType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2597,14 +2646,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ResponseStatus': obj_ = CodeDescriptionType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -2665,7 +2714,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -2688,17 +2737,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeDescriptionType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeDescriptionType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeDescriptionType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeDescriptionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='CodeDescriptionType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='CodeDescriptionType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='CodeDescriptionType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='CodeDescriptionType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2717,14 +2766,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -2755,7 +2804,7 @@ def __init__(self, Code=None, Description=None, ElementLevelInformation=None, gd self.Description = Description self.Description_nsprefix_ = None self.ElementLevelInformation = ElementLevelInformation - self.ElementLevelInformation_nsprefix_ = None + self.ElementLevelInformation_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -2783,7 +2832,7 @@ def get_ElementLevelInformation(self): return self.ElementLevelInformation def set_ElementLevelInformation(self, ElementLevelInformation): self.ElementLevelInformation = ElementLevelInformation - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None or @@ -2807,17 +2856,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DetailType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DetailType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DetailType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DetailType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='DetailType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='DetailType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='DetailType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='DetailType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2839,14 +2888,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -2883,7 +2932,7 @@ def __init__(self, Level=None, ElementIdentifier=None, gds_collector_=None, **kw self.ElementIdentifier = [] else: self.ElementIdentifier = ElementIdentifier - self.ElementIdentifier_nsprefix_ = None + self.ElementIdentifier_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -2913,7 +2962,7 @@ def insert_ElementIdentifier_at(self, index, value): self.ElementIdentifier.insert(index, value) def replace_ElementIdentifier_at(self, index, value): self.ElementIdentifier[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Level is not None or self.ElementIdentifier @@ -2936,17 +2985,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementLevelInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementLevelInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementLevelInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementLevelInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementLevelInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementLevelInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementLevelInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementLevelInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2964,14 +3013,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Level': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Level') @@ -3023,7 +3072,7 @@ def get_Value(self): return self.Value def set_Value(self, Value): self.Value = Value - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Value is not None @@ -3046,17 +3095,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementIdentifierType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementIdentifierType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementIdentifierType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementIdentifierType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementIdentifierType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementIdentifierType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementIdentifierType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementIdentifierType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3075,14 +3124,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -3132,7 +3181,7 @@ def set_Key(self, Key): self.Key = Key def get_valueOf_(self): return self.valueOf_ def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_ - def hasContent_(self): + def _hasContent(self): if ( (1 if type(self.valueOf_) in [int,float] else self.valueOf_) ): @@ -3154,19 +3203,19 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PropertyType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PropertyType') + if self._hasContent(): outfile.write('>') outfile.write(self.convert_unicode(self.valueOf_)) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PropertyType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PropertyType', pretty_print=pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PropertyType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PropertyType'): if self.Key is not None and 'Key' not in already_processed: already_processed.add('Key') outfile.write(' Key=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.Key), input_name='Key')), )) - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PropertyType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PropertyType', fromsubclass_=False, pretty_print=True): pass def build(self, node, gds_collector_=None): self.gds_collector_ = gds_collector_ @@ -3174,18 +3223,18 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) self.valueOf_ = get_all_text_(node) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('Key', node) if value is not None and 'Key' not in already_processed: already_processed.add('Key') self.Key = value - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): pass # end class PropertyType @@ -3264,7 +3313,8 @@ def parse(inFileName, silence=False, print_warnings=True): return rootObj -def parseEtree(inFileName, silence=False, print_warnings=True): +def parseEtree(inFileName, silence=False, print_warnings=True, + mapping=None, reverse_mapping=None, nsmap=None): parser = None doc = parsexml_(inFileName, parser) gds_collector = GdsCollector_() @@ -3275,10 +3325,15 @@ def parseEtree(inFileName, silence=False, print_warnings=True): rootClass = UploadRequest rootObj = rootClass.factory() rootObj.build(rootNode, gds_collector_=gds_collector) + if mapping is None: + mapping = {} + if reverse_mapping is None: + reverse_mapping = {} + rootElement = rootObj.to_etree( + None, name_=rootTag, mapping_=mapping, + reverse_mapping_=reverse_mapping, nsmap_=nsmap) + reverse_node_mapping = rootObj.gds_reverse_node_mapping(mapping) # Enable Python to collect the space used by the DOM. - mapping = {} - rootElement = rootObj.to_etree(None, name_=rootTag, mapping_=mapping) - reverse_mapping = rootObj.gds_reverse_node_mapping(mapping) if not SaveElementTreeNode: doc = None rootNode = None @@ -3295,7 +3350,7 @@ def parseEtree(inFileName, silence=False, print_warnings=True): len(gds_collector.get_messages()), )) gds_collector.write_messages(sys.stderr) sys.stderr.write(separator) - return rootObj, rootElement, mapping, reverse_mapping + return rootObj, rootElement, mapping, reverse_node_mapping def parseString(inString, silence=False, print_warnings=True): @@ -3379,6 +3434,44 @@ def main(): RenameMappings_ = { } +# +# Mapping of namespaces to types defined in them +# and the file in which each is defined. +# simpleTypes are marked "ST" and complexTypes "CT". +NamespaceToDefMappings_ = {'http://www.ups.com/XMLSchema/XOLTWS/Common/v1.0': [('ClientInformationType', + './schemas/common.xsd', + 'CT'), + ('RequestType', + './schemas/common.xsd', + 'CT'), + ('TransactionReferenceType', + './schemas/common.xsd', + 'CT'), + ('ResponseType', + './schemas/common.xsd', + 'CT'), + ('CodeDescriptionType', + './schemas/common.xsd', + 'CT'), + ('DetailType', + './schemas/common.xsd', + 'CT'), + ('ElementLevelInformationType', + './schemas/common.xsd', + 'CT'), + ('ElementIdentifierType', + './schemas/common.xsd', + 'CT')], + 'http://www.ups.com/XMLSchema/XOLTWS/PaperlessDocumentAPI/v1.0': [('UserCreatedForm', + './schemas/PaperlessDocumentAPI.xsd', + 'CT'), + ('FormsHistoryDocumentIDType', + './schemas/PaperlessDocumentAPI.xsd', + 'CT'), + ('FormsHistoryDocIDImageReq', + './schemas/PaperlessDocumentAPI.xsd', + 'CT')]} + __all__ = [ "ClientInformationType", "CodeDescriptionType", diff --git a/schemas/ups/ups_lib/pickup_web_service_schema.py b/schemas/ups/ups_lib/pickup_web_service_schema.py index a011f5be92..27af10ae91 100644 --- a/schemas/ups/ups_lib/pickup_web_service_schema.py +++ b/schemas/ups/ups_lib/pickup_web_service_schema.py @@ -2,34 +2,35 @@ # -*- coding: utf-8 -*- # -# Generated Sat Mar 7 09:04:18 2020 by generateDS.py version 2.35.15. -# Python 3.8.1 (v3.8.1:1b293b6006, Dec 18 2019, 14:08:53) [Clang 6.0 (clang-600.0.57)] +# Generated Wed Nov 10 10:01:02 2021 by generateDS.py version 2.40.5. +# Python 3.8.6 (v3.8.6:db455296be, Sep 23 2020, 13:31:39) [Clang 6.0 (clang-600.0.57)] # # Command line options: # ('--no-namespace-defs', '') -# ('-o', './python/pickup_web_service_schema.py') +# ('-o', './ups_lib/pickup_web_service_schema.py') # # Command line arguments: # ./schemas/PickupWebServiceSchema.xsd # # Command line: -# /Users/danielkobina/Documents/Open/.env/bin/generateDS --no-namespace-defs -o "./python/pickup_web_service_schema.py" ./schemas/PickupWebServiceSchema.xsd +# /Users/danielkobina/Workspace/project/purplship/.venv/purplship/bin/generateDS --no-namespace-defs -o "./ups_lib/pickup_web_service_schema.py" ./schemas/PickupWebServiceSchema.xsd # # Current working directory (os.getcwd()): -# 2020-03 +# ups # +import sys +try: + ModulenotfoundExp_ = ModuleNotFoundError +except NameError: + ModulenotfoundExp_ = ImportError from six.moves import zip_longest import os -import sys import re as re_ import base64 import datetime as datetime_ import decimal as decimal_ -try: - from lxml import etree as etree_ -except ImportError: - from xml.etree import ElementTree as etree_ +from lxml import etree as etree_ Validate_simpletypes_ = True @@ -92,7 +93,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # Additionally, the generatedsnamespaces module can contain a python # dictionary named GenerateDSNamespaceTypePrefixes that associates element # types with the namespace prefixes that are to be added to the -# "xsi:type" attribute value. See the exportAttributes method of +# "xsi:type" attribute value. See the _exportAttributes method of # any generated element type and the generation of "xsi:type" for an # example of the use of this table. # An example table: @@ -107,11 +108,11 @@ def parsexmlstring_(instring, parser=None, **kwargs): try: from generatedsnamespaces import GenerateDSNamespaceDefs as GenerateDSNamespaceDefs_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceDefs_ = {} try: from generatedsnamespaces import GenerateDSNamespaceTypePrefixes as GenerateDSNamespaceTypePrefixes_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceTypePrefixes_ = {} # @@ -122,7 +123,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # try: from generatedscollector import GdsCollector as GdsCollector_ -except ImportError: +except ModulenotfoundExp_ : class GdsCollector_(object): @@ -156,7 +157,7 @@ def write_messages(self, outstream): try: from enum import Enum -except ImportError: +except ModulenotfoundExp_ : Enum = object # @@ -168,9 +169,14 @@ def write_messages(self, outstream): try: from generatedssuper import GeneratedsSuper -except ImportError as exp: +except ModulenotfoundExp_ as exp: + try: + from generatedssupersuper import GeneratedsSuperSuper + except ModulenotfoundExp_ as exp: + class GeneratedsSuperSuper(object): + pass - class GeneratedsSuper(object): + class GeneratedsSuper(GeneratedsSuperSuper): __hash__ = object.__hash__ tzoff_pattern = re_.compile(r'(\+|-)((0\d|1[0-3]):[0-5]\d|14:00)$') class _FixedOffsetTZ(datetime_.tzinfo): @@ -183,6 +189,30 @@ def tzname(self, dt): return self.__name def dst(self, dt): return None + def __str__(self): + settings = { + 'str_pretty_print': True, + 'str_indent_level': 0, + 'str_namespaceprefix': '', + 'str_name': None, + 'str_namespacedefs': '', + } + for n in settings: + if hasattr(self, n): + setattr(settings[n], self[n]) + from io import StringIO + output = StringIO() + self.export( + output, + settings['str_indent_level'], + pretty_print=settings['str_pretty_print'], + namespaceprefix_=settings['str_namespaceprefix'], + name_=settings['str_name'], + namespacedef_=settings['str_namespacedefs'] + ) + strval = output.getvalue() + output.close() + return strval def gds_format_string(self, input_data, input_name=''): return input_data def gds_parse_string(self, input_data, node=None, input_name=''): @@ -193,11 +223,11 @@ def gds_validate_string(self, input_data, node=None, input_name=''): else: return input_data def gds_format_base64(self, input_data, input_name=''): - return base64.b64encode(input_data) + return base64.b64encode(input_data).decode('ascii') def gds_validate_base64(self, input_data, node=None, input_name=''): return input_data def gds_format_integer(self, input_data, input_name=''): - return '%d' % input_data + return '%d' % int(input_data) def gds_parse_integer(self, input_data, node=None, input_name=''): try: ival = int(input_data) @@ -211,6 +241,8 @@ def gds_validate_integer(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires integer value') return value def gds_format_integer_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_integer_list( self, input_data, node=None, input_name=''): @@ -219,10 +251,10 @@ def gds_validate_integer_list( try: int(value) except (TypeError, ValueError): - raise_parse_error(node, 'Requires sequence of integer valuess') + raise_parse_error(node, 'Requires sequence of integer values') return values def gds_format_float(self, input_data, input_name=''): - return ('%.15f' % input_data).rstrip('0') + return ('%.15f' % float(input_data)).rstrip('0') def gds_parse_float(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -236,6 +268,8 @@ def gds_validate_float(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires float value') return value def gds_format_float_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_float_list( self, input_data, node=None, input_name=''): @@ -247,7 +281,12 @@ def gds_validate_float_list( raise_parse_error(node, 'Requires sequence of float values') return values def gds_format_decimal(self, input_data, input_name=''): - return ('%s' % input_data).rstrip('0') + return_value = '%s' % input_data + if '.' in return_value: + return_value = return_value.rstrip('0') + if return_value.endswith('.'): + return_value = return_value.rstrip('.') + return return_value def gds_parse_decimal(self, input_data, node=None, input_name=''): try: decimal_value = decimal_.Decimal(input_data) @@ -261,7 +300,9 @@ def gds_validate_decimal(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires decimal value') return value def gds_format_decimal_list(self, input_data, input_name=''): - return '%s' % ' '.join(input_data) + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] + return ' '.join([self.gds_format_decimal(item) for item in input_data]) def gds_validate_decimal_list( self, input_data, node=None, input_name=''): values = input_data.split() @@ -272,7 +313,7 @@ def gds_validate_decimal_list( raise_parse_error(node, 'Requires sequence of decimal values') return values def gds_format_double(self, input_data, input_name=''): - return '%e' % input_data + return '%s' % input_data def gds_parse_double(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -286,6 +327,8 @@ def gds_validate_double(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires double or float value') return value def gds_format_double_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_double_list( self, input_data, node=None, input_name=''): @@ -315,11 +358,14 @@ def gds_validate_boolean(self, input_data, node=None, input_name=''): '(one of True, 1, False, 0)') return input_data def gds_format_boolean_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_boolean_list( self, input_data, node=None, input_name=''): values = input_data.split() for value in values: + value = self.gds_parse_boolean(value, node, input_name) if value not in (True, 1, False, 0, ): raise_parse_error( node, @@ -766,7 +812,10 @@ def find_attr_value_(attr_name, node): value = attrs.get(attr_name) elif len(attr_parts) == 2: prefix, name = attr_parts - namespace = node.nsmap.get(prefix) + if prefix == 'xml': + namespace = 'http://www.w3.org/XML/1998/namespace' + else: + namespace = node.nsmap.get(prefix) if namespace is not None: value = attrs.get('{%s}%s' % (namespace, name, )) return value @@ -847,7 +896,7 @@ def exportSimple(self, outfile, level, name): self.name, base64.b64encode(self.value), self.name)) - def to_etree(self, element): + def to_etree(self, element, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.category == MixedContainer.CategoryText: # Prevent exporting empty content as empty lines. if self.value.strip(): @@ -867,7 +916,7 @@ def to_etree(self, element): subelement.text = self.to_etree_simple() else: # category == MixedContainer.CategoryComplex self.value.to_etree(element) - def to_etree_simple(self): + def to_etree_simple(self, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.content_type == MixedContainer.TypeString: text = self.value elif (self.content_type == MixedContainer.TypeInteger or @@ -956,7 +1005,7 @@ def __init__(self, Request=None, CountryCode=None, gds_collector_=None, **kwargs self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Request = Request - self.Request_nsprefix_ = None + self.Request_nsprefix_ = "common" self.CountryCode = CountryCode self.CountryCode_nsprefix_ = None def factory(*args_, **kwargs_): @@ -982,7 +1031,7 @@ def get_CountryCode(self): return self.CountryCode def set_CountryCode(self, CountryCode): self.CountryCode = CountryCode - def hasContent_(self): + def _hasContent(self): if ( self.Request is not None or self.CountryCode is not None @@ -1005,17 +1054,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupGetPoliticalDivision1ListRequest') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupGetPoliticalDivision1ListRequest') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupGetPoliticalDivision1ListRequest', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupGetPoliticalDivision1ListRequest', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupGetPoliticalDivision1ListRequest'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupGetPoliticalDivision1ListRequest'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupGetPoliticalDivision1ListRequest', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupGetPoliticalDivision1ListRequest', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1033,14 +1082,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Request': obj_ = RequestType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1066,7 +1115,7 @@ def __init__(self, Request=None, RatePickupIndicator='N', TaxInformationIndicato self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Request = Request - self.Request_nsprefix_ = None + self.Request_nsprefix_ = "common" self.RatePickupIndicator = RatePickupIndicator self.RatePickupIndicator_nsprefix_ = None self.TaxInformationIndicator = TaxInformationIndicator @@ -1218,7 +1267,7 @@ def get_ShippingLabelsAvailable(self): return self.ShippingLabelsAvailable def set_ShippingLabelsAvailable(self, ShippingLabelsAvailable): self.ShippingLabelsAvailable = ShippingLabelsAvailable - def hasContent_(self): + def _hasContent(self): if ( self.Request is not None or self.RatePickupIndicator != "N" or @@ -1259,17 +1308,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupCreationRequest') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupCreationRequest') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupCreationRequest', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupCreationRequest', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupCreationRequest'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupCreationRequest'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupCreationRequest', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupCreationRequest', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1351,14 +1400,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Request': obj_ = RequestType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1484,7 +1533,7 @@ def __init__(self, Request=None, PickupPiece=None, OriginAddress=None, Destinati self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Request = Request - self.Request_nsprefix_ = None + self.Request_nsprefix_ = "common" if PickupPiece is None: self.PickupPiece = [] else: @@ -1543,7 +1592,7 @@ def get_ProximitySearchIndicator(self): return self.ProximitySearchIndicator def set_ProximitySearchIndicator(self, ProximitySearchIndicator): self.ProximitySearchIndicator = ProximitySearchIndicator - def hasContent_(self): + def _hasContent(self): if ( self.Request is not None or self.PickupPiece or @@ -1570,17 +1619,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupGetServiceCenterFacilitiesRequest') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupGetServiceCenterFacilitiesRequest') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupGetServiceCenterFacilitiesRequest', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupGetServiceCenterFacilitiesRequest', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupGetServiceCenterFacilitiesRequest'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupGetServiceCenterFacilitiesRequest'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupGetServiceCenterFacilitiesRequest', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupGetServiceCenterFacilitiesRequest', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1611,14 +1660,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Request': obj_ = RequestType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1665,7 +1714,7 @@ def __init__(self, Request=None, ShipperAccount=None, PickupAddress=None, Altern self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Request = Request - self.Request_nsprefix_ = None + self.Request_nsprefix_ = "common" self.ShipperAccount = ShipperAccount self.ShipperAccount_nsprefix_ = None self.PickupAddress = PickupAddress @@ -1727,7 +1776,7 @@ def get_UserLevelDiscountIndicator(self): return self.UserLevelDiscountIndicator def set_UserLevelDiscountIndicator(self, UserLevelDiscountIndicator): self.UserLevelDiscountIndicator = UserLevelDiscountIndicator - def hasContent_(self): + def _hasContent(self): if ( self.Request is not None or self.ShipperAccount is not None or @@ -1756,17 +1805,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupRateRequest') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupRateRequest') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupRateRequest', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupRateRequest', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupRateRequest'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupRateRequest'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupRateRequest', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupRateRequest', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1805,14 +1854,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Request': obj_ = RequestType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1871,7 +1920,7 @@ def __init__(self, Request=None, CancelBy=None, PRN=None, gds_collector_=None, * self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Request = Request - self.Request_nsprefix_ = None + self.Request_nsprefix_ = "common" self.CancelBy = CancelBy self.CancelBy_nsprefix_ = None self.PRN = PRN @@ -1903,7 +1952,7 @@ def get_PRN(self): return self.PRN def set_PRN(self, PRN): self.PRN = PRN - def hasContent_(self): + def _hasContent(self): if ( self.Request is not None or self.CancelBy is not None or @@ -1927,17 +1976,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupCancelRequest') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupCancelRequest') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupCancelRequest', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupCancelRequest', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupCancelRequest'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupCancelRequest'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupCancelRequest', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupCancelRequest', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1959,14 +2008,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Request': obj_ = RequestType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1998,7 +2047,7 @@ def __init__(self, Request=None, PickupType=None, AccountNumber=None, gds_collec self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Request = Request - self.Request_nsprefix_ = None + self.Request_nsprefix_ = "common" self.PickupType = PickupType self.PickupType_nsprefix_ = None self.AccountNumber = AccountNumber @@ -2030,7 +2079,7 @@ def get_AccountNumber(self): return self.AccountNumber def set_AccountNumber(self, AccountNumber): self.AccountNumber = AccountNumber - def hasContent_(self): + def _hasContent(self): if ( self.Request is not None or self.PickupType is not None or @@ -2054,17 +2103,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupPendingStatusRequest') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupPendingStatusRequest') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupPendingStatusRequest', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupPendingStatusRequest', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupPendingStatusRequest'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupPendingStatusRequest'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupPendingStatusRequest', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupPendingStatusRequest', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2086,14 +2135,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Request': obj_ = RequestType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -2125,7 +2174,7 @@ def __init__(self, Response=None, PoliticalDivision1=None, gds_collector_=None, self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Response = Response - self.Response_nsprefix_ = None + self.Response_nsprefix_ = "common" if PoliticalDivision1 is None: self.PoliticalDivision1 = [] else: @@ -2160,7 +2209,7 @@ def insert_PoliticalDivision1_at(self, index, value): self.PoliticalDivision1.insert(index, value) def replace_PoliticalDivision1_at(self, index, value): self.PoliticalDivision1[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Response is not None or self.PoliticalDivision1 @@ -2183,17 +2232,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupGetPoliticalDivision1ListResponse') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupGetPoliticalDivision1ListResponse') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupGetPoliticalDivision1ListResponse', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupGetPoliticalDivision1ListResponse', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupGetPoliticalDivision1ListResponse'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupGetPoliticalDivision1ListResponse'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupGetPoliticalDivision1ListResponse', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupGetPoliticalDivision1ListResponse', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2211,14 +2260,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Response': obj_ = ResponseType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -2244,7 +2293,7 @@ def __init__(self, Response=None, PRN=None, WeekendServiceTerritoryIndicator='N' self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Response = Response - self.Response_nsprefix_ = None + self.Response_nsprefix_ = "common" self.PRN = PRN self.PRN_nsprefix_ = None self.WeekendServiceTerritoryIndicator = WeekendServiceTerritoryIndicator @@ -2288,7 +2337,7 @@ def get_RateResult(self): return self.RateResult def set_RateResult(self, RateResult): self.RateResult = RateResult - def hasContent_(self): + def _hasContent(self): if ( self.Response is not None or self.PRN is not None or @@ -2314,17 +2363,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupCreationResponse') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupCreationResponse') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupCreationResponse', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupCreationResponse', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupCreationResponse'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupCreationResponse'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupCreationResponse', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupCreationResponse', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2352,14 +2401,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Response': obj_ = ResponseType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -2401,7 +2450,7 @@ def __init__(self, Response=None, RateResult=None, WeekendServiceTerritoryIndica self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Response = Response - self.Response_nsprefix_ = None + self.Response_nsprefix_ = "common" self.RateResult = RateResult self.RateResult_nsprefix_ = None self.WeekendServiceTerritoryIndicator = WeekendServiceTerritoryIndicator @@ -2433,7 +2482,7 @@ def get_WeekendServiceTerritoryIndicator(self): return self.WeekendServiceTerritoryIndicator def set_WeekendServiceTerritoryIndicator(self, WeekendServiceTerritoryIndicator): self.WeekendServiceTerritoryIndicator = WeekendServiceTerritoryIndicator - def hasContent_(self): + def _hasContent(self): if ( self.Response is not None or self.RateResult is not None or @@ -2457,17 +2506,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupRateResponse') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupRateResponse') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupRateResponse', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupRateResponse', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupRateResponse'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupRateResponse'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupRateResponse', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupRateResponse', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2488,14 +2537,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Response': obj_ = ResponseType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -2526,7 +2575,7 @@ def __init__(self, Response=None, PickupType=None, GWNStatus=None, gds_collector self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Response = Response - self.Response_nsprefix_ = None + self.Response_nsprefix_ = "common" self.PickupType = PickupType self.PickupType_nsprefix_ = None self.GWNStatus = GWNStatus @@ -2558,7 +2607,7 @@ def get_GWNStatus(self): return self.GWNStatus def set_GWNStatus(self, GWNStatus): self.GWNStatus = GWNStatus - def hasContent_(self): + def _hasContent(self): if ( self.Response is not None or self.PickupType is not None or @@ -2582,17 +2631,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupCancelResponse') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupCancelResponse') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupCancelResponse', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupCancelResponse', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupCancelResponse'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupCancelResponse'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupCancelResponse', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupCancelResponse', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2613,14 +2662,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Response': obj_ = ResponseType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -2651,7 +2700,7 @@ def __init__(self, Response=None, PendingStatus=None, gds_collector_=None, **kwa self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Response = Response - self.Response_nsprefix_ = None + self.Response_nsprefix_ = "common" if PendingStatus is None: self.PendingStatus = [] else: @@ -2686,7 +2735,7 @@ def insert_PendingStatus_at(self, index, value): self.PendingStatus.insert(index, value) def replace_PendingStatus_at(self, index, value): self.PendingStatus[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Response is not None or self.PendingStatus @@ -2709,17 +2758,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupPendingStatusResponse') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupPendingStatusResponse') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupPendingStatusResponse', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupPendingStatusResponse', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupPendingStatusResponse'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupPendingStatusResponse'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupPendingStatusResponse', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupPendingStatusResponse', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2736,14 +2785,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Response': obj_ = ResponseType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -2768,7 +2817,7 @@ def __init__(self, Response=None, ServiceCenterLocation=None, gds_collector_=Non self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Response = Response - self.Response_nsprefix_ = None + self.Response_nsprefix_ = "common" self.ServiceCenterLocation = ServiceCenterLocation self.ServiceCenterLocation_nsprefix_ = None def factory(*args_, **kwargs_): @@ -2794,7 +2843,7 @@ def get_ServiceCenterLocation(self): return self.ServiceCenterLocation def set_ServiceCenterLocation(self, ServiceCenterLocation): self.ServiceCenterLocation = ServiceCenterLocation - def hasContent_(self): + def _hasContent(self): if ( self.Response is not None or self.ServiceCenterLocation is not None @@ -2817,17 +2866,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupGetServiceCenterFacilitiesResponse') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupGetServiceCenterFacilitiesResponse') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupGetServiceCenterFacilitiesResponse', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupGetServiceCenterFacilitiesResponse', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupGetServiceCenterFacilitiesResponse'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupGetServiceCenterFacilitiesResponse'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupGetServiceCenterFacilitiesResponse', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupGetServiceCenterFacilitiesResponse', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2844,14 +2893,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Response': obj_ = ResponseType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -2911,7 +2960,7 @@ def get_PickupFacilities(self): return self.PickupFacilities def set_PickupFacilities(self, PickupFacilities): self.PickupFacilities = PickupFacilities - def hasContent_(self): + def _hasContent(self): if ( self.DropOffFacilities or self.PickupFacilities is not None @@ -2934,17 +2983,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ServiceCenterLocationsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ServiceCenterLocationsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ServiceCenterLocationsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ServiceCenterLocationsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ServiceCenterLocationsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ServiceCenterLocationsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ServiceCenterLocationsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ServiceCenterLocationsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2961,14 +3010,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'DropOffFacilities': obj_ = DropOffFacilitiesType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -3082,7 +3131,7 @@ def get_Distance(self): return self.Distance def set_Distance(self, Distance): self.Distance = Distance - def hasContent_(self): + def _hasContent(self): if ( self.Name is not None or self.Address is not None or @@ -3114,17 +3163,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DropOffFacilitiesType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DropOffFacilitiesType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DropOffFacilitiesType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DropOffFacilitiesType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DropOffFacilitiesType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DropOffFacilitiesType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DropOffFacilitiesType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DropOffFacilitiesType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3175,14 +3224,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Name': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Name') @@ -3339,7 +3388,7 @@ def get_SortCode(self): return self.SortCode def set_SortCode(self, SortCode): self.SortCode = SortCode - def hasContent_(self): + def _hasContent(self): if ( self.Name is not None or self.Address is not None or @@ -3371,17 +3420,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupFacilitiesType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupFacilitiesType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupFacilitiesType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupFacilitiesType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupFacilitiesType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupFacilitiesType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupFacilitiesType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupFacilitiesType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3434,14 +3483,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Name': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Name') @@ -3549,7 +3598,7 @@ def insert_DayOfWeek_at(self, index, value): self.DayOfWeek.insert(index, value) def replace_DayOfWeek_at(self, index, value): self.DayOfWeek[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.DayOfWeek ): @@ -3571,17 +3620,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='F showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FacilityTimeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FacilityTimeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FacilityTimeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FacilityTimeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FacilityTimeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FacilityTimeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FacilityTimeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FacilityTimeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3595,14 +3644,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'DayOfWeek': obj_ = DayOfWeekType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -3678,7 +3727,7 @@ def get_LastDrop(self): return self.LastDrop def set_LastDrop(self, LastDrop): self.LastDrop = LastDrop - def hasContent_(self): + def _hasContent(self): if ( self.Day is not None or self.EarliestDropOfforPickup is not None or @@ -3706,17 +3755,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DayOfWeekType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DayOfWeekType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DayOfWeekType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DayOfWeekType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DayOfWeekType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DayOfWeekType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DayOfWeekType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DayOfWeekType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3755,14 +3804,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Day': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Day') @@ -3857,7 +3906,7 @@ def get_ContainerCode(self): return self.ContainerCode def set_ContainerCode(self, ContainerCode): self.ContainerCode = ContainerCode - def hasContent_(self): + def _hasContent(self): if ( self.ServiceCode is not None or self.Quantity is not None or @@ -3882,17 +3931,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupPieceType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupPieceType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupPieceType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupPieceType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupPieceType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupPieceType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupPieceType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupPieceType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3919,14 +3968,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ServiceCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ServiceCode') @@ -4003,7 +4052,7 @@ def get_ContainerCode(self): return self.ContainerCode def set_ContainerCode(self, ContainerCode): self.ContainerCode = ContainerCode - def hasContent_(self): + def _hasContent(self): if ( self.ServiceCode is not None or self.Quantity is not None or @@ -4028,17 +4077,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupPieceServiceType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupPieceServiceType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupPieceServiceType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupPieceServiceType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupPieceServiceType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupPieceServiceType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupPieceServiceType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupPieceServiceType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4065,14 +4114,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ServiceCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ServiceCode') @@ -4161,7 +4210,7 @@ def get_GWNIndicator(self): return self.GWNIndicator def set_GWNIndicator(self, GWNIndicator): self.GWNIndicator = GWNIndicator - def hasContent_(self): + def _hasContent(self): if ( self.LocalDate is not None or self.LocalTime is not None or @@ -4188,17 +4237,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='T showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TodayType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TodayType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TodayType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TodayType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TodayType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TodayType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TodayType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TodayType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4233,14 +4282,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'LocalDate': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'LocalDate') @@ -4335,7 +4384,7 @@ def get_GWNIndicator(self): return self.GWNIndicator def set_GWNIndicator(self, GWNIndicator): self.GWNIndicator = GWNIndicator - def hasContent_(self): + def _hasContent(self): if ( self.ServiceDate is not None or self.CallByTime is not None or @@ -4361,17 +4410,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='F showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FutureServiceDateType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FutureServiceDateType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FutureServiceDateType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FutureServiceDateType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FutureServiceDateType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FutureServiceDateType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FutureServiceDateType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FutureServiceDateType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4402,14 +4451,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ServiceDate': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ServiceDate') @@ -4486,7 +4535,7 @@ def get_PickupDate(self): return self.PickupDate def set_PickupDate(self, PickupDate): self.PickupDate = PickupDate - def hasContent_(self): + def _hasContent(self): if ( self.CloseTime is not None or self.ReadyTime is not None or @@ -4510,17 +4559,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupDateInfoType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupDateInfoType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupDateInfoType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupDateInfoType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupDateInfoType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupDateInfoType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupDateInfoType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupDateInfoType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4543,14 +4592,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CloseTime': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CloseTime') @@ -4609,7 +4658,7 @@ def get_UnitOfMeasurement(self): return self.UnitOfMeasurement def set_UnitOfMeasurement(self, UnitOfMeasurement): self.UnitOfMeasurement = UnitOfMeasurement - def hasContent_(self): + def _hasContent(self): if ( self.Weight is not None or self.UnitOfMeasurement is not None @@ -4632,17 +4681,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='W showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='WeightType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='WeightType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='WeightType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='WeightType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='WeightType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='WeightType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='WeightType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='WeightType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4661,14 +4710,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Weight': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Weight') @@ -4721,7 +4770,7 @@ def get_AccountCountryCode(self): return self.AccountCountryCode def set_AccountCountryCode(self, AccountCountryCode): self.AccountCountryCode = AccountCountryCode - def hasContent_(self): + def _hasContent(self): if ( self.AccountNumber is not None or self.AccountCountryCode is not None @@ -4744,17 +4793,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipperAccountType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipperAccountType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipperAccountType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipperAccountType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipperAccountType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipperAccountType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipperAccountType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipperAccountType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4773,14 +4822,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AccountNumber': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'AccountNumber') @@ -4839,7 +4888,7 @@ def get_TaxInformation(self): return self.TaxInformation def set_TaxInformation(self, TaxInformation): self.TaxInformation = TaxInformation - def hasContent_(self): + def _hasContent(self): if ( self.Account is not None or self.ChargeCard is not None or @@ -4863,17 +4912,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipperType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipperType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipperType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipperType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipperType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipperType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipperType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipperType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4893,14 +4942,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Account': obj_ = AccountType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -4968,7 +5017,7 @@ def get_InterchangeSystemCode(self): return self.InterchangeSystemCode def set_InterchangeSystemCode(self, InterchangeSystemCode): self.InterchangeSystemCode = InterchangeSystemCode - def hasContent_(self): + def _hasContent(self): if ( self.VatTaxID is not None or self.TaxIDType is not None or @@ -4993,17 +5042,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='T showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TaxInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TaxInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TaxInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TaxInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TaxInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TaxInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TaxInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TaxInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5030,14 +5079,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'VatTaxID': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'VatTaxID') @@ -5102,7 +5151,7 @@ def get_AccountCountryCode(self): return self.AccountCountryCode def set_AccountCountryCode(self, AccountCountryCode): self.AccountCountryCode = AccountCountryCode - def hasContent_(self): + def _hasContent(self): if ( self.AccountNumber is not None or self.AccountCountryCode is not None @@ -5125,17 +5174,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AccountType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AccountType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AccountType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AccountType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AccountType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AccountType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AccountType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AccountType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5154,14 +5203,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AccountNumber': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'AccountNumber') @@ -5238,7 +5287,7 @@ def get_CardAddress(self): return self.CardAddress def set_CardAddress(self, CardAddress): self.CardAddress = CardAddress - def hasContent_(self): + def _hasContent(self): if ( self.CardHolderName is not None or self.CardType is not None or @@ -5265,17 +5314,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ChargeCardType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ChargeCardType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ChargeCardType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ChargeCardType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ChargeCardType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ChargeCardType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ChargeCardType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ChargeCardType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5309,14 +5358,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CardHolderName': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CardHolderName') @@ -5419,7 +5468,7 @@ def get_CountryCode(self): return self.CountryCode def set_CountryCode(self, CountryCode): self.CountryCode = CountryCode - def hasContent_(self): + def _hasContent(self): if ( self.AddressLine or self.City is not None or @@ -5445,17 +5494,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ChargeCardAddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ChargeCardAddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ChargeCardAddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ChargeCardAddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ChargeCardAddressType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ChargeCardAddressType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ChargeCardAddressType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ChargeCardAddressType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5486,14 +5535,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AddressLine': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'AddressLine') @@ -5588,7 +5637,7 @@ def get_OriginSearchCriteria(self): return self.OriginSearchCriteria def set_OriginSearchCriteria(self, OriginSearchCriteria): self.OriginSearchCriteria = OriginSearchCriteria - def hasContent_(self): + def _hasContent(self): if ( self.StreetAddress is not None or self.City is not None or @@ -5615,17 +5664,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='O showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='OriginAddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='OriginAddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='OriginAddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='OriginAddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='OriginAddressType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='OriginAddressType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='OriginAddressType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='OriginAddressType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5659,14 +5708,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'StreetAddress': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'StreetAddress') @@ -5754,7 +5803,7 @@ def get_CountryCode(self): return self.CountryCode def set_CountryCode(self, CountryCode): self.CountryCode = CountryCode - def hasContent_(self): + def _hasContent(self): if ( self.City is not None or self.StateProvince is not None or @@ -5779,17 +5828,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DestinationAddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DestinationAddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DestinationAddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DestinationAddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DestinationAddressType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DestinationAddressType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DestinationAddressType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DestinationAddressType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5816,14 +5865,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'City': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'City') @@ -5921,7 +5970,7 @@ def get_ResidentialIndicator(self): return self.ResidentialIndicator def set_ResidentialIndicator(self, ResidentialIndicator): self.ResidentialIndicator = ResidentialIndicator - def hasContent_(self): + def _hasContent(self): if ( self.AddressLine or self.City is not None or @@ -5948,17 +5997,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AddressType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AddressType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AddressType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AddressType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5993,14 +6042,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AddressLine': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'AddressLine') @@ -6152,7 +6201,7 @@ def get_Phone(self): return self.Phone def set_Phone(self, Phone): self.Phone = Phone - def hasContent_(self): + def _hasContent(self): if ( self.CompanyName is not None or self.ContactName is not None or @@ -6186,17 +6235,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupAddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupAddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupAddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupAddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupAddressType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupAddressType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupAddressType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupAddressType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6258,14 +6307,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CompanyName': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CompanyName') @@ -6419,7 +6468,7 @@ def get_StreetAddressMatchCode(self): return self.StreetAddressMatchCode def set_StreetAddressMatchCode(self, StreetAddressMatchCode): self.StreetAddressMatchCode = StreetAddressMatchCode - def hasContent_(self): + def _hasContent(self): if ( self.StreetNumber is not None or self.StreetPrefix is not None or @@ -6448,17 +6497,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='StreetAddressArtifactType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='StreetAddressArtifactType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='StreetAddressArtifactType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='StreetAddressArtifactType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='StreetAddressArtifactType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='StreetAddressArtifactType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='StreetAddressArtifactType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='StreetAddressArtifactType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6501,14 +6550,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'StreetNumber': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'StreetNumber') @@ -6597,7 +6646,7 @@ def get_Extension(self): return self.Extension def set_Extension(self, Extension): self.Extension = Extension - def hasContent_(self): + def _hasContent(self): if ( self.Number is not None or self.Extension is not None @@ -6620,17 +6669,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PhoneType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PhoneType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PhoneType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PhoneType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PhoneType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PhoneType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PhoneType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PhoneType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6649,14 +6698,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Number': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Number') @@ -6709,7 +6758,7 @@ def get_ProfileCountryCode(self): return self.ProfileCountryCode def set_ProfileCountryCode(self, ProfileCountryCode): self.ProfileCountryCode = ProfileCountryCode - def hasContent_(self): + def _hasContent(self): if ( self.ProfileId is not None or self.ProfileCountryCode is not None @@ -6732,17 +6781,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CSRType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CSRType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CSRType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CSRType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CSRType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CSRType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CSRType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CSRType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6761,14 +6810,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ProfileId': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ProfileId') @@ -6821,7 +6870,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -6844,17 +6893,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='StatusCodeDescriptionType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='StatusCodeDescriptionType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='StatusCodeDescriptionType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='StatusCodeDescriptionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='StatusCodeDescriptionType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='StatusCodeDescriptionType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='StatusCodeDescriptionType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='StatusCodeDescriptionType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6873,14 +6922,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -6999,7 +7048,7 @@ def get_PreTaxTotalIncentedCharge(self): return self.PreTaxTotalIncentedCharge def set_PreTaxTotalIncentedCharge(self, PreTaxTotalIncentedCharge): self.PreTaxTotalIncentedCharge = PreTaxTotalIncentedCharge - def hasContent_(self): + def _hasContent(self): if ( self.Disclaimer is not None or self.RateType is not None or @@ -7030,17 +7079,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RateResultType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RateResultType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RateResultType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RateResultType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RateResultType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RateResultType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RateResultType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RateResultType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7088,14 +7137,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Disclaimer': obj_ = DisclaimerType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -7211,7 +7260,7 @@ def get_TaxAmount(self): return self.TaxAmount def set_TaxAmount(self, TaxAmount): self.TaxAmount = TaxAmount - def hasContent_(self): + def _hasContent(self): if ( self.ChargeCode is not None or self.ChargeDescription is not None or @@ -7237,17 +7286,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ChargeDetailType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ChargeDetailType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ChargeDetailType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ChargeDetailType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ChargeDetailType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ChargeDetailType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ChargeDetailType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ChargeDetailType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7278,14 +7327,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ChargeCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ChargeCode') @@ -7398,7 +7447,7 @@ def get_ReferenceNumber(self): return self.ReferenceNumber def set_ReferenceNumber(self, ReferenceNumber): self.ReferenceNumber = ReferenceNumber - def hasContent_(self): + def _hasContent(self): if ( self.PickupType is not None or self.ServiceDate is not None or @@ -7428,17 +7477,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PendingStatusType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PendingStatusType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PendingStatusType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PendingStatusType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PendingStatusType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PendingStatusType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PendingStatusType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PendingStatusType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7485,14 +7534,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PickupType': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'PickupType') @@ -7581,7 +7630,7 @@ def get_TrackingNumber(self): return self.TrackingNumber def set_TrackingNumber(self, TrackingNumber): self.TrackingNumber = TrackingNumber - def hasContent_(self): + def _hasContent(self): if ( self.TrackingNumber is not None ): @@ -7603,17 +7652,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='T showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TrackingDataType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TrackingDataType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TrackingDataType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TrackingDataType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TrackingDataType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TrackingDataType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TrackingDataType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TrackingDataType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7628,14 +7677,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'TrackingNumber': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'TrackingNumber') @@ -7691,7 +7740,7 @@ def insert_ReferenceNumber_at(self, index, value): self.ReferenceNumber.insert(index, value) def replace_ReferenceNumber_at(self, index, value): self.ReferenceNumber[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.TrackingNumber is not None or self.ReferenceNumber @@ -7714,17 +7763,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='T showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TrackingDataWithReferenceNumberType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TrackingDataWithReferenceNumberType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TrackingDataWithReferenceNumberType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TrackingDataWithReferenceNumberType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TrackingDataWithReferenceNumberType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TrackingDataWithReferenceNumberType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TrackingDataWithReferenceNumberType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TrackingDataWithReferenceNumberType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7743,14 +7792,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'TrackingNumber': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'TrackingNumber') @@ -7821,7 +7870,7 @@ def get_ShipmentDetail(self): return self.ShipmentDetail def set_ShipmentDetail(self, ShipmentDetail): self.ShipmentDetail = ShipmentDetail - def hasContent_(self): + def _hasContent(self): if ( self.ShipmentServiceOptions is not None or self.OriginServiceCenterCode is not None or @@ -7847,17 +7896,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='F showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightOptionsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightOptionsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightOptionsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightOptionsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightOptionsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightOptionsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightOptionsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightOptionsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7885,14 +7934,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ShipmentServiceOptions': obj_ = ShipmentServiceOptionsType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -7960,7 +8009,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -7983,17 +8032,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ServiceType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ServiceType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ServiceType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ServiceType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ServiceType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ServiceType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ServiceType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ServiceType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8012,14 +8061,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -8078,7 +8127,7 @@ def get_HoldForPickupIndicator(self): return self.HoldForPickupIndicator def set_HoldForPickupIndicator(self, HoldForPickupIndicator): self.HoldForPickupIndicator = HoldForPickupIndicator - def hasContent_(self): + def _hasContent(self): if ( self.OriginLiftGateIndicator is not None or self.DropoffAtUPSFacilityIndicator is not None or @@ -8102,17 +8151,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentServiceOptionsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentServiceOptionsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentServiceOptionsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentServiceOptionsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentServiceOptionsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentServiceOptionsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentServiceOptionsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentServiceOptionsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8135,14 +8184,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'OriginLiftGateIndicator': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'OriginLiftGateIndicator') @@ -8201,7 +8250,7 @@ def get_PalletInformation(self): return self.PalletInformation def set_PalletInformation(self, PalletInformation): self.PalletInformation = PalletInformation - def hasContent_(self): + def _hasContent(self): if ( self.HazmatIndicator is not None or self.PalletInformation is not None @@ -8224,17 +8273,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentDetailType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentDetailType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentDetailType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentDetailType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentDetailType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentDetailType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentDetailType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentDetailType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8252,14 +8301,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'HazmatIndicator': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'HazmatIndicator') @@ -8305,7 +8354,7 @@ def get_Dimensions(self): return self.Dimensions def set_Dimensions(self, Dimensions): self.Dimensions = Dimensions - def hasContent_(self): + def _hasContent(self): if ( self.Dimensions is not None ): @@ -8327,17 +8376,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PalletInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PalletInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PalletInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PalletInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PalletInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PalletInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PalletInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PalletInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8351,14 +8400,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Dimensions': obj_ = DimensionsType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -8416,7 +8465,7 @@ def get_Height(self): return self.Height def set_Height(self, Height): self.Height = Height - def hasContent_(self): + def _hasContent(self): if ( self.UnitOfMeasurement is not None or self.Length is not None or @@ -8441,17 +8490,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DimensionsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DimensionsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DimensionsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DimensionsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DimensionsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DimensionsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DimensionsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DimensionsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8477,14 +8526,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'UnitOfMeasurement': obj_ = UnitOfMeasurementType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -8548,7 +8597,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -8571,17 +8620,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='U showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UnitOfMeasurementType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UnitOfMeasurementType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UnitOfMeasurementType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UnitOfMeasurementType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UnitOfMeasurementType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UnitOfMeasurementType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UnitOfMeasurementType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UnitOfMeasurementType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8600,14 +8649,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -8666,7 +8715,7 @@ def get_MaximumLocation(self): return self.MaximumLocation def set_MaximumLocation(self, MaximumLocation): self.MaximumLocation = MaximumLocation - def hasContent_(self): + def _hasContent(self): if ( self.SearchRadius is not None or self.DistanceUnitOfMeasure is not None or @@ -8690,17 +8739,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='O showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='OriginSearchCriteriaType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='OriginSearchCriteriaType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='OriginSearchCriteriaType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='OriginSearchCriteriaType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='OriginSearchCriteriaType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='OriginSearchCriteriaType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='OriginSearchCriteriaType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='OriginSearchCriteriaType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8723,14 +8772,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'SearchRadius': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'SearchRadius') @@ -8789,7 +8838,7 @@ def get_Last50ftInstruction(self): return self.Last50ftInstruction def set_Last50ftInstruction(self, Last50ftInstruction): self.Last50ftInstruction = Last50ftInstruction - def hasContent_(self): + def _hasContent(self): if ( self.Locale is not None or self.Last50ftInstruction is not None @@ -8812,17 +8861,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='L showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LocalizedInstructionType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LocalizedInstructionType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LocalizedInstructionType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LocalizedInstructionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LocalizedInstructionType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LocalizedInstructionType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LocalizedInstructionType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LocalizedInstructionType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8841,14 +8890,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Locale': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Locale') @@ -8901,7 +8950,7 @@ def get_UnitOfMeasurement(self): return self.UnitOfMeasurement def set_UnitOfMeasurement(self, UnitOfMeasurement): self.UnitOfMeasurement = UnitOfMeasurement - def hasContent_(self): + def _hasContent(self): if ( self.Value is not None or self.UnitOfMeasurement is not None @@ -8924,17 +8973,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DistanceType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DistanceType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DistanceType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DistanceType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DistanceType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DistanceType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DistanceType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DistanceType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8953,14 +9002,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Value': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Value') @@ -9013,7 +9062,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -9036,17 +9085,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DisclaimerType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DisclaimerType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DisclaimerType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DisclaimerType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DisclaimerType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DisclaimerType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DisclaimerType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DisclaimerType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -9065,14 +9114,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -9125,7 +9174,7 @@ def get_MonetaryValue(self): return self.MonetaryValue def set_MonetaryValue(self, MonetaryValue): self.MonetaryValue = MonetaryValue - def hasContent_(self): + def _hasContent(self): if ( self.Type is not None or self.MonetaryValue is not None @@ -9148,17 +9197,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='T showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TaxChargeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TaxChargeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TaxChargeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TaxChargeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TaxChargeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TaxChargeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TaxChargeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TaxChargeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -9177,14 +9226,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Type': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Type') @@ -9240,7 +9289,7 @@ def insert_Property_at(self, index, value): self.Property.insert(index, value) def replace_Property_at(self, index, value): self.Property[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Property ): @@ -9262,17 +9311,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ClientInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ClientInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ClientInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ClientInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ClientInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ClientInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ClientInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ClientInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -9286,14 +9335,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Property': obj_ = PropertyType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -9320,7 +9369,7 @@ def __init__(self, RequestOption=None, SubVersion=None, TransactionReference=Non self.SubVersion = SubVersion self.SubVersion_nsprefix_ = None self.TransactionReference = TransactionReference - self.TransactionReference_nsprefix_ = None + self.TransactionReference_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -9354,7 +9403,7 @@ def get_TransactionReference(self): return self.TransactionReference def set_TransactionReference(self, TransactionReference): self.TransactionReference = TransactionReference - def hasContent_(self): + def _hasContent(self): if ( self.RequestOption or self.SubVersion is not None or @@ -9378,17 +9427,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='RequestType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='RequestType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='RequestType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='RequestType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -9410,14 +9459,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'RequestOption': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'RequestOption') @@ -9475,7 +9524,7 @@ def get_TransactionIdentifier(self): return self.TransactionIdentifier def set_TransactionIdentifier(self, TransactionIdentifier): self.TransactionIdentifier = TransactionIdentifier - def hasContent_(self): + def _hasContent(self): if ( self.CustomerContext is not None or self.TransactionIdentifier is not None @@ -9498,17 +9547,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionReferenceType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionReferenceType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionReferenceType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionReferenceType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='TransactionReferenceType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='TransactionReferenceType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='TransactionReferenceType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='TransactionReferenceType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -9527,14 +9576,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CustomerContext': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CustomerContext') @@ -9561,19 +9610,19 @@ def __init__(self, ResponseStatus=None, Alert=None, AlertDetail=None, Transactio self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.ResponseStatus = ResponseStatus - self.ResponseStatus_nsprefix_ = None + self.ResponseStatus_nsprefix_ = "common" if Alert is None: self.Alert = [] else: self.Alert = Alert - self.Alert_nsprefix_ = None + self.Alert_nsprefix_ = "common" if AlertDetail is None: self.AlertDetail = [] else: self.AlertDetail = AlertDetail - self.AlertDetail_nsprefix_ = None + self.AlertDetail_nsprefix_ = "common" self.TransactionReference = TransactionReference - self.TransactionReference_nsprefix_ = None + self.TransactionReference_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -9617,7 +9666,7 @@ def get_TransactionReference(self): return self.TransactionReference def set_TransactionReference(self, TransactionReference): self.TransactionReference = TransactionReference - def hasContent_(self): + def _hasContent(self): if ( self.ResponseStatus is not None or self.Alert or @@ -9642,17 +9691,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ResponseType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ResponseType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ResponseType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ResponseType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -9675,14 +9724,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ResponseStatus': obj_ = CodeDescriptionType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -9743,7 +9792,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -9766,17 +9815,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeDescriptionType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeDescriptionType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeDescriptionType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeDescriptionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='CodeDescriptionType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='CodeDescriptionType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='CodeDescriptionType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='CodeDescriptionType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -9795,14 +9844,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -9833,7 +9882,7 @@ def __init__(self, Code=None, Description=None, ElementLevelInformation=None, gd self.Description = Description self.Description_nsprefix_ = None self.ElementLevelInformation = ElementLevelInformation - self.ElementLevelInformation_nsprefix_ = None + self.ElementLevelInformation_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -9861,7 +9910,7 @@ def get_ElementLevelInformation(self): return self.ElementLevelInformation def set_ElementLevelInformation(self, ElementLevelInformation): self.ElementLevelInformation = ElementLevelInformation - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None or @@ -9885,17 +9934,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DetailType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DetailType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DetailType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DetailType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='DetailType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='DetailType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='DetailType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='DetailType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -9917,14 +9966,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -9961,7 +10010,7 @@ def __init__(self, Level=None, ElementIdentifier=None, gds_collector_=None, **kw self.ElementIdentifier = [] else: self.ElementIdentifier = ElementIdentifier - self.ElementIdentifier_nsprefix_ = None + self.ElementIdentifier_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -9991,7 +10040,7 @@ def insert_ElementIdentifier_at(self, index, value): self.ElementIdentifier.insert(index, value) def replace_ElementIdentifier_at(self, index, value): self.ElementIdentifier[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Level is not None or self.ElementIdentifier @@ -10014,17 +10063,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementLevelInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementLevelInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementLevelInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementLevelInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementLevelInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementLevelInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementLevelInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementLevelInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -10042,14 +10091,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Level': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Level') @@ -10101,7 +10150,7 @@ def get_Value(self): return self.Value def set_Value(self, Value): self.Value = Value - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Value is not None @@ -10124,17 +10173,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementIdentifierType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementIdentifierType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementIdentifierType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementIdentifierType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementIdentifierType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementIdentifierType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementIdentifierType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementIdentifierType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -10153,14 +10202,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -10210,7 +10259,7 @@ def set_Key(self, Key): self.Key = Key def get_valueOf_(self): return self.valueOf_ def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_ - def hasContent_(self): + def _hasContent(self): if ( (1 if type(self.valueOf_) in [int,float] else self.valueOf_) ): @@ -10232,19 +10281,19 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PropertyType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PropertyType') + if self._hasContent(): outfile.write('>') outfile.write(self.convert_unicode(self.valueOf_)) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PropertyType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PropertyType', pretty_print=pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PropertyType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PropertyType'): if self.Key is not None and 'Key' not in already_processed: already_processed.add('Key') outfile.write(' Key=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.Key), input_name='Key')), )) - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PropertyType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PropertyType', fromsubclass_=False, pretty_print=True): pass def build(self, node, gds_collector_=None): self.gds_collector_ = gds_collector_ @@ -10252,18 +10301,18 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) self.valueOf_ = get_all_text_(node) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('Key', node) if value is not None and 'Key' not in already_processed: already_processed.add('Key') self.Key = value - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): pass # end class PropertyType @@ -10339,7 +10388,8 @@ def parse(inFileName, silence=False, print_warnings=True): return rootObj -def parseEtree(inFileName, silence=False, print_warnings=True): +def parseEtree(inFileName, silence=False, print_warnings=True, + mapping=None, reverse_mapping=None, nsmap=None): parser = None doc = parsexml_(inFileName, parser) gds_collector = GdsCollector_() @@ -10350,10 +10400,15 @@ def parseEtree(inFileName, silence=False, print_warnings=True): rootClass = PickupGetPoliticalDivision1ListRequest rootObj = rootClass.factory() rootObj.build(rootNode, gds_collector_=gds_collector) + if mapping is None: + mapping = {} + if reverse_mapping is None: + reverse_mapping = {} + rootElement = rootObj.to_etree( + None, name_=rootTag, mapping_=mapping, + reverse_mapping_=reverse_mapping, nsmap_=nsmap) + reverse_node_mapping = rootObj.gds_reverse_node_mapping(mapping) # Enable Python to collect the space used by the DOM. - mapping = {} - rootElement = rootObj.to_etree(None, name_=rootTag, mapping_=mapping) - reverse_mapping = rootObj.gds_reverse_node_mapping(mapping) if not SaveElementTreeNode: doc = None rootNode = None @@ -10370,7 +10425,7 @@ def parseEtree(inFileName, silence=False, print_warnings=True): len(gds_collector.get_messages()), )) gds_collector.write_messages(sys.stderr) sys.stderr.write(separator) - return rootObj, rootElement, mapping, reverse_mapping + return rootObj, rootElement, mapping, reverse_node_mapping def parseString(inString, silence=False, print_warnings=True): @@ -10454,6 +10509,161 @@ def main(): RenameMappings_ = { } +# +# Mapping of namespaces to types defined in them +# and the file in which each is defined. +# simpleTypes are marked "ST" and complexTypes "CT". +NamespaceToDefMappings_ = {'http://www.ups.com/XMLSchema/XOLTWS/Common/v1.0': [('ClientInformationType', + './schemas/common.xsd', + 'CT'), + ('RequestType', + './schemas/common.xsd', + 'CT'), + ('TransactionReferenceType', + './schemas/common.xsd', + 'CT'), + ('ResponseType', + './schemas/common.xsd', + 'CT'), + ('CodeDescriptionType', + './schemas/common.xsd', + 'CT'), + ('DetailType', + './schemas/common.xsd', + 'CT'), + ('ElementLevelInformationType', + './schemas/common.xsd', + 'CT'), + ('ElementIdentifierType', + './schemas/common.xsd', + 'CT')], + 'http://www.ups.com/XMLSchema/XOLTWS/Pickup/v1.1': [('ServiceCenterLocationsType', + './schemas/PickupWebServiceSchema.xsd', + 'CT'), + ('DropOffFacilitiesType', + './schemas/PickupWebServiceSchema.xsd', + 'CT'), + ('PickupFacilitiesType', + './schemas/PickupWebServiceSchema.xsd', + 'CT'), + ('FacilityTimeType', + './schemas/PickupWebServiceSchema.xsd', + 'CT'), + ('DayOfWeekType', + './schemas/PickupWebServiceSchema.xsd', + 'CT'), + ('PickupPieceType', + './schemas/PickupWebServiceSchema.xsd', + 'CT'), + ('PickupPieceServiceType', + './schemas/PickupWebServiceSchema.xsd', + 'CT'), + ('TodayType', + './schemas/PickupWebServiceSchema.xsd', + 'CT'), + ('FutureServiceDateType', + './schemas/PickupWebServiceSchema.xsd', + 'CT'), + ('PickupDateInfoType', + './schemas/PickupWebServiceSchema.xsd', + 'CT'), + ('WeightType', + './schemas/PickupWebServiceSchema.xsd', + 'CT'), + ('ShipperAccountType', + './schemas/PickupWebServiceSchema.xsd', + 'CT'), + ('ShipperType', + './schemas/PickupWebServiceSchema.xsd', + 'CT'), + ('TaxInformationType', + './schemas/PickupWebServiceSchema.xsd', + 'CT'), + ('AccountType', + './schemas/PickupWebServiceSchema.xsd', + 'CT'), + ('ChargeCardType', + './schemas/PickupWebServiceSchema.xsd', + 'CT'), + ('ChargeCardAddressType', + './schemas/PickupWebServiceSchema.xsd', + 'CT'), + ('OriginAddressType', + './schemas/PickupWebServiceSchema.xsd', + 'CT'), + ('DestinationAddressType', + './schemas/PickupWebServiceSchema.xsd', + 'CT'), + ('AddressType', + './schemas/PickupWebServiceSchema.xsd', + 'CT'), + ('PickupAddressType', + './schemas/PickupWebServiceSchema.xsd', + 'CT'), + ('StreetAddressArtifactType', + './schemas/PickupWebServiceSchema.xsd', + 'CT'), + ('PhoneType', + './schemas/PickupWebServiceSchema.xsd', + 'CT'), + ('CSRType', + './schemas/PickupWebServiceSchema.xsd', + 'CT'), + ('StatusCodeDescriptionType', + './schemas/PickupWebServiceSchema.xsd', + 'CT'), + ('RateResultType', + './schemas/PickupWebServiceSchema.xsd', + 'CT'), + ('ChargeDetailType', + './schemas/PickupWebServiceSchema.xsd', + 'CT'), + ('PendingStatusType', + './schemas/PickupWebServiceSchema.xsd', + 'CT'), + ('TrackingDataType', + './schemas/PickupWebServiceSchema.xsd', + 'CT'), + ('TrackingDataWithReferenceNumberType', + './schemas/PickupWebServiceSchema.xsd', + 'CT'), + ('FreightOptionsType', + './schemas/PickupWebServiceSchema.xsd', + 'CT'), + ('ServiceType', + './schemas/PickupWebServiceSchema.xsd', + 'CT'), + ('ShipmentServiceOptionsType', + './schemas/PickupWebServiceSchema.xsd', + 'CT'), + ('ShipmentDetailType', + './schemas/PickupWebServiceSchema.xsd', + 'CT'), + ('PalletInformationType', + './schemas/PickupWebServiceSchema.xsd', + 'CT'), + ('DimensionsType', + './schemas/PickupWebServiceSchema.xsd', + 'CT'), + ('UnitOfMeasurementType', + './schemas/PickupWebServiceSchema.xsd', + 'CT'), + ('OriginSearchCriteriaType', + './schemas/PickupWebServiceSchema.xsd', + 'CT'), + ('LocalizedInstructionType', + './schemas/PickupWebServiceSchema.xsd', + 'CT'), + ('DistanceType', + './schemas/PickupWebServiceSchema.xsd', + 'CT'), + ('DisclaimerType', + './schemas/PickupWebServiceSchema.xsd', + 'CT'), + ('TaxChargeType', + './schemas/PickupWebServiceSchema.xsd', + 'CT')]} + __all__ = [ "AccountType", "AddressType", diff --git a/schemas/ups/ups_lib/pre_notification_web_service_schema.py b/schemas/ups/ups_lib/pre_notification_web_service_schema.py index 0ee6a07f38..f4a8ddd6a1 100644 --- a/schemas/ups/ups_lib/pre_notification_web_service_schema.py +++ b/schemas/ups/ups_lib/pre_notification_web_service_schema.py @@ -2,34 +2,35 @@ # -*- coding: utf-8 -*- # -# Generated Sat Mar 7 09:04:18 2020 by generateDS.py version 2.35.15. -# Python 3.8.1 (v3.8.1:1b293b6006, Dec 18 2019, 14:08:53) [Clang 6.0 (clang-600.0.57)] +# Generated Wed Nov 10 10:01:02 2021 by generateDS.py version 2.40.5. +# Python 3.8.6 (v3.8.6:db455296be, Sep 23 2020, 13:31:39) [Clang 6.0 (clang-600.0.57)] # # Command line options: # ('--no-namespace-defs', '') -# ('-o', './python/pre_notification_web_service_schema.py') +# ('-o', './ups_lib/pre_notification_web_service_schema.py') # # Command line arguments: # ./schemas/PreNotificationWebServiceSchema.xsd # # Command line: -# /Users/danielkobina/Documents/Open/.env/bin/generateDS --no-namespace-defs -o "./python/pre_notification_web_service_schema.py" ./schemas/PreNotificationWebServiceSchema.xsd +# /Users/danielkobina/Workspace/project/purplship/.venv/purplship/bin/generateDS --no-namespace-defs -o "./ups_lib/pre_notification_web_service_schema.py" ./schemas/PreNotificationWebServiceSchema.xsd # # Current working directory (os.getcwd()): -# 2020-03 +# ups # +import sys +try: + ModulenotfoundExp_ = ModuleNotFoundError +except NameError: + ModulenotfoundExp_ = ImportError from six.moves import zip_longest import os -import sys import re as re_ import base64 import datetime as datetime_ import decimal as decimal_ -try: - from lxml import etree as etree_ -except ImportError: - from xml.etree import ElementTree as etree_ +from lxml import etree as etree_ Validate_simpletypes_ = True @@ -92,7 +93,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # Additionally, the generatedsnamespaces module can contain a python # dictionary named GenerateDSNamespaceTypePrefixes that associates element # types with the namespace prefixes that are to be added to the -# "xsi:type" attribute value. See the exportAttributes method of +# "xsi:type" attribute value. See the _exportAttributes method of # any generated element type and the generation of "xsi:type" for an # example of the use of this table. # An example table: @@ -107,11 +108,11 @@ def parsexmlstring_(instring, parser=None, **kwargs): try: from generatedsnamespaces import GenerateDSNamespaceDefs as GenerateDSNamespaceDefs_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceDefs_ = {} try: from generatedsnamespaces import GenerateDSNamespaceTypePrefixes as GenerateDSNamespaceTypePrefixes_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceTypePrefixes_ = {} # @@ -122,7 +123,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # try: from generatedscollector import GdsCollector as GdsCollector_ -except ImportError: +except ModulenotfoundExp_ : class GdsCollector_(object): @@ -156,7 +157,7 @@ def write_messages(self, outstream): try: from enum import Enum -except ImportError: +except ModulenotfoundExp_ : Enum = object # @@ -168,9 +169,14 @@ def write_messages(self, outstream): try: from generatedssuper import GeneratedsSuper -except ImportError as exp: +except ModulenotfoundExp_ as exp: + try: + from generatedssupersuper import GeneratedsSuperSuper + except ModulenotfoundExp_ as exp: + class GeneratedsSuperSuper(object): + pass - class GeneratedsSuper(object): + class GeneratedsSuper(GeneratedsSuperSuper): __hash__ = object.__hash__ tzoff_pattern = re_.compile(r'(\+|-)((0\d|1[0-3]):[0-5]\d|14:00)$') class _FixedOffsetTZ(datetime_.tzinfo): @@ -183,6 +189,30 @@ def tzname(self, dt): return self.__name def dst(self, dt): return None + def __str__(self): + settings = { + 'str_pretty_print': True, + 'str_indent_level': 0, + 'str_namespaceprefix': '', + 'str_name': None, + 'str_namespacedefs': '', + } + for n in settings: + if hasattr(self, n): + setattr(settings[n], self[n]) + from io import StringIO + output = StringIO() + self.export( + output, + settings['str_indent_level'], + pretty_print=settings['str_pretty_print'], + namespaceprefix_=settings['str_namespaceprefix'], + name_=settings['str_name'], + namespacedef_=settings['str_namespacedefs'] + ) + strval = output.getvalue() + output.close() + return strval def gds_format_string(self, input_data, input_name=''): return input_data def gds_parse_string(self, input_data, node=None, input_name=''): @@ -193,11 +223,11 @@ def gds_validate_string(self, input_data, node=None, input_name=''): else: return input_data def gds_format_base64(self, input_data, input_name=''): - return base64.b64encode(input_data) + return base64.b64encode(input_data).decode('ascii') def gds_validate_base64(self, input_data, node=None, input_name=''): return input_data def gds_format_integer(self, input_data, input_name=''): - return '%d' % input_data + return '%d' % int(input_data) def gds_parse_integer(self, input_data, node=None, input_name=''): try: ival = int(input_data) @@ -211,6 +241,8 @@ def gds_validate_integer(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires integer value') return value def gds_format_integer_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_integer_list( self, input_data, node=None, input_name=''): @@ -219,10 +251,10 @@ def gds_validate_integer_list( try: int(value) except (TypeError, ValueError): - raise_parse_error(node, 'Requires sequence of integer valuess') + raise_parse_error(node, 'Requires sequence of integer values') return values def gds_format_float(self, input_data, input_name=''): - return ('%.15f' % input_data).rstrip('0') + return ('%.15f' % float(input_data)).rstrip('0') def gds_parse_float(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -236,6 +268,8 @@ def gds_validate_float(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires float value') return value def gds_format_float_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_float_list( self, input_data, node=None, input_name=''): @@ -247,7 +281,12 @@ def gds_validate_float_list( raise_parse_error(node, 'Requires sequence of float values') return values def gds_format_decimal(self, input_data, input_name=''): - return ('%s' % input_data).rstrip('0') + return_value = '%s' % input_data + if '.' in return_value: + return_value = return_value.rstrip('0') + if return_value.endswith('.'): + return_value = return_value.rstrip('.') + return return_value def gds_parse_decimal(self, input_data, node=None, input_name=''): try: decimal_value = decimal_.Decimal(input_data) @@ -261,7 +300,9 @@ def gds_validate_decimal(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires decimal value') return value def gds_format_decimal_list(self, input_data, input_name=''): - return '%s' % ' '.join(input_data) + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] + return ' '.join([self.gds_format_decimal(item) for item in input_data]) def gds_validate_decimal_list( self, input_data, node=None, input_name=''): values = input_data.split() @@ -272,7 +313,7 @@ def gds_validate_decimal_list( raise_parse_error(node, 'Requires sequence of decimal values') return values def gds_format_double(self, input_data, input_name=''): - return '%e' % input_data + return '%s' % input_data def gds_parse_double(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -286,6 +327,8 @@ def gds_validate_double(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires double or float value') return value def gds_format_double_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_double_list( self, input_data, node=None, input_name=''): @@ -315,11 +358,14 @@ def gds_validate_boolean(self, input_data, node=None, input_name=''): '(one of True, 1, False, 0)') return input_data def gds_format_boolean_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_boolean_list( self, input_data, node=None, input_name=''): values = input_data.split() for value in values: + value = self.gds_parse_boolean(value, node, input_name) if value not in (True, 1, False, 0, ): raise_parse_error( node, @@ -766,7 +812,10 @@ def find_attr_value_(attr_name, node): value = attrs.get(attr_name) elif len(attr_parts) == 2: prefix, name = attr_parts - namespace = node.nsmap.get(prefix) + if prefix == 'xml': + namespace = 'http://www.w3.org/XML/1998/namespace' + else: + namespace = node.nsmap.get(prefix) if namespace is not None: value = attrs.get('{%s}%s' % (namespace, name, )) return value @@ -847,7 +896,7 @@ def exportSimple(self, outfile, level, name): self.name, base64.b64encode(self.value), self.name)) - def to_etree(self, element): + def to_etree(self, element, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.category == MixedContainer.CategoryText: # Prevent exporting empty content as empty lines. if self.value.strip(): @@ -867,7 +916,7 @@ def to_etree(self, element): subelement.text = self.to_etree_simple() else: # category == MixedContainer.CategoryComplex self.value.to_etree(element) - def to_etree_simple(self): + def to_etree_simple(self, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.content_type == MixedContainer.TypeString: text = self.value elif (self.content_type == MixedContainer.TypeInteger or @@ -956,9 +1005,9 @@ def __init__(self, Request=None, Shipment=None, gds_collector_=None, **kwargs_): self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Request = Request - self.Request_nsprefix_ = None + self.Request_nsprefix_ = "common" self.Shipment = Shipment - self.Shipment_nsprefix_ = None + self.Shipment_nsprefix_ = "pn" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -982,7 +1031,7 @@ def get_Shipment(self): return self.Shipment def set_Shipment(self, Shipment): self.Shipment = Shipment - def hasContent_(self): + def _hasContent(self): if ( self.Request is not None or self.Shipment is not None @@ -1005,17 +1054,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PreNotificationRequest') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PreNotificationRequest') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PreNotificationRequest', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PreNotificationRequest', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PreNotificationRequest'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PreNotificationRequest'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PreNotificationRequest', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PreNotificationRequest', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1032,14 +1081,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Request': obj_ = RequestType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1064,7 +1113,7 @@ def __init__(self, Response=None, gds_collector_=None, **kwargs_): self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Response = Response - self.Response_nsprefix_ = None + self.Response_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1084,7 +1133,7 @@ def get_Response(self): return self.Response def set_Response(self, Response): self.Response = Response - def hasContent_(self): + def _hasContent(self): if ( self.Response is not None ): @@ -1106,17 +1155,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PreNotificationResponse') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PreNotificationResponse') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PreNotificationResponse', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PreNotificationResponse', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PreNotificationResponse'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PreNotificationResponse'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PreNotificationResponse', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PreNotificationResponse', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1130,14 +1179,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Response': obj_ = ResponseType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1210,7 +1259,7 @@ def get_CountryCode(self): return self.CountryCode def set_CountryCode(self, CountryCode): self.CountryCode = CountryCode - def hasContent_(self): + def _hasContent(self): if ( self.AddressLine or self.City is not None or @@ -1236,17 +1285,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AddressType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AddressType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AddressType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AddressType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1277,14 +1326,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AddressLine': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'AddressLine') @@ -1331,7 +1380,7 @@ def __init__(self, TrackingNumber=None, PackageWeight=None, TransportationMode=N self.TrackingNumber = TrackingNumber self.TrackingNumber_nsprefix_ = None self.PackageWeight = PackageWeight - self.PackageWeight_nsprefix_ = None + self.PackageWeight_nsprefix_ = "pn" self.TransportationMode = TransportationMode self.TransportationMode_nsprefix_ = None self.VoidIndicator = VoidIndicator @@ -1342,7 +1391,7 @@ def __init__(self, TrackingNumber=None, PackageWeight=None, TransportationMode=N self.ChemicalRecord = [] else: self.ChemicalRecord = ChemicalRecord - self.ChemicalRecord_nsprefix_ = None + self.ChemicalRecord_nsprefix_ = "pn" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1388,7 +1437,7 @@ def insert_ChemicalRecord_at(self, index, value): self.ChemicalRecord.insert(index, value) def replace_ChemicalRecord_at(self, index, value): self.ChemicalRecord[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.TrackingNumber is not None or self.PackageWeight is not None or @@ -1415,17 +1464,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1458,14 +1507,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'TrackingNumber': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'TrackingNumber') @@ -1660,7 +1709,7 @@ def get_AllPackedInOneIndicator(self): return self.AllPackedInOneIndicator def set_AllPackedInOneIndicator(self, AllPackedInOneIndicator): self.AllPackedInOneIndicator = AllPackedInOneIndicator - def hasContent_(self): + def _hasContent(self): if ( self.ReportableQuantity is not None or self.ClassDivisionNumber is not None or @@ -1703,17 +1752,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ChemicalRecordType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ChemicalRecordType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ChemicalRecordType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ChemicalRecordType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ChemicalRecordType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ChemicalRecordType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ChemicalRecordType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ChemicalRecordType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1812,14 +1861,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ReportableQuantity': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ReportableQuantity') @@ -1992,7 +2041,7 @@ def get_Weight(self): return self.Weight def set_Weight(self, Weight): self.Weight = Weight - def hasContent_(self): + def _hasContent(self): if ( self.UnitOfMeasurement is not None or self.Weight is not None @@ -2015,17 +2064,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageWeightType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageWeightType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageWeightType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageWeightType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageWeightType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageWeightType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageWeightType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageWeightType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2043,14 +2092,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'UnitOfMeasurement': obj_ = CodeDescriptionType1.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -2102,7 +2151,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -2125,17 +2174,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeDescriptionType1') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeDescriptionType1') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeDescriptionType1', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeDescriptionType1', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CodeDescriptionType1'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CodeDescriptionType1'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CodeDescriptionType1', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CodeDescriptionType1', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2154,14 +2203,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -2192,9 +2241,9 @@ def __init__(self, ShipperNumber=None, ShipmentIdentificationNumber=None, ShipFr self.ShipmentIdentificationNumber = ShipmentIdentificationNumber self.ShipmentIdentificationNumber_nsprefix_ = None self.ShipFromAddress = ShipFromAddress - self.ShipFromAddress_nsprefix_ = None + self.ShipFromAddress_nsprefix_ = "pn" self.ShipToAddress = ShipToAddress - self.ShipToAddress_nsprefix_ = None + self.ShipToAddress_nsprefix_ = "pn" self.PickupDate = PickupDate self.PickupDate_nsprefix_ = None self.Service = Service @@ -2205,7 +2254,7 @@ def __init__(self, ShipperNumber=None, ShipmentIdentificationNumber=None, ShipFr self.Package = [] else: self.Package = Package - self.Package_nsprefix_ = None + self.Package_nsprefix_ = "pn" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -2259,7 +2308,7 @@ def insert_Package_at(self, index, value): self.Package.insert(index, value) def replace_Package_at(self, index, value): self.Package[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.ShipperNumber is not None or self.ShipmentIdentificationNumber is not None or @@ -2288,17 +2337,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2337,14 +2386,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ShipperNumber': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ShipperNumber') @@ -2432,7 +2481,7 @@ def insert_Property_at(self, index, value): self.Property.insert(index, value) def replace_Property_at(self, index, value): self.Property[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Property ): @@ -2454,17 +2503,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ClientInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ClientInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ClientInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ClientInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ClientInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ClientInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ClientInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ClientInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2478,14 +2527,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Property': obj_ = PropertyType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -2512,7 +2561,7 @@ def __init__(self, RequestOption=None, SubVersion=None, TransactionReference=Non self.SubVersion = SubVersion self.SubVersion_nsprefix_ = None self.TransactionReference = TransactionReference - self.TransactionReference_nsprefix_ = None + self.TransactionReference_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -2546,7 +2595,7 @@ def get_TransactionReference(self): return self.TransactionReference def set_TransactionReference(self, TransactionReference): self.TransactionReference = TransactionReference - def hasContent_(self): + def _hasContent(self): if ( self.RequestOption or self.SubVersion is not None or @@ -2570,17 +2619,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='RequestType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='RequestType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='RequestType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='RequestType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2602,14 +2651,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'RequestOption': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'RequestOption') @@ -2667,7 +2716,7 @@ def get_TransactionIdentifier(self): return self.TransactionIdentifier def set_TransactionIdentifier(self, TransactionIdentifier): self.TransactionIdentifier = TransactionIdentifier - def hasContent_(self): + def _hasContent(self): if ( self.CustomerContext is not None or self.TransactionIdentifier is not None @@ -2690,17 +2739,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionReferenceType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionReferenceType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionReferenceType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionReferenceType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='TransactionReferenceType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='TransactionReferenceType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='TransactionReferenceType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='TransactionReferenceType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2719,14 +2768,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CustomerContext': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CustomerContext') @@ -2753,19 +2802,19 @@ def __init__(self, ResponseStatus=None, Alert=None, AlertDetail=None, Transactio self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.ResponseStatus = ResponseStatus - self.ResponseStatus_nsprefix_ = None + self.ResponseStatus_nsprefix_ = "common" if Alert is None: self.Alert = [] else: self.Alert = Alert - self.Alert_nsprefix_ = None + self.Alert_nsprefix_ = "common" if AlertDetail is None: self.AlertDetail = [] else: self.AlertDetail = AlertDetail - self.AlertDetail_nsprefix_ = None + self.AlertDetail_nsprefix_ = "common" self.TransactionReference = TransactionReference - self.TransactionReference_nsprefix_ = None + self.TransactionReference_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -2809,7 +2858,7 @@ def get_TransactionReference(self): return self.TransactionReference def set_TransactionReference(self, TransactionReference): self.TransactionReference = TransactionReference - def hasContent_(self): + def _hasContent(self): if ( self.ResponseStatus is not None or self.Alert or @@ -2834,17 +2883,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ResponseType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ResponseType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ResponseType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ResponseType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2867,14 +2916,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ResponseStatus': obj_ = CodeDescriptionType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -2935,7 +2984,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -2958,17 +3007,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeDescriptionType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeDescriptionType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeDescriptionType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeDescriptionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='CodeDescriptionType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='CodeDescriptionType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='CodeDescriptionType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='CodeDescriptionType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2987,14 +3036,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -3025,7 +3074,7 @@ def __init__(self, Code=None, Description=None, ElementLevelInformation=None, gd self.Description = Description self.Description_nsprefix_ = None self.ElementLevelInformation = ElementLevelInformation - self.ElementLevelInformation_nsprefix_ = None + self.ElementLevelInformation_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -3053,7 +3102,7 @@ def get_ElementLevelInformation(self): return self.ElementLevelInformation def set_ElementLevelInformation(self, ElementLevelInformation): self.ElementLevelInformation = ElementLevelInformation - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None or @@ -3077,17 +3126,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DetailType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DetailType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DetailType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DetailType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='DetailType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='DetailType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='DetailType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='DetailType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3109,14 +3158,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -3153,7 +3202,7 @@ def __init__(self, Level=None, ElementIdentifier=None, gds_collector_=None, **kw self.ElementIdentifier = [] else: self.ElementIdentifier = ElementIdentifier - self.ElementIdentifier_nsprefix_ = None + self.ElementIdentifier_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -3183,7 +3232,7 @@ def insert_ElementIdentifier_at(self, index, value): self.ElementIdentifier.insert(index, value) def replace_ElementIdentifier_at(self, index, value): self.ElementIdentifier[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Level is not None or self.ElementIdentifier @@ -3206,17 +3255,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementLevelInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementLevelInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementLevelInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementLevelInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementLevelInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementLevelInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementLevelInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementLevelInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3234,14 +3283,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Level': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Level') @@ -3293,7 +3342,7 @@ def get_Value(self): return self.Value def set_Value(self, Value): self.Value = Value - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Value is not None @@ -3316,17 +3365,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementIdentifierType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementIdentifierType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementIdentifierType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementIdentifierType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementIdentifierType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementIdentifierType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementIdentifierType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementIdentifierType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3345,14 +3394,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -3402,7 +3451,7 @@ def set_Key(self, Key): self.Key = Key def get_valueOf_(self): return self.valueOf_ def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_ - def hasContent_(self): + def _hasContent(self): if ( (1 if type(self.valueOf_) in [int,float] else self.valueOf_) ): @@ -3424,19 +3473,19 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PropertyType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PropertyType') + if self._hasContent(): outfile.write('>') outfile.write(self.convert_unicode(self.valueOf_)) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PropertyType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PropertyType', pretty_print=pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PropertyType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PropertyType'): if self.Key is not None and 'Key' not in already_processed: already_processed.add('Key') outfile.write(' Key=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.Key), input_name='Key')), )) - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PropertyType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PropertyType', fromsubclass_=False, pretty_print=True): pass def build(self, node, gds_collector_=None): self.gds_collector_ = gds_collector_ @@ -3444,18 +3493,18 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) self.valueOf_ = get_all_text_(node) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('Key', node) if value is not None and 'Key' not in already_processed: already_processed.add('Key') self.Key = value - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): pass # end class PropertyType @@ -3534,7 +3583,8 @@ def parse(inFileName, silence=False, print_warnings=True): return rootObj -def parseEtree(inFileName, silence=False, print_warnings=True): +def parseEtree(inFileName, silence=False, print_warnings=True, + mapping=None, reverse_mapping=None, nsmap=None): parser = None doc = parsexml_(inFileName, parser) gds_collector = GdsCollector_() @@ -3545,10 +3595,15 @@ def parseEtree(inFileName, silence=False, print_warnings=True): rootClass = PreNotificationRequest rootObj = rootClass.factory() rootObj.build(rootNode, gds_collector_=gds_collector) + if mapping is None: + mapping = {} + if reverse_mapping is None: + reverse_mapping = {} + rootElement = rootObj.to_etree( + None, name_=rootTag, mapping_=mapping, + reverse_mapping_=reverse_mapping, nsmap_=nsmap) + reverse_node_mapping = rootObj.gds_reverse_node_mapping(mapping) # Enable Python to collect the space used by the DOM. - mapping = {} - rootElement = rootObj.to_etree(None, name_=rootTag, mapping_=mapping) - reverse_mapping = rootObj.gds_reverse_node_mapping(mapping) if not SaveElementTreeNode: doc = None rootNode = None @@ -3565,7 +3620,7 @@ def parseEtree(inFileName, silence=False, print_warnings=True): len(gds_collector.get_messages()), )) gds_collector.write_messages(sys.stderr) sys.stderr.write(separator) - return rootObj, rootElement, mapping, reverse_mapping + return rootObj, rootElement, mapping, reverse_node_mapping def parseString(inString, silence=False, print_warnings=True): @@ -3650,6 +3705,53 @@ def main(): "{http://www.ups.com/XMLSchema/XOLTWS/PreNotification/v1.0}CodeDescriptionType": "CodeDescriptionType1", } +# +# Mapping of namespaces to types defined in them +# and the file in which each is defined. +# simpleTypes are marked "ST" and complexTypes "CT". +NamespaceToDefMappings_ = {'http://www.ups.com/XMLSchema/XOLTWS/Common/v1.0': [('ClientInformationType', + './schemas/common.xsd', + 'CT'), + ('RequestType', + './schemas/common.xsd', + 'CT'), + ('TransactionReferenceType', + './schemas/common.xsd', + 'CT'), + ('ResponseType', + './schemas/common.xsd', + 'CT'), + ('CodeDescriptionType', + './schemas/common.xsd', + 'CT'), + ('DetailType', + './schemas/common.xsd', + 'CT'), + ('ElementLevelInformationType', + './schemas/common.xsd', + 'CT'), + ('ElementIdentifierType', + './schemas/common.xsd', + 'CT')], + 'http://www.ups.com/XMLSchema/XOLTWS/PreNotification/v1.0': [('AddressType', + './schemas/PreNotificationWebServiceSchema.xsd', + 'CT'), + ('PackageType', + './schemas/PreNotificationWebServiceSchema.xsd', + 'CT'), + ('ChemicalRecordType', + './schemas/PreNotificationWebServiceSchema.xsd', + 'CT'), + ('PackageWeightType', + './schemas/PreNotificationWebServiceSchema.xsd', + 'CT'), + ('CodeDescriptionType', + './schemas/PreNotificationWebServiceSchema.xsd', + 'CT'), + ('ShipmentType', + './schemas/PreNotificationWebServiceSchema.xsd', + 'CT')]} + __all__ = [ "AddressType", "ChemicalRecordType", diff --git a/schemas/ups/ups_lib/quantum_view_request.py b/schemas/ups/ups_lib/quantum_view_request.py index da71cbb535..35b667e8fa 100644 --- a/schemas/ups/ups_lib/quantum_view_request.py +++ b/schemas/ups/ups_lib/quantum_view_request.py @@ -2,34 +2,35 @@ # -*- coding: utf-8 -*- # -# Generated Sat Mar 7 09:04:18 2020 by generateDS.py version 2.35.15. -# Python 3.8.1 (v3.8.1:1b293b6006, Dec 18 2019, 14:08:53) [Clang 6.0 (clang-600.0.57)] +# Generated Wed Nov 10 10:01:02 2021 by generateDS.py version 2.40.5. +# Python 3.8.6 (v3.8.6:db455296be, Sep 23 2020, 13:31:39) [Clang 6.0 (clang-600.0.57)] # # Command line options: # ('--no-namespace-defs', '') -# ('-o', './python/quantum_view_request.py') +# ('-o', './ups_lib/quantum_view_request.py') # # Command line arguments: # ./schemas/QuantumViewRequest.xsd # # Command line: -# /Users/danielkobina/Documents/Open/.env/bin/generateDS --no-namespace-defs -o "./python/quantum_view_request.py" ./schemas/QuantumViewRequest.xsd +# /Users/danielkobina/Workspace/project/purplship/.venv/purplship/bin/generateDS --no-namespace-defs -o "./ups_lib/quantum_view_request.py" ./schemas/QuantumViewRequest.xsd # # Current working directory (os.getcwd()): -# 2020-03 +# ups # +import sys +try: + ModulenotfoundExp_ = ModuleNotFoundError +except NameError: + ModulenotfoundExp_ = ImportError from six.moves import zip_longest import os -import sys import re as re_ import base64 import datetime as datetime_ import decimal as decimal_ -try: - from lxml import etree as etree_ -except ImportError: - from xml.etree import ElementTree as etree_ +from lxml import etree as etree_ Validate_simpletypes_ = True @@ -92,7 +93,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # Additionally, the generatedsnamespaces module can contain a python # dictionary named GenerateDSNamespaceTypePrefixes that associates element # types with the namespace prefixes that are to be added to the -# "xsi:type" attribute value. See the exportAttributes method of +# "xsi:type" attribute value. See the _exportAttributes method of # any generated element type and the generation of "xsi:type" for an # example of the use of this table. # An example table: @@ -107,11 +108,11 @@ def parsexmlstring_(instring, parser=None, **kwargs): try: from generatedsnamespaces import GenerateDSNamespaceDefs as GenerateDSNamespaceDefs_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceDefs_ = {} try: from generatedsnamespaces import GenerateDSNamespaceTypePrefixes as GenerateDSNamespaceTypePrefixes_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceTypePrefixes_ = {} # @@ -122,7 +123,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # try: from generatedscollector import GdsCollector as GdsCollector_ -except ImportError: +except ModulenotfoundExp_ : class GdsCollector_(object): @@ -156,7 +157,7 @@ def write_messages(self, outstream): try: from enum import Enum -except ImportError: +except ModulenotfoundExp_ : Enum = object # @@ -168,9 +169,14 @@ def write_messages(self, outstream): try: from generatedssuper import GeneratedsSuper -except ImportError as exp: +except ModulenotfoundExp_ as exp: + try: + from generatedssupersuper import GeneratedsSuperSuper + except ModulenotfoundExp_ as exp: + class GeneratedsSuperSuper(object): + pass - class GeneratedsSuper(object): + class GeneratedsSuper(GeneratedsSuperSuper): __hash__ = object.__hash__ tzoff_pattern = re_.compile(r'(\+|-)((0\d|1[0-3]):[0-5]\d|14:00)$') class _FixedOffsetTZ(datetime_.tzinfo): @@ -183,6 +189,30 @@ def tzname(self, dt): return self.__name def dst(self, dt): return None + def __str__(self): + settings = { + 'str_pretty_print': True, + 'str_indent_level': 0, + 'str_namespaceprefix': '', + 'str_name': None, + 'str_namespacedefs': '', + } + for n in settings: + if hasattr(self, n): + setattr(settings[n], self[n]) + from io import StringIO + output = StringIO() + self.export( + output, + settings['str_indent_level'], + pretty_print=settings['str_pretty_print'], + namespaceprefix_=settings['str_namespaceprefix'], + name_=settings['str_name'], + namespacedef_=settings['str_namespacedefs'] + ) + strval = output.getvalue() + output.close() + return strval def gds_format_string(self, input_data, input_name=''): return input_data def gds_parse_string(self, input_data, node=None, input_name=''): @@ -193,11 +223,11 @@ def gds_validate_string(self, input_data, node=None, input_name=''): else: return input_data def gds_format_base64(self, input_data, input_name=''): - return base64.b64encode(input_data) + return base64.b64encode(input_data).decode('ascii') def gds_validate_base64(self, input_data, node=None, input_name=''): return input_data def gds_format_integer(self, input_data, input_name=''): - return '%d' % input_data + return '%d' % int(input_data) def gds_parse_integer(self, input_data, node=None, input_name=''): try: ival = int(input_data) @@ -211,6 +241,8 @@ def gds_validate_integer(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires integer value') return value def gds_format_integer_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_integer_list( self, input_data, node=None, input_name=''): @@ -219,10 +251,10 @@ def gds_validate_integer_list( try: int(value) except (TypeError, ValueError): - raise_parse_error(node, 'Requires sequence of integer valuess') + raise_parse_error(node, 'Requires sequence of integer values') return values def gds_format_float(self, input_data, input_name=''): - return ('%.15f' % input_data).rstrip('0') + return ('%.15f' % float(input_data)).rstrip('0') def gds_parse_float(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -236,6 +268,8 @@ def gds_validate_float(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires float value') return value def gds_format_float_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_float_list( self, input_data, node=None, input_name=''): @@ -247,7 +281,12 @@ def gds_validate_float_list( raise_parse_error(node, 'Requires sequence of float values') return values def gds_format_decimal(self, input_data, input_name=''): - return ('%s' % input_data).rstrip('0') + return_value = '%s' % input_data + if '.' in return_value: + return_value = return_value.rstrip('0') + if return_value.endswith('.'): + return_value = return_value.rstrip('.') + return return_value def gds_parse_decimal(self, input_data, node=None, input_name=''): try: decimal_value = decimal_.Decimal(input_data) @@ -261,7 +300,9 @@ def gds_validate_decimal(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires decimal value') return value def gds_format_decimal_list(self, input_data, input_name=''): - return '%s' % ' '.join(input_data) + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] + return ' '.join([self.gds_format_decimal(item) for item in input_data]) def gds_validate_decimal_list( self, input_data, node=None, input_name=''): values = input_data.split() @@ -272,7 +313,7 @@ def gds_validate_decimal_list( raise_parse_error(node, 'Requires sequence of decimal values') return values def gds_format_double(self, input_data, input_name=''): - return '%e' % input_data + return '%s' % input_data def gds_parse_double(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -286,6 +327,8 @@ def gds_validate_double(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires double or float value') return value def gds_format_double_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_double_list( self, input_data, node=None, input_name=''): @@ -315,11 +358,14 @@ def gds_validate_boolean(self, input_data, node=None, input_name=''): '(one of True, 1, False, 0)') return input_data def gds_format_boolean_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_boolean_list( self, input_data, node=None, input_name=''): values = input_data.split() for value in values: + value = self.gds_parse_boolean(value, node, input_name) if value not in (True, 1, False, 0, ): raise_parse_error( node, @@ -766,7 +812,10 @@ def find_attr_value_(attr_name, node): value = attrs.get(attr_name) elif len(attr_parts) == 2: prefix, name = attr_parts - namespace = node.nsmap.get(prefix) + if prefix == 'xml': + namespace = 'http://www.w3.org/XML/1998/namespace' + else: + namespace = node.nsmap.get(prefix) if namespace is not None: value = attrs.get('{%s}%s' % (namespace, name, )) return value @@ -847,7 +896,7 @@ def exportSimple(self, outfile, level, name): self.name, base64.b64encode(self.value), self.name)) - def to_etree(self, element): + def to_etree(self, element, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.category == MixedContainer.CategoryText: # Prevent exporting empty content as empty lines. if self.value.strip(): @@ -867,7 +916,7 @@ def to_etree(self, element): subelement.text = self.to_etree_simple() else: # category == MixedContainer.CategoryComplex self.value.to_etree(element) - def to_etree_simple(self): + def to_etree_simple(self, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.content_type == MixedContainer.TypeString: text = self.value elif (self.content_type == MixedContainer.TypeInteger or @@ -997,7 +1046,7 @@ def get_Bookmark(self): return self.Bookmark def set_Bookmark(self, Bookmark): self.Bookmark = Bookmark - def hasContent_(self): + def _hasContent(self): if ( self.Request is not None or self.SubscriptionRequest or @@ -1021,17 +1070,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='Q showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='QuantumViewRequest') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='QuantumViewRequest') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='QuantumViewRequest', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='QuantumViewRequest', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='QuantumViewRequest'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='QuantumViewRequest'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='QuantumViewRequest', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='QuantumViewRequest', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1052,14 +1101,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Request': obj_ = Request.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1122,7 +1171,7 @@ def get_Version(self): return self.Version def set_Version(self, Version): self.Version = Version - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None or @@ -1146,17 +1195,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestSourceType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestSourceType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestSourceType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestSourceType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RequestSourceType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RequestSourceType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RequestSourceType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RequestSourceType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1179,14 +1228,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -1260,7 +1309,7 @@ def insert_FileName_at(self, index, value): self.FileName.insert(index, value) def replace_FileName_at(self, index, value): self.FileName[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.DateTimeRange is not None or self.Name is not None or @@ -1284,17 +1333,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SubscriptionRequestType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SubscriptionRequestType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='SubscriptionRequestType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='SubscriptionRequestType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='SubscriptionRequestType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='SubscriptionRequestType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='SubscriptionRequestType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='SubscriptionRequestType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1316,14 +1365,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'DateTimeRange': obj_ = DateTimeRangeType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1381,7 +1430,7 @@ def get_EndDateTime(self): return self.EndDateTime def set_EndDateTime(self, EndDateTime): self.EndDateTime = EndDateTime - def hasContent_(self): + def _hasContent(self): if ( self.BeginDateTime is not None or self.EndDateTime is not None @@ -1404,17 +1453,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DateTimeRangeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DateTimeRangeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DateTimeRangeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DateTimeRangeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DateTimeRangeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DateTimeRangeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DateTimeRangeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DateTimeRangeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1433,14 +1482,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'BeginDateTime': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'BeginDateTime') @@ -1487,7 +1536,7 @@ def get_RequestAction(self): return self.RequestAction def set_RequestAction(self, RequestAction): self.RequestAction = RequestAction - def hasContent_(self): + def _hasContent(self): if ( self.RequestAction is not None ): @@ -1509,17 +1558,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='Request') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='Request') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='Request', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='Request', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='Request'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='Request'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='Request', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='Request', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1534,14 +1583,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'RequestAction': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'RequestAction') @@ -1576,7 +1625,7 @@ def get_ns_prefix_(self): return self.ns_prefix_ def set_ns_prefix_(self, ns_prefix): self.ns_prefix_ = ns_prefix - def hasContent_(self): + def _hasContent(self): if ( ): @@ -1598,16 +1647,16 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='I showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='IntegrationIndicator') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='IntegrationIndicator') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='IntegrationIndicator', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='IntegrationIndicator', pretty_print=pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='IntegrationIndicator'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='IntegrationIndicator'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='IntegrationIndicator', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='IntegrationIndicator', fromsubclass_=False, pretty_print=True): pass def build(self, node, gds_collector_=None): self.gds_collector_ = gds_collector_ @@ -1615,14 +1664,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): pass # end class IntegrationIndicator @@ -1698,7 +1747,8 @@ def parse(inFileName, silence=False, print_warnings=True): return rootObj -def parseEtree(inFileName, silence=False, print_warnings=True): +def parseEtree(inFileName, silence=False, print_warnings=True, + mapping=None, reverse_mapping=None, nsmap=None): parser = None doc = parsexml_(inFileName, parser) gds_collector = GdsCollector_() @@ -1709,10 +1759,15 @@ def parseEtree(inFileName, silence=False, print_warnings=True): rootClass = QuantumViewRequest rootObj = rootClass.factory() rootObj.build(rootNode, gds_collector_=gds_collector) + if mapping is None: + mapping = {} + if reverse_mapping is None: + reverse_mapping = {} + rootElement = rootObj.to_etree( + None, name_=rootTag, mapping_=mapping, + reverse_mapping_=reverse_mapping, nsmap_=nsmap) + reverse_node_mapping = rootObj.gds_reverse_node_mapping(mapping) # Enable Python to collect the space used by the DOM. - mapping = {} - rootElement = rootObj.to_etree(None, name_=rootTag, mapping_=mapping) - reverse_mapping = rootObj.gds_reverse_node_mapping(mapping) if not SaveElementTreeNode: doc = None rootNode = None @@ -1729,7 +1784,7 @@ def parseEtree(inFileName, silence=False, print_warnings=True): len(gds_collector.get_messages()), )) gds_collector.write_messages(sys.stderr) sys.stderr.write(separator) - return rootObj, rootElement, mapping, reverse_mapping + return rootObj, rootElement, mapping, reverse_node_mapping def parseString(inString, silence=False, print_warnings=True): @@ -1813,6 +1868,12 @@ def main(): RenameMappings_ = { } +# +# Mapping of namespaces to types defined in them +# and the file in which each is defined. +# simpleTypes are marked "ST" and complexTypes "CT". +NamespaceToDefMappings_ = {} + __all__ = [ "DateTimeRangeType", "IntegrationIndicator", diff --git a/schemas/ups/ups_lib/quantum_view_response.py b/schemas/ups/ups_lib/quantum_view_response.py index 7d091ff16c..f5ea3e6763 100644 --- a/schemas/ups/ups_lib/quantum_view_response.py +++ b/schemas/ups/ups_lib/quantum_view_response.py @@ -2,34 +2,35 @@ # -*- coding: utf-8 -*- # -# Generated Sat Mar 7 09:04:19 2020 by generateDS.py version 2.35.15. -# Python 3.8.1 (v3.8.1:1b293b6006, Dec 18 2019, 14:08:53) [Clang 6.0 (clang-600.0.57)] +# Generated Wed Nov 10 10:01:02 2021 by generateDS.py version 2.40.5. +# Python 3.8.6 (v3.8.6:db455296be, Sep 23 2020, 13:31:39) [Clang 6.0 (clang-600.0.57)] # # Command line options: # ('--no-namespace-defs', '') -# ('-o', './python/quantum_view_response.py') +# ('-o', './ups_lib/quantum_view_response.py') # # Command line arguments: # ./schemas/QuantumViewResponse.xsd # # Command line: -# /Users/danielkobina/Documents/Open/.env/bin/generateDS --no-namespace-defs -o "./python/quantum_view_response.py" ./schemas/QuantumViewResponse.xsd +# /Users/danielkobina/Workspace/project/purplship/.venv/purplship/bin/generateDS --no-namespace-defs -o "./ups_lib/quantum_view_response.py" ./schemas/QuantumViewResponse.xsd # # Current working directory (os.getcwd()): -# 2020-03 +# ups # +import sys +try: + ModulenotfoundExp_ = ModuleNotFoundError +except NameError: + ModulenotfoundExp_ = ImportError from six.moves import zip_longest import os -import sys import re as re_ import base64 import datetime as datetime_ import decimal as decimal_ -try: - from lxml import etree as etree_ -except ImportError: - from xml.etree import ElementTree as etree_ +from lxml import etree as etree_ Validate_simpletypes_ = True @@ -92,7 +93,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # Additionally, the generatedsnamespaces module can contain a python # dictionary named GenerateDSNamespaceTypePrefixes that associates element # types with the namespace prefixes that are to be added to the -# "xsi:type" attribute value. See the exportAttributes method of +# "xsi:type" attribute value. See the _exportAttributes method of # any generated element type and the generation of "xsi:type" for an # example of the use of this table. # An example table: @@ -107,11 +108,11 @@ def parsexmlstring_(instring, parser=None, **kwargs): try: from generatedsnamespaces import GenerateDSNamespaceDefs as GenerateDSNamespaceDefs_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceDefs_ = {} try: from generatedsnamespaces import GenerateDSNamespaceTypePrefixes as GenerateDSNamespaceTypePrefixes_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceTypePrefixes_ = {} # @@ -122,7 +123,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # try: from generatedscollector import GdsCollector as GdsCollector_ -except ImportError: +except ModulenotfoundExp_ : class GdsCollector_(object): @@ -156,7 +157,7 @@ def write_messages(self, outstream): try: from enum import Enum -except ImportError: +except ModulenotfoundExp_ : Enum = object # @@ -168,9 +169,14 @@ def write_messages(self, outstream): try: from generatedssuper import GeneratedsSuper -except ImportError as exp: +except ModulenotfoundExp_ as exp: + try: + from generatedssupersuper import GeneratedsSuperSuper + except ModulenotfoundExp_ as exp: + class GeneratedsSuperSuper(object): + pass - class GeneratedsSuper(object): + class GeneratedsSuper(GeneratedsSuperSuper): __hash__ = object.__hash__ tzoff_pattern = re_.compile(r'(\+|-)((0\d|1[0-3]):[0-5]\d|14:00)$') class _FixedOffsetTZ(datetime_.tzinfo): @@ -183,6 +189,30 @@ def tzname(self, dt): return self.__name def dst(self, dt): return None + def __str__(self): + settings = { + 'str_pretty_print': True, + 'str_indent_level': 0, + 'str_namespaceprefix': '', + 'str_name': None, + 'str_namespacedefs': '', + } + for n in settings: + if hasattr(self, n): + setattr(settings[n], self[n]) + from io import StringIO + output = StringIO() + self.export( + output, + settings['str_indent_level'], + pretty_print=settings['str_pretty_print'], + namespaceprefix_=settings['str_namespaceprefix'], + name_=settings['str_name'], + namespacedef_=settings['str_namespacedefs'] + ) + strval = output.getvalue() + output.close() + return strval def gds_format_string(self, input_data, input_name=''): return input_data def gds_parse_string(self, input_data, node=None, input_name=''): @@ -193,11 +223,11 @@ def gds_validate_string(self, input_data, node=None, input_name=''): else: return input_data def gds_format_base64(self, input_data, input_name=''): - return base64.b64encode(input_data) + return base64.b64encode(input_data).decode('ascii') def gds_validate_base64(self, input_data, node=None, input_name=''): return input_data def gds_format_integer(self, input_data, input_name=''): - return '%d' % input_data + return '%d' % int(input_data) def gds_parse_integer(self, input_data, node=None, input_name=''): try: ival = int(input_data) @@ -211,6 +241,8 @@ def gds_validate_integer(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires integer value') return value def gds_format_integer_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_integer_list( self, input_data, node=None, input_name=''): @@ -219,10 +251,10 @@ def gds_validate_integer_list( try: int(value) except (TypeError, ValueError): - raise_parse_error(node, 'Requires sequence of integer valuess') + raise_parse_error(node, 'Requires sequence of integer values') return values def gds_format_float(self, input_data, input_name=''): - return ('%.15f' % input_data).rstrip('0') + return ('%.15f' % float(input_data)).rstrip('0') def gds_parse_float(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -236,6 +268,8 @@ def gds_validate_float(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires float value') return value def gds_format_float_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_float_list( self, input_data, node=None, input_name=''): @@ -247,7 +281,12 @@ def gds_validate_float_list( raise_parse_error(node, 'Requires sequence of float values') return values def gds_format_decimal(self, input_data, input_name=''): - return ('%s' % input_data).rstrip('0') + return_value = '%s' % input_data + if '.' in return_value: + return_value = return_value.rstrip('0') + if return_value.endswith('.'): + return_value = return_value.rstrip('.') + return return_value def gds_parse_decimal(self, input_data, node=None, input_name=''): try: decimal_value = decimal_.Decimal(input_data) @@ -261,7 +300,9 @@ def gds_validate_decimal(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires decimal value') return value def gds_format_decimal_list(self, input_data, input_name=''): - return '%s' % ' '.join(input_data) + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] + return ' '.join([self.gds_format_decimal(item) for item in input_data]) def gds_validate_decimal_list( self, input_data, node=None, input_name=''): values = input_data.split() @@ -272,7 +313,7 @@ def gds_validate_decimal_list( raise_parse_error(node, 'Requires sequence of decimal values') return values def gds_format_double(self, input_data, input_name=''): - return '%e' % input_data + return '%s' % input_data def gds_parse_double(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -286,6 +327,8 @@ def gds_validate_double(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires double or float value') return value def gds_format_double_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_double_list( self, input_data, node=None, input_name=''): @@ -315,11 +358,14 @@ def gds_validate_boolean(self, input_data, node=None, input_name=''): '(one of True, 1, False, 0)') return input_data def gds_format_boolean_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_boolean_list( self, input_data, node=None, input_name=''): values = input_data.split() for value in values: + value = self.gds_parse_boolean(value, node, input_name) if value not in (True, 1, False, 0, ): raise_parse_error( node, @@ -766,7 +812,10 @@ def find_attr_value_(attr_name, node): value = attrs.get(attr_name) elif len(attr_parts) == 2: prefix, name = attr_parts - namespace = node.nsmap.get(prefix) + if prefix == 'xml': + namespace = 'http://www.w3.org/XML/1998/namespace' + else: + namespace = node.nsmap.get(prefix) if namespace is not None: value = attrs.get('{%s}%s' % (namespace, name, )) return value @@ -847,7 +896,7 @@ def exportSimple(self, outfile, level, name): self.name, base64.b64encode(self.value), self.name)) - def to_etree(self, element): + def to_etree(self, element, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.category == MixedContainer.CategoryText: # Prevent exporting empty content as empty lines. if self.value.strip(): @@ -867,7 +916,7 @@ def to_etree(self, element): subelement.text = self.to_etree_simple() else: # category == MixedContainer.CategoryComplex self.value.to_etree(element) - def to_etree_simple(self): + def to_etree_simple(self, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.content_type == MixedContainer.TypeString: text = self.value elif (self.content_type == MixedContainer.TypeInteger or @@ -988,7 +1037,7 @@ def get_Bookmark(self): return self.Bookmark def set_Bookmark(self, Bookmark): self.Bookmark = Bookmark - def hasContent_(self): + def _hasContent(self): if ( self.Response is not None or self.QuantumViewEvents is not None or @@ -1012,17 +1061,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='Q showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='QuantumViewResponse') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='QuantumViewResponse') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='QuantumViewResponse', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='QuantumViewResponse', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='QuantumViewResponse'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='QuantumViewResponse'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='QuantumViewResponse', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='QuantumViewResponse', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1043,14 +1092,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Response': obj_ = Response.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1122,7 +1171,7 @@ def insert_File_at(self, index, value): self.File.insert(index, value) def replace_File_at(self, index, value): self.File[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Version is not None or self.Header is not None or @@ -1146,17 +1195,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CSVFormatType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CSVFormatType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CSVFormatType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CSVFormatType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CSVFormatType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CSVFormatType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CSVFormatType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CSVFormatType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1179,14 +1228,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Version': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Version') @@ -1254,7 +1303,7 @@ def insert_File_at(self, index, value): self.File.insert(index, value) def replace_File_at(self, index, value): self.File[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Version is not None or self.File @@ -1277,17 +1326,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='F showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FlatFileFormatType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FlatFileFormatType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FlatFileFormatType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FlatFileFormatType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FlatFileFormatType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FlatFileFormatType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FlatFileFormatType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FlatFileFormatType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1306,14 +1355,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Version': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Version') @@ -1375,7 +1424,7 @@ def insert_SubscriptionEvents_at(self, index, value): self.SubscriptionEvents.insert(index, value) def replace_SubscriptionEvents_at(self, index, value): self.SubscriptionEvents[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.SubscriberID is not None or self.SubscriptionEvents @@ -1398,17 +1447,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='Q showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='QuantumViewEventsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='QuantumViewEventsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='QuantumViewEventsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='QuantumViewEventsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='QuantumViewEventsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='QuantumViewEventsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='QuantumViewEventsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='QuantumViewEventsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1426,14 +1475,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'SubscriberID': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'SubscriberID') @@ -1512,7 +1561,7 @@ def insert_SubscriptionFile_at(self, index, value): self.SubscriptionFile.insert(index, value) def replace_SubscriptionFile_at(self, index, value): self.SubscriptionFile[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Name is not None or self.Number is not None or @@ -1538,17 +1587,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SubscriptionEventsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SubscriptionEventsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='SubscriptionEventsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='SubscriptionEventsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='SubscriptionEventsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='SubscriptionEventsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='SubscriptionEventsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='SubscriptionEventsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1576,14 +1625,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Name': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Name') @@ -1651,7 +1700,7 @@ def get_EndDate(self): return self.EndDate def set_EndDate(self, EndDate): self.EndDate = EndDate - def hasContent_(self): + def _hasContent(self): if ( self.BeginDate is not None or self.EndDate is not None @@ -1674,17 +1723,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DateTimeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DateTimeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DateTimeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DateTimeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DateTimeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DateTimeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DateTimeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DateTimeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1703,14 +1752,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'BeginDate': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'BeginDate') @@ -1763,7 +1812,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -1786,17 +1835,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CodeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CodeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CodeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CodeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1815,14 +1864,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -1875,7 +1924,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -1898,17 +1947,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='StatusTypeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='StatusTypeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='StatusTypeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='StatusTypeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='StatusTypeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='StatusTypeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='StatusTypeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='StatusTypeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1927,14 +1976,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -2062,7 +2111,7 @@ def insert_Generic_at(self, index, value): self.Generic.insert(index, value) def replace_Generic_at(self, index, value): self.Generic[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.FileName is not None or self.StatusType is not None or @@ -2090,17 +2139,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SubscriptionFileType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SubscriptionFileType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='SubscriptionFileType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='SubscriptionFileType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='SubscriptionFileType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='SubscriptionFileType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='SubscriptionFileType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='SubscriptionFileType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2133,14 +2182,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'FileName': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'FileName') @@ -2289,7 +2338,7 @@ def get_FailureNotification(self): return self.FailureNotification def set_FailureNotification(self, FailureNotification): self.FailureNotification = FailureNotification - def hasContent_(self): + def _hasContent(self): if ( self.ActivityType is not None or self.TrackingNumber is not None or @@ -2321,17 +2370,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='G showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='GenericType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='GenericType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='GenericType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='GenericType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='GenericType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='GenericType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='GenericType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='GenericType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2379,14 +2428,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ActivityType': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ActivityType') @@ -2486,7 +2535,7 @@ def get_FailureNotificationCode(self): return self.FailureNotificationCode def set_FailureNotificationCode(self, FailureNotificationCode): self.FailureNotificationCode = FailureNotificationCode - def hasContent_(self): + def _hasContent(self): if ( self.FailedEmailAddress is not None or self.FailureNotificationCode is not None @@ -2509,17 +2558,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='F showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FailureNotificationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FailureNotificationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FailureNotificationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FailureNotificationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FailureNotificationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FailureNotificationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FailureNotificationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FailureNotificationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2537,14 +2586,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'FailedEmailAddress': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'FailedEmailAddress') @@ -2596,7 +2645,7 @@ def get_Time(self): return self.Time def set_Time(self, Time): self.Time = Time - def hasContent_(self): + def _hasContent(self): if ( self.Date is not None or self.Time is not None @@ -2619,17 +2668,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='G showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='GenericActivityType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='GenericActivityType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='GenericActivityType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='GenericActivityType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='GenericActivityType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='GenericActivityType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='GenericActivityType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='GenericActivityType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2648,14 +2697,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Date': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Date') @@ -2792,7 +2841,7 @@ def get_AccessPointLocationID(self): return self.AccessPointLocationID def set_AccessPointLocationID(self, AccessPointLocationID): self.AccessPointLocationID = AccessPointLocationID - def hasContent_(self): + def _hasContent(self): if ( self.PackageReferenceNumber or self.ShipmentReferenceNumber or @@ -2826,17 +2875,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DeliveryType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DeliveryType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DeliveryType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DeliveryType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DeliveryType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DeliveryType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DeliveryType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DeliveryType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2893,14 +2942,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PackageReferenceNumber': obj_ = ReferenceNumberType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -3127,7 +3176,7 @@ def get_SimplifiedText(self): return self.SimplifiedText def set_SimplifiedText(self, SimplifiedText): self.SimplifiedText = SimplifiedText - def hasContent_(self): + def _hasContent(self): if ( self.PackageReferenceNumber or self.ShipmentReferenceNumber or @@ -3166,17 +3215,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='E showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ExceptionType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ExceptionType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ExceptionType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ExceptionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ExceptionType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ExceptionType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ExceptionType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ExceptionType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3253,14 +3302,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PackageReferenceNumber': obj_ = ReferenceNumberType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -3472,7 +3521,7 @@ def get_PostcodePrimaryLow(self): return self.PostcodePrimaryLow def set_PostcodePrimaryLow(self, PostcodePrimaryLow): self.PostcodePrimaryLow = PostcodePrimaryLow - def hasContent_(self): + def _hasContent(self): if ( self.ConsigneeName is not None or self.StreetNumberLow is not None or @@ -3505,17 +3554,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='U showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UpdatedAddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UpdatedAddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UpdatedAddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UpdatedAddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UpdatedAddressType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UpdatedAddressType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UpdatedAddressType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UpdatedAddressType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3573,14 +3622,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ConsigneeName': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ConsigneeName') @@ -3698,7 +3747,7 @@ def get_High(self): return self.High def set_High(self, High): self.High = High - def hasContent_(self): + def _hasContent(self): if ( self.Type is not None or self.Low is not None or @@ -3722,17 +3771,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressExtendedInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressExtendedInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressExtendedInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressExtendedInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AddressExtendedInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AddressExtendedInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AddressExtendedInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AddressExtendedInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3755,14 +3804,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Type': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Type') @@ -3887,7 +3936,7 @@ def get_ScheduledDeliveryTime(self): return self.ScheduledDeliveryTime def set_ScheduledDeliveryTime(self, ScheduledDeliveryTime): self.ScheduledDeliveryTime = ScheduledDeliveryTime - def hasContent_(self): + def _hasContent(self): if ( self.PackageReferenceNumber or self.ShipmentReferenceNumber or @@ -3918,17 +3967,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='O showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='OriginType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='OriginType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='OriginType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='OriginType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='OriginType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='OriginType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='OriginType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='OriginType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3975,14 +4024,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PackageReferenceNumber': obj_ = ReferenceNumberType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -4073,7 +4122,7 @@ def get_AddressArtifactFormat(self): return self.AddressArtifactFormat def set_AddressArtifactFormat(self, AddressArtifactFormat): self.AddressArtifactFormat = AddressArtifactFormat - def hasContent_(self): + def _hasContent(self): if ( self.AddressArtifactFormat is not None ): @@ -4095,17 +4144,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ActivityLocationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ActivityLocationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ActivityLocationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ActivityLocationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ActivityLocationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ActivityLocationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ActivityLocationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ActivityLocationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4119,14 +4168,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AddressArtifactFormat': obj_ = AddressArtifactFormatType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -4178,7 +4227,7 @@ def get_CountryCode(self): return self.CountryCode def set_CountryCode(self, CountryCode): self.CountryCode = CountryCode - def hasContent_(self): + def _hasContent(self): if ( self.PoliticalDivision2 is not None or self.PoliticalDivision1 is not None or @@ -4202,17 +4251,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressArtifactFormatType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressArtifactFormatType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressArtifactFormatType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressArtifactFormatType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AddressArtifactFormatType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AddressArtifactFormatType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AddressArtifactFormatType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AddressArtifactFormatType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4235,14 +4284,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PoliticalDivision2': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'PoliticalDivision2') @@ -4313,7 +4362,7 @@ def get_SignedForByName(self): return self.SignedForByName def set_SignedForByName(self, SignedForByName): self.SignedForByName = SignedForByName - def hasContent_(self): + def _hasContent(self): if ( self.AddressArtifactFormat is not None or self.Code is not None or @@ -4338,17 +4387,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DeliveryLocationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DeliveryLocationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DeliveryLocationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DeliveryLocationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DeliveryLocationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DeliveryLocationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DeliveryLocationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DeliveryLocationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4374,14 +4423,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AddressArtifactFormat': obj_ = DeliveryLocationAddressArtifactFormatType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -4532,7 +4581,7 @@ def get_ResidentialAddressIndicator(self): return self.ResidentialAddressIndicator def set_ResidentialAddressIndicator(self, ResidentialAddressIndicator): self.ResidentialAddressIndicator = ResidentialAddressIndicator - def hasContent_(self): + def _hasContent(self): if ( self.ConsigneeName is not None or self.StreetNumberLow is not None or @@ -4568,17 +4617,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DeliveryLocationAddressArtifactFormatType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DeliveryLocationAddressArtifactFormatType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DeliveryLocationAddressArtifactFormatType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DeliveryLocationAddressArtifactFormatType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DeliveryLocationAddressArtifactFormatType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DeliveryLocationAddressArtifactFormatType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DeliveryLocationAddressArtifactFormatType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DeliveryLocationAddressArtifactFormatType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4647,14 +4696,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ConsigneeName': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ConsigneeName') @@ -5065,7 +5114,7 @@ def get_ItemDisposalIndicator(self): return self.ItemDisposalIndicator def set_ItemDisposalIndicator(self, ItemDisposalIndicator): self.ItemDisposalIndicator = ItemDisposalIndicator - def hasContent_(self): + def _hasContent(self): if ( self.Shipper is not None or self.ShipTo is not None or @@ -5132,17 +5181,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='M showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ManifestType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ManifestType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ManifestType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ManifestType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ManifestType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ManifestType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ManifestType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ManifestType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5326,14 +5375,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Shipper': obj_ = ShipperType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -5651,7 +5700,7 @@ def get_PhoneNumber(self): return self.PhoneNumber def set_PhoneNumber(self, PhoneNumber): self.PhoneNumber = PhoneNumber - def hasContent_(self): + def _hasContent(self): if ( self.CompanyName is not None or self.AttentionName is not None or @@ -5676,17 +5725,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='U showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UAPAddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UAPAddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UAPAddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UAPAddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UAPAddressType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UAPAddressType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UAPAddressType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UAPAddressType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5712,14 +5761,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CompanyName': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CompanyName') @@ -5771,7 +5820,7 @@ def get_ns_prefix_(self): return self.ns_prefix_ def set_ns_prefix_(self, ns_prefix): self.ns_prefix_ = ns_prefix - def hasContent_(self): + def _hasContent(self): if ( ): @@ -5793,16 +5842,16 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CollectBillIndicator') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CollectBillIndicator') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CollectBillIndicator', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CollectBillIndicator', pretty_print=pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CollectBillIndicator'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CollectBillIndicator'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CollectBillIndicator', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CollectBillIndicator', fromsubclass_=False, pretty_print=True): pass def build(self, node, gds_collector_=None): self.gds_collector_ = gds_collector_ @@ -5810,14 +5859,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): pass # end class CollectBillIndicator @@ -5847,7 +5896,7 @@ def get_ns_prefix_(self): return self.ns_prefix_ def set_ns_prefix_(self, ns_prefix): self.ns_prefix_ = ns_prefix - def hasContent_(self): + def _hasContent(self): if ( ): @@ -5869,16 +5918,16 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ConsigneeBillIndicator') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ConsigneeBillIndicator') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ConsigneeBillIndicator', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ConsigneeBillIndicator', pretty_print=pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ConsigneeBillIndicator'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ConsigneeBillIndicator'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ConsigneeBillIndicator', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ConsigneeBillIndicator', fromsubclass_=False, pretty_print=True): pass def build(self, node, gds_collector_=None): self.gds_collector_ = gds_collector_ @@ -5886,14 +5935,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): pass # end class ConsigneeBillIndicator @@ -5935,7 +5984,7 @@ def get_Number(self): return self.Number def set_Number(self, Number): self.Number = Number - def hasContent_(self): + def _hasContent(self): if ( self.Option is not None or self.Number is not None @@ -5958,17 +6007,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='B showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='BillToAccountType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='BillToAccountType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='BillToAccountType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='BillToAccountType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='BillToAccountType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='BillToAccountType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='BillToAccountType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='BillToAccountType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5987,14 +6036,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Option': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Option') @@ -6053,7 +6102,7 @@ def get_CallTagARS(self): return self.CallTagARS def set_CallTagARS(self, CallTagARS): self.CallTagARS = CallTagARS - def hasContent_(self): + def _hasContent(self): if ( self.SaturdayPickup is not None or self.SaturdayDelivery is not None or @@ -6077,17 +6126,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentServiceOptionsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentServiceOptionsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentServiceOptionsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentServiceOptionsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentServiceOptionsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentServiceOptionsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentServiceOptionsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentServiceOptionsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6107,14 +6156,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'SaturdayPickup': obj_ = SaturdayPickup.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -6164,7 +6213,7 @@ def get_MonetaryValue(self): return self.MonetaryValue def set_MonetaryValue(self, MonetaryValue): self.MonetaryValue = MonetaryValue - def hasContent_(self): + def _hasContent(self): if ( self.MonetaryValue is not None ): @@ -6186,17 +6235,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CustomsValueType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CustomsValueType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CustomsValueType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CustomsValueType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CustomsValueType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CustomsValueType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CustomsValueType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CustomsValueType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6211,14 +6260,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'MonetaryValue': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'MonetaryValue') @@ -6253,7 +6302,7 @@ def get_ns_prefix_(self): return self.ns_prefix_ def set_ns_prefix_(self, ns_prefix): self.ns_prefix_ = ns_prefix - def hasContent_(self): + def _hasContent(self): if ( ): @@ -6275,16 +6324,16 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SaturdayPickup') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SaturdayPickup') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='SaturdayPickup', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='SaturdayPickup', pretty_print=pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='SaturdayPickup'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='SaturdayPickup'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='SaturdayPickup', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='SaturdayPickup', fromsubclass_=False, pretty_print=True): pass def build(self, node, gds_collector_=None): self.gds_collector_ = gds_collector_ @@ -6292,14 +6341,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): pass # end class SaturdayPickup @@ -6329,7 +6378,7 @@ def get_ns_prefix_(self): return self.ns_prefix_ def set_ns_prefix_(self, ns_prefix): self.ns_prefix_ = ns_prefix - def hasContent_(self): + def _hasContent(self): if ( ): @@ -6351,16 +6400,16 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SaturdayDelivery') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SaturdayDelivery') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='SaturdayDelivery', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='SaturdayDelivery', pretty_print=pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='SaturdayDelivery'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='SaturdayDelivery'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='SaturdayDelivery', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='SaturdayDelivery', fromsubclass_=False, pretty_print=True): pass def build(self, node, gds_collector_=None): self.gds_collector_ = gds_collector_ @@ -6368,14 +6417,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): pass # end class SaturdayDelivery @@ -6417,7 +6466,7 @@ def get_Code(self): return self.Code def set_Code(self, Code): self.Code = Code - def hasContent_(self): + def _hasContent(self): if ( self.Number is not None or self.Code is not None @@ -6440,17 +6489,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CallTagARSType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CallTagARSType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CallTagARSType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CallTagARSType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CallTagARSType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CallTagARSType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CallTagARSType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CallTagARSType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6469,14 +6518,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Number': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Number') @@ -6595,7 +6644,7 @@ def get_UPSPremiumCareIndicator(self): return self.UPSPremiumCareIndicator def set_UPSPremiumCareIndicator(self, UPSPremiumCareIndicator): self.UPSPremiumCareIndicator = UPSPremiumCareIndicator - def hasContent_(self): + def _hasContent(self): if ( self.Activity or self.Description is not None or @@ -6626,17 +6675,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6681,14 +6730,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Activity': obj_ = ActivityType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -6801,7 +6850,7 @@ def get_HoldForPickup(self): return self.HoldForPickup def set_HoldForPickup(self, HoldForPickup): self.HoldForPickup = HoldForPickup - def hasContent_(self): + def _hasContent(self): if ( self.COD is not None or self.InsuredValue is not None or @@ -6827,17 +6876,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageServiceOptionsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageServiceOptionsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageServiceOptionsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageServiceOptionsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageServiceOptionsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageServiceOptionsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageServiceOptionsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageServiceOptionsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6865,14 +6914,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'COD': obj_ = PackageCODType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -6940,7 +6989,7 @@ def get_CODAmount(self): return self.CODAmount def set_CODAmount(self, CODAmount): self.CODAmount = CODAmount - def hasContent_(self): + def _hasContent(self): if ( self.CODCode is not None or self.CODAmount is not None @@ -6963,17 +7012,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageCODType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageCODType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageCODType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageCODType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageCODType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageCODType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageCODType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageCODType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6991,14 +7040,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CODCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CODCode') @@ -7044,7 +7093,7 @@ def get_CODAmount(self): return self.CODAmount def set_CODAmount(self, CODAmount): self.CODAmount = CODAmount - def hasContent_(self): + def _hasContent(self): if ( self.CODAmount is not None ): @@ -7066,17 +7115,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CODType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CODType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CODType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CODType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CODType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CODType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CODType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CODType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7090,14 +7139,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CODAmount': obj_ = MonetaryType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -7143,7 +7192,7 @@ def get_MonetaryValue(self): return self.MonetaryValue def set_MonetaryValue(self, MonetaryValue): self.MonetaryValue = MonetaryValue - def hasContent_(self): + def _hasContent(self): if ( self.CurrencyCode is not None or self.MonetaryValue is not None @@ -7166,17 +7215,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='M showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='MonetaryType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='MonetaryType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='MonetaryType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='MonetaryType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='MonetaryType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='MonetaryType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='MonetaryType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='MonetaryType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7195,14 +7244,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CurrencyCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CurrencyCode') @@ -7255,7 +7304,7 @@ def get_Time(self): return self.Time def set_Time(self, Time): self.Time = Time - def hasContent_(self): + def _hasContent(self): if ( self.Date is not None or self.Time is not None @@ -7278,17 +7327,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ActivityType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ActivityType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ActivityType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ActivityType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ActivityType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ActivityType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ActivityType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ActivityType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7307,14 +7356,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Date': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Date') @@ -7379,7 +7428,7 @@ def get_UnitOfMeasurement(self): return self.UnitOfMeasurement def set_UnitOfMeasurement(self, UnitOfMeasurement): self.UnitOfMeasurement = UnitOfMeasurement - def hasContent_(self): + def _hasContent(self): if ( self.Length is not None or self.Width is not None or @@ -7404,17 +7453,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DimensionsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DimensionsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DimensionsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DimensionsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DimensionsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DimensionsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DimensionsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DimensionsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7440,14 +7489,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Length': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Length') @@ -7511,7 +7560,7 @@ def get_Weight(self): return self.Weight def set_Weight(self, Weight): self.Weight = Weight - def hasContent_(self): + def _hasContent(self): if ( self.UnitOfMeasurement is not None or self.Weight is not None @@ -7534,17 +7583,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DimensionalWeightType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DimensionalWeightType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DimensionalWeightType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DimensionalWeightType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DimensionalWeightType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DimensionalWeightType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DimensionalWeightType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DimensionalWeightType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7562,14 +7611,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'UnitOfMeasurement': obj_ = CodeType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -7621,7 +7670,7 @@ def get_Weight(self): return self.Weight def set_Weight(self, Weight): self.Weight = Weight - def hasContent_(self): + def _hasContent(self): if ( self.UnitOfMeasurement is not None or self.Weight is not None @@ -7644,17 +7693,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageWeightType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageWeightType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageWeightType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageWeightType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageWeightType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageWeightType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageWeightType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageWeightType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7672,14 +7721,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'UnitOfMeasurement': obj_ = CodeType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -7767,7 +7816,7 @@ def get_Address(self): return self.Address def set_Address(self, Address): self.Address = Address - def hasContent_(self): + def _hasContent(self): if ( self.Name is not None or self.AttentionName is not None or @@ -7796,17 +7845,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipperType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipperType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipperType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipperType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipperType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipperType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipperType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipperType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7848,14 +7897,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Name': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Name') @@ -7979,7 +8028,7 @@ def get_ResidentialAddressIndicator(self): return self.ResidentialAddressIndicator def set_ResidentialAddressIndicator(self, ResidentialAddressIndicator): self.ResidentialAddressIndicator = ResidentialAddressIndicator - def hasContent_(self): + def _hasContent(self): if ( self.AddressLine1 is not None or self.AddressLine2 is not None or @@ -8008,17 +8057,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AddressType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AddressType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AddressType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AddressType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8060,14 +8109,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AddressLine1': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'AddressLine1') @@ -8197,7 +8246,7 @@ def get_ResidentialAddressIndicator(self): return self.ResidentialAddressIndicator def set_ResidentialAddressIndicator(self, ResidentialAddressIndicator): self.ResidentialAddressIndicator = ResidentialAddressIndicator - def hasContent_(self): + def _hasContent(self): if ( self.ConsigneeName is not None or self.AddressLine1 is not None or @@ -8227,17 +8276,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipToAddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipToAddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipToAddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipToAddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipToAddressType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipToAddressType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipToAddressType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipToAddressType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8283,14 +8332,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ConsigneeName': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ConsigneeName') @@ -8372,7 +8421,7 @@ def get_ns_prefix_(self): return self.ns_prefix_ def set_ns_prefix_(self, ns_prefix): self.ns_prefix_ = ns_prefix - def hasContent_(self): + def _hasContent(self): if ( ): @@ -8394,16 +8443,16 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResidentialAddressIndicator') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResidentialAddressIndicator') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResidentialAddressIndicator', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResidentialAddressIndicator', pretty_print=pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ResidentialAddressIndicator'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ResidentialAddressIndicator'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ResidentialAddressIndicator', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ResidentialAddressIndicator', fromsubclass_=False, pretty_print=True): pass def build(self, node, gds_collector_=None): self.gds_collector_ = gds_collector_ @@ -8411,14 +8460,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): pass # end class ResidentialAddressIndicator @@ -8466,7 +8515,7 @@ def get_Bookmark(self): return self.Bookmark def set_Bookmark(self, Bookmark): self.Bookmark = Bookmark - def hasContent_(self): + def _hasContent(self): if ( self.LocationID is not None or self.ReceivingAddressName is not None or @@ -8490,17 +8539,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='G showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='GenericShipToType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='GenericShipToType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='GenericShipToType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='GenericShipToType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='GenericShipToType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='GenericShipToType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='GenericShipToType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='GenericShipToType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8523,14 +8572,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'LocationID': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'LocationID') @@ -8637,7 +8686,7 @@ def get_ReceivingAddressName(self): return self.ReceivingAddressName def set_ReceivingAddressName(self, ReceivingAddressName): self.ReceivingAddressName = ReceivingAddressName - def hasContent_(self): + def _hasContent(self): if ( self.ShipperAssignedIdentificationNumber is not None or self.CompanyName is not None or @@ -8668,17 +8717,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipToType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipToType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipToType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipToType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipToType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipToType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipToType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipToType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8728,14 +8777,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ShipperAssignedIdentificationNumber': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ShipperAssignedIdentificationNumber') @@ -8835,7 +8884,7 @@ def get_Weight(self): return self.Weight def set_Weight(self, Weight): self.Weight = Weight - def hasContent_(self): + def _hasContent(self): if ( self.UnitOfMeasurement is not None or self.Weight is not None @@ -8858,17 +8907,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='W showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='WeightType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='WeightType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='WeightType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='WeightType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='WeightType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='WeightType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='WeightType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='WeightType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8886,14 +8935,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'UnitOfMeasurement': obj_ = CodeType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -8957,7 +9006,7 @@ def get_Value(self): return self.Value def set_Value(self, Value): self.Value = Value - def hasContent_(self): + def _hasContent(self): if ( self.BarCodeIndicator is not None or self.Number is not None or @@ -8982,17 +9031,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ReferenceNumberType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ReferenceNumberType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ReferenceNumberType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ReferenceNumberType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ReferenceNumberType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ReferenceNumberType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ReferenceNumberType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ReferenceNumberType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -9019,14 +9068,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'BarCodeIndicator': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'BarCodeIndicator') @@ -9079,7 +9128,7 @@ def get_ns_prefix_(self): return self.ns_prefix_ def set_ns_prefix_(self, ns_prefix): self.ns_prefix_ = ns_prefix - def hasContent_(self): + def _hasContent(self): if ( ): @@ -9101,16 +9150,16 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='H showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HoldForPickup') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HoldForPickup') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HoldForPickup', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HoldForPickup', pretty_print=pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HoldForPickup'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HoldForPickup'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HoldForPickup', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HoldForPickup', fromsubclass_=False, pretty_print=True): pass def build(self, node, gds_collector_=None): self.gds_collector_ = gds_collector_ @@ -9118,14 +9167,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): pass # end class HoldForPickup @@ -9188,7 +9237,7 @@ def insert_Error_at(self, index, value): self.Error.insert(index, value) def replace_Error_at(self, index, value): self.Error[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.TransactionReference is not None or self.ResponseStatusCode is not None or @@ -9213,17 +9262,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='Response') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='Response') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='Response', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='Response', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='Response'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='Response'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='Response', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='Response', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -9248,14 +9297,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'TransactionReference': obj_ = TransactionReference.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -9324,7 +9373,7 @@ def get_ToolVersion(self): return self.ToolVersion def set_ToolVersion(self, ToolVersion): self.ToolVersion = ToolVersion - def hasContent_(self): + def _hasContent(self): if ( self.CustomerContext is not None or self.XpciVersion is not None or @@ -9348,17 +9397,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='T showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionReference') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionReference') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionReference', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionReference', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TransactionReference'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TransactionReference'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TransactionReference', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TransactionReference', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -9381,14 +9430,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CustomerContext': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CustomerContext') @@ -9489,7 +9538,7 @@ def insert_ErrorDigest_at(self, index, value): self.ErrorDigest.insert(index, value) def replace_ErrorDigest_at(self, index, value): self.ErrorDigest[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.ErrorSeverity is not None or self.ErrorCode is not None or @@ -9516,17 +9565,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='E showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='Error') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='Error') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='Error', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='Error', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='Error'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='Error'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='Error', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='Error', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -9560,14 +9609,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ErrorSeverity': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ErrorSeverity') @@ -9649,7 +9698,7 @@ def get_ErrorLocationAttributeName(self): return self.ErrorLocationAttributeName def set_ErrorLocationAttributeName(self, ErrorLocationAttributeName): self.ErrorLocationAttributeName = ErrorLocationAttributeName - def hasContent_(self): + def _hasContent(self): if ( self.ErrorLocationElementName is not None or self.ErrorLocationElementReference is not None or @@ -9673,17 +9722,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='E showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ErrorLocation') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ErrorLocation') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ErrorLocation', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ErrorLocation', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ErrorLocation'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ErrorLocation'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ErrorLocation', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ErrorLocation', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -9706,14 +9755,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ErrorLocationElementName': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ErrorLocationElementName') @@ -9806,7 +9855,8 @@ def parse(inFileName, silence=False, print_warnings=True): return rootObj -def parseEtree(inFileName, silence=False, print_warnings=True): +def parseEtree(inFileName, silence=False, print_warnings=True, + mapping=None, reverse_mapping=None, nsmap=None): parser = None doc = parsexml_(inFileName, parser) gds_collector = GdsCollector_() @@ -9817,10 +9867,15 @@ def parseEtree(inFileName, silence=False, print_warnings=True): rootClass = QuantumViewResponse rootObj = rootClass.factory() rootObj.build(rootNode, gds_collector_=gds_collector) + if mapping is None: + mapping = {} + if reverse_mapping is None: + reverse_mapping = {} + rootElement = rootObj.to_etree( + None, name_=rootTag, mapping_=mapping, + reverse_mapping_=reverse_mapping, nsmap_=nsmap) + reverse_node_mapping = rootObj.gds_reverse_node_mapping(mapping) # Enable Python to collect the space used by the DOM. - mapping = {} - rootElement = rootObj.to_etree(None, name_=rootTag, mapping_=mapping) - reverse_mapping = rootObj.gds_reverse_node_mapping(mapping) if not SaveElementTreeNode: doc = None rootNode = None @@ -9837,7 +9892,7 @@ def parseEtree(inFileName, silence=False, print_warnings=True): len(gds_collector.get_messages()), )) gds_collector.write_messages(sys.stderr) sys.stderr.write(separator) - return rootObj, rootElement, mapping, reverse_mapping + return rootObj, rootElement, mapping, reverse_node_mapping def parseString(inString, silence=False, print_warnings=True): @@ -9921,6 +9976,12 @@ def main(): RenameMappings_ = { } +# +# Mapping of namespaces to types defined in them +# and the file in which each is defined. +# simpleTypes are marked "ST" and complexTypes "CT". +NamespaceToDefMappings_ = {} + __all__ = [ "ActivityLocationType", "ActivityType", diff --git a/schemas/ups/ups_lib/rate_web_service_schema.py b/schemas/ups/ups_lib/rate_web_service_schema.py index ceaf274990..4ed870c637 100644 --- a/schemas/ups/ups_lib/rate_web_service_schema.py +++ b/schemas/ups/ups_lib/rate_web_service_schema.py @@ -2,34 +2,35 @@ # -*- coding: utf-8 -*- # -# Generated Sat Mar 7 09:04:19 2020 by generateDS.py version 2.35.15. -# Python 3.8.1 (v3.8.1:1b293b6006, Dec 18 2019, 14:08:53) [Clang 6.0 (clang-600.0.57)] +# Generated Wed Nov 10 10:01:03 2021 by generateDS.py version 2.40.5. +# Python 3.8.6 (v3.8.6:db455296be, Sep 23 2020, 13:31:39) [Clang 6.0 (clang-600.0.57)] # # Command line options: # ('--no-namespace-defs', '') -# ('-o', './python/rate_web_service_schema.py') +# ('-o', './ups_lib/rate_web_service_schema.py') # # Command line arguments: # ./schemas/RateWebServiceSchema.xsd # # Command line: -# /Users/danielkobina/Documents/Open/.env/bin/generateDS --no-namespace-defs -o "./python/rate_web_service_schema.py" ./schemas/RateWebServiceSchema.xsd +# /Users/danielkobina/Workspace/project/purplship/.venv/purplship/bin/generateDS --no-namespace-defs -o "./ups_lib/rate_web_service_schema.py" ./schemas/RateWebServiceSchema.xsd # # Current working directory (os.getcwd()): -# 2020-03 +# ups # +import sys +try: + ModulenotfoundExp_ = ModuleNotFoundError +except NameError: + ModulenotfoundExp_ = ImportError from six.moves import zip_longest import os -import sys import re as re_ import base64 import datetime as datetime_ import decimal as decimal_ -try: - from lxml import etree as etree_ -except ImportError: - from xml.etree import ElementTree as etree_ +from lxml import etree as etree_ Validate_simpletypes_ = True @@ -92,7 +93,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # Additionally, the generatedsnamespaces module can contain a python # dictionary named GenerateDSNamespaceTypePrefixes that associates element # types with the namespace prefixes that are to be added to the -# "xsi:type" attribute value. See the exportAttributes method of +# "xsi:type" attribute value. See the _exportAttributes method of # any generated element type and the generation of "xsi:type" for an # example of the use of this table. # An example table: @@ -107,11 +108,11 @@ def parsexmlstring_(instring, parser=None, **kwargs): try: from generatedsnamespaces import GenerateDSNamespaceDefs as GenerateDSNamespaceDefs_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceDefs_ = {} try: from generatedsnamespaces import GenerateDSNamespaceTypePrefixes as GenerateDSNamespaceTypePrefixes_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceTypePrefixes_ = {} # @@ -122,7 +123,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # try: from generatedscollector import GdsCollector as GdsCollector_ -except ImportError: +except ModulenotfoundExp_ : class GdsCollector_(object): @@ -156,7 +157,7 @@ def write_messages(self, outstream): try: from enum import Enum -except ImportError: +except ModulenotfoundExp_ : Enum = object # @@ -168,9 +169,14 @@ def write_messages(self, outstream): try: from generatedssuper import GeneratedsSuper -except ImportError as exp: +except ModulenotfoundExp_ as exp: + try: + from generatedssupersuper import GeneratedsSuperSuper + except ModulenotfoundExp_ as exp: + class GeneratedsSuperSuper(object): + pass - class GeneratedsSuper(object): + class GeneratedsSuper(GeneratedsSuperSuper): __hash__ = object.__hash__ tzoff_pattern = re_.compile(r'(\+|-)((0\d|1[0-3]):[0-5]\d|14:00)$') class _FixedOffsetTZ(datetime_.tzinfo): @@ -183,6 +189,30 @@ def tzname(self, dt): return self.__name def dst(self, dt): return None + def __str__(self): + settings = { + 'str_pretty_print': True, + 'str_indent_level': 0, + 'str_namespaceprefix': '', + 'str_name': None, + 'str_namespacedefs': '', + } + for n in settings: + if hasattr(self, n): + setattr(settings[n], self[n]) + from io import StringIO + output = StringIO() + self.export( + output, + settings['str_indent_level'], + pretty_print=settings['str_pretty_print'], + namespaceprefix_=settings['str_namespaceprefix'], + name_=settings['str_name'], + namespacedef_=settings['str_namespacedefs'] + ) + strval = output.getvalue() + output.close() + return strval def gds_format_string(self, input_data, input_name=''): return input_data def gds_parse_string(self, input_data, node=None, input_name=''): @@ -193,11 +223,11 @@ def gds_validate_string(self, input_data, node=None, input_name=''): else: return input_data def gds_format_base64(self, input_data, input_name=''): - return base64.b64encode(input_data) + return base64.b64encode(input_data).decode('ascii') def gds_validate_base64(self, input_data, node=None, input_name=''): return input_data def gds_format_integer(self, input_data, input_name=''): - return '%d' % input_data + return '%d' % int(input_data) def gds_parse_integer(self, input_data, node=None, input_name=''): try: ival = int(input_data) @@ -211,6 +241,8 @@ def gds_validate_integer(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires integer value') return value def gds_format_integer_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_integer_list( self, input_data, node=None, input_name=''): @@ -219,10 +251,10 @@ def gds_validate_integer_list( try: int(value) except (TypeError, ValueError): - raise_parse_error(node, 'Requires sequence of integer valuess') + raise_parse_error(node, 'Requires sequence of integer values') return values def gds_format_float(self, input_data, input_name=''): - return ('%.15f' % input_data).rstrip('0') + return ('%.15f' % float(input_data)).rstrip('0') def gds_parse_float(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -236,6 +268,8 @@ def gds_validate_float(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires float value') return value def gds_format_float_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_float_list( self, input_data, node=None, input_name=''): @@ -247,7 +281,12 @@ def gds_validate_float_list( raise_parse_error(node, 'Requires sequence of float values') return values def gds_format_decimal(self, input_data, input_name=''): - return ('%s' % input_data).rstrip('0') + return_value = '%s' % input_data + if '.' in return_value: + return_value = return_value.rstrip('0') + if return_value.endswith('.'): + return_value = return_value.rstrip('.') + return return_value def gds_parse_decimal(self, input_data, node=None, input_name=''): try: decimal_value = decimal_.Decimal(input_data) @@ -261,7 +300,9 @@ def gds_validate_decimal(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires decimal value') return value def gds_format_decimal_list(self, input_data, input_name=''): - return '%s' % ' '.join(input_data) + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] + return ' '.join([self.gds_format_decimal(item) for item in input_data]) def gds_validate_decimal_list( self, input_data, node=None, input_name=''): values = input_data.split() @@ -272,7 +313,7 @@ def gds_validate_decimal_list( raise_parse_error(node, 'Requires sequence of decimal values') return values def gds_format_double(self, input_data, input_name=''): - return '%e' % input_data + return '%s' % input_data def gds_parse_double(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -286,6 +327,8 @@ def gds_validate_double(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires double or float value') return value def gds_format_double_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_double_list( self, input_data, node=None, input_name=''): @@ -315,11 +358,14 @@ def gds_validate_boolean(self, input_data, node=None, input_name=''): '(one of True, 1, False, 0)') return input_data def gds_format_boolean_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_boolean_list( self, input_data, node=None, input_name=''): values = input_data.split() for value in values: + value = self.gds_parse_boolean(value, node, input_name) if value not in (True, 1, False, 0, ): raise_parse_error( node, @@ -766,7 +812,10 @@ def find_attr_value_(attr_name, node): value = attrs.get(attr_name) elif len(attr_parts) == 2: prefix, name = attr_parts - namespace = node.nsmap.get(prefix) + if prefix == 'xml': + namespace = 'http://www.w3.org/XML/1998/namespace' + else: + namespace = node.nsmap.get(prefix) if namespace is not None: value = attrs.get('{%s}%s' % (namespace, name, )) return value @@ -847,7 +896,7 @@ def exportSimple(self, outfile, level, name): self.name, base64.b64encode(self.value), self.name)) - def to_etree(self, element): + def to_etree(self, element, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.category == MixedContainer.CategoryText: # Prevent exporting empty content as empty lines. if self.value.strip(): @@ -867,7 +916,7 @@ def to_etree(self, element): subelement.text = self.to_etree_simple() else: # category == MixedContainer.CategoryComplex self.value.to_etree(element) - def to_etree_simple(self): + def to_etree_simple(self, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.content_type == MixedContainer.TypeString: text = self.value elif (self.content_type == MixedContainer.TypeInteger or @@ -956,13 +1005,13 @@ def __init__(self, Request=None, PickupType=None, CustomerClassification=None, S self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Request = Request - self.Request_nsprefix_ = None + self.Request_nsprefix_ = "common" self.PickupType = PickupType - self.PickupType_nsprefix_ = None + self.PickupType_nsprefix_ = "rate" self.CustomerClassification = CustomerClassification - self.CustomerClassification_nsprefix_ = None + self.CustomerClassification_nsprefix_ = "rate" self.Shipment = Shipment - self.Shipment_nsprefix_ = None + self.Shipment_nsprefix_ = "rate" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -994,7 +1043,7 @@ def get_Shipment(self): return self.Shipment def set_Shipment(self, Shipment): self.Shipment = Shipment - def hasContent_(self): + def _hasContent(self): if ( self.Request is not None or self.PickupType is not None or @@ -1019,17 +1068,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RateRequest') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RateRequest') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RateRequest', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RateRequest', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RateRequest'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RateRequest'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RateRequest', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RateRequest', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1052,14 +1101,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Request': obj_ = RequestType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1094,12 +1143,12 @@ def __init__(self, Response=None, RatedShipment=None, gds_collector_=None, **kwa self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Response = Response - self.Response_nsprefix_ = None + self.Response_nsprefix_ = "common" if RatedShipment is None: self.RatedShipment = [] else: self.RatedShipment = RatedShipment - self.RatedShipment_nsprefix_ = None + self.RatedShipment_nsprefix_ = "rate" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1129,7 +1178,7 @@ def insert_RatedShipment_at(self, index, value): self.RatedShipment.insert(index, value) def replace_RatedShipment_at(self, index, value): self.RatedShipment[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Response is not None or self.RatedShipment @@ -1152,17 +1201,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RateResponse') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RateResponse') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RateResponse', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RateResponse', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RateResponse'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RateResponse'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RateResponse', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RateResponse', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1179,14 +1228,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Response': obj_ = ResponseType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1237,7 +1286,7 @@ def get_Weight(self): return self.Weight def set_Weight(self, Weight): self.Weight = Weight - def hasContent_(self): + def _hasContent(self): if ( self.UnitOfMeasurement is not None or self.Weight is not None @@ -1260,17 +1309,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='B showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='BillingWeightType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='BillingWeightType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='BillingWeightType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='BillingWeightType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='BillingWeightType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='BillingWeightType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='BillingWeightType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='BillingWeightType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1288,14 +1337,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'UnitOfMeasurement': obj_ = CodeDescriptionType1.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1321,29 +1370,29 @@ def __init__(self, TransportationCharges=None, BaseServiceCharge=None, ServiceOp self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.TransportationCharges = TransportationCharges - self.TransportationCharges_nsprefix_ = None + self.TransportationCharges_nsprefix_ = "rate" self.BaseServiceCharge = BaseServiceCharge - self.BaseServiceCharge_nsprefix_ = None + self.BaseServiceCharge_nsprefix_ = "rate" self.ServiceOptionsCharges = ServiceOptionsCharges - self.ServiceOptionsCharges_nsprefix_ = None + self.ServiceOptionsCharges_nsprefix_ = "rate" self.TotalCharges = TotalCharges - self.TotalCharges_nsprefix_ = None + self.TotalCharges_nsprefix_ = "rate" self.Weight = Weight self.Weight_nsprefix_ = None self.BillingWeight = BillingWeight - self.BillingWeight_nsprefix_ = None + self.BillingWeight_nsprefix_ = "rate" if Accessorial is None: self.Accessorial = [] else: self.Accessorial = Accessorial - self.Accessorial_nsprefix_ = None + self.Accessorial_nsprefix_ = "rate" if ItemizedCharges is None: self.ItemizedCharges = [] else: self.ItemizedCharges = ItemizedCharges - self.ItemizedCharges_nsprefix_ = None + self.ItemizedCharges_nsprefix_ = "rate" self.NegotiatedCharges = NegotiatedCharges - self.NegotiatedCharges_nsprefix_ = None + self.NegotiatedCharges_nsprefix_ = "rate" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1407,7 +1456,7 @@ def get_NegotiatedCharges(self): return self.NegotiatedCharges def set_NegotiatedCharges(self, NegotiatedCharges): self.NegotiatedCharges = NegotiatedCharges - def hasContent_(self): + def _hasContent(self): if ( self.TransportationCharges is not None or self.BaseServiceCharge is not None or @@ -1437,17 +1486,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RatedPackageType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RatedPackageType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RatedPackageType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RatedPackageType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RatedPackageType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RatedPackageType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RatedPackageType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RatedPackageType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1486,14 +1535,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'TransportationCharges': obj_ = ChargesType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1580,7 +1629,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -1603,17 +1652,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AccessorialType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AccessorialType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AccessorialType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AccessorialType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AccessorialType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AccessorialType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AccessorialType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AccessorialType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1632,14 +1681,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -1669,7 +1718,7 @@ def __init__(self, ItemizedCharges=None, gds_collector_=None, **kwargs_): self.ItemizedCharges = [] else: self.ItemizedCharges = ItemizedCharges - self.ItemizedCharges_nsprefix_ = None + self.ItemizedCharges_nsprefix_ = "rate" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1695,7 +1744,7 @@ def insert_ItemizedCharges_at(self, index, value): self.ItemizedCharges.insert(index, value) def replace_ItemizedCharges_at(self, index, value): self.ItemizedCharges[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.ItemizedCharges ): @@ -1717,17 +1766,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='N showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='NegotiatedChargesType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='NegotiatedChargesType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='NegotiatedChargesType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='NegotiatedChargesType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='NegotiatedChargesType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='NegotiatedChargesType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='NegotiatedChargesType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='NegotiatedChargesType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1741,14 +1790,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ItemizedCharges': obj_ = ChargesType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1771,7 +1820,7 @@ def __init__(self, Disclaimer=None, Service=None, RateChart=None, RatedShipmentA self.Disclaimer = [] else: self.Disclaimer = Disclaimer - self.Disclaimer_nsprefix_ = None + self.Disclaimer_nsprefix_ = "rate" self.Service = Service self.Service_nsprefix_ = None self.RateChart = RateChart @@ -1780,46 +1829,46 @@ def __init__(self, Disclaimer=None, Service=None, RateChart=None, RatedShipmentA self.RatedShipmentAlert = [] else: self.RatedShipmentAlert = RatedShipmentAlert - self.RatedShipmentAlert_nsprefix_ = None + self.RatedShipmentAlert_nsprefix_ = "rate" self.BillableWeightCalculationMethod = BillableWeightCalculationMethod self.BillableWeightCalculationMethod_nsprefix_ = None self.RatingMethod = RatingMethod self.RatingMethod_nsprefix_ = None self.BillingWeight = BillingWeight - self.BillingWeight_nsprefix_ = None + self.BillingWeight_nsprefix_ = "rate" self.TransportationCharges = TransportationCharges - self.TransportationCharges_nsprefix_ = None + self.TransportationCharges_nsprefix_ = "rate" self.BaseServiceCharge = BaseServiceCharge - self.BaseServiceCharge_nsprefix_ = None + self.BaseServiceCharge_nsprefix_ = "rate" if ItemizedCharges is None: self.ItemizedCharges = [] else: self.ItemizedCharges = ItemizedCharges - self.ItemizedCharges_nsprefix_ = None + self.ItemizedCharges_nsprefix_ = "rate" self.FRSShipmentData = FRSShipmentData - self.FRSShipmentData_nsprefix_ = None + self.FRSShipmentData_nsprefix_ = "rate" self.ServiceOptionsCharges = ServiceOptionsCharges - self.ServiceOptionsCharges_nsprefix_ = None + self.ServiceOptionsCharges_nsprefix_ = "rate" if TaxCharges is None: self.TaxCharges = [] else: self.TaxCharges = TaxCharges - self.TaxCharges_nsprefix_ = None + self.TaxCharges_nsprefix_ = "rate" self.TotalCharges = TotalCharges - self.TotalCharges_nsprefix_ = None + self.TotalCharges_nsprefix_ = "rate" self.TotalChargesWithTaxes = TotalChargesWithTaxes - self.TotalChargesWithTaxes_nsprefix_ = None + self.TotalChargesWithTaxes_nsprefix_ = "rate" self.NegotiatedRateCharges = NegotiatedRateCharges - self.NegotiatedRateCharges_nsprefix_ = None + self.NegotiatedRateCharges_nsprefix_ = "rate" self.GuaranteedDelivery = GuaranteedDelivery - self.GuaranteedDelivery_nsprefix_ = None + self.GuaranteedDelivery_nsprefix_ = "rate" if RatedPackage is None: self.RatedPackage = [] else: self.RatedPackage = RatedPackage - self.RatedPackage_nsprefix_ = None + self.RatedPackage_nsprefix_ = "rate" self.TimeInTransit = TimeInTransit - self.TimeInTransit_nsprefix_ = None + self.TimeInTransit_nsprefix_ = "rate" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1941,7 +1990,7 @@ def get_TimeInTransit(self): return self.TimeInTransit def set_TimeInTransit(self, TimeInTransit): self.TimeInTransit = TimeInTransit - def hasContent_(self): + def _hasContent(self): if ( self.Disclaimer or self.Service is not None or @@ -1981,17 +2030,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RatedShipmentType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RatedShipmentType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RatedShipmentType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RatedShipmentType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RatedShipmentType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RatedShipmentType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RatedShipmentType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RatedShipmentType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2062,14 +2111,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Disclaimer': obj_ = DisclaimerType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -2208,7 +2257,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -2231,17 +2280,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ReturnContractServicesType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ReturnContractServicesType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ReturnContractServicesType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ReturnContractServicesType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ReturnContractServicesType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ReturnContractServicesType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ReturnContractServicesType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ReturnContractServicesType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2260,14 +2309,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -2304,7 +2353,7 @@ def __init__(self, PickupDate=None, DocumentsOnlyIndicator=None, PackageBillType self.Disclaimer = Disclaimer self.Disclaimer_nsprefix_ = None self.ServiceSummary = ServiceSummary - self.ServiceSummary_nsprefix_ = None + self.ServiceSummary_nsprefix_ = "rate" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -2344,7 +2393,7 @@ def get_ServiceSummary(self): return self.ServiceSummary def set_ServiceSummary(self, ServiceSummary): self.ServiceSummary = ServiceSummary - def hasContent_(self): + def _hasContent(self): if ( self.PickupDate is not None or self.DocumentsOnlyIndicator is not None or @@ -2371,17 +2420,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='T showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TimeInTransitResponseType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TimeInTransitResponseType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TimeInTransitResponseType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TimeInTransitResponseType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TimeInTransitResponseType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TimeInTransitResponseType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TimeInTransitResponseType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TimeInTransitResponseType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2415,14 +2464,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PickupDate': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'PickupDate') @@ -2474,7 +2523,7 @@ def __init__(self, Service=None, EstimatedArrival=None, GuaranteedIndicator=None self.Service = Service self.Service_nsprefix_ = None self.EstimatedArrival = EstimatedArrival - self.EstimatedArrival_nsprefix_ = None + self.EstimatedArrival_nsprefix_ = "rate" self.GuaranteedIndicator = GuaranteedIndicator self.GuaranteedIndicator_nsprefix_ = None self.Disclaimer = Disclaimer @@ -2522,7 +2571,7 @@ def get_SaturdayDeliveryDisclaimer(self): return self.SaturdayDeliveryDisclaimer def set_SaturdayDeliveryDisclaimer(self, SaturdayDeliveryDisclaimer): self.SaturdayDeliveryDisclaimer = SaturdayDeliveryDisclaimer - def hasContent_(self): + def _hasContent(self): if ( self.Service is not None or self.EstimatedArrival is not None or @@ -2549,17 +2598,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ServiceSummaryType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ServiceSummaryType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ServiceSummaryType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ServiceSummaryType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ServiceSummaryType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ServiceSummaryType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ServiceSummaryType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ServiceSummaryType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2592,14 +2641,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Service': obj_ = CodeDescriptionType1.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -2648,11 +2697,11 @@ def __init__(self, Arrival=None, BusinessDaysInTransit=None, Pickup=None, DayOfW self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Arrival = Arrival - self.Arrival_nsprefix_ = None + self.Arrival_nsprefix_ = "rate" self.BusinessDaysInTransit = BusinessDaysInTransit self.BusinessDaysInTransit_nsprefix_ = None self.Pickup = Pickup - self.Pickup_nsprefix_ = None + self.Pickup_nsprefix_ = "rate" self.DayOfWeek = DayOfWeek self.DayOfWeek_nsprefix_ = None self.CustomerCenterCutoff = CustomerCenterCutoff @@ -2716,7 +2765,7 @@ def get_TotalTransitDays(self): return self.TotalTransitDays def set_TotalTransitDays(self, TotalTransitDays): self.TotalTransitDays = TotalTransitDays - def hasContent_(self): + def _hasContent(self): if ( self.Arrival is not None or self.BusinessDaysInTransit is not None or @@ -2746,17 +2795,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='E showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='EstimatedArrivalType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='EstimatedArrivalType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='EstimatedArrivalType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='EstimatedArrivalType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='EstimatedArrivalType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='EstimatedArrivalType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='EstimatedArrivalType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='EstimatedArrivalType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2801,14 +2850,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Arrival': obj_ = PickupType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -2901,7 +2950,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -2924,17 +2973,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DisclaimerType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DisclaimerType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DisclaimerType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DisclaimerType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DisclaimerType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DisclaimerType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DisclaimerType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DisclaimerType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2953,14 +3002,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -3013,7 +3062,7 @@ def get_MonetaryValue(self): return self.MonetaryValue def set_MonetaryValue(self, MonetaryValue): self.MonetaryValue = MonetaryValue - def hasContent_(self): + def _hasContent(self): if ( self.Type is not None or self.MonetaryValue is not None @@ -3036,17 +3085,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='T showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TaxChargeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TaxChargeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TaxChargeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TaxChargeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TaxChargeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TaxChargeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TaxChargeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TaxChargeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3065,14 +3114,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Type': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Type') @@ -3102,16 +3151,16 @@ def __init__(self, ItemizedCharges=None, TaxCharges=None, TotalCharge=None, Tota self.ItemizedCharges = [] else: self.ItemizedCharges = ItemizedCharges - self.ItemizedCharges_nsprefix_ = None + self.ItemizedCharges_nsprefix_ = "rate" if TaxCharges is None: self.TaxCharges = [] else: self.TaxCharges = TaxCharges - self.TaxCharges_nsprefix_ = None + self.TaxCharges_nsprefix_ = "rate" self.TotalCharge = TotalCharge - self.TotalCharge_nsprefix_ = None + self.TotalCharge_nsprefix_ = "rate" self.TotalChargesWithTaxes = TotalChargesWithTaxes - self.TotalChargesWithTaxes_nsprefix_ = None + self.TotalChargesWithTaxes_nsprefix_ = "rate" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -3155,7 +3204,7 @@ def get_TotalChargesWithTaxes(self): return self.TotalChargesWithTaxes def set_TotalChargesWithTaxes(self, TotalChargesWithTaxes): self.TotalChargesWithTaxes = TotalChargesWithTaxes - def hasContent_(self): + def _hasContent(self): if ( self.ItemizedCharges or self.TaxCharges or @@ -3180,17 +3229,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='T showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TotalChargeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TotalChargeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TotalChargeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TotalChargeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TotalChargeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TotalChargeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TotalChargeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TotalChargeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3213,14 +3262,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ItemizedCharges': obj_ = ChargesType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -3281,7 +3330,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -3304,17 +3353,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RatedShipmentInfoType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RatedShipmentInfoType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RatedShipmentInfoType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RatedShipmentInfoType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RatedShipmentInfoType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RatedShipmentInfoType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RatedShipmentInfoType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RatedShipmentInfoType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3333,14 +3382,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -3411,7 +3460,7 @@ def get_SubType(self): return self.SubType def set_SubType(self, SubType): self.SubType = SubType - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None or @@ -3437,17 +3486,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ChargesType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ChargesType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ChargesType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ChargesType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ChargesType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ChargesType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ChargesType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ChargesType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3478,14 +3527,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -3530,13 +3579,13 @@ def __init__(self, GrossCharge=None, DiscountAmount=None, DiscountPercentage=Non self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.GrossCharge = GrossCharge - self.GrossCharge_nsprefix_ = None + self.GrossCharge_nsprefix_ = "rate" self.DiscountAmount = DiscountAmount - self.DiscountAmount_nsprefix_ = None + self.DiscountAmount_nsprefix_ = "rate" self.DiscountPercentage = DiscountPercentage self.DiscountPercentage_nsprefix_ = None self.NetCharge = NetCharge - self.NetCharge_nsprefix_ = None + self.NetCharge_nsprefix_ = "rate" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -3568,7 +3617,7 @@ def get_NetCharge(self): return self.NetCharge def set_NetCharge(self, NetCharge): self.NetCharge = NetCharge - def hasContent_(self): + def _hasContent(self): if ( self.GrossCharge is not None or self.DiscountAmount is not None or @@ -3593,17 +3642,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='T showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransportationChargesType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransportationChargesType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransportationChargesType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransportationChargesType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TransportationChargesType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TransportationChargesType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TransportationChargesType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TransportationChargesType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3627,14 +3676,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'GrossCharge': obj_ = ChargesType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -3670,14 +3719,14 @@ def __init__(self, TransportationCharges=None, FreightDensityRate=None, Handling self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.TransportationCharges = TransportationCharges - self.TransportationCharges_nsprefix_ = None + self.TransportationCharges_nsprefix_ = "rate" self.FreightDensityRate = FreightDensityRate - self.FreightDensityRate_nsprefix_ = None + self.FreightDensityRate_nsprefix_ = "rate" if HandlingUnits is None: self.HandlingUnits = [] else: self.HandlingUnits = HandlingUnits - self.HandlingUnits_nsprefix_ = None + self.HandlingUnits_nsprefix_ = "rate" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -3711,7 +3760,7 @@ def insert_HandlingUnits_at(self, index, value): self.HandlingUnits.insert(index, value) def replace_HandlingUnits_at(self, index, value): self.HandlingUnits[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.TransportationCharges is not None or self.FreightDensityRate is not None or @@ -3735,17 +3784,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='F showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FRSShipmentType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FRSShipmentType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FRSShipmentType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FRSShipmentType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FRSShipmentType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FRSShipmentType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FRSShipmentType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FRSShipmentType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3765,14 +3814,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'TransportationCharges': obj_ = TransportationChargesType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -3828,7 +3877,7 @@ def get_TotalCubicFeet(self): return self.TotalCubicFeet def set_TotalCubicFeet(self, TotalCubicFeet): self.TotalCubicFeet = TotalCubicFeet - def hasContent_(self): + def _hasContent(self): if ( self.Density is not None or self.TotalCubicFeet is not None @@ -3851,17 +3900,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='F showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightDensityRateType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightDensityRateType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightDensityRateType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightDensityRateType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightDensityRateType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightDensityRateType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightDensityRateType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightDensityRateType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3880,14 +3929,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Density': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Density') @@ -3918,9 +3967,9 @@ def __init__(self, Quantity=None, Type=None, Dimensions=None, AdjustedHeight=Non self.Type = Type self.Type_nsprefix_ = None self.Dimensions = Dimensions - self.Dimensions_nsprefix_ = None + self.Dimensions_nsprefix_ = "rate" self.AdjustedHeight = AdjustedHeight - self.AdjustedHeight_nsprefix_ = None + self.AdjustedHeight_nsprefix_ = "rate" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -3952,7 +4001,7 @@ def get_AdjustedHeight(self): return self.AdjustedHeight def set_AdjustedHeight(self, AdjustedHeight): self.AdjustedHeight = AdjustedHeight - def hasContent_(self): + def _hasContent(self): if ( self.Quantity is not None or self.Type is not None or @@ -3977,17 +4026,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='H showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HandlingUnitsResponseType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HandlingUnitsResponseType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HandlingUnitsResponseType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HandlingUnitsResponseType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HandlingUnitsResponseType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HandlingUnitsResponseType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HandlingUnitsResponseType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HandlingUnitsResponseType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4011,14 +4060,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Quantity': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Quantity') @@ -4110,7 +4159,7 @@ def set_CountryCode(self, CountryCode): self.CountryCode = CountryCode def get_extensiontype_(self): return self.extensiontype_ def set_extensiontype_(self, extensiontype_): self.extensiontype_ = extensiontype_ - def hasContent_(self): + def _hasContent(self): if ( self.AddressLine or self.City is not None or @@ -4136,15 +4185,15 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AddressType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AddressType'): if self.extensiontype_ is not None and 'xsi:type' not in already_processed: already_processed.add('xsi:type') outfile.write(' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"') @@ -4154,7 +4203,7 @@ def exportAttributes(self, outfile, level, already_processed, namespaceprefix_=' else: outfile.write(' xsi:type="%s"' % self.extensiontype_) pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AddressType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AddressType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4185,17 +4234,17 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('xsi:type', node) if value is not None and 'xsi:type' not in already_processed: already_processed.add('xsi:type') self.extensiontype_ = value - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AddressLine': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'AddressLine') @@ -4239,7 +4288,7 @@ def __init__(self, AddressLine=None, City=None, StateProvinceCode=None, PostalCo self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None - super(ShipToAddressType, self).__init__(AddressLine, City, StateProvinceCode, PostalCode, CountryCode, **kwargs_) + super(globals().get("ShipToAddressType"), self).__init__(AddressLine, City, StateProvinceCode, PostalCode, CountryCode, **kwargs_) self.ResidentialAddressIndicator = ResidentialAddressIndicator self.ResidentialAddressIndicator_nsprefix_ = None def factory(*args_, **kwargs_): @@ -4261,10 +4310,10 @@ def get_ResidentialAddressIndicator(self): return self.ResidentialAddressIndicator def set_ResidentialAddressIndicator(self, ResidentialAddressIndicator): self.ResidentialAddressIndicator = ResidentialAddressIndicator - def hasContent_(self): + def _hasContent(self): if ( self.ResidentialAddressIndicator is not None or - super(ShipToAddressType, self).hasContent_() + super(ShipToAddressType, self)._hasContent() ): return True else: @@ -4284,18 +4333,18 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipToAddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipToAddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipToAddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipToAddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipToAddressType'): - super(ShipToAddressType, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipToAddressType') - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipToAddressType', fromsubclass_=False, pretty_print=True): - super(ShipToAddressType, self).exportChildren(outfile, level, namespaceprefix_, namespacedef_, name_, True, pretty_print=pretty_print) + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipToAddressType'): + super(ShipToAddressType, self)._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipToAddressType') + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipToAddressType', fromsubclass_=False, pretty_print=True): + super(ShipToAddressType, self)._exportChildren(outfile, level, namespaceprefix_, namespacedef_, name_, True, pretty_print=pretty_print) if pretty_print: eol_ = '\n' else: @@ -4310,21 +4359,21 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): - super(ShipToAddressType, self).buildAttributes(node, attrs, already_processed) - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildAttributes(self, node, attrs, already_processed): + super(ShipToAddressType, self)._buildAttributes(node, attrs, already_processed) + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ResidentialAddressIndicator': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ResidentialAddressIndicator') value_ = self.gds_validate_string(value_, node, 'ResidentialAddressIndicator') self.ResidentialAddressIndicator = value_ self.ResidentialAddressIndicator_nsprefix_ = child_.prefix - super(ShipToAddressType, self).buildChildren(child_, node, nodeName_, True) + super(ShipToAddressType, self)._buildChildren(child_, node, nodeName_, True) # end class ShipToAddressType @@ -4338,7 +4387,7 @@ def __init__(self, AddressLine=None, City=None, StateProvinceCode=None, PostalCo self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None - super(ShipAddressType, self).__init__(AddressLine, City, StateProvinceCode, PostalCode, CountryCode, **kwargs_) + super(globals().get("ShipAddressType"), self).__init__(AddressLine, City, StateProvinceCode, PostalCode, CountryCode, **kwargs_) def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -4354,9 +4403,9 @@ def get_ns_prefix_(self): return self.ns_prefix_ def set_ns_prefix_(self, ns_prefix): self.ns_prefix_ = ns_prefix - def hasContent_(self): + def _hasContent(self): if ( - super(ShipAddressType, self).hasContent_() + super(ShipAddressType, self)._hasContent() ): return True else: @@ -4376,33 +4425,33 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipAddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipAddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipAddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipAddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipAddressType'): - super(ShipAddressType, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipAddressType') - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipAddressType', fromsubclass_=False, pretty_print=True): - super(ShipAddressType, self).exportChildren(outfile, level, namespaceprefix_, namespacedef_, name_, True, pretty_print=pretty_print) + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipAddressType'): + super(ShipAddressType, self)._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipAddressType') + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipAddressType', fromsubclass_=False, pretty_print=True): + super(ShipAddressType, self)._exportChildren(outfile, level, namespaceprefix_, namespacedef_, name_, True, pretty_print=pretty_print) def build(self, node, gds_collector_=None): self.gds_collector_ = gds_collector_ if SaveElementTreeNode: self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): - super(ShipAddressType, self).buildAttributes(node, attrs, already_processed) - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): - super(ShipAddressType, self).buildChildren(child_, node, nodeName_, True) + def _buildAttributes(self, node, attrs, already_processed): + super(ShipAddressType, self)._buildAttributes(node, attrs, already_processed) + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + super(ShipAddressType, self)._buildChildren(child_, node, nodeName_, True) pass # end class ShipAddressType @@ -4420,7 +4469,7 @@ def __init__(self, CODFundsCode=None, CODAmount=None, gds_collector_=None, **kwa self.CODFundsCode = CODFundsCode self.CODFundsCode_nsprefix_ = None self.CODAmount = CODAmount - self.CODAmount_nsprefix_ = None + self.CODAmount_nsprefix_ = "rate" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -4444,7 +4493,7 @@ def get_CODAmount(self): return self.CODAmount def set_CODAmount(self, CODAmount): self.CODAmount = CODAmount - def hasContent_(self): + def _hasContent(self): if ( self.CODFundsCode is not None or self.CODAmount is not None @@ -4467,17 +4516,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CODType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CODType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CODType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CODType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CODType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CODType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CODType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CODType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4495,14 +4544,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CODFundsCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CODFundsCode') @@ -4554,7 +4603,7 @@ def get_MonetaryValue(self): return self.MonetaryValue def set_MonetaryValue(self, MonetaryValue): self.MonetaryValue = MonetaryValue - def hasContent_(self): + def _hasContent(self): if ( self.CurrencyCode is not None or self.MonetaryValue is not None @@ -4577,17 +4626,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CODAmountType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CODAmountType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CODAmountType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CODAmountType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CODAmountType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CODAmountType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CODAmountType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CODAmountType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4606,14 +4655,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CurrencyCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CurrencyCode') @@ -4660,7 +4709,7 @@ def get_DCISType(self): return self.DCISType def set_DCISType(self, DCISType): self.DCISType = DCISType - def hasContent_(self): + def _hasContent(self): if ( self.DCISType is not None ): @@ -4682,17 +4731,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DeliveryConfirmationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DeliveryConfirmationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DeliveryConfirmationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DeliveryConfirmationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DeliveryConfirmationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DeliveryConfirmationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DeliveryConfirmationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DeliveryConfirmationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4707,14 +4756,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'DCISType': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'DCISType') @@ -4773,7 +4822,7 @@ def get_Height(self): return self.Height def set_Height(self, Height): self.Height = Height - def hasContent_(self): + def _hasContent(self): if ( self.UnitOfMeasurement is not None or self.Length is not None or @@ -4798,17 +4847,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DimensionsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DimensionsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DimensionsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DimensionsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DimensionsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DimensionsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DimensionsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DimensionsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4834,14 +4883,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'UnitOfMeasurement': obj_ = CodeDescriptionType1.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -4905,7 +4954,7 @@ def get_MonetaryValue(self): return self.MonetaryValue def set_MonetaryValue(self, MonetaryValue): self.MonetaryValue = MonetaryValue - def hasContent_(self): + def _hasContent(self): if ( self.CurrencyCode is not None or self.MonetaryValue is not None @@ -4928,17 +4977,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='I showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='InsuredValueType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='InsuredValueType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='InsuredValueType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='InsuredValueType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='InsuredValueType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='InsuredValueType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='InsuredValueType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='InsuredValueType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4957,14 +5006,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CurrencyCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CurrencyCode') @@ -4993,17 +5042,17 @@ def __init__(self, PackagingType=None, Dimensions=None, DimWeight=None, PackageW self.PackagingType = PackagingType self.PackagingType_nsprefix_ = None self.Dimensions = Dimensions - self.Dimensions_nsprefix_ = None + self.Dimensions_nsprefix_ = "rate" self.DimWeight = DimWeight - self.DimWeight_nsprefix_ = None + self.DimWeight_nsprefix_ = "rate" self.PackageWeight = PackageWeight - self.PackageWeight_nsprefix_ = None + self.PackageWeight_nsprefix_ = "rate" self.Commodity = Commodity - self.Commodity_nsprefix_ = None + self.Commodity_nsprefix_ = "rate" self.LargePackageIndicator = LargePackageIndicator self.LargePackageIndicator_nsprefix_ = None self.PackageServiceOptions = PackageServiceOptions - self.PackageServiceOptions_nsprefix_ = None + self.PackageServiceOptions_nsprefix_ = "rate" self.AdditionalHandlingIndicator = AdditionalHandlingIndicator self.AdditionalHandlingIndicator_nsprefix_ = None def factory(*args_, **kwargs_): @@ -5053,7 +5102,7 @@ def get_AdditionalHandlingIndicator(self): return self.AdditionalHandlingIndicator def set_AdditionalHandlingIndicator(self, AdditionalHandlingIndicator): self.AdditionalHandlingIndicator = AdditionalHandlingIndicator - def hasContent_(self): + def _hasContent(self): if ( self.PackagingType is not None or self.Dimensions is not None or @@ -5082,17 +5131,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5129,14 +5178,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PackagingType': obj_ = CodeDescriptionType1.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -5195,7 +5244,7 @@ def __init__(self, FreightClass=None, NMFC=None, gds_collector_=None, **kwargs_) self.FreightClass = FreightClass self.FreightClass_nsprefix_ = None self.NMFC = NMFC - self.NMFC_nsprefix_ = None + self.NMFC_nsprefix_ = "rate" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -5219,7 +5268,7 @@ def get_NMFC(self): return self.NMFC def set_NMFC(self, NMFC): self.NMFC = NMFC - def hasContent_(self): + def _hasContent(self): if ( self.FreightClass is not None or self.NMFC is not None @@ -5242,17 +5291,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CommodityType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CommodityType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CommodityType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CommodityType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CommodityType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CommodityType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CommodityType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CommodityType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5270,14 +5319,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'FreightClass': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'FreightClass') @@ -5329,7 +5378,7 @@ def get_SubCode(self): return self.SubCode def set_SubCode(self, SubCode): self.SubCode = SubCode - def hasContent_(self): + def _hasContent(self): if ( self.PrimeCode is not None or self.SubCode is not None @@ -5352,17 +5401,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='N showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='NMFCCommodityType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='NMFCCommodityType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='NMFCCommodityType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='NMFCCommodityType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='NMFCCommodityType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='NMFCCommodityType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='NMFCCommodityType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='NMFCCommodityType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5381,14 +5430,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PrimeCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'PrimeCode') @@ -5415,29 +5464,29 @@ def __init__(self, DeliveryConfirmation=None, AccessPointCOD=None, COD=None, Dec self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.DeliveryConfirmation = DeliveryConfirmation - self.DeliveryConfirmation_nsprefix_ = None + self.DeliveryConfirmation_nsprefix_ = "rate" self.AccessPointCOD = AccessPointCOD - self.AccessPointCOD_nsprefix_ = None + self.AccessPointCOD_nsprefix_ = "rate" self.COD = COD - self.COD_nsprefix_ = None + self.COD_nsprefix_ = "rate" self.DeclaredValue = DeclaredValue - self.DeclaredValue_nsprefix_ = None + self.DeclaredValue_nsprefix_ = "rate" self.ShipperDeclaredValue = ShipperDeclaredValue - self.ShipperDeclaredValue_nsprefix_ = None + self.ShipperDeclaredValue_nsprefix_ = "rate" self.ProactiveIndicator = ProactiveIndicator self.ProactiveIndicator_nsprefix_ = None self.RefrigerationIndicator = RefrigerationIndicator self.RefrigerationIndicator_nsprefix_ = None self.Insurance = Insurance - self.Insurance_nsprefix_ = None + self.Insurance_nsprefix_ = "rate" self.VerbalConfirmationIndicator = VerbalConfirmationIndicator self.VerbalConfirmationIndicator_nsprefix_ = None self.UPSPremiumCareIndicator = UPSPremiumCareIndicator self.UPSPremiumCareIndicator_nsprefix_ = None self.HazMat = HazMat - self.HazMat_nsprefix_ = None + self.HazMat_nsprefix_ = "rate" self.DryIce = DryIce - self.DryIce_nsprefix_ = None + self.DryIce_nsprefix_ = "rate" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -5501,7 +5550,7 @@ def get_DryIce(self): return self.DryIce def set_DryIce(self, DryIce): self.DryIce = DryIce - def hasContent_(self): + def _hasContent(self): if ( self.DeliveryConfirmation is not None or self.AccessPointCOD is not None or @@ -5534,17 +5583,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageServiceOptionsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageServiceOptionsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageServiceOptionsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageServiceOptionsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageServiceOptionsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageServiceOptionsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageServiceOptionsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageServiceOptionsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5595,14 +5644,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'DeliveryConfirmation': obj_ = DeliveryConfirmationType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -5692,7 +5741,7 @@ def __init__(self, PackageIdentifier=None, QValue=None, OverPackedIndicator=None self.HazMatChemicalRecord = [] else: self.HazMatChemicalRecord = HazMatChemicalRecord - self.HazMatChemicalRecord_nsprefix_ = None + self.HazMatChemicalRecord_nsprefix_ = "rate" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -5734,7 +5783,7 @@ def insert_HazMatChemicalRecord_at(self, index, value): self.HazMatChemicalRecord.insert(index, value) def replace_HazMatChemicalRecord_at(self, index, value): self.HazMatChemicalRecord[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.PackageIdentifier is not None or self.QValue is not None or @@ -5760,17 +5809,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='H showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HazMatType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HazMatType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HazMatType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HazMatType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HazMatType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HazMatType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HazMatType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HazMatType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5800,14 +5849,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PackageIdentifier': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'PackageIdentifier') @@ -5997,7 +6046,7 @@ def get_TunnelRestrictionCode(self): return self.TunnelRestrictionCode def set_TunnelRestrictionCode(self, TunnelRestrictionCode): self.TunnelRestrictionCode = TunnelRestrictionCode - def hasContent_(self): + def _hasContent(self): if ( self.ChemicalRecordIdentifier is not None or self.ClassDivisionNumber is not None or @@ -6040,17 +6089,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='H showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HazMatChemicalRecordType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HazMatChemicalRecordType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HazMatChemicalRecordType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HazMatChemicalRecordType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HazMatChemicalRecordType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HazMatChemicalRecordType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HazMatChemicalRecordType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HazMatChemicalRecordType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6149,14 +6198,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ChemicalRecordIdentifier': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ChemicalRecordIdentifier') @@ -6329,7 +6378,7 @@ def get_MonetaryValue(self): return self.MonetaryValue def set_MonetaryValue(self, MonetaryValue): self.MonetaryValue = MonetaryValue - def hasContent_(self): + def _hasContent(self): if ( self.CurrencyCode is not None or self.MonetaryValue is not None @@ -6352,17 +6401,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageServiceOptionsAccessPointCODType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageServiceOptionsAccessPointCODType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageServiceOptionsAccessPointCODType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageServiceOptionsAccessPointCODType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageServiceOptionsAccessPointCODType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageServiceOptionsAccessPointCODType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageServiceOptionsAccessPointCODType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageServiceOptionsAccessPointCODType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6381,14 +6430,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CurrencyCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CurrencyCode') @@ -6417,7 +6466,7 @@ def __init__(self, RegulationSet=None, DryIceWeight=None, MedicalUseIndicator=No self.RegulationSet = RegulationSet self.RegulationSet_nsprefix_ = None self.DryIceWeight = DryIceWeight - self.DryIceWeight_nsprefix_ = None + self.DryIceWeight_nsprefix_ = "rate" self.MedicalUseIndicator = MedicalUseIndicator self.MedicalUseIndicator_nsprefix_ = None self.AuditRequired = AuditRequired @@ -6453,7 +6502,7 @@ def get_AuditRequired(self): return self.AuditRequired def set_AuditRequired(self, AuditRequired): self.AuditRequired = AuditRequired - def hasContent_(self): + def _hasContent(self): if ( self.RegulationSet is not None or self.DryIceWeight is not None or @@ -6478,17 +6527,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DryIceType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DryIceType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DryIceType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DryIceType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DryIceType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DryIceType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DryIceType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DryIceType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6514,14 +6563,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'RegulationSet': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'RegulationSet') @@ -6585,7 +6634,7 @@ def get_Weight(self): return self.Weight def set_Weight(self, Weight): self.Weight = Weight - def hasContent_(self): + def _hasContent(self): if ( self.UnitOfMeasurement is not None or self.Weight is not None @@ -6608,17 +6657,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DryIceWeightType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DryIceWeightType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DryIceWeightType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DryIceWeightType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DryIceWeightType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DryIceWeightType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DryIceWeightType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DryIceWeightType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6636,14 +6685,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'UnitOfMeasurement': obj_ = CodeDescriptionType1.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -6695,7 +6744,7 @@ def get_MonetaryValue(self): return self.MonetaryValue def set_MonetaryValue(self, MonetaryValue): self.MonetaryValue = MonetaryValue - def hasContent_(self): + def _hasContent(self): if ( self.CurrencyCode is not None or self.MonetaryValue is not None @@ -6718,17 +6767,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipperDeclaredValueType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipperDeclaredValueType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipperDeclaredValueType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipperDeclaredValueType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipperDeclaredValueType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipperDeclaredValueType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipperDeclaredValueType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipperDeclaredValueType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6747,14 +6796,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CurrencyCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CurrencyCode') @@ -6781,11 +6830,11 @@ def __init__(self, BasicFlexibleParcelIndicator=None, ExtendedFlexibleParcelIndi self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.BasicFlexibleParcelIndicator = BasicFlexibleParcelIndicator - self.BasicFlexibleParcelIndicator_nsprefix_ = None + self.BasicFlexibleParcelIndicator_nsprefix_ = "rate" self.ExtendedFlexibleParcelIndicator = ExtendedFlexibleParcelIndicator - self.ExtendedFlexibleParcelIndicator_nsprefix_ = None + self.ExtendedFlexibleParcelIndicator_nsprefix_ = "rate" self.TimeInTransitFlexibleParcelIndicator = TimeInTransitFlexibleParcelIndicator - self.TimeInTransitFlexibleParcelIndicator_nsprefix_ = None + self.TimeInTransitFlexibleParcelIndicator_nsprefix_ = "rate" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -6813,7 +6862,7 @@ def get_TimeInTransitFlexibleParcelIndicator(self): return self.TimeInTransitFlexibleParcelIndicator def set_TimeInTransitFlexibleParcelIndicator(self, TimeInTransitFlexibleParcelIndicator): self.TimeInTransitFlexibleParcelIndicator = TimeInTransitFlexibleParcelIndicator - def hasContent_(self): + def _hasContent(self): if ( self.BasicFlexibleParcelIndicator is not None or self.ExtendedFlexibleParcelIndicator is not None or @@ -6837,17 +6886,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='I showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='InsuranceType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='InsuranceType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='InsuranceType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='InsuranceType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='InsuranceType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='InsuranceType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='InsuranceType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='InsuranceType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6867,14 +6916,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'BasicFlexibleParcelIndicator': obj_ = InsuranceValueType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -6930,7 +6979,7 @@ def get_MonetaryValue(self): return self.MonetaryValue def set_MonetaryValue(self, MonetaryValue): self.MonetaryValue = MonetaryValue - def hasContent_(self): + def _hasContent(self): if ( self.CurrencyCode is not None or self.MonetaryValue is not None @@ -6953,17 +7002,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='I showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='InsuranceValueType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='InsuranceValueType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='InsuranceValueType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='InsuranceValueType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='InsuranceValueType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='InsuranceValueType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='InsuranceValueType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='InsuranceValueType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6982,14 +7031,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CurrencyCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CurrencyCode') @@ -7042,7 +7091,7 @@ def get_Weight(self): return self.Weight def set_Weight(self, Weight): self.Weight = Weight - def hasContent_(self): + def _hasContent(self): if ( self.UnitOfMeasurement is not None or self.Weight is not None @@ -7065,17 +7114,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageWeightType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageWeightType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageWeightType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageWeightType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageWeightType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageWeightType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageWeightType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageWeightType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7093,14 +7142,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'UnitOfMeasurement': obj_ = CodeDescriptionType1.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -7152,7 +7201,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -7175,17 +7224,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='U showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UOMCodeDescriptionType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UOMCodeDescriptionType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UOMCodeDescriptionType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UOMCodeDescriptionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UOMCodeDescriptionType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UOMCodeDescriptionType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UOMCodeDescriptionType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UOMCodeDescriptionType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7204,14 +7253,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -7264,7 +7313,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -7287,17 +7336,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeDescriptionType1') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeDescriptionType1') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeDescriptionType1', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeDescriptionType1', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CodeDescriptionType1'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CodeDescriptionType1'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CodeDescriptionType1', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CodeDescriptionType1', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7316,14 +7365,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -7388,7 +7437,7 @@ def get_UserLevelDiscountIndicator(self): return self.UserLevelDiscountIndicator def set_UserLevelDiscountIndicator(self, UserLevelDiscountIndicator): self.UserLevelDiscountIndicator = UserLevelDiscountIndicator - def hasContent_(self): + def _hasContent(self): if ( self.NegotiatedRatesIndicator is not None or self.FRSShipmentIndicator is not None or @@ -7413,17 +7462,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentRatingOptionsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentRatingOptionsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentRatingOptionsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentRatingOptionsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentRatingOptionsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentRatingOptionsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentRatingOptionsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentRatingOptionsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7450,14 +7499,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'NegotiatedRatesIndicator': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'NegotiatedRatesIndicator') @@ -7500,7 +7549,7 @@ def __init__(self, Name=None, AttentionName=None, Address=None, gds_collector_=N self.AttentionName = AttentionName self.AttentionName_nsprefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "rate" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -7528,7 +7577,7 @@ def get_Address(self): return self.Address def set_Address(self, Address): self.Address = Address - def hasContent_(self): + def _hasContent(self): if ( self.Name is not None or self.AttentionName is not None or @@ -7552,17 +7601,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipFromType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipFromType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipFromType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipFromType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipFromType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipFromType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipFromType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipFromType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7584,14 +7633,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Name': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Name') @@ -7627,7 +7676,7 @@ def __init__(self, Name=None, AttentionName=None, Address=None, gds_collector_=N self.AttentionName = AttentionName self.AttentionName_nsprefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "rate" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -7655,7 +7704,7 @@ def get_Address(self): return self.Address def set_Address(self, Address): self.Address = Address - def hasContent_(self): + def _hasContent(self): if ( self.Name is not None or self.AttentionName is not None or @@ -7679,17 +7728,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipToType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipToType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipToType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipToType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipToType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipToType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipToType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipToType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7711,14 +7760,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Name': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Name') @@ -7752,24 +7801,24 @@ def __init__(self, OriginRecordTransactionTimestamp=None, Shipper=None, ShipTo=N self.OriginRecordTransactionTimestamp = OriginRecordTransactionTimestamp self.OriginRecordTransactionTimestamp_nsprefix_ = None self.Shipper = Shipper - self.Shipper_nsprefix_ = None + self.Shipper_nsprefix_ = "rate" self.ShipTo = ShipTo - self.ShipTo_nsprefix_ = None + self.ShipTo_nsprefix_ = "rate" self.ShipFrom = ShipFrom - self.ShipFrom_nsprefix_ = None + self.ShipFrom_nsprefix_ = "rate" self.AlternateDeliveryAddress = AlternateDeliveryAddress - self.AlternateDeliveryAddress_nsprefix_ = None + self.AlternateDeliveryAddress_nsprefix_ = "rate" if ShipmentIndicationType is None: self.ShipmentIndicationType = [] else: self.ShipmentIndicationType = ShipmentIndicationType - self.ShipmentIndicationType_nsprefix_ = None + self.ShipmentIndicationType_nsprefix_ = "rate" self.PaymentDetails = PaymentDetails - self.PaymentDetails_nsprefix_ = None + self.PaymentDetails_nsprefix_ = "rate" self.FRSPaymentInformation = FRSPaymentInformation - self.FRSPaymentInformation_nsprefix_ = None + self.FRSPaymentInformation_nsprefix_ = "rate" self.FreightShipmentInformation = FreightShipmentInformation - self.FreightShipmentInformation_nsprefix_ = None + self.FreightShipmentInformation_nsprefix_ = "rate" self.GoodsNotInFreeCirculationIndicator = GoodsNotInFreeCirculationIndicator self.GoodsNotInFreeCirculationIndicator_nsprefix_ = None self.Service = Service @@ -7777,28 +7826,28 @@ def __init__(self, OriginRecordTransactionTimestamp=None, Shipper=None, ShipTo=N self.NumOfPieces = NumOfPieces self.NumOfPieces_nsprefix_ = None self.ShipmentTotalWeight = ShipmentTotalWeight - self.ShipmentTotalWeight_nsprefix_ = None + self.ShipmentTotalWeight_nsprefix_ = "rate" self.DocumentsOnlyIndicator = DocumentsOnlyIndicator self.DocumentsOnlyIndicator_nsprefix_ = None if Package is None: self.Package = [] else: self.Package = Package - self.Package_nsprefix_ = None + self.Package_nsprefix_ = "rate" self.ShipmentServiceOptions = ShipmentServiceOptions - self.ShipmentServiceOptions_nsprefix_ = None + self.ShipmentServiceOptions_nsprefix_ = "rate" self.ShipmentRatingOptions = ShipmentRatingOptions - self.ShipmentRatingOptions_nsprefix_ = None + self.ShipmentRatingOptions_nsprefix_ = "rate" self.InvoiceLineTotal = InvoiceLineTotal - self.InvoiceLineTotal_nsprefix_ = None + self.InvoiceLineTotal_nsprefix_ = "rate" self.RatingMethodRequestedIndicator = RatingMethodRequestedIndicator self.RatingMethodRequestedIndicator_nsprefix_ = None self.TaxInformationIndicator = TaxInformationIndicator self.TaxInformationIndicator_nsprefix_ = None self.PromotionalDiscountInformation = PromotionalDiscountInformation - self.PromotionalDiscountInformation_nsprefix_ = None + self.PromotionalDiscountInformation_nsprefix_ = "rate" self.DeliveryTimeInformation = DeliveryTimeInformation - self.DeliveryTimeInformation_nsprefix_ = None + self.DeliveryTimeInformation_nsprefix_ = "rate" self.MasterCartonIndicator = MasterCartonIndicator self.MasterCartonIndicator_nsprefix_ = None self.WWEShipmentIndicator = WWEShipmentIndicator @@ -7926,7 +7975,7 @@ def get_WWEShipmentIndicator(self): return self.WWEShipmentIndicator def set_WWEShipmentIndicator(self, WWEShipmentIndicator): self.WWEShipmentIndicator = WWEShipmentIndicator - def hasContent_(self): + def _hasContent(self): if ( self.OriginRecordTransactionTimestamp is not None or self.Shipper is not None or @@ -7971,17 +8020,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8072,14 +8121,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'OriginRecordTransactionTimestamp': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'OriginRecordTransactionTimestamp') @@ -8224,12 +8273,12 @@ def __init__(self, PackageBillType=None, Pickup=None, ReturnContractServices=Non self.PackageBillType = PackageBillType self.PackageBillType_nsprefix_ = None self.Pickup = Pickup - self.Pickup_nsprefix_ = None + self.Pickup_nsprefix_ = "rate" if ReturnContractServices is None: self.ReturnContractServices = [] else: self.ReturnContractServices = ReturnContractServices - self.ReturnContractServices_nsprefix_ = None + self.ReturnContractServices_nsprefix_ = "rate" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -8263,7 +8312,7 @@ def insert_ReturnContractServices_at(self, index, value): self.ReturnContractServices.insert(index, value) def replace_ReturnContractServices_at(self, index, value): self.ReturnContractServices[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.PackageBillType is not None or self.Pickup is not None or @@ -8287,17 +8336,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='T showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TimeInTransitRequestType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TimeInTransitRequestType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TimeInTransitRequestType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TimeInTransitRequestType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TimeInTransitRequestType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TimeInTransitRequestType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TimeInTransitRequestType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TimeInTransitRequestType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8318,14 +8367,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PackageBillType': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'PackageBillType') @@ -8382,7 +8431,7 @@ def get_Time(self): return self.Time def set_Time(self, Time): self.Time = Time - def hasContent_(self): + def _hasContent(self): if ( self.Date is not None or self.Time is not None @@ -8405,17 +8454,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8434,14 +8483,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Date': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Date') @@ -8494,7 +8543,7 @@ def get_PromoAliasCode(self): return self.PromoAliasCode def set_PromoAliasCode(self, PromoAliasCode): self.PromoAliasCode = PromoAliasCode - def hasContent_(self): + def _hasContent(self): if ( self.PromoCode is not None or self.PromoAliasCode is not None @@ -8517,17 +8566,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PromotionalDiscountInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PromotionalDiscountInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PromotionalDiscountInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PromotionalDiscountInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PromotionalDiscountInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PromotionalDiscountInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PromotionalDiscountInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PromotionalDiscountInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8546,14 +8595,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PromoCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'PromoCode') @@ -8606,7 +8655,7 @@ def get_Weight(self): return self.Weight def set_Weight(self, Weight): self.Weight = Weight - def hasContent_(self): + def _hasContent(self): if ( self.UnitOfMeasurement is not None or self.Weight is not None @@ -8629,17 +8678,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentWeightType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentWeightType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentWeightType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentWeightType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentWeightType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentWeightType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentWeightType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentWeightType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8657,14 +8706,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'UnitOfMeasurement': obj_ = CodeDescriptionType1.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -8693,7 +8742,7 @@ def __init__(self, ShipmentCharge=None, SplitDutyVATIndicator=None, gds_collecto self.ShipmentCharge = [] else: self.ShipmentCharge = ShipmentCharge - self.ShipmentCharge_nsprefix_ = None + self.ShipmentCharge_nsprefix_ = "rate" self.SplitDutyVATIndicator = SplitDutyVATIndicator self.SplitDutyVATIndicator_nsprefix_ = None def factory(*args_, **kwargs_): @@ -8725,7 +8774,7 @@ def get_SplitDutyVATIndicator(self): return self.SplitDutyVATIndicator def set_SplitDutyVATIndicator(self, SplitDutyVATIndicator): self.SplitDutyVATIndicator = SplitDutyVATIndicator - def hasContent_(self): + def _hasContent(self): if ( self.ShipmentCharge or self.SplitDutyVATIndicator is not None @@ -8748,17 +8797,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PaymentDetailsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PaymentDetailsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PaymentDetailsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PaymentDetailsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PaymentDetailsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PaymentDetailsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PaymentDetailsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PaymentDetailsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8776,14 +8825,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ShipmentCharge': obj_ = ShipmentChargeType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -8811,11 +8860,11 @@ def __init__(self, Type=None, BillShipper=None, BillReceiver=None, BillThirdPart self.Type = Type self.Type_nsprefix_ = None self.BillShipper = BillShipper - self.BillShipper_nsprefix_ = None + self.BillShipper_nsprefix_ = "rate" self.BillReceiver = BillReceiver - self.BillReceiver_nsprefix_ = None + self.BillReceiver_nsprefix_ = "rate" self.BillThirdParty = BillThirdParty - self.BillThirdParty_nsprefix_ = None + self.BillThirdParty_nsprefix_ = "rate" self.ConsigneeBilledIndicator = ConsigneeBilledIndicator self.ConsigneeBilledIndicator_nsprefix_ = None def factory(*args_, **kwargs_): @@ -8853,7 +8902,7 @@ def get_ConsigneeBilledIndicator(self): return self.ConsigneeBilledIndicator def set_ConsigneeBilledIndicator(self, ConsigneeBilledIndicator): self.ConsigneeBilledIndicator = ConsigneeBilledIndicator - def hasContent_(self): + def _hasContent(self): if ( self.Type is not None or self.BillShipper is not None or @@ -8879,17 +8928,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentChargeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentChargeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentChargeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentChargeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentChargeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentChargeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentChargeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentChargeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8917,14 +8966,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Type': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Type') @@ -8986,7 +9035,7 @@ def get_AccountNumber(self): return self.AccountNumber def set_AccountNumber(self, AccountNumber): self.AccountNumber = AccountNumber - def hasContent_(self): + def _hasContent(self): if ( self.AccountNumber is not None ): @@ -9008,17 +9057,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='B showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='BillShipperChargeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='BillShipperChargeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='BillShipperChargeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='BillShipperChargeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='BillShipperChargeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='BillShipperChargeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='BillShipperChargeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='BillShipperChargeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -9033,14 +9082,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AccountNumber': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'AccountNumber') @@ -9063,7 +9112,7 @@ def __init__(self, AccountNumber=None, Address=None, gds_collector_=None, **kwar self.AccountNumber = AccountNumber self.AccountNumber_nsprefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "rate" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -9087,7 +9136,7 @@ def get_Address(self): return self.Address def set_Address(self, Address): self.Address = Address - def hasContent_(self): + def _hasContent(self): if ( self.AccountNumber is not None or self.Address is not None @@ -9110,17 +9159,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='B showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='BillReceiverChargeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='BillReceiverChargeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='BillReceiverChargeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='BillReceiverChargeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='BillReceiverChargeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='BillReceiverChargeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='BillReceiverChargeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='BillReceiverChargeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -9138,14 +9187,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AccountNumber': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'AccountNumber') @@ -9173,7 +9222,7 @@ def __init__(self, AccountNumber=None, Address=None, gds_collector_=None, **kwar self.AccountNumber = AccountNumber self.AccountNumber_nsprefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "rate" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -9197,7 +9246,7 @@ def get_Address(self): return self.Address def set_Address(self, Address): self.Address = Address - def hasContent_(self): + def _hasContent(self): if ( self.AccountNumber is not None or self.Address is not None @@ -9220,17 +9269,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='B showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='BillThirdPartyChargeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='BillThirdPartyChargeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='BillThirdPartyChargeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='BillThirdPartyChargeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='BillThirdPartyChargeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='BillThirdPartyChargeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='BillThirdPartyChargeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='BillThirdPartyChargeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -9248,14 +9297,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AccountNumber': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'AccountNumber') @@ -9302,7 +9351,7 @@ def get_PostalCode(self): return self.PostalCode def set_PostalCode(self, PostalCode): self.PostalCode = PostalCode - def hasContent_(self): + def _hasContent(self): if ( self.PostalCode is not None ): @@ -9324,17 +9373,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='B showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='BillReceiverAddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='BillReceiverAddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='BillReceiverAddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='BillReceiverAddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='BillReceiverAddressType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='BillReceiverAddressType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='BillReceiverAddressType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='BillReceiverAddressType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -9349,14 +9398,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PostalCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'PostalCode') @@ -9379,7 +9428,7 @@ def __init__(self, Name=None, Address=None, gds_collector_=None, **kwargs_): self.Name = Name self.Name_nsprefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "rate" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -9403,7 +9452,7 @@ def get_Address(self): return self.Address def set_Address(self, Address): self.Address = Address - def hasContent_(self): + def _hasContent(self): if ( self.Name is not None or self.Address is not None @@ -9426,17 +9475,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AlternateDeliveryAddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AlternateDeliveryAddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AlternateDeliveryAddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AlternateDeliveryAddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AlternateDeliveryAddressType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AlternateDeliveryAddressType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AlternateDeliveryAddressType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AlternateDeliveryAddressType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -9454,14 +9503,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Name': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Name') @@ -9552,7 +9601,7 @@ def get_POBoxIndicator(self): return self.POBoxIndicator def set_POBoxIndicator(self, POBoxIndicator): self.POBoxIndicator = POBoxIndicator - def hasContent_(self): + def _hasContent(self): if ( self.AddressLine or self.City is not None or @@ -9580,17 +9629,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ADRType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ADRType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ADRType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ADRType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ADRType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ADRType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ADRType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ADRType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -9629,14 +9678,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AddressLine': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'AddressLine') @@ -9719,7 +9768,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -9742,17 +9791,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='I showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='IndicationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='IndicationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='IndicationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='IndicationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='IndicationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='IndicationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='IndicationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='IndicationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -9771,14 +9820,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -9809,15 +9858,15 @@ def __init__(self, SaturdayPickupIndicator=None, SaturdayDeliveryIndicator=None, self.SaturdayDeliveryIndicator = SaturdayDeliveryIndicator self.SaturdayDeliveryIndicator_nsprefix_ = None self.AccessPointCOD = AccessPointCOD - self.AccessPointCOD_nsprefix_ = None + self.AccessPointCOD_nsprefix_ = "rate" self.DeliverToAddresseeOnlyIndicator = DeliverToAddresseeOnlyIndicator self.DeliverToAddresseeOnlyIndicator_nsprefix_ = None self.DirectDeliveryOnlyIndicator = DirectDeliveryOnlyIndicator self.DirectDeliveryOnlyIndicator_nsprefix_ = None self.COD = COD - self.COD_nsprefix_ = None + self.COD_nsprefix_ = "rate" self.DeliveryConfirmation = DeliveryConfirmation - self.DeliveryConfirmation_nsprefix_ = None + self.DeliveryConfirmation_nsprefix_ = "rate" self.ReturnOfDocumentIndicator = ReturnOfDocumentIndicator self.ReturnOfDocumentIndicator_nsprefix_ = None self.UPScarbonneutralIndicator = UPScarbonneutralIndicator @@ -9825,19 +9874,19 @@ def __init__(self, SaturdayPickupIndicator=None, SaturdayDeliveryIndicator=None, self.CertificateOfOriginIndicator = CertificateOfOriginIndicator self.CertificateOfOriginIndicator_nsprefix_ = None self.PickupOptions = PickupOptions - self.PickupOptions_nsprefix_ = None + self.PickupOptions_nsprefix_ = "rate" self.DeliveryOptions = DeliveryOptions - self.DeliveryOptions_nsprefix_ = None + self.DeliveryOptions_nsprefix_ = "rate" self.RestrictedArticles = RestrictedArticles - self.RestrictedArticles_nsprefix_ = None + self.RestrictedArticles_nsprefix_ = "rate" self.ShipperExportDeclarationIndicator = ShipperExportDeclarationIndicator self.ShipperExportDeclarationIndicator_nsprefix_ = None self.CommercialInvoiceRemovalIndicator = CommercialInvoiceRemovalIndicator self.CommercialInvoiceRemovalIndicator_nsprefix_ = None self.ImportControl = ImportControl - self.ImportControl_nsprefix_ = None + self.ImportControl_nsprefix_ = "rate" self.ReturnService = ReturnService - self.ReturnService_nsprefix_ = None + self.ReturnService_nsprefix_ = "rate" self.SDLShipmentIndicator = SDLShipmentIndicator self.SDLShipmentIndicator_nsprefix_ = None self.EPRAIndicator = EPRAIndicator @@ -9945,7 +9994,7 @@ def get_ItemDisposalIndicator(self): return self.ItemDisposalIndicator def set_ItemDisposalIndicator(self, ItemDisposalIndicator): self.ItemDisposalIndicator = ItemDisposalIndicator - def hasContent_(self): + def _hasContent(self): if ( self.SaturdayPickupIndicator is not None or self.SaturdayDeliveryIndicator is not None or @@ -9987,17 +10036,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentServiceOptionsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentServiceOptionsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentServiceOptionsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentServiceOptionsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentServiceOptionsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentServiceOptionsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentServiceOptionsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentServiceOptionsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -10084,14 +10133,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'SaturdayPickupIndicator': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'SaturdayPickupIndicator') @@ -10250,7 +10299,7 @@ def get_MonetaryValue(self): return self.MonetaryValue def set_MonetaryValue(self, MonetaryValue): self.MonetaryValue = MonetaryValue - def hasContent_(self): + def _hasContent(self): if ( self.CurrencyCode is not None or self.MonetaryValue is not None @@ -10273,17 +10322,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentServiceOptionsAccessPointCODType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentServiceOptionsAccessPointCODType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentServiceOptionsAccessPointCODType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentServiceOptionsAccessPointCODType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentServiceOptionsAccessPointCODType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentServiceOptionsAccessPointCODType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentServiceOptionsAccessPointCODType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentServiceOptionsAccessPointCODType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -10302,14 +10351,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CurrencyCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CurrencyCode') @@ -10362,7 +10411,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -10385,17 +10434,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ReturnServiceType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ReturnServiceType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ReturnServiceType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ReturnServiceType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ReturnServiceType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ReturnServiceType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ReturnServiceType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ReturnServiceType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -10414,14 +10463,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -10474,7 +10523,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -10497,17 +10546,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='I showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ImportControlType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ImportControlType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ImportControlType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ImportControlType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ImportControlType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ImportControlType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ImportControlType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ImportControlType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -10526,14 +10575,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -10616,7 +10665,7 @@ def get_TobaccoIndicator(self): return self.TobaccoIndicator def set_TobaccoIndicator(self, TobaccoIndicator): self.TobaccoIndicator = TobaccoIndicator - def hasContent_(self): + def _hasContent(self): if ( self.AlcoholicBeveragesIndicator is not None or self.DiagnosticSpecimensIndicator is not None or @@ -10644,17 +10693,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RestrictedArticlesType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RestrictedArticlesType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RestrictedArticlesType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RestrictedArticlesType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RestrictedArticlesType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RestrictedArticlesType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RestrictedArticlesType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RestrictedArticlesType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -10693,14 +10742,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AlcoholicBeveragesIndicator': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'AlcoholicBeveragesIndicator') @@ -10783,7 +10832,7 @@ def get_HoldForPickupIndicator(self): return self.HoldForPickupIndicator def set_HoldForPickupIndicator(self, HoldForPickupIndicator): self.HoldForPickupIndicator = HoldForPickupIndicator - def hasContent_(self): + def _hasContent(self): if ( self.LiftGateAtPickupIndicator is not None or self.HoldForPickupIndicator is not None @@ -10806,17 +10855,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupOptionsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupOptionsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupOptionsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupOptionsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupOptionsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupOptionsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupOptionsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupOptionsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -10835,14 +10884,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'LiftGateAtPickupIndicator': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'LiftGateAtPickupIndicator') @@ -10895,7 +10944,7 @@ def get_DropOffAtUPSFacilityIndicator(self): return self.DropOffAtUPSFacilityIndicator def set_DropOffAtUPSFacilityIndicator(self, DropOffAtUPSFacilityIndicator): self.DropOffAtUPSFacilityIndicator = DropOffAtUPSFacilityIndicator - def hasContent_(self): + def _hasContent(self): if ( self.LiftGateAtDeliveryIndicator is not None or self.DropOffAtUPSFacilityIndicator is not None @@ -10918,17 +10967,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DeliveryOptionsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DeliveryOptionsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DeliveryOptionsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DeliveryOptionsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DeliveryOptionsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DeliveryOptionsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DeliveryOptionsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DeliveryOptionsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -10947,14 +10996,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'LiftGateAtDeliveryIndicator': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'LiftGateAtDeliveryIndicator') @@ -10987,7 +11036,7 @@ def __init__(self, Name=None, AttentionName=None, ShipperNumber=None, Address=No self.ShipperNumber = ShipperNumber self.ShipperNumber_nsprefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "rate" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -11019,7 +11068,7 @@ def get_Address(self): return self.Address def set_Address(self, Address): self.Address = Address - def hasContent_(self): + def _hasContent(self): if ( self.Name is not None or self.AttentionName is not None or @@ -11044,17 +11093,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipperType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipperType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipperType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipperType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipperType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipperType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipperType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipperType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -11080,14 +11129,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Name': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Name') @@ -11152,7 +11201,7 @@ def get_DeliveryByTime(self): return self.DeliveryByTime def set_DeliveryByTime(self, DeliveryByTime): self.DeliveryByTime = DeliveryByTime - def hasContent_(self): + def _hasContent(self): if ( self.BusinessDaysInTransit is not None or self.DeliveryByTime is not None @@ -11175,17 +11224,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='G showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='GuaranteedDeliveryType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='GuaranteedDeliveryType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='GuaranteedDeliveryType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='GuaranteedDeliveryType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='GuaranteedDeliveryType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='GuaranteedDeliveryType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='GuaranteedDeliveryType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='GuaranteedDeliveryType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -11204,14 +11253,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'BusinessDaysInTransit': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'BusinessDaysInTransit') @@ -11242,7 +11291,7 @@ def __init__(self, Type=None, AccountNumber=None, Address=None, gds_collector_=N self.AccountNumber = AccountNumber self.AccountNumber_nsprefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "rate" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -11270,7 +11319,7 @@ def get_Address(self): return self.Address def set_Address(self, Address): self.Address = Address - def hasContent_(self): + def _hasContent(self): if ( self.Type is not None or self.AccountNumber is not None or @@ -11294,17 +11343,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='F showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FRSPaymentInfoType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FRSPaymentInfoType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FRSPaymentInfoType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FRSPaymentInfoType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FRSPaymentInfoType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FRSPaymentInfoType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FRSPaymentInfoType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FRSPaymentInfoType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -11325,14 +11374,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Type': obj_ = CodeDescriptionType1.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -11363,7 +11412,7 @@ def __init__(self, FreightDensityInfo=None, DensityEligibleIndicator=None, gds_c self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.FreightDensityInfo = FreightDensityInfo - self.FreightDensityInfo_nsprefix_ = None + self.FreightDensityInfo_nsprefix_ = "rate" self.DensityEligibleIndicator = DensityEligibleIndicator self.DensityEligibleIndicator_nsprefix_ = None def factory(*args_, **kwargs_): @@ -11389,7 +11438,7 @@ def get_DensityEligibleIndicator(self): return self.DensityEligibleIndicator def set_DensityEligibleIndicator(self, DensityEligibleIndicator): self.DensityEligibleIndicator = DensityEligibleIndicator - def hasContent_(self): + def _hasContent(self): if ( self.FreightDensityInfo is not None or self.DensityEligibleIndicator is not None @@ -11412,17 +11461,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='F showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightShipmentInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightShipmentInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightShipmentInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightShipmentInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightShipmentInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightShipmentInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightShipmentInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightShipmentInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -11440,14 +11489,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'FreightDensityInfo': obj_ = FreightDensityInfoType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -11499,7 +11548,7 @@ def get_CountryCode(self): return self.CountryCode def set_CountryCode(self, CountryCode): self.CountryCode = CountryCode - def hasContent_(self): + def _hasContent(self): if ( self.PostalCode is not None or self.CountryCode is not None @@ -11522,17 +11571,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PayerAddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PayerAddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PayerAddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PayerAddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PayerAddressType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PayerAddressType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PayerAddressType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PayerAddressType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -11551,14 +11600,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PostalCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'PostalCode') @@ -11587,12 +11636,12 @@ def __init__(self, AdjustedHeightIndicator=None, AdjustedHeight=None, HandlingUn self.AdjustedHeightIndicator = AdjustedHeightIndicator self.AdjustedHeightIndicator_nsprefix_ = None self.AdjustedHeight = AdjustedHeight - self.AdjustedHeight_nsprefix_ = None + self.AdjustedHeight_nsprefix_ = "rate" if HandlingUnits is None: self.HandlingUnits = [] else: self.HandlingUnits = HandlingUnits - self.HandlingUnits_nsprefix_ = None + self.HandlingUnits_nsprefix_ = "rate" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -11626,7 +11675,7 @@ def insert_HandlingUnits_at(self, index, value): self.HandlingUnits.insert(index, value) def replace_HandlingUnits_at(self, index, value): self.HandlingUnits[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.AdjustedHeightIndicator is not None or self.AdjustedHeight is not None or @@ -11650,17 +11699,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='F showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightDensityInfoType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightDensityInfoType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightDensityInfoType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightDensityInfoType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightDensityInfoType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightDensityInfoType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightDensityInfoType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightDensityInfoType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -11681,14 +11730,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AdjustedHeightIndicator': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'AdjustedHeightIndicator') @@ -11745,7 +11794,7 @@ def get_UnitOfMeasurement(self): return self.UnitOfMeasurement def set_UnitOfMeasurement(self, UnitOfMeasurement): self.UnitOfMeasurement = UnitOfMeasurement - def hasContent_(self): + def _hasContent(self): if ( self.Value is not None or self.UnitOfMeasurement is not None @@ -11768,17 +11817,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AdjustedHeightType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AdjustedHeightType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AdjustedHeightType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AdjustedHeightType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AdjustedHeightType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AdjustedHeightType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AdjustedHeightType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AdjustedHeightType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -11796,14 +11845,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Value': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Value') @@ -11833,7 +11882,7 @@ def __init__(self, Quantity=None, Type=None, Dimensions=None, gds_collector_=Non self.Type = Type self.Type_nsprefix_ = None self.Dimensions = Dimensions - self.Dimensions_nsprefix_ = None + self.Dimensions_nsprefix_ = "rate" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -11861,7 +11910,7 @@ def get_Dimensions(self): return self.Dimensions def set_Dimensions(self, Dimensions): self.Dimensions = Dimensions - def hasContent_(self): + def _hasContent(self): if ( self.Quantity is not None or self.Type is not None or @@ -11885,17 +11934,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='H showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HandlingUnitsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HandlingUnitsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HandlingUnitsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HandlingUnitsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HandlingUnitsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HandlingUnitsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HandlingUnitsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HandlingUnitsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -11916,14 +11965,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Quantity': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Quantity') @@ -11992,7 +12041,7 @@ def get_Height(self): return self.Height def set_Height(self, Height): self.Height = Height - def hasContent_(self): + def _hasContent(self): if ( self.UnitOfMeasurement is not None or self.Length is not None or @@ -12017,17 +12066,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='H showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HandlingUnitsDimensionsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HandlingUnitsDimensionsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HandlingUnitsDimensionsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HandlingUnitsDimensionsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HandlingUnitsDimensionsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HandlingUnitsDimensionsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HandlingUnitsDimensionsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HandlingUnitsDimensionsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -12053,14 +12102,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'UnitOfMeasurement': obj_ = CodeDescriptionType1.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -12124,7 +12173,7 @@ def get_MonetaryValue(self): return self.MonetaryValue def set_MonetaryValue(self, MonetaryValue): self.MonetaryValue = MonetaryValue - def hasContent_(self): + def _hasContent(self): if ( self.CurrencyCode is not None or self.MonetaryValue is not None @@ -12147,17 +12196,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='I showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='InvoiceLineTotalType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='InvoiceLineTotalType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='InvoiceLineTotalType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='InvoiceLineTotalType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='InvoiceLineTotalType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='InvoiceLineTotalType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='InvoiceLineTotalType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='InvoiceLineTotalType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -12176,14 +12225,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CurrencyCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CurrencyCode') @@ -12239,7 +12288,7 @@ def insert_Property_at(self, index, value): self.Property.insert(index, value) def replace_Property_at(self, index, value): self.Property[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Property ): @@ -12261,17 +12310,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ClientInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ClientInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ClientInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ClientInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ClientInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ClientInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ClientInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ClientInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -12285,14 +12334,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Property': obj_ = PropertyType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -12319,7 +12368,7 @@ def __init__(self, RequestOption=None, SubVersion=None, TransactionReference=Non self.SubVersion = SubVersion self.SubVersion_nsprefix_ = None self.TransactionReference = TransactionReference - self.TransactionReference_nsprefix_ = None + self.TransactionReference_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -12353,7 +12402,7 @@ def get_TransactionReference(self): return self.TransactionReference def set_TransactionReference(self, TransactionReference): self.TransactionReference = TransactionReference - def hasContent_(self): + def _hasContent(self): if ( self.RequestOption or self.SubVersion is not None or @@ -12377,17 +12426,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='RequestType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='RequestType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='RequestType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='RequestType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -12409,14 +12458,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'RequestOption': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'RequestOption') @@ -12474,7 +12523,7 @@ def get_TransactionIdentifier(self): return self.TransactionIdentifier def set_TransactionIdentifier(self, TransactionIdentifier): self.TransactionIdentifier = TransactionIdentifier - def hasContent_(self): + def _hasContent(self): if ( self.CustomerContext is not None or self.TransactionIdentifier is not None @@ -12497,17 +12546,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionReferenceType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionReferenceType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionReferenceType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionReferenceType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='TransactionReferenceType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='TransactionReferenceType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='TransactionReferenceType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='TransactionReferenceType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -12526,14 +12575,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CustomerContext': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CustomerContext') @@ -12560,19 +12609,19 @@ def __init__(self, ResponseStatus=None, Alert=None, AlertDetail=None, Transactio self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.ResponseStatus = ResponseStatus - self.ResponseStatus_nsprefix_ = None + self.ResponseStatus_nsprefix_ = "common" if Alert is None: self.Alert = [] else: self.Alert = Alert - self.Alert_nsprefix_ = None + self.Alert_nsprefix_ = "common" if AlertDetail is None: self.AlertDetail = [] else: self.AlertDetail = AlertDetail - self.AlertDetail_nsprefix_ = None + self.AlertDetail_nsprefix_ = "common" self.TransactionReference = TransactionReference - self.TransactionReference_nsprefix_ = None + self.TransactionReference_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -12616,7 +12665,7 @@ def get_TransactionReference(self): return self.TransactionReference def set_TransactionReference(self, TransactionReference): self.TransactionReference = TransactionReference - def hasContent_(self): + def _hasContent(self): if ( self.ResponseStatus is not None or self.Alert or @@ -12641,17 +12690,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ResponseType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ResponseType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ResponseType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ResponseType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -12674,14 +12723,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ResponseStatus': obj_ = CodeDescriptionType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -12742,7 +12791,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -12765,17 +12814,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeDescriptionType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeDescriptionType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeDescriptionType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeDescriptionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='CodeDescriptionType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='CodeDescriptionType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='CodeDescriptionType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='CodeDescriptionType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -12794,14 +12843,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -12832,7 +12881,7 @@ def __init__(self, Code=None, Description=None, ElementLevelInformation=None, gd self.Description = Description self.Description_nsprefix_ = None self.ElementLevelInformation = ElementLevelInformation - self.ElementLevelInformation_nsprefix_ = None + self.ElementLevelInformation_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -12860,7 +12909,7 @@ def get_ElementLevelInformation(self): return self.ElementLevelInformation def set_ElementLevelInformation(self, ElementLevelInformation): self.ElementLevelInformation = ElementLevelInformation - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None or @@ -12884,17 +12933,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DetailType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DetailType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DetailType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DetailType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='DetailType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='DetailType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='DetailType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='DetailType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -12916,14 +12965,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -12960,7 +13009,7 @@ def __init__(self, Level=None, ElementIdentifier=None, gds_collector_=None, **kw self.ElementIdentifier = [] else: self.ElementIdentifier = ElementIdentifier - self.ElementIdentifier_nsprefix_ = None + self.ElementIdentifier_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -12990,7 +13039,7 @@ def insert_ElementIdentifier_at(self, index, value): self.ElementIdentifier.insert(index, value) def replace_ElementIdentifier_at(self, index, value): self.ElementIdentifier[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Level is not None or self.ElementIdentifier @@ -13013,17 +13062,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementLevelInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementLevelInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementLevelInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementLevelInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementLevelInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementLevelInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementLevelInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementLevelInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -13041,14 +13090,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Level': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Level') @@ -13100,7 +13149,7 @@ def get_Value(self): return self.Value def set_Value(self, Value): self.Value = Value - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Value is not None @@ -13123,17 +13172,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementIdentifierType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementIdentifierType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementIdentifierType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementIdentifierType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementIdentifierType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementIdentifierType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementIdentifierType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementIdentifierType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -13152,14 +13201,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -13209,7 +13258,7 @@ def set_Key(self, Key): self.Key = Key def get_valueOf_(self): return self.valueOf_ def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_ - def hasContent_(self): + def _hasContent(self): if ( (1 if type(self.valueOf_) in [int,float] else self.valueOf_) ): @@ -13231,19 +13280,19 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PropertyType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PropertyType') + if self._hasContent(): outfile.write('>') outfile.write(self.convert_unicode(self.valueOf_)) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PropertyType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PropertyType', pretty_print=pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PropertyType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PropertyType'): if self.Key is not None and 'Key' not in already_processed: already_processed.add('Key') outfile.write(' Key=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.Key), input_name='Key')), )) - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PropertyType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PropertyType', fromsubclass_=False, pretty_print=True): pass def build(self, node, gds_collector_=None): self.gds_collector_ = gds_collector_ @@ -13251,18 +13300,18 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) self.valueOf_ = get_all_text_(node) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('Key', node) if value is not None and 'Key' not in already_processed: already_processed.add('Key') self.Key = value - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): pass # end class PropertyType @@ -13341,7 +13390,8 @@ def parse(inFileName, silence=False, print_warnings=True): return rootObj -def parseEtree(inFileName, silence=False, print_warnings=True): +def parseEtree(inFileName, silence=False, print_warnings=True, + mapping=None, reverse_mapping=None, nsmap=None): parser = None doc = parsexml_(inFileName, parser) gds_collector = GdsCollector_() @@ -13352,10 +13402,15 @@ def parseEtree(inFileName, silence=False, print_warnings=True): rootClass = RateRequest rootObj = rootClass.factory() rootObj.build(rootNode, gds_collector_=gds_collector) + if mapping is None: + mapping = {} + if reverse_mapping is None: + reverse_mapping = {} + rootElement = rootObj.to_etree( + None, name_=rootTag, mapping_=mapping, + reverse_mapping_=reverse_mapping, nsmap_=nsmap) + reverse_node_mapping = rootObj.gds_reverse_node_mapping(mapping) # Enable Python to collect the space used by the DOM. - mapping = {} - rootElement = rootObj.to_etree(None, name_=rootTag, mapping_=mapping) - reverse_mapping = rootObj.gds_reverse_node_mapping(mapping) if not SaveElementTreeNode: doc = None rootNode = None @@ -13372,7 +13427,7 @@ def parseEtree(inFileName, silence=False, print_warnings=True): len(gds_collector.get_messages()), )) gds_collector.write_messages(sys.stderr) sys.stderr.write(separator) - return rootObj, rootElement, mapping, reverse_mapping + return rootObj, rootElement, mapping, reverse_node_mapping def parseString(inString, silence=False, print_warnings=True): @@ -13457,6 +13512,260 @@ def main(): "{http://www.ups.com/XMLSchema/XOLTWS/Rate/v1.1}CodeDescriptionType": "CodeDescriptionType1", } +# +# Mapping of namespaces to types defined in them +# and the file in which each is defined. +# simpleTypes are marked "ST" and complexTypes "CT". +NamespaceToDefMappings_ = {'http://www.ups.com/XMLSchema/XOLTWS/Common/v1.0': [('ClientInformationType', + './schemas/common.xsd', + 'CT'), + ('RequestType', + './schemas/common.xsd', + 'CT'), + ('TransactionReferenceType', + './schemas/common.xsd', + 'CT'), + ('ResponseType', + './schemas/common.xsd', + 'CT'), + ('CodeDescriptionType', + './schemas/common.xsd', + 'CT'), + ('DetailType', + './schemas/common.xsd', + 'CT'), + ('ElementLevelInformationType', + './schemas/common.xsd', + 'CT'), + ('ElementIdentifierType', + './schemas/common.xsd', + 'CT')], + 'http://www.ups.com/XMLSchema/XOLTWS/Rate/v1.1': [('BillingWeightType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('RatedPackageType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('AccessorialType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('NegotiatedChargesType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('RatedShipmentType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('ReturnContractServicesType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('TimeInTransitResponseType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('ServiceSummaryType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('EstimatedArrivalType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('DisclaimerType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('TaxChargeType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('TotalChargeType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('RatedShipmentInfoType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('ChargesType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('TransportationChargesType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('FRSShipmentType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('FreightDensityRateType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('HandlingUnitsResponseType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('AddressType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('ShipToAddressType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('ShipAddressType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('CODType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('CODAmountType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('DeliveryConfirmationType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('DimensionsType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('InsuredValueType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('PackageType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('CommodityType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('NMFCCommodityType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('PackageServiceOptionsType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('HazMatType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('HazMatChemicalRecordType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('PackageServiceOptionsAccessPointCODType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('DryIceType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('DryIceWeightType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('ShipperDeclaredValueType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('InsuranceType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('InsuranceValueType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('PackageWeightType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('UOMCodeDescriptionType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('CodeDescriptionType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('ShipmentRatingOptionsType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('ShipFromType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('ShipToType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('ShipmentType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('TimeInTransitRequestType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('PickupType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('PromotionalDiscountInformationType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('ShipmentWeightType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('PaymentDetailsType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('ShipmentChargeType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('BillShipperChargeType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('BillReceiverChargeType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('BillThirdPartyChargeType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('BillReceiverAddressType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('AlternateDeliveryAddressType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('ADRType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('IndicationType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('ShipmentServiceOptionsType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('ShipmentServiceOptionsAccessPointCODType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('ReturnServiceType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('ImportControlType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('RestrictedArticlesType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('PickupOptionsType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('DeliveryOptionsType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('ShipperType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('GuaranteedDeliveryType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('FRSPaymentInfoType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('FreightShipmentInformationType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('PayerAddressType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('FreightDensityInfoType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('AdjustedHeightType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('HandlingUnitsType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('HandlingUnitsDimensionsType', + './schemas/RateWebServiceSchema.xsd', + 'CT'), + ('InvoiceLineTotalType', + './schemas/RateWebServiceSchema.xsd', + 'CT')]} + __all__ = [ "ADRType", "AccessorialType", diff --git a/schemas/ups/ups_lib/rest_error.py b/schemas/ups/ups_lib/rest_error.py new file mode 100644 index 0000000000..efb90d2b49 --- /dev/null +++ b/schemas/ups/ups_lib/rest_error.py @@ -0,0 +1,19 @@ +from attr import s +from typing import Optional, List +from jstruct import JList, JStruct + + +@s(auto_attribs=True) +class Error: + code: Optional[int] = None + message: Optional[str] = None + + +@s(auto_attribs=True) +class Response: + errors: List[Error] = JList[Error] + + +@s(auto_attribs=True) +class RESTError: + response: Optional[Response] = JStruct[Response] diff --git a/schemas/ups/ups_lib/rest_tracking_response.py b/schemas/ups/ups_lib/rest_tracking_response.py new file mode 100644 index 0000000000..042524b262 --- /dev/null +++ b/schemas/ups/ups_lib/rest_tracking_response.py @@ -0,0 +1,67 @@ +from attr import s +from typing import Optional, List +from jstruct import JStruct, JList + + +@s(auto_attribs=True) +class Address: + city: Optional[str] = None + stateProvince: Optional[str] = None + postalCode: Optional[str] = None + country: Optional[str] = None + + +@s(auto_attribs=True) +class Location: + address: Optional[Address] = JStruct[Address] + + +@s(auto_attribs=True) +class Status: + type: Optional[str] = None + description: Optional[str] = None + code: Optional[str] = None + + +@s(auto_attribs=True) +class Activity: + location: Optional[Location] = JStruct[Location] + status: Optional[Status] = JStruct[Status] + date: Optional[int] = None + time: Optional[str] = None + + +@s(auto_attribs=True) +class DeliveryDate: + type: Optional[str] = None + date: Optional[int] = None + + +@s(auto_attribs=True) +class DeliveryTime: + startTime: Optional[str] = None + endTime: Optional[int] = None + type: Optional[str] = None + + +@s(auto_attribs=True) +class Package: + trackingNumber: Optional[str] = None + deliveryDate: List[DeliveryDate] = JList[DeliveryDate] + deliveryTime: Optional[DeliveryTime] = JStruct[DeliveryTime] + activity: List[Activity] = JList[Activity] + + +@s(auto_attribs=True) +class Shipment: + package: List[Package] = JList[Package] + + +@s(auto_attribs=True) +class TrackResponse: + shipment: List[Shipment] = JList[Shipment] + + +@s(auto_attribs=True) +class RESTTrackingResponse: + trackResponse: Optional[TrackResponse] = JStruct[TrackResponse] diff --git a/schemas/ups/ups_lib/ship_web_service_schema.py b/schemas/ups/ups_lib/ship_web_service_schema.py index 55f9acaede..f56de5ed2d 100644 --- a/schemas/ups/ups_lib/ship_web_service_schema.py +++ b/schemas/ups/ups_lib/ship_web_service_schema.py @@ -2,34 +2,35 @@ # -*- coding: utf-8 -*- # -# Generated Sat Mar 7 09:04:20 2020 by generateDS.py version 2.35.15. -# Python 3.8.1 (v3.8.1:1b293b6006, Dec 18 2019, 14:08:53) [Clang 6.0 (clang-600.0.57)] +# Generated Wed Nov 10 10:01:03 2021 by generateDS.py version 2.40.5. +# Python 3.8.6 (v3.8.6:db455296be, Sep 23 2020, 13:31:39) [Clang 6.0 (clang-600.0.57)] # # Command line options: # ('--no-namespace-defs', '') -# ('-o', './python/ship_web_service_schema.py') +# ('-o', './ups_lib/ship_web_service_schema.py') # # Command line arguments: # ./schemas/ShipWebServiceSchema.xsd # # Command line: -# /Users/danielkobina/Documents/Open/.env/bin/generateDS --no-namespace-defs -o "./python/ship_web_service_schema.py" ./schemas/ShipWebServiceSchema.xsd +# /Users/danielkobina/Workspace/project/purplship/.venv/purplship/bin/generateDS --no-namespace-defs -o "./ups_lib/ship_web_service_schema.py" ./schemas/ShipWebServiceSchema.xsd # # Current working directory (os.getcwd()): -# 2020-03 +# ups # +import sys +try: + ModulenotfoundExp_ = ModuleNotFoundError +except NameError: + ModulenotfoundExp_ = ImportError from six.moves import zip_longest import os -import sys import re as re_ import base64 import datetime as datetime_ import decimal as decimal_ -try: - from lxml import etree as etree_ -except ImportError: - from xml.etree import ElementTree as etree_ +from lxml import etree as etree_ Validate_simpletypes_ = True @@ -92,7 +93,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # Additionally, the generatedsnamespaces module can contain a python # dictionary named GenerateDSNamespaceTypePrefixes that associates element # types with the namespace prefixes that are to be added to the -# "xsi:type" attribute value. See the exportAttributes method of +# "xsi:type" attribute value. See the _exportAttributes method of # any generated element type and the generation of "xsi:type" for an # example of the use of this table. # An example table: @@ -107,11 +108,11 @@ def parsexmlstring_(instring, parser=None, **kwargs): try: from generatedsnamespaces import GenerateDSNamespaceDefs as GenerateDSNamespaceDefs_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceDefs_ = {} try: from generatedsnamespaces import GenerateDSNamespaceTypePrefixes as GenerateDSNamespaceTypePrefixes_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceTypePrefixes_ = {} # @@ -122,7 +123,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # try: from generatedscollector import GdsCollector as GdsCollector_ -except ImportError: +except ModulenotfoundExp_ : class GdsCollector_(object): @@ -156,7 +157,7 @@ def write_messages(self, outstream): try: from enum import Enum -except ImportError: +except ModulenotfoundExp_ : Enum = object # @@ -168,9 +169,14 @@ def write_messages(self, outstream): try: from generatedssuper import GeneratedsSuper -except ImportError as exp: +except ModulenotfoundExp_ as exp: + try: + from generatedssupersuper import GeneratedsSuperSuper + except ModulenotfoundExp_ as exp: + class GeneratedsSuperSuper(object): + pass - class GeneratedsSuper(object): + class GeneratedsSuper(GeneratedsSuperSuper): __hash__ = object.__hash__ tzoff_pattern = re_.compile(r'(\+|-)((0\d|1[0-3]):[0-5]\d|14:00)$') class _FixedOffsetTZ(datetime_.tzinfo): @@ -183,6 +189,30 @@ def tzname(self, dt): return self.__name def dst(self, dt): return None + def __str__(self): + settings = { + 'str_pretty_print': True, + 'str_indent_level': 0, + 'str_namespaceprefix': '', + 'str_name': None, + 'str_namespacedefs': '', + } + for n in settings: + if hasattr(self, n): + setattr(settings[n], self[n]) + from io import StringIO + output = StringIO() + self.export( + output, + settings['str_indent_level'], + pretty_print=settings['str_pretty_print'], + namespaceprefix_=settings['str_namespaceprefix'], + name_=settings['str_name'], + namespacedef_=settings['str_namespacedefs'] + ) + strval = output.getvalue() + output.close() + return strval def gds_format_string(self, input_data, input_name=''): return input_data def gds_parse_string(self, input_data, node=None, input_name=''): @@ -193,11 +223,11 @@ def gds_validate_string(self, input_data, node=None, input_name=''): else: return input_data def gds_format_base64(self, input_data, input_name=''): - return base64.b64encode(input_data) + return base64.b64encode(input_data).decode('ascii') def gds_validate_base64(self, input_data, node=None, input_name=''): return input_data def gds_format_integer(self, input_data, input_name=''): - return '%d' % input_data + return '%d' % int(input_data) def gds_parse_integer(self, input_data, node=None, input_name=''): try: ival = int(input_data) @@ -211,6 +241,8 @@ def gds_validate_integer(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires integer value') return value def gds_format_integer_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_integer_list( self, input_data, node=None, input_name=''): @@ -219,10 +251,10 @@ def gds_validate_integer_list( try: int(value) except (TypeError, ValueError): - raise_parse_error(node, 'Requires sequence of integer valuess') + raise_parse_error(node, 'Requires sequence of integer values') return values def gds_format_float(self, input_data, input_name=''): - return ('%.15f' % input_data).rstrip('0') + return ('%.15f' % float(input_data)).rstrip('0') def gds_parse_float(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -236,6 +268,8 @@ def gds_validate_float(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires float value') return value def gds_format_float_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_float_list( self, input_data, node=None, input_name=''): @@ -247,7 +281,12 @@ def gds_validate_float_list( raise_parse_error(node, 'Requires sequence of float values') return values def gds_format_decimal(self, input_data, input_name=''): - return ('%s' % input_data).rstrip('0') + return_value = '%s' % input_data + if '.' in return_value: + return_value = return_value.rstrip('0') + if return_value.endswith('.'): + return_value = return_value.rstrip('.') + return return_value def gds_parse_decimal(self, input_data, node=None, input_name=''): try: decimal_value = decimal_.Decimal(input_data) @@ -261,7 +300,9 @@ def gds_validate_decimal(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires decimal value') return value def gds_format_decimal_list(self, input_data, input_name=''): - return '%s' % ' '.join(input_data) + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] + return ' '.join([self.gds_format_decimal(item) for item in input_data]) def gds_validate_decimal_list( self, input_data, node=None, input_name=''): values = input_data.split() @@ -272,7 +313,7 @@ def gds_validate_decimal_list( raise_parse_error(node, 'Requires sequence of decimal values') return values def gds_format_double(self, input_data, input_name=''): - return '%e' % input_data + return '%s' % input_data def gds_parse_double(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -286,6 +327,8 @@ def gds_validate_double(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires double or float value') return value def gds_format_double_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_double_list( self, input_data, node=None, input_name=''): @@ -315,11 +358,14 @@ def gds_validate_boolean(self, input_data, node=None, input_name=''): '(one of True, 1, False, 0)') return input_data def gds_format_boolean_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_boolean_list( self, input_data, node=None, input_name=''): values = input_data.split() for value in values: + value = self.gds_parse_boolean(value, node, input_name) if value not in (True, 1, False, 0, ): raise_parse_error( node, @@ -766,7 +812,10 @@ def find_attr_value_(attr_name, node): value = attrs.get(attr_name) elif len(attr_parts) == 2: prefix, name = attr_parts - namespace = node.nsmap.get(prefix) + if prefix == 'xml': + namespace = 'http://www.w3.org/XML/1998/namespace' + else: + namespace = node.nsmap.get(prefix) if namespace is not None: value = attrs.get('{%s}%s' % (namespace, name, )) return value @@ -847,7 +896,7 @@ def exportSimple(self, outfile, level, name): self.name, base64.b64encode(self.value), self.name)) - def to_etree(self, element): + def to_etree(self, element, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.category == MixedContainer.CategoryText: # Prevent exporting empty content as empty lines. if self.value.strip(): @@ -867,7 +916,7 @@ def to_etree(self, element): subelement.text = self.to_etree_simple() else: # category == MixedContainer.CategoryComplex self.value.to_etree(element) - def to_etree_simple(self): + def to_etree_simple(self, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.content_type == MixedContainer.TypeString: text = self.value elif (self.content_type == MixedContainer.TypeInteger or @@ -956,13 +1005,13 @@ def __init__(self, Request=None, Shipment=None, LabelSpecification=None, Receipt self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Request = Request - self.Request_nsprefix_ = None + self.Request_nsprefix_ = "common" self.Shipment = Shipment - self.Shipment_nsprefix_ = None + self.Shipment_nsprefix_ = "ship" self.LabelSpecification = LabelSpecification - self.LabelSpecification_nsprefix_ = None + self.LabelSpecification_nsprefix_ = "ship" self.ReceiptSpecification = ReceiptSpecification - self.ReceiptSpecification_nsprefix_ = None + self.ReceiptSpecification_nsprefix_ = "ship" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -994,7 +1043,7 @@ def get_ReceiptSpecification(self): return self.ReceiptSpecification def set_ReceiptSpecification(self, ReceiptSpecification): self.ReceiptSpecification = ReceiptSpecification - def hasContent_(self): + def _hasContent(self): if ( self.Request is not None or self.Shipment is not None or @@ -1019,17 +1068,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentRequest') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentRequest') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentRequest', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentRequest', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentRequest'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentRequest'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentRequest', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentRequest', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1052,14 +1101,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Request': obj_ = RequestType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1094,13 +1143,13 @@ def __init__(self, Request=None, Shipment=None, LabelSpecification=None, Receipt self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Request = Request - self.Request_nsprefix_ = None + self.Request_nsprefix_ = "common" self.Shipment = Shipment - self.Shipment_nsprefix_ = None + self.Shipment_nsprefix_ = "ship" self.LabelSpecification = LabelSpecification - self.LabelSpecification_nsprefix_ = None + self.LabelSpecification_nsprefix_ = "ship" self.ReceiptSpecification = ReceiptSpecification - self.ReceiptSpecification_nsprefix_ = None + self.ReceiptSpecification_nsprefix_ = "ship" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1132,7 +1181,7 @@ def get_ReceiptSpecification(self): return self.ReceiptSpecification def set_ReceiptSpecification(self, ReceiptSpecification): self.ReceiptSpecification = ReceiptSpecification - def hasContent_(self): + def _hasContent(self): if ( self.Request is not None or self.Shipment is not None or @@ -1157,17 +1206,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipConfirmRequest') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipConfirmRequest') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipConfirmRequest', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipConfirmRequest', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipConfirmRequest'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipConfirmRequest'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipConfirmRequest', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipConfirmRequest', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1190,14 +1239,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Request': obj_ = RequestType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1232,7 +1281,7 @@ def __init__(self, Request=None, ShipmentDigest=None, gds_collector_=None, **kwa self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Request = Request - self.Request_nsprefix_ = None + self.Request_nsprefix_ = "common" self.ShipmentDigest = ShipmentDigest self.ShipmentDigest_nsprefix_ = None def factory(*args_, **kwargs_): @@ -1258,7 +1307,7 @@ def get_ShipmentDigest(self): return self.ShipmentDigest def set_ShipmentDigest(self, ShipmentDigest): self.ShipmentDigest = ShipmentDigest - def hasContent_(self): + def _hasContent(self): if ( self.Request is not None or self.ShipmentDigest is not None @@ -1281,17 +1330,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipAcceptRequest') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipAcceptRequest') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipAcceptRequest', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipAcceptRequest', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipAcceptRequest'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipAcceptRequest'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipAcceptRequest', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipAcceptRequest', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1309,14 +1358,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Request': obj_ = RequestType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1342,9 +1391,9 @@ def __init__(self, Response=None, ShipmentResults=None, gds_collector_=None, **k self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Response = Response - self.Response_nsprefix_ = None + self.Response_nsprefix_ = "common" self.ShipmentResults = ShipmentResults - self.ShipmentResults_nsprefix_ = None + self.ShipmentResults_nsprefix_ = "ship" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1368,7 +1417,7 @@ def get_ShipmentResults(self): return self.ShipmentResults def set_ShipmentResults(self, ShipmentResults): self.ShipmentResults = ShipmentResults - def hasContent_(self): + def _hasContent(self): if ( self.Response is not None or self.ShipmentResults is not None @@ -1391,17 +1440,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentResponse') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentResponse') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentResponse', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentResponse', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentResponse'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentResponse'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentResponse', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentResponse', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1418,14 +1467,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Response': obj_ = ResponseType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1450,9 +1499,9 @@ def __init__(self, Response=None, ShipmentResults=None, gds_collector_=None, **k self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Response = Response - self.Response_nsprefix_ = None + self.Response_nsprefix_ = "common" self.ShipmentResults = ShipmentResults - self.ShipmentResults_nsprefix_ = None + self.ShipmentResults_nsprefix_ = "ship" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1476,7 +1525,7 @@ def get_ShipmentResults(self): return self.ShipmentResults def set_ShipmentResults(self, ShipmentResults): self.ShipmentResults = ShipmentResults - def hasContent_(self): + def _hasContent(self): if ( self.Response is not None or self.ShipmentResults is not None @@ -1499,17 +1548,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipConfirmResponse') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipConfirmResponse') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipConfirmResponse', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipConfirmResponse', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipConfirmResponse'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipConfirmResponse'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipConfirmResponse', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipConfirmResponse', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1526,14 +1575,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Response': obj_ = ResponseType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1558,9 +1607,9 @@ def __init__(self, Response=None, ShipmentResults=None, gds_collector_=None, **k self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Response = Response - self.Response_nsprefix_ = None + self.Response_nsprefix_ = "common" self.ShipmentResults = ShipmentResults - self.ShipmentResults_nsprefix_ = None + self.ShipmentResults_nsprefix_ = "ship" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1584,7 +1633,7 @@ def get_ShipmentResults(self): return self.ShipmentResults def set_ShipmentResults(self, ShipmentResults): self.ShipmentResults = ShipmentResults - def hasContent_(self): + def _hasContent(self): if ( self.Response is not None or self.ShipmentResults is not None @@ -1607,17 +1656,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipAcceptResponse') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipAcceptResponse') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipAcceptResponse', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipAcceptResponse', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipAcceptResponse'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipAcceptResponse'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipAcceptResponse', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipAcceptResponse', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1634,14 +1683,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Response': obj_ = ResponseType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1668,38 +1717,38 @@ def __init__(self, Description=None, ReturnService=None, DocumentsOnlyIndicator= self.Description = Description self.Description_nsprefix_ = None self.ReturnService = ReturnService - self.ReturnService_nsprefix_ = None + self.ReturnService_nsprefix_ = "ship" self.DocumentsOnlyIndicator = DocumentsOnlyIndicator self.DocumentsOnlyIndicator_nsprefix_ = None self.Shipper = Shipper - self.Shipper_nsprefix_ = None + self.Shipper_nsprefix_ = "ship" self.ShipTo = ShipTo - self.ShipTo_nsprefix_ = None + self.ShipTo_nsprefix_ = "ship" self.AlternateDeliveryAddress = AlternateDeliveryAddress - self.AlternateDeliveryAddress_nsprefix_ = None + self.AlternateDeliveryAddress_nsprefix_ = "ship" self.ShipFrom = ShipFrom - self.ShipFrom_nsprefix_ = None + self.ShipFrom_nsprefix_ = "ship" self.PaymentInformation = PaymentInformation - self.PaymentInformation_nsprefix_ = None + self.PaymentInformation_nsprefix_ = "ship" self.FRSPaymentInformation = FRSPaymentInformation - self.FRSPaymentInformation_nsprefix_ = None + self.FRSPaymentInformation_nsprefix_ = "ship" self.FreightShipmentInformation = FreightShipmentInformation - self.FreightShipmentInformation_nsprefix_ = None + self.FreightShipmentInformation_nsprefix_ = "ship" self.GoodsNotInFreeCirculationIndicator = GoodsNotInFreeCirculationIndicator self.GoodsNotInFreeCirculationIndicator_nsprefix_ = None self.ShipmentRatingOptions = ShipmentRatingOptions - self.ShipmentRatingOptions_nsprefix_ = None + self.ShipmentRatingOptions_nsprefix_ = "ship" self.MovementReferenceNumber = MovementReferenceNumber self.MovementReferenceNumber_nsprefix_ = None if ReferenceNumber is None: self.ReferenceNumber = [] else: self.ReferenceNumber = ReferenceNumber - self.ReferenceNumber_nsprefix_ = None + self.ReferenceNumber_nsprefix_ = "ship" self.Service = Service - self.Service_nsprefix_ = None + self.Service_nsprefix_ = "ship" self.InvoiceLineTotal = InvoiceLineTotal - self.InvoiceLineTotal_nsprefix_ = None + self.InvoiceLineTotal_nsprefix_ = "ship" self.NumOfPiecesInShipment = NumOfPiecesInShipment self.NumOfPiecesInShipment_nsprefix_ = None self.USPSEndorsement = USPSEndorsement @@ -1722,7 +1771,7 @@ def __init__(self, Description=None, ReturnService=None, DocumentsOnlyIndicator= self.ShipmentIndicationType = [] else: self.ShipmentIndicationType = ShipmentIndicationType - self.ShipmentIndicationType_nsprefix_ = None + self.ShipmentIndicationType_nsprefix_ = "ship" self.MIDualReturnShipmentKey = MIDualReturnShipmentKey self.MIDualReturnShipmentKey_nsprefix_ = None self.MIDualReturnShipmentIndicator = MIDualReturnShipmentIndicator @@ -1732,9 +1781,9 @@ def __init__(self, Description=None, ReturnService=None, DocumentsOnlyIndicator= self.TaxInformationIndicator = TaxInformationIndicator self.TaxInformationIndicator_nsprefix_ = None self.PromotionalDiscountInformation = PromotionalDiscountInformation - self.PromotionalDiscountInformation_nsprefix_ = None + self.PromotionalDiscountInformation_nsprefix_ = "ship" self.DGSignatoryInfo = DGSignatoryInfo - self.DGSignatoryInfo_nsprefix_ = None + self.DGSignatoryInfo_nsprefix_ = "ship" self.MasterCartonID = MasterCartonID self.MasterCartonID_nsprefix_ = None self.MasterCartonIndicator = MasterCartonIndicator @@ -1745,7 +1794,7 @@ def __init__(self, Description=None, ReturnService=None, DocumentsOnlyIndicator= self.Package = [] else: self.Package = Package - self.Package_nsprefix_ = None + self.Package_nsprefix_ = "ship" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1923,7 +1972,7 @@ def insert_Package_at(self, index, value): self.Package.insert(index, value) def replace_Package_at(self, index, value): self.Package[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Description is not None or self.ReturnService is not None or @@ -1980,17 +2029,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2128,14 +2177,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Description': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Description') @@ -2375,7 +2424,7 @@ def get_PromoAliasCode(self): return self.PromoAliasCode def set_PromoAliasCode(self, PromoAliasCode): self.PromoAliasCode = PromoAliasCode - def hasContent_(self): + def _hasContent(self): if ( self.PromoCode is not None or self.PromoAliasCode is not None @@ -2398,17 +2447,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PromotionalDiscountInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PromotionalDiscountInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PromotionalDiscountInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PromotionalDiscountInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PromotionalDiscountInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PromotionalDiscountInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PromotionalDiscountInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PromotionalDiscountInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2427,14 +2476,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PromoCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'PromoCode') @@ -2487,7 +2536,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -2510,17 +2559,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ReturnServiceType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ReturnServiceType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ReturnServiceType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ReturnServiceType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ReturnServiceType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ReturnServiceType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ReturnServiceType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ReturnServiceType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2539,14 +2588,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -2581,9 +2630,9 @@ def __init__(self, Name=None, AttentionName=None, CompanyDisplayableName=None, T self.TaxIdentificationNumber = TaxIdentificationNumber self.TaxIdentificationNumber_nsprefix_ = None self.TaxIDType = TaxIDType - self.TaxIDType_nsprefix_ = None + self.TaxIDType_nsprefix_ = "ship" self.Phone = Phone - self.Phone_nsprefix_ = None + self.Phone_nsprefix_ = "ship" self.extensiontype_ = extensiontype_ def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: @@ -2626,7 +2675,7 @@ def set_Phone(self, Phone): self.Phone = Phone def get_extensiontype_(self): return self.extensiontype_ def set_extensiontype_(self, extensiontype_): self.extensiontype_ = extensiontype_ - def hasContent_(self): + def _hasContent(self): if ( self.Name is not None or self.AttentionName is not None or @@ -2653,15 +2702,15 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CompanyInfoType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CompanyInfoType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CompanyInfoType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CompanyInfoType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CompanyInfoType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CompanyInfoType'): if self.extensiontype_ is not None and 'xsi:type' not in already_processed: already_processed.add('xsi:type') outfile.write(' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"') @@ -2671,7 +2720,7 @@ def exportAttributes(self, outfile, level, already_processed, namespaceprefix_=' else: outfile.write(' xsi:type="%s"' % self.extensiontype_) pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CompanyInfoType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CompanyInfoType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2704,17 +2753,17 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('xsi:type', node) if value is not None and 'xsi:type' not in already_processed: already_processed.add('xsi:type') self.extensiontype_ = value - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Name': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Name') @@ -2789,7 +2838,7 @@ def get_Extension(self): return self.Extension def set_Extension(self, Extension): self.Extension = Extension - def hasContent_(self): + def _hasContent(self): if ( self.Number is not None or self.Extension is not None @@ -2812,17 +2861,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipPhoneType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipPhoneType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipPhoneType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipPhoneType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipPhoneType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipPhoneType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipPhoneType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipPhoneType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2841,14 +2890,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Number': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Number') @@ -2931,7 +2980,7 @@ def set_CountryCode(self, CountryCode): self.CountryCode = CountryCode def get_extensiontype_(self): return self.extensiontype_ def set_extensiontype_(self, extensiontype_): self.extensiontype_ = extensiontype_ - def hasContent_(self): + def _hasContent(self): if ( self.AddressLine or self.City is not None or @@ -2957,15 +3006,15 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipAddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipAddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipAddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipAddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipAddressType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipAddressType'): if self.extensiontype_ is not None and 'xsi:type' not in already_processed: already_processed.add('xsi:type') outfile.write(' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"') @@ -2975,7 +3024,7 @@ def exportAttributes(self, outfile, level, already_processed, namespaceprefix_=' else: outfile.write(' xsi:type="%s"' % self.extensiontype_) pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipAddressType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipAddressType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3006,17 +3055,17 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('xsi:type', node) if value is not None and 'xsi:type' not in already_processed: already_processed.add('xsi:type') self.extensiontype_ = value - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AddressLine': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'AddressLine') @@ -3060,13 +3109,13 @@ def __init__(self, Name=None, AttentionName=None, CompanyDisplayableName=None, T self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None - super(ShipToType, self).__init__(Name, AttentionName, CompanyDisplayableName, TaxIdentificationNumber, TaxIDType, Phone, **kwargs_) + super(globals().get("ShipToType"), self).__init__(Name, AttentionName, CompanyDisplayableName, TaxIdentificationNumber, TaxIDType, Phone, **kwargs_) self.FaxNumber = FaxNumber self.FaxNumber_nsprefix_ = None self.EMailAddress = EMailAddress self.EMailAddress_nsprefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "ship" self.LocationID = LocationID self.LocationID_nsprefix_ = None def factory(*args_, **kwargs_): @@ -3100,13 +3149,13 @@ def get_LocationID(self): return self.LocationID def set_LocationID(self, LocationID): self.LocationID = LocationID - def hasContent_(self): + def _hasContent(self): if ( self.FaxNumber is not None or self.EMailAddress is not None or self.Address is not None or self.LocationID is not None or - super(ShipToType, self).hasContent_() + super(ShipToType, self)._hasContent() ): return True else: @@ -3126,18 +3175,18 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipToType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipToType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipToType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipToType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipToType'): - super(ShipToType, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipToType') - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipToType', fromsubclass_=False, pretty_print=True): - super(ShipToType, self).exportChildren(outfile, level, namespaceprefix_, namespacedef_, name_, True, pretty_print=pretty_print) + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipToType'): + super(ShipToType, self)._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipToType') + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipToType', fromsubclass_=False, pretty_print=True): + super(ShipToType, self)._exportChildren(outfile, level, namespaceprefix_, namespacedef_, name_, True, pretty_print=pretty_print) if pretty_print: eol_ = '\n' else: @@ -3163,14 +3212,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): - super(ShipToType, self).buildAttributes(node, attrs, already_processed) - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildAttributes(self, node, attrs, already_processed): + super(ShipToType, self)._buildAttributes(node, attrs, already_processed) + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'FaxNumber': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'FaxNumber') @@ -3194,7 +3243,7 @@ def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collec value_ = self.gds_validate_string(value_, node, 'LocationID') self.LocationID = value_ self.LocationID_nsprefix_ = child_.prefix - super(ShipToType, self).buildChildren(child_, node, nodeName_, True) + super(ShipToType, self)._buildChildren(child_, node, nodeName_, True) # end class ShipToType @@ -3208,7 +3257,7 @@ def __init__(self, AddressLine=None, City=None, StateProvinceCode=None, PostalCo self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None - super(ShipToAddressType, self).__init__(AddressLine, City, StateProvinceCode, PostalCode, CountryCode, **kwargs_) + super(globals().get("ShipToAddressType"), self).__init__(AddressLine, City, StateProvinceCode, PostalCode, CountryCode, **kwargs_) self.ResidentialAddressIndicator = ResidentialAddressIndicator self.ResidentialAddressIndicator_nsprefix_ = None def factory(*args_, **kwargs_): @@ -3230,10 +3279,10 @@ def get_ResidentialAddressIndicator(self): return self.ResidentialAddressIndicator def set_ResidentialAddressIndicator(self, ResidentialAddressIndicator): self.ResidentialAddressIndicator = ResidentialAddressIndicator - def hasContent_(self): + def _hasContent(self): if ( self.ResidentialAddressIndicator is not None or - super(ShipToAddressType, self).hasContent_() + super(ShipToAddressType, self)._hasContent() ): return True else: @@ -3253,18 +3302,18 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipToAddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipToAddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipToAddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipToAddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipToAddressType'): - super(ShipToAddressType, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipToAddressType') - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipToAddressType', fromsubclass_=False, pretty_print=True): - super(ShipToAddressType, self).exportChildren(outfile, level, namespaceprefix_, namespacedef_, name_, True, pretty_print=pretty_print) + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipToAddressType'): + super(ShipToAddressType, self)._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipToAddressType') + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipToAddressType', fromsubclass_=False, pretty_print=True): + super(ShipToAddressType, self)._exportChildren(outfile, level, namespaceprefix_, namespacedef_, name_, True, pretty_print=pretty_print) if pretty_print: eol_ = '\n' else: @@ -3279,21 +3328,21 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): - super(ShipToAddressType, self).buildAttributes(node, attrs, already_processed) - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildAttributes(self, node, attrs, already_processed): + super(ShipToAddressType, self)._buildAttributes(node, attrs, already_processed) + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ResidentialAddressIndicator': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ResidentialAddressIndicator') value_ = self.gds_validate_string(value_, node, 'ResidentialAddressIndicator') self.ResidentialAddressIndicator = value_ self.ResidentialAddressIndicator_nsprefix_ = child_.prefix - super(ShipToAddressType, self).buildChildren(child_, node, nodeName_, True) + super(ShipToAddressType, self)._buildChildren(child_, node, nodeName_, True) # end class ShipToAddressType @@ -3307,11 +3356,11 @@ def __init__(self, Name=None, AttentionName=None, CompanyDisplayableName=None, T self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None - super(ShipFromType, self).__init__(Name, AttentionName, CompanyDisplayableName, TaxIdentificationNumber, TaxIDType, Phone, **kwargs_) + super(globals().get("ShipFromType"), self).__init__(Name, AttentionName, CompanyDisplayableName, TaxIdentificationNumber, TaxIDType, Phone, **kwargs_) self.FaxNumber = FaxNumber self.FaxNumber_nsprefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "ship" self.EMailAddress = EMailAddress self.EMailAddress_nsprefix_ = None def factory(*args_, **kwargs_): @@ -3341,12 +3390,12 @@ def get_EMailAddress(self): return self.EMailAddress def set_EMailAddress(self, EMailAddress): self.EMailAddress = EMailAddress - def hasContent_(self): + def _hasContent(self): if ( self.FaxNumber is not None or self.Address is not None or self.EMailAddress is not None or - super(ShipFromType, self).hasContent_() + super(ShipFromType, self)._hasContent() ): return True else: @@ -3366,18 +3415,18 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipFromType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipFromType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipFromType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipFromType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipFromType'): - super(ShipFromType, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipFromType') - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipFromType', fromsubclass_=False, pretty_print=True): - super(ShipFromType, self).exportChildren(outfile, level, namespaceprefix_, namespacedef_, name_, True, pretty_print=pretty_print) + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipFromType'): + super(ShipFromType, self)._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipFromType') + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipFromType', fromsubclass_=False, pretty_print=True): + super(ShipFromType, self)._exportChildren(outfile, level, namespaceprefix_, namespacedef_, name_, True, pretty_print=pretty_print) if pretty_print: eol_ = '\n' else: @@ -3399,14 +3448,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): - super(ShipFromType, self).buildAttributes(node, attrs, already_processed) - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildAttributes(self, node, attrs, already_processed): + super(ShipFromType, self)._buildAttributes(node, attrs, already_processed) + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'FaxNumber': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'FaxNumber') @@ -3425,7 +3474,7 @@ def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collec value_ = self.gds_validate_string(value_, node, 'EMailAddress') self.EMailAddress = value_ self.EMailAddress_nsprefix_ = child_.prefix - super(ShipFromType, self).buildChildren(child_, node, nodeName_, True) + super(ShipFromType, self)._buildChildren(child_, node, nodeName_, True) # end class ShipFromType @@ -3440,7 +3489,7 @@ def __init__(self, BillShipper=None, gds_collector_=None, **kwargs_): self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.BillShipper = BillShipper - self.BillShipper_nsprefix_ = None + self.BillShipper_nsprefix_ = "ship" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -3460,7 +3509,7 @@ def get_BillShipper(self): return self.BillShipper def set_BillShipper(self, BillShipper): self.BillShipper = BillShipper - def hasContent_(self): + def _hasContent(self): if ( self.BillShipper is not None ): @@ -3482,17 +3531,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PrepaidType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PrepaidType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PrepaidType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PrepaidType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PrepaidType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PrepaidType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PrepaidType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PrepaidType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3506,14 +3555,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'BillShipper': obj_ = BillShipperType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -3535,7 +3584,7 @@ def __init__(self, AccountNumber=None, CreditCard=None, AlternatePaymentMethod=N self.AccountNumber = AccountNumber self.AccountNumber_nsprefix_ = None self.CreditCard = CreditCard - self.CreditCard_nsprefix_ = None + self.CreditCard_nsprefix_ = "ship" self.AlternatePaymentMethod = AlternatePaymentMethod self.AlternatePaymentMethod_nsprefix_ = None def factory(*args_, **kwargs_): @@ -3565,7 +3614,7 @@ def get_AlternatePaymentMethod(self): return self.AlternatePaymentMethod def set_AlternatePaymentMethod(self, AlternatePaymentMethod): self.AlternatePaymentMethod = AlternatePaymentMethod - def hasContent_(self): + def _hasContent(self): if ( self.AccountNumber is not None or self.CreditCard is not None or @@ -3589,17 +3638,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='B showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='BillShipperType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='BillShipperType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='BillShipperType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='BillShipperType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='BillShipperType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='BillShipperType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='BillShipperType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='BillShipperType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3621,14 +3670,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AccountNumber': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'AccountNumber') @@ -3668,7 +3717,7 @@ def __init__(self, Type=None, Number=None, ExpirationDate=None, SecurityCode=Non self.SecurityCode = SecurityCode self.SecurityCode_nsprefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "ship" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -3704,7 +3753,7 @@ def get_Address(self): return self.Address def set_Address(self, Address): self.Address = Address - def hasContent_(self): + def _hasContent(self): if ( self.Type is not None or self.Number is not None or @@ -3730,17 +3779,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CreditCardType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CreditCardType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CreditCardType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CreditCardType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CreditCardType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CreditCardType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CreditCardType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CreditCardType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3770,14 +3819,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Type': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Type') @@ -3874,7 +3923,7 @@ def get_CountryCode(self): return self.CountryCode def set_CountryCode(self, CountryCode): self.CountryCode = CountryCode - def hasContent_(self): + def _hasContent(self): if ( self.AddressLine or self.City is not None or @@ -3900,17 +3949,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CreditCardAddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CreditCardAddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CreditCardAddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CreditCardAddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CreditCardAddressType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CreditCardAddressType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CreditCardAddressType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CreditCardAddressType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3941,14 +3990,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AddressLine': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'AddressLine') @@ -3995,7 +4044,7 @@ def __init__(self, AccountNumber=None, Address=None, gds_collector_=None, **kwar self.AccountNumber = AccountNumber self.AccountNumber_nsprefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "ship" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -4019,7 +4068,7 @@ def get_Address(self): return self.Address def set_Address(self, Address): self.Address = Address - def hasContent_(self): + def _hasContent(self): if ( self.AccountNumber is not None or self.Address is not None @@ -4042,17 +4091,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='B showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='BillThirdPartyChargeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='BillThirdPartyChargeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='BillThirdPartyChargeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='BillThirdPartyChargeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='BillThirdPartyChargeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='BillThirdPartyChargeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='BillThirdPartyChargeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='BillThirdPartyChargeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4070,14 +4119,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AccountNumber': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'AccountNumber') @@ -4129,7 +4178,7 @@ def get_CountryCode(self): return self.CountryCode def set_CountryCode(self, CountryCode): self.CountryCode = CountryCode - def hasContent_(self): + def _hasContent(self): if ( self.PostalCode is not None or self.CountryCode is not None @@ -4152,17 +4201,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AccountAddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AccountAddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AccountAddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AccountAddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AccountAddressType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AccountAddressType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AccountAddressType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AccountAddressType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4181,14 +4230,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PostalCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'PostalCode') @@ -4215,7 +4264,7 @@ def __init__(self, BillReceiver=None, gds_collector_=None, **kwargs_): self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.BillReceiver = BillReceiver - self.BillReceiver_nsprefix_ = None + self.BillReceiver_nsprefix_ = "ship" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -4235,7 +4284,7 @@ def get_BillReceiver(self): return self.BillReceiver def set_BillReceiver(self, BillReceiver): self.BillReceiver = BillReceiver - def hasContent_(self): + def _hasContent(self): if ( self.BillReceiver is not None ): @@ -4257,17 +4306,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='F showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightCollectType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightCollectType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightCollectType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightCollectType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightCollectType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightCollectType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightCollectType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightCollectType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4281,14 +4330,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'BillReceiver': obj_ = BillReceiverType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -4310,7 +4359,7 @@ def __init__(self, AccountNumber=None, Address=None, gds_collector_=None, **kwar self.AccountNumber = AccountNumber self.AccountNumber_nsprefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "ship" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -4334,7 +4383,7 @@ def get_Address(self): return self.Address def set_Address(self, Address): self.Address = Address - def hasContent_(self): + def _hasContent(self): if ( self.AccountNumber is not None or self.Address is not None @@ -4357,17 +4406,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='B showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='BillReceiverType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='BillReceiverType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='BillReceiverType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='BillReceiverType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='BillReceiverType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='BillReceiverType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='BillReceiverType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='BillReceiverType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4385,14 +4434,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AccountNumber': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'AccountNumber') @@ -4438,7 +4487,7 @@ def get_PostalCode(self): return self.PostalCode def set_PostalCode(self, PostalCode): self.PostalCode = PostalCode - def hasContent_(self): + def _hasContent(self): if ( self.PostalCode is not None ): @@ -4460,17 +4509,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='B showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='BillReceiverAddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='BillReceiverAddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='BillReceiverAddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='BillReceiverAddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='BillReceiverAddressType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='BillReceiverAddressType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='BillReceiverAddressType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='BillReceiverAddressType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4485,14 +4534,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PostalCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'PostalCode') @@ -4516,7 +4565,7 @@ def __init__(self, ShipmentCharge=None, SplitDutyVATIndicator=None, gds_collecto self.ShipmentCharge = [] else: self.ShipmentCharge = ShipmentCharge - self.ShipmentCharge_nsprefix_ = None + self.ShipmentCharge_nsprefix_ = "ship" self.SplitDutyVATIndicator = SplitDutyVATIndicator self.SplitDutyVATIndicator_nsprefix_ = None def factory(*args_, **kwargs_): @@ -4548,7 +4597,7 @@ def get_SplitDutyVATIndicator(self): return self.SplitDutyVATIndicator def set_SplitDutyVATIndicator(self, SplitDutyVATIndicator): self.SplitDutyVATIndicator = SplitDutyVATIndicator - def hasContent_(self): + def _hasContent(self): if ( self.ShipmentCharge or self.SplitDutyVATIndicator is not None @@ -4571,17 +4620,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PaymentInfoType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PaymentInfoType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PaymentInfoType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PaymentInfoType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PaymentInfoType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PaymentInfoType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PaymentInfoType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PaymentInfoType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4599,14 +4648,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ShipmentCharge': obj_ = ShipmentChargeType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -4634,11 +4683,11 @@ def __init__(self, Type=None, BillShipper=None, BillReceiver=None, BillThirdPart self.Type = Type self.Type_nsprefix_ = None self.BillShipper = BillShipper - self.BillShipper_nsprefix_ = None + self.BillShipper_nsprefix_ = "ship" self.BillReceiver = BillReceiver - self.BillReceiver_nsprefix_ = None + self.BillReceiver_nsprefix_ = "ship" self.BillThirdParty = BillThirdParty - self.BillThirdParty_nsprefix_ = None + self.BillThirdParty_nsprefix_ = "ship" self.ConsigneeBilledIndicator = ConsigneeBilledIndicator self.ConsigneeBilledIndicator_nsprefix_ = None def factory(*args_, **kwargs_): @@ -4676,7 +4725,7 @@ def get_ConsigneeBilledIndicator(self): return self.ConsigneeBilledIndicator def set_ConsigneeBilledIndicator(self, ConsigneeBilledIndicator): self.ConsigneeBilledIndicator = ConsigneeBilledIndicator - def hasContent_(self): + def _hasContent(self): if ( self.Type is not None or self.BillShipper is not None or @@ -4702,17 +4751,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentChargeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentChargeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentChargeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentChargeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentChargeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentChargeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentChargeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentChargeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4740,14 +4789,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Type': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Type') @@ -4789,11 +4838,11 @@ def __init__(self, Type=None, AccountNumber=None, Address=None, gds_collector_=N self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Type = Type - self.Type_nsprefix_ = None + self.Type_nsprefix_ = "ship" self.AccountNumber = AccountNumber self.AccountNumber_nsprefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "ship" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -4821,7 +4870,7 @@ def get_Address(self): return self.Address def set_Address(self, Address): self.Address = Address - def hasContent_(self): + def _hasContent(self): if ( self.Type is not None or self.AccountNumber is not None or @@ -4845,17 +4894,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='F showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FRSPaymentInfoType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FRSPaymentInfoType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FRSPaymentInfoType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FRSPaymentInfoType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FRSPaymentInfoType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FRSPaymentInfoType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FRSPaymentInfoType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FRSPaymentInfoType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4876,14 +4925,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Type': obj_ = PaymentType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -4940,7 +4989,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -4963,17 +5012,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PaymentType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PaymentType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PaymentType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PaymentType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PaymentType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PaymentType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PaymentType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PaymentType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4992,14 +5041,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -5070,7 +5119,7 @@ def get_UserLevelDiscountIndicator(self): return self.UserLevelDiscountIndicator def set_UserLevelDiscountIndicator(self, UserLevelDiscountIndicator): self.UserLevelDiscountIndicator = UserLevelDiscountIndicator - def hasContent_(self): + def _hasContent(self): if ( self.NegotiatedRatesIndicator is not None or self.FRSShipmentIndicator is not None or @@ -5096,17 +5145,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RateInfoType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RateInfoType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RateInfoType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RateInfoType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RateInfoType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RateInfoType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RateInfoType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RateInfoType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5137,14 +5186,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'NegotiatedRatesIndicator': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'NegotiatedRatesIndicator') @@ -5221,7 +5270,7 @@ def get_Value(self): return self.Value def set_Value(self, Value): self.Value = Value - def hasContent_(self): + def _hasContent(self): if ( self.BarCodeIndicator is not None or self.Code is not None or @@ -5245,17 +5294,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ReferenceNumberType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ReferenceNumberType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ReferenceNumberType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ReferenceNumberType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ReferenceNumberType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ReferenceNumberType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ReferenceNumberType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ReferenceNumberType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5278,14 +5327,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'BarCodeIndicator': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'BarCodeIndicator') @@ -5344,7 +5393,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -5367,17 +5416,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ServiceType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ServiceType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ServiceType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ServiceType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ServiceType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ServiceType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ServiceType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ServiceType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5396,14 +5445,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -5456,7 +5505,7 @@ def get_MonetaryValue(self): return self.MonetaryValue def set_MonetaryValue(self, MonetaryValue): self.MonetaryValue = MonetaryValue - def hasContent_(self): + def _hasContent(self): if ( self.CurrencyCode is not None or self.MonetaryValue is not None @@ -5479,17 +5528,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CurrencyMonetaryType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CurrencyMonetaryType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CurrencyMonetaryType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CurrencyMonetaryType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CurrencyMonetaryType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CurrencyMonetaryType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CurrencyMonetaryType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CurrencyMonetaryType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5508,14 +5557,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CurrencyCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CurrencyCode') @@ -5546,9 +5595,9 @@ def __init__(self, SaturdayDeliveryIndicator=None, SaturdayPickupIndicator=None, self.SaturdayPickupIndicator = SaturdayPickupIndicator self.SaturdayPickupIndicator_nsprefix_ = None self.COD = COD - self.COD_nsprefix_ = None + self.COD_nsprefix_ = "ship" self.AccessPointCOD = AccessPointCOD - self.AccessPointCOD_nsprefix_ = None + self.AccessPointCOD_nsprefix_ = "ship" self.DeliverToAddresseeOnlyIndicator = DeliverToAddresseeOnlyIndicator self.DeliverToAddresseeOnlyIndicator_nsprefix_ = None self.DirectDeliveryOnlyIndicator = DirectDeliveryOnlyIndicator @@ -5557,19 +5606,19 @@ def __init__(self, SaturdayDeliveryIndicator=None, SaturdayPickupIndicator=None, self.Notification = [] else: self.Notification = Notification - self.Notification_nsprefix_ = None + self.Notification_nsprefix_ = "ship" self.LabelDelivery = LabelDelivery - self.LabelDelivery_nsprefix_ = None + self.LabelDelivery_nsprefix_ = "ship" self.InternationalForms = InternationalForms - self.InternationalForms_nsprefix_ = None + self.InternationalForms_nsprefix_ = "ifs" self.DeliveryConfirmation = DeliveryConfirmation - self.DeliveryConfirmation_nsprefix_ = None + self.DeliveryConfirmation_nsprefix_ = "ship" self.ReturnOfDocumentIndicator = ReturnOfDocumentIndicator self.ReturnOfDocumentIndicator_nsprefix_ = None self.ImportControlIndicator = ImportControlIndicator self.ImportControlIndicator_nsprefix_ = None self.LabelMethod = LabelMethod - self.LabelMethod_nsprefix_ = None + self.LabelMethod_nsprefix_ = "ship" self.CommercialInvoiceRemovalIndicator = CommercialInvoiceRemovalIndicator self.CommercialInvoiceRemovalIndicator_nsprefix_ = None self.UPScarbonneutralIndicator = UPScarbonneutralIndicator @@ -5578,7 +5627,7 @@ def __init__(self, SaturdayDeliveryIndicator=None, SaturdayPickupIndicator=None, self.PreAlertNotification = [] else: self.PreAlertNotification = PreAlertNotification - self.PreAlertNotification_nsprefix_ = None + self.PreAlertNotification_nsprefix_ = "ship" self.ExchangeForwardIndicator = ExchangeForwardIndicator self.ExchangeForwardIndicator_nsprefix_ = None self.HoldForPickupIndicator = HoldForPickupIndicator @@ -5594,7 +5643,7 @@ def __init__(self, SaturdayDeliveryIndicator=None, SaturdayPickupIndicator=None, self.EPRAReleaseCode = EPRAReleaseCode self.EPRAReleaseCode_nsprefix_ = None self.RestrictedArticles = RestrictedArticles - self.RestrictedArticles_nsprefix_ = None + self.RestrictedArticles_nsprefix_ = "ship" self.InsideDelivery = InsideDelivery self.InsideDelivery_nsprefix_ = None self.ItemDisposal = ItemDisposal @@ -5733,7 +5782,7 @@ def set_ItemDisposal(self, ItemDisposal): self.ItemDisposal = ItemDisposal def get_extensiontype_(self): return self.extensiontype_ def set_extensiontype_(self, extensiontype_): self.extensiontype_ = extensiontype_ - def hasContent_(self): + def _hasContent(self): if ( self.SaturdayDeliveryIndicator is not None or self.SaturdayPickupIndicator is not None or @@ -5780,15 +5829,15 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentServiceOptionsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentServiceOptionsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentServiceOptionsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentServiceOptionsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentServiceOptionsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentServiceOptionsType'): if self.extensiontype_ is not None and 'xsi:type' not in already_processed: already_processed.add('xsi:type') outfile.write(' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"') @@ -5798,7 +5847,7 @@ def exportAttributes(self, outfile, level, already_processed, namespaceprefix_=' else: outfile.write(' xsi:type="%s"' % self.extensiontype_) pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentServiceOptionsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentServiceOptionsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5904,17 +5953,17 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('xsi:type', node) if value is not None and 'xsi:type' not in already_processed: already_processed.add('xsi:type') self.extensiontype_ = value - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'SaturdayDeliveryIndicator': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'SaturdayDeliveryIndicator') @@ -6132,7 +6181,7 @@ def get_TobaccoIndicator(self): return self.TobaccoIndicator def set_TobaccoIndicator(self, TobaccoIndicator): self.TobaccoIndicator = TobaccoIndicator - def hasContent_(self): + def _hasContent(self): if ( self.DiagnosticSpecimensIndicator is not None or self.AlcoholicBeveragesIndicator is not None or @@ -6160,17 +6209,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RestrictedArticlesType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RestrictedArticlesType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RestrictedArticlesType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RestrictedArticlesType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RestrictedArticlesType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RestrictedArticlesType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RestrictedArticlesType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RestrictedArticlesType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6209,14 +6258,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'DiagnosticSpecimensIndicator': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'DiagnosticSpecimensIndicator') @@ -6273,13 +6322,13 @@ def __init__(self, EMailMessage=None, VoiceMessage=None, TextMessage=None, Local self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.EMailMessage = EMailMessage - self.EMailMessage_nsprefix_ = None + self.EMailMessage_nsprefix_ = "ship" self.VoiceMessage = VoiceMessage - self.VoiceMessage_nsprefix_ = None + self.VoiceMessage_nsprefix_ = "ship" self.TextMessage = TextMessage - self.TextMessage_nsprefix_ = None + self.TextMessage_nsprefix_ = "ship" self.Locale = Locale - self.Locale_nsprefix_ = None + self.Locale_nsprefix_ = "ship" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -6311,7 +6360,7 @@ def get_Locale(self): return self.Locale def set_Locale(self, Locale): self.Locale = Locale - def hasContent_(self): + def _hasContent(self): if ( self.EMailMessage is not None or self.VoiceMessage is not None or @@ -6336,17 +6385,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PreAlertNotificationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PreAlertNotificationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PreAlertNotificationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PreAlertNotificationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PreAlertNotificationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PreAlertNotificationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PreAlertNotificationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PreAlertNotificationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6369,14 +6418,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'EMailMessage': obj_ = PreAlertEMailMessageType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -6437,7 +6486,7 @@ def get_UndeliverableEMailAddress(self): return self.UndeliverableEMailAddress def set_UndeliverableEMailAddress(self, UndeliverableEMailAddress): self.UndeliverableEMailAddress = UndeliverableEMailAddress - def hasContent_(self): + def _hasContent(self): if ( self.EMailAddress is not None or self.UndeliverableEMailAddress is not None @@ -6460,17 +6509,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PreAlertEMailMessageType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PreAlertEMailMessageType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PreAlertEMailMessageType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PreAlertEMailMessageType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PreAlertEMailMessageType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PreAlertEMailMessageType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PreAlertEMailMessageType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PreAlertEMailMessageType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6489,14 +6538,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'EMailAddress': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'EMailAddress') @@ -6549,7 +6598,7 @@ def get_Dialect(self): return self.Dialect def set_Dialect(self, Dialect): self.Dialect = Dialect - def hasContent_(self): + def _hasContent(self): if ( self.Language is not None or self.Dialect is not None @@ -6572,17 +6621,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='L showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LocaleType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LocaleType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LocaleType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LocaleType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LocaleType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LocaleType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LocaleType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LocaleType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6601,14 +6650,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Language': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Language') @@ -6655,7 +6704,7 @@ def get_PhoneNumber(self): return self.PhoneNumber def set_PhoneNumber(self, PhoneNumber): self.PhoneNumber = PhoneNumber - def hasContent_(self): + def _hasContent(self): if ( self.PhoneNumber is not None ): @@ -6677,17 +6726,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PreAlertVoiceMessageType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PreAlertVoiceMessageType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PreAlertVoiceMessageType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PreAlertVoiceMessageType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PreAlertVoiceMessageType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PreAlertVoiceMessageType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PreAlertVoiceMessageType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PreAlertVoiceMessageType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6702,14 +6751,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PhoneNumber': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'PhoneNumber') @@ -6750,7 +6799,7 @@ def get_PhoneNumber(self): return self.PhoneNumber def set_PhoneNumber(self, PhoneNumber): self.PhoneNumber = PhoneNumber - def hasContent_(self): + def _hasContent(self): if ( self.PhoneNumber is not None ): @@ -6772,17 +6821,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PreAlertTextMessageType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PreAlertTextMessageType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PreAlertTextMessageType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PreAlertTextMessageType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PreAlertTextMessageType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PreAlertTextMessageType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PreAlertTextMessageType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PreAlertTextMessageType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6797,14 +6846,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PhoneNumber': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'PhoneNumber') @@ -6827,7 +6876,7 @@ def __init__(self, Name=None, Phone=None, gds_collector_=None, **kwargs_): self.Name = Name self.Name_nsprefix_ = None self.Phone = Phone - self.Phone_nsprefix_ = None + self.Phone_nsprefix_ = "ship" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -6851,7 +6900,7 @@ def get_Phone(self): return self.Phone def set_Phone(self, Phone): self.Phone = Phone - def hasContent_(self): + def _hasContent(self): if ( self.Name is not None or self.Phone is not None @@ -6874,17 +6923,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ContactInfoType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ContactInfoType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ContactInfoType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ContactInfoType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ContactInfoType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ContactInfoType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ContactInfoType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ContactInfoType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6902,14 +6951,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Name': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Name') @@ -6937,7 +6986,7 @@ def __init__(self, CODFundsCode=None, CODAmount=None, gds_collector_=None, **kwa self.CODFundsCode = CODFundsCode self.CODFundsCode_nsprefix_ = None self.CODAmount = CODAmount - self.CODAmount_nsprefix_ = None + self.CODAmount_nsprefix_ = "ship" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -6961,7 +7010,7 @@ def get_CODAmount(self): return self.CODAmount def set_CODAmount(self, CODAmount): self.CODAmount = CODAmount - def hasContent_(self): + def _hasContent(self): if ( self.CODFundsCode is not None or self.CODAmount is not None @@ -6984,17 +7033,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CODType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CODType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CODType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CODType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CODType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CODType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CODType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CODType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7012,14 +7061,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CODFundsCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CODFundsCode') @@ -7071,7 +7120,7 @@ def get_MonetaryValue(self): return self.MonetaryValue def set_MonetaryValue(self, MonetaryValue): self.MonetaryValue = MonetaryValue - def hasContent_(self): + def _hasContent(self): if ( self.CurrencyCode is not None or self.MonetaryValue is not None @@ -7094,17 +7143,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentServiceOptionsAccessPointCODType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentServiceOptionsAccessPointCODType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentServiceOptionsAccessPointCODType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentServiceOptionsAccessPointCODType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentServiceOptionsAccessPointCODType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentServiceOptionsAccessPointCODType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentServiceOptionsAccessPointCODType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentServiceOptionsAccessPointCODType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7123,14 +7172,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CurrencyCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CurrencyCode') @@ -7159,13 +7208,13 @@ def __init__(self, NotificationCode=None, EMail=None, VoiceMessage=None, TextMes self.NotificationCode = NotificationCode self.NotificationCode_nsprefix_ = None self.EMail = EMail - self.EMail_nsprefix_ = None + self.EMail_nsprefix_ = "ship" self.VoiceMessage = VoiceMessage - self.VoiceMessage_nsprefix_ = None + self.VoiceMessage_nsprefix_ = "ship" self.TextMessage = TextMessage - self.TextMessage_nsprefix_ = None + self.TextMessage_nsprefix_ = "ship" self.Locale = Locale - self.Locale_nsprefix_ = None + self.Locale_nsprefix_ = "ship" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -7201,7 +7250,7 @@ def get_Locale(self): return self.Locale def set_Locale(self, Locale): self.Locale = Locale - def hasContent_(self): + def _hasContent(self): if ( self.NotificationCode is not None or self.EMail is not None or @@ -7227,17 +7276,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='N showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='NotificationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='NotificationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='NotificationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='NotificationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='NotificationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='NotificationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='NotificationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='NotificationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7264,14 +7313,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'NotificationCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'NotificationCode') @@ -7312,7 +7361,7 @@ def __init__(self, EMail=None, LabelLinksIndicator=None, gds_collector_=None, ** self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.EMail = EMail - self.EMail_nsprefix_ = None + self.EMail_nsprefix_ = "ship" self.LabelLinksIndicator = LabelLinksIndicator self.LabelLinksIndicator_nsprefix_ = None def factory(*args_, **kwargs_): @@ -7338,7 +7387,7 @@ def get_LabelLinksIndicator(self): return self.LabelLinksIndicator def set_LabelLinksIndicator(self, LabelLinksIndicator): self.LabelLinksIndicator = LabelLinksIndicator - def hasContent_(self): + def _hasContent(self): if ( self.EMail is not None or self.LabelLinksIndicator is not None @@ -7361,17 +7410,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='L showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LabelDeliveryType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LabelDeliveryType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LabelDeliveryType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LabelDeliveryType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LabelDeliveryType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LabelDeliveryType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LabelDeliveryType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LabelDeliveryType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7389,14 +7438,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'EMail': obj_ = EmailDetailsType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -7487,7 +7536,7 @@ def get_SubjectCode(self): return self.SubjectCode def set_SubjectCode(self, SubjectCode): self.SubjectCode = SubjectCode - def hasContent_(self): + def _hasContent(self): if ( self.EMailAddress or self.UndeliverableEMailAddress is not None or @@ -7515,17 +7564,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='E showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='EmailDetailsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='EmailDetailsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='EmailDetailsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='EmailDetailsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='EmailDetailsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='EmailDetailsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='EmailDetailsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='EmailDetailsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7564,14 +7613,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'EMailAddress': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'EMailAddress') @@ -7630,28 +7679,28 @@ def __init__(self, Description=None, Packaging=None, Dimensions=None, DimWeight= self.Description = Description self.Description_nsprefix_ = None self.Packaging = Packaging - self.Packaging_nsprefix_ = None + self.Packaging_nsprefix_ = "ship" self.Dimensions = Dimensions - self.Dimensions_nsprefix_ = None + self.Dimensions_nsprefix_ = "ship" self.DimWeight = DimWeight - self.DimWeight_nsprefix_ = None + self.DimWeight_nsprefix_ = "ship" self.PackageWeight = PackageWeight - self.PackageWeight_nsprefix_ = None + self.PackageWeight_nsprefix_ = "ship" self.LargePackageIndicator = LargePackageIndicator self.LargePackageIndicator_nsprefix_ = None if ReferenceNumber is None: self.ReferenceNumber = [] else: self.ReferenceNumber = ReferenceNumber - self.ReferenceNumber_nsprefix_ = None + self.ReferenceNumber_nsprefix_ = "ship" self.AdditionalHandlingIndicator = AdditionalHandlingIndicator self.AdditionalHandlingIndicator_nsprefix_ = None self.PackageServiceOptions = PackageServiceOptions - self.PackageServiceOptions_nsprefix_ = None + self.PackageServiceOptions_nsprefix_ = "ship" self.Commodity = Commodity - self.Commodity_nsprefix_ = None + self.Commodity_nsprefix_ = "ship" self.HazMatPackageInformation = HazMatPackageInformation - self.HazMatPackageInformation_nsprefix_ = None + self.HazMatPackageInformation_nsprefix_ = "ship" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -7717,7 +7766,7 @@ def get_HazMatPackageInformation(self): return self.HazMatPackageInformation def set_HazMatPackageInformation(self, HazMatPackageInformation): self.HazMatPackageInformation = HazMatPackageInformation - def hasContent_(self): + def _hasContent(self): if ( self.Description is not None or self.Packaging is not None or @@ -7749,17 +7798,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7806,14 +7855,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Description': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Description') @@ -7912,7 +7961,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -7935,17 +7984,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackagingType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackagingType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackagingType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackagingType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackagingType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackagingType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackagingType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackagingType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7964,14 +8013,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -7998,7 +8047,7 @@ def __init__(self, UnitOfMeasurement=None, Length=None, Width=None, Height=None, self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.UnitOfMeasurement = UnitOfMeasurement - self.UnitOfMeasurement_nsprefix_ = None + self.UnitOfMeasurement_nsprefix_ = "ship" self.Length = Length self.Length_nsprefix_ = None self.Width = Width @@ -8036,7 +8085,7 @@ def get_Height(self): return self.Height def set_Height(self, Height): self.Height = Height - def hasContent_(self): + def _hasContent(self): if ( self.UnitOfMeasurement is not None or self.Length is not None or @@ -8061,17 +8110,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DimensionsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DimensionsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DimensionsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DimensionsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DimensionsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DimensionsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DimensionsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DimensionsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8097,14 +8146,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'UnitOfMeasurement': obj_ = ShipUnitOfMeasurementType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -8168,7 +8217,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -8191,17 +8240,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipUnitOfMeasurementType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipUnitOfMeasurementType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipUnitOfMeasurementType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipUnitOfMeasurementType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipUnitOfMeasurementType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipUnitOfMeasurementType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipUnitOfMeasurementType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipUnitOfMeasurementType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8220,14 +8269,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -8254,7 +8303,7 @@ def __init__(self, UnitOfMeasurement=None, Weight=None, gds_collector_=None, **k self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.UnitOfMeasurement = UnitOfMeasurement - self.UnitOfMeasurement_nsprefix_ = None + self.UnitOfMeasurement_nsprefix_ = "ship" self.Weight = Weight self.Weight_nsprefix_ = None def factory(*args_, **kwargs_): @@ -8280,7 +8329,7 @@ def get_Weight(self): return self.Weight def set_Weight(self, Weight): self.Weight = Weight - def hasContent_(self): + def _hasContent(self): if ( self.UnitOfMeasurement is not None or self.Weight is not None @@ -8303,17 +8352,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageWeightType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageWeightType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageWeightType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageWeightType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageWeightType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageWeightType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageWeightType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageWeightType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8331,14 +8380,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'UnitOfMeasurement': obj_ = ShipUnitOfMeasurementType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -8364,26 +8413,26 @@ def __init__(self, DeliveryConfirmation=None, DeclaredValue=None, COD=None, Acce self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.DeliveryConfirmation = DeliveryConfirmation - self.DeliveryConfirmation_nsprefix_ = None + self.DeliveryConfirmation_nsprefix_ = "ship" self.DeclaredValue = DeclaredValue - self.DeclaredValue_nsprefix_ = None + self.DeclaredValue_nsprefix_ = "ship" self.COD = COD - self.COD_nsprefix_ = None + self.COD_nsprefix_ = "ship" self.AccessPointCOD = AccessPointCOD - self.AccessPointCOD_nsprefix_ = None + self.AccessPointCOD_nsprefix_ = "ship" self.VerbalConfirmation = VerbalConfirmation - self.VerbalConfirmation_nsprefix_ = None + self.VerbalConfirmation_nsprefix_ = "ship" self.ShipperReleaseIndicator = ShipperReleaseIndicator self.ShipperReleaseIndicator_nsprefix_ = None self.Notification = Notification - self.Notification_nsprefix_ = None + self.Notification_nsprefix_ = "ship" if HazMat is None: self.HazMat = [] else: self.HazMat = HazMat - self.HazMat_nsprefix_ = None + self.HazMat_nsprefix_ = "ship" self.DryIce = DryIce - self.DryIce_nsprefix_ = None + self.DryIce_nsprefix_ = "ship" self.UPSPremiumCareIndicator = UPSPremiumCareIndicator self.UPSPremiumCareIndicator_nsprefix_ = None self.ProactiveIndicator = ProactiveIndicator @@ -8471,7 +8520,7 @@ def get_RefrigerationIndicator(self): return self.RefrigerationIndicator def set_RefrigerationIndicator(self, RefrigerationIndicator): self.RefrigerationIndicator = RefrigerationIndicator - def hasContent_(self): + def _hasContent(self): if ( self.DeliveryConfirmation is not None or self.DeclaredValue is not None or @@ -8506,17 +8555,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageServiceOptionsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageServiceOptionsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageServiceOptionsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageServiceOptionsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageServiceOptionsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageServiceOptionsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageServiceOptionsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageServiceOptionsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8575,14 +8624,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'DeliveryConfirmation': obj_ = DeliveryConfirmationType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -8673,7 +8722,7 @@ def __init__(self, Type=None, CurrencyCode=None, MonetaryValue=None, gds_collect self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Type = Type - self.Type_nsprefix_ = None + self.Type_nsprefix_ = "ship" self.CurrencyCode = CurrencyCode self.CurrencyCode_nsprefix_ = None self.MonetaryValue = MonetaryValue @@ -8705,7 +8754,7 @@ def get_MonetaryValue(self): return self.MonetaryValue def set_MonetaryValue(self, MonetaryValue): self.MonetaryValue = MonetaryValue - def hasContent_(self): + def _hasContent(self): if ( self.Type is not None or self.CurrencyCode is not None or @@ -8729,17 +8778,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageDeclaredValueType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageDeclaredValueType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageDeclaredValueType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageDeclaredValueType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageDeclaredValueType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageDeclaredValueType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageDeclaredValueType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageDeclaredValueType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8761,14 +8810,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Type': obj_ = DeclaredValueType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -8826,7 +8875,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -8849,17 +8898,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DeclaredValueType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DeclaredValueType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DeclaredValueType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DeclaredValueType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DeclaredValueType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DeclaredValueType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DeclaredValueType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DeclaredValueType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8878,14 +8927,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -8938,7 +8987,7 @@ def get_DCISNumber(self): return self.DCISNumber def set_DCISNumber(self, DCISNumber): self.DCISNumber = DCISNumber - def hasContent_(self): + def _hasContent(self): if ( self.DCISType is not None or self.DCISNumber is not None @@ -8961,17 +9010,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DeliveryConfirmationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DeliveryConfirmationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DeliveryConfirmationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DeliveryConfirmationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DeliveryConfirmationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DeliveryConfirmationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DeliveryConfirmationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DeliveryConfirmationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8990,14 +9039,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'DCISType': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'DCISType') @@ -9050,7 +9099,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -9073,17 +9122,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='L showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LabelMethodType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LabelMethodType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LabelMethodType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LabelMethodType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LabelMethodType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LabelMethodType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LabelMethodType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LabelMethodType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -9102,14 +9151,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -9136,7 +9185,7 @@ def __init__(self, ContactInfo=None, gds_collector_=None, **kwargs_): self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.ContactInfo = ContactInfo - self.ContactInfo_nsprefix_ = None + self.ContactInfo_nsprefix_ = "ship" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -9156,7 +9205,7 @@ def get_ContactInfo(self): return self.ContactInfo def set_ContactInfo(self, ContactInfo): self.ContactInfo = ContactInfo - def hasContent_(self): + def _hasContent(self): if ( self.ContactInfo is not None ): @@ -9178,17 +9227,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='V showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='VerbalConfirmationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='VerbalConfirmationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='VerbalConfirmationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='VerbalConfirmationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='VerbalConfirmationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='VerbalConfirmationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='VerbalConfirmationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='VerbalConfirmationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -9202,14 +9251,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ContactInfo': obj_ = ContactInfoType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -9231,7 +9280,7 @@ def __init__(self, CODFundsCode=None, CODAmount=None, gds_collector_=None, **kwa self.CODFundsCode = CODFundsCode self.CODFundsCode_nsprefix_ = None self.CODAmount = CODAmount - self.CODAmount_nsprefix_ = None + self.CODAmount_nsprefix_ = "ship" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -9255,7 +9304,7 @@ def get_CODAmount(self): return self.CODAmount def set_CODAmount(self, CODAmount): self.CODAmount = CODAmount - def hasContent_(self): + def _hasContent(self): if ( self.CODFundsCode is not None or self.CODAmount is not None @@ -9278,17 +9327,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PSOCODType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PSOCODType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PSOCODType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PSOCODType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PSOCODType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PSOCODType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PSOCODType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PSOCODType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -9306,14 +9355,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CODFundsCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CODFundsCode') @@ -9365,7 +9414,7 @@ def get_MonetaryValue(self): return self.MonetaryValue def set_MonetaryValue(self, MonetaryValue): self.MonetaryValue = MonetaryValue - def hasContent_(self): + def _hasContent(self): if ( self.CurrencyCode is not None or self.MonetaryValue is not None @@ -9388,17 +9437,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageServiceOptionsAccessPointCODType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageServiceOptionsAccessPointCODType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageServiceOptionsAccessPointCODType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageServiceOptionsAccessPointCODType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageServiceOptionsAccessPointCODType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageServiceOptionsAccessPointCODType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageServiceOptionsAccessPointCODType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageServiceOptionsAccessPointCODType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -9417,14 +9466,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CurrencyCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CurrencyCode') @@ -9453,7 +9502,7 @@ def __init__(self, NotificationCode=None, EMail=None, gds_collector_=None, **kwa self.NotificationCode = NotificationCode self.NotificationCode_nsprefix_ = None self.EMail = EMail - self.EMail_nsprefix_ = None + self.EMail_nsprefix_ = "ship" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -9477,7 +9526,7 @@ def get_EMail(self): return self.EMail def set_EMail(self, EMail): self.EMail = EMail - def hasContent_(self): + def _hasContent(self): if ( self.NotificationCode is not None or self.EMail is not None @@ -9500,17 +9549,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PSONotificationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PSONotificationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PSONotificationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PSONotificationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PSONotificationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PSONotificationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PSONotificationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PSONotificationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -9528,14 +9577,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'NotificationCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'NotificationCode') @@ -9561,16 +9610,16 @@ def __init__(self, LabelImageFormat=None, HTTPUserAgent=None, LabelStockSize=Non self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.LabelImageFormat = LabelImageFormat - self.LabelImageFormat_nsprefix_ = None + self.LabelImageFormat_nsprefix_ = "ship" self.HTTPUserAgent = HTTPUserAgent self.HTTPUserAgent_nsprefix_ = None self.LabelStockSize = LabelStockSize - self.LabelStockSize_nsprefix_ = None + self.LabelStockSize_nsprefix_ = "ship" if Instruction is None: self.Instruction = [] else: self.Instruction = Instruction - self.Instruction_nsprefix_ = None + self.Instruction_nsprefix_ = "ship" self.CharacterSet = CharacterSet self.CharacterSet_nsprefix_ = None def factory(*args_, **kwargs_): @@ -9614,7 +9663,7 @@ def get_CharacterSet(self): return self.CharacterSet def set_CharacterSet(self, CharacterSet): self.CharacterSet = CharacterSet - def hasContent_(self): + def _hasContent(self): if ( self.LabelImageFormat is not None or self.HTTPUserAgent is not None or @@ -9640,17 +9689,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='L showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LabelSpecificationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LabelSpecificationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LabelSpecificationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LabelSpecificationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LabelSpecificationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LabelSpecificationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LabelSpecificationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LabelSpecificationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -9678,14 +9727,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'LabelImageFormat': obj_ = LabelImageFormatType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -9753,7 +9802,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -9776,17 +9825,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='I showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='InstructionCodeDescriptionType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='InstructionCodeDescriptionType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='InstructionCodeDescriptionType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='InstructionCodeDescriptionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='InstructionCodeDescriptionType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='InstructionCodeDescriptionType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='InstructionCodeDescriptionType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='InstructionCodeDescriptionType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -9805,14 +9854,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -9865,7 +9914,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -9888,17 +9937,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='L showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LabelImageFormatType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LabelImageFormatType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LabelImageFormatType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LabelImageFormatType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LabelImageFormatType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LabelImageFormatType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LabelImageFormatType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LabelImageFormatType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -9917,14 +9966,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -9977,7 +10026,7 @@ def get_Width(self): return self.Width def set_Width(self, Width): self.Width = Width - def hasContent_(self): + def _hasContent(self): if ( self.Height is not None or self.Width is not None @@ -10000,17 +10049,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='L showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LabelStockSizeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LabelStockSizeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LabelStockSizeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LabelStockSizeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LabelStockSizeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LabelStockSizeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LabelStockSizeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LabelStockSizeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -10029,14 +10078,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Height': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Height') @@ -10065,7 +10114,7 @@ def __init__(self, FreightClass=None, NMFC=None, gds_collector_=None, **kwargs_) self.FreightClass = FreightClass self.FreightClass_nsprefix_ = None self.NMFC = NMFC - self.NMFC_nsprefix_ = None + self.NMFC_nsprefix_ = "ship" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -10089,7 +10138,7 @@ def get_NMFC(self): return self.NMFC def set_NMFC(self, NMFC): self.NMFC = NMFC - def hasContent_(self): + def _hasContent(self): if ( self.FreightClass is not None or self.NMFC is not None @@ -10112,17 +10161,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CommodityType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CommodityType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CommodityType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CommodityType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CommodityType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CommodityType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CommodityType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CommodityType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -10140,14 +10189,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'FreightClass': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'FreightClass') @@ -10199,7 +10248,7 @@ def get_SubCode(self): return self.SubCode def set_SubCode(self, SubCode): self.SubCode = SubCode - def hasContent_(self): + def _hasContent(self): if ( self.PrimeCode is not None or self.SubCode is not None @@ -10222,17 +10271,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='N showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='NMFCType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='NMFCType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='NMFCType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='NMFCType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='NMFCType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='NMFCType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='NMFCType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='NMFCType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -10251,14 +10300,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PrimeCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'PrimeCode') @@ -10288,19 +10337,19 @@ def __init__(self, Disclaimer=None, ShipmentCharges=None, NegotiatedRateCharges= self.Disclaimer = [] else: self.Disclaimer = Disclaimer - self.Disclaimer_nsprefix_ = None + self.Disclaimer_nsprefix_ = "ship" self.ShipmentCharges = ShipmentCharges - self.ShipmentCharges_nsprefix_ = None + self.ShipmentCharges_nsprefix_ = "ship" self.NegotiatedRateCharges = NegotiatedRateCharges - self.NegotiatedRateCharges_nsprefix_ = None + self.NegotiatedRateCharges_nsprefix_ = "ship" self.FRSShipmentData = FRSShipmentData - self.FRSShipmentData_nsprefix_ = None + self.FRSShipmentData_nsprefix_ = "ship" self.RatingMethod = RatingMethod self.RatingMethod_nsprefix_ = None self.BillableWeightCalculationMethod = BillableWeightCalculationMethod self.BillableWeightCalculationMethod_nsprefix_ = None self.BillingWeight = BillingWeight - self.BillingWeight_nsprefix_ = None + self.BillingWeight_nsprefix_ = "ship" self.ShipmentIdentificationNumber = ShipmentIdentificationNumber self.ShipmentIdentificationNumber_nsprefix_ = None self.MIDualReturnShipmentKey = MIDualReturnShipmentKey @@ -10311,18 +10360,18 @@ def __init__(self, Disclaimer=None, ShipmentCharges=None, NegotiatedRateCharges= self.PackageResults = [] else: self.PackageResults = PackageResults - self.PackageResults_nsprefix_ = None + self.PackageResults_nsprefix_ = "ship" if ControlLogReceipt is None: self.ControlLogReceipt = [] else: self.ControlLogReceipt = ControlLogReceipt - self.ControlLogReceipt_nsprefix_ = None + self.ControlLogReceipt_nsprefix_ = "ship" self.Form = Form - self.Form_nsprefix_ = None + self.Form_nsprefix_ = "ship" self.CODTurnInPage = CODTurnInPage - self.CODTurnInPage_nsprefix_ = None + self.CODTurnInPage_nsprefix_ = "ship" self.HighValueReport = HighValueReport - self.HighValueReport_nsprefix_ = None + self.HighValueReport_nsprefix_ = "ship" self.LabelURL = LabelURL self.LabelURL_nsprefix_ = None self.LocalLanguageLabelURL = LocalLanguageLabelURL @@ -10461,7 +10510,7 @@ def get_MasterCartonID(self): return self.MasterCartonID def set_MasterCartonID(self, MasterCartonID): self.MasterCartonID = MasterCartonID - def hasContent_(self): + def _hasContent(self): if ( self.Disclaimer or self.ShipmentCharges is not None or @@ -10503,17 +10552,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentResultsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentResultsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentResultsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentResultsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentResultsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentResultsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentResultsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentResultsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -10598,14 +10647,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Disclaimer': obj_ = DisclaimerType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -10763,7 +10812,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -10786,17 +10835,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DisclaimerType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DisclaimerType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DisclaimerType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DisclaimerType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DisclaimerType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DisclaimerType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DisclaimerType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DisclaimerType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -10815,14 +10864,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -10851,25 +10900,25 @@ def __init__(self, RateChart=None, BaseServiceCharge=None, TransportationCharges self.RateChart = RateChart self.RateChart_nsprefix_ = None self.BaseServiceCharge = BaseServiceCharge - self.BaseServiceCharge_nsprefix_ = None + self.BaseServiceCharge_nsprefix_ = "ship" self.TransportationCharges = TransportationCharges - self.TransportationCharges_nsprefix_ = None + self.TransportationCharges_nsprefix_ = "ship" if ItemizedCharges is None: self.ItemizedCharges = [] else: self.ItemizedCharges = ItemizedCharges - self.ItemizedCharges_nsprefix_ = None + self.ItemizedCharges_nsprefix_ = "ship" self.ServiceOptionsCharges = ServiceOptionsCharges - self.ServiceOptionsCharges_nsprefix_ = None + self.ServiceOptionsCharges_nsprefix_ = "ship" if TaxCharges is None: self.TaxCharges = [] else: self.TaxCharges = TaxCharges - self.TaxCharges_nsprefix_ = None + self.TaxCharges_nsprefix_ = "ship" self.TotalCharges = TotalCharges - self.TotalCharges_nsprefix_ = None + self.TotalCharges_nsprefix_ = "ship" self.TotalChargesWithTaxes = TotalChargesWithTaxes - self.TotalChargesWithTaxes_nsprefix_ = None + self.TotalChargesWithTaxes_nsprefix_ = "ship" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -10929,7 +10978,7 @@ def get_TotalChargesWithTaxes(self): return self.TotalChargesWithTaxes def set_TotalChargesWithTaxes(self, TotalChargesWithTaxes): self.TotalChargesWithTaxes = TotalChargesWithTaxes - def hasContent_(self): + def _hasContent(self): if ( self.RateChart is not None or self.BaseServiceCharge is not None or @@ -10958,17 +11007,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentChargesType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentChargesType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentChargesType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentChargesType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentChargesType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentChargesType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentChargesType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentChargesType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -11004,14 +11053,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'RateChart': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'RateChart') @@ -11070,16 +11119,16 @@ def __init__(self, ItemizedCharges=None, TaxCharges=None, TotalCharge=None, Tota self.ItemizedCharges = [] else: self.ItemizedCharges = ItemizedCharges - self.ItemizedCharges_nsprefix_ = None + self.ItemizedCharges_nsprefix_ = "ship" if TaxCharges is None: self.TaxCharges = [] else: self.TaxCharges = TaxCharges - self.TaxCharges_nsprefix_ = None + self.TaxCharges_nsprefix_ = "ship" self.TotalCharge = TotalCharge - self.TotalCharge_nsprefix_ = None + self.TotalCharge_nsprefix_ = "ship" self.TotalChargesWithTaxes = TotalChargesWithTaxes - self.TotalChargesWithTaxes_nsprefix_ = None + self.TotalChargesWithTaxes_nsprefix_ = "ship" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -11123,7 +11172,7 @@ def get_TotalChargesWithTaxes(self): return self.TotalChargesWithTaxes def set_TotalChargesWithTaxes(self, TotalChargesWithTaxes): self.TotalChargesWithTaxes = TotalChargesWithTaxes - def hasContent_(self): + def _hasContent(self): if ( self.ItemizedCharges or self.TaxCharges or @@ -11148,17 +11197,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='N showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='NegotiatedRateChargesType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='NegotiatedRateChargesType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='NegotiatedRateChargesType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='NegotiatedRateChargesType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='NegotiatedRateChargesType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='NegotiatedRateChargesType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='NegotiatedRateChargesType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='NegotiatedRateChargesType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -11181,14 +11230,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ItemizedCharges': obj_ = ShipChargeType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -11267,7 +11316,7 @@ def get_SubType(self): return self.SubType def set_SubType(self, SubType): self.SubType = SubType - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None or @@ -11293,17 +11342,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipChargeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipChargeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipChargeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipChargeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipChargeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipChargeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipChargeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipChargeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -11334,14 +11383,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -11412,7 +11461,7 @@ def get_MonetaryValue(self): return self.MonetaryValue def set_MonetaryValue(self, MonetaryValue): self.MonetaryValue = MonetaryValue - def hasContent_(self): + def _hasContent(self): if ( self.Type is not None or self.MonetaryValue is not None @@ -11435,17 +11484,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='T showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TaxChargeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TaxChargeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TaxChargeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TaxChargeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TaxChargeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TaxChargeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TaxChargeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TaxChargeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -11464,14 +11513,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Type': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Type') @@ -11498,14 +11547,14 @@ def __init__(self, TransportationCharges=None, FreightDensityRate=None, Handling self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.TransportationCharges = TransportationCharges - self.TransportationCharges_nsprefix_ = None + self.TransportationCharges_nsprefix_ = "ship" self.FreightDensityRate = FreightDensityRate - self.FreightDensityRate_nsprefix_ = None + self.FreightDensityRate_nsprefix_ = "ship" if HandlingUnits is None: self.HandlingUnits = [] else: self.HandlingUnits = HandlingUnits - self.HandlingUnits_nsprefix_ = None + self.HandlingUnits_nsprefix_ = "ship" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -11539,7 +11588,7 @@ def insert_HandlingUnits_at(self, index, value): self.HandlingUnits.insert(index, value) def replace_HandlingUnits_at(self, index, value): self.HandlingUnits[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.TransportationCharges is not None or self.FreightDensityRate is not None or @@ -11563,17 +11612,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='F showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FRSShipmentDataType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FRSShipmentDataType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FRSShipmentDataType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FRSShipmentDataType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FRSShipmentDataType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FRSShipmentDataType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FRSShipmentDataType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FRSShipmentDataType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -11593,14 +11642,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'TransportationCharges': obj_ = TransportationChargeType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -11630,13 +11679,13 @@ def __init__(self, GrossCharge=None, DiscountAmount=None, DiscountPercentage=Non self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.GrossCharge = GrossCharge - self.GrossCharge_nsprefix_ = None + self.GrossCharge_nsprefix_ = "ship" self.DiscountAmount = DiscountAmount - self.DiscountAmount_nsprefix_ = None + self.DiscountAmount_nsprefix_ = "ship" self.DiscountPercentage = DiscountPercentage self.DiscountPercentage_nsprefix_ = None self.NetCharge = NetCharge - self.NetCharge_nsprefix_ = None + self.NetCharge_nsprefix_ = "ship" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -11668,7 +11717,7 @@ def get_NetCharge(self): return self.NetCharge def set_NetCharge(self, NetCharge): self.NetCharge = NetCharge - def hasContent_(self): + def _hasContent(self): if ( self.GrossCharge is not None or self.DiscountAmount is not None or @@ -11693,17 +11742,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='T showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransportationChargeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransportationChargeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransportationChargeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransportationChargeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TransportationChargeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TransportationChargeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TransportationChargeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TransportationChargeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -11727,14 +11776,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'GrossCharge': obj_ = ShipChargeType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -11770,7 +11819,7 @@ def __init__(self, UnitOfMeasurement=None, Weight=None, gds_collector_=None, **k self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.UnitOfMeasurement = UnitOfMeasurement - self.UnitOfMeasurement_nsprefix_ = None + self.UnitOfMeasurement_nsprefix_ = "ship" self.Weight = Weight self.Weight_nsprefix_ = None def factory(*args_, **kwargs_): @@ -11796,7 +11845,7 @@ def get_Weight(self): return self.Weight def set_Weight(self, Weight): self.Weight = Weight - def hasContent_(self): + def _hasContent(self): if ( self.UnitOfMeasurement is not None or self.Weight is not None @@ -11819,17 +11868,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='B showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='BillingWeightType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='BillingWeightType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='BillingWeightType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='BillingWeightType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='BillingWeightType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='BillingWeightType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='BillingWeightType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='BillingWeightType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -11847,14 +11896,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'UnitOfMeasurement': obj_ = BillingUnitOfMeasurementType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -11906,7 +11955,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -11929,17 +11978,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='B showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='BillingUnitOfMeasurementType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='BillingUnitOfMeasurementType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='BillingUnitOfMeasurementType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='BillingUnitOfMeasurementType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='BillingUnitOfMeasurementType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='BillingUnitOfMeasurementType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='BillingUnitOfMeasurementType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='BillingUnitOfMeasurementType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -11958,14 +12007,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -11994,13 +12043,13 @@ def __init__(self, TrackingNumber=None, BaseServiceCharge=None, ServiceOptionsCh self.TrackingNumber = TrackingNumber self.TrackingNumber_nsprefix_ = None self.BaseServiceCharge = BaseServiceCharge - self.BaseServiceCharge_nsprefix_ = None + self.BaseServiceCharge_nsprefix_ = "ship" self.ServiceOptionsCharges = ServiceOptionsCharges - self.ServiceOptionsCharges_nsprefix_ = None + self.ServiceOptionsCharges_nsprefix_ = "ship" self.ShippingLabel = ShippingLabel - self.ShippingLabel_nsprefix_ = None + self.ShippingLabel_nsprefix_ = "ship" self.ShippingReceipt = ShippingReceipt - self.ShippingReceipt_nsprefix_ = None + self.ShippingReceipt_nsprefix_ = "ship" self.USPSPICNumber = USPSPICNumber self.USPSPICNumber_nsprefix_ = None self.CN22Number = CN22Number @@ -12009,16 +12058,16 @@ def __init__(self, TrackingNumber=None, BaseServiceCharge=None, ServiceOptionsCh self.Accessorial = [] else: self.Accessorial = Accessorial - self.Accessorial_nsprefix_ = None + self.Accessorial_nsprefix_ = "ship" self.Form = Form - self.Form_nsprefix_ = None + self.Form_nsprefix_ = "ship" if ItemizedCharges is None: self.ItemizedCharges = [] else: self.ItemizedCharges = ItemizedCharges - self.ItemizedCharges_nsprefix_ = None + self.ItemizedCharges_nsprefix_ = "ship" self.NegotiatedCharges = NegotiatedCharges - self.NegotiatedCharges_nsprefix_ = None + self.NegotiatedCharges_nsprefix_ = "ship" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -12090,7 +12139,7 @@ def get_NegotiatedCharges(self): return self.NegotiatedCharges def set_NegotiatedCharges(self, NegotiatedCharges): self.NegotiatedCharges = NegotiatedCharges - def hasContent_(self): + def _hasContent(self): if ( self.TrackingNumber is not None or self.BaseServiceCharge is not None or @@ -12122,17 +12171,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageResultsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageResultsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageResultsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageResultsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageResultsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageResultsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageResultsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageResultsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -12179,14 +12228,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'TrackingNumber': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'TrackingNumber') @@ -12285,7 +12334,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -12308,17 +12357,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AccessorialType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AccessorialType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AccessorialType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AccessorialType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AccessorialType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AccessorialType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AccessorialType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AccessorialType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -12337,14 +12386,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -12371,7 +12420,7 @@ def __init__(self, ImageFormat=None, GraphicImage=None, extensiontype_=None, gds self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.ImageFormat = ImageFormat - self.ImageFormat_nsprefix_ = None + self.ImageFormat_nsprefix_ = "ship" self.GraphicImage = GraphicImage self.GraphicImage_nsprefix_ = None self.extensiontype_ = extensiontype_ @@ -12400,7 +12449,7 @@ def set_GraphicImage(self, GraphicImage): self.GraphicImage = GraphicImage def get_extensiontype_(self): return self.extensiontype_ def set_extensiontype_(self, extensiontype_): self.extensiontype_ = extensiontype_ - def hasContent_(self): + def _hasContent(self): if ( self.ImageFormat is not None or self.GraphicImage is not None @@ -12423,15 +12472,15 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='I showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ImageType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ImageType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ImageType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ImageType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ImageType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ImageType'): if self.extensiontype_ is not None and 'xsi:type' not in already_processed: already_processed.add('xsi:type') outfile.write(' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"') @@ -12441,7 +12490,7 @@ def exportAttributes(self, outfile, level, already_processed, namespaceprefix_=' else: outfile.write(' xsi:type="%s"' % self.extensiontype_) pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ImageType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ImageType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -12459,17 +12508,17 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('xsi:type', node) if value is not None and 'xsi:type' not in already_processed: already_processed.add('xsi:type') self.extensiontype_ = value - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ImageFormat': obj_ = ImageFormatType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -12499,7 +12548,7 @@ def __init__(self, Code=None, Description=None, Image=None, FormGroupId=None, Fo self.Description = Description self.Description_nsprefix_ = None self.Image = Image - self.Image_nsprefix_ = None + self.Image_nsprefix_ = "ship" self.FormGroupId = FormGroupId self.FormGroupId_nsprefix_ = None self.FormGroupIdName = FormGroupIdName @@ -12539,7 +12588,7 @@ def get_FormGroupIdName(self): return self.FormGroupIdName def set_FormGroupIdName(self, FormGroupIdName): self.FormGroupIdName = FormGroupIdName - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None or @@ -12565,17 +12614,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='F showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FormType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FormType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FormType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FormType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FormType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FormType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FormType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FormType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -12605,14 +12654,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -12656,7 +12705,7 @@ def __init__(self, ImageFormat=None, GraphicImage=None, gds_collector_=None, **k self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.ImageFormat = ImageFormat - self.ImageFormat_nsprefix_ = None + self.ImageFormat_nsprefix_ = "ship" self.GraphicImage = GraphicImage self.GraphicImage_nsprefix_ = None def factory(*args_, **kwargs_): @@ -12682,7 +12731,7 @@ def get_GraphicImage(self): return self.GraphicImage def set_GraphicImage(self, GraphicImage): self.GraphicImage = GraphicImage - def hasContent_(self): + def _hasContent(self): if ( self.ImageFormat is not None or self.GraphicImage is not None @@ -12705,17 +12754,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='F showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FormImageType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FormImageType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FormImageType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FormImageType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FormImageType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FormImageType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FormImageType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FormImageType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -12733,14 +12782,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ImageFormat': obj_ = ImageFormatType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -12792,7 +12841,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -12815,17 +12864,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='I showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ImageFormatType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ImageFormatType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ImageFormatType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ImageFormatType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ImageFormatType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ImageFormatType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ImageFormatType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ImageFormatType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -12844,14 +12893,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -12878,7 +12927,7 @@ def __init__(self, Image=None, gds_collector_=None, **kwargs_): self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Image = Image - self.Image_nsprefix_ = None + self.Image_nsprefix_ = "ship" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -12898,7 +12947,7 @@ def get_Image(self): return self.Image def set_Image(self, Image): self.Image = Image - def hasContent_(self): + def _hasContent(self): if ( self.Image is not None ): @@ -12920,17 +12969,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SCReportType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SCReportType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='SCReportType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='SCReportType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='SCReportType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='SCReportType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='SCReportType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='SCReportType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -12944,14 +12993,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Image': class_obj_ = self.get_class_obj_(child_, ImageType) obj_ = class_obj_.factory(parent_object_=self) @@ -12972,7 +13021,7 @@ def __init__(self, Image=None, gds_collector_=None, **kwargs_): self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Image = Image - self.Image_nsprefix_ = None + self.Image_nsprefix_ = "ship" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -12992,7 +13041,7 @@ def get_Image(self): return self.Image def set_Image(self, Image): self.Image = Image - def hasContent_(self): + def _hasContent(self): if ( self.Image is not None ): @@ -13014,17 +13063,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='H showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HighValueReportType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HighValueReportType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HighValueReportType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HighValueReportType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HighValueReportType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HighValueReportType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HighValueReportType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HighValueReportType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -13038,14 +13087,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Image': class_obj_ = self.get_class_obj_(child_, ImageType) obj_ = class_obj_.factory(parent_object_=self) @@ -13104,7 +13153,7 @@ def get_OuterPackagingType(self): return self.OuterPackagingType def set_OuterPackagingType(self, OuterPackagingType): self.OuterPackagingType = OuterPackagingType - def hasContent_(self): + def _hasContent(self): if ( self.AllPackedInOneIndicator is not None or self.OverPackedIndicator is not None or @@ -13129,17 +13178,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='H showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HazMatPackageInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HazMatPackageInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HazMatPackageInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HazMatPackageInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HazMatPackageInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HazMatPackageInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HazMatPackageInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HazMatPackageInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -13166,14 +13215,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AllPackedInOneIndicator': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'AllPackedInOneIndicator') @@ -13406,7 +13455,7 @@ def get_LocalProperShippingName(self): return self.LocalProperShippingName def set_LocalProperShippingName(self, LocalProperShippingName): self.LocalProperShippingName = LocalProperShippingName - def hasContent_(self): + def _hasContent(self): if ( self.PackagingTypeQuantity is not None or self.RecordIdentifier1 is not None or @@ -13457,17 +13506,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='H showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HazMatType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HazMatType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HazMatType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HazMatType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HazMatType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HazMatType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HazMatType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HazMatType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -13598,14 +13647,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PackagingTypeQuantity': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'PackagingTypeQuantity') @@ -13802,7 +13851,7 @@ def __init__(self, RegulationSet=None, DryIceWeight=None, MedicalUseIndicator=No self.RegulationSet = RegulationSet self.RegulationSet_nsprefix_ = None self.DryIceWeight = DryIceWeight - self.DryIceWeight_nsprefix_ = None + self.DryIceWeight_nsprefix_ = "ship" self.MedicalUseIndicator = MedicalUseIndicator self.MedicalUseIndicator_nsprefix_ = None def factory(*args_, **kwargs_): @@ -13832,7 +13881,7 @@ def get_MedicalUseIndicator(self): return self.MedicalUseIndicator def set_MedicalUseIndicator(self, MedicalUseIndicator): self.MedicalUseIndicator = MedicalUseIndicator - def hasContent_(self): + def _hasContent(self): if ( self.RegulationSet is not None or self.DryIceWeight is not None or @@ -13856,17 +13905,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DryIceType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DryIceType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DryIceType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DryIceType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DryIceType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DryIceType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DryIceType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DryIceType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -13888,14 +13937,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'RegulationSet': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'RegulationSet') @@ -13927,7 +13976,7 @@ def __init__(self, UnitOfMeasurement=None, Weight=None, gds_collector_=None, **k self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.UnitOfMeasurement = UnitOfMeasurement - self.UnitOfMeasurement_nsprefix_ = None + self.UnitOfMeasurement_nsprefix_ = "ship" self.Weight = Weight self.Weight_nsprefix_ = None def factory(*args_, **kwargs_): @@ -13953,7 +14002,7 @@ def get_Weight(self): return self.Weight def set_Weight(self, Weight): self.Weight = Weight - def hasContent_(self): + def _hasContent(self): if ( self.UnitOfMeasurement is not None or self.Weight is not None @@ -13976,17 +14025,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DryIceWeightType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DryIceWeightType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DryIceWeightType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DryIceWeightType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DryIceWeightType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DryIceWeightType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DryIceWeightType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DryIceWeightType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -14004,14 +14053,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'UnitOfMeasurement': obj_ = ShipUnitOfMeasurementType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -14037,7 +14086,7 @@ def __init__(self, ImageFormat=None, gds_collector_=None, **kwargs_): self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.ImageFormat = ImageFormat - self.ImageFormat_nsprefix_ = None + self.ImageFormat_nsprefix_ = "ship" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -14057,7 +14106,7 @@ def get_ImageFormat(self): return self.ImageFormat def set_ImageFormat(self, ImageFormat): self.ImageFormat = ImageFormat - def hasContent_(self): + def _hasContent(self): if ( self.ImageFormat is not None ): @@ -14079,17 +14128,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ReceiptSpecificationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ReceiptSpecificationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ReceiptSpecificationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ReceiptSpecificationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ReceiptSpecificationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ReceiptSpecificationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ReceiptSpecificationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ReceiptSpecificationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -14103,14 +14152,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ImageFormat': obj_ = ReceiptImageFormatType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -14156,7 +14205,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -14179,17 +14228,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ReceiptImageFormatType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ReceiptImageFormatType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ReceiptImageFormatType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ReceiptImageFormatType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ReceiptImageFormatType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ReceiptImageFormatType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ReceiptImageFormatType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ReceiptImageFormatType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -14208,14 +14257,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -14268,7 +14317,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -14291,17 +14340,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='T showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TaxIDCodeDescType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TaxIDCodeDescType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TaxIDCodeDescType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TaxIDCodeDescType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TaxIDCodeDescType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TaxIDCodeDescType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TaxIDCodeDescType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TaxIDCodeDescType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -14320,14 +14369,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -14380,7 +14429,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -14403,17 +14452,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='I showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='IndicationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='IndicationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='IndicationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='IndicationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='IndicationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='IndicationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='IndicationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='IndicationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -14432,14 +14481,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -14472,7 +14521,7 @@ def __init__(self, Name=None, AttentionName=None, UPSAccessPointID=None, Address self.UPSAccessPointID = UPSAccessPointID self.UPSAccessPointID_nsprefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "ship" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -14504,7 +14553,7 @@ def get_Address(self): return self.Address def set_Address(self, Address): self.Address = Address - def hasContent_(self): + def _hasContent(self): if ( self.Name is not None or self.AttentionName is not None or @@ -14529,17 +14578,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AlternateDeliveryAddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AlternateDeliveryAddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AlternateDeliveryAddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AlternateDeliveryAddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AlternateDeliveryAddressType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AlternateDeliveryAddressType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AlternateDeliveryAddressType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AlternateDeliveryAddressType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -14565,14 +14614,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Name': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Name') @@ -14630,7 +14679,7 @@ def get_PhoneNumber(self): return self.PhoneNumber def set_PhoneNumber(self, PhoneNumber): self.PhoneNumber = PhoneNumber - def hasContent_(self): + def _hasContent(self): if ( self.PhoneNumber is not None ): @@ -14652,17 +14701,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentServiceOptionsNotificationVoiceMessageType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentServiceOptionsNotificationVoiceMessageType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentServiceOptionsNotificationVoiceMessageType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentServiceOptionsNotificationVoiceMessageType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentServiceOptionsNotificationVoiceMessageType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentServiceOptionsNotificationVoiceMessageType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentServiceOptionsNotificationVoiceMessageType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentServiceOptionsNotificationVoiceMessageType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -14677,14 +14726,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PhoneNumber': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'PhoneNumber') @@ -14725,7 +14774,7 @@ def get_PhoneNumber(self): return self.PhoneNumber def set_PhoneNumber(self, PhoneNumber): self.PhoneNumber = PhoneNumber - def hasContent_(self): + def _hasContent(self): if ( self.PhoneNumber is not None ): @@ -14747,17 +14796,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentServiceOptionsNotificationTextMessageType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentServiceOptionsNotificationTextMessageType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentServiceOptionsNotificationTextMessageType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentServiceOptionsNotificationTextMessageType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentServiceOptionsNotificationTextMessageType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentServiceOptionsNotificationTextMessageType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentServiceOptionsNotificationTextMessageType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentServiceOptionsNotificationTextMessageType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -14772,14 +14821,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PhoneNumber': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'PhoneNumber') @@ -14853,7 +14902,7 @@ def get_CountryCode(self): return self.CountryCode def set_CountryCode(self, CountryCode): self.CountryCode = CountryCode - def hasContent_(self): + def _hasContent(self): if ( self.AddressLine or self.City is not None or @@ -14879,17 +14928,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ADLAddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ADLAddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ADLAddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ADLAddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ADLAddressType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ADLAddressType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ADLAddressType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ADLAddressType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -14920,14 +14969,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AddressLine': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'AddressLine') @@ -14972,7 +15021,7 @@ def __init__(self, FreightDensityInfo=None, DensityEligibleIndicator=None, gds_c self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.FreightDensityInfo = FreightDensityInfo - self.FreightDensityInfo_nsprefix_ = None + self.FreightDensityInfo_nsprefix_ = "ship" self.DensityEligibleIndicator = DensityEligibleIndicator self.DensityEligibleIndicator_nsprefix_ = None def factory(*args_, **kwargs_): @@ -14998,7 +15047,7 @@ def get_DensityEligibleIndicator(self): return self.DensityEligibleIndicator def set_DensityEligibleIndicator(self, DensityEligibleIndicator): self.DensityEligibleIndicator = DensityEligibleIndicator - def hasContent_(self): + def _hasContent(self): if ( self.FreightDensityInfo is not None or self.DensityEligibleIndicator is not None @@ -15021,17 +15070,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='F showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightShipmentInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightShipmentInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightShipmentInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightShipmentInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightShipmentInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightShipmentInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightShipmentInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightShipmentInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -15049,14 +15098,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'FreightDensityInfo': obj_ = FreightDensityInfoType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -15084,9 +15133,9 @@ def __init__(self, Quantity=None, Type=None, Dimensions=None, gds_collector_=Non self.Quantity = Quantity self.Quantity_nsprefix_ = None self.Type = Type - self.Type_nsprefix_ = None + self.Type_nsprefix_ = "ship" self.Dimensions = Dimensions - self.Dimensions_nsprefix_ = None + self.Dimensions_nsprefix_ = "ship" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -15114,7 +15163,7 @@ def get_Dimensions(self): return self.Dimensions def set_Dimensions(self, Dimensions): self.Dimensions = Dimensions - def hasContent_(self): + def _hasContent(self): if ( self.Quantity is not None or self.Type is not None or @@ -15138,17 +15187,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='H showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HandlingUnitsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HandlingUnitsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HandlingUnitsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HandlingUnitsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HandlingUnitsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HandlingUnitsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HandlingUnitsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HandlingUnitsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -15169,14 +15218,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Quantity': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Quantity') @@ -15209,11 +15258,11 @@ def __init__(self, Quantity=None, Type=None, Dimensions=None, AdjustedHeight=Non self.Quantity = Quantity self.Quantity_nsprefix_ = None self.Type = Type - self.Type_nsprefix_ = None + self.Type_nsprefix_ = "ship" self.Dimensions = Dimensions - self.Dimensions_nsprefix_ = None + self.Dimensions_nsprefix_ = "ship" self.AdjustedHeight = AdjustedHeight - self.AdjustedHeight_nsprefix_ = None + self.AdjustedHeight_nsprefix_ = "ship" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -15245,7 +15294,7 @@ def get_AdjustedHeight(self): return self.AdjustedHeight def set_AdjustedHeight(self, AdjustedHeight): self.AdjustedHeight = AdjustedHeight - def hasContent_(self): + def _hasContent(self): if ( self.Quantity is not None or self.Type is not None or @@ -15270,17 +15319,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='H showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HandlingUnitsResponseType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HandlingUnitsResponseType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HandlingUnitsResponseType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HandlingUnitsResponseType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HandlingUnitsResponseType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HandlingUnitsResponseType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HandlingUnitsResponseType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HandlingUnitsResponseType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -15304,14 +15353,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Quantity': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Quantity') @@ -15347,7 +15396,7 @@ def __init__(self, UnitOfMeasurement=None, Length=None, Width=None, Height=None, self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.UnitOfMeasurement = UnitOfMeasurement - self.UnitOfMeasurement_nsprefix_ = None + self.UnitOfMeasurement_nsprefix_ = "ship" self.Length = Length self.Length_nsprefix_ = None self.Width = Width @@ -15385,7 +15434,7 @@ def get_Height(self): return self.Height def set_Height(self, Height): self.Height = Height - def hasContent_(self): + def _hasContent(self): if ( self.UnitOfMeasurement is not None or self.Length is not None or @@ -15410,17 +15459,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='H showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HandlingUnitsDimensionsType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='HandlingUnitsDimensionsType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HandlingUnitsDimensionsType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='HandlingUnitsDimensionsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HandlingUnitsDimensionsType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='HandlingUnitsDimensionsType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HandlingUnitsDimensionsType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='HandlingUnitsDimensionsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -15446,14 +15495,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'UnitOfMeasurement': obj_ = ShipUnitOfMeasurementType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -15517,7 +15566,7 @@ def get_TotalCubicFeet(self): return self.TotalCubicFeet def set_TotalCubicFeet(self, TotalCubicFeet): self.TotalCubicFeet = TotalCubicFeet - def hasContent_(self): + def _hasContent(self): if ( self.Density is not None or self.TotalCubicFeet is not None @@ -15540,17 +15589,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='F showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightDensityRateType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightDensityRateType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightDensityRateType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightDensityRateType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightDensityRateType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightDensityRateType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightDensityRateType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightDensityRateType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -15569,14 +15618,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Density': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Density') @@ -15605,12 +15654,12 @@ def __init__(self, AdjustedHeightIndicator=None, AdjustedHeight=None, HandlingUn self.AdjustedHeightIndicator = AdjustedHeightIndicator self.AdjustedHeightIndicator_nsprefix_ = None self.AdjustedHeight = AdjustedHeight - self.AdjustedHeight_nsprefix_ = None + self.AdjustedHeight_nsprefix_ = "ship" if HandlingUnits is None: self.HandlingUnits = [] else: self.HandlingUnits = HandlingUnits - self.HandlingUnits_nsprefix_ = None + self.HandlingUnits_nsprefix_ = "ship" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -15644,7 +15693,7 @@ def insert_HandlingUnits_at(self, index, value): self.HandlingUnits.insert(index, value) def replace_HandlingUnits_at(self, index, value): self.HandlingUnits[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.AdjustedHeightIndicator is not None or self.AdjustedHeight is not None or @@ -15668,17 +15717,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='F showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightDensityInfoType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FreightDensityInfoType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightDensityInfoType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='FreightDensityInfoType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightDensityInfoType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FreightDensityInfoType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightDensityInfoType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='FreightDensityInfoType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -15699,14 +15748,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AdjustedHeightIndicator': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'AdjustedHeightIndicator') @@ -15739,7 +15788,7 @@ def __init__(self, Value=None, UnitOfMeasurement=None, gds_collector_=None, **kw self.Value = Value self.Value_nsprefix_ = None self.UnitOfMeasurement = UnitOfMeasurement - self.UnitOfMeasurement_nsprefix_ = None + self.UnitOfMeasurement_nsprefix_ = "ship" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -15763,7 +15812,7 @@ def get_UnitOfMeasurement(self): return self.UnitOfMeasurement def set_UnitOfMeasurement(self, UnitOfMeasurement): self.UnitOfMeasurement = UnitOfMeasurement - def hasContent_(self): + def _hasContent(self): if ( self.Value is not None or self.UnitOfMeasurement is not None @@ -15786,17 +15835,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AdjustedHeightType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AdjustedHeightType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AdjustedHeightType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AdjustedHeightType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AdjustedHeightType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AdjustedHeightType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AdjustedHeightType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AdjustedHeightType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -15814,14 +15863,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Value': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Value') @@ -15850,7 +15899,7 @@ def __init__(self, ItemizedCharges=None, gds_collector_=None, **kwargs_): self.ItemizedCharges = [] else: self.ItemizedCharges = ItemizedCharges - self.ItemizedCharges_nsprefix_ = None + self.ItemizedCharges_nsprefix_ = "ship" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -15876,7 +15925,7 @@ def insert_ItemizedCharges_at(self, index, value): self.ItemizedCharges.insert(index, value) def replace_ItemizedCharges_at(self, index, value): self.ItemizedCharges[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.ItemizedCharges ): @@ -15898,17 +15947,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='N showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='NegotiatedChargesType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='NegotiatedChargesType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='NegotiatedChargesType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='NegotiatedChargesType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='NegotiatedChargesType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='NegotiatedChargesType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='NegotiatedChargesType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='NegotiatedChargesType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -15922,14 +15971,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ItemizedCharges': obj_ = ShipChargeType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -15999,7 +16048,7 @@ def get_UploadOnlyIndicator(self): return self.UploadOnlyIndicator def set_UploadOnlyIndicator(self, UploadOnlyIndicator): self.UploadOnlyIndicator = UploadOnlyIndicator - def hasContent_(self): + def _hasContent(self): if ( self.Name is not None or self.Title is not None or @@ -16026,17 +16075,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DGSignatoryInfoType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DGSignatoryInfoType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DGSignatoryInfoType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DGSignatoryInfoType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DGSignatoryInfoType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DGSignatoryInfoType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DGSignatoryInfoType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DGSignatoryInfoType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -16071,14 +16120,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Name': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Name') @@ -16158,7 +16207,7 @@ def insert_Property_at(self, index, value): self.Property.insert(index, value) def replace_Property_at(self, index, value): self.Property[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Property ): @@ -16180,17 +16229,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ClientInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ClientInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ClientInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ClientInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ClientInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ClientInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ClientInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ClientInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -16204,14 +16253,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Property': obj_ = PropertyType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -16238,7 +16287,7 @@ def __init__(self, RequestOption=None, SubVersion=None, TransactionReference=Non self.SubVersion = SubVersion self.SubVersion_nsprefix_ = None self.TransactionReference = TransactionReference - self.TransactionReference_nsprefix_ = None + self.TransactionReference_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -16272,7 +16321,7 @@ def get_TransactionReference(self): return self.TransactionReference def set_TransactionReference(self, TransactionReference): self.TransactionReference = TransactionReference - def hasContent_(self): + def _hasContent(self): if ( self.RequestOption or self.SubVersion is not None or @@ -16296,17 +16345,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='RequestType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='RequestType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='RequestType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='RequestType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -16328,14 +16377,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'RequestOption': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'RequestOption') @@ -16393,7 +16442,7 @@ def get_TransactionIdentifier(self): return self.TransactionIdentifier def set_TransactionIdentifier(self, TransactionIdentifier): self.TransactionIdentifier = TransactionIdentifier - def hasContent_(self): + def _hasContent(self): if ( self.CustomerContext is not None or self.TransactionIdentifier is not None @@ -16416,17 +16465,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionReferenceType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionReferenceType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionReferenceType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionReferenceType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='TransactionReferenceType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='TransactionReferenceType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='TransactionReferenceType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='TransactionReferenceType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -16445,14 +16494,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CustomerContext': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CustomerContext') @@ -16479,19 +16528,19 @@ def __init__(self, ResponseStatus=None, Alert=None, AlertDetail=None, Transactio self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.ResponseStatus = ResponseStatus - self.ResponseStatus_nsprefix_ = None + self.ResponseStatus_nsprefix_ = "common" if Alert is None: self.Alert = [] else: self.Alert = Alert - self.Alert_nsprefix_ = None + self.Alert_nsprefix_ = "common" if AlertDetail is None: self.AlertDetail = [] else: self.AlertDetail = AlertDetail - self.AlertDetail_nsprefix_ = None + self.AlertDetail_nsprefix_ = "common" self.TransactionReference = TransactionReference - self.TransactionReference_nsprefix_ = None + self.TransactionReference_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -16535,7 +16584,7 @@ def get_TransactionReference(self): return self.TransactionReference def set_TransactionReference(self, TransactionReference): self.TransactionReference = TransactionReference - def hasContent_(self): + def _hasContent(self): if ( self.ResponseStatus is not None or self.Alert or @@ -16560,17 +16609,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ResponseType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ResponseType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ResponseType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ResponseType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -16593,14 +16642,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ResponseStatus': obj_ = CodeDescriptionType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -16661,7 +16710,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -16684,17 +16733,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeDescriptionType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeDescriptionType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeDescriptionType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeDescriptionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='CodeDescriptionType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='CodeDescriptionType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='CodeDescriptionType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='CodeDescriptionType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -16713,14 +16762,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -16751,7 +16800,7 @@ def __init__(self, Code=None, Description=None, ElementLevelInformation=None, gd self.Description = Description self.Description_nsprefix_ = None self.ElementLevelInformation = ElementLevelInformation - self.ElementLevelInformation_nsprefix_ = None + self.ElementLevelInformation_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -16779,7 +16828,7 @@ def get_ElementLevelInformation(self): return self.ElementLevelInformation def set_ElementLevelInformation(self, ElementLevelInformation): self.ElementLevelInformation = ElementLevelInformation - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None or @@ -16803,17 +16852,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DetailType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DetailType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DetailType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DetailType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='DetailType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='DetailType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='DetailType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='DetailType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -16835,14 +16884,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -16879,7 +16928,7 @@ def __init__(self, Level=None, ElementIdentifier=None, gds_collector_=None, **kw self.ElementIdentifier = [] else: self.ElementIdentifier = ElementIdentifier - self.ElementIdentifier_nsprefix_ = None + self.ElementIdentifier_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -16909,7 +16958,7 @@ def insert_ElementIdentifier_at(self, index, value): self.ElementIdentifier.insert(index, value) def replace_ElementIdentifier_at(self, index, value): self.ElementIdentifier[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Level is not None or self.ElementIdentifier @@ -16932,17 +16981,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementLevelInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementLevelInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementLevelInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementLevelInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementLevelInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementLevelInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementLevelInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementLevelInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -16960,14 +17009,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Level': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Level') @@ -17019,7 +17068,7 @@ def get_Value(self): return self.Value def set_Value(self, Value): self.Value = Value - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Value is not None @@ -17042,17 +17091,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementIdentifierType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementIdentifierType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementIdentifierType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementIdentifierType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementIdentifierType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementIdentifierType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementIdentifierType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementIdentifierType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -17071,14 +17120,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -17110,11 +17159,11 @@ def __init__(self, FormType=None, UserCreatedForm=None, CN22Form=None, UPSPremiu self.FormType = FormType self.FormType_nsprefix_ = None self.UserCreatedForm = UserCreatedForm - self.UserCreatedForm_nsprefix_ = None + self.UserCreatedForm_nsprefix_ = "IF" self.CN22Form = CN22Form - self.CN22Form_nsprefix_ = None + self.CN22Form_nsprefix_ = "IF" self.UPSPremiumCareForm = UPSPremiumCareForm - self.UPSPremiumCareForm_nsprefix_ = None + self.UPSPremiumCareForm_nsprefix_ = "IF" self.AdditionalDocumentIndicator = AdditionalDocumentIndicator self.AdditionalDocumentIndicator_nsprefix_ = None self.FormGroupIdName = FormGroupIdName @@ -17122,14 +17171,14 @@ def __init__(self, FormType=None, UserCreatedForm=None, CN22Form=None, UPSPremiu self.SEDFilingOption = SEDFilingOption self.SEDFilingOption_nsprefix_ = None self.EEIFilingOption = EEIFilingOption - self.EEIFilingOption_nsprefix_ = None + self.EEIFilingOption_nsprefix_ = "IF" self.Contacts = Contacts - self.Contacts_nsprefix_ = None + self.Contacts_nsprefix_ = "IF" if Product is None: self.Product = [] else: self.Product = Product - self.Product_nsprefix_ = None + self.Product_nsprefix_ = "IF" self.InvoiceNumber = InvoiceNumber self.InvoiceNumber_nsprefix_ = None self.InvoiceDate = InvoiceDate @@ -17145,17 +17194,17 @@ def __init__(self, FormType=None, UserCreatedForm=None, CN22Form=None, UPSPremiu self.DeclarationStatement = DeclarationStatement self.DeclarationStatement_nsprefix_ = None self.Discount = Discount - self.Discount_nsprefix_ = None + self.Discount_nsprefix_ = "IF" self.FreightCharges = FreightCharges - self.FreightCharges_nsprefix_ = None + self.FreightCharges_nsprefix_ = "IF" self.InsuranceCharges = InsuranceCharges - self.InsuranceCharges_nsprefix_ = None + self.InsuranceCharges_nsprefix_ = "IF" self.OtherCharges = OtherCharges - self.OtherCharges_nsprefix_ = None + self.OtherCharges_nsprefix_ = "IF" self.CurrencyCode = CurrencyCode self.CurrencyCode_nsprefix_ = None self.BlanketPeriod = BlanketPeriod - self.BlanketPeriod_nsprefix_ = None + self.BlanketPeriod_nsprefix_ = "IF" self.ExportDate = ExportDate self.ExportDate_nsprefix_ = None self.ExportingCarrier = ExportingCarrier @@ -17185,7 +17234,7 @@ def __init__(self, FormType=None, UserCreatedForm=None, CN22Form=None, UPSPremiu self.ContainerizedIndicator = ContainerizedIndicator self.ContainerizedIndicator_nsprefix_ = None self.License = License - self.License_nsprefix_ = None + self.License_nsprefix_ = "IF" self.ECCNNumber = ECCNNumber self.ECCNNumber_nsprefix_ = None self.OverridePaperlessIndicator = OverridePaperlessIndicator @@ -17395,7 +17444,7 @@ def get_HazardousMaterialsIndicator(self): return self.HazardousMaterialsIndicator def set_HazardousMaterialsIndicator(self, HazardousMaterialsIndicator): self.HazardousMaterialsIndicator = HazardousMaterialsIndicator - def hasContent_(self): + def _hasContent(self): if ( self.FormType or self.UserCreatedForm is not None or @@ -17459,17 +17508,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='InternationalFormType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='InternationalFormType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='InternationalFormType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='InternationalFormType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='InternationalFormType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='InternationalFormType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='InternationalFormType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='InternationalFormType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -17640,14 +17689,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'FormType': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'FormType') @@ -17916,7 +17965,7 @@ def __init__(self, ShipmentDate=None, PageSize=None, PrintType=None, NumOfCopies self.NumOfCopies = NumOfCopies self.NumOfCopies_nsprefix_ = None self.LanguageForUPSPremiumCare = LanguageForUPSPremiumCare - self.LanguageForUPSPremiumCare_nsprefix_ = None + self.LanguageForUPSPremiumCare_nsprefix_ = "IF" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -17952,7 +18001,7 @@ def get_LanguageForUPSPremiumCare(self): return self.LanguageForUPSPremiumCare def set_LanguageForUPSPremiumCare(self, LanguageForUPSPremiumCare): self.LanguageForUPSPremiumCare = LanguageForUPSPremiumCare - def hasContent_(self): + def _hasContent(self): if ( self.ShipmentDate is not None or self.PageSize is not None or @@ -17978,17 +18027,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UPSPremiumCareFormType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UPSPremiumCareFormType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UPSPremiumCareFormType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UPSPremiumCareFormType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='UPSPremiumCareFormType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='UPSPremiumCareFormType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='UPSPremiumCareFormType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='UPSPremiumCareFormType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -18018,14 +18067,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ShipmentDate': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ShipmentDate') @@ -18098,7 +18147,7 @@ def insert_Language_at(self, index, value): self.Language.insert(index, value) def replace_Language_at(self, index, value): self.Language[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Language ): @@ -18120,17 +18169,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LanguageForUPSPremiumCareType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LanguageForUPSPremiumCareType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LanguageForUPSPremiumCareType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LanguageForUPSPremiumCareType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='LanguageForUPSPremiumCareType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='LanguageForUPSPremiumCareType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='LanguageForUPSPremiumCareType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='LanguageForUPSPremiumCareType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -18145,14 +18194,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Language': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Language') @@ -18202,7 +18251,7 @@ def insert_DocumentID_at(self, index, value): self.DocumentID.insert(index, value) def replace_DocumentID_at(self, index, value): self.DocumentID[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.DocumentID ): @@ -18224,17 +18273,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UserCreatedFormType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UserCreatedFormType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UserCreatedFormType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UserCreatedFormType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='UserCreatedFormType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='UserCreatedFormType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='UserCreatedFormType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='UserCreatedFormType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -18249,14 +18298,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'DocumentID': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'DocumentID') @@ -18292,7 +18341,7 @@ def __init__(self, LabelSize=None, PrintsPerPage=None, LabelPrintType=None, CN22 self.CN22Content = [] else: self.CN22Content = CN22Content - self.CN22Content_nsprefix_ = None + self.CN22Content_nsprefix_ = "IF" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -18342,7 +18391,7 @@ def insert_CN22Content_at(self, index, value): self.CN22Content.insert(index, value) def replace_CN22Content_at(self, index, value): self.CN22Content[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.LabelSize is not None or self.PrintsPerPage is not None or @@ -18370,17 +18419,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CN22FormType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CN22FormType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CN22FormType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CN22FormType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='CN22FormType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='CN22FormType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='CN22FormType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='CN22FormType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -18418,14 +18467,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'LabelSize': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'LabelSize') @@ -18485,7 +18534,7 @@ def __init__(self, CN22ContentQuantity=None, CN22ContentDescription=None, CN22Co self.CN22ContentDescription = CN22ContentDescription self.CN22ContentDescription_nsprefix_ = None self.CN22ContentWeight = CN22ContentWeight - self.CN22ContentWeight_nsprefix_ = None + self.CN22ContentWeight_nsprefix_ = "IF" self.CN22ContentTotalValue = CN22ContentTotalValue self.CN22ContentTotalValue_nsprefix_ = None self.CN22ContentCurrencyCode = CN22ContentCurrencyCode @@ -18537,7 +18586,7 @@ def get_CN22ContentTariffNumber(self): return self.CN22ContentTariffNumber def set_CN22ContentTariffNumber(self, CN22ContentTariffNumber): self.CN22ContentTariffNumber = CN22ContentTariffNumber - def hasContent_(self): + def _hasContent(self): if ( self.CN22ContentQuantity is not None or self.CN22ContentDescription is not None or @@ -18565,17 +18614,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CN22ContentType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CN22ContentType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CN22ContentType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CN22ContentType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='CN22ContentType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='CN22ContentType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='CN22ContentType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='CN22ContentType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -18613,14 +18662,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CN22ContentQuantity': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CN22ContentQuantity') @@ -18676,15 +18725,15 @@ def __init__(self, ForwardAgent=None, UltimateConsignee=None, IntermediateConsig self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.ForwardAgent = ForwardAgent - self.ForwardAgent_nsprefix_ = None + self.ForwardAgent_nsprefix_ = "IF" self.UltimateConsignee = UltimateConsignee - self.UltimateConsignee_nsprefix_ = None + self.UltimateConsignee_nsprefix_ = "IF" self.IntermediateConsignee = IntermediateConsignee - self.IntermediateConsignee_nsprefix_ = None + self.IntermediateConsignee_nsprefix_ = "IF" self.Producer = Producer - self.Producer_nsprefix_ = None + self.Producer_nsprefix_ = "IF" self.SoldTo = SoldTo - self.SoldTo_nsprefix_ = None + self.SoldTo_nsprefix_ = "IF" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -18720,7 +18769,7 @@ def get_SoldTo(self): return self.SoldTo def set_SoldTo(self, SoldTo): self.SoldTo = SoldTo - def hasContent_(self): + def _hasContent(self): if ( self.ForwardAgent is not None or self.UltimateConsignee is not None or @@ -18746,17 +18795,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ContactType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ContactType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ContactType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ContactType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='ContactType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='ContactType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='ContactType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='ContactType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -18782,14 +18831,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ForwardAgent': obj_ = ForwardAgentType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -18833,7 +18882,7 @@ def __init__(self, CompanyName=None, TaxIdentificationNumber=None, Address=None, self.TaxIdentificationNumber = TaxIdentificationNumber self.TaxIdentificationNumber_nsprefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "IF" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -18861,7 +18910,7 @@ def get_Address(self): return self.Address def set_Address(self, Address): self.Address = Address - def hasContent_(self): + def _hasContent(self): if ( self.CompanyName is not None or self.TaxIdentificationNumber is not None or @@ -18885,17 +18934,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ForwardAgentType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ForwardAgentType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ForwardAgentType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ForwardAgentType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='ForwardAgentType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='ForwardAgentType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='ForwardAgentType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='ForwardAgentType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -18917,14 +18966,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CompanyName': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CompanyName') @@ -19015,7 +19064,7 @@ def get_CountryCode(self): return self.CountryCode def set_CountryCode(self, CountryCode): self.CountryCode = CountryCode - def hasContent_(self): + def _hasContent(self): if ( self.AddressLine or self.City is not None or @@ -19042,17 +19091,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='AddressType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='AddressType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='AddressType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='AddressType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -19087,14 +19136,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AddressLine': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'AddressLine') @@ -19147,9 +19196,9 @@ def __init__(self, CompanyName=None, Address=None, UltimateConsigneeType_member= self.CompanyName = CompanyName self.CompanyName_nsprefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "IF" self.UltimateConsigneeType = UltimateConsigneeType_member - self.UltimateConsigneeType_nsprefix_ = None + self.UltimateConsigneeType_nsprefix_ = "IF" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -19177,7 +19226,7 @@ def get_UltimateConsigneeType(self): return self.UltimateConsigneeType def set_UltimateConsigneeType(self, UltimateConsigneeType): self.UltimateConsigneeType = UltimateConsigneeType - def hasContent_(self): + def _hasContent(self): if ( self.CompanyName is not None or self.Address is not None or @@ -19201,17 +19250,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UltimateConsigneeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UltimateConsigneeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UltimateConsigneeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UltimateConsigneeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='UltimateConsigneeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='UltimateConsigneeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='UltimateConsigneeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='UltimateConsigneeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -19232,14 +19281,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CompanyName': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CompanyName') @@ -19272,7 +19321,7 @@ def __init__(self, CompanyName=None, Address=None, gds_collector_=None, **kwargs self.CompanyName = CompanyName self.CompanyName_nsprefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "IF" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -19296,7 +19345,7 @@ def get_Address(self): return self.Address def set_Address(self, Address): self.Address = Address - def hasContent_(self): + def _hasContent(self): if ( self.CompanyName is not None or self.Address is not None @@ -19319,17 +19368,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='IntermediateConsigneeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='IntermediateConsigneeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='IntermediateConsigneeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='IntermediateConsigneeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='IntermediateConsigneeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='IntermediateConsigneeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='IntermediateConsigneeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='IntermediateConsigneeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -19347,14 +19396,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CompanyName': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CompanyName') @@ -19386,11 +19435,11 @@ def __init__(self, Option=None, CompanyName=None, TaxIdentificationNumber=None, self.TaxIdentificationNumber = TaxIdentificationNumber self.TaxIdentificationNumber_nsprefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "IF" self.AttentionName = AttentionName self.AttentionName_nsprefix_ = None self.Phone = Phone - self.Phone_nsprefix_ = None + self.Phone_nsprefix_ = "IF" self.EMailAddress = EMailAddress self.EMailAddress_nsprefix_ = None def factory(*args_, **kwargs_): @@ -19436,7 +19485,7 @@ def get_EMailAddress(self): return self.EMailAddress def set_EMailAddress(self, EMailAddress): self.EMailAddress = EMailAddress - def hasContent_(self): + def _hasContent(self): if ( self.Option is not None or self.CompanyName is not None or @@ -19464,17 +19513,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ProducerType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ProducerType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ProducerType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ProducerType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='ProducerType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='ProducerType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='ProducerType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='ProducerType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -19511,14 +19560,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Option': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Option') @@ -19578,7 +19627,7 @@ def __init__(self, Description=None, Unit=None, CommodityCode=None, PartNumber=N self.Description = Description self.Description_nsprefix_ = None self.Unit = Unit - self.Unit_nsprefix_ = None + self.Unit_nsprefix_ = "IF" self.CommodityCode = CommodityCode self.CommodityCode_nsprefix_ = None self.PartNumber = PartNumber @@ -19590,7 +19639,7 @@ def __init__(self, Description=None, Unit=None, CommodityCode=None, PartNumber=N self.NetCostCode = NetCostCode self.NetCostCode_nsprefix_ = None self.NetCostDateRange = NetCostDateRange - self.NetCostDateRange_nsprefix_ = None + self.NetCostDateRange_nsprefix_ = "IF" self.PreferenceCriteria = PreferenceCriteria self.PreferenceCriteria_nsprefix_ = None self.ProducerInfo = ProducerInfo @@ -19600,23 +19649,23 @@ def __init__(self, Description=None, Unit=None, CommodityCode=None, PartNumber=N self.NumberOfPackagesPerCommodity = NumberOfPackagesPerCommodity self.NumberOfPackagesPerCommodity_nsprefix_ = None self.ProductWeight = ProductWeight - self.ProductWeight_nsprefix_ = None + self.ProductWeight_nsprefix_ = "IF" self.VehicleID = VehicleID self.VehicleID_nsprefix_ = None self.ScheduleB = ScheduleB - self.ScheduleB_nsprefix_ = None + self.ScheduleB_nsprefix_ = "IF" self.ExportType = ExportType self.ExportType_nsprefix_ = None self.SEDTotalValue = SEDTotalValue self.SEDTotalValue_nsprefix_ = None self.ExcludeFromForm = ExcludeFromForm - self.ExcludeFromForm_nsprefix_ = None + self.ExcludeFromForm_nsprefix_ = "IF" self.ProductCurrencyCode = ProductCurrencyCode self.ProductCurrencyCode_nsprefix_ = None self.PackingListInfo = PackingListInfo - self.PackingListInfo_nsprefix_ = None + self.PackingListInfo_nsprefix_ = "IF" self.EEIInformation = EEIInformation - self.EEIInformation_nsprefix_ = None + self.EEIInformation_nsprefix_ = "IF" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -19722,7 +19771,7 @@ def get_EEIInformation(self): return self.EEIInformation def set_EEIInformation(self, EEIInformation): self.EEIInformation = EEIInformation - def hasContent_(self): + def _hasContent(self): if ( self.Description or self.Unit is not None or @@ -19764,17 +19813,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ProductType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ProductType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ProductType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ProductType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='ProductType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='ProductType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='ProductType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='ProductType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -19862,14 +19911,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Description': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Description') @@ -20032,7 +20081,7 @@ def insert_FormType_at(self, index, value): self.FormType.insert(index, value) def replace_FormType_at(self, index, value): self.FormType[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.FormType ): @@ -20054,17 +20103,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ExcludeFromFormType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ExcludeFromFormType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ExcludeFromFormType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ExcludeFromFormType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='ExcludeFromFormType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='ExcludeFromFormType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='ExcludeFromFormType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='ExcludeFromFormType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -20079,14 +20128,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'FormType': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'FormType') @@ -20109,7 +20158,7 @@ def __init__(self, Number=None, UnitOfMeasurement=None, Value=None, gds_collecto self.Number = Number self.Number_nsprefix_ = None self.UnitOfMeasurement = UnitOfMeasurement - self.UnitOfMeasurement_nsprefix_ = None + self.UnitOfMeasurement_nsprefix_ = "IF" self.Value = Value self.Value_nsprefix_ = None def factory(*args_, **kwargs_): @@ -20139,7 +20188,7 @@ def get_Value(self): return self.Value def set_Value(self, Value): self.Value = Value - def hasContent_(self): + def _hasContent(self): if ( self.Number is not None or self.UnitOfMeasurement is not None or @@ -20163,17 +20212,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UnitType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UnitType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UnitType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UnitType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='UnitType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='UnitType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='UnitType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='UnitType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -20195,14 +20244,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Number': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Number') @@ -20237,7 +20286,7 @@ def __init__(self, PackageAssociated=None, gds_collector_=None, **kwargs_): self.PackageAssociated = [] else: self.PackageAssociated = PackageAssociated - self.PackageAssociated_nsprefix_ = None + self.PackageAssociated_nsprefix_ = "IF" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -20263,7 +20312,7 @@ def insert_PackageAssociated_at(self, index, value): self.PackageAssociated.insert(index, value) def replace_PackageAssociated_at(self, index, value): self.PackageAssociated[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.PackageAssociated ): @@ -20285,17 +20334,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackingListInfoType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackingListInfoType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackingListInfoType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackingListInfoType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='PackingListInfoType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='PackingListInfoType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='PackingListInfoType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='PackingListInfoType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -20309,14 +20358,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PackageAssociated': obj_ = PackageAssociatedType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -20362,7 +20411,7 @@ def get_ProductAmount(self): return self.ProductAmount def set_ProductAmount(self, ProductAmount): self.ProductAmount = ProductAmount - def hasContent_(self): + def _hasContent(self): if ( self.PackageNumber is not None or self.ProductAmount is not None @@ -20385,17 +20434,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageAssociatedType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageAssociatedType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageAssociatedType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageAssociatedType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='PackageAssociatedType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='PackageAssociatedType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='PackageAssociatedType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='PackageAssociatedType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -20414,14 +20463,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PackageNumber': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'PackageNumber') @@ -20474,7 +20523,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -20497,17 +20546,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UnitOfMeasurementType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UnitOfMeasurementType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UnitOfMeasurementType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UnitOfMeasurementType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='UnitOfMeasurementType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='UnitOfMeasurementType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='UnitOfMeasurementType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='UnitOfMeasurementType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -20526,14 +20575,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -20586,7 +20635,7 @@ def get_EndDate(self): return self.EndDate def set_EndDate(self, EndDate): self.EndDate = EndDate - def hasContent_(self): + def _hasContent(self): if ( self.BeginDate is not None or self.EndDate is not None @@ -20609,17 +20658,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='NetCostDateType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='NetCostDateType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='NetCostDateType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='NetCostDateType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='NetCostDateType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='NetCostDateType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='NetCostDateType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='NetCostDateType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -20638,14 +20687,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'BeginDate': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'BeginDate') @@ -20672,7 +20721,7 @@ def __init__(self, UnitOfMeasurement=None, Weight=None, gds_collector_=None, **k self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.UnitOfMeasurement = UnitOfMeasurement - self.UnitOfMeasurement_nsprefix_ = None + self.UnitOfMeasurement_nsprefix_ = "IF" self.Weight = Weight self.Weight_nsprefix_ = None def factory(*args_, **kwargs_): @@ -20698,7 +20747,7 @@ def get_Weight(self): return self.Weight def set_Weight(self, Weight): self.Weight = Weight - def hasContent_(self): + def _hasContent(self): if ( self.UnitOfMeasurement is not None or self.Weight is not None @@ -20721,17 +20770,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ProductWeightType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ProductWeightType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ProductWeightType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ProductWeightType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='ProductWeightType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='ProductWeightType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='ProductWeightType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='ProductWeightType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -20749,14 +20798,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'UnitOfMeasurement': obj_ = UnitOfMeasurementType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -20792,7 +20841,7 @@ def __init__(self, Number=None, Quantity=None, UnitOfMeasurement=None, gds_colle self.UnitOfMeasurement = [] else: self.UnitOfMeasurement = UnitOfMeasurement - self.UnitOfMeasurement_nsprefix_ = None + self.UnitOfMeasurement_nsprefix_ = "IF" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -20832,7 +20881,7 @@ def insert_UnitOfMeasurement_at(self, index, value): self.UnitOfMeasurement.insert(index, value) def replace_UnitOfMeasurement_at(self, index, value): self.UnitOfMeasurement[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Number is not None or self.Quantity or @@ -20856,17 +20905,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ScheduleBType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ScheduleBType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ScheduleBType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ScheduleBType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='ScheduleBType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='ScheduleBType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='ScheduleBType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='ScheduleBType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -20888,14 +20937,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Number': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Number') @@ -20947,7 +20996,7 @@ def get_MonetaryValue(self): return self.MonetaryValue def set_MonetaryValue(self, MonetaryValue): self.MonetaryValue = MonetaryValue - def hasContent_(self): + def _hasContent(self): if ( self.MonetaryValue is not None ): @@ -20969,17 +21018,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='IFChargesType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='IFChargesType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='IFChargesType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='IFChargesType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='IFChargesType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='IFChargesType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='IFChargesType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='IFChargesType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -20994,14 +21043,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'MonetaryValue': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'MonetaryValue') @@ -21048,7 +21097,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.MonetaryValue is not None or self.Description is not None @@ -21071,17 +21120,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='OtherChargesType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='OtherChargesType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='OtherChargesType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='OtherChargesType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='OtherChargesType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='OtherChargesType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='OtherChargesType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='OtherChargesType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -21100,14 +21149,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'MonetaryValue': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'MonetaryValue') @@ -21160,7 +21209,7 @@ def get_EndDate(self): return self.EndDate def set_EndDate(self, EndDate): self.EndDate = EndDate - def hasContent_(self): + def _hasContent(self): if ( self.BeginDate is not None or self.EndDate is not None @@ -21183,17 +21232,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='BlanketPeriodType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='BlanketPeriodType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='BlanketPeriodType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='BlanketPeriodType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='BlanketPeriodType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='BlanketPeriodType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='BlanketPeriodType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='BlanketPeriodType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -21212,14 +21261,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'BeginDate': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'BeginDate') @@ -21278,7 +21327,7 @@ def get_ExceptionCode(self): return self.ExceptionCode def set_ExceptionCode(self, ExceptionCode): self.ExceptionCode = ExceptionCode - def hasContent_(self): + def _hasContent(self): if ( self.Number is not None or self.Date is not None or @@ -21302,17 +21351,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LicenseType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LicenseType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LicenseType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LicenseType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='LicenseType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='LicenseType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='LicenseType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='LicenseType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -21335,14 +21384,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Number': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Number') @@ -21381,11 +21430,11 @@ def __init__(self, Name=None, AttentionName=None, TaxIdentificationNumber=None, self.TaxIdentificationNumber = TaxIdentificationNumber self.TaxIdentificationNumber_nsprefix_ = None self.Phone = Phone - self.Phone_nsprefix_ = None + self.Phone_nsprefix_ = "IF" self.Option = Option self.Option_nsprefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "IF" self.EMailAddress = EMailAddress self.EMailAddress_nsprefix_ = None def factory(*args_, **kwargs_): @@ -21431,7 +21480,7 @@ def get_EMailAddress(self): return self.EMailAddress def set_EMailAddress(self, EMailAddress): self.EMailAddress = EMailAddress - def hasContent_(self): + def _hasContent(self): if ( self.Name is not None or self.AttentionName is not None or @@ -21459,17 +21508,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SoldToType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SoldToType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='SoldToType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='SoldToType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='SoldToType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='SoldToType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='SoldToType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='SoldToType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -21506,14 +21555,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Name': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Name') @@ -21594,7 +21643,7 @@ def get_Extension(self): return self.Extension def set_Extension(self, Extension): self.Extension = Extension - def hasContent_(self): + def _hasContent(self): if ( self.Number is not None or self.Extension is not None @@ -21617,17 +21666,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PhoneType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PhoneType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PhoneType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PhoneType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='PhoneType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='PhoneType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='PhoneType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='PhoneType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -21646,14 +21695,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Number': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Number') @@ -21690,7 +21739,7 @@ def __init__(self, ITARExemptionNumber=None, USMLCategoryCode=None, EligiblePart self.Quantity = Quantity self.Quantity_nsprefix_ = None self.UnitOfMeasurement = UnitOfMeasurement - self.UnitOfMeasurement_nsprefix_ = None + self.UnitOfMeasurement_nsprefix_ = "IF" self.SignificantMilitaryEquipmentIndicator = SignificantMilitaryEquipmentIndicator self.SignificantMilitaryEquipmentIndicator_nsprefix_ = None self.ACMNumber = ACMNumber @@ -21742,7 +21791,7 @@ def get_ACMNumber(self): return self.ACMNumber def set_ACMNumber(self, ACMNumber): self.ACMNumber = ACMNumber - def hasContent_(self): + def _hasContent(self): if ( self.ITARExemptionNumber is not None or self.USMLCategoryCode is not None or @@ -21771,17 +21820,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DDTCInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DDTCInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DDTCInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DDTCInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='DDTCInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='DDTCInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='DDTCInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='DDTCInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -21823,14 +21872,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ITARExemptionNumber': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ITARExemptionNumber') @@ -21930,7 +21979,7 @@ def get_ECCNNumber(self): return self.ECCNNumber def set_ECCNNumber(self, ECCNNumber): self.ECCNNumber = ECCNNumber - def hasContent_(self): + def _hasContent(self): if ( self.Number is not None or self.Code is not None or @@ -21955,17 +22004,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='EEILicenseType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='EEILicenseType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='EEILicenseType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='EEILicenseType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='EEILicenseType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='EEILicenseType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='EEILicenseType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='EEILicenseType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -21992,14 +22041,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Number': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Number') @@ -22044,9 +22093,9 @@ def __init__(self, Code=None, EMailAddress=None, Description=None, UPSFiled=None self.Description = Description self.Description_nsprefix_ = None self.UPSFiled = UPSFiled - self.UPSFiled_nsprefix_ = None + self.UPSFiled_nsprefix_ = "IF" self.ShipperFiled = ShipperFiled - self.ShipperFiled_nsprefix_ = None + self.ShipperFiled_nsprefix_ = "IF" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -22082,7 +22131,7 @@ def get_ShipperFiled(self): return self.ShipperFiled def set_ShipperFiled(self, ShipperFiled): self.ShipperFiled = ShipperFiled - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.EMailAddress is not None or @@ -22108,17 +22157,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='EEIFilingOptionType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='EEIFilingOptionType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='EEIFilingOptionType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='EEIFilingOptionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='EEIFilingOptionType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='EEIFilingOptionType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='EEIFilingOptionType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='EEIFilingOptionType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -22147,14 +22196,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -22197,7 +22246,7 @@ def __init__(self, POA=None, gds_collector_=None, **kwargs_): self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.POA = POA - self.POA_nsprefix_ = None + self.POA_nsprefix_ = "IF" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -22217,7 +22266,7 @@ def get_POA(self): return self.POA def set_POA(self, POA): self.POA = POA - def hasContent_(self): + def _hasContent(self): if ( self.POA is not None ): @@ -22239,17 +22288,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UPSFiledType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UPSFiledType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UPSFiledType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UPSFiledType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='UPSFiledType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='UPSFiledType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='UPSFiledType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='UPSFiledType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -22263,14 +22312,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'POA': obj_ = POAType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -22334,7 +22383,7 @@ def get_EEIShipmentReferenceNumber(self): return self.EEIShipmentReferenceNumber def set_EEIShipmentReferenceNumber(self, EEIShipmentReferenceNumber): self.EEIShipmentReferenceNumber = EEIShipmentReferenceNumber - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None or @@ -22360,17 +22409,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipperFiledType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipperFiledType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipperFiledType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipperFiledType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='ShipperFiledType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='ShipperFiledType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='ShipperFiledType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='ShipperFiledType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -22401,14 +22450,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -22455,9 +22504,9 @@ def __init__(self, ExportInformation=None, License=None, DDTCInformation=None, g self.ExportInformation = ExportInformation self.ExportInformation_nsprefix_ = None self.License = License - self.License_nsprefix_ = None + self.License_nsprefix_ = "IF" self.DDTCInformation = DDTCInformation - self.DDTCInformation_nsprefix_ = None + self.DDTCInformation_nsprefix_ = "IF" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -22485,7 +22534,7 @@ def get_DDTCInformation(self): return self.DDTCInformation def set_DDTCInformation(self, DDTCInformation): self.DDTCInformation = DDTCInformation - def hasContent_(self): + def _hasContent(self): if ( self.ExportInformation is not None or self.License is not None or @@ -22509,17 +22558,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='EEIInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='EEIInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='EEIInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='EEIInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='EEIInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='EEIInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='EEIInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='EEIInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -22540,14 +22589,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ExportInformation': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ExportInformation') @@ -22604,7 +22653,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -22627,17 +22676,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='POAType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='POAType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='POAType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='POAType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='POAType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='POAType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='POAType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='POAType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -22656,14 +22705,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -22716,7 +22765,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -22739,17 +22788,17 @@ def export(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UltimateConsigneeTypeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UltimateConsigneeTypeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UltimateConsigneeTypeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UltimateConsigneeTypeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='UltimateConsigneeTypeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='IF:', name_='UltimateConsigneeTypeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='UltimateConsigneeTypeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='IF:', namespacedef_='', name_='UltimateConsigneeTypeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -22768,14 +22817,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -22801,7 +22850,7 @@ def __init__(self, SaturdayDeliveryIndicator=None, SaturdayPickupIndicator=None, self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None - super(ShipmentServiceOptionsType1, self).__init__(SaturdayDeliveryIndicator, SaturdayPickupIndicator, COD, AccessPointCOD, DeliverToAddresseeOnlyIndicator, DirectDeliveryOnlyIndicator, Notification, LabelDelivery, InternationalForms, DeliveryConfirmation, ReturnOfDocumentIndicator, ImportControlIndicator, LabelMethod, CommercialInvoiceRemovalIndicator, UPScarbonneutralIndicator, PreAlertNotification, ExchangeForwardIndicator, HoldForPickupIndicator, DropoffAtUPSFacilityIndicator, LiftGateForPickUpIndicator, LiftGateForDeliveryIndicator, SDLShipmentIndicator, EPRAReleaseCode, RestrictedArticles, InsideDelivery, ItemDisposal, **kwargs_) + super(globals().get("ShipmentServiceOptionsType1"), self).__init__(SaturdayDeliveryIndicator, SaturdayPickupIndicator, COD, AccessPointCOD, DeliverToAddresseeOnlyIndicator, DirectDeliveryOnlyIndicator, Notification, LabelDelivery, InternationalForms, DeliveryConfirmation, ReturnOfDocumentIndicator, ImportControlIndicator, LabelMethod, CommercialInvoiceRemovalIndicator, UPScarbonneutralIndicator, PreAlertNotification, ExchangeForwardIndicator, HoldForPickupIndicator, DropoffAtUPSFacilityIndicator, LiftGateForPickUpIndicator, LiftGateForDeliveryIndicator, SDLShipmentIndicator, EPRAReleaseCode, RestrictedArticles, InsideDelivery, ItemDisposal, **kwargs_) def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -22817,9 +22866,9 @@ def get_ns_prefix_(self): return self.ns_prefix_ def set_ns_prefix_(self, ns_prefix): self.ns_prefix_ = ns_prefix - def hasContent_(self): + def _hasContent(self): if ( - super(ShipmentServiceOptionsType1, self).hasContent_() + super(ShipmentServiceOptionsType1, self)._hasContent() ): return True else: @@ -22839,33 +22888,33 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentServiceOptionsType1') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentServiceOptionsType1') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentServiceOptionsType1', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentServiceOptionsType1', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentServiceOptionsType1'): - super(ShipmentServiceOptionsType1, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentServiceOptionsType1') - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentServiceOptionsType1', fromsubclass_=False, pretty_print=True): - super(ShipmentServiceOptionsType1, self).exportChildren(outfile, level, namespaceprefix_, namespacedef_, name_, True, pretty_print=pretty_print) + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentServiceOptionsType1'): + super(ShipmentServiceOptionsType1, self)._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentServiceOptionsType1') + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentServiceOptionsType1', fromsubclass_=False, pretty_print=True): + super(ShipmentServiceOptionsType1, self)._exportChildren(outfile, level, namespaceprefix_, namespacedef_, name_, True, pretty_print=pretty_print) def build(self, node, gds_collector_=None): self.gds_collector_ = gds_collector_ if SaveElementTreeNode: self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): - super(ShipmentServiceOptionsType1, self).buildAttributes(node, attrs, already_processed) - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): - super(ShipmentServiceOptionsType1, self).buildChildren(child_, node, nodeName_, True) + def _buildAttributes(self, node, attrs, already_processed): + super(ShipmentServiceOptionsType1, self)._buildAttributes(node, attrs, already_processed) + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + super(ShipmentServiceOptionsType1, self)._buildChildren(child_, node, nodeName_, True) pass # end class ShipmentServiceOptionsType1 @@ -22904,7 +22953,7 @@ def set_Key(self, Key): self.Key = Key def get_valueOf_(self): return self.valueOf_ def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_ - def hasContent_(self): + def _hasContent(self): if ( (1 if type(self.valueOf_) in [int,float] else self.valueOf_) ): @@ -22926,19 +22975,19 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PropertyType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PropertyType') + if self._hasContent(): outfile.write('>') outfile.write(self.convert_unicode(self.valueOf_)) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PropertyType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PropertyType', pretty_print=pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PropertyType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PropertyType'): if self.Key is not None and 'Key' not in already_processed: already_processed.add('Key') outfile.write(' Key=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.Key), input_name='Key')), )) - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PropertyType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PropertyType', fromsubclass_=False, pretty_print=True): pass def build(self, node, gds_collector_=None): self.gds_collector_ = gds_collector_ @@ -22946,18 +22995,18 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) self.valueOf_ = get_all_text_(node) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('Key', node) if value is not None and 'Key' not in already_processed: already_processed.add('Key') self.Key = value - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): pass # end class PropertyType @@ -22972,7 +23021,7 @@ def __init__(self, ImageFormat=None, GraphicImage=None, gds_collector_=None, **k self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None - super(ReceiptType, self).__init__(ImageFormat, GraphicImage, **kwargs_) + super(globals().get("ReceiptType"), self).__init__(ImageFormat, GraphicImage, **kwargs_) def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -22988,9 +23037,9 @@ def get_ns_prefix_(self): return self.ns_prefix_ def set_ns_prefix_(self, ns_prefix): self.ns_prefix_ = ns_prefix - def hasContent_(self): + def _hasContent(self): if ( - super(ReceiptType, self).hasContent_() + super(ReceiptType, self)._hasContent() ): return True else: @@ -23010,33 +23059,33 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ReceiptType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ReceiptType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ReceiptType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ReceiptType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ReceiptType'): - super(ReceiptType, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ReceiptType') - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ReceiptType', fromsubclass_=False, pretty_print=True): - super(ReceiptType, self).exportChildren(outfile, level, namespaceprefix_, namespacedef_, name_, True, pretty_print=pretty_print) + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ReceiptType'): + super(ReceiptType, self)._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ReceiptType') + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ReceiptType', fromsubclass_=False, pretty_print=True): + super(ReceiptType, self)._exportChildren(outfile, level, namespaceprefix_, namespacedef_, name_, True, pretty_print=pretty_print) def build(self, node, gds_collector_=None): self.gds_collector_ = gds_collector_ if SaveElementTreeNode: self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): - super(ReceiptType, self).buildAttributes(node, attrs, already_processed) - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): - super(ReceiptType, self).buildChildren(child_, node, nodeName_, True) + def _buildAttributes(self, node, attrs, already_processed): + super(ReceiptType, self)._buildAttributes(node, attrs, already_processed) + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + super(ReceiptType, self)._buildChildren(child_, node, nodeName_, True) pass # end class ReceiptType @@ -23051,7 +23100,7 @@ def __init__(self, ImageFormat=None, GraphicImage=None, GraphicImagePart=None, I self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None - super(LabelType, self).__init__(ImageFormat, GraphicImage, **kwargs_) + super(globals().get("LabelType"), self).__init__(ImageFormat, GraphicImage, **kwargs_) if GraphicImagePart is None: self.GraphicImagePart = [] else: @@ -23100,13 +23149,13 @@ def get_PDF417(self): return self.PDF417 def set_PDF417(self, PDF417): self.PDF417 = PDF417 - def hasContent_(self): + def _hasContent(self): if ( self.GraphicImagePart or self.InternationalSignatureGraphicImage is not None or self.HTMLImage is not None or self.PDF417 is not None or - super(LabelType, self).hasContent_() + super(LabelType, self)._hasContent() ): return True else: @@ -23126,18 +23175,18 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='L showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LabelType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LabelType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LabelType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LabelType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LabelType'): - super(LabelType, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LabelType') - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LabelType', fromsubclass_=False, pretty_print=True): - super(LabelType, self).exportChildren(outfile, level, namespaceprefix_, namespacedef_, name_, True, pretty_print=pretty_print) + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LabelType'): + super(LabelType, self)._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LabelType') + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='LabelType', fromsubclass_=False, pretty_print=True): + super(LabelType, self)._exportChildren(outfile, level, namespaceprefix_, namespacedef_, name_, True, pretty_print=pretty_print) if pretty_print: eol_ = '\n' else: @@ -23164,14 +23213,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): - super(LabelType, self).buildAttributes(node, attrs, already_processed) - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildAttributes(self, node, attrs, already_processed): + super(LabelType, self)._buildAttributes(node, attrs, already_processed) + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'GraphicImagePart': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'GraphicImagePart') @@ -23196,7 +23245,7 @@ def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collec value_ = self.gds_validate_string(value_, node, 'PDF417') self.PDF417 = value_ self.PDF417_nsprefix_ = child_.prefix - super(LabelType, self).buildChildren(child_, node, nodeName_, True) + super(LabelType, self)._buildChildren(child_, node, nodeName_, True) # end class LabelType @@ -23210,7 +23259,7 @@ def __init__(self, Name=None, AttentionName=None, CompanyDisplayableName=None, T self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None - super(ShipperType, self).__init__(Name, AttentionName, CompanyDisplayableName, TaxIdentificationNumber, TaxIDType, Phone, **kwargs_) + super(globals().get("ShipperType"), self).__init__(Name, AttentionName, CompanyDisplayableName, TaxIdentificationNumber, TaxIDType, Phone, **kwargs_) self.ShipperNumber = ShipperNumber self.ShipperNumber_nsprefix_ = None self.FaxNumber = FaxNumber @@ -23218,7 +23267,7 @@ def __init__(self, Name=None, AttentionName=None, CompanyDisplayableName=None, T self.EMailAddress = EMailAddress self.EMailAddress_nsprefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "ship" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -23250,13 +23299,13 @@ def get_Address(self): return self.Address def set_Address(self, Address): self.Address = Address - def hasContent_(self): + def _hasContent(self): if ( self.ShipperNumber is not None or self.FaxNumber is not None or self.EMailAddress is not None or self.Address is not None or - super(ShipperType, self).hasContent_() + super(ShipperType, self)._hasContent() ): return True else: @@ -23276,18 +23325,18 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipperType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipperType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipperType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipperType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipperType'): - super(ShipperType, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipperType') - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipperType', fromsubclass_=False, pretty_print=True): - super(ShipperType, self).exportChildren(outfile, level, namespaceprefix_, namespacedef_, name_, True, pretty_print=pretty_print) + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipperType'): + super(ShipperType, self)._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipperType') + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipperType', fromsubclass_=False, pretty_print=True): + super(ShipperType, self)._exportChildren(outfile, level, namespaceprefix_, namespacedef_, name_, True, pretty_print=pretty_print) if pretty_print: eol_ = '\n' else: @@ -23313,14 +23362,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): - super(ShipperType, self).buildAttributes(node, attrs, already_processed) - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildAttributes(self, node, attrs, already_processed): + super(ShipperType, self)._buildAttributes(node, attrs, already_processed) + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ShipperNumber': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ShipperNumber') @@ -23345,7 +23394,7 @@ def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collec obj_.build(child_, gds_collector_=gds_collector_) self.Address = obj_ obj_.original_tagname_ = 'Address' - super(ShipperType, self).buildChildren(child_, node, nodeName_, True) + super(ShipperType, self)._buildChildren(child_, node, nodeName_, True) # end class ShipperType @@ -23423,7 +23472,8 @@ def parse(inFileName, silence=False, print_warnings=True): return rootObj -def parseEtree(inFileName, silence=False, print_warnings=True): +def parseEtree(inFileName, silence=False, print_warnings=True, + mapping=None, reverse_mapping=None, nsmap=None): parser = None doc = parsexml_(inFileName, parser) gds_collector = GdsCollector_() @@ -23434,10 +23484,15 @@ def parseEtree(inFileName, silence=False, print_warnings=True): rootClass = ShipmentRequest rootObj = rootClass.factory() rootObj.build(rootNode, gds_collector_=gds_collector) + if mapping is None: + mapping = {} + if reverse_mapping is None: + reverse_mapping = {} + rootElement = rootObj.to_etree( + None, name_=rootTag, mapping_=mapping, + reverse_mapping_=reverse_mapping, nsmap_=nsmap) + reverse_node_mapping = rootObj.gds_reverse_node_mapping(mapping) # Enable Python to collect the space used by the DOM. - mapping = {} - rootElement = rootObj.to_etree(None, name_=rootTag, mapping_=mapping) - reverse_mapping = rootObj.gds_reverse_node_mapping(mapping) if not SaveElementTreeNode: doc = None rootNode = None @@ -23454,7 +23509,7 @@ def parseEtree(inFileName, silence=False, print_warnings=True): len(gds_collector.get_messages()), )) gds_collector.write_messages(sys.stderr) sys.stderr.write(separator) - return rootObj, rootElement, mapping, reverse_mapping + return rootObj, rootElement, mapping, reverse_node_mapping def parseString(inString, silence=False, print_warnings=True): @@ -23538,6 +23593,443 @@ def main(): RenameMappings_ = { } +# +# Mapping of namespaces to types defined in them +# and the file in which each is defined. +# simpleTypes are marked "ST" and complexTypes "CT". +NamespaceToDefMappings_ = {'http://www.ups.com/XMLSchema/XOLTWS/Common/v1.0': [('ClientInformationType', + './schemas/common.xsd', + 'CT'), + ('RequestType', + './schemas/common.xsd', + 'CT'), + ('TransactionReferenceType', + './schemas/common.xsd', + 'CT'), + ('ResponseType', + './schemas/common.xsd', + 'CT'), + ('CodeDescriptionType', + './schemas/common.xsd', + 'CT'), + ('DetailType', + './schemas/common.xsd', + 'CT'), + ('ElementLevelInformationType', + './schemas/common.xsd', + 'CT'), + ('ElementIdentifierType', + './schemas/common.xsd', + 'CT')], + 'http://www.ups.com/XMLSchema/XOLTWS/IF/v1.0': [('InternationalFormType', + './schemas/IFWS.xsd', + 'CT'), + ('UPSPremiumCareFormType', + './schemas/IFWS.xsd', + 'CT'), + ('LanguageForUPSPremiumCareType', + './schemas/IFWS.xsd', + 'CT'), + ('UserCreatedFormType', + './schemas/IFWS.xsd', + 'CT'), + ('CN22FormType', + './schemas/IFWS.xsd', + 'CT'), + ('CN22ContentType', + './schemas/IFWS.xsd', + 'CT'), + ('ContactType', + './schemas/IFWS.xsd', + 'CT'), + ('ForwardAgentType', + './schemas/IFWS.xsd', + 'CT'), + ('AddressType', + './schemas/IFWS.xsd', + 'CT'), + ('UltimateConsigneeType', + './schemas/IFWS.xsd', + 'CT'), + ('IntermediateConsigneeType', + './schemas/IFWS.xsd', + 'CT'), + ('ProducerType', + './schemas/IFWS.xsd', + 'CT'), + ('ProductType', + './schemas/IFWS.xsd', + 'CT'), + ('ExcludeFromFormType', + './schemas/IFWS.xsd', + 'CT'), + ('UnitType', + './schemas/IFWS.xsd', + 'CT'), + ('PackingListInfoType', + './schemas/IFWS.xsd', + 'CT'), + ('PackageAssociatedType', + './schemas/IFWS.xsd', + 'CT'), + ('UnitOfMeasurementType', + './schemas/IFWS.xsd', + 'CT'), + ('NetCostDateType', + './schemas/IFWS.xsd', + 'CT'), + ('ProductWeightType', + './schemas/IFWS.xsd', + 'CT'), + ('ScheduleBType', + './schemas/IFWS.xsd', + 'CT'), + ('IFChargesType', + './schemas/IFWS.xsd', + 'CT'), + ('OtherChargesType', + './schemas/IFWS.xsd', + 'CT'), + ('BlanketPeriodType', + './schemas/IFWS.xsd', + 'CT'), + ('LicenseType', + './schemas/IFWS.xsd', + 'CT'), + ('SoldToType', + './schemas/IFWS.xsd', + 'CT'), + ('PhoneType', + './schemas/IFWS.xsd', + 'CT'), + ('DDTCInformationType', + './schemas/IFWS.xsd', + 'CT'), + ('EEILicenseType', + './schemas/IFWS.xsd', + 'CT'), + ('EEIFilingOptionType', + './schemas/IFWS.xsd', + 'CT'), + ('UPSFiledType', + './schemas/IFWS.xsd', + 'CT'), + ('ShipperFiledType', + './schemas/IFWS.xsd', + 'CT'), + ('EEIInformationType', + './schemas/IFWS.xsd', + 'CT'), + ('POAType', + './schemas/IFWS.xsd', + 'CT'), + ('UltimateConsigneeTypeType', + './schemas/IFWS.xsd', + 'CT')], + 'http://www.ups.com/XMLSchema/XOLTWS/Ship/v1.0': [('ShipmentType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('PromotionalDiscountInformationType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('ReturnServiceType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('ShipperType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('CompanyInfoType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('ShipPhoneType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('ShipAddressType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('ShipToType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('ShipToAddressType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('ShipFromType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('PrepaidType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('BillShipperType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('CreditCardType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('CreditCardAddressType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('BillThirdPartyChargeType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('AccountAddressType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('FreightCollectType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('BillReceiverType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('BillReceiverAddressType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('PaymentInfoType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('ShipmentChargeType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('FRSPaymentInfoType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('PaymentType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('RateInfoType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('ReferenceNumberType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('ServiceType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('CurrencyMonetaryType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('ShipmentServiceOptionsType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('RestrictedArticlesType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('PreAlertNotificationType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('PreAlertEMailMessageType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('LocaleType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('PreAlertVoiceMessageType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('PreAlertTextMessageType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('ContactInfoType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('CODType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('ShipmentServiceOptionsAccessPointCODType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('NotificationType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('LabelDeliveryType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('EmailDetailsType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('PackageType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('PackagingType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('DimensionsType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('ShipUnitOfMeasurementType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('PackageWeightType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('PackageServiceOptionsType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('PackageDeclaredValueType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('DeclaredValueType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('DeliveryConfirmationType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('LabelMethodType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('VerbalConfirmationType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('PSOCODType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('PackageServiceOptionsAccessPointCODType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('PSONotificationType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('LabelSpecificationType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('InstructionCodeDescriptionType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('LabelImageFormatType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('LabelStockSizeType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('CommodityType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('NMFCType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('ShipmentResultsType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('DisclaimerType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('ShipmentChargesType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('NegotiatedRateChargesType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('ShipChargeType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('TaxChargeType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('FRSShipmentDataType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('TransportationChargeType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('BillingWeightType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('BillingUnitOfMeasurementType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('PackageResultsType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('AccessorialType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('LabelType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('ReceiptType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('ImageType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('FormType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('FormImageType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('ImageFormatType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('SCReportType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('HighValueReportType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('HazMatPackageInformationType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('HazMatType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('DryIceType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('DryIceWeightType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('ReceiptSpecificationType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('ReceiptImageFormatType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('TaxIDCodeDescType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('IndicationType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('AlternateDeliveryAddressType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('ShipmentServiceOptionsNotificationVoiceMessageType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('ShipmentServiceOptionsNotificationTextMessageType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('ADLAddressType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('FreightShipmentInformationType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('HandlingUnitsType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('HandlingUnitsResponseType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('HandlingUnitsDimensionsType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('FreightDensityRateType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('FreightDensityInfoType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('AdjustedHeightType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('NegotiatedChargesType', + './schemas/ShipWebServiceSchema.xsd', + 'CT'), + ('DGSignatoryInfoType', + './schemas/ShipWebServiceSchema.xsd', + 'CT')]} + __all__ = [ "ADLAddressType", "AccessorialType", diff --git a/schemas/ups/ups_lib/time_in_transit_web_service_schema.py b/schemas/ups/ups_lib/time_in_transit_web_service_schema.py index 7ccca306a1..b26beff27d 100644 --- a/schemas/ups/ups_lib/time_in_transit_web_service_schema.py +++ b/schemas/ups/ups_lib/time_in_transit_web_service_schema.py @@ -2,34 +2,35 @@ # -*- coding: utf-8 -*- # -# Generated Sat Mar 7 09:07:28 2020 by generateDS.py version 2.35.15. -# Python 3.8.1 (v3.8.1:1b293b6006, Dec 18 2019, 14:08:53) [Clang 6.0 (clang-600.0.57)] +# Generated Wed Nov 10 10:01:04 2021 by generateDS.py version 2.40.5. +# Python 3.8.6 (v3.8.6:db455296be, Sep 23 2020, 13:31:39) [Clang 6.0 (clang-600.0.57)] # # Command line options: # ('--no-namespace-defs', '') -# ('-o', './python/time_in_transit_web_service_schema.py') +# ('-o', './ups_lib/time_in_transit_web_service_schema.py') # # Command line arguments: # ./schemas/TimeInTransitWebServiceSchema.xsd # # Command line: -# /Users/danielkobina/Documents/Open/.env/bin/generateDS --no-namespace-defs -o "./python/time_in_transit_web_service_schema.py" ./schemas/TimeInTransitWebServiceSchema.xsd +# /Users/danielkobina/Workspace/project/purplship/.venv/purplship/bin/generateDS --no-namespace-defs -o "./ups_lib/time_in_transit_web_service_schema.py" ./schemas/TimeInTransitWebServiceSchema.xsd # # Current working directory (os.getcwd()): -# 2020-03 +# ups # +import sys +try: + ModulenotfoundExp_ = ModuleNotFoundError +except NameError: + ModulenotfoundExp_ = ImportError from six.moves import zip_longest import os -import sys import re as re_ import base64 import datetime as datetime_ import decimal as decimal_ -try: - from lxml import etree as etree_ -except ImportError: - from xml.etree import ElementTree as etree_ +from lxml import etree as etree_ Validate_simpletypes_ = True @@ -92,7 +93,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # Additionally, the generatedsnamespaces module can contain a python # dictionary named GenerateDSNamespaceTypePrefixes that associates element # types with the namespace prefixes that are to be added to the -# "xsi:type" attribute value. See the exportAttributes method of +# "xsi:type" attribute value. See the _exportAttributes method of # any generated element type and the generation of "xsi:type" for an # example of the use of this table. # An example table: @@ -107,11 +108,11 @@ def parsexmlstring_(instring, parser=None, **kwargs): try: from generatedsnamespaces import GenerateDSNamespaceDefs as GenerateDSNamespaceDefs_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceDefs_ = {} try: from generatedsnamespaces import GenerateDSNamespaceTypePrefixes as GenerateDSNamespaceTypePrefixes_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceTypePrefixes_ = {} # @@ -122,7 +123,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # try: from generatedscollector import GdsCollector as GdsCollector_ -except ImportError: +except ModulenotfoundExp_ : class GdsCollector_(object): @@ -156,7 +157,7 @@ def write_messages(self, outstream): try: from enum import Enum -except ImportError: +except ModulenotfoundExp_ : Enum = object # @@ -168,9 +169,14 @@ def write_messages(self, outstream): try: from generatedssuper import GeneratedsSuper -except ImportError as exp: +except ModulenotfoundExp_ as exp: + try: + from generatedssupersuper import GeneratedsSuperSuper + except ModulenotfoundExp_ as exp: + class GeneratedsSuperSuper(object): + pass - class GeneratedsSuper(object): + class GeneratedsSuper(GeneratedsSuperSuper): __hash__ = object.__hash__ tzoff_pattern = re_.compile(r'(\+|-)((0\d|1[0-3]):[0-5]\d|14:00)$') class _FixedOffsetTZ(datetime_.tzinfo): @@ -183,6 +189,30 @@ def tzname(self, dt): return self.__name def dst(self, dt): return None + def __str__(self): + settings = { + 'str_pretty_print': True, + 'str_indent_level': 0, + 'str_namespaceprefix': '', + 'str_name': None, + 'str_namespacedefs': '', + } + for n in settings: + if hasattr(self, n): + setattr(settings[n], self[n]) + from io import StringIO + output = StringIO() + self.export( + output, + settings['str_indent_level'], + pretty_print=settings['str_pretty_print'], + namespaceprefix_=settings['str_namespaceprefix'], + name_=settings['str_name'], + namespacedef_=settings['str_namespacedefs'] + ) + strval = output.getvalue() + output.close() + return strval def gds_format_string(self, input_data, input_name=''): return input_data def gds_parse_string(self, input_data, node=None, input_name=''): @@ -193,11 +223,11 @@ def gds_validate_string(self, input_data, node=None, input_name=''): else: return input_data def gds_format_base64(self, input_data, input_name=''): - return base64.b64encode(input_data) + return base64.b64encode(input_data).decode('ascii') def gds_validate_base64(self, input_data, node=None, input_name=''): return input_data def gds_format_integer(self, input_data, input_name=''): - return '%d' % input_data + return '%d' % int(input_data) def gds_parse_integer(self, input_data, node=None, input_name=''): try: ival = int(input_data) @@ -211,6 +241,8 @@ def gds_validate_integer(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires integer value') return value def gds_format_integer_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_integer_list( self, input_data, node=None, input_name=''): @@ -219,10 +251,10 @@ def gds_validate_integer_list( try: int(value) except (TypeError, ValueError): - raise_parse_error(node, 'Requires sequence of integer valuess') + raise_parse_error(node, 'Requires sequence of integer values') return values def gds_format_float(self, input_data, input_name=''): - return ('%.15f' % input_data).rstrip('0') + return ('%.15f' % float(input_data)).rstrip('0') def gds_parse_float(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -236,6 +268,8 @@ def gds_validate_float(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires float value') return value def gds_format_float_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_float_list( self, input_data, node=None, input_name=''): @@ -247,7 +281,12 @@ def gds_validate_float_list( raise_parse_error(node, 'Requires sequence of float values') return values def gds_format_decimal(self, input_data, input_name=''): - return ('%s' % input_data).rstrip('0') + return_value = '%s' % input_data + if '.' in return_value: + return_value = return_value.rstrip('0') + if return_value.endswith('.'): + return_value = return_value.rstrip('.') + return return_value def gds_parse_decimal(self, input_data, node=None, input_name=''): try: decimal_value = decimal_.Decimal(input_data) @@ -261,7 +300,9 @@ def gds_validate_decimal(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires decimal value') return value def gds_format_decimal_list(self, input_data, input_name=''): - return '%s' % ' '.join(input_data) + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] + return ' '.join([self.gds_format_decimal(item) for item in input_data]) def gds_validate_decimal_list( self, input_data, node=None, input_name=''): values = input_data.split() @@ -272,7 +313,7 @@ def gds_validate_decimal_list( raise_parse_error(node, 'Requires sequence of decimal values') return values def gds_format_double(self, input_data, input_name=''): - return '%e' % input_data + return '%s' % input_data def gds_parse_double(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -286,6 +327,8 @@ def gds_validate_double(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires double or float value') return value def gds_format_double_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_double_list( self, input_data, node=None, input_name=''): @@ -315,11 +358,14 @@ def gds_validate_boolean(self, input_data, node=None, input_name=''): '(one of True, 1, False, 0)') return input_data def gds_format_boolean_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_boolean_list( self, input_data, node=None, input_name=''): values = input_data.split() for value in values: + value = self.gds_parse_boolean(value, node, input_name) if value not in (True, 1, False, 0, ): raise_parse_error( node, @@ -766,7 +812,10 @@ def find_attr_value_(attr_name, node): value = attrs.get(attr_name) elif len(attr_parts) == 2: prefix, name = attr_parts - namespace = node.nsmap.get(prefix) + if prefix == 'xml': + namespace = 'http://www.w3.org/XML/1998/namespace' + else: + namespace = node.nsmap.get(prefix) if namespace is not None: value = attrs.get('{%s}%s' % (namespace, name, )) return value @@ -847,7 +896,7 @@ def exportSimple(self, outfile, level, name): self.name, base64.b64encode(self.value), self.name)) - def to_etree(self, element): + def to_etree(self, element, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.category == MixedContainer.CategoryText: # Prevent exporting empty content as empty lines. if self.value.strip(): @@ -867,7 +916,7 @@ def to_etree(self, element): subelement.text = self.to_etree_simple() else: # category == MixedContainer.CategoryComplex self.value.to_etree(element) - def to_etree_simple(self): + def to_etree_simple(self, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.content_type == MixedContainer.TypeString: text = self.value elif (self.content_type == MixedContainer.TypeInteger or @@ -1006,7 +1055,7 @@ def get_PostcodePrimaryHigh(self): return self.PostcodePrimaryHigh def set_PostcodePrimaryHigh(self, PostcodePrimaryHigh): self.PostcodePrimaryHigh = PostcodePrimaryHigh - def hasContent_(self): + def _hasContent(self): if ( self.Town is not None or self.City is not None or @@ -1033,17 +1082,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseShipListAddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseShipListAddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseShipListAddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseShipListAddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ResponseShipListAddressType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ResponseShipListAddressType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ResponseShipListAddressType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ResponseShipListAddressType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1078,14 +1127,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Town': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Town') @@ -1183,7 +1232,7 @@ def set_PostalCode(self, PostalCode): self.PostalCode = PostalCode def get_extensiontype_(self): return self.extensiontype_ def set_extensiontype_(self, extensiontype_): self.extensiontype_ = extensiontype_ - def hasContent_(self): + def _hasContent(self): if ( self.Town is not None or self.City is not None or @@ -1209,15 +1258,15 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestShipFromAddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestShipFromAddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestShipFromAddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestShipFromAddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RequestShipFromAddressType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RequestShipFromAddressType'): if self.extensiontype_ is not None and 'xsi:type' not in already_processed: already_processed.add('xsi:type') outfile.write(' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"') @@ -1227,7 +1276,7 @@ def exportAttributes(self, outfile, level, already_processed, namespaceprefix_=' else: outfile.write(' xsi:type="%s"' % self.extensiontype_) pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RequestShipFromAddressType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RequestShipFromAddressType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1258,17 +1307,17 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('xsi:type', node) if value is not None and 'xsi:type' not in already_processed: already_processed.add('xsi:type') self.extensiontype_ = value - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Town': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Town') @@ -1312,7 +1361,7 @@ def __init__(self, Town=None, City=None, StateProvinceCode=None, CountryCode=Non self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None - super(RequestShipToAddressType, self).__init__(Town, City, StateProvinceCode, CountryCode, PostalCode, **kwargs_) + super(globals().get("RequestShipToAddressType"), self).__init__(Town, City, StateProvinceCode, CountryCode, PostalCode, **kwargs_) self.ResidentialAddressIndicator = ResidentialAddressIndicator self.ResidentialAddressIndicator_nsprefix_ = None def factory(*args_, **kwargs_): @@ -1334,10 +1383,10 @@ def get_ResidentialAddressIndicator(self): return self.ResidentialAddressIndicator def set_ResidentialAddressIndicator(self, ResidentialAddressIndicator): self.ResidentialAddressIndicator = ResidentialAddressIndicator - def hasContent_(self): + def _hasContent(self): if ( self.ResidentialAddressIndicator is not None or - super(RequestShipToAddressType, self).hasContent_() + super(RequestShipToAddressType, self)._hasContent() ): return True else: @@ -1357,18 +1406,18 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestShipToAddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestShipToAddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestShipToAddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestShipToAddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RequestShipToAddressType'): - super(RequestShipToAddressType, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestShipToAddressType') - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RequestShipToAddressType', fromsubclass_=False, pretty_print=True): - super(RequestShipToAddressType, self).exportChildren(outfile, level, namespaceprefix_, namespacedef_, name_, True, pretty_print=pretty_print) + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RequestShipToAddressType'): + super(RequestShipToAddressType, self)._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestShipToAddressType') + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RequestShipToAddressType', fromsubclass_=False, pretty_print=True): + super(RequestShipToAddressType, self)._exportChildren(outfile, level, namespaceprefix_, namespacedef_, name_, True, pretty_print=pretty_print) if pretty_print: eol_ = '\n' else: @@ -1383,21 +1432,21 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): - super(RequestShipToAddressType, self).buildAttributes(node, attrs, already_processed) - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildAttributes(self, node, attrs, already_processed): + super(RequestShipToAddressType, self)._buildAttributes(node, attrs, already_processed) + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ResidentialAddressIndicator': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ResidentialAddressIndicator') value_ = self.gds_validate_string(value_, node, 'ResidentialAddressIndicator') self.ResidentialAddressIndicator = value_ self.ResidentialAddressIndicator_nsprefix_ = child_.prefix - super(RequestShipToAddressType, self).buildChildren(child_, node, nodeName_, True) + super(RequestShipToAddressType, self)._buildChildren(child_, node, nodeName_, True) # end class RequestShipToAddressType @@ -1465,7 +1514,7 @@ def set_PostalCode(self, PostalCode): self.PostalCode = PostalCode def get_extensiontype_(self): return self.extensiontype_ def set_extensiontype_(self, extensiontype_): self.extensiontype_ = extensiontype_ - def hasContent_(self): + def _hasContent(self): if ( self.Town is not None or self.City is not None or @@ -1492,15 +1541,15 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseShipFromAddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseShipFromAddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseShipFromAddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseShipFromAddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ResponseShipFromAddressType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ResponseShipFromAddressType'): if self.extensiontype_ is not None and 'xsi:type' not in already_processed: already_processed.add('xsi:type') outfile.write(' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"') @@ -1510,7 +1559,7 @@ def exportAttributes(self, outfile, level, already_processed, namespaceprefix_=' else: outfile.write(' xsi:type="%s"' % self.extensiontype_) pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ResponseShipFromAddressType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ResponseShipFromAddressType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1545,17 +1594,17 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('xsi:type', node) if value is not None and 'xsi:type' not in already_processed: already_processed.add('xsi:type') self.extensiontype_ = value - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Town': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Town') @@ -1605,7 +1654,7 @@ def __init__(self, Town=None, City=None, StateProvinceCode=None, CountryCode=Non self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None - super(ResponseShipToAddressType, self).__init__(Town, City, StateProvinceCode, CountryCode, Country, PostalCode, **kwargs_) + super(globals().get("ResponseShipToAddressType"), self).__init__(Town, City, StateProvinceCode, CountryCode, Country, PostalCode, **kwargs_) self.ResidentialAddressIndicator = ResidentialAddressIndicator self.ResidentialAddressIndicator_nsprefix_ = None def factory(*args_, **kwargs_): @@ -1627,10 +1676,10 @@ def get_ResidentialAddressIndicator(self): return self.ResidentialAddressIndicator def set_ResidentialAddressIndicator(self, ResidentialAddressIndicator): self.ResidentialAddressIndicator = ResidentialAddressIndicator - def hasContent_(self): + def _hasContent(self): if ( self.ResidentialAddressIndicator is not None or - super(ResponseShipToAddressType, self).hasContent_() + super(ResponseShipToAddressType, self)._hasContent() ): return True else: @@ -1650,18 +1699,18 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseShipToAddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseShipToAddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseShipToAddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseShipToAddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ResponseShipToAddressType'): - super(ResponseShipToAddressType, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseShipToAddressType') - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ResponseShipToAddressType', fromsubclass_=False, pretty_print=True): - super(ResponseShipToAddressType, self).exportChildren(outfile, level, namespaceprefix_, namespacedef_, name_, True, pretty_print=pretty_print) + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ResponseShipToAddressType'): + super(ResponseShipToAddressType, self)._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseShipToAddressType') + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ResponseShipToAddressType', fromsubclass_=False, pretty_print=True): + super(ResponseShipToAddressType, self)._exportChildren(outfile, level, namespaceprefix_, namespacedef_, name_, True, pretty_print=pretty_print) if pretty_print: eol_ = '\n' else: @@ -1676,21 +1725,21 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): - super(ResponseShipToAddressType, self).buildAttributes(node, attrs, already_processed) - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildAttributes(self, node, attrs, already_processed): + super(ResponseShipToAddressType, self)._buildAttributes(node, attrs, already_processed) + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ResidentialAddressIndicator': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ResidentialAddressIndicator') value_ = self.gds_validate_string(value_, node, 'ResidentialAddressIndicator') self.ResidentialAddressIndicator = value_ self.ResidentialAddressIndicator_nsprefix_ = child_.prefix - super(ResponseShipToAddressType, self).buildChildren(child_, node, nodeName_, True) + super(ResponseShipToAddressType, self)._buildChildren(child_, node, nodeName_, True) # end class ResponseShipToAddressType @@ -1705,7 +1754,7 @@ def __init__(self, Address=None, gds_collector_=None, **kwargs_): self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "tnt" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1725,7 +1774,7 @@ def get_Address(self): return self.Address def set_Address(self, Address): self.Address = Address - def hasContent_(self): + def _hasContent(self): if ( self.Address is not None ): @@ -1747,17 +1796,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestShipFromType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestShipFromType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestShipFromType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestShipFromType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RequestShipFromType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RequestShipFromType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RequestShipFromType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RequestShipFromType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1771,14 +1820,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Address': class_obj_ = self.get_class_obj_(child_, RequestShipFromAddressType) obj_ = class_obj_.factory(parent_object_=self) @@ -1799,7 +1848,7 @@ def __init__(self, Address=None, gds_collector_=None, **kwargs_): self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "tnt" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1819,7 +1868,7 @@ def get_Address(self): return self.Address def set_Address(self, Address): self.Address = Address - def hasContent_(self): + def _hasContent(self): if ( self.Address is not None ): @@ -1841,17 +1890,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestShipToType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestShipToType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestShipToType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestShipToType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RequestShipToType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RequestShipToType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RequestShipToType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RequestShipToType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1865,14 +1914,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Address': obj_ = RequestShipToAddressType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1892,7 +1941,7 @@ def __init__(self, Address=None, gds_collector_=None, **kwargs_): self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "tnt" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1912,7 +1961,7 @@ def get_Address(self): return self.Address def set_Address(self, Address): self.Address = Address - def hasContent_(self): + def _hasContent(self): if ( self.Address is not None ): @@ -1934,17 +1983,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseShipFromType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseShipFromType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseShipFromType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseShipFromType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ResponseShipFromType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ResponseShipFromType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ResponseShipFromType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ResponseShipFromType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1958,14 +2007,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Address': class_obj_ = self.get_class_obj_(child_, ResponseShipFromAddressType) obj_ = class_obj_.factory(parent_object_=self) @@ -1986,7 +2035,7 @@ def __init__(self, Address=None, gds_collector_=None, **kwargs_): self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "tnt" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -2006,7 +2055,7 @@ def get_Address(self): return self.Address def set_Address(self, Address): self.Address = Address - def hasContent_(self): + def _hasContent(self): if ( self.Address is not None ): @@ -2028,17 +2077,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseShipToType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseShipToType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseShipToType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseShipToType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ResponseShipToType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ResponseShipToType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ResponseShipToType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ResponseShipToType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2052,14 +2101,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Address': obj_ = ResponseShipToAddressType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -2105,7 +2154,7 @@ def get_Weight(self): return self.Weight def set_Weight(self, Weight): self.Weight = Weight - def hasContent_(self): + def _hasContent(self): if ( self.UnitOfMeasurement is not None or self.Weight is not None @@ -2128,17 +2177,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentWeightType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentWeightType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentWeightType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentWeightType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentWeightType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentWeightType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentWeightType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentWeightType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2156,14 +2205,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'UnitOfMeasurement': obj_ = CodeDescriptionType1.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -2215,7 +2264,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -2238,17 +2287,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeDescriptionType1') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeDescriptionType1') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeDescriptionType1', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeDescriptionType1', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CodeDescriptionType1'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CodeDescriptionType1'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CodeDescriptionType1', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CodeDescriptionType1', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2267,14 +2316,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -2327,7 +2376,7 @@ def get_Time(self): return self.Time def set_Time(self, Time): self.Time = Time - def hasContent_(self): + def _hasContent(self): if ( self.Date is not None or self.Time is not None @@ -2350,17 +2399,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2379,14 +2428,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Date': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Date') @@ -2439,7 +2488,7 @@ def get_MonetaryValue(self): return self.MonetaryValue def set_MonetaryValue(self, MonetaryValue): self.MonetaryValue = MonetaryValue - def hasContent_(self): + def _hasContent(self): if ( self.CurrencyCode is not None or self.MonetaryValue is not None @@ -2462,17 +2511,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='I showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='InvoiceLineTotalType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='InvoiceLineTotalType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='InvoiceLineTotalType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='InvoiceLineTotalType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='InvoiceLineTotalType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='InvoiceLineTotalType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='InvoiceLineTotalType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='InvoiceLineTotalType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2491,14 +2540,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CurrencyCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CurrencyCode') @@ -2551,7 +2600,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -2574,17 +2623,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ReturnContractServicesType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ReturnContractServicesType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ReturnContractServicesType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ReturnContractServicesType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ReturnContractServicesType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ReturnContractServicesType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ReturnContractServicesType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ReturnContractServicesType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2603,14 +2652,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -2637,19 +2686,19 @@ def __init__(self, Request=None, ShipFrom=None, ShipTo=None, Pickup=None, Shipme self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Request = Request - self.Request_nsprefix_ = None + self.Request_nsprefix_ = "common" self.ShipFrom = ShipFrom - self.ShipFrom_nsprefix_ = None + self.ShipFrom_nsprefix_ = "tnt" self.ShipTo = ShipTo - self.ShipTo_nsprefix_ = None + self.ShipTo_nsprefix_ = "tnt" self.Pickup = Pickup - self.Pickup_nsprefix_ = None + self.Pickup_nsprefix_ = "tnt" self.ShipmentWeight = ShipmentWeight - self.ShipmentWeight_nsprefix_ = None + self.ShipmentWeight_nsprefix_ = "tnt" self.TotalPackagesInShipment = TotalPackagesInShipment self.TotalPackagesInShipment_nsprefix_ = None self.InvoiceLineTotal = InvoiceLineTotal - self.InvoiceLineTotal_nsprefix_ = None + self.InvoiceLineTotal_nsprefix_ = "tnt" self.DocumentsOnlyIndicator = DocumentsOnlyIndicator self.DocumentsOnlyIndicator_nsprefix_ = None self.BillType = BillType @@ -2668,7 +2717,7 @@ def __init__(self, Request=None, ShipFrom=None, ShipTo=None, Pickup=None, Shipme self.ReturnContractServices = [] else: self.ReturnContractServices = ReturnContractServices - self.ReturnContractServices_nsprefix_ = None + self.ReturnContractServices_nsprefix_ = "tnt" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -2750,7 +2799,7 @@ def insert_ReturnContractServices_at(self, index, value): self.ReturnContractServices.insert(index, value) def replace_ReturnContractServices_at(self, index, value): self.ReturnContractServices[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Request is not None or self.ShipFrom is not None or @@ -2786,17 +2835,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='T showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TimeInTransitRequest') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TimeInTransitRequest') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TimeInTransitRequest', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TimeInTransitRequest', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TimeInTransitRequest'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TimeInTransitRequest'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TimeInTransitRequest', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TimeInTransitRequest', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2860,14 +2909,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Request': obj_ = RequestType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -2965,11 +3014,11 @@ def __init__(self, Arrival=None, BusinessDaysInTransit=None, Pickup=None, DayOfW self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Arrival = Arrival - self.Arrival_nsprefix_ = None + self.Arrival_nsprefix_ = "tnt" self.BusinessDaysInTransit = BusinessDaysInTransit self.BusinessDaysInTransit_nsprefix_ = None self.Pickup = Pickup - self.Pickup_nsprefix_ = None + self.Pickup_nsprefix_ = "tnt" self.DayOfWeek = DayOfWeek self.DayOfWeek_nsprefix_ = None self.CustomerCenterCutoff = CustomerCenterCutoff @@ -3033,7 +3082,7 @@ def get_TotalTransitDays(self): return self.TotalTransitDays def set_TotalTransitDays(self, TotalTransitDays): self.TotalTransitDays = TotalTransitDays - def hasContent_(self): + def _hasContent(self): if ( self.Arrival is not None or self.BusinessDaysInTransit is not None or @@ -3063,17 +3112,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='E showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='EstimatedArrivalType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='EstimatedArrivalType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='EstimatedArrivalType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='EstimatedArrivalType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='EstimatedArrivalType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='EstimatedArrivalType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='EstimatedArrivalType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='EstimatedArrivalType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3118,14 +3167,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Arrival': obj_ = PickupType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -3198,7 +3247,7 @@ def __init__(self, Service=None, GuaranteedIndicator=None, Disclaimer=None, Esti self.Disclaimer = Disclaimer self.Disclaimer_nsprefix_ = None self.EstimatedArrival = EstimatedArrival - self.EstimatedArrival_nsprefix_ = None + self.EstimatedArrival_nsprefix_ = "tnt" self.SaturdayDelivery = SaturdayDelivery self.SaturdayDelivery_nsprefix_ = None self.SaturdayDeliveryDisclaimer = SaturdayDeliveryDisclaimer @@ -3242,7 +3291,7 @@ def get_SaturdayDeliveryDisclaimer(self): return self.SaturdayDeliveryDisclaimer def set_SaturdayDeliveryDisclaimer(self, SaturdayDeliveryDisclaimer): self.SaturdayDeliveryDisclaimer = SaturdayDeliveryDisclaimer - def hasContent_(self): + def _hasContent(self): if ( self.Service is not None or self.GuaranteedIndicator is not None or @@ -3269,17 +3318,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ServiceSummaryType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ServiceSummaryType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ServiceSummaryType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ServiceSummaryType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ServiceSummaryType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ServiceSummaryType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ServiceSummaryType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ServiceSummaryType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3312,14 +3361,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Service': obj_ = CodeDescriptionType1.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -3368,15 +3417,15 @@ def __init__(self, ShipFrom=None, ShipTo=None, PickupDate=None, ShipmentWeight=N self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.ShipFrom = ShipFrom - self.ShipFrom_nsprefix_ = None + self.ShipFrom_nsprefix_ = "tnt" self.ShipTo = ShipTo - self.ShipTo_nsprefix_ = None + self.ShipTo_nsprefix_ = "tnt" self.PickupDate = PickupDate self.PickupDate_nsprefix_ = None self.ShipmentWeight = ShipmentWeight - self.ShipmentWeight_nsprefix_ = None + self.ShipmentWeight_nsprefix_ = "tnt" self.InvoiceLineTotal = InvoiceLineTotal - self.InvoiceLineTotal_nsprefix_ = None + self.InvoiceLineTotal_nsprefix_ = "tnt" self.DocumentsOnlyIndicator = DocumentsOnlyIndicator self.DocumentsOnlyIndicator_nsprefix_ = None self.BillType = BillType @@ -3387,7 +3436,7 @@ def __init__(self, ShipFrom=None, ShipTo=None, PickupDate=None, ShipmentWeight=N self.ServiceSummary = [] else: self.ServiceSummary = ServiceSummary - self.ServiceSummary_nsprefix_ = None + self.ServiceSummary_nsprefix_ = "tnt" self.AutoDutyCode = AutoDutyCode self.AutoDutyCode_nsprefix_ = None self.Disclaimer = Disclaimer @@ -3457,7 +3506,7 @@ def get_Disclaimer(self): return self.Disclaimer def set_Disclaimer(self, Disclaimer): self.Disclaimer = Disclaimer - def hasContent_(self): + def _hasContent(self): if ( self.ShipFrom is not None or self.ShipTo is not None or @@ -3489,17 +3538,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='T showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransitResponseType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransitResponseType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransitResponseType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransitResponseType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TransitResponseType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TransitResponseType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TransitResponseType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TransitResponseType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3549,14 +3598,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ShipFrom': obj_ = ResponseShipFromType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -3632,7 +3681,7 @@ def __init__(self, Address=None, gds_collector_=None, **kwargs_): self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "tnt" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -3652,7 +3701,7 @@ def get_Address(self): return self.Address def set_Address(self, Address): self.Address = Address - def hasContent_(self): + def _hasContent(self): if ( self.Address is not None ): @@ -3674,17 +3723,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CandidateType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CandidateType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CandidateType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CandidateType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CandidateType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CandidateType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CandidateType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CandidateType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3698,14 +3747,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Address': obj_ = ResponseShipListAddressType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -3728,7 +3777,7 @@ def __init__(self, Candidate=None, gds_collector_=None, **kwargs_): self.Candidate = [] else: self.Candidate = Candidate - self.Candidate_nsprefix_ = None + self.Candidate_nsprefix_ = "tnt" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -3754,7 +3803,7 @@ def insert_Candidate_at(self, index, value): self.Candidate.insert(index, value) def replace_Candidate_at(self, index, value): self.Candidate[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Candidate ): @@ -3776,17 +3825,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipListType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipListType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipListType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipListType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipListType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipListType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipListType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipListType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3800,14 +3849,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Candidate': obj_ = CandidateType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -3827,9 +3876,9 @@ def __init__(self, ShipFromList=None, ShipToList=None, gds_collector_=None, **kw self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.ShipFromList = ShipFromList - self.ShipFromList_nsprefix_ = None + self.ShipFromList_nsprefix_ = "tnt" self.ShipToList = ShipToList - self.ShipToList_nsprefix_ = None + self.ShipToList_nsprefix_ = "tnt" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -3853,7 +3902,7 @@ def get_ShipToList(self): return self.ShipToList def set_ShipToList(self, ShipToList): self.ShipToList = ShipToList - def hasContent_(self): + def _hasContent(self): if ( self.ShipFromList is not None or self.ShipToList is not None @@ -3876,17 +3925,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CandidateResponseType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CandidateResponseType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CandidateResponseType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CandidateResponseType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CandidateResponseType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CandidateResponseType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CandidateResponseType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CandidateResponseType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3903,14 +3952,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ShipFromList': obj_ = ShipListType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -3935,11 +3984,11 @@ def __init__(self, Response=None, TransitResponse=None, CandidateResponse=None, self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Response = Response - self.Response_nsprefix_ = None + self.Response_nsprefix_ = "common" self.TransitResponse = TransitResponse - self.TransitResponse_nsprefix_ = None + self.TransitResponse_nsprefix_ = "tnt" self.CandidateResponse = CandidateResponse - self.CandidateResponse_nsprefix_ = None + self.CandidateResponse_nsprefix_ = "tnt" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -3967,7 +4016,7 @@ def get_CandidateResponse(self): return self.CandidateResponse def set_CandidateResponse(self, CandidateResponse): self.CandidateResponse = CandidateResponse - def hasContent_(self): + def _hasContent(self): if ( self.Response is not None or self.TransitResponse is not None or @@ -3991,17 +4040,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='T showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TimeInTransitResponse') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TimeInTransitResponse') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TimeInTransitResponse', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TimeInTransitResponse', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TimeInTransitResponse'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TimeInTransitResponse'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TimeInTransitResponse', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TimeInTransitResponse', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4021,14 +4070,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Response': obj_ = ResponseType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -4087,7 +4136,7 @@ def insert_Property_at(self, index, value): self.Property.insert(index, value) def replace_Property_at(self, index, value): self.Property[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Property ): @@ -4109,17 +4158,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ClientInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ClientInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ClientInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ClientInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ClientInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ClientInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ClientInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ClientInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4133,14 +4182,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Property': obj_ = PropertyType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -4167,7 +4216,7 @@ def __init__(self, RequestOption=None, SubVersion=None, TransactionReference=Non self.SubVersion = SubVersion self.SubVersion_nsprefix_ = None self.TransactionReference = TransactionReference - self.TransactionReference_nsprefix_ = None + self.TransactionReference_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -4201,7 +4250,7 @@ def get_TransactionReference(self): return self.TransactionReference def set_TransactionReference(self, TransactionReference): self.TransactionReference = TransactionReference - def hasContent_(self): + def _hasContent(self): if ( self.RequestOption or self.SubVersion is not None or @@ -4225,17 +4274,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='RequestType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='RequestType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='RequestType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='RequestType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4257,14 +4306,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'RequestOption': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'RequestOption') @@ -4322,7 +4371,7 @@ def get_TransactionIdentifier(self): return self.TransactionIdentifier def set_TransactionIdentifier(self, TransactionIdentifier): self.TransactionIdentifier = TransactionIdentifier - def hasContent_(self): + def _hasContent(self): if ( self.CustomerContext is not None or self.TransactionIdentifier is not None @@ -4345,17 +4394,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionReferenceType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionReferenceType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionReferenceType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionReferenceType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='TransactionReferenceType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='TransactionReferenceType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='TransactionReferenceType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='TransactionReferenceType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4374,14 +4423,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CustomerContext': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CustomerContext') @@ -4408,19 +4457,19 @@ def __init__(self, ResponseStatus=None, Alert=None, AlertDetail=None, Transactio self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.ResponseStatus = ResponseStatus - self.ResponseStatus_nsprefix_ = None + self.ResponseStatus_nsprefix_ = "common" if Alert is None: self.Alert = [] else: self.Alert = Alert - self.Alert_nsprefix_ = None + self.Alert_nsprefix_ = "common" if AlertDetail is None: self.AlertDetail = [] else: self.AlertDetail = AlertDetail - self.AlertDetail_nsprefix_ = None + self.AlertDetail_nsprefix_ = "common" self.TransactionReference = TransactionReference - self.TransactionReference_nsprefix_ = None + self.TransactionReference_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -4464,7 +4513,7 @@ def get_TransactionReference(self): return self.TransactionReference def set_TransactionReference(self, TransactionReference): self.TransactionReference = TransactionReference - def hasContent_(self): + def _hasContent(self): if ( self.ResponseStatus is not None or self.Alert or @@ -4489,17 +4538,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ResponseType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ResponseType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ResponseType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ResponseType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4522,14 +4571,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ResponseStatus': obj_ = CodeDescriptionType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -4590,7 +4639,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -4613,17 +4662,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeDescriptionType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeDescriptionType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeDescriptionType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeDescriptionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='CodeDescriptionType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='CodeDescriptionType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='CodeDescriptionType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='CodeDescriptionType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4642,14 +4691,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -4680,7 +4729,7 @@ def __init__(self, Code=None, Description=None, ElementLevelInformation=None, gd self.Description = Description self.Description_nsprefix_ = None self.ElementLevelInformation = ElementLevelInformation - self.ElementLevelInformation_nsprefix_ = None + self.ElementLevelInformation_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -4708,7 +4757,7 @@ def get_ElementLevelInformation(self): return self.ElementLevelInformation def set_ElementLevelInformation(self, ElementLevelInformation): self.ElementLevelInformation = ElementLevelInformation - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None or @@ -4732,17 +4781,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DetailType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DetailType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DetailType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DetailType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='DetailType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='DetailType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='DetailType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='DetailType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4764,14 +4813,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -4808,7 +4857,7 @@ def __init__(self, Level=None, ElementIdentifier=None, gds_collector_=None, **kw self.ElementIdentifier = [] else: self.ElementIdentifier = ElementIdentifier - self.ElementIdentifier_nsprefix_ = None + self.ElementIdentifier_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -4838,7 +4887,7 @@ def insert_ElementIdentifier_at(self, index, value): self.ElementIdentifier.insert(index, value) def replace_ElementIdentifier_at(self, index, value): self.ElementIdentifier[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Level is not None or self.ElementIdentifier @@ -4861,17 +4910,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementLevelInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementLevelInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementLevelInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementLevelInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementLevelInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementLevelInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementLevelInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementLevelInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4889,14 +4938,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Level': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Level') @@ -4948,7 +4997,7 @@ def get_Value(self): return self.Value def set_Value(self, Value): self.Value = Value - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Value is not None @@ -4971,17 +5020,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementIdentifierType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementIdentifierType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementIdentifierType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementIdentifierType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementIdentifierType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementIdentifierType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementIdentifierType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementIdentifierType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5000,14 +5049,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -5057,7 +5106,7 @@ def set_Key(self, Key): self.Key = Key def get_valueOf_(self): return self.valueOf_ def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_ - def hasContent_(self): + def _hasContent(self): if ( (1 if type(self.valueOf_) in [int,float] else self.valueOf_) ): @@ -5079,19 +5128,19 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PropertyType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PropertyType') + if self._hasContent(): outfile.write('>') outfile.write(self.convert_unicode(self.valueOf_)) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PropertyType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PropertyType', pretty_print=pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PropertyType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PropertyType'): if self.Key is not None and 'Key' not in already_processed: already_processed.add('Key') outfile.write(' Key=%s' % (quote_attrib(self.Key), )) - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PropertyType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PropertyType', fromsubclass_=False, pretty_print=True): pass def build(self, node, gds_collector_=None): self.gds_collector_ = gds_collector_ @@ -5099,18 +5148,18 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) self.valueOf_ = get_all_text_(node) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('Key', node) if value is not None and 'Key' not in already_processed: already_processed.add('Key') self.Key = value - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): pass # end class PropertyType @@ -5189,7 +5238,8 @@ def parse(inFileName, silence=False, print_warnings=True): return rootObj -def parseEtree(inFileName, silence=False, print_warnings=True): +def parseEtree(inFileName, silence=False, print_warnings=True, + mapping=None, reverse_mapping=None, nsmap=None): parser = None doc = parsexml_(inFileName, parser) gds_collector = GdsCollector_() @@ -5200,10 +5250,15 @@ def parseEtree(inFileName, silence=False, print_warnings=True): rootClass = ResponseShipListAddressType rootObj = rootClass.factory() rootObj.build(rootNode, gds_collector_=gds_collector) + if mapping is None: + mapping = {} + if reverse_mapping is None: + reverse_mapping = {} + rootElement = rootObj.to_etree( + None, name_=rootTag, mapping_=mapping, + reverse_mapping_=reverse_mapping, nsmap_=nsmap) + reverse_node_mapping = rootObj.gds_reverse_node_mapping(mapping) # Enable Python to collect the space used by the DOM. - mapping = {} - rootElement = rootObj.to_etree(None, name_=rootTag, mapping_=mapping) - reverse_mapping = rootObj.gds_reverse_node_mapping(mapping) if not SaveElementTreeNode: doc = None rootNode = None @@ -5220,7 +5275,7 @@ def parseEtree(inFileName, silence=False, print_warnings=True): len(gds_collector.get_messages()), )) gds_collector.write_messages(sys.stderr) sys.stderr.write(separator) - return rootObj, rootElement, mapping, reverse_mapping + return rootObj, rootElement, mapping, reverse_node_mapping def parseString(inString, silence=False, print_warnings=True): @@ -5305,6 +5360,95 @@ def main(): "{http://www.ups.com/XMLSchema/XOLTWS/tnt/v1.0}CodeDescriptionType": "CodeDescriptionType1", } +# +# Mapping of namespaces to types defined in them +# and the file in which each is defined. +# simpleTypes are marked "ST" and complexTypes "CT". +NamespaceToDefMappings_ = {'http://www.ups.com/XMLSchema/XOLTWS/Common/v1.0': [('ClientInformationType', + './schemas/common.xsd', + 'CT'), + ('RequestType', + './schemas/common.xsd', + 'CT'), + ('TransactionReferenceType', + './schemas/common.xsd', + 'CT'), + ('ResponseType', + './schemas/common.xsd', + 'CT'), + ('CodeDescriptionType', + './schemas/common.xsd', + 'CT'), + ('DetailType', + './schemas/common.xsd', + 'CT'), + ('ElementLevelInformationType', + './schemas/common.xsd', + 'CT'), + ('ElementIdentifierType', + './schemas/common.xsd', + 'CT')], + 'http://www.ups.com/XMLSchema/XOLTWS/tnt/v1.0': [('ResponseShipListAddressType', + './schemas/TimeInTransitWebServiceSchema.xsd', + 'CT'), + ('RequestShipFromAddressType', + './schemas/TimeInTransitWebServiceSchema.xsd', + 'CT'), + ('RequestShipToAddressType', + './schemas/TimeInTransitWebServiceSchema.xsd', + 'CT'), + ('ResponseShipFromAddressType', + './schemas/TimeInTransitWebServiceSchema.xsd', + 'CT'), + ('ResponseShipToAddressType', + './schemas/TimeInTransitWebServiceSchema.xsd', + 'CT'), + ('RequestShipFromType', + './schemas/TimeInTransitWebServiceSchema.xsd', + 'CT'), + ('RequestShipToType', + './schemas/TimeInTransitWebServiceSchema.xsd', + 'CT'), + ('ResponseShipFromType', + './schemas/TimeInTransitWebServiceSchema.xsd', + 'CT'), + ('ResponseShipToType', + './schemas/TimeInTransitWebServiceSchema.xsd', + 'CT'), + ('ShipmentWeightType', + './schemas/TimeInTransitWebServiceSchema.xsd', + 'CT'), + ('CodeDescriptionType', + './schemas/TimeInTransitWebServiceSchema.xsd', + 'CT'), + ('PickupType', + './schemas/TimeInTransitWebServiceSchema.xsd', + 'CT'), + ('InvoiceLineTotalType', + './schemas/TimeInTransitWebServiceSchema.xsd', + 'CT'), + ('ReturnContractServicesType', + './schemas/TimeInTransitWebServiceSchema.xsd', + 'CT'), + ('EstimatedArrivalType', + './schemas/TimeInTransitWebServiceSchema.xsd', + 'CT'), + ('ServiceSummaryType', + './schemas/TimeInTransitWebServiceSchema.xsd', + 'CT'), + ('TransitResponseType', + './schemas/TimeInTransitWebServiceSchema.xsd', + 'CT'), + ('CandidateType', + './schemas/TimeInTransitWebServiceSchema.xsd', + 'CT'), + ('ShipListType', + './schemas/TimeInTransitWebServiceSchema.xsd', + 'CT'), + ('CandidateResponseType', + './schemas/TimeInTransitWebServiceSchema.xsd', + 'CT')]} + __all__ = [ "CandidateResponseType", "CandidateType", diff --git a/schemas/ups/ups_lib/track_web_service_schema.py b/schemas/ups/ups_lib/track_web_service_schema.py index 15228230f2..2049673d81 100644 --- a/schemas/ups/ups_lib/track_web_service_schema.py +++ b/schemas/ups/ups_lib/track_web_service_schema.py @@ -2,34 +2,35 @@ # -*- coding: utf-8 -*- # -# Generated Sat Mar 7 09:04:21 2020 by generateDS.py version 2.35.15. -# Python 3.8.1 (v3.8.1:1b293b6006, Dec 18 2019, 14:08:53) [Clang 6.0 (clang-600.0.57)] +# Generated Wed Nov 10 10:01:04 2021 by generateDS.py version 2.40.5. +# Python 3.8.6 (v3.8.6:db455296be, Sep 23 2020, 13:31:39) [Clang 6.0 (clang-600.0.57)] # # Command line options: # ('--no-namespace-defs', '') -# ('-o', './python/track_web_service_schema.py') +# ('-o', './ups_lib/track_web_service_schema.py') # # Command line arguments: # ./schemas/TrackWebServiceSchema.xsd # # Command line: -# /Users/danielkobina/Documents/Open/.env/bin/generateDS --no-namespace-defs -o "./python/track_web_service_schema.py" ./schemas/TrackWebServiceSchema.xsd +# /Users/danielkobina/Workspace/project/purplship/.venv/purplship/bin/generateDS --no-namespace-defs -o "./ups_lib/track_web_service_schema.py" ./schemas/TrackWebServiceSchema.xsd # # Current working directory (os.getcwd()): -# 2020-03 +# ups # +import sys +try: + ModulenotfoundExp_ = ModuleNotFoundError +except NameError: + ModulenotfoundExp_ = ImportError from six.moves import zip_longest import os -import sys import re as re_ import base64 import datetime as datetime_ import decimal as decimal_ -try: - from lxml import etree as etree_ -except ImportError: - from xml.etree import ElementTree as etree_ +from lxml import etree as etree_ Validate_simpletypes_ = True @@ -92,7 +93,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # Additionally, the generatedsnamespaces module can contain a python # dictionary named GenerateDSNamespaceTypePrefixes that associates element # types with the namespace prefixes that are to be added to the -# "xsi:type" attribute value. See the exportAttributes method of +# "xsi:type" attribute value. See the _exportAttributes method of # any generated element type and the generation of "xsi:type" for an # example of the use of this table. # An example table: @@ -107,11 +108,11 @@ def parsexmlstring_(instring, parser=None, **kwargs): try: from generatedsnamespaces import GenerateDSNamespaceDefs as GenerateDSNamespaceDefs_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceDefs_ = {} try: from generatedsnamespaces import GenerateDSNamespaceTypePrefixes as GenerateDSNamespaceTypePrefixes_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceTypePrefixes_ = {} # @@ -122,7 +123,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # try: from generatedscollector import GdsCollector as GdsCollector_ -except ImportError: +except ModulenotfoundExp_ : class GdsCollector_(object): @@ -156,7 +157,7 @@ def write_messages(self, outstream): try: from enum import Enum -except ImportError: +except ModulenotfoundExp_ : Enum = object # @@ -168,9 +169,14 @@ def write_messages(self, outstream): try: from generatedssuper import GeneratedsSuper -except ImportError as exp: +except ModulenotfoundExp_ as exp: + try: + from generatedssupersuper import GeneratedsSuperSuper + except ModulenotfoundExp_ as exp: + class GeneratedsSuperSuper(object): + pass - class GeneratedsSuper(object): + class GeneratedsSuper(GeneratedsSuperSuper): __hash__ = object.__hash__ tzoff_pattern = re_.compile(r'(\+|-)((0\d|1[0-3]):[0-5]\d|14:00)$') class _FixedOffsetTZ(datetime_.tzinfo): @@ -183,6 +189,30 @@ def tzname(self, dt): return self.__name def dst(self, dt): return None + def __str__(self): + settings = { + 'str_pretty_print': True, + 'str_indent_level': 0, + 'str_namespaceprefix': '', + 'str_name': None, + 'str_namespacedefs': '', + } + for n in settings: + if hasattr(self, n): + setattr(settings[n], self[n]) + from io import StringIO + output = StringIO() + self.export( + output, + settings['str_indent_level'], + pretty_print=settings['str_pretty_print'], + namespaceprefix_=settings['str_namespaceprefix'], + name_=settings['str_name'], + namespacedef_=settings['str_namespacedefs'] + ) + strval = output.getvalue() + output.close() + return strval def gds_format_string(self, input_data, input_name=''): return input_data def gds_parse_string(self, input_data, node=None, input_name=''): @@ -193,11 +223,11 @@ def gds_validate_string(self, input_data, node=None, input_name=''): else: return input_data def gds_format_base64(self, input_data, input_name=''): - return base64.b64encode(input_data) + return base64.b64encode(input_data).decode('ascii') def gds_validate_base64(self, input_data, node=None, input_name=''): return input_data def gds_format_integer(self, input_data, input_name=''): - return '%d' % input_data + return '%d' % int(input_data) def gds_parse_integer(self, input_data, node=None, input_name=''): try: ival = int(input_data) @@ -211,6 +241,8 @@ def gds_validate_integer(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires integer value') return value def gds_format_integer_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_integer_list( self, input_data, node=None, input_name=''): @@ -219,10 +251,10 @@ def gds_validate_integer_list( try: int(value) except (TypeError, ValueError): - raise_parse_error(node, 'Requires sequence of integer valuess') + raise_parse_error(node, 'Requires sequence of integer values') return values def gds_format_float(self, input_data, input_name=''): - return ('%.15f' % input_data).rstrip('0') + return ('%.15f' % float(input_data)).rstrip('0') def gds_parse_float(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -236,6 +268,8 @@ def gds_validate_float(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires float value') return value def gds_format_float_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_float_list( self, input_data, node=None, input_name=''): @@ -247,7 +281,12 @@ def gds_validate_float_list( raise_parse_error(node, 'Requires sequence of float values') return values def gds_format_decimal(self, input_data, input_name=''): - return ('%s' % input_data).rstrip('0') + return_value = '%s' % input_data + if '.' in return_value: + return_value = return_value.rstrip('0') + if return_value.endswith('.'): + return_value = return_value.rstrip('.') + return return_value def gds_parse_decimal(self, input_data, node=None, input_name=''): try: decimal_value = decimal_.Decimal(input_data) @@ -261,7 +300,9 @@ def gds_validate_decimal(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires decimal value') return value def gds_format_decimal_list(self, input_data, input_name=''): - return '%s' % ' '.join(input_data) + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] + return ' '.join([self.gds_format_decimal(item) for item in input_data]) def gds_validate_decimal_list( self, input_data, node=None, input_name=''): values = input_data.split() @@ -272,7 +313,7 @@ def gds_validate_decimal_list( raise_parse_error(node, 'Requires sequence of decimal values') return values def gds_format_double(self, input_data, input_name=''): - return '%e' % input_data + return '%s' % input_data def gds_parse_double(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -286,6 +327,8 @@ def gds_validate_double(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires double or float value') return value def gds_format_double_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_double_list( self, input_data, node=None, input_name=''): @@ -315,11 +358,14 @@ def gds_validate_boolean(self, input_data, node=None, input_name=''): '(one of True, 1, False, 0)') return input_data def gds_format_boolean_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_boolean_list( self, input_data, node=None, input_name=''): values = input_data.split() for value in values: + value = self.gds_parse_boolean(value, node, input_name) if value not in (True, 1, False, 0, ): raise_parse_error( node, @@ -766,7 +812,10 @@ def find_attr_value_(attr_name, node): value = attrs.get(attr_name) elif len(attr_parts) == 2: prefix, name = attr_parts - namespace = node.nsmap.get(prefix) + if prefix == 'xml': + namespace = 'http://www.w3.org/XML/1998/namespace' + else: + namespace = node.nsmap.get(prefix) if namespace is not None: value = attrs.get('{%s}%s' % (namespace, name, )) return value @@ -847,7 +896,7 @@ def exportSimple(self, outfile, level, name): self.name, base64.b64encode(self.value), self.name)) - def to_etree(self, element): + def to_etree(self, element, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.category == MixedContainer.CategoryText: # Prevent exporting empty content as empty lines. if self.value.strip(): @@ -867,7 +916,7 @@ def to_etree(self, element): subelement.text = self.to_etree_simple() else: # category == MixedContainer.CategoryComplex self.value.to_etree(element) - def to_etree_simple(self): + def to_etree_simple(self, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.content_type == MixedContainer.TypeString: text = self.value elif (self.content_type == MixedContainer.TypeInteger or @@ -956,7 +1005,7 @@ def __init__(self, Request=None, InquiryNumber=None, IncludeMailInnovationIndica self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Request = Request - self.Request_nsprefix_ = None + self.Request_nsprefix_ = "common" self.InquiryNumber = InquiryNumber self.InquiryNumber_nsprefix_ = None self.IncludeMailInnovationIndicator = IncludeMailInnovationIndicator @@ -966,19 +1015,19 @@ def __init__(self, Request=None, InquiryNumber=None, IncludeMailInnovationIndica self.CandidateBookmark = CandidateBookmark self.CandidateBookmark_nsprefix_ = None self.ReferenceNumber = ReferenceNumber - self.ReferenceNumber_nsprefix_ = None + self.ReferenceNumber_nsprefix_ = "trk" self.PickupDateRange = PickupDateRange - self.PickupDateRange_nsprefix_ = None + self.PickupDateRange_nsprefix_ = "trk" self.ShipperNumber = ShipperNumber self.ShipperNumber_nsprefix_ = None self.ShipFrom = ShipFrom - self.ShipFrom_nsprefix_ = None + self.ShipFrom_nsprefix_ = "trk" self.ShipTo = ShipTo - self.ShipTo_nsprefix_ = None + self.ShipTo_nsprefix_ = "trk" self.ShipmentType = ShipmentType - self.ShipmentType_nsprefix_ = None + self.ShipmentType_nsprefix_ = "trk" self.ShipperAccountInfo = ShipperAccountInfo - self.ShipperAccountInfo_nsprefix_ = None + self.ShipperAccountInfo_nsprefix_ = "trk" self.PreauthorizedReturnIndicator = PreauthorizedReturnIndicator self.PreauthorizedReturnIndicator_nsprefix_ = None self.Locale = Locale @@ -1054,7 +1103,7 @@ def get_Locale(self): return self.Locale def set_Locale(self, Locale): self.Locale = Locale - def hasContent_(self): + def _hasContent(self): if ( self.Request is not None or self.InquiryNumber is not None or @@ -1089,17 +1138,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='T showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TrackRequest') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TrackRequest') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TrackRequest', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TrackRequest', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TrackRequest'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TrackRequest'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TrackRequest', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TrackRequest', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1159,14 +1208,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Request': obj_ = RequestType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1284,7 +1333,7 @@ def get_CountryCode(self): return self.CountryCode def set_CountryCode(self, CountryCode): self.CountryCode = CountryCode - def hasContent_(self): + def _hasContent(self): if ( self.PostalCode is not None or self.CountryCode is not None @@ -1307,17 +1356,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressRequestType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressRequestType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressRequestType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressRequestType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AddressRequestType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AddressRequestType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AddressRequestType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AddressRequestType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1336,14 +1385,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PostalCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'PostalCode') @@ -1396,7 +1445,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -1419,17 +1468,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RefShipmentType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RefShipmentType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RefShipmentType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RefShipmentType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RefShipmentType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RefShipmentType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RefShipmentType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RefShipmentType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1448,14 +1497,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -1508,7 +1557,7 @@ def get_EndDate(self): return self.EndDate def set_EndDate(self, EndDate): self.EndDate = EndDate - def hasContent_(self): + def _hasContent(self): if ( self.BeginDate is not None or self.EndDate is not None @@ -1531,17 +1580,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupDateRangeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PickupDateRangeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupDateRangeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PickupDateRangeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupDateRangeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PickupDateRangeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupDateRangeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PickupDateRangeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1560,14 +1609,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'BeginDate': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'BeginDate') @@ -1620,7 +1669,7 @@ def get_Value(self): return self.Value def set_Value(self, Value): self.Value = Value - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Value is not None @@ -1643,17 +1692,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ReferenceNumberType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ReferenceNumberType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ReferenceNumberType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ReferenceNumberType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ReferenceNumberType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ReferenceNumberType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ReferenceNumberType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ReferenceNumberType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1672,14 +1721,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -1732,7 +1781,7 @@ def get_TransactionIdentifierPlayback(self): return self.TransactionIdentifierPlayback def set_TransactionIdentifierPlayback(self, TransactionIdentifierPlayback): self.TransactionIdentifierPlayback = TransactionIdentifierPlayback - def hasContent_(self): + def _hasContent(self): if ( self.CustomerContext is not None or self.TransactionIdentifierPlayback is not None @@ -1755,17 +1804,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestTransactionReferenceType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestTransactionReferenceType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestTransactionReferenceType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestTransactionReferenceType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RequestTransactionReferenceType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RequestTransactionReferenceType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RequestTransactionReferenceType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RequestTransactionReferenceType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1784,14 +1833,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CustomerContext': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CustomerContext') @@ -1818,7 +1867,7 @@ def __init__(self, Address=None, gds_collector_=None, **kwargs_): self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "trk" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1838,7 +1887,7 @@ def get_Address(self): return self.Address def set_Address(self, Address): self.Address = Address - def hasContent_(self): + def _hasContent(self): if ( self.Address is not None ): @@ -1860,17 +1909,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipToRequestType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipToRequestType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipToRequestType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipToRequestType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipToRequestType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipToRequestType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipToRequestType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipToRequestType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1884,14 +1933,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Address': obj_ = AddressRequestType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1911,7 +1960,7 @@ def __init__(self, Address=None, gds_collector_=None, **kwargs_): self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "trk" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1931,7 +1980,7 @@ def get_Address(self): return self.Address def set_Address(self, Address): self.Address = Address - def hasContent_(self): + def _hasContent(self): if ( self.Address is not None ): @@ -1953,17 +2002,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipFromRequestType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipFromRequestType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipFromRequestType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipFromRequestType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipFromRequestType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipFromRequestType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipFromRequestType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipFromRequestType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1977,14 +2026,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Address': obj_ = AddressRequestType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -2004,12 +2053,12 @@ def __init__(self, Response=None, Shipment=None, Disclaimer=None, gds_collector_ self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Response = Response - self.Response_nsprefix_ = None + self.Response_nsprefix_ = "common" if Shipment is None: self.Shipment = [] else: self.Shipment = Shipment - self.Shipment_nsprefix_ = None + self.Shipment_nsprefix_ = "trk" if Disclaimer is None: self.Disclaimer = [] else: @@ -2054,7 +2103,7 @@ def insert_Disclaimer_at(self, index, value): self.Disclaimer.insert(index, value) def replace_Disclaimer_at(self, index, value): self.Disclaimer[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Response is not None or self.Shipment or @@ -2078,17 +2127,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='T showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TrackResponse') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TrackResponse') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TrackResponse', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TrackResponse', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TrackResponse'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TrackResponse'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TrackResponse', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TrackResponse', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2109,14 +2158,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Response': obj_ = ResponseType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -2147,9 +2196,9 @@ def __init__(self, Address=None, TransportFacility=None, Code=None, Description= self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "trk" self.TransportFacility = TransportFacility - self.TransportFacility_nsprefix_ = None + self.TransportFacility_nsprefix_ = "trk" self.Code = Code self.Code_nsprefix_ = None self.Description = Description @@ -2191,7 +2240,7 @@ def get_SignedForByName(self): return self.SignedForByName def set_SignedForByName(self, SignedForByName): self.SignedForByName = SignedForByName - def hasContent_(self): + def _hasContent(self): if ( self.Address is not None or self.TransportFacility is not None or @@ -2217,17 +2266,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ActivityLocationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ActivityLocationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ActivityLocationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ActivityLocationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ActivityLocationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ActivityLocationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ActivityLocationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ActivityLocationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2256,14 +2305,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Address': obj_ = AddressType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -2332,7 +2381,7 @@ def get_Code(self): return self.Code def set_Code(self, Code): self.Code = Code - def hasContent_(self): + def _hasContent(self): if ( self.Type is not None or self.Code is not None @@ -2355,17 +2404,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='T showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransportFacilityType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransportFacilityType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransportFacilityType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransportFacilityType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TransportFacilityType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TransportFacilityType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TransportFacilityType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='TransportFacilityType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2384,14 +2433,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Type': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Type') @@ -2421,11 +2470,11 @@ def __init__(self, AlternateTrackingInfo=None, ActivityLocation=None, Status=Non self.AlternateTrackingInfo = [] else: self.AlternateTrackingInfo = AlternateTrackingInfo - self.AlternateTrackingInfo_nsprefix_ = None + self.AlternateTrackingInfo_nsprefix_ = "trk" self.ActivityLocation = ActivityLocation - self.ActivityLocation_nsprefix_ = None + self.ActivityLocation_nsprefix_ = "trk" self.Status = Status - self.Status_nsprefix_ = None + self.Status_nsprefix_ = "trk" self.Date = Date self.Date_nsprefix_ = None self.Time = Time @@ -2439,17 +2488,17 @@ def __init__(self, AlternateTrackingInfo=None, ActivityLocation=None, Status=Non self.DeliveryDateFromManifestIndicator = DeliveryDateFromManifestIndicator self.DeliveryDateFromManifestIndicator_nsprefix_ = None self.NextScheduleActivity = NextScheduleActivity - self.NextScheduleActivity_nsprefix_ = None + self.NextScheduleActivity_nsprefix_ = "trk" if Document is None: self.Document = [] else: self.Document = Document - self.Document_nsprefix_ = None + self.Document_nsprefix_ = "trk" if AdditionalAttribute is None: self.AdditionalAttribute = [] else: self.AdditionalAttribute = AdditionalAttribute - self.AdditionalAttribute_nsprefix_ = None + self.AdditionalAttribute_nsprefix_ = "trk" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -2531,7 +2580,7 @@ def insert_AdditionalAttribute_at(self, index, value): self.AdditionalAttribute.insert(index, value) def replace_AdditionalAttribute_at(self, index, value): self.AdditionalAttribute[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.AlternateTrackingInfo or self.ActivityLocation is not None or @@ -2564,17 +2613,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ActivityType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ActivityType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ActivityType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ActivityType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ActivityType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ActivityType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ActivityType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ActivityType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2627,14 +2676,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AlternateTrackingInfo': obj_ = AlternateTrackingInfoType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -2741,7 +2790,7 @@ def get_Time(self): return self.Time def set_Time(self, Time): self.Time = Time - def hasContent_(self): + def _hasContent(self): if ( self.Date is not None or self.Time is not None @@ -2764,17 +2813,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='N showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='NextScheduleActivityType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='NextScheduleActivityType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='NextScheduleActivityType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='NextScheduleActivityType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='NextScheduleActivityType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='NextScheduleActivityType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='NextScheduleActivityType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='NextScheduleActivityType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2793,14 +2842,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Date': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Date') @@ -2880,7 +2929,7 @@ def get_CountryCode(self): return self.CountryCode def set_CountryCode(self, CountryCode): self.CountryCode = CountryCode - def hasContent_(self): + def _hasContent(self): if ( self.AddressLine or self.City is not None or @@ -2906,17 +2955,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AddressType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AddressType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AddressType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AddressType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2947,14 +2996,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AddressLine': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'AddressLine') @@ -3025,7 +3074,7 @@ def get_MonetaryValue(self): return self.MonetaryValue def set_MonetaryValue(self, MonetaryValue): self.MonetaryValue = MonetaryValue - def hasContent_(self): + def _hasContent(self): if ( self.CurrencyCode is not None or self.MonetaryValue is not None @@ -3048,17 +3097,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AmountType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AmountType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AmountType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AmountType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AmountType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AmountType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AmountType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AmountType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3077,14 +3126,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CurrencyCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CurrencyCode') @@ -3137,7 +3186,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -3160,17 +3209,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CommonCodeDescriptionType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CommonCodeDescriptionType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CommonCodeDescriptionType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CommonCodeDescriptionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CommonCodeDescriptionType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CommonCodeDescriptionType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CommonCodeDescriptionType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CommonCodeDescriptionType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3189,14 +3238,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -3223,9 +3272,9 @@ def __init__(self, Amount=None, Status=None, ControlNumber=None, gds_collector_= self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Amount = Amount - self.Amount_nsprefix_ = None + self.Amount_nsprefix_ = "trk" self.Status = Status - self.Status_nsprefix_ = None + self.Status_nsprefix_ = "trk" self.ControlNumber = ControlNumber self.ControlNumber_nsprefix_ = None def factory(*args_, **kwargs_): @@ -3255,7 +3304,7 @@ def get_ControlNumber(self): return self.ControlNumber def set_ControlNumber(self, ControlNumber): self.ControlNumber = ControlNumber - def hasContent_(self): + def _hasContent(self): if ( self.Amount is not None or self.Status is not None or @@ -3279,17 +3328,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CODType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CODType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CODType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CODType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CODType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CODType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CODType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CODType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3310,14 +3359,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Amount': obj_ = AmountType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -3374,7 +3423,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -3397,17 +3446,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CODStatusType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CODStatusType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CODStatusType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CODStatusType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CODStatusType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CODStatusType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CODStatusType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CODStatusType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3426,14 +3475,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -3460,7 +3509,7 @@ def __init__(self, Type=None, Date=None, Time=None, gds_collector_=None, **kwarg self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Type = Type - self.Type_nsprefix_ = None + self.Type_nsprefix_ = "trk" self.Date = Date self.Date_nsprefix_ = None self.Time = Time @@ -3492,7 +3541,7 @@ def get_Time(self): return self.Time def set_Time(self, Time): self.Time = Time - def hasContent_(self): + def _hasContent(self): if ( self.Type is not None or self.Date is not None or @@ -3516,17 +3565,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DeliveryDetailType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DeliveryDetailType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DeliveryDetailType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DeliveryDetailType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DeliveryDetailType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DeliveryDetailType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DeliveryDetailType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DeliveryDetailType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3548,14 +3597,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Type': obj_ = CommonCodeDescriptionType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -3613,7 +3662,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -3636,17 +3685,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='I showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ImageFormatType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ImageFormatType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ImageFormatType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ImageFormatType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ImageFormatType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ImageFormatType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ImageFormatType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ImageFormatType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3665,14 +3714,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -3725,7 +3774,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -3748,17 +3797,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='M showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='MessageType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='MessageType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='MessageType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='MessageType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='MessageType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='MessageType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='MessageType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='MessageType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3777,14 +3826,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -3811,7 +3860,7 @@ def __init__(self, Type=None, Value=None, gds_collector_=None, **kwargs_): self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Type = Type - self.Type_nsprefix_ = None + self.Type_nsprefix_ = "trk" self.Value = Value self.Value_nsprefix_ = None def factory(*args_, **kwargs_): @@ -3837,7 +3886,7 @@ def get_Value(self): return self.Value def set_Value(self, Value): self.Value = Value - def hasContent_(self): + def _hasContent(self): if ( self.Type is not None or self.Value is not None @@ -3860,17 +3909,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='N showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='NumberOfPackagingUnitType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='NumberOfPackagingUnitType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='NumberOfPackagingUnitType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='NumberOfPackagingUnitType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='NumberOfPackagingUnitType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='NumberOfPackagingUnitType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='NumberOfPackagingUnitType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='NumberOfPackagingUnitType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3888,14 +3937,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Type': obj_ = CommonCodeDescriptionType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -3927,43 +3976,43 @@ def __init__(self, TrackingNumber=None, DeliveryIndicator=None, DeliveryDate=Non self.DeliveryDate = DeliveryDate self.DeliveryDate_nsprefix_ = None self.Redirect = Redirect - self.Redirect_nsprefix_ = None + self.Redirect_nsprefix_ = "trk" if DeliveryDetail is None: self.DeliveryDetail = [] else: self.DeliveryDetail = DeliveryDetail - self.DeliveryDetail_nsprefix_ = None + self.DeliveryDetail_nsprefix_ = "trk" if PackageAddress is None: self.PackageAddress = [] else: self.PackageAddress = PackageAddress - self.PackageAddress_nsprefix_ = None + self.PackageAddress_nsprefix_ = "trk" if PackageServiceOption is None: self.PackageServiceOption = [] else: self.PackageServiceOption = PackageServiceOption - self.PackageServiceOption_nsprefix_ = None + self.PackageServiceOption_nsprefix_ = "trk" self.COD = COD - self.COD_nsprefix_ = None + self.COD_nsprefix_ = "trk" self.SRSizeCode = SRSizeCode self.SRSizeCode_nsprefix_ = None if Activity is None: self.Activity = [] else: self.Activity = Activity - self.Activity_nsprefix_ = None + self.Activity_nsprefix_ = "trk" if Message is None: self.Message = [] else: self.Message = Message - self.Message_nsprefix_ = None + self.Message_nsprefix_ = "trk" self.PackageWeight = PackageWeight - self.PackageWeight_nsprefix_ = None + self.PackageWeight_nsprefix_ = "trk" if ReferenceNumber is None: self.ReferenceNumber = [] else: self.ReferenceNumber = ReferenceNumber - self.ReferenceNumber_nsprefix_ = None + self.ReferenceNumber_nsprefix_ = "trk" if AlternateTrackingNumber is None: self.AlternateTrackingNumber = [] else: @@ -3973,11 +4022,11 @@ def __init__(self, TrackingNumber=None, DeliveryIndicator=None, DeliveryDate=Non self.AlternateTrackingInfo = [] else: self.AlternateTrackingInfo = AlternateTrackingInfo - self.AlternateTrackingInfo_nsprefix_ = None + self.AlternateTrackingInfo_nsprefix_ = "trk" self.DimensionalWeightScanIndicator = DimensionalWeightScanIndicator self.DimensionalWeightScanIndicator_nsprefix_ = None self.PreauthorizedReturnInformation = PreauthorizedReturnInformation - self.PreauthorizedReturnInformation_nsprefix_ = None + self.PreauthorizedReturnInformation_nsprefix_ = "trk" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -4109,7 +4158,7 @@ def get_PreauthorizedReturnInformation(self): return self.PreauthorizedReturnInformation def set_PreauthorizedReturnInformation(self, PreauthorizedReturnInformation): self.PreauthorizedReturnInformation = PreauthorizedReturnInformation - def hasContent_(self): + def _hasContent(self): if ( self.TrackingNumber is not None or self.DeliveryIndicator is not None or @@ -4147,17 +4196,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4225,14 +4274,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'TrackingNumber': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'TrackingNumber') @@ -4370,7 +4419,7 @@ def get_PickupDate(self): return self.PickupDate def set_PickupDate(self, PickupDate): self.PickupDate = PickupDate - def hasContent_(self): + def _hasContent(self): if ( self.CompanyName is not None or self.LocationID is not None or @@ -4394,17 +4443,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RedirectType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RedirectType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RedirectType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RedirectType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RedirectType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RedirectType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RedirectType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='RedirectType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4427,14 +4476,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CompanyName': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CompanyName') @@ -4493,7 +4542,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Type is not None or self.Description is not None @@ -4516,17 +4565,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DeliveryDateUnavailableType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DeliveryDateUnavailableType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DeliveryDateUnavailableType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DeliveryDateUnavailableType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DeliveryDateUnavailableType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DeliveryDateUnavailableType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DeliveryDateUnavailableType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DeliveryDateUnavailableType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4545,14 +4594,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Type': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Type') @@ -4579,9 +4628,9 @@ def __init__(self, Type=None, Address=None, gds_collector_=None, **kwargs_): self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Type = Type - self.Type_nsprefix_ = None + self.Type_nsprefix_ = "trk" self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "trk" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -4605,7 +4654,7 @@ def get_Address(self): return self.Address def set_Address(self, Address): self.Address = Address - def hasContent_(self): + def _hasContent(self): if ( self.Type is not None or self.Address is not None @@ -4628,17 +4677,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageAddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageAddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageAddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageAddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageAddressType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageAddressType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageAddressType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageAddressType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4655,14 +4704,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Type': obj_ = CommonCodeDescriptionType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -4713,7 +4762,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -4736,17 +4785,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ProductCodeDescriptionType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ProductCodeDescriptionType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ProductCodeDescriptionType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ProductCodeDescriptionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ProductCodeDescriptionType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ProductCodeDescriptionType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ProductCodeDescriptionType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ProductCodeDescriptionType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4765,14 +4814,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -4819,7 +4868,7 @@ def get_HTMLImage(self): return self.HTMLImage def set_HTMLImage(self, HTMLImage): self.HTMLImage = HTMLImage - def hasContent_(self): + def _hasContent(self): if ( self.HTMLImage is not None ): @@ -4841,17 +4890,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PODLetterType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PODLetterType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PODLetterType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PODLetterType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PODLetterType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PODLetterType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PODLetterType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PODLetterType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4866,14 +4915,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'HTMLImage': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'HTMLImage') @@ -4914,7 +4963,7 @@ def get_CustomerContext(self): return self.CustomerContext def set_CustomerContext(self, CustomerContext): self.CustomerContext = CustomerContext - def hasContent_(self): + def _hasContent(self): if ( self.CustomerContext is not None ): @@ -4936,17 +4985,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='R showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseTransactionReferenceType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseTransactionReferenceType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseTransactionReferenceType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseTransactionReferenceType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ResponseTransactionReferenceType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ResponseTransactionReferenceType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ResponseTransactionReferenceType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ResponseTransactionReferenceType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -4961,14 +5010,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CustomerContext': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CustomerContext') @@ -5015,7 +5064,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -5038,17 +5087,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ServiceType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ServiceType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ServiceType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ServiceType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ServiceType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ServiceType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ServiceType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ServiceType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5067,14 +5116,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -5133,7 +5182,7 @@ def get_Value(self): return self.Value def set_Value(self, Value): self.Value = Value - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None or @@ -5157,17 +5206,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentReferenceNumberType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentReferenceNumberType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentReferenceNumberType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentReferenceNumberType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentReferenceNumberType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentReferenceNumberType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentReferenceNumberType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentReferenceNumberType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5190,14 +5239,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -5230,9 +5279,9 @@ def __init__(self, InquiryNumber=None, ShipmentType_member=None, CandidateBookma self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.InquiryNumber = InquiryNumber - self.InquiryNumber_nsprefix_ = None + self.InquiryNumber_nsprefix_ = "trk" self.ShipmentType = ShipmentType_member - self.ShipmentType_nsprefix_ = None + self.ShipmentType_nsprefix_ = "trk" self.CandidateBookmark = CandidateBookmark self.CandidateBookmark_nsprefix_ = None self.ShipperNumber = ShipperNumber @@ -5241,84 +5290,84 @@ def __init__(self, InquiryNumber=None, ShipmentType_member=None, CandidateBookma self.ShipmentAddress = [] else: self.ShipmentAddress = ShipmentAddress - self.ShipmentAddress_nsprefix_ = None + self.ShipmentAddress_nsprefix_ = "trk" self.ShipmentWeight = ShipmentWeight - self.ShipmentWeight_nsprefix_ = None + self.ShipmentWeight_nsprefix_ = "trk" self.Service = Service - self.Service_nsprefix_ = None + self.Service_nsprefix_ = "trk" if ReferenceNumber is None: self.ReferenceNumber = [] else: self.ReferenceNumber = ReferenceNumber - self.ReferenceNumber_nsprefix_ = None + self.ReferenceNumber_nsprefix_ = "trk" self.CurrentStatus = CurrentStatus - self.CurrentStatus_nsprefix_ = None + self.CurrentStatus_nsprefix_ = "trk" self.PickupDate = PickupDate self.PickupDate_nsprefix_ = None if ServiceCenter is None: self.ServiceCenter = [] else: self.ServiceCenter = ServiceCenter - self.ServiceCenter_nsprefix_ = None + self.ServiceCenter_nsprefix_ = "trk" self.DeliveryDateUnavailable = DeliveryDateUnavailable - self.DeliveryDateUnavailable_nsprefix_ = None + self.DeliveryDateUnavailable_nsprefix_ = "trk" if DeliveryDetail is None: self.DeliveryDetail = [] else: self.DeliveryDetail = DeliveryDetail - self.DeliveryDetail_nsprefix_ = None + self.DeliveryDetail_nsprefix_ = "trk" self.Volume = Volume - self.Volume_nsprefix_ = None + self.Volume_nsprefix_ = "trk" self.BillToName = BillToName self.BillToName_nsprefix_ = None if NumberOfPackagingUnit is None: self.NumberOfPackagingUnit = [] else: self.NumberOfPackagingUnit = NumberOfPackagingUnit - self.NumberOfPackagingUnit_nsprefix_ = None + self.NumberOfPackagingUnit_nsprefix_ = "trk" self.COD = COD - self.COD_nsprefix_ = None + self.COD_nsprefix_ = "trk" self.SignedForByName = SignedForByName self.SignedForByName_nsprefix_ = None if Activity is None: self.Activity = [] else: self.Activity = Activity - self.Activity_nsprefix_ = None + self.Activity_nsprefix_ = "trk" self.OriginPortDetail = OriginPortDetail - self.OriginPortDetail_nsprefix_ = None + self.OriginPortDetail_nsprefix_ = "trk" self.DestinationPortDetail = DestinationPortDetail - self.DestinationPortDetail_nsprefix_ = None + self.DestinationPortDetail_nsprefix_ = "trk" self.DescriptionOfGoods = DescriptionOfGoods self.DescriptionOfGoods_nsprefix_ = None self.CargoReady = CargoReady - self.CargoReady_nsprefix_ = None + self.CargoReady_nsprefix_ = "trk" self.Manifest = Manifest - self.Manifest_nsprefix_ = None + self.Manifest_nsprefix_ = "trk" if CarrierActivityInformation is None: self.CarrierActivityInformation = [] else: self.CarrierActivityInformation = CarrierActivityInformation - self.CarrierActivityInformation_nsprefix_ = None + self.CarrierActivityInformation_nsprefix_ = "trk" if Document is None: self.Document = [] else: self.Document = Document - self.Document_nsprefix_ = None + self.Document_nsprefix_ = "trk" self.FileNumber = FileNumber self.FileNumber_nsprefix_ = None self.Appointment = Appointment - self.Appointment_nsprefix_ = None + self.Appointment_nsprefix_ = "trk" if Package is None: self.Package = [] else: self.Package = Package - self.Package_nsprefix_ = None + self.Package_nsprefix_ = "trk" if AdditionalAttribute is None: self.AdditionalAttribute = [] else: self.AdditionalAttribute = AdditionalAttribute - self.AdditionalAttribute_nsprefix_ = None + self.AdditionalAttribute_nsprefix_ = "trk" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -5514,7 +5563,7 @@ def insert_AdditionalAttribute_at(self, index, value): self.AdditionalAttribute.insert(index, value) def replace_AdditionalAttribute_at(self, index, value): self.AdditionalAttribute[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.InquiryNumber is not None or self.ShipmentType is not None or @@ -5565,17 +5614,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5683,14 +5732,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'InquiryNumber': obj_ = CodeDescriptionValueType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -5862,9 +5911,9 @@ def __init__(self, Type=None, Address=None, gds_collector_=None, **kwargs_): self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Type = Type - self.Type_nsprefix_ = None + self.Type_nsprefix_ = "trk" self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "trk" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -5888,7 +5937,7 @@ def get_Address(self): return self.Address def set_Address(self, Address): self.Address = Address - def hasContent_(self): + def _hasContent(self): if ( self.Type is not None or self.Address is not None @@ -5911,17 +5960,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentAddressType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentAddressType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentAddressType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentAddressType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentAddressType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentAddressType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentAddressType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentAddressType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -5938,14 +5987,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Type': obj_ = CommonCodeDescriptionType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -5970,9 +6019,9 @@ def __init__(self, Made=None, Requested=None, BeginTime=None, EndTime=None, gds_ self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Made = Made - self.Made_nsprefix_ = None + self.Made_nsprefix_ = "trk" self.Requested = Requested - self.Requested_nsprefix_ = None + self.Requested_nsprefix_ = "trk" self.BeginTime = BeginTime self.BeginTime_nsprefix_ = None self.EndTime = EndTime @@ -6008,7 +6057,7 @@ def get_EndTime(self): return self.EndTime def set_EndTime(self, EndTime): self.EndTime = EndTime - def hasContent_(self): + def _hasContent(self): if ( self.Made is not None or self.Requested is not None or @@ -6033,17 +6082,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AppointmentType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AppointmentType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AppointmentType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AppointmentType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AppointmentType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AppointmentType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AppointmentType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AppointmentType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6068,14 +6117,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Made': obj_ = DateTimeType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -6144,7 +6193,7 @@ def get_Value(self): return self.Value def set_Value(self, Value): self.Value = Value - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None or @@ -6168,17 +6217,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeDescriptionValueType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeDescriptionValueType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeDescriptionValueType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeDescriptionValueType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CodeDescriptionValueType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CodeDescriptionValueType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CodeDescriptionValueType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CodeDescriptionValueType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6201,14 +6250,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -6273,7 +6322,7 @@ def get_Value(self): return self.Value def set_Value(self, Value): self.Value = Value - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None or @@ -6297,17 +6346,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AdditionalCodeDescriptionValueType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AdditionalCodeDescriptionValueType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AdditionalCodeDescriptionValueType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AdditionalCodeDescriptionValueType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AdditionalCodeDescriptionValueType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AdditionalCodeDescriptionValueType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AdditionalCodeDescriptionValueType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AdditionalCodeDescriptionValueType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6330,14 +6379,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -6372,7 +6421,7 @@ def __init__(self, GraphicImage=None, ImageFormat=None, gds_collector_=None, **k self.GraphicImage = GraphicImage self.GraphicImage_nsprefix_ = None self.ImageFormat = ImageFormat - self.ImageFormat_nsprefix_ = None + self.ImageFormat_nsprefix_ = "trk" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -6396,7 +6445,7 @@ def get_ImageFormat(self): return self.ImageFormat def set_ImageFormat(self, ImageFormat): self.ImageFormat = ImageFormat - def hasContent_(self): + def _hasContent(self): if ( self.GraphicImage is not None or self.ImageFormat is not None @@ -6419,17 +6468,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SignatureImageType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SignatureImageType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='SignatureImageType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='SignatureImageType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='SignatureImageType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='SignatureImageType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='SignatureImageType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='SignatureImageType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6447,14 +6496,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'GraphicImage': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'GraphicImage') @@ -6512,7 +6561,7 @@ def get_Code(self): return self.Code def set_Code(self, Code): self.Code = Code - def hasContent_(self): + def _hasContent(self): if ( self.Type is not None or self.Description is not None or @@ -6536,17 +6585,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='StatusType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='StatusType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='StatusType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='StatusType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='StatusType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='StatusType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='StatusType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='StatusType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6569,14 +6618,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Type': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Type') @@ -6635,7 +6684,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -6658,17 +6707,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='U showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UnitOfMeasurementType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UnitOfMeasurementType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UnitOfMeasurementType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UnitOfMeasurementType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UnitOfMeasurementType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UnitOfMeasurementType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UnitOfMeasurementType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UnitOfMeasurementType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6687,14 +6736,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -6721,7 +6770,7 @@ def __init__(self, UnitOfMeasurement=None, Value=None, gds_collector_=None, **kw self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.UnitOfMeasurement = UnitOfMeasurement - self.UnitOfMeasurement_nsprefix_ = None + self.UnitOfMeasurement_nsprefix_ = "trk" self.Value = Value self.Value_nsprefix_ = None def factory(*args_, **kwargs_): @@ -6747,7 +6796,7 @@ def get_Value(self): return self.Value def set_Value(self, Value): self.Value = Value - def hasContent_(self): + def _hasContent(self): if ( self.UnitOfMeasurement is not None or self.Value is not None @@ -6770,17 +6819,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='V showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='VolumeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='VolumeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='VolumeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='VolumeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='VolumeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='VolumeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='VolumeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='VolumeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6798,14 +6847,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'UnitOfMeasurement': obj_ = UnitOfMeasurementType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -6831,7 +6880,7 @@ def __init__(self, UnitOfMeasurement=None, Weight=None, gds_collector_=None, **k self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.UnitOfMeasurement = UnitOfMeasurement - self.UnitOfMeasurement_nsprefix_ = None + self.UnitOfMeasurement_nsprefix_ = "trk" self.Weight = Weight self.Weight_nsprefix_ = None def factory(*args_, **kwargs_): @@ -6857,7 +6906,7 @@ def get_Weight(self): return self.Weight def set_Weight(self, Weight): self.Weight = Weight - def hasContent_(self): + def _hasContent(self): if ( self.UnitOfMeasurement is not None or self.Weight is not None @@ -6880,17 +6929,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='W showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='WeightType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='WeightType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='WeightType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='WeightType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='WeightType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='WeightType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='WeightType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='WeightType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -6908,14 +6957,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'UnitOfMeasurement': obj_ = UnitOfMeasurementType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -6967,7 +7016,7 @@ def get_Time(self): return self.Time def set_Time(self, Time): self.Time = Time - def hasContent_(self): + def _hasContent(self): if ( self.Date is not None or self.Time is not None @@ -6990,17 +7039,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DateTimeType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DateTimeType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DateTimeType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DateTimeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DateTimeType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DateTimeType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DateTimeType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DateTimeType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7019,14 +7068,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Date': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Date') @@ -7053,9 +7102,9 @@ def __init__(self, Type=None, Address=None, gds_collector_=None, **kwargs_): self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Type = Type - self.Type_nsprefix_ = None + self.Type_nsprefix_ = "trk" self.Address = Address - self.Address_nsprefix_ = None + self.Address_nsprefix_ = "trk" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -7079,7 +7128,7 @@ def get_Address(self): return self.Address def set_Address(self, Address): self.Address = Address - def hasContent_(self): + def _hasContent(self): if ( self.Type is not None or self.Address is not None @@ -7102,17 +7151,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ServiceCenterType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ServiceCenterType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ServiceCenterType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ServiceCenterType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ServiceCenterType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ServiceCenterType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ServiceCenterType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ServiceCenterType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7129,14 +7178,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Type': obj_ = CommonCodeDescriptionType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -7161,7 +7210,7 @@ def __init__(self, Type=None, Value=None, gds_collector_=None, **kwargs_): self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Type = Type - self.Type_nsprefix_ = None + self.Type_nsprefix_ = "trk" self.Value = Value self.Value_nsprefix_ = None def factory(*args_, **kwargs_): @@ -7187,7 +7236,7 @@ def get_Value(self): return self.Value def set_Value(self, Value): self.Value = Value - def hasContent_(self): + def _hasContent(self): if ( self.Type is not None or self.Value is not None @@ -7210,17 +7259,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ServiceOptionType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ServiceOptionType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ServiceOptionType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ServiceOptionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ServiceOptionType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ServiceOptionType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ServiceOptionType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ServiceOptionType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7238,14 +7287,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Type': obj_ = CommonCodeDescriptionType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -7271,11 +7320,11 @@ def __init__(self, Type=None, Content=None, Format=None, gds_collector_=None, ** self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Type = Type - self.Type_nsprefix_ = None + self.Type_nsprefix_ = "trk" self.Content = Content self.Content_nsprefix_ = None self.Format = Format - self.Format_nsprefix_ = None + self.Format_nsprefix_ = "trk" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -7303,7 +7352,7 @@ def get_Format(self): return self.Format def set_Format(self, Format): self.Format = Format - def hasContent_(self): + def _hasContent(self): if ( self.Type is not None or self.Content is not None or @@ -7327,17 +7376,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DocumentType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DocumentType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DocumentType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DocumentType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DocumentType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DocumentType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DocumentType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DocumentType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7358,14 +7407,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Type': obj_ = CommonCodeDescriptionType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -7396,7 +7445,7 @@ def __init__(self, ActivityLocation=None, Description=None, Date=None, Time=None self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.ActivityLocation = ActivityLocation - self.ActivityLocation_nsprefix_ = None + self.ActivityLocation_nsprefix_ = "trk" self.Description = Description self.Description_nsprefix_ = None self.Date = Date @@ -7440,7 +7489,7 @@ def get_Trailer(self): return self.Trailer def set_Trailer(self, Trailer): self.Trailer = Trailer - def hasContent_(self): + def _hasContent(self): if ( self.ActivityLocation is not None or self.Description is not None or @@ -7466,17 +7515,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentActivityType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipmentActivityType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentActivityType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipmentActivityType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentActivityType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipmentActivityType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentActivityType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipmentActivityType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7506,14 +7555,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ActivityLocation': obj_ = AddressType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -7559,7 +7608,7 @@ def __init__(self, OriginPort=None, EstimatedDeparture=None, gds_collector_=None self.OriginPort = OriginPort self.OriginPort_nsprefix_ = None self.EstimatedDeparture = EstimatedDeparture - self.EstimatedDeparture_nsprefix_ = None + self.EstimatedDeparture_nsprefix_ = "trk" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -7583,7 +7632,7 @@ def get_EstimatedDeparture(self): return self.EstimatedDeparture def set_EstimatedDeparture(self, EstimatedDeparture): self.EstimatedDeparture = EstimatedDeparture - def hasContent_(self): + def _hasContent(self): if ( self.OriginPort is not None or self.EstimatedDeparture is not None @@ -7606,17 +7655,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='O showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='OriginPortDetailType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='OriginPortDetailType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='OriginPortDetailType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='OriginPortDetailType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='OriginPortDetailType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='OriginPortDetailType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='OriginPortDetailType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='OriginPortDetailType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7634,14 +7683,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'OriginPort': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'OriginPort') @@ -7669,7 +7718,7 @@ def __init__(self, DestinationPort=None, EstimatedArrival=None, gds_collector_=N self.DestinationPort = DestinationPort self.DestinationPort_nsprefix_ = None self.EstimatedArrival = EstimatedArrival - self.EstimatedArrival_nsprefix_ = None + self.EstimatedArrival_nsprefix_ = "trk" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -7693,7 +7742,7 @@ def get_EstimatedArrival(self): return self.EstimatedArrival def set_EstimatedArrival(self, EstimatedArrival): self.EstimatedArrival = EstimatedArrival - def hasContent_(self): + def _hasContent(self): if ( self.DestinationPort is not None or self.EstimatedArrival is not None @@ -7716,17 +7765,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='D showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DestinationPortDetailType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DestinationPortDetailType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DestinationPortDetailType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DestinationPortDetailType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DestinationPortDetailType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DestinationPortDetailType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DestinationPortDetailType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DestinationPortDetailType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7744,14 +7793,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'DestinationPort': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'DestinationPort') @@ -7783,9 +7832,9 @@ def __init__(self, CarrierId=None, Description=None, Status=None, Arrival=None, self.Status = Status self.Status_nsprefix_ = None self.Arrival = Arrival - self.Arrival_nsprefix_ = None + self.Arrival_nsprefix_ = "trk" self.Departure = Departure - self.Departure_nsprefix_ = None + self.Departure_nsprefix_ = "trk" self.OriginPort = OriginPort self.OriginPort_nsprefix_ = None self.DestinationPort = DestinationPort @@ -7833,7 +7882,7 @@ def get_DestinationPort(self): return self.DestinationPort def set_DestinationPort(self, DestinationPort): self.DestinationPort = DestinationPort - def hasContent_(self): + def _hasContent(self): if ( self.CarrierId is not None or self.Description is not None or @@ -7861,17 +7910,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CarrierActivityInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CarrierActivityInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CarrierActivityInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CarrierActivityInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CarrierActivityInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CarrierActivityInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CarrierActivityInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CarrierActivityInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -7908,14 +7957,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CarrierId': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CarrierId') @@ -7996,7 +8045,7 @@ def get_CountryCode(self): return self.CountryCode def set_CountryCode(self, CountryCode): self.CountryCode = CountryCode - def hasContent_(self): + def _hasContent(self): if ( self.PostalCode is not None or self.CountryCode is not None @@ -8019,17 +8068,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipperAccountInfoType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ShipperAccountInfoType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipperAccountInfoType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ShipperAccountInfoType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipperAccountInfoType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ShipperAccountInfoType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipperAccountInfoType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ShipperAccountInfoType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8048,14 +8097,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'PostalCode': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'PostalCode') @@ -8108,7 +8157,7 @@ def get_Value(self): return self.Value def set_Value(self, Value): self.Value = Value - def hasContent_(self): + def _hasContent(self): if ( self.Type is not None or self.Value is not None @@ -8131,17 +8180,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='A showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AlternateTrackingInfoType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AlternateTrackingInfoType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AlternateTrackingInfoType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AlternateTrackingInfoType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AlternateTrackingInfoType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AlternateTrackingInfoType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AlternateTrackingInfoType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='AlternateTrackingInfoType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8160,14 +8209,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Type': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Type') @@ -8238,7 +8287,7 @@ def get_ReturnTrackingNumber(self): return self.ReturnTrackingNumber def set_ReturnTrackingNumber(self, ReturnTrackingNumber): self.ReturnTrackingNumber = ReturnTrackingNumber - def hasContent_(self): + def _hasContent(self): if ( self.ReturnEligibilityIndicator is not None or self.ReturnExpirationDate is not None or @@ -8264,17 +8313,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PreauthorizedReturnInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PreauthorizedReturnInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PreauthorizedReturnInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PreauthorizedReturnInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PreauthorizedReturnInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PreauthorizedReturnInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PreauthorizedReturnInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PreauthorizedReturnInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8305,14 +8354,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ReturnEligibilityIndicator': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ReturnEligibilityIndicator') @@ -8386,7 +8435,7 @@ def insert_Property_at(self, index, value): self.Property.insert(index, value) def replace_Property_at(self, index, value): self.Property[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Property ): @@ -8408,17 +8457,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ClientInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ClientInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ClientInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ClientInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ClientInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ClientInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ClientInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ClientInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8432,14 +8481,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Property': obj_ = PropertyType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -8466,7 +8515,7 @@ def __init__(self, RequestOption=None, SubVersion=None, TransactionReference=Non self.SubVersion = SubVersion self.SubVersion_nsprefix_ = None self.TransactionReference = TransactionReference - self.TransactionReference_nsprefix_ = None + self.TransactionReference_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -8500,7 +8549,7 @@ def get_TransactionReference(self): return self.TransactionReference def set_TransactionReference(self, TransactionReference): self.TransactionReference = TransactionReference - def hasContent_(self): + def _hasContent(self): if ( self.RequestOption or self.SubVersion is not None or @@ -8524,17 +8573,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='RequestType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='RequestType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='RequestType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='RequestType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8556,14 +8605,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'RequestOption': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'RequestOption') @@ -8621,7 +8670,7 @@ def get_TransactionIdentifier(self): return self.TransactionIdentifier def set_TransactionIdentifier(self, TransactionIdentifier): self.TransactionIdentifier = TransactionIdentifier - def hasContent_(self): + def _hasContent(self): if ( self.CustomerContext is not None or self.TransactionIdentifier is not None @@ -8644,17 +8693,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionReferenceType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionReferenceType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionReferenceType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionReferenceType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='TransactionReferenceType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='TransactionReferenceType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='TransactionReferenceType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='TransactionReferenceType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8673,14 +8722,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CustomerContext': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CustomerContext') @@ -8707,19 +8756,19 @@ def __init__(self, ResponseStatus=None, Alert=None, AlertDetail=None, Transactio self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.ResponseStatus = ResponseStatus - self.ResponseStatus_nsprefix_ = None + self.ResponseStatus_nsprefix_ = "common" if Alert is None: self.Alert = [] else: self.Alert = Alert - self.Alert_nsprefix_ = None + self.Alert_nsprefix_ = "common" if AlertDetail is None: self.AlertDetail = [] else: self.AlertDetail = AlertDetail - self.AlertDetail_nsprefix_ = None + self.AlertDetail_nsprefix_ = "common" self.TransactionReference = TransactionReference - self.TransactionReference_nsprefix_ = None + self.TransactionReference_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -8763,7 +8812,7 @@ def get_TransactionReference(self): return self.TransactionReference def set_TransactionReference(self, TransactionReference): self.TransactionReference = TransactionReference - def hasContent_(self): + def _hasContent(self): if ( self.ResponseStatus is not None or self.Alert or @@ -8788,17 +8837,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ResponseType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ResponseType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ResponseType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ResponseType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8821,14 +8870,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ResponseStatus': obj_ = CodeDescriptionType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -8889,7 +8938,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -8912,17 +8961,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeDescriptionType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeDescriptionType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeDescriptionType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeDescriptionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='CodeDescriptionType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='CodeDescriptionType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='CodeDescriptionType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='CodeDescriptionType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -8941,14 +8990,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -8979,7 +9028,7 @@ def __init__(self, Code=None, Description=None, ElementLevelInformation=None, gd self.Description = Description self.Description_nsprefix_ = None self.ElementLevelInformation = ElementLevelInformation - self.ElementLevelInformation_nsprefix_ = None + self.ElementLevelInformation_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -9007,7 +9056,7 @@ def get_ElementLevelInformation(self): return self.ElementLevelInformation def set_ElementLevelInformation(self, ElementLevelInformation): self.ElementLevelInformation = ElementLevelInformation - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None or @@ -9031,17 +9080,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DetailType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DetailType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DetailType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DetailType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='DetailType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='DetailType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='DetailType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='DetailType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -9063,14 +9112,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -9107,7 +9156,7 @@ def __init__(self, Level=None, ElementIdentifier=None, gds_collector_=None, **kw self.ElementIdentifier = [] else: self.ElementIdentifier = ElementIdentifier - self.ElementIdentifier_nsprefix_ = None + self.ElementIdentifier_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -9137,7 +9186,7 @@ def insert_ElementIdentifier_at(self, index, value): self.ElementIdentifier.insert(index, value) def replace_ElementIdentifier_at(self, index, value): self.ElementIdentifier[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Level is not None or self.ElementIdentifier @@ -9160,17 +9209,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementLevelInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementLevelInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementLevelInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementLevelInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementLevelInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementLevelInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementLevelInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementLevelInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -9188,14 +9237,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Level': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Level') @@ -9247,7 +9296,7 @@ def get_Value(self): return self.Value def set_Value(self, Value): self.Value = Value - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Value is not None @@ -9270,17 +9319,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementIdentifierType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementIdentifierType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementIdentifierType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementIdentifierType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementIdentifierType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementIdentifierType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementIdentifierType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementIdentifierType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -9299,14 +9348,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -9356,7 +9405,7 @@ def set_Key(self, Key): self.Key = Key def get_valueOf_(self): return self.valueOf_ def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_ - def hasContent_(self): + def _hasContent(self): if ( (1 if type(self.valueOf_) in [int,float] else self.valueOf_) ): @@ -9378,19 +9427,19 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PropertyType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PropertyType') + if self._hasContent(): outfile.write('>') outfile.write(self.convert_unicode(self.valueOf_)) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PropertyType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PropertyType', pretty_print=pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PropertyType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PropertyType'): if self.Key is not None and 'Key' not in already_processed: already_processed.add('Key') outfile.write(' Key=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.Key), input_name='Key')), )) - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PropertyType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PropertyType', fromsubclass_=False, pretty_print=True): pass def build(self, node, gds_collector_=None): self.gds_collector_ = gds_collector_ @@ -9398,18 +9447,18 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) self.valueOf_ = get_all_text_(node) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('Key', node) if value is not None and 'Key' not in already_processed: already_processed.add('Key') self.Key = value - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): pass # end class PropertyType @@ -9488,7 +9537,8 @@ def parse(inFileName, silence=False, print_warnings=True): return rootObj -def parseEtree(inFileName, silence=False, print_warnings=True): +def parseEtree(inFileName, silence=False, print_warnings=True, + mapping=None, reverse_mapping=None, nsmap=None): parser = None doc = parsexml_(inFileName, parser) gds_collector = GdsCollector_() @@ -9499,10 +9549,15 @@ def parseEtree(inFileName, silence=False, print_warnings=True): rootClass = TrackRequest rootObj = rootClass.factory() rootObj.build(rootNode, gds_collector_=gds_collector) + if mapping is None: + mapping = {} + if reverse_mapping is None: + reverse_mapping = {} + rootElement = rootObj.to_etree( + None, name_=rootTag, mapping_=mapping, + reverse_mapping_=reverse_mapping, nsmap_=nsmap) + reverse_node_mapping = rootObj.gds_reverse_node_mapping(mapping) # Enable Python to collect the space used by the DOM. - mapping = {} - rootElement = rootObj.to_etree(None, name_=rootTag, mapping_=mapping) - reverse_mapping = rootObj.gds_reverse_node_mapping(mapping) if not SaveElementTreeNode: doc = None rootNode = None @@ -9519,7 +9574,7 @@ def parseEtree(inFileName, silence=False, print_warnings=True): len(gds_collector.get_messages()), )) gds_collector.write_messages(sys.stderr) sys.stderr.write(separator) - return rootObj, rootElement, mapping, reverse_mapping + return rootObj, rootElement, mapping, reverse_node_mapping def parseString(inString, silence=False, print_warnings=True): @@ -9603,6 +9658,185 @@ def main(): RenameMappings_ = { } +# +# Mapping of namespaces to types defined in them +# and the file in which each is defined. +# simpleTypes are marked "ST" and complexTypes "CT". +NamespaceToDefMappings_ = {'http://www.ups.com/XMLSchema/XOLTWS/Common/v1.0': [('ClientInformationType', + './schemas/common.xsd', + 'CT'), + ('RequestType', + './schemas/common.xsd', + 'CT'), + ('TransactionReferenceType', + './schemas/common.xsd', + 'CT'), + ('ResponseType', + './schemas/common.xsd', + 'CT'), + ('CodeDescriptionType', + './schemas/common.xsd', + 'CT'), + ('DetailType', + './schemas/common.xsd', + 'CT'), + ('ElementLevelInformationType', + './schemas/common.xsd', + 'CT'), + ('ElementIdentifierType', + './schemas/common.xsd', + 'CT')], + 'http://www.ups.com/XMLSchema/XOLTWS/Track/v2.0': [('AddressRequestType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('RefShipmentType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('PickupDateRangeType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('ReferenceNumberType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('RequestTransactionReferenceType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('ShipToRequestType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('ShipFromRequestType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('ActivityLocationType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('TransportFacilityType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('ActivityType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('NextScheduleActivityType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('AddressType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('AmountType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('CommonCodeDescriptionType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('CODType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('CODStatusType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('DeliveryDetailType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('ImageFormatType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('MessageType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('NumberOfPackagingUnitType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('PackageType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('RedirectType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('DeliveryDateUnavailableType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('PackageAddressType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('ProductCodeDescriptionType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('PODLetterType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('ResponseTransactionReferenceType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('ServiceType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('ShipmentReferenceNumberType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('ShipmentType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('ShipmentAddressType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('AppointmentType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('CodeDescriptionValueType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('AdditionalCodeDescriptionValueType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('SignatureImageType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('StatusType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('UnitOfMeasurementType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('VolumeType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('WeightType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('DateTimeType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('ServiceCenterType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('ServiceOptionType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('DocumentType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('ShipmentActivityType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('OriginPortDetailType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('DestinationPortDetailType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('CarrierActivityInformationType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('ShipperAccountInfoType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('AlternateTrackingInfoType', + './schemas/TrackWebServiceSchema.xsd', + 'CT'), + ('PreauthorizedReturnInformationType', + './schemas/TrackWebServiceSchema.xsd', + 'CT')]} + __all__ = [ "ActivityLocationType", "ActivityType", diff --git a/schemas/ups/ups_lib/ups_security.py b/schemas/ups/ups_lib/ups_security.py index 3ea501be64..05475aae5b 100644 --- a/schemas/ups/ups_lib/ups_security.py +++ b/schemas/ups/ups_lib/ups_security.py @@ -2,34 +2,35 @@ # -*- coding: utf-8 -*- # -# Generated Sat Mar 7 09:04:21 2020 by generateDS.py version 2.35.15. -# Python 3.8.1 (v3.8.1:1b293b6006, Dec 18 2019, 14:08:53) [Clang 6.0 (clang-600.0.57)] +# Generated Wed Nov 10 10:01:04 2021 by generateDS.py version 2.40.5. +# Python 3.8.6 (v3.8.6:db455296be, Sep 23 2020, 13:31:39) [Clang 6.0 (clang-600.0.57)] # # Command line options: # ('--no-namespace-defs', '') -# ('-o', './python/ups_security.py') +# ('-o', './ups_lib/ups_security.py') # # Command line arguments: # ./schemas/UPSSecurity.xsd # # Command line: -# /Users/danielkobina/Documents/Open/.env/bin/generateDS --no-namespace-defs -o "./python/ups_security.py" ./schemas/UPSSecurity.xsd +# /Users/danielkobina/Workspace/project/purplship/.venv/purplship/bin/generateDS --no-namespace-defs -o "./ups_lib/ups_security.py" ./schemas/UPSSecurity.xsd # # Current working directory (os.getcwd()): -# 2020-03 +# ups # +import sys +try: + ModulenotfoundExp_ = ModuleNotFoundError +except NameError: + ModulenotfoundExp_ = ImportError from six.moves import zip_longest import os -import sys import re as re_ import base64 import datetime as datetime_ import decimal as decimal_ -try: - from lxml import etree as etree_ -except ImportError: - from xml.etree import ElementTree as etree_ +from lxml import etree as etree_ Validate_simpletypes_ = True @@ -92,7 +93,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # Additionally, the generatedsnamespaces module can contain a python # dictionary named GenerateDSNamespaceTypePrefixes that associates element # types with the namespace prefixes that are to be added to the -# "xsi:type" attribute value. See the exportAttributes method of +# "xsi:type" attribute value. See the _exportAttributes method of # any generated element type and the generation of "xsi:type" for an # example of the use of this table. # An example table: @@ -107,11 +108,11 @@ def parsexmlstring_(instring, parser=None, **kwargs): try: from generatedsnamespaces import GenerateDSNamespaceDefs as GenerateDSNamespaceDefs_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceDefs_ = {} try: from generatedsnamespaces import GenerateDSNamespaceTypePrefixes as GenerateDSNamespaceTypePrefixes_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceTypePrefixes_ = {} # @@ -122,7 +123,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # try: from generatedscollector import GdsCollector as GdsCollector_ -except ImportError: +except ModulenotfoundExp_ : class GdsCollector_(object): @@ -156,7 +157,7 @@ def write_messages(self, outstream): try: from enum import Enum -except ImportError: +except ModulenotfoundExp_ : Enum = object # @@ -168,9 +169,14 @@ def write_messages(self, outstream): try: from generatedssuper import GeneratedsSuper -except ImportError as exp: +except ModulenotfoundExp_ as exp: + try: + from generatedssupersuper import GeneratedsSuperSuper + except ModulenotfoundExp_ as exp: + class GeneratedsSuperSuper(object): + pass - class GeneratedsSuper(object): + class GeneratedsSuper(GeneratedsSuperSuper): __hash__ = object.__hash__ tzoff_pattern = re_.compile(r'(\+|-)((0\d|1[0-3]):[0-5]\d|14:00)$') class _FixedOffsetTZ(datetime_.tzinfo): @@ -183,6 +189,30 @@ def tzname(self, dt): return self.__name def dst(self, dt): return None + def __str__(self): + settings = { + 'str_pretty_print': True, + 'str_indent_level': 0, + 'str_namespaceprefix': '', + 'str_name': None, + 'str_namespacedefs': '', + } + for n in settings: + if hasattr(self, n): + setattr(settings[n], self[n]) + from io import StringIO + output = StringIO() + self.export( + output, + settings['str_indent_level'], + pretty_print=settings['str_pretty_print'], + namespaceprefix_=settings['str_namespaceprefix'], + name_=settings['str_name'], + namespacedef_=settings['str_namespacedefs'] + ) + strval = output.getvalue() + output.close() + return strval def gds_format_string(self, input_data, input_name=''): return input_data def gds_parse_string(self, input_data, node=None, input_name=''): @@ -193,11 +223,11 @@ def gds_validate_string(self, input_data, node=None, input_name=''): else: return input_data def gds_format_base64(self, input_data, input_name=''): - return base64.b64encode(input_data) + return base64.b64encode(input_data).decode('ascii') def gds_validate_base64(self, input_data, node=None, input_name=''): return input_data def gds_format_integer(self, input_data, input_name=''): - return '%d' % input_data + return '%d' % int(input_data) def gds_parse_integer(self, input_data, node=None, input_name=''): try: ival = int(input_data) @@ -211,6 +241,8 @@ def gds_validate_integer(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires integer value') return value def gds_format_integer_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_integer_list( self, input_data, node=None, input_name=''): @@ -219,10 +251,10 @@ def gds_validate_integer_list( try: int(value) except (TypeError, ValueError): - raise_parse_error(node, 'Requires sequence of integer valuess') + raise_parse_error(node, 'Requires sequence of integer values') return values def gds_format_float(self, input_data, input_name=''): - return ('%.15f' % input_data).rstrip('0') + return ('%.15f' % float(input_data)).rstrip('0') def gds_parse_float(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -236,6 +268,8 @@ def gds_validate_float(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires float value') return value def gds_format_float_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_float_list( self, input_data, node=None, input_name=''): @@ -247,7 +281,12 @@ def gds_validate_float_list( raise_parse_error(node, 'Requires sequence of float values') return values def gds_format_decimal(self, input_data, input_name=''): - return ('%s' % input_data).rstrip('0') + return_value = '%s' % input_data + if '.' in return_value: + return_value = return_value.rstrip('0') + if return_value.endswith('.'): + return_value = return_value.rstrip('.') + return return_value def gds_parse_decimal(self, input_data, node=None, input_name=''): try: decimal_value = decimal_.Decimal(input_data) @@ -261,7 +300,9 @@ def gds_validate_decimal(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires decimal value') return value def gds_format_decimal_list(self, input_data, input_name=''): - return '%s' % ' '.join(input_data) + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] + return ' '.join([self.gds_format_decimal(item) for item in input_data]) def gds_validate_decimal_list( self, input_data, node=None, input_name=''): values = input_data.split() @@ -272,7 +313,7 @@ def gds_validate_decimal_list( raise_parse_error(node, 'Requires sequence of decimal values') return values def gds_format_double(self, input_data, input_name=''): - return '%e' % input_data + return '%s' % input_data def gds_parse_double(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -286,6 +327,8 @@ def gds_validate_double(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires double or float value') return value def gds_format_double_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_double_list( self, input_data, node=None, input_name=''): @@ -315,11 +358,14 @@ def gds_validate_boolean(self, input_data, node=None, input_name=''): '(one of True, 1, False, 0)') return input_data def gds_format_boolean_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_boolean_list( self, input_data, node=None, input_name=''): values = input_data.split() for value in values: + value = self.gds_parse_boolean(value, node, input_name) if value not in (True, 1, False, 0, ): raise_parse_error( node, @@ -766,7 +812,10 @@ def find_attr_value_(attr_name, node): value = attrs.get(attr_name) elif len(attr_parts) == 2: prefix, name = attr_parts - namespace = node.nsmap.get(prefix) + if prefix == 'xml': + namespace = 'http://www.w3.org/XML/1998/namespace' + else: + namespace = node.nsmap.get(prefix) if namespace is not None: value = attrs.get('{%s}%s' % (namespace, name, )) return value @@ -847,7 +896,7 @@ def exportSimple(self, outfile, level, name): self.name, base64.b64encode(self.value), self.name)) - def to_etree(self, element): + def to_etree(self, element, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.category == MixedContainer.CategoryText: # Prevent exporting empty content as empty lines. if self.value.strip(): @@ -867,7 +916,7 @@ def to_etree(self, element): subelement.text = self.to_etree_simple() else: # category == MixedContainer.CategoryComplex self.value.to_etree(element) - def to_etree_simple(self): + def to_etree_simple(self, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.content_type == MixedContainer.TypeString: text = self.value elif (self.content_type == MixedContainer.TypeInteger or @@ -982,7 +1031,7 @@ def get_ServiceAccessToken(self): return self.ServiceAccessToken def set_ServiceAccessToken(self, ServiceAccessToken): self.ServiceAccessToken = ServiceAccessToken - def hasContent_(self): + def _hasContent(self): if ( self.UsernameToken is not None or self.ServiceAccessToken is not None @@ -1005,17 +1054,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='U showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UPSSecurity') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UPSSecurity') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UPSSecurity', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UPSSecurity', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UPSSecurity'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UPSSecurity'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UPSSecurity', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UPSSecurity', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1032,14 +1081,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'UsernameToken': obj_ = UsernameTokenType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1090,7 +1139,7 @@ def get_Password(self): return self.Password def set_Password(self, Password): self.Password = Password - def hasContent_(self): + def _hasContent(self): if ( self.Username is not None or self.Password is not None @@ -1113,17 +1162,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='U showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UsernameTokenType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UsernameTokenType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UsernameTokenType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UsernameTokenType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UsernameTokenType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UsernameTokenType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UsernameTokenType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='UsernameTokenType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1142,14 +1191,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Username': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Username') @@ -1196,7 +1245,7 @@ def get_AccessLicenseNumber(self): return self.AccessLicenseNumber def set_AccessLicenseNumber(self, AccessLicenseNumber): self.AccessLicenseNumber = AccessLicenseNumber - def hasContent_(self): + def _hasContent(self): if ( self.AccessLicenseNumber is not None ): @@ -1218,17 +1267,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ServiceAccessTokenType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ServiceAccessTokenType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ServiceAccessTokenType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ServiceAccessTokenType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ServiceAccessTokenType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ServiceAccessTokenType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ServiceAccessTokenType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='ServiceAccessTokenType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1243,14 +1292,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'AccessLicenseNumber': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'AccessLicenseNumber') @@ -1331,7 +1380,8 @@ def parse(inFileName, silence=False, print_warnings=True): return rootObj -def parseEtree(inFileName, silence=False, print_warnings=True): +def parseEtree(inFileName, silence=False, print_warnings=True, + mapping=None, reverse_mapping=None, nsmap=None): parser = None doc = parsexml_(inFileName, parser) gds_collector = GdsCollector_() @@ -1342,10 +1392,15 @@ def parseEtree(inFileName, silence=False, print_warnings=True): rootClass = UPSSecurity rootObj = rootClass.factory() rootObj.build(rootNode, gds_collector_=gds_collector) + if mapping is None: + mapping = {} + if reverse_mapping is None: + reverse_mapping = {} + rootElement = rootObj.to_etree( + None, name_=rootTag, mapping_=mapping, + reverse_mapping_=reverse_mapping, nsmap_=nsmap) + reverse_node_mapping = rootObj.gds_reverse_node_mapping(mapping) # Enable Python to collect the space used by the DOM. - mapping = {} - rootElement = rootObj.to_etree(None, name_=rootTag, mapping_=mapping) - reverse_mapping = rootObj.gds_reverse_node_mapping(mapping) if not SaveElementTreeNode: doc = None rootNode = None @@ -1362,7 +1417,7 @@ def parseEtree(inFileName, silence=False, print_warnings=True): len(gds_collector.get_messages()), )) gds_collector.write_messages(sys.stderr) sys.stderr.write(separator) - return rootObj, rootElement, mapping, reverse_mapping + return rootObj, rootElement, mapping, reverse_node_mapping def parseString(inString, silence=False, print_warnings=True): @@ -1446,6 +1501,12 @@ def main(): RenameMappings_ = { } +# +# Mapping of namespaces to types defined in them +# and the file in which each is defined. +# simpleTypes are marked "ST" and complexTypes "CT". +NamespaceToDefMappings_ = {'http://www.ups.com/XMLSchema/XOLTWS/UPSS/v1.0': []} + __all__ = [ "ServiceAccessTokenType", "UPSSecurity", diff --git a/schemas/ups/ups_lib/void_web_service_schema.py b/schemas/ups/ups_lib/void_web_service_schema.py index 172bf69168..8d30714db8 100644 --- a/schemas/ups/ups_lib/void_web_service_schema.py +++ b/schemas/ups/ups_lib/void_web_service_schema.py @@ -2,34 +2,35 @@ # -*- coding: utf-8 -*- # -# Generated Sat Mar 7 09:04:21 2020 by generateDS.py version 2.35.15. -# Python 3.8.1 (v3.8.1:1b293b6006, Dec 18 2019, 14:08:53) [Clang 6.0 (clang-600.0.57)] +# Generated Wed Nov 10 10:01:04 2021 by generateDS.py version 2.40.5. +# Python 3.8.6 (v3.8.6:db455296be, Sep 23 2020, 13:31:39) [Clang 6.0 (clang-600.0.57)] # # Command line options: # ('--no-namespace-defs', '') -# ('-o', './python/void_web_service_schema.py') +# ('-o', './ups_lib/void_web_service_schema.py') # # Command line arguments: # ./schemas/VoidWebServiceSchema.xsd # # Command line: -# /Users/danielkobina/Documents/Open/.env/bin/generateDS --no-namespace-defs -o "./python/void_web_service_schema.py" ./schemas/VoidWebServiceSchema.xsd +# /Users/danielkobina/Workspace/project/purplship/.venv/purplship/bin/generateDS --no-namespace-defs -o "./ups_lib/void_web_service_schema.py" ./schemas/VoidWebServiceSchema.xsd # # Current working directory (os.getcwd()): -# 2020-03 +# ups # +import sys +try: + ModulenotfoundExp_ = ModuleNotFoundError +except NameError: + ModulenotfoundExp_ = ImportError from six.moves import zip_longest import os -import sys import re as re_ import base64 import datetime as datetime_ import decimal as decimal_ -try: - from lxml import etree as etree_ -except ImportError: - from xml.etree import ElementTree as etree_ +from lxml import etree as etree_ Validate_simpletypes_ = True @@ -92,7 +93,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # Additionally, the generatedsnamespaces module can contain a python # dictionary named GenerateDSNamespaceTypePrefixes that associates element # types with the namespace prefixes that are to be added to the -# "xsi:type" attribute value. See the exportAttributes method of +# "xsi:type" attribute value. See the _exportAttributes method of # any generated element type and the generation of "xsi:type" for an # example of the use of this table. # An example table: @@ -107,11 +108,11 @@ def parsexmlstring_(instring, parser=None, **kwargs): try: from generatedsnamespaces import GenerateDSNamespaceDefs as GenerateDSNamespaceDefs_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceDefs_ = {} try: from generatedsnamespaces import GenerateDSNamespaceTypePrefixes as GenerateDSNamespaceTypePrefixes_ -except ImportError: +except ModulenotfoundExp_ : GenerateDSNamespaceTypePrefixes_ = {} # @@ -122,7 +123,7 @@ def parsexmlstring_(instring, parser=None, **kwargs): # try: from generatedscollector import GdsCollector as GdsCollector_ -except ImportError: +except ModulenotfoundExp_ : class GdsCollector_(object): @@ -156,7 +157,7 @@ def write_messages(self, outstream): try: from enum import Enum -except ImportError: +except ModulenotfoundExp_ : Enum = object # @@ -168,9 +169,14 @@ def write_messages(self, outstream): try: from generatedssuper import GeneratedsSuper -except ImportError as exp: +except ModulenotfoundExp_ as exp: + try: + from generatedssupersuper import GeneratedsSuperSuper + except ModulenotfoundExp_ as exp: + class GeneratedsSuperSuper(object): + pass - class GeneratedsSuper(object): + class GeneratedsSuper(GeneratedsSuperSuper): __hash__ = object.__hash__ tzoff_pattern = re_.compile(r'(\+|-)((0\d|1[0-3]):[0-5]\d|14:00)$') class _FixedOffsetTZ(datetime_.tzinfo): @@ -183,6 +189,30 @@ def tzname(self, dt): return self.__name def dst(self, dt): return None + def __str__(self): + settings = { + 'str_pretty_print': True, + 'str_indent_level': 0, + 'str_namespaceprefix': '', + 'str_name': None, + 'str_namespacedefs': '', + } + for n in settings: + if hasattr(self, n): + setattr(settings[n], self[n]) + from io import StringIO + output = StringIO() + self.export( + output, + settings['str_indent_level'], + pretty_print=settings['str_pretty_print'], + namespaceprefix_=settings['str_namespaceprefix'], + name_=settings['str_name'], + namespacedef_=settings['str_namespacedefs'] + ) + strval = output.getvalue() + output.close() + return strval def gds_format_string(self, input_data, input_name=''): return input_data def gds_parse_string(self, input_data, node=None, input_name=''): @@ -193,11 +223,11 @@ def gds_validate_string(self, input_data, node=None, input_name=''): else: return input_data def gds_format_base64(self, input_data, input_name=''): - return base64.b64encode(input_data) + return base64.b64encode(input_data).decode('ascii') def gds_validate_base64(self, input_data, node=None, input_name=''): return input_data def gds_format_integer(self, input_data, input_name=''): - return '%d' % input_data + return '%d' % int(input_data) def gds_parse_integer(self, input_data, node=None, input_name=''): try: ival = int(input_data) @@ -211,6 +241,8 @@ def gds_validate_integer(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires integer value') return value def gds_format_integer_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_integer_list( self, input_data, node=None, input_name=''): @@ -219,10 +251,10 @@ def gds_validate_integer_list( try: int(value) except (TypeError, ValueError): - raise_parse_error(node, 'Requires sequence of integer valuess') + raise_parse_error(node, 'Requires sequence of integer values') return values def gds_format_float(self, input_data, input_name=''): - return ('%.15f' % input_data).rstrip('0') + return ('%.15f' % float(input_data)).rstrip('0') def gds_parse_float(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -236,6 +268,8 @@ def gds_validate_float(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires float value') return value def gds_format_float_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_float_list( self, input_data, node=None, input_name=''): @@ -247,7 +281,12 @@ def gds_validate_float_list( raise_parse_error(node, 'Requires sequence of float values') return values def gds_format_decimal(self, input_data, input_name=''): - return ('%s' % input_data).rstrip('0') + return_value = '%s' % input_data + if '.' in return_value: + return_value = return_value.rstrip('0') + if return_value.endswith('.'): + return_value = return_value.rstrip('.') + return return_value def gds_parse_decimal(self, input_data, node=None, input_name=''): try: decimal_value = decimal_.Decimal(input_data) @@ -261,7 +300,9 @@ def gds_validate_decimal(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires decimal value') return value def gds_format_decimal_list(self, input_data, input_name=''): - return '%s' % ' '.join(input_data) + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] + return ' '.join([self.gds_format_decimal(item) for item in input_data]) def gds_validate_decimal_list( self, input_data, node=None, input_name=''): values = input_data.split() @@ -272,7 +313,7 @@ def gds_validate_decimal_list( raise_parse_error(node, 'Requires sequence of decimal values') return values def gds_format_double(self, input_data, input_name=''): - return '%e' % input_data + return '%s' % input_data def gds_parse_double(self, input_data, node=None, input_name=''): try: fval_ = float(input_data) @@ -286,6 +327,8 @@ def gds_validate_double(self, input_data, node=None, input_name=''): raise_parse_error(node, 'Requires double or float value') return value def gds_format_double_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_double_list( self, input_data, node=None, input_name=''): @@ -315,11 +358,14 @@ def gds_validate_boolean(self, input_data, node=None, input_name=''): '(one of True, 1, False, 0)') return input_data def gds_format_boolean_list(self, input_data, input_name=''): + if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_): + input_data = [str(s) for s in input_data] return '%s' % ' '.join(input_data) def gds_validate_boolean_list( self, input_data, node=None, input_name=''): values = input_data.split() for value in values: + value = self.gds_parse_boolean(value, node, input_name) if value not in (True, 1, False, 0, ): raise_parse_error( node, @@ -766,7 +812,10 @@ def find_attr_value_(attr_name, node): value = attrs.get(attr_name) elif len(attr_parts) == 2: prefix, name = attr_parts - namespace = node.nsmap.get(prefix) + if prefix == 'xml': + namespace = 'http://www.w3.org/XML/1998/namespace' + else: + namespace = node.nsmap.get(prefix) if namespace is not None: value = attrs.get('{%s}%s' % (namespace, name, )) return value @@ -847,7 +896,7 @@ def exportSimple(self, outfile, level, name): self.name, base64.b64encode(self.value), self.name)) - def to_etree(self, element): + def to_etree(self, element, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.category == MixedContainer.CategoryText: # Prevent exporting empty content as empty lines. if self.value.strip(): @@ -867,7 +916,7 @@ def to_etree(self, element): subelement.text = self.to_etree_simple() else: # category == MixedContainer.CategoryComplex self.value.to_etree(element) - def to_etree_simple(self): + def to_etree_simple(self, mapping_=None, reverse_mapping_=None, nsmap_=None): if self.content_type == MixedContainer.TypeString: text = self.value elif (self.content_type == MixedContainer.TypeInteger or @@ -956,7 +1005,7 @@ def __init__(self, Request=None, VoidShipment=None, gds_collector_=None, **kwarg self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Request = Request - self.Request_nsprefix_ = None + self.Request_nsprefix_ = "common" self.VoidShipment = VoidShipment self.VoidShipment_nsprefix_ = None def factory(*args_, **kwargs_): @@ -982,7 +1031,7 @@ def get_VoidShipment(self): return self.VoidShipment def set_VoidShipment(self, VoidShipment): self.VoidShipment = VoidShipment - def hasContent_(self): + def _hasContent(self): if ( self.Request is not None or self.VoidShipment is not None @@ -1005,17 +1054,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='V showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='VoidShipmentRequest') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='VoidShipmentRequest') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='VoidShipmentRequest', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='VoidShipmentRequest', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='VoidShipmentRequest'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='VoidShipmentRequest'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='VoidShipmentRequest', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='VoidShipmentRequest', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1032,14 +1081,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Request': obj_ = RequestType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1064,14 +1113,14 @@ def __init__(self, Response=None, SummaryResult=None, PackageLevelResult=None, g self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.Response = Response - self.Response_nsprefix_ = None + self.Response_nsprefix_ = "common" self.SummaryResult = SummaryResult self.SummaryResult_nsprefix_ = None if PackageLevelResult is None: self.PackageLevelResult = [] else: self.PackageLevelResult = PackageLevelResult - self.PackageLevelResult_nsprefix_ = None + self.PackageLevelResult_nsprefix_ = "void" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1105,7 +1154,7 @@ def insert_PackageLevelResult_at(self, index, value): self.PackageLevelResult.insert(index, value) def replace_PackageLevelResult_at(self, index, value): self.PackageLevelResult[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Response is not None or self.SummaryResult is not None or @@ -1129,17 +1178,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='V showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='VoidShipmentResponse') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='VoidShipmentResponse') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='VoidShipmentResponse', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='VoidShipmentResponse', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='VoidShipmentResponse'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='VoidShipmentResponse'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='VoidShipmentResponse', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='VoidShipmentResponse', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1159,14 +1208,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Response': obj_ = ResponseType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1222,7 +1271,7 @@ def get_Status(self): return self.Status def set_Status(self, Status): self.Status = Status - def hasContent_(self): + def _hasContent(self): if ( self.TrackingNumber is not None or self.Status is not None @@ -1245,17 +1294,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageLevelResult') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PackageLevelResult') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageLevelResult', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PackageLevelResult', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageLevelResult'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PackageLevelResult'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageLevelResult', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PackageLevelResult', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1273,14 +1322,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'TrackingNumber': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'TrackingNumber') @@ -1332,7 +1381,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -1355,17 +1404,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='C showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeDescriptionType1') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeDescriptionType1') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeDescriptionType1', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeDescriptionType1', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CodeDescriptionType1'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CodeDescriptionType1'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CodeDescriptionType1', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='CodeDescriptionType1', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1384,14 +1433,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -1447,7 +1496,7 @@ def insert_Property_at(self, index, value): self.Property.insert(index, value) def replace_Property_at(self, index, value): self.Property[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Property ): @@ -1469,17 +1518,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ClientInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ClientInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ClientInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ClientInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ClientInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ClientInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ClientInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ClientInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1493,14 +1542,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Property': obj_ = PropertyType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1527,7 +1576,7 @@ def __init__(self, RequestOption=None, SubVersion=None, TransactionReference=Non self.SubVersion = SubVersion self.SubVersion_nsprefix_ = None self.TransactionReference = TransactionReference - self.TransactionReference_nsprefix_ = None + self.TransactionReference_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1561,7 +1610,7 @@ def get_TransactionReference(self): return self.TransactionReference def set_TransactionReference(self, TransactionReference): self.TransactionReference = TransactionReference - def hasContent_(self): + def _hasContent(self): if ( self.RequestOption or self.SubVersion is not None or @@ -1585,17 +1634,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RequestType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RequestType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='RequestType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='RequestType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='RequestType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='RequestType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1617,14 +1666,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'RequestOption': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'RequestOption') @@ -1682,7 +1731,7 @@ def get_TransactionIdentifier(self): return self.TransactionIdentifier def set_TransactionIdentifier(self, TransactionIdentifier): self.TransactionIdentifier = TransactionIdentifier - def hasContent_(self): + def _hasContent(self): if ( self.CustomerContext is not None or self.TransactionIdentifier is not None @@ -1705,17 +1754,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionReferenceType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TransactionReferenceType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionReferenceType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TransactionReferenceType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='TransactionReferenceType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='TransactionReferenceType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='TransactionReferenceType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='TransactionReferenceType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1734,14 +1783,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'CustomerContext': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'CustomerContext') @@ -1768,19 +1817,19 @@ def __init__(self, ResponseStatus=None, Alert=None, AlertDetail=None, Transactio self.parent_object_ = kwargs_.get('parent_object_') self.ns_prefix_ = None self.ResponseStatus = ResponseStatus - self.ResponseStatus_nsprefix_ = None + self.ResponseStatus_nsprefix_ = "common" if Alert is None: self.Alert = [] else: self.Alert = Alert - self.Alert_nsprefix_ = None + self.Alert_nsprefix_ = "common" if AlertDetail is None: self.AlertDetail = [] else: self.AlertDetail = AlertDetail - self.AlertDetail_nsprefix_ = None + self.AlertDetail_nsprefix_ = "common" self.TransactionReference = TransactionReference - self.TransactionReference_nsprefix_ = None + self.TransactionReference_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -1824,7 +1873,7 @@ def get_TransactionReference(self): return self.TransactionReference def set_TransactionReference(self, TransactionReference): self.TransactionReference = TransactionReference - def hasContent_(self): + def _hasContent(self): if ( self.ResponseStatus is not None or self.Alert or @@ -1849,17 +1898,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ResponseType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ResponseType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ResponseType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ResponseType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ResponseType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ResponseType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1882,14 +1931,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ResponseStatus': obj_ = CodeDescriptionType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -1950,7 +1999,7 @@ def get_Description(self): return self.Description def set_Description(self, Description): self.Description = Description - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None @@ -1973,17 +2022,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeDescriptionType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CodeDescriptionType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeDescriptionType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CodeDescriptionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='CodeDescriptionType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='CodeDescriptionType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='CodeDescriptionType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='CodeDescriptionType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2002,14 +2051,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -2040,7 +2089,7 @@ def __init__(self, Code=None, Description=None, ElementLevelInformation=None, gd self.Description = Description self.Description_nsprefix_ = None self.ElementLevelInformation = ElementLevelInformation - self.ElementLevelInformation_nsprefix_ = None + self.ElementLevelInformation_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -2068,7 +2117,7 @@ def get_ElementLevelInformation(self): return self.ElementLevelInformation def set_ElementLevelInformation(self, ElementLevelInformation): self.ElementLevelInformation = ElementLevelInformation - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Description is not None or @@ -2092,17 +2141,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DetailType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DetailType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DetailType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DetailType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='DetailType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='DetailType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='DetailType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='DetailType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2124,14 +2173,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -2168,7 +2217,7 @@ def __init__(self, Level=None, ElementIdentifier=None, gds_collector_=None, **kw self.ElementIdentifier = [] else: self.ElementIdentifier = ElementIdentifier - self.ElementIdentifier_nsprefix_ = None + self.ElementIdentifier_nsprefix_ = "common" def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( @@ -2198,7 +2247,7 @@ def insert_ElementIdentifier_at(self, index, value): self.ElementIdentifier.insert(index, value) def replace_ElementIdentifier_at(self, index, value): self.ElementIdentifier[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.Level is not None or self.ElementIdentifier @@ -2221,17 +2270,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementLevelInformationType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementLevelInformationType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementLevelInformationType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementLevelInformationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementLevelInformationType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementLevelInformationType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementLevelInformationType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementLevelInformationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2249,14 +2298,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Level': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Level') @@ -2308,7 +2357,7 @@ def get_Value(self): return self.Value def set_Value(self, Value): self.Value = Value - def hasContent_(self): + def _hasContent(self): if ( self.Code is not None or self.Value is not None @@ -2331,17 +2380,17 @@ def export(self, outfile, level, namespaceprefix_='common:', namespacedef_='', n showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementIdentifierType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ElementIdentifierType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementIdentifierType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ElementIdentifierType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementIdentifierType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='common:', name_='ElementIdentifierType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementIdentifierType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='common:', namespacedef_='', name_='ElementIdentifierType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2360,14 +2409,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Code': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'Code') @@ -2429,7 +2478,7 @@ def insert_TrackingNumber_at(self, index, value): self.TrackingNumber.insert(index, value) def replace_TrackingNumber_at(self, index, value): self.TrackingNumber[index] = value - def hasContent_(self): + def _hasContent(self): if ( self.ShipmentIdentificationNumber is not None or self.TrackingNumber @@ -2452,17 +2501,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='V showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='VoidShipmentType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='VoidShipmentType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='VoidShipmentType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='VoidShipmentType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='VoidShipmentType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='VoidShipmentType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='VoidShipmentType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='VoidShipmentType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2481,14 +2530,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'ShipmentIdentificationNumber': value_ = child_.text value_ = self.gds_parse_string(value_, node, 'ShipmentIdentificationNumber') @@ -2535,7 +2584,7 @@ def get_Status(self): return self.Status def set_Status(self, Status): self.Status = Status - def hasContent_(self): + def _hasContent(self): if ( self.Status is not None ): @@ -2557,17 +2606,17 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='S showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SummaryResultType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SummaryResultType') + if self._hasContent(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='SummaryResultType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='SummaryResultType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='SummaryResultType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='SummaryResultType'): pass - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='SummaryResultType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='SummaryResultType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2581,14 +2630,14 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): pass - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if nodeName_ == 'Status': obj_ = CodeDescriptionType.factory(parent_object_=self) obj_.build(child_, gds_collector_=gds_collector_) @@ -2631,7 +2680,7 @@ def set_Key(self, Key): self.Key = Key def get_valueOf_(self): return self.valueOf_ def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_ - def hasContent_(self): + def _hasContent(self): if ( (1 if type(self.valueOf_) in [int,float] else self.valueOf_) ): @@ -2653,19 +2702,19 @@ def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='P showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PropertyType') - if self.hasContent_(): + self._exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PropertyType') + if self._hasContent(): outfile.write('>') outfile.write(self.convert_unicode(self.valueOf_)) - self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PropertyType', pretty_print=pretty_print) + self._exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PropertyType', pretty_print=pretty_print) outfile.write('%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PropertyType'): + def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PropertyType'): if self.Key is not None and 'Key' not in already_processed: already_processed.add('Key') outfile.write(' Key=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.Key), input_name='Key')), )) - def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PropertyType', fromsubclass_=False, pretty_print=True): + def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='PropertyType', fromsubclass_=False, pretty_print=True): pass def build(self, node, gds_collector_=None): self.gds_collector_ = gds_collector_ @@ -2673,18 +2722,18 @@ def build(self, node, gds_collector_=None): self.gds_elementtree_node_ = node already_processed = set() self.ns_prefix_ = node.prefix - self.buildAttributes(node, node.attrib, already_processed) + self._buildAttributes(node, node.attrib, already_processed) self.valueOf_ = get_all_text_(node) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] - self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) + self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_) return self - def buildAttributes(self, node, attrs, already_processed): + def _buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('Key', node) if value is not None and 'Key' not in already_processed: already_processed.add('Key') self.Key = value - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): pass # end class PropertyType @@ -2763,7 +2812,8 @@ def parse(inFileName, silence=False, print_warnings=True): return rootObj -def parseEtree(inFileName, silence=False, print_warnings=True): +def parseEtree(inFileName, silence=False, print_warnings=True, + mapping=None, reverse_mapping=None, nsmap=None): parser = None doc = parsexml_(inFileName, parser) gds_collector = GdsCollector_() @@ -2774,10 +2824,15 @@ def parseEtree(inFileName, silence=False, print_warnings=True): rootClass = VoidShipmentRequest rootObj = rootClass.factory() rootObj.build(rootNode, gds_collector_=gds_collector) + if mapping is None: + mapping = {} + if reverse_mapping is None: + reverse_mapping = {} + rootElement = rootObj.to_etree( + None, name_=rootTag, mapping_=mapping, + reverse_mapping_=reverse_mapping, nsmap_=nsmap) + reverse_node_mapping = rootObj.gds_reverse_node_mapping(mapping) # Enable Python to collect the space used by the DOM. - mapping = {} - rootElement = rootObj.to_etree(None, name_=rootTag, mapping_=mapping) - reverse_mapping = rootObj.gds_reverse_node_mapping(mapping) if not SaveElementTreeNode: doc = None rootNode = None @@ -2794,7 +2849,7 @@ def parseEtree(inFileName, silence=False, print_warnings=True): len(gds_collector.get_messages()), )) gds_collector.write_messages(sys.stderr) sys.stderr.write(separator) - return rootObj, rootElement, mapping, reverse_mapping + return rootObj, rootElement, mapping, reverse_node_mapping def parseString(inString, silence=False, print_warnings=True): @@ -2879,6 +2934,41 @@ def main(): "{http://www.ups.com/XMLSchema/XOLTWS/Void/v1.1}CodeDescriptionType": "CodeDescriptionType1", } +# +# Mapping of namespaces to types defined in them +# and the file in which each is defined. +# simpleTypes are marked "ST" and complexTypes "CT". +NamespaceToDefMappings_ = {'http://www.ups.com/XMLSchema/XOLTWS/Common/v1.0': [('ClientInformationType', + './schemas/common.xsd', + 'CT'), + ('RequestType', + './schemas/common.xsd', + 'CT'), + ('TransactionReferenceType', + './schemas/common.xsd', + 'CT'), + ('ResponseType', + './schemas/common.xsd', + 'CT'), + ('CodeDescriptionType', + './schemas/common.xsd', + 'CT'), + ('DetailType', + './schemas/common.xsd', + 'CT'), + ('ElementLevelInformationType', + './schemas/common.xsd', + 'CT'), + ('ElementIdentifierType', + './schemas/common.xsd', + 'CT')], + 'http://www.ups.com/XMLSchema/XOLTWS/Void/v1.1': [('PackageLevelResult', + './schemas/VoidWebServiceSchema.xsd', + 'CT'), + ('CodeDescriptionType', + './schemas/VoidWebServiceSchema.xsd', + 'CT')]} + __all__ = [ "ClientInformationType", "CodeDescriptionType", diff --git a/schemas/usps/poetry.lock b/schemas/usps/poetry.lock deleted file mode 100644 index a2399304f4..0000000000 --- a/schemas/usps/poetry.lock +++ /dev/null @@ -1,71 +0,0 @@ -[[package]] -name = "lxml" -version = "4.6.2" -description = "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API." -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*" - -[package.extras] -cssselect = ["cssselect (>=0.7)"] -html5 = ["html5lib"] -htmlsoup = ["beautifulsoup4"] -source = ["Cython (>=0.29.7)"] - -[[package]] -name = "six" -version = "1.15.0" -description = "Python 2 and 3 compatibility utilities" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.6" -content-hash = "ac23fabec3fe14e5c01d89383de3fd7c7e0642c06d783be7b52b7c138c673571" - -[metadata.files] -lxml = [ - {file = "lxml-4.6.2-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:a9d6bc8642e2c67db33f1247a77c53476f3a166e09067c0474facb045756087f"}, - {file = "lxml-4.6.2-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:791394449e98243839fa822a637177dd42a95f4883ad3dec2a0ce6ac99fb0a9d"}, - {file = "lxml-4.6.2-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:68a5d77e440df94011214b7db907ec8f19e439507a70c958f750c18d88f995d2"}, - {file = "lxml-4.6.2-cp27-cp27m-win32.whl", hash = "sha256:fc37870d6716b137e80d19241d0e2cff7a7643b925dfa49b4c8ebd1295eb506e"}, - {file = "lxml-4.6.2-cp27-cp27m-win_amd64.whl", hash = "sha256:69a63f83e88138ab7642d8f61418cf3180a4d8cd13995df87725cb8b893e950e"}, - {file = "lxml-4.6.2-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:42ebca24ba2a21065fb546f3e6bd0c58c3fe9ac298f3a320147029a4850f51a2"}, - {file = "lxml-4.6.2-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:f83d281bb2a6217cd806f4cf0ddded436790e66f393e124dfe9731f6b3fb9afe"}, - {file = "lxml-4.6.2-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:535f067002b0fd1a4e5296a8f1bf88193080ff992a195e66964ef2a6cfec5388"}, - {file = "lxml-4.6.2-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:366cb750140f221523fa062d641393092813b81e15d0e25d9f7c6025f910ee80"}, - {file = "lxml-4.6.2-cp35-cp35m-manylinux2014_aarch64.whl", hash = "sha256:97db258793d193c7b62d4e2586c6ed98d51086e93f9a3af2b2034af01450a74b"}, - {file = "lxml-4.6.2-cp35-cp35m-win32.whl", hash = "sha256:648914abafe67f11be7d93c1a546068f8eff3c5fa938e1f94509e4a5d682b2d8"}, - {file = "lxml-4.6.2-cp35-cp35m-win_amd64.whl", hash = "sha256:4e751e77006da34643ab782e4a5cc21ea7b755551db202bc4d3a423b307db780"}, - {file = "lxml-4.6.2-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:681d75e1a38a69f1e64ab82fe4b1ed3fd758717bed735fb9aeaa124143f051af"}, - {file = "lxml-4.6.2-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:127f76864468d6630e1b453d3ffbbd04b024c674f55cf0a30dc2595137892d37"}, - {file = "lxml-4.6.2-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:4fb85c447e288df535b17ebdebf0ec1cf3a3f1a8eba7e79169f4f37af43c6b98"}, - {file = "lxml-4.6.2-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:5be4a2e212bb6aa045e37f7d48e3e1e4b6fd259882ed5a00786f82e8c37ce77d"}, - {file = "lxml-4.6.2-cp36-cp36m-win32.whl", hash = "sha256:8c88b599e226994ad4db29d93bc149aa1aff3dc3a4355dd5757569ba78632bdf"}, - {file = "lxml-4.6.2-cp36-cp36m-win_amd64.whl", hash = "sha256:6e4183800f16f3679076dfa8abf2db3083919d7e30764a069fb66b2b9eff9939"}, - {file = "lxml-4.6.2-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:d8d3d4713f0c28bdc6c806a278d998546e8efc3498949e3ace6e117462ac0a5e"}, - {file = "lxml-4.6.2-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:8246f30ca34dc712ab07e51dc34fea883c00b7ccb0e614651e49da2c49a30711"}, - {file = "lxml-4.6.2-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:923963e989ffbceaa210ac37afc9b906acebe945d2723e9679b643513837b089"}, - {file = "lxml-4.6.2-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:1471cee35eba321827d7d53d104e7b8c593ea3ad376aa2df89533ce8e1b24a01"}, - {file = "lxml-4.6.2-cp37-cp37m-win32.whl", hash = "sha256:2363c35637d2d9d6f26f60a208819e7eafc4305ce39dc1d5005eccc4593331c2"}, - {file = "lxml-4.6.2-cp37-cp37m-win_amd64.whl", hash = "sha256:f4822c0660c3754f1a41a655e37cb4dbbc9be3d35b125a37fab6f82d47674ebc"}, - {file = "lxml-4.6.2-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:0448576c148c129594d890265b1a83b9cd76fd1f0a6a04620753d9a6bcfd0a4d"}, - {file = "lxml-4.6.2-cp38-cp38-manylinux1_i686.whl", hash = "sha256:60a20bfc3bd234d54d49c388950195d23a5583d4108e1a1d47c9eef8d8c042b3"}, - {file = "lxml-4.6.2-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:2e5cc908fe43fe1aa299e58046ad66981131a66aea3129aac7770c37f590a644"}, - {file = "lxml-4.6.2-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:50c348995b47b5a4e330362cf39fc503b4a43b14a91c34c83b955e1805c8e308"}, - {file = "lxml-4.6.2-cp38-cp38-win32.whl", hash = "sha256:94d55bd03d8671686e3f012577d9caa5421a07286dd351dfef64791cf7c6c505"}, - {file = "lxml-4.6.2-cp38-cp38-win_amd64.whl", hash = "sha256:7a7669ff50f41225ca5d6ee0a1ec8413f3a0d8aa2b109f86d540887b7ec0d72a"}, - {file = "lxml-4.6.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:e0bfe9bb028974a481410432dbe1b182e8191d5d40382e5b8ff39cdd2e5c5931"}, - {file = "lxml-4.6.2-cp39-cp39-manylinux1_i686.whl", hash = "sha256:6fd8d5903c2e53f49e99359b063df27fdf7acb89a52b6a12494208bf61345a03"}, - {file = "lxml-4.6.2-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:7e9eac1e526386df7c70ef253b792a0a12dd86d833b1d329e038c7a235dfceb5"}, - {file = "lxml-4.6.2-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:7ee8af0b9f7de635c61cdd5b8534b76c52cd03536f29f51151b377f76e214a1a"}, - {file = "lxml-4.6.2-cp39-cp39-win32.whl", hash = "sha256:2e6fd1b8acd005bd71e6c94f30c055594bbd0aa02ef51a22bbfa961ab63b2d75"}, - {file = "lxml-4.6.2-cp39-cp39-win_amd64.whl", hash = "sha256:535332fe9d00c3cd455bd3dd7d4bacab86e2d564bdf7606079160fa6251caacf"}, - {file = "lxml-4.6.2.tar.gz", hash = "sha256:cd11c7e8d21af997ee8079037fff88f16fda188a9776eb4b81c7e4c9c0a7d7fc"}, -] -six = [ - {file = "six-1.15.0-py2.py3-none-any.whl", hash = "sha256:8b74bedcbbbaca38ff6d7491d76f2b06b3592611af620f8426e82dddb04a5ced"}, - {file = "six-1.15.0.tar.gz", hash = "sha256:30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259"}, -] diff --git a/schemas/usps/pyproject.toml b/schemas/usps/pyproject.toml index af20e27a7a..5a767d4e80 100644 --- a/schemas/usps/pyproject.toml +++ b/schemas/usps/pyproject.toml @@ -5,7 +5,7 @@ description = "USPS Web API Schemas Python Data Types library" repository="https://github.com/Purplship/purplship-carriers" homepage="https://github.com/Purplship/purplship-carriers/tree/master/usps" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [ { include = "usps_lib" } diff --git a/schemas/yanwen/poetry.lock b/schemas/yanwen/poetry.lock deleted file mode 100644 index c0f20eefa8..0000000000 --- a/schemas/yanwen/poetry.lock +++ /dev/null @@ -1,38 +0,0 @@ -[[package]] -name = "attrs" -version = "21.2.0" -description = "Classes Without Boilerplate" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" - -[package.extras] -dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit"] -docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"] -tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface"] -tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins"] - -[[package]] -name = "jstruct" -version = "2021.7" -description = "Readable serializable and deserializable Python nested models" -category = "main" -optional = false -python-versions = "*" - -[package.dependencies] -attrs = "*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.6" -content-hash = "d4bb079c1f203114105cccb0b7dfb0a164371ce2fd95810733400e543cc47dac" - -[metadata.files] -attrs = [ - {file = "attrs-21.2.0-py2.py3-none-any.whl", hash = "sha256:149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1"}, - {file = "attrs-21.2.0.tar.gz", hash = "sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"}, -] -jstruct = [ - {file = "jstruct-2021.7-py3-none-any.whl", hash = "sha256:e423aa7336c025581ff7b3dae3c886753d22a884d38f18f99a4836a6c97ff8a2"}, -] diff --git a/schemas/yanwen/pyproject.toml b/schemas/yanwen/pyproject.toml index 459717c18b..f859e4d2cc 100644 --- a/schemas/yanwen/pyproject.toml +++ b/schemas/yanwen/pyproject.toml @@ -5,7 +5,7 @@ description = "DHL eCommerce API Schemas Python Data Types library" repository="https://github.com/purplship/purplship" homepage="https://github.com/purplship/purplship/tree/main/carrier.yanwen" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [{ include = "yanwen_lib" }] classifiers = [ diff --git a/schemas/yunexpress/poetry.lock b/schemas/yunexpress/poetry.lock deleted file mode 100644 index c0f20eefa8..0000000000 --- a/schemas/yunexpress/poetry.lock +++ /dev/null @@ -1,38 +0,0 @@ -[[package]] -name = "attrs" -version = "21.2.0" -description = "Classes Without Boilerplate" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" - -[package.extras] -dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit"] -docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"] -tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface"] -tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins"] - -[[package]] -name = "jstruct" -version = "2021.7" -description = "Readable serializable and deserializable Python nested models" -category = "main" -optional = false -python-versions = "*" - -[package.dependencies] -attrs = "*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.6" -content-hash = "d4bb079c1f203114105cccb0b7dfb0a164371ce2fd95810733400e543cc47dac" - -[metadata.files] -attrs = [ - {file = "attrs-21.2.0-py2.py3-none-any.whl", hash = "sha256:149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1"}, - {file = "attrs-21.2.0.tar.gz", hash = "sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"}, -] -jstruct = [ - {file = "jstruct-2021.7-py3-none-any.whl", hash = "sha256:e423aa7336c025581ff7b3dae3c886753d22a884d38f18f99a4836a6c97ff8a2"}, -] diff --git a/schemas/yunexpress/pyproject.toml b/schemas/yunexpress/pyproject.toml index 965110218b..fd697b9a1b 100644 --- a/schemas/yunexpress/pyproject.toml +++ b/schemas/yunexpress/pyproject.toml @@ -5,7 +5,7 @@ description = "Purolator Web API Schemas Python Data Types library" repository="https://github.com/purplship/purplship" homepage="https://github.com/purplship/purplship/tree/main/carrier.yunexpress" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [ { include = "yunexpress_lib" } diff --git a/scripts/build-insiders-image.sh b/scripts/build-insiders-image.sh new file mode 100755 index 0000000000..a03342c02c --- /dev/null +++ b/scripts/build-insiders-image.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +# Source environment variables +source "scripts/_env.sh" + +echo 'building insiders cloud image...' +docker build -f "${ROOT}/docker/Dockerfile" \ + -t registry.gitlab.com/purplship/cloud:$1 \ + --build-arg REQUIREMENTS="requirements.insiders.txt" \ + --build-arg REGISTRY_TOKEN="${REGISTRY_TOKEN}" \ + --build-arg REGISTRY_TOKEN_NAME="${REGISTRY_TOKEN_NAME}" \ + "${ROOT}" "${@:2}" diff --git a/scripts/build-package-wheel.sh b/scripts/build-package-wheel.sh index 2f049e1824..d773c5c1f7 100755 --- a/scripts/build-package-wheel.sh +++ b/scripts/build-package-wheel.sh @@ -11,6 +11,8 @@ clean_build_files . # build wheel if [ -f "pyproject.toml" ]; then + rm -f poetry.lock + poetry update output=$(poetry build -f wheel 2>&1); r=$?; else diff --git a/scripts/create-new-env.sh b/scripts/create-new-env.sh index aaa87ca61b..2ffdeafed4 100755 --- a/scripts/create-new-env.sh +++ b/scripts/create-new-env.sh @@ -24,5 +24,3 @@ pip install pip --upgrade if [[ "$*" != *--empty* ]]; then pip install -r "${ROOT}/requirements.dev.txt" fi - -pip list diff --git a/scripts/publish-wheels.sh b/scripts/publish-wheels.sh index 8d01dff74e..08922693ba 100755 --- a/scripts/publish-wheels.sh +++ b/scripts/publish-wheels.sh @@ -4,4 +4,13 @@ source "scripts/activate-env.sh" > /dev/null 2>&1 echo 'uploading wheels...' pip install twine && -twine upload "${DIST}/*" + +# Install requirements +cd "${ROOT}" +if [[ "$*" != *--insiders* ]]; +then + twine upload "${DIST}/*" +else + twine upload --repository gitlab "${EE_DIST}/*" +fi +cd - diff --git a/scripts/server.sh b/scripts/server.sh index c89b06a5eb..c57f133f5b 100755 --- a/scripts/server.sh +++ b/scripts/server.sh @@ -28,6 +28,7 @@ if [[ "$*" == *gen:graph* ]]; then cd - elif [[ "$*" == *gen:openapi* ]]; then cd "${ROOT:?}" + docker rm -f swagger purplship generate_swagger -f json -o -u https://app.purplship.com "${ROOT:?}/server/schemas/swagger.json" docker run -d -p 8085:8080 --rm --name swagger swaggerapi/swagger-converter:v1.0.2 sleep 5 && @@ -73,8 +74,9 @@ elif [[ "$*" == *gen:py:cli* ]]; then cd - elif [[ "$*" == *build:js* ]]; then cd "${ROOT:?}/.codegen/typescript" - rm -rf node_modules; + rm -rf node_modules; yarn; + rm -f "${ROOT:?}/.codegen/typescript/api/generated/apis/index.ts" npx gulp build --output "${ROOT:?}/server/main/purplship/server/static/purplship/js/purplship.js" cd - purplship collectstatic --noinput @@ -101,7 +103,7 @@ elif [[ "$*" == *build:insiders* ]]; then sm=$(find "${ROOT:?}/insiders" -type f -name "setup.py" ! -path "*$ENV_DIR/*" -prune -exec dirname '{}' \; 2>&1 | grep -v 'permission denied') for module in ${sm}; do - ./scripts/build-package-wheel.sh "${module}" || exit 1 + ./scripts/build-package-wheel.sh "${module}" --insiders || exit 1 done cd - diff --git a/scripts/setup-sdk-env.sh b/scripts/setup-sdk-env.sh index ad43d988b0..a9babfa259 100755 --- a/scripts/setup-sdk-env.sh +++ b/scripts/setup-sdk-env.sh @@ -4,10 +4,6 @@ source "scripts/create-new-env.sh" # Install requirements -cd "${ROOT}/sdk" && -poetry install || exit 1 -cd - - cd "${ROOT}" && pip install -r requirements.sdk.dev.txt cd - diff --git a/sdk/core/README.md b/sdk/core/README.md index 6c66581167..6047e2d8de 100644 --- a/sdk/core/README.md +++ b/sdk/core/README.md @@ -1,34 +1,18 @@ -

-

- - purplship - -

-

- purplship - The Open Source multi-carrier shipping SDK -

-

- CI - License: LGPL v3 - Code style: black - - -

-

- -puprlship is a modern development kit that simplifies the integration of shipping carriers services into an app. +# Purplship + +[![puprlship-tests](https://github.com/purplship/purplship/actions/workflows/tests.yml/badge.svg)](https://github.com/purplship/purplship/actions/workflows/tests.yml) +[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](./LICENSE) +[![Codacy Badge](https://app.codacy.com/project/badge/Grade/cc2ac4fcb6004bca84e42a90d8acfe41)](https://www.codacy.com/gh/purplship/purplship/dashboard?utm_source=github.com&utm_medium=referral&utm_content=purplship/purplship&utm_campaign=Badge_Grade) + +purplship is a multi-carrier shipping SDK. The key features are: - **Unified API**: A standardized set of models representing the common shipping data (`Address`, `Parcel`, `Shipment`...) -- **Intuitive API**: A library that abstracts and unifies the typical shipping API services (`Rating`, `Shipping`, `Tracking`...) +- **Intuitive API**: A library that abstracts and unifies the typical shipping API services (`Rating`, `Shipping`, `Tracking`...) - **Multi-carrier**: Integrate purplship once and connect to multiple shipping carrier APIs - **Custom carrier**: A framework to integrate a shipping carrier services within hours instead of months - -*For a complete shipping management REST API with a dashboard checkout [purplship-server](https://github.com/purplship/purplship-server).* - - ## Requirements Python 3.7+ @@ -39,14 +23,12 @@ Python 3.7+ # install purplship core pip install purplship -# install the purplship canadapost extention +# eg: install the purplship canadapost extention pip install purplship.canadapost ``` -Additional extensions: -
-Available carriers +Additional carrier extensions - `purplship.aramex` - `purplship.australiapost` @@ -71,6 +53,9 @@ Additional extensions: ## Usage +
+Rates Fetching + - Fetch shipping rates ```python @@ -157,28 +142,13 @@ print(rates) # ] ``` -## Resources - -- [**Documentation**](https://sdk.purplship.com) -- [**Bug Tracker**](https://github.com/puprlship/purplship/issues) -- [**Github Community**](https://github.com/purplship/purplship-server/discussions) - -## Contributing - -We encourage you to contribute to puprlship! Please check out the -[Contributing to purplship guide](/docs/contributing.md) for guidelines about how to proceed. -[Join the purplship discord channel!](https://discord.gg/gS88uE7sEx) - -Do you want to extend purplship and integrate a custom carrier, check out -[Extending purplship](https://sdk.purplship.com/development/extending/) - -## License - -This project is licensed under the terms of the `LGPL v3` license. -Please see [LICENSE.md](/LICENSE) for licensing details. +
+## Resources -## Authors +- [**Documentation**](https://next.purplship.com/docs) +- [**Community Discussions**](https://github.com/purplship/purplship/discussions) +- [**Issue Tracker**](https://github.com/purplship/purplship/issues) +- [**Blog**](https://next.purplship.com/blog) -- **Daniel K.** | [@DanHK91](https://twitter.com/DanHK91) | [danielk.xyz](https://danielk.xyz/) -- **purplship** | hello@purplship.com | [purplship.com](https://purplship.com) +> [Join us on Discord](https://discord.gg/gS88uE7sEx) diff --git a/sdk/core/poetry.lock b/sdk/core/poetry.lock deleted file mode 100644 index 94b1df3e25..0000000000 --- a/sdk/core/poetry.lock +++ /dev/null @@ -1,199 +0,0 @@ -[[package]] -name = "attrs" -version = "20.3.0" -description = "Classes Without Boilerplate" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" - -[package.extras] -dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "zope.interface", "furo", "sphinx", "pre-commit"] -docs = ["furo", "sphinx", "zope.interface"] -tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "zope.interface"] -tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six"] - -[[package]] -name = "jstruct" -version = "2020.4.0" -description = "Readable serializable and deserializable Python nested models" -category = "main" -optional = false -python-versions = "*" - -[package.dependencies] -attrs = "*" - -[[package]] -name = "lxml" -version = "4.6.3" -description = "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API." -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*" - -[package.extras] -cssselect = ["cssselect (>=0.7)"] -html5 = ["html5lib"] -htmlsoup = ["beautifulsoup4"] -source = ["Cython (>=0.29.7)"] - -[[package]] -name = "lxml-stubs" -version = "0.1.1" -description = "Type annotations for the lxml package" -category = "main" -optional = false -python-versions = "*" - -[package.extras] -test = ["pytest (>=6.0.0)", "pytest-mypy-plugins (==1.4.0)", "coverage[toml] (==5.2)"] - -[[package]] -name = "phonenumbers" -version = "8.12.21" -description = "Python version of Google's common library for parsing, formatting, storing and validating international phone numbers." -category = "main" -optional = false -python-versions = "*" - -[[package]] -name = "pillow" -version = "8.2.0" -description = "Python Imaging Library (Fork)" -category = "main" -optional = false -python-versions = ">=3.6" - -[[package]] -name = "py-soap" -version = "2020.3.2" -description = "SOAP Schemas Python Data Types library" -category = "main" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "six" -version = "1.15.0" -description = "Python 2 and 3 compatibility utilities" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" - -[[package]] -name = "xmltodict" -version = "0.12.0" -description = "Makes working with XML feel like you are working with JSON" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.7" -content-hash = "8e86b7c82e9fc4ae7e98444ae9a72333bf71c01ac2f40dcd688dc174578d5f79" - -[metadata.files] -attrs = [ - {file = "attrs-20.3.0-py2.py3-none-any.whl", hash = "sha256:31b2eced602aa8423c2aea9c76a724617ed67cf9513173fd3a4f03e3a929c7e6"}, - {file = "attrs-20.3.0.tar.gz", hash = "sha256:832aa3cde19744e49938b91fea06d69ecb9e649c93ba974535d08ad92164f700"}, -] -jstruct = [ - {file = "jstruct-2020.4.0-py3-none-any.whl", hash = "sha256:86257c1332e1ba6983d78e3199fb3dcadaf742e96c3c1a97f3ba322fa241f89c"}, -] -lxml = [ - {file = "lxml-4.6.3-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:df7c53783a46febb0e70f6b05df2ba104610f2fb0d27023409734a3ecbb78fb2"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:1b7584d421d254ab86d4f0b13ec662a9014397678a7c4265a02a6d7c2b18a75f"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:079f3ae844f38982d156efce585bc540c16a926d4436712cf4baee0cce487a3d"}, - {file = "lxml-4.6.3-cp27-cp27m-win32.whl", hash = "sha256:bc4313cbeb0e7a416a488d72f9680fffffc645f8a838bd2193809881c67dd106"}, - {file = "lxml-4.6.3-cp27-cp27m-win_amd64.whl", hash = "sha256:8157dadbb09a34a6bd95a50690595e1fa0af1a99445e2744110e3dca7831c4ee"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:7728e05c35412ba36d3e9795ae8995e3c86958179c9770e65558ec3fdfd3724f"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:4bff24dfeea62f2e56f5bab929b4428ae6caba2d1eea0c2d6eb618e30a71e6d4"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:74f7d8d439b18fa4c385f3f5dfd11144bb87c1da034a466c5b5577d23a1d9b51"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:f90ba11136bfdd25cae3951af8da2e95121c9b9b93727b1b896e3fa105b2f586"}, - {file = "lxml-4.6.3-cp35-cp35m-win32.whl", hash = "sha256:f2380a6376dfa090227b663f9678150ef27543483055cc327555fb592c5967e2"}, - {file = "lxml-4.6.3-cp35-cp35m-win_amd64.whl", hash = "sha256:c4f05c5a7c49d2fb70223d0d5bcfbe474cf928310ac9fa6a7c6dddc831d0b1d4"}, - {file = "lxml-4.6.3-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:d2e35d7bf1c1ac8c538f88d26b396e73dd81440d59c1ef8522e1ea77b345ede4"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:289e9ca1a9287f08daaf796d96e06cb2bc2958891d7911ac7cae1c5f9e1e0ee3"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:bccbfc27563652de7dc9bdc595cb25e90b59c5f8e23e806ed0fd623755b6565d"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:820628b7b3135403540202e60551e741f9b6d3304371712521be939470b454ec"}, - {file = "lxml-4.6.3-cp36-cp36m-win32.whl", hash = "sha256:5a0a14e264069c03e46f926be0d8919f4105c1623d620e7ec0e612a2e9bf1c04"}, - {file = "lxml-4.6.3-cp36-cp36m-win_amd64.whl", hash = "sha256:92e821e43ad382332eade6812e298dc9701c75fe289f2a2d39c7960b43d1e92a"}, - {file = "lxml-4.6.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:efd7a09678fd8b53117f6bae4fa3825e0a22b03ef0a932e070c0bdbb3a35e654"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:efac139c3f0bf4f0939f9375af4b02c5ad83a622de52d6dfa8e438e8e01d0eb0"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:0fbcf5565ac01dff87cbfc0ff323515c823081c5777a9fc7703ff58388c258c3"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:122fba10466c7bd4178b07dba427aa516286b846b2cbd6f6169141917283aae2"}, - {file = "lxml-4.6.3-cp37-cp37m-win32.whl", hash = "sha256:3439c71103ef0e904ea0a1901611863e51f50b5cd5e8654a151740fde5e1cade"}, - {file = "lxml-4.6.3-cp37-cp37m-win_amd64.whl", hash = "sha256:4289728b5e2000a4ad4ab8da6e1db2e093c63c08bdc0414799ee776a3f78da4b"}, - {file = "lxml-4.6.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:b007cbb845b28db4fb8b6a5cdcbf65bacb16a8bd328b53cbc0698688a68e1caa"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_i686.whl", hash = "sha256:76fa7b1362d19f8fbd3e75fe2fb7c79359b0af8747e6f7141c338f0bee2f871a"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:26e761ab5b07adf5f555ee82fb4bfc35bf93750499c6c7614bd64d12aaa67927"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:66e575c62792c3f9ca47cb8b6fab9e35bab91360c783d1606f758761810c9791"}, - {file = "lxml-4.6.3-cp38-cp38-win32.whl", hash = "sha256:89b8b22a5ff72d89d48d0e62abb14340d9e99fd637d046c27b8b257a01ffbe28"}, - {file = "lxml-4.6.3-cp38-cp38-win_amd64.whl", hash = "sha256:2a9d50e69aac3ebee695424f7dbd7b8c6d6eb7de2a2eb6b0f6c7db6aa41e02b7"}, - {file = "lxml-4.6.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:ce256aaa50f6cc9a649c51be3cd4ff142d67295bfc4f490c9134d0f9f6d58ef0"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_i686.whl", hash = "sha256:7610b8c31688f0b1be0ef882889817939490a36d0ee880ea562a4e1399c447a1"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:f8380c03e45cf09f8557bdaa41e1fa7c81f3ae22828e1db470ab2a6c96d8bc23"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:884ab9b29feaca361f7f88d811b1eea9bfca36cf3da27768d28ad45c3ee6f969"}, - {file = "lxml-4.6.3-cp39-cp39-win32.whl", hash = "sha256:33bb934a044cf32157c12bfcfbb6649807da20aa92c062ef51903415c704704f"}, - {file = "lxml-4.6.3-cp39-cp39-win_amd64.whl", hash = "sha256:542d454665a3e277f76954418124d67516c5f88e51a900365ed54a9806122b83"}, - {file = "lxml-4.6.3.tar.gz", hash = "sha256:39b78571b3b30645ac77b95f7c69d1bffc4cf8c3b157c435a34da72e78c82468"}, -] -lxml-stubs = [ - {file = "lxml-stubs-0.1.1.tar.gz", hash = "sha256:9b6a01ba4bccd6e532c01e19d2a3bc6d1d018fa0b9870236f61f315cb7b06648"}, - {file = "lxml_stubs-0.1.1-py3-none-any.whl", hash = "sha256:d34a28be0e2525b0236aff7fe67af1f61911f556cadbc61f09810b69f762b747"}, -] -phonenumbers = [ - {file = "phonenumbers-8.12.21-py2.py3-none-any.whl", hash = "sha256:7d66d6f09541568941e51fe2275de0f2d519b3234c80c8c166c56d01d098d3fc"}, - {file = "phonenumbers-8.12.21.tar.gz", hash = "sha256:271f26271338616460eef8b878e5879401299adfc0cd0891c48b4744afbb45b2"}, -] -pillow = [ - {file = "Pillow-8.2.0-cp36-cp36m-macosx_10_10_x86_64.whl", hash = "sha256:dc38f57d8f20f06dd7c3161c59ca2c86893632623f33a42d592f097b00f720a9"}, - {file = "Pillow-8.2.0-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:a013cbe25d20c2e0c4e85a9daf438f85121a4d0344ddc76e33fd7e3965d9af4b"}, - {file = "Pillow-8.2.0-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:8bb1e155a74e1bfbacd84555ea62fa21c58e0b4e7e6b20e4447b8d07990ac78b"}, - {file = "Pillow-8.2.0-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:c5236606e8570542ed424849f7852a0ff0bce2c4c8d0ba05cc202a5a9c97dee9"}, - {file = "Pillow-8.2.0-cp36-cp36m-win32.whl", hash = "sha256:12e5e7471f9b637762453da74e390e56cc43e486a88289995c1f4c1dc0bfe727"}, - {file = "Pillow-8.2.0-cp36-cp36m-win_amd64.whl", hash = "sha256:5afe6b237a0b81bd54b53f835a153770802f164c5570bab5e005aad693dab87f"}, - {file = "Pillow-8.2.0-cp37-cp37m-macosx_10_10_x86_64.whl", hash = "sha256:cb7a09e173903541fa888ba010c345893cd9fc1b5891aaf060f6ca77b6a3722d"}, - {file = "Pillow-8.2.0-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:0d19d70ee7c2ba97631bae1e7d4725cdb2ecf238178096e8c82ee481e189168a"}, - {file = "Pillow-8.2.0-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:083781abd261bdabf090ad07bb69f8f5599943ddb539d64497ed021b2a67e5a9"}, - {file = "Pillow-8.2.0-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:c6b39294464b03457f9064e98c124e09008b35a62e3189d3513e5148611c9388"}, - {file = "Pillow-8.2.0-cp37-cp37m-win32.whl", hash = "sha256:01425106e4e8cee195a411f729cff2a7d61813b0b11737c12bd5991f5f14bcd5"}, - {file = "Pillow-8.2.0-cp37-cp37m-win_amd64.whl", hash = "sha256:3b570f84a6161cf8865c4e08adf629441f56e32f180f7aa4ccbd2e0a5a02cba2"}, - {file = "Pillow-8.2.0-cp38-cp38-macosx_10_10_x86_64.whl", hash = "sha256:031a6c88c77d08aab84fecc05c3cde8414cd6f8406f4d2b16fed1e97634cc8a4"}, - {file = "Pillow-8.2.0-cp38-cp38-manylinux1_i686.whl", hash = "sha256:66cc56579fd91f517290ab02c51e3a80f581aba45fd924fcdee01fa06e635812"}, - {file = "Pillow-8.2.0-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:6c32cc3145928c4305d142ebec682419a6c0a8ce9e33db900027ddca1ec39178"}, - {file = "Pillow-8.2.0-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:624b977355cde8b065f6d51b98497d6cd5fbdd4f36405f7a8790e3376125e2bb"}, - {file = "Pillow-8.2.0-cp38-cp38-win32.whl", hash = "sha256:5cbf3e3b1014dddc45496e8cf38b9f099c95a326275885199f427825c6522232"}, - {file = "Pillow-8.2.0-cp38-cp38-win_amd64.whl", hash = "sha256:463822e2f0d81459e113372a168f2ff59723e78528f91f0bd25680ac185cf797"}, - {file = "Pillow-8.2.0-cp39-cp39-macosx_10_10_x86_64.whl", hash = "sha256:95d5ef984eff897850f3a83883363da64aae1000e79cb3c321915468e8c6add5"}, - {file = "Pillow-8.2.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:b91c36492a4bbb1ee855b7d16fe51379e5f96b85692dc8210831fbb24c43e484"}, - {file = "Pillow-8.2.0-cp39-cp39-manylinux1_i686.whl", hash = "sha256:d68cb92c408261f806b15923834203f024110a2e2872ecb0bd2a110f89d3c602"}, - {file = "Pillow-8.2.0-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:f217c3954ce5fd88303fc0c317af55d5e0204106d86dea17eb8205700d47dec2"}, - {file = "Pillow-8.2.0-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:5b70110acb39f3aff6b74cf09bb4169b167e2660dabc304c1e25b6555fa781ef"}, - {file = "Pillow-8.2.0-cp39-cp39-win32.whl", hash = "sha256:a7d5e9fad90eff8f6f6106d3b98b553a88b6f976e51fce287192a5d2d5363713"}, - {file = "Pillow-8.2.0-cp39-cp39-win_amd64.whl", hash = "sha256:238c197fc275b475e87c1453b05b467d2d02c2915fdfdd4af126145ff2e4610c"}, - {file = "Pillow-8.2.0-pp36-pypy36_pp73-macosx_10_10_x86_64.whl", hash = "sha256:0e04d61f0064b545b989126197930807c86bcbd4534d39168f4aa5fda39bb8f9"}, - {file = "Pillow-8.2.0-pp36-pypy36_pp73-manylinux2010_i686.whl", hash = "sha256:63728564c1410d99e6d1ae8e3b810fe012bc440952168af0a2877e8ff5ab96b9"}, - {file = "Pillow-8.2.0-pp36-pypy36_pp73-manylinux2010_x86_64.whl", hash = "sha256:c03c07ed32c5324939b19e36ae5f75c660c81461e312a41aea30acdd46f93a7c"}, - {file = "Pillow-8.2.0-pp37-pypy37_pp73-macosx_10_10_x86_64.whl", hash = "sha256:4d98abdd6b1e3bf1a1cbb14c3895226816e666749ac040c4e2554231068c639b"}, - {file = "Pillow-8.2.0-pp37-pypy37_pp73-manylinux2010_i686.whl", hash = "sha256:aac00e4bc94d1b7813fe882c28990c1bc2f9d0e1aa765a5f2b516e8a6a16a9e4"}, - {file = "Pillow-8.2.0-pp37-pypy37_pp73-manylinux2010_x86_64.whl", hash = "sha256:22fd0f42ad15dfdde6c581347eaa4adb9a6fc4b865f90b23378aa7914895e120"}, - {file = "Pillow-8.2.0-pp37-pypy37_pp73-win32.whl", hash = "sha256:e98eca29a05913e82177b3ba3d198b1728e164869c613d76d0de4bde6768a50e"}, - {file = "Pillow-8.2.0.tar.gz", hash = "sha256:a787ab10d7bb5494e5f76536ac460741788f1fbce851068d73a87ca7c35fc3e1"}, -] -py-soap = [ - {file = "py_soap-2020.3.2-py3-none-any.whl", hash = "sha256:61e2ec956d349bdd9d4c6248a2ae3c4cc4b0a2a5cf6b439b6de480a3bc2766a1"}, -] -six = [ - {file = "six-1.15.0-py2.py3-none-any.whl", hash = "sha256:8b74bedcbbbaca38ff6d7491d76f2b06b3592611af620f8426e82dddb04a5ced"}, - {file = "six-1.15.0.tar.gz", hash = "sha256:30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259"}, -] -xmltodict = [ - {file = "xmltodict-0.12.0-py2.py3-none-any.whl", hash = "sha256:8bbcb45cc982f48b2ca8fe7e7827c5d792f217ecf1792626f808bf41c3b86051"}, - {file = "xmltodict-0.12.0.tar.gz", hash = "sha256:50d8c638ed7ecb88d90561beedbf720c9b4e851a9fa6c47ebd64e99d166d8a21"}, -] diff --git a/sdk/core/purplship/api/gateway.py b/sdk/core/purplship/api/gateway.py index 1a045f484a..d4373ed386 100644 --- a/sdk/core/purplship/api/gateway.py +++ b/sdk/core/purplship/api/gateway.py @@ -18,6 +18,7 @@ @attr.s(auto_attribs=True) class Gateway: """The carrier connection instance""" + mapper: Mapper proxy: Proxy settings: Settings @@ -30,30 +31,39 @@ def check(self, request: str, origin_country_code: str = None): messages = [] if request not in self.capabilities: - messages.append(Message( - carrier_id=self.settings.carrier_id, - carrier_name=self.settings.carrier_name, - code="SHIPPING_SDK_NON_SUPPORTED_ERROR", - message="this operation is not supported." - )) + messages.append( + Message( + carrier_id=self.settings.carrier_id, + carrier_name=self.settings.carrier_name, + code="SHIPPING_SDK_NON_SUPPORTED_ERROR", + message="this operation is not supported.", + ) + ) if ( - any(origin_country_code or "") - and any(self.settings.account_country_code or "") - and (origin_country_code != self.settings.account_country_code) + any(origin_country_code or "") + and any(self.settings.account_country_code or "") + and (origin_country_code != self.settings.account_country_code) ): - messages.append(Message( - carrier_id=self.settings.carrier_id, - carrier_name=self.settings.carrier_name, - code="SHIPPING_SDK_ORIGIN_NOT_SERVICED_ERROR", - message="this account cannot ship from origin {}".format(origin_country_code) - )) + messages.append( + Message( + carrier_id=self.settings.carrier_id, + carrier_name=self.settings.carrier_name, + code="SHIPPING_SDK_ORIGIN_NOT_SERVICED_ERROR", + message="this account cannot ship from origin {}".format( + origin_country_code + ), + ) + ) return messages @property def features(self) -> List[str]: - warnings.warn("features is deprecated. Use capabilities instead", category=DeprecationWarning) + warnings.warn( + "features is deprecated. Use capabilities instead", + category=DeprecationWarning, + ) return self.capabilities @@ -78,7 +88,7 @@ def create(self, settings: Union[Settings, dict]) -> Gateway: class GatewayInitializer: """Gateway initializer helper""" - __instance: 'GatewayInitializer' = None + __instance: "GatewayInitializer" = None def __init__(self): if GatewayInitializer.__instance is not None: @@ -131,7 +141,7 @@ def providers(self): return import_extensions() @staticmethod - def get_instance() -> 'GatewayInitializer': + def get_instance() -> "GatewayInitializer": """Return the singleton instance of the GatewayInitializer""" if GatewayInitializer.__instance is None: @@ -139,9 +149,9 @@ def get_instance() -> 'GatewayInitializer': return GatewayInitializer.__instance -nl = '\n ' -logger.info(f""" +nl = "\n " +logger.info( + f""" Purplship default gateway mapper initialized. -Registered providers: - {f"{nl}".join(GatewayInitializer.get_instance().providers.keys())} -""") +""" +) diff --git a/sdk/core/purplship/core/metadata.py b/sdk/core/purplship/core/metadata.py index 8f05669c8e..1c3bb811a4 100644 --- a/sdk/core/purplship/core/metadata.py +++ b/sdk/core/purplship/core/metadata.py @@ -1,11 +1,12 @@ """Purplship Extension Metadata definition module.""" import attr from enum import Enum -from typing import Optional, Type +from typing import Optional, Type, List from purplship.api.proxy import Proxy from purplship.api.mapper import Mapper from purplship.core.settings import Settings +from purplship.core.models import ServiceLevel @attr.s(auto_attribs=True) @@ -26,6 +27,7 @@ class Metadata: options: Optional[Type[Enum]] = None package_presets: Optional[Type[Enum]] = None packaging_types: Optional[Type[Enum]] = None + service_levels: Optional[List[ServiceLevel]] = None id: Optional[str] = None diff --git a/sdk/core/purplship/core/models.py b/sdk/core/purplship/core/models.py index a682bf8152..cb8ade55b4 100644 --- a/sdk/core/purplship/core/models.py +++ b/sdk/core/purplship/core/models.py @@ -99,8 +99,6 @@ class Customs: """customs info unified data type.""" commodities: List[Commodity] = JList[Commodity, REQUIRED] - aes: str = None - eel_pfc: str = None certify: bool = None signer: str = None content_type: str = None @@ -108,8 +106,6 @@ class Customs: incoterm: str = None invoice: str = None invoice_date: str = None - license_number: str = None - certificate_number: str = None duty: Duty = JStruct[Duty] commercial_invoice: bool = False options: Dict = {} @@ -283,6 +279,7 @@ class TrackingDetails: tracking_number: str events: List[TrackingEvent] = JList[TrackingEvent, REQUIRED] delivered: bool = None + estimated_delivery: str = None @attr.s(auto_attribs=True) @@ -321,3 +318,33 @@ class ConfirmationDetails: carrier_id: str success: bool operation: str + + +@attr.s(auto_attribs=True) +class ServiceLevel: + """Purplship unified service level data type.""" + + service_name: str + service_code: str + description: str = "" + id: str = None + active: bool = True + + # Costs definition + cost: float = None + currency: str = None + + # Estimated delivery date + estimated_transit_days: int = None + + # Size restrictions + max_weight: float = None + max_width: float = None + max_height: float = None + max_length: float = None + weight_unit: str = None + dimension_unit: str = None + + # Destination supports + domicile: bool = None + international: bool = None diff --git a/sdk/core/purplship/core/units.py b/sdk/core/purplship/core/units.py index 199c599015..69fac201c6 100644 --- a/sdk/core/purplship/core/units.py +++ b/sdk/core/purplship/core/units.py @@ -14,7 +14,7 @@ NamedTuple, ) from purplship.core.utils import NF, Enum, Spec, SF -from purplship.core.models import Parcel, Address, AddressExtra +from purplship.core.models import Customs, Parcel, Address, AddressExtra from purplship.core.errors import ( FieldError, FieldErrorCode, @@ -599,6 +599,57 @@ def first(self) -> Enum: return next(iter(self._services), None) +class CustomsOption(Enum): + """universal shipment customs identifiers""" + + aes = Spec.asValue("aes") + eel_pfc = Spec.asValue("eel_pfc") + nip_number = Spec.asValue("eori_number") + eori_number = Spec.asValue("eori_number") + license_number = Spec.asValue("license_number") + certificate_number = Spec.asValue("certificate_number") + vat_registration_number = Spec.asValue("vat_registration_number") + + +class CustomsInfo: + """The customs info processing helper""" + + def __init__(self, customs: Customs = None, option_type: Type[Enum] = Enum): + option_values = {} + + for key, val in getattr(customs, "options", {}).items(): + if option_type is not None and key in option_type: + option_values[option_type[key].name] = option_type[key].value.apply(val) + elif key in CustomsOption and key: + option_values[key] = CustomsOption[key].value.apply(val) + + self._customs = customs + self._options = option_values + + def __getitem__(self, item): + return getattr(self._customs, item, None) or self._options.get(item) + + def __getattr__(self, item): + return getattr(self._customs, item, None) or self._options.get(item) + + def __contains__(self, item) -> bool: + return item in self._options or hasattr(self._customs, item) + + def __len__(self) -> int: + return len(self._options.items()) + + def __iter__(self) -> Iterator[Tuple[str, Any]]: + return iter(self._options.items()) + + @property + def is_defined(self) -> bool: + return self._customs is not None + + @property + def duty(self) -> str: + return getattr(self._customs, "duty", None) + + class Phone: def __init__(self, phone_number: str = None, country_code: str = None): try: diff --git a/sdk/core/purplship/core/utils/datetime.py b/sdk/core/purplship/core/utils/datetime.py index d370976547..9c0072931d 100644 --- a/sdk/core/purplship/core/utils/datetime.py +++ b/sdk/core/purplship/core/utils/datetime.py @@ -1,40 +1,67 @@ -from typing import Union +from typing import Union, List from datetime import datetime class DATEFORMAT: @staticmethod - def date(date_str: Union[str, datetime] = None, current_format: str = "%Y-%m-%d"): - if date_str is None: + def date( + date_value: Union[str, datetime] = None, + current_format: str = "%Y-%m-%d", + try_formats: List[str] = None, + ) -> datetime: + if date_value is None: return None - if isinstance(date_str, str) and not any(date_str.split(" ")): + if isinstance(date_value, str) and not any(date_value.split(" ")): return None - if isinstance(date_str, datetime): - return date_str + if isinstance(date_value, datetime): + return date_value - return datetime.strptime(str(date_str), current_format) + if any(try_formats or []): + for format in try_formats: + try: + return datetime.strptime(date_value, format) + except ValueError: + pass + + return datetime.strptime(str(date_value), current_format) @staticmethod - def fdate(date_str: str = None, current_format: str = "%Y-%m-%d"): - date = DATEFORMAT.date(date_str, current_format) + def fdate( + date_str: str = None, + current_format: str = "%Y-%m-%d", + try_formats: List[str] = None, + ): + date = DATEFORMAT.date( + date_str, current_format=current_format, try_formats=try_formats + ) if date is None: return None return date.strftime("%Y-%m-%d") @staticmethod def fdatetime( - date_str: str = None, current_format: str = "%Y-%m-%d %H:%M:%S", output_format: str = "%Y-%m-%d %H:%M:%S" + date_str: str = None, + current_format: str = "%Y-%m-%d %H:%M:%S", + output_format: str = "%Y-%m-%d %H:%M:%S", + try_formats: List[str] = None, ): - date = DATEFORMAT.date(date_str, current_format) + date = DATEFORMAT.date( + date_str, current_format=current_format, try_formats=try_formats + ) if date is None: return None return date.strftime(output_format) @staticmethod def ftime( - time_str: str, current_format: str = "%H:%M:%S", output_format: str = "%H:%M" + time_str: str, + current_format: str = "%H:%M:%S", + output_format: str = "%H:%M", + try_formats: List[str] = None, ): - time = DATEFORMAT.date(time_str, current_format) + time = DATEFORMAT.date( + time_str, current_format=current_format, try_formats=try_formats + ) if time is None: return None return time.strftime(output_format) diff --git a/sdk/core/purplship/core/utils/helpers.py b/sdk/core/purplship/core/utils/helpers.py index f93a21cf5a..78f847fc60 100644 --- a/sdk/core/purplship/core/utils/helpers.py +++ b/sdk/core/purplship/core/utils/helpers.py @@ -3,13 +3,16 @@ import asyncio import logging import base64 -from PIL import Image +from PIL import Image, ImageFile +from PyPDF2 import PdfFileMerger +from simple_zpl2 import ZPLDocument from urllib.request import urlopen, Request from urllib.error import HTTPError from typing import List, TypeVar, Callable, Optional, Any from concurrent.futures import ThreadPoolExecutor, as_completed logger = logging.getLogger(__name__) +ImageFile.LOAD_TRUNCATED_IMAGES = True T = TypeVar("T") S = TypeVar("S") @@ -25,11 +28,74 @@ def gif_to_pdf(gif_str: str) -> str: return base64.b64encode(new_buffer.getvalue()).decode("utf-8") +def bundle_pdfs(base64_strings: List[str]) -> PdfFileMerger: + merger = PdfFileMerger() + + for b64_str in base64_strings: + content = base64.b64decode(b64_str) + buffer = io.BytesIO() + buffer.write(content) + merger.append(buffer) + + return merger + + +def bundle_imgs(base64_strings: List[str]) -> Image: + image_buffers = [ + io.BytesIO(base64.b64decode(b64_str)) for b64_str in base64_strings + ] + images = [Image.open(buffer) for buffer in image_buffers] + widths, heights = zip(*(i.size for i in images)) + + max_width = max(widths) + total_height = sum(heights) + + image = Image.new("RGB", (max_width, total_height)) + + x_offset = 0 + for im in images: + image.paste(im, (0, x_offset)) + x_offset += im.size[1] + + return image + + +def bundle_zpls(base64_strings: List[str]) -> str: + doc = ZPLDocument() + for b64_str in base64_strings: + doc.add_zpl_raw(base64.b64decode(b64_str).decode("utf-8")) + + return doc.zpl_text + + +def bundle_base64(base64_strings: List[str], format: str = "PDF") -> str: + """Return a base64 string from a list of base64 strings.""" + result = io.BytesIO() + + if format == "PDF": + pdf_buffer = bundle_pdfs(base64_strings) + pdf_buffer.write(result) + + elif "ZPL" in format: + content = bundle_zpls(base64_strings) + result.write(content.encode("utf-8")) + + else: + image = bundle_imgs(base64_strings) + image.save(result, format) + + return base64.b64encode(result.getvalue()).decode("utf-8") + + def decode_bytes(byte): return byte.decode("utf-8") -def request(decoder: Callable = decode_bytes, on_error: Callable[[HTTPError], str] = None, **args) -> str: +def request( + decoder: Callable = decode_bytes, + on_error: Callable[[HTTPError], str] = None, + **args, +) -> str: """Return an HTTP response body. make a http request (wrapper around Request method from built in urllib) @@ -58,7 +124,9 @@ def request(decoder: Callable = decode_bytes, on_error: Callable[[HTTPError], st return error -def exec_parrallel(function: Callable, sequence: List[S], max_workers: int = 2) -> List[T]: +def exec_parrallel( + function: Callable, sequence: List[S], max_workers: int = 2 +) -> List[T]: """Return a list of result for function execution on each element of the sequence.""" with ThreadPoolExecutor(max_workers=max_workers or len(sequence)) as executor: requests = {executor.submit(function, item): item for item in sequence} @@ -76,21 +144,20 @@ async def run_tasks(): class Location: - def __init__(self, value: Optional[str], **kwargs): self.value = value self.extra = kwargs @property def as_zip4(self) -> Optional[str]: - if re.match(r'/^SW\d{4}$/', self.value or ""): + if re.match(r"/^SW\d{4}$/", self.value or ""): return self.value return None @property def as_zip5(self) -> Optional[str]: - if not re.match(r'/^SW\d{5}$/', self.value or ""): + if not re.match(r"/^SW\d{5}$/", self.value or ""): return self.value return None @@ -98,6 +165,7 @@ def as_zip5(self) -> Optional[str]: @property def as_country_name(self) -> str: from purplship.core.units import Country + if self.value in Country: return Country[self.value].value @@ -106,11 +174,14 @@ def as_country_name(self) -> str: @property def as_state_name(self) -> str: from purplship.core.units import CountryState + try: - country: Any = CountryState.__members__.get(self.extra['country']) - if self.value in getattr(country, 'value', []): + country: Any = CountryState.__members__.get(self.extra["country"]) + if self.value in getattr(country, "value", []): return country.value[self.value].value return self.value except KeyError as e: - raise Exception('Missing country code. e.g: Location(state_code, country="US").as_state_name') from e + raise Exception( + 'Missing country code. e.g: Location(state_code, country="US").as_state_name' + ) from e diff --git a/sdk/core/purplship/core/utils/serializable.py b/sdk/core/purplship/core/utils/serializable.py index c0ffd099e8..5c09e9c752 100644 --- a/sdk/core/purplship/core/utils/serializable.py +++ b/sdk/core/purplship/core/utils/serializable.py @@ -30,4 +30,5 @@ class Deserializable(Generic[T]): def deserialize(self) -> Any: logger.info("deserialized response::" f"{self.value}") + return self._deserializer(self.value) diff --git a/sdk/core/purplship/core/utils/string.py b/sdk/core/purplship/core/utils/string.py index d9a42ca2a7..2f014f37f2 100644 --- a/sdk/core/purplship/core/utils/string.py +++ b/sdk/core/purplship/core/utils/string.py @@ -1,9 +1,7 @@ - - class STRINGFORMAT: @staticmethod def concat_str(*args, join: bool = False, separator: str = " "): - strings = [s for s in args if s != ""] + strings = [s for s in args if s not in ["", None]] if len(strings) == 0: return None return strings if not join else separator.join(strings) diff --git a/sdk/core/purplship/core/utils/xml.py b/sdk/core/purplship/core/utils/xml.py index fb553d97f6..f4b3f9b2dc 100644 --- a/sdk/core/purplship/core/utils/xml.py +++ b/sdk/core/purplship/core/utils/xml.py @@ -12,7 +12,8 @@ class Element(_Element): - def xpath(self, *args, **kwargs) -> List['Element']: pass # type: ignore + def xpath(self, *args, **kwargs) -> List["Element"]: # type: ignore + pass class GenerateDSAbstract(Envelope): @@ -22,7 +23,9 @@ class GenerateDSAbstract(Envelope): class XMLPARSER: @staticmethod def build(element_type: Type[T], xml_node: Element = None) -> Optional[T]: - warnings.warn("build is deprecated. Use to_object instead", category=DeprecationWarning) + warnings.warn( + "build is deprecated. Use to_object instead", category=DeprecationWarning + ) return XMLPARSER.to_object(element_type, xml_node) @staticmethod @@ -41,10 +44,19 @@ def to_object(element_type: Type[T], xml_node: Element = None) -> Optional[T]: return instance @staticmethod - def find(tag: str, in_element: Element, element_type: Type[Union[T, Element]] = None, first: bool = None): + def find( + tag: str, + in_element: Element, + element_type: Type[Union[T, Element]] = None, + first: bool = None, + ): children = [ - (child if element_type is None else XMLPARSER.to_object(element_type, child)) - for child in in_element.xpath(".//*[local-name() = $name]", name=tag) + ( + child + if element_type is None + else XMLPARSER.to_object(element_type, child) + ) + for child in list(in_element.xpath(".//*[local-name() = $name]", name=tag)) ] if first is True: @@ -73,7 +85,13 @@ def bundle_xml(xml_strings: List[str]) -> str: :param xml_strings: :return: a bundled XML text containing all the micro XML string """ - bundle = "".join([XMLPARSER.xml_tostring(XMLPARSER.to_xml(x)) for x in xml_strings if x is not None and x != ""]) + bundle = "".join( + [ + XMLPARSER.xml_tostring(XMLPARSER.to_xml(x)) + for x in xml_strings + if x is not None and x != "" + ] + ) return f"{bundle}" @staticmethod diff --git a/sdk/core/purplship/references.py b/sdk/core/purplship/references.py index 851bd2dd6d..ef520a7178 100644 --- a/sdk/core/purplship/references.py +++ b/sdk/core/purplship/references.py @@ -36,22 +36,22 @@ def collect_providers_data() -> Dict[str, dict]: import_extensions() PROVIDERS_DATA = { - 'universal': dict( + "universal": dict( label="Multi-carrier (purplship)", packaging_types=units.PackagingUnit, - options=units.Option + options=units.Option, ), - **{carrier_name: attr.asdict(metadata) for carrier_name, metadata in PROVIDERS.items()}, + **{ + carrier_name: attr.asdict(metadata) + for carrier_name, metadata in PROVIDERS.items() + }, } return PROVIDERS_DATA def detect_capabilities(proxy_type: object) -> List[str]: - return [ - prop for prop in proxy_type.__dict__.keys() - if '_' not in prop[0] - ] + return [prop for prop in proxy_type.__dict__.keys() if "_" not in prop[0]] def collect_references() -> dict: @@ -60,14 +60,14 @@ def collect_references() -> dict: collect_providers_data() services = { - key: {c.name: c.value for c in list(mapper['services'])} # type: ignore + key: {c.name: c.value for c in list(mapper["services"])} # type: ignore for key, mapper in PROVIDERS_DATA.items() - if mapper.get('services') is not None + if mapper.get("services") is not None } options = { - key: {c.name: DP.to_dict(c.value) for c in list(mapper['options'])} # type: ignore + key: {c.name: DP.to_dict(c.value) for c in list(mapper["options"])} # type: ignore for key, mapper in PROVIDERS_DATA.items() - if mapper.get('options') is not None + if mapper.get("options") is not None } REFERENCES = { @@ -75,36 +75,48 @@ def collect_references() -> dict: "currencies": {c.name: c.value for c in list(units.Currency)}, "weight_units": {c.name: c.value for c in list(units.WeightUnit)}, "dimension_units": {c.name: c.value for c in list(units.DimensionUnit)}, - "states": {c.name: {s.name: s.value for s in list(c.value)} for c in list(units.CountryState)}, + "states": { + c.name: {s.name: s.value for s in list(c.value)} + for c in list(units.CountryState) + }, "payment_types": {c.name: c.value for c in list(units.PaymentType)}, - "customs_content_type": {c.name: c.value for c in list(units.CustomsContentType)}, + "customs_content_type": { + c.name: c.value for c in list(units.CustomsContentType) + }, "incoterms": {c.name: c.value for c in list(units.Incoterm)}, - "carriers": {carrier_name: metadata.label for carrier_name, metadata in PROVIDERS.items()}, + "carriers": { + carrier_name: metadata.label for carrier_name, metadata in PROVIDERS.items() + }, "services": services, "options": options, "carrier_capabilities": { - key: detect_capabilities(mapper['Proxy']) + key: detect_capabilities(mapper["Proxy"]) for key, mapper in PROVIDERS_DATA.items() - if mapper.get('Proxy') is not None + if mapper.get("Proxy") is not None }, "packaging_types": { - key: {c.name: c.value for c in list(mapper['packaging_types'])} # type: ignore + key: {c.name: c.value for c in list(mapper["packaging_types"])} # type: ignore for key, mapper in PROVIDERS_DATA.items() - if mapper.get('packaging_types') is not None + if mapper.get("packaging_types") is not None }, "package_presets": { - key: {c.name: DP.to_dict(c.value) for c in list(mapper['package_presets'])} # type: ignore + key: {c.name: DP.to_dict(c.value) for c in list(mapper["package_presets"])} # type: ignore for key, mapper in PROVIDERS_DATA.items() - if mapper.get('package_presets') is not None + if mapper.get("package_presets") is not None }, "option_names": { - name: {key: key.upper().replace('_', ' ') for key, _ in value.items()} + name: {key: key.upper().replace("_", " ") for key, _ in value.items()} for name, value in options.items() }, "service_names": { - name: {key: key.upper().replace('_', ' ') for key, _ in value.items()} + name: {key: key.upper().replace("_", " ") for key, _ in value.items()} for name, value in services.items() }, + "service_levels": { + key: mapper.get("service_levels") + for key, mapper in PROVIDERS_DATA.items() + if mapper.get("service_levels") is not None + }, } return REFERENCES diff --git a/sdk/core/purplship/universal/__init__.py b/sdk/core/purplship/universal/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/sdk/core/purplship/universal/mappers/__init__.py b/sdk/core/purplship/universal/mappers/__init__.py new file mode 100644 index 0000000000..510e8260fa --- /dev/null +++ b/sdk/core/purplship/universal/mappers/__init__.py @@ -0,0 +1,2 @@ +from purplship.universal.mappers.settings import Settings +from purplship.universal.mappers.proxy import Proxy diff --git a/sdk/core/purplship/universal/mappers/proxy.py b/sdk/core/purplship/universal/mappers/proxy.py new file mode 100644 index 0000000000..b5de6ec831 --- /dev/null +++ b/sdk/core/purplship/universal/mappers/proxy.py @@ -0,0 +1,167 @@ +import attr +from typing import List, Tuple +from purplship.core.utils import ( + Serializable, + Deserializable, +) +from purplship.core.models import ( + Message, + RateRequest, + ServiceLevel, +) +from purplship.core.units import Dimension, Packages, Weight +from purplship.universal.mappers import Settings + + +@attr.s(auto_attribs=True) +class Proxy: + settings: Settings + + def get_rates( + self, request: Serializable[RateRequest] + ) -> Deserializable[Tuple[List[ServiceLevel], List[Message]]]: + response = filter_service_level(request.serialize(), self.settings) + + return Deserializable(response) + + +def filter_service_level( + request: RateRequest, settings: Settings +) -> Tuple[List[ServiceLevel], List[Message]]: + errors: List[Message] = [] + package = Packages(request.parcels).single + has_origin = any( + [ + request.shipper.country_code, + settings.account_country_code, + ] + ) + is_domicile = has_origin and ( + request.shipper.country_code == request.recipient.country_code + or settings.account_country_code == request.recipient.country_code + ) + is_international = not is_domicile + + def match_requirements(service: ServiceLevel) -> bool: + # Check if service requested + explicitly_requested = service.service_code in request.services + implicitly_requested = len(request.services or []) == 0 + excluded = len(request.services or []) > 0 and not explicitly_requested + + if not service.active or excluded: + return False + + # Check if destination covered + cover_domestic_shipment = ( + service.domicile is True and service.domicile == is_domicile + ) + cover_international_shipment = ( + service.international is True and service.international == is_international + ) + explicit_destination_covered = explicitly_requested and ( + cover_domestic_shipment or cover_international_shipment + ) + implicit_destination_covered = implicitly_requested and ( + cover_domestic_shipment or cover_international_shipment + ) + + destination_covered = ( + explicit_destination_covered or implicit_destination_covered + ) + + # Check if weight and dimensions fit restrictions + match_length_requirements = ( + service.max_length is not None + and package.length[service.dimension_unit] + <= Dimension(service.max_length or 0, service.dimension_unit).value + ) or (service.max_length is None) + match_height_requirements = ( + service.max_height is not None + and package.height[service.dimension_unit] + <= Dimension(service.max_height, service.dimension_unit).value + ) or (service.max_height is None) + match_width_requirements = ( + service.max_width is not None + and package.width[service.dimension_unit] + <= Dimension(service.max_width, service.dimension_unit).value + ) or (service.max_width is None) + match_weight_requirements = ( + service.max_weight is not None + and package.weight[service.weight_unit] + <= Weight(service.max_weight, service.weight_unit).value + ) or (service.max_weight is None) + + # error validations + if explicitly_requested and not explicit_destination_covered: + errors.append( + Message( + carrier_id=settings.carrier_id, + carrier_name=settings.carrier_name, + code="destination_not_supported", + message=f"the service {service.service_code} does not cover the requested destination", + ) + ) + if ( + destination_covered + and service.max_length is not None + and not match_length_requirements + ): + errors.append( + Message( + carrier_id=settings.carrier_id, + carrier_name=settings.carrier_name, + code="invalid_dimension", + message=f"length size exceeds service {service.service_code} max length", + ) + ) + if ( + destination_covered + and service.max_height is not None + and not match_height_requirements + ): + errors.append( + Message( + carrier_id=settings.carrier_id, + carrier_name=settings.carrier_name, + code="invalid_dimension", + message=f"height size exceeds service {service.service_code} max height", + ) + ) + if ( + destination_covered + and service.max_width is not None + and not match_width_requirements + ): + errors.append( + Message( + carrier_id=settings.carrier_id, + carrier_name=settings.carrier_name, + code="invalid_dimension", + message=f"the width size exceeds service {service.service_code} max width", + ) + ) + if ( + destination_covered + and service.max_weight is not None + and not match_weight_requirements + ): + errors.append( + Message( + carrier_id=settings.carrier_id, + carrier_name=settings.carrier_name, + code="invalid_weight", + message=f"the weight exceeds service {service.service_code} max weight", + ) + ) + + return ( + destination_covered + and match_length_requirements + and match_height_requirements + and match_width_requirements + and match_weight_requirements + ) + + services = [service for service in settings.services if match_requirements(service)] + + return services, errors diff --git a/sdk/core/purplship/universal/mappers/settings.py b/sdk/core/purplship/universal/mappers/settings.py new file mode 100644 index 0000000000..dd552e6270 --- /dev/null +++ b/sdk/core/purplship/universal/mappers/settings.py @@ -0,0 +1,21 @@ +"""Purplship Universal client settings.""" + +import attr +from typing import List +from jstruct import JList +from purplship.core.models import ServiceLevel +from purplship.core.settings import Settings as BaseSettings + + +@attr.s(auto_attribs=True) +class Settings(BaseSettings): + """Universal connection settings.""" + + # Additional universal properties + services: List[ServiceLevel] = JList[ServiceLevel] + + # Base properties + id: str = None + test: bool = False + carrier_id: str = "" + account_country_code: str = None diff --git a/sdk/core/purplship/universal/providers/__init__.py b/sdk/core/purplship/universal/providers/__init__.py new file mode 100644 index 0000000000..eedc3dd519 --- /dev/null +++ b/sdk/core/purplship/universal/providers/__init__.py @@ -0,0 +1 @@ +from purplship.universal.providers.rate import parse_rate_response, rate_request diff --git a/sdk/core/purplship/universal/providers/rate.py b/sdk/core/purplship/universal/providers/rate.py new file mode 100644 index 0000000000..6eed86eb38 --- /dev/null +++ b/sdk/core/purplship/universal/providers/rate.py @@ -0,0 +1,34 @@ +from typing import Tuple, List +from purplship.core.utils import Serializable +from purplship.core.models import ( + RateRequest, + RateDetails, + Message, + ServiceLevel, +) +from purplship.universal.mappers.settings import Settings + + +def parse_rate_response( + response: Tuple[List[ServiceLevel], List[Message]], settings: Settings +) -> Tuple[List[RateDetails], List[Message]]: + services, errors = response + rates = [_extract_details(service, settings) for service in services] + return rates, errors + + +def _extract_details(service: ServiceLevel, settings: Settings) -> RateDetails: + return RateDetails( + carrier_name=settings.carrier_name, + carrier_id=settings.carrier_id, + currency=service.currency, + transit_days=service.estimated_transit_days, + service=service.service_code, + base_charge=service.cost, + total_charge=service.cost, + meta=dict(service_name=service.service_name), + ) + + +def rate_request(payload: RateRequest, _) -> Serializable[RateRequest]: + return Serializable(payload) diff --git a/sdk/core/pyproject.toml b/sdk/core/pyproject.toml index d16f679301..c73a2961e7 100644 --- a/sdk/core/pyproject.toml +++ b/sdk/core/pyproject.toml @@ -1,11 +1,11 @@ [tool.poetry] name = "purplship" -version = "2021.10" -homepage="https://docs.purplship.com" +version = "2021.11.4" +homepage="https://next.purplship.com/docs/guides/sdk" repository="https://github.com/purplship/purplship" description = "Multi-carrier shipping API integration with python" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [{ include = "purplship" }] classifiers=[ @@ -17,13 +17,15 @@ classifiers=[ [tool.poetry.dependencies] python = "^3.7" -jstruct = "^2021.7.1" -lxml = "^4.6.2" -lxml-stubs = "^0.1.1" -py-soap = "^2020.3.2" -xmltodict = "^0.12.0" -phonenumbers = "^8.12.17" -Pillow = "^8.1.0" +jstruct = "" +lxml = "" +lxml-stubs = "" +py-soap = "" +xmltodict = "" +phonenumbers = "" +Pillow = "" +PyPDF2 = "" +simple_zpl2 = "" [tool.poetry.dev-dependencies] diff --git a/sdk/core/tests/__init__.py b/sdk/core/tests/__init__.py new file mode 100644 index 0000000000..c630584db2 --- /dev/null +++ b/sdk/core/tests/__init__.py @@ -0,0 +1 @@ +from tests.core import * diff --git a/sdk/core/tests/core/__init__.py b/sdk/core/tests/core/__init__.py new file mode 100644 index 0000000000..c433dabb80 --- /dev/null +++ b/sdk/core/tests/core/__init__.py @@ -0,0 +1 @@ +from tests.core.universal_rate import * diff --git a/sdk/core/tests/core/universal_rate.py b/sdk/core/tests/core/universal_rate.py new file mode 100644 index 0000000000..50162f9a51 --- /dev/null +++ b/sdk/core/tests/core/universal_rate.py @@ -0,0 +1,241 @@ +import unittest +from purplship.core.utils import DP, Serializable +from purplship.core.models import RateRequest +from purplship.universal.mappers import Settings, Proxy + + +class TestCanadaPostRating(unittest.TestCase): + def setUp(self): + self.maxDiff = None + self.settings = Settings(**settings_data) + self.proxy = Proxy(self.settings) + + def test_rate_without_service_selection_request(self): + RateRequestWithoutSelection = Serializable(RateRequest(**rate_request_data)) + response_data = self.proxy.get_rates(RateRequestWithoutSelection) + + self.assertListEqual( + DP.to_dict(response_data.deserialize()), + ParsedRateResponseWithoutSelection, + ) + + def test_rate_standard_service_request(self): + RateRequestStandardService = Serializable( + RateRequest(**{**rate_request_data, "services": ["carrier_standard"]}) + ) + response_data = self.proxy.get_rates(RateRequestStandardService) + + self.assertListEqual( + DP.to_dict(response_data.deserialize()), + ParsedRateResponseStandardService, + ) + + def test_rate_high_weight_request(self): + RateRequestHighWeight = Serializable( + RateRequest( + **{ + **rate_request_data, + "parcels": [ + { + **rate_request_data["parcels"][0], + "weight": 6.0, + } + ], + } + ) + ) + response_data = self.proxy.get_rates(RateRequestHighWeight) + + self.assertListEqual( + DP.to_dict(response_data.deserialize()), + ParsedRateResponseHighWeightService, + ) + + def test_international_rate_request(self): + InternationalRateRequest = Serializable( + RateRequest( + **{ + **rate_request_data, + "recipient": {"postal_code": "11111", "country_code": "US"}, + } + ) + ) + response_data = self.proxy.get_rates(InternationalRateRequest) + + self.assertListEqual( + DP.to_dict(response_data.deserialize()), + ParsedInternationalRateResponseService, + ) + + def test_international_high_weight_rate_request(self): + InternationalRateRequestHighWeight = Serializable( + RateRequest( + **{ + **rate_request_data, + "recipient": {"postal_code": "11111", "country_code": "US"}, + "parcels": [ + { + **rate_request_data["parcels"][0], + "weight": 10.0, + } + ], + } + ) + ) + response_data = self.proxy.get_rates(InternationalRateRequestHighWeight) + + self.assertListEqual( + DP.to_dict(response_data.deserialize()), + ParsedInternationalRateResponseHighWeightService, + ) + + +if __name__ == "__main__": + unittest.main() + + +settings_data = { + "services": [ + { + "service_name": "Standard", + "service_code": "carrier_standard", + "cost": "10.00", + "currency": "USD", + "max_weight": 5.0, + "weight_unit": "LB", + "domicile": True, + "international": False, + }, + { + "service_name": "Premium", + "service_code": "carrier_premium", + "cost": "15.00", + "currency": "USD", + "max_weight": 8.0, + "weight_unit": "LB", + "domicile": True, + "international": False, + }, + { + "service_name": "International Parcel", + "service_code": "carrier_interational_parcel", + "cost": "25.00", + "currency": "USD", + "max_weight": 5.0, + "weight_unit": "LB", + "domicile": False, + "international": True, + }, + ] +} + +rate_request_data = { + "shipper": {"postal_code": "H8Z 2Z3", "country_code": "CA"}, + "recipient": {"postal_code": "h8z2V4", "country_code": "CA"}, + "parcels": [ + { + "height": 3.0, + "length": 5.0, + "width": 3.0, + "weight": 4.0, + "dimension_unit": "IN", + "weight_unit": "LB", + } + ], + "services": [], +} + + +ParsedRateResponseWithoutSelection = [ + [ + { + "cost": "10.00", + "currency": "USD", + "domicile": True, + "international": False, + "max_weight": 5.0, + "service_code": "carrier_standard", + "service_name": "Standard", + "weight_unit": "LB", + "active": True, + }, + { + "cost": "15.00", + "currency": "USD", + "domicile": True, + "international": False, + "max_weight": 8.0, + "service_code": "carrier_premium", + "service_name": "Premium", + "weight_unit": "LB", + "active": True, + }, + ], + [], +] + +ParsedRateResponseStandardService = [ + [ + { + "cost": "10.00", + "currency": "USD", + "domicile": True, + "international": False, + "max_weight": 5.0, + "service_code": "carrier_standard", + "service_name": "Standard", + "weight_unit": "LB", + "active": True, + }, + ], + [], +] + +ParsedRateResponseHighWeightService = [ + [ + { + "cost": "15.00", + "currency": "USD", + "domicile": True, + "international": False, + "max_weight": 8.0, + "service_code": "carrier_premium", + "service_name": "Premium", + "weight_unit": "LB", + "active": True, + } + ], + [ + { + "code": "invalid_weight", + "message": "the weight exceeds service carrier_standard max weight", + } + ], +] + +ParsedInternationalRateResponseService = [ + [ + { + "cost": "25.00", + "currency": "USD", + "domicile": False, + "international": True, + "max_weight": 5.0, + "service_code": "carrier_interational_parcel", + "service_name": "International Parcel", + "weight_unit": "LB", + "active": True, + } + ], + [], +] + +ParsedInternationalRateResponseHighWeightService = [ + [], + [ + { + "code": "invalid_weight", + "message": "the weight exceeds service carrier_interational_parcel max weight", + } + ], +] diff --git a/sdk/extensions/aramex/poetry.lock b/sdk/extensions/aramex/poetry.lock deleted file mode 100644 index d250643db7..0000000000 --- a/sdk/extensions/aramex/poetry.lock +++ /dev/null @@ -1,240 +0,0 @@ -[[package]] -name = "attrs" -version = "21.2.0" -description = "Classes Without Boilerplate" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" - -[package.extras] -dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit"] -docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"] -tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface"] -tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins"] - -[[package]] -name = "carrier.aramex" -version = "2021.2" -description = "Purolator Web API Schemas Python Data Types library" -category = "main" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "jstruct" -version = "2020.4.0" -description = "Readable serializable and deserializable Python nested models" -category = "main" -optional = false -python-versions = "*" - -[package.dependencies] -attrs = "*" - -[[package]] -name = "lxml" -version = "4.6.3" -description = "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API." -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*" - -[package.extras] -cssselect = ["cssselect (>=0.7)"] -html5 = ["html5lib"] -htmlsoup = ["beautifulsoup4"] -source = ["Cython (>=0.29.7)"] - -[[package]] -name = "lxml-stubs" -version = "0.1.1" -description = "Type annotations for the lxml package" -category = "main" -optional = false -python-versions = "*" - -[package.extras] -test = ["pytest (>=6.0.0)", "pytest-mypy-plugins (==1.4.0)", "coverage[toml] (==5.2)"] - -[[package]] -name = "phonenumbers" -version = "8.12.28" -description = "Python version of Google's common library for parsing, formatting, storing and validating international phone numbers." -category = "main" -optional = false -python-versions = "*" - -[[package]] -name = "pillow" -version = "8.3.1" -description = "Python Imaging Library (Fork)" -category = "main" -optional = false -python-versions = ">=3.6" - -[[package]] -name = "purplship" -version = "2021.6.2" -description = "Multi-carrier shipping API integration with python" -category = "main" -optional = false -python-versions = ">=3.7,<4.0" - -[package.dependencies] -jstruct = ">=2020.4.0,<2021.0.0" -lxml = ">=4.6.2,<5.0.0" -lxml-stubs = ">=0.1.1,<0.2.0" -phonenumbers = ">=8.12.17,<9.0.0" -Pillow = ">=8.1.0,<9.0.0" -py-soap = ">=2020.3.2,<2021.0.0" -xmltodict = ">=0.12.0,<0.13.0" - -[[package]] -name = "py-soap" -version = "2020.3.2" -description = "SOAP Schemas Python Data Types library" -category = "main" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "six" -version = "1.16.0" -description = "Python 2 and 3 compatibility utilities" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" - -[[package]] -name = "xmltodict" -version = "0.12.0" -description = "Makes working with XML feel like you are working with JSON" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.7" -content-hash = "fba7f925a449838c1c3526b63919c35e4302162f3ac2e79fd0b3ccc40957b033" - -[metadata.files] -attrs = [ - {file = "attrs-21.2.0-py2.py3-none-any.whl", hash = "sha256:149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1"}, - {file = "attrs-21.2.0.tar.gz", hash = "sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"}, -] -"carrier.aramex" = [ - {file = "carrier.aramex-2021.2-py3-none-any.whl", hash = "sha256:d62edc7ff9e9d8cde6d1d60373c6c2f726cd622da6c50845e5f787e0bbf145a4"}, -] -jstruct = [ - {file = "jstruct-2020.4.0-py3-none-any.whl", hash = "sha256:86257c1332e1ba6983d78e3199fb3dcadaf742e96c3c1a97f3ba322fa241f89c"}, -] -lxml = [ - {file = "lxml-4.6.3-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:df7c53783a46febb0e70f6b05df2ba104610f2fb0d27023409734a3ecbb78fb2"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:1b7584d421d254ab86d4f0b13ec662a9014397678a7c4265a02a6d7c2b18a75f"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:079f3ae844f38982d156efce585bc540c16a926d4436712cf4baee0cce487a3d"}, - {file = "lxml-4.6.3-cp27-cp27m-win32.whl", hash = "sha256:bc4313cbeb0e7a416a488d72f9680fffffc645f8a838bd2193809881c67dd106"}, - {file = "lxml-4.6.3-cp27-cp27m-win_amd64.whl", hash = "sha256:8157dadbb09a34a6bd95a50690595e1fa0af1a99445e2744110e3dca7831c4ee"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:7728e05c35412ba36d3e9795ae8995e3c86958179c9770e65558ec3fdfd3724f"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:4bff24dfeea62f2e56f5bab929b4428ae6caba2d1eea0c2d6eb618e30a71e6d4"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:74f7d8d439b18fa4c385f3f5dfd11144bb87c1da034a466c5b5577d23a1d9b51"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:f90ba11136bfdd25cae3951af8da2e95121c9b9b93727b1b896e3fa105b2f586"}, - {file = "lxml-4.6.3-cp35-cp35m-win32.whl", hash = "sha256:f2380a6376dfa090227b663f9678150ef27543483055cc327555fb592c5967e2"}, - {file = "lxml-4.6.3-cp35-cp35m-win_amd64.whl", hash = "sha256:c4f05c5a7c49d2fb70223d0d5bcfbe474cf928310ac9fa6a7c6dddc831d0b1d4"}, - {file = "lxml-4.6.3-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:d2e35d7bf1c1ac8c538f88d26b396e73dd81440d59c1ef8522e1ea77b345ede4"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:289e9ca1a9287f08daaf796d96e06cb2bc2958891d7911ac7cae1c5f9e1e0ee3"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:bccbfc27563652de7dc9bdc595cb25e90b59c5f8e23e806ed0fd623755b6565d"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:820628b7b3135403540202e60551e741f9b6d3304371712521be939470b454ec"}, - {file = "lxml-4.6.3-cp36-cp36m-win32.whl", hash = "sha256:5a0a14e264069c03e46f926be0d8919f4105c1623d620e7ec0e612a2e9bf1c04"}, - {file = "lxml-4.6.3-cp36-cp36m-win_amd64.whl", hash = "sha256:92e821e43ad382332eade6812e298dc9701c75fe289f2a2d39c7960b43d1e92a"}, - {file = "lxml-4.6.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:efd7a09678fd8b53117f6bae4fa3825e0a22b03ef0a932e070c0bdbb3a35e654"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:efac139c3f0bf4f0939f9375af4b02c5ad83a622de52d6dfa8e438e8e01d0eb0"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:0fbcf5565ac01dff87cbfc0ff323515c823081c5777a9fc7703ff58388c258c3"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:122fba10466c7bd4178b07dba427aa516286b846b2cbd6f6169141917283aae2"}, - {file = "lxml-4.6.3-cp37-cp37m-win32.whl", hash = "sha256:3439c71103ef0e904ea0a1901611863e51f50b5cd5e8654a151740fde5e1cade"}, - {file = "lxml-4.6.3-cp37-cp37m-win_amd64.whl", hash = "sha256:4289728b5e2000a4ad4ab8da6e1db2e093c63c08bdc0414799ee776a3f78da4b"}, - {file = "lxml-4.6.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:b007cbb845b28db4fb8b6a5cdcbf65bacb16a8bd328b53cbc0698688a68e1caa"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_i686.whl", hash = "sha256:76fa7b1362d19f8fbd3e75fe2fb7c79359b0af8747e6f7141c338f0bee2f871a"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:26e761ab5b07adf5f555ee82fb4bfc35bf93750499c6c7614bd64d12aaa67927"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:66e575c62792c3f9ca47cb8b6fab9e35bab91360c783d1606f758761810c9791"}, - {file = "lxml-4.6.3-cp38-cp38-win32.whl", hash = "sha256:89b8b22a5ff72d89d48d0e62abb14340d9e99fd637d046c27b8b257a01ffbe28"}, - {file = "lxml-4.6.3-cp38-cp38-win_amd64.whl", hash = "sha256:2a9d50e69aac3ebee695424f7dbd7b8c6d6eb7de2a2eb6b0f6c7db6aa41e02b7"}, - {file = "lxml-4.6.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:ce256aaa50f6cc9a649c51be3cd4ff142d67295bfc4f490c9134d0f9f6d58ef0"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_i686.whl", hash = "sha256:7610b8c31688f0b1be0ef882889817939490a36d0ee880ea562a4e1399c447a1"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:f8380c03e45cf09f8557bdaa41e1fa7c81f3ae22828e1db470ab2a6c96d8bc23"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:884ab9b29feaca361f7f88d811b1eea9bfca36cf3da27768d28ad45c3ee6f969"}, - {file = "lxml-4.6.3-cp39-cp39-win32.whl", hash = "sha256:33bb934a044cf32157c12bfcfbb6649807da20aa92c062ef51903415c704704f"}, - {file = "lxml-4.6.3-cp39-cp39-win_amd64.whl", hash = "sha256:542d454665a3e277f76954418124d67516c5f88e51a900365ed54a9806122b83"}, - {file = "lxml-4.6.3.tar.gz", hash = "sha256:39b78571b3b30645ac77b95f7c69d1bffc4cf8c3b157c435a34da72e78c82468"}, -] -lxml-stubs = [ - {file = "lxml-stubs-0.1.1.tar.gz", hash = "sha256:9b6a01ba4bccd6e532c01e19d2a3bc6d1d018fa0b9870236f61f315cb7b06648"}, - {file = "lxml_stubs-0.1.1-py3-none-any.whl", hash = "sha256:d34a28be0e2525b0236aff7fe67af1f61911f556cadbc61f09810b69f762b747"}, -] -phonenumbers = [ - {file = "phonenumbers-8.12.28-py2.py3-none-any.whl", hash = "sha256:f8ce05f82955d2faeefe2303350b2ccb7369dd39b6e45231a09475d67eb7e83b"}, - {file = "phonenumbers-8.12.28.tar.gz", hash = "sha256:42ea4f946d5cce0056cbce257842ea6b281e69828ad2e7f27b29d3908e5b06bd"}, -] -pillow = [ - {file = "Pillow-8.3.1-1-cp36-cp36m-win_amd64.whl", hash = "sha256:fd7eef578f5b2200d066db1b50c4aa66410786201669fb76d5238b007918fb24"}, - {file = "Pillow-8.3.1-1-cp37-cp37m-win_amd64.whl", hash = "sha256:75e09042a3b39e0ea61ce37e941221313d51a9c26b8e54e12b3ececccb71718a"}, - {file = "Pillow-8.3.1-1-cp38-cp38-win_amd64.whl", hash = "sha256:c0e0550a404c69aab1e04ae89cca3e2a042b56ab043f7f729d984bf73ed2a093"}, - {file = "Pillow-8.3.1-1-cp39-cp39-win_amd64.whl", hash = "sha256:479ab11cbd69612acefa8286481f65c5dece2002ffaa4f9db62682379ca3bb77"}, - {file = "Pillow-8.3.1-1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:f156d6ecfc747ee111c167f8faf5f4953761b5e66e91a4e6767e548d0f80129c"}, - {file = "Pillow-8.3.1-cp36-cp36m-macosx_10_10_x86_64.whl", hash = "sha256:196560dba4da7a72c5e7085fccc5938ab4075fd37fe8b5468869724109812edd"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:29c9569049d04aaacd690573a0398dbd8e0bf0255684fee512b413c2142ab723"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:c088a000dfdd88c184cc7271bfac8c5b82d9efa8637cd2b68183771e3cf56f04"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:fc214a6b75d2e0ea7745488da7da3c381f41790812988c7a92345978414fad37"}, - {file = "Pillow-8.3.1-cp36-cp36m-win32.whl", hash = "sha256:a17ca41f45cf78c2216ebfab03add7cc350c305c38ff34ef4eef66b7d76c5229"}, - {file = "Pillow-8.3.1-cp36-cp36m-win_amd64.whl", hash = "sha256:67b3666b544b953a2777cb3f5a922e991be73ab32635666ee72e05876b8a92de"}, - {file = "Pillow-8.3.1-cp37-cp37m-macosx_10_10_x86_64.whl", hash = "sha256:ff04c373477723430dce2e9d024c708a047d44cf17166bf16e604b379bf0ca14"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9364c81b252d8348e9cc0cb63e856b8f7c1b340caba6ee7a7a65c968312f7dab"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a2f381932dca2cf775811a008aa3027671ace723b7a38838045b1aee8669fdcf"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:d0da39795049a9afcaadec532e7b669b5ebbb2a9134576ebcc15dd5bdae33cc0"}, - {file = "Pillow-8.3.1-cp37-cp37m-win32.whl", hash = "sha256:2b6dfa068a8b6137da34a4936f5a816aba0ecc967af2feeb32c4393ddd671cba"}, - {file = "Pillow-8.3.1-cp37-cp37m-win_amd64.whl", hash = "sha256:a4eef1ff2d62676deabf076f963eda4da34b51bc0517c70239fafed1d5b51500"}, - {file = "Pillow-8.3.1-cp38-cp38-macosx_10_10_x86_64.whl", hash = "sha256:660a87085925c61a0dcc80efb967512ac34dbb256ff7dd2b9b4ee8dbdab58cf4"}, - {file = "Pillow-8.3.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:15a2808e269a1cf2131930183dcc0419bc77bb73eb54285dde2706ac9939fa8e"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:969cc558cca859cadf24f890fc009e1bce7d7d0386ba7c0478641a60199adf79"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:2ee77c14a0299d0541d26f3d8500bb57e081233e3fa915fa35abd02c51fa7fae"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:c11003197f908878164f0e6da15fce22373ac3fc320cda8c9d16e6bba105b844"}, - {file = "Pillow-8.3.1-cp38-cp38-win32.whl", hash = "sha256:3f08bd8d785204149b5b33e3b5f0ebbfe2190ea58d1a051c578e29e39bfd2367"}, - {file = "Pillow-8.3.1-cp38-cp38-win_amd64.whl", hash = "sha256:70af7d222df0ff81a2da601fab42decb009dc721545ed78549cb96e3a1c5f0c8"}, - {file = "Pillow-8.3.1-cp39-cp39-macosx_10_10_x86_64.whl", hash = "sha256:37730f6e68bdc6a3f02d2079c34c532330d206429f3cee651aab6b66839a9f0e"}, - {file = "Pillow-8.3.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:4bc3c7ef940eeb200ca65bd83005eb3aae8083d47e8fcbf5f0943baa50726856"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c35d09db702f4185ba22bb33ef1751ad49c266534339a5cebeb5159d364f6f82"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:0b2efa07f69dc395d95bb9ef3299f4ca29bcb2157dc615bae0b42c3c20668ffc"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:cc866706d56bd3a7dbf8bac8660c6f6462f2f2b8a49add2ba617bc0c54473d83"}, - {file = "Pillow-8.3.1-cp39-cp39-win32.whl", hash = "sha256:9a211b663cf2314edbdb4cf897beeb5c9ee3810d1d53f0e423f06d6ebbf9cd5d"}, - {file = "Pillow-8.3.1-cp39-cp39-win_amd64.whl", hash = "sha256:c2a5ff58751670292b406b9f06e07ed1446a4b13ffced6b6cab75b857485cbc8"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-macosx_10_10_x86_64.whl", hash = "sha256:c379425c2707078dfb6bfad2430728831d399dc95a7deeb92015eb4c92345eaf"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:114f816e4f73f9ec06997b2fde81a92cbf0777c9e8f462005550eed6bae57e63"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:8960a8a9f4598974e4c2aeb1bff9bdd5db03ee65fd1fce8adf3223721aa2a636"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-macosx_10_10_x86_64.whl", hash = "sha256:147bd9e71fb9dcf08357b4d530b5167941e222a6fd21f869c7911bac40b9994d"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:1fd5066cd343b5db88c048d971994e56b296868766e461b82fa4e22498f34d77"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:f4ebde71785f8bceb39dcd1e7f06bcc5d5c3cf48b9f69ab52636309387b097c8"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:1c03e24be975e2afe70dfc5da6f187eea0b49a68bb2b69db0f30a61b7031cee4"}, - {file = "Pillow-8.3.1.tar.gz", hash = "sha256:2cac53839bfc5cece8fdbe7f084d5e3ee61e1303cccc86511d351adcb9e2c792"}, -] -purplship = [ - {file = "purplship-2021.6.2-py3-none-any.whl", hash = "sha256:ded793b23664a14649f3c08ebbd344f6b58fbbc982d69481242478074ea74ff1"}, -] -py-soap = [ - {file = "py_soap-2020.3.2-py3-none-any.whl", hash = "sha256:61e2ec956d349bdd9d4c6248a2ae3c4cc4b0a2a5cf6b439b6de480a3bc2766a1"}, -] -six = [ - {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"}, - {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"}, -] -xmltodict = [ - {file = "xmltodict-0.12.0-py2.py3-none-any.whl", hash = "sha256:8bbcb45cc982f48b2ca8fe7e7827c5d792f217ecf1792626f808bf41c3b86051"}, - {file = "xmltodict-0.12.0.tar.gz", hash = "sha256:50d8c638ed7ecb88d90561beedbf720c9b4e851a9fa6c47ebd64e99d166d8a21"}, -] diff --git a/sdk/extensions/aramex/pyproject.toml b/sdk/extensions/aramex/pyproject.toml index 81cafe0f4a..9484ebd9ad 100644 --- a/sdk/extensions/aramex/pyproject.toml +++ b/sdk/extensions/aramex/pyproject.toml @@ -1,11 +1,11 @@ [tool.poetry] name = "purplship.aramex" version = "2021.10" -homepage="https://docs.purplship.com" +homepage="https://next.purplship.com/docs/guides/sdk" repository="https://github.com/purplship/purplship" description = "Purplship - Aramex Shipping Extension" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [{ include = "purplship" }] classifiers=[ diff --git a/sdk/extensions/asendia_us/purplship/providers/asendia_us/shipment/create.py b/sdk/extensions/asendia_us/purplship/providers/asendia_us/shipment/create.py index e0f2c04e2b..1a4835fdd2 100644 --- a/sdk/extensions/asendia_us/purplship/providers/asendia_us/shipment/create.py +++ b/sdk/extensions/asendia_us/purplship/providers/asendia_us/shipment/create.py @@ -2,7 +2,7 @@ from typing import Tuple, List from asendia_us_lib.shipping_request import ShippingRequest, Item from asendia_us_lib.shipping_response import PackageLabel -from purplship.core.units import Packages, Options, Weight +from purplship.core.units import CustomsInfo, Packages, Options, Weight from purplship.core.utils import Serializable, DP from purplship.core.models import ( ShipmentRequest, @@ -21,7 +21,9 @@ from purplship.providers.asendia_us.utils import Settings -def parse_shipment_response(responses: Tuple[str, dict], settings: Settings) -> Tuple[ShipmentDetails, List[Message]]: +def parse_shipment_response( + responses: Tuple[str, dict], settings: Settings +) -> Tuple[ShipmentDetails, List[Message]]: _, response = responses errors = parse_error_response(response, settings) details = ( @@ -46,17 +48,21 @@ def _extract_details(response: Tuple[str, dict], settings: Settings) -> Shipment ) -def shipment_request(payload: ShipmentRequest, settings: Settings) -> Serializable[ShippingRequest]: +def shipment_request( + payload: ShipmentRequest, settings: Settings +) -> Serializable[ShippingRequest]: package = Packages(payload.parcels).single options = Options(payload.options, Option) product_code = Service.map(payload.service).value_or_key - unique_id = getattr(payload, 'id', uuid4().hex) - customs = payload.customs or Customs(commodities=[]) + unique_id = getattr(payload, "id", uuid4().hex) + customs = CustomsInfo(payload.customs or Customs(commodities=[])) request = ShippingRequest( accountNumber=settings.account_number, subAccountNumber=options.asendia_sub_account_number, - processingLocation=ProcessingLocation.map(options.asendia_processing_location or "SFO").name, + processingLocation=ProcessingLocation.map( + options.asendia_processing_location or "SFO" + ).name, includeRate=True, labelType=LabelType.map(payload.label_type or "PDF").name_or_key, orderNumber=unique_id, @@ -116,10 +122,10 @@ def shipment_request(payload: ShipmentRequest, settings: Settings) -> Serializab quantity=item.quantity, unitWeight=Weight(item.weight, package.weight_unit).value, countryOfOrigin=item.origin_country, - htsNumber=None + htsNumber=None, ) for item in customs.commodities - ] + ], ) return Serializable(request) diff --git a/sdk/extensions/asendia_us/pyproject.toml b/sdk/extensions/asendia_us/pyproject.toml index 850a7e8c62..ec4d583a84 100644 --- a/sdk/extensions/asendia_us/pyproject.toml +++ b/sdk/extensions/asendia_us/pyproject.toml @@ -1,11 +1,11 @@ [tool.poetry] name = "purplship.asendia_us" -version = "2021.10" -homepage="https://docs.purplship.com" +version = "2021.11" +homepage="https://next.purplship.com/docs/guides/sdk" repository="https://github.com/purplship/purplship" description = "Purplship - Asendia US Shipping Extension" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [{ include = "purplship" }] classifiers=[ diff --git a/sdk/extensions/australiapost/poetry.lock b/sdk/extensions/australiapost/poetry.lock deleted file mode 100644 index 3fa6f2f8f6..0000000000 --- a/sdk/extensions/australiapost/poetry.lock +++ /dev/null @@ -1,239 +0,0 @@ -[[package]] -name = "attrs" -version = "21.2.0" -description = "Classes Without Boilerplate" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" - -[package.extras] -dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit"] -docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"] -tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface"] -tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins"] - -[[package]] -name = "carrier.australiapost" -version = "2021.2.1" -description = "Australia Post API Schemas Python Data Types library" -category = "main" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -jstruct = "*" - -[[package]] -name = "jstruct" -version = "2020.4.0" -description = "Readable serializable and deserializable Python nested models" -category = "main" -optional = false -python-versions = "*" - -[package.dependencies] -attrs = "*" - -[[package]] -name = "lxml" -version = "4.6.3" -description = "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API." -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*" - -[package.extras] -cssselect = ["cssselect (>=0.7)"] -html5 = ["html5lib"] -htmlsoup = ["beautifulsoup4"] -source = ["Cython (>=0.29.7)"] - -[[package]] -name = "lxml-stubs" -version = "0.1.1" -description = "Type annotations for the lxml package" -category = "main" -optional = false -python-versions = "*" - -[package.extras] -test = ["pytest (>=6.0.0)", "pytest-mypy-plugins (==1.4.0)", "coverage[toml] (==5.2)"] - -[[package]] -name = "phonenumbers" -version = "8.12.28" -description = "Python version of Google's common library for parsing, formatting, storing and validating international phone numbers." -category = "main" -optional = false -python-versions = "*" - -[[package]] -name = "pillow" -version = "8.3.1" -description = "Python Imaging Library (Fork)" -category = "main" -optional = false -python-versions = ">=3.6" - -[[package]] -name = "purplship" -version = "2021.6.2" -description = "Multi-carrier shipping API integration with python" -category = "main" -optional = false -python-versions = ">=3.7,<4.0" - -[package.dependencies] -jstruct = ">=2020.4.0,<2021.0.0" -lxml = ">=4.6.2,<5.0.0" -lxml-stubs = ">=0.1.1,<0.2.0" -phonenumbers = ">=8.12.17,<9.0.0" -Pillow = ">=8.1.0,<9.0.0" -py-soap = ">=2020.3.2,<2021.0.0" -xmltodict = ">=0.12.0,<0.13.0" - -[[package]] -name = "py-soap" -version = "2020.3.2" -description = "SOAP Schemas Python Data Types library" -category = "main" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "six" -version = "1.16.0" -description = "Python 2 and 3 compatibility utilities" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" - -[[package]] -name = "xmltodict" -version = "0.12.0" -description = "Makes working with XML feel like you are working with JSON" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.7" -content-hash = "4d50920e8d0a9f353cfecac1dd9865977439b29679a20132864010d5bb7ca084" - -[metadata.files] -attrs = [ - {file = "attrs-21.2.0-py2.py3-none-any.whl", hash = "sha256:149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1"}, - {file = "attrs-21.2.0.tar.gz", hash = "sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"}, -] -"carrier.australiapost" = [ - {file = "carrier.australiapost-2021.2.1-py3-none-any.whl", hash = "sha256:2bb030a46c07636a041ea8a57f64a17674fe0c0cc8eb6ebff56e03faa0322730"}, -] -jstruct = [ - {file = "jstruct-2020.4.0-py3-none-any.whl", hash = "sha256:86257c1332e1ba6983d78e3199fb3dcadaf742e96c3c1a97f3ba322fa241f89c"}, -] -lxml = [ - {file = "lxml-4.6.3-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:df7c53783a46febb0e70f6b05df2ba104610f2fb0d27023409734a3ecbb78fb2"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:1b7584d421d254ab86d4f0b13ec662a9014397678a7c4265a02a6d7c2b18a75f"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:079f3ae844f38982d156efce585bc540c16a926d4436712cf4baee0cce487a3d"}, - {file = "lxml-4.6.3-cp27-cp27m-win32.whl", hash = "sha256:bc4313cbeb0e7a416a488d72f9680fffffc645f8a838bd2193809881c67dd106"}, - {file = "lxml-4.6.3-cp27-cp27m-win_amd64.whl", hash = "sha256:8157dadbb09a34a6bd95a50690595e1fa0af1a99445e2744110e3dca7831c4ee"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:7728e05c35412ba36d3e9795ae8995e3c86958179c9770e65558ec3fdfd3724f"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:4bff24dfeea62f2e56f5bab929b4428ae6caba2d1eea0c2d6eb618e30a71e6d4"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:74f7d8d439b18fa4c385f3f5dfd11144bb87c1da034a466c5b5577d23a1d9b51"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:f90ba11136bfdd25cae3951af8da2e95121c9b9b93727b1b896e3fa105b2f586"}, - {file = "lxml-4.6.3-cp35-cp35m-win32.whl", hash = "sha256:f2380a6376dfa090227b663f9678150ef27543483055cc327555fb592c5967e2"}, - {file = "lxml-4.6.3-cp35-cp35m-win_amd64.whl", hash = "sha256:c4f05c5a7c49d2fb70223d0d5bcfbe474cf928310ac9fa6a7c6dddc831d0b1d4"}, - {file = "lxml-4.6.3-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:d2e35d7bf1c1ac8c538f88d26b396e73dd81440d59c1ef8522e1ea77b345ede4"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:289e9ca1a9287f08daaf796d96e06cb2bc2958891d7911ac7cae1c5f9e1e0ee3"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:bccbfc27563652de7dc9bdc595cb25e90b59c5f8e23e806ed0fd623755b6565d"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:820628b7b3135403540202e60551e741f9b6d3304371712521be939470b454ec"}, - {file = "lxml-4.6.3-cp36-cp36m-win32.whl", hash = "sha256:5a0a14e264069c03e46f926be0d8919f4105c1623d620e7ec0e612a2e9bf1c04"}, - {file = "lxml-4.6.3-cp36-cp36m-win_amd64.whl", hash = "sha256:92e821e43ad382332eade6812e298dc9701c75fe289f2a2d39c7960b43d1e92a"}, - {file = "lxml-4.6.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:efd7a09678fd8b53117f6bae4fa3825e0a22b03ef0a932e070c0bdbb3a35e654"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:efac139c3f0bf4f0939f9375af4b02c5ad83a622de52d6dfa8e438e8e01d0eb0"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:0fbcf5565ac01dff87cbfc0ff323515c823081c5777a9fc7703ff58388c258c3"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:122fba10466c7bd4178b07dba427aa516286b846b2cbd6f6169141917283aae2"}, - {file = "lxml-4.6.3-cp37-cp37m-win32.whl", hash = "sha256:3439c71103ef0e904ea0a1901611863e51f50b5cd5e8654a151740fde5e1cade"}, - {file = "lxml-4.6.3-cp37-cp37m-win_amd64.whl", hash = "sha256:4289728b5e2000a4ad4ab8da6e1db2e093c63c08bdc0414799ee776a3f78da4b"}, - {file = "lxml-4.6.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:b007cbb845b28db4fb8b6a5cdcbf65bacb16a8bd328b53cbc0698688a68e1caa"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_i686.whl", hash = "sha256:76fa7b1362d19f8fbd3e75fe2fb7c79359b0af8747e6f7141c338f0bee2f871a"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:26e761ab5b07adf5f555ee82fb4bfc35bf93750499c6c7614bd64d12aaa67927"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:66e575c62792c3f9ca47cb8b6fab9e35bab91360c783d1606f758761810c9791"}, - {file = "lxml-4.6.3-cp38-cp38-win32.whl", hash = "sha256:89b8b22a5ff72d89d48d0e62abb14340d9e99fd637d046c27b8b257a01ffbe28"}, - {file = "lxml-4.6.3-cp38-cp38-win_amd64.whl", hash = "sha256:2a9d50e69aac3ebee695424f7dbd7b8c6d6eb7de2a2eb6b0f6c7db6aa41e02b7"}, - {file = "lxml-4.6.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:ce256aaa50f6cc9a649c51be3cd4ff142d67295bfc4f490c9134d0f9f6d58ef0"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_i686.whl", hash = "sha256:7610b8c31688f0b1be0ef882889817939490a36d0ee880ea562a4e1399c447a1"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:f8380c03e45cf09f8557bdaa41e1fa7c81f3ae22828e1db470ab2a6c96d8bc23"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:884ab9b29feaca361f7f88d811b1eea9bfca36cf3da27768d28ad45c3ee6f969"}, - {file = "lxml-4.6.3-cp39-cp39-win32.whl", hash = "sha256:33bb934a044cf32157c12bfcfbb6649807da20aa92c062ef51903415c704704f"}, - {file = "lxml-4.6.3-cp39-cp39-win_amd64.whl", hash = "sha256:542d454665a3e277f76954418124d67516c5f88e51a900365ed54a9806122b83"}, - {file = "lxml-4.6.3.tar.gz", hash = "sha256:39b78571b3b30645ac77b95f7c69d1bffc4cf8c3b157c435a34da72e78c82468"}, -] -lxml-stubs = [ - {file = "lxml-stubs-0.1.1.tar.gz", hash = "sha256:9b6a01ba4bccd6e532c01e19d2a3bc6d1d018fa0b9870236f61f315cb7b06648"}, - {file = "lxml_stubs-0.1.1-py3-none-any.whl", hash = "sha256:d34a28be0e2525b0236aff7fe67af1f61911f556cadbc61f09810b69f762b747"}, -] -phonenumbers = [ - {file = "phonenumbers-8.12.28-py2.py3-none-any.whl", hash = "sha256:f8ce05f82955d2faeefe2303350b2ccb7369dd39b6e45231a09475d67eb7e83b"}, - {file = "phonenumbers-8.12.28.tar.gz", hash = "sha256:42ea4f946d5cce0056cbce257842ea6b281e69828ad2e7f27b29d3908e5b06bd"}, -] -pillow = [ - {file = "Pillow-8.3.1-1-cp36-cp36m-win_amd64.whl", hash = "sha256:fd7eef578f5b2200d066db1b50c4aa66410786201669fb76d5238b007918fb24"}, - {file = "Pillow-8.3.1-1-cp37-cp37m-win_amd64.whl", hash = "sha256:75e09042a3b39e0ea61ce37e941221313d51a9c26b8e54e12b3ececccb71718a"}, - {file = "Pillow-8.3.1-1-cp38-cp38-win_amd64.whl", hash = "sha256:c0e0550a404c69aab1e04ae89cca3e2a042b56ab043f7f729d984bf73ed2a093"}, - {file = "Pillow-8.3.1-1-cp39-cp39-win_amd64.whl", hash = "sha256:479ab11cbd69612acefa8286481f65c5dece2002ffaa4f9db62682379ca3bb77"}, - {file = "Pillow-8.3.1-1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:f156d6ecfc747ee111c167f8faf5f4953761b5e66e91a4e6767e548d0f80129c"}, - {file = "Pillow-8.3.1-cp36-cp36m-macosx_10_10_x86_64.whl", hash = "sha256:196560dba4da7a72c5e7085fccc5938ab4075fd37fe8b5468869724109812edd"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:29c9569049d04aaacd690573a0398dbd8e0bf0255684fee512b413c2142ab723"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:c088a000dfdd88c184cc7271bfac8c5b82d9efa8637cd2b68183771e3cf56f04"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:fc214a6b75d2e0ea7745488da7da3c381f41790812988c7a92345978414fad37"}, - {file = "Pillow-8.3.1-cp36-cp36m-win32.whl", hash = "sha256:a17ca41f45cf78c2216ebfab03add7cc350c305c38ff34ef4eef66b7d76c5229"}, - {file = "Pillow-8.3.1-cp36-cp36m-win_amd64.whl", hash = "sha256:67b3666b544b953a2777cb3f5a922e991be73ab32635666ee72e05876b8a92de"}, - {file = "Pillow-8.3.1-cp37-cp37m-macosx_10_10_x86_64.whl", hash = "sha256:ff04c373477723430dce2e9d024c708a047d44cf17166bf16e604b379bf0ca14"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9364c81b252d8348e9cc0cb63e856b8f7c1b340caba6ee7a7a65c968312f7dab"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a2f381932dca2cf775811a008aa3027671ace723b7a38838045b1aee8669fdcf"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:d0da39795049a9afcaadec532e7b669b5ebbb2a9134576ebcc15dd5bdae33cc0"}, - {file = "Pillow-8.3.1-cp37-cp37m-win32.whl", hash = "sha256:2b6dfa068a8b6137da34a4936f5a816aba0ecc967af2feeb32c4393ddd671cba"}, - {file = "Pillow-8.3.1-cp37-cp37m-win_amd64.whl", hash = "sha256:a4eef1ff2d62676deabf076f963eda4da34b51bc0517c70239fafed1d5b51500"}, - {file = "Pillow-8.3.1-cp38-cp38-macosx_10_10_x86_64.whl", hash = "sha256:660a87085925c61a0dcc80efb967512ac34dbb256ff7dd2b9b4ee8dbdab58cf4"}, - {file = "Pillow-8.3.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:15a2808e269a1cf2131930183dcc0419bc77bb73eb54285dde2706ac9939fa8e"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:969cc558cca859cadf24f890fc009e1bce7d7d0386ba7c0478641a60199adf79"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:2ee77c14a0299d0541d26f3d8500bb57e081233e3fa915fa35abd02c51fa7fae"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:c11003197f908878164f0e6da15fce22373ac3fc320cda8c9d16e6bba105b844"}, - {file = "Pillow-8.3.1-cp38-cp38-win32.whl", hash = "sha256:3f08bd8d785204149b5b33e3b5f0ebbfe2190ea58d1a051c578e29e39bfd2367"}, - {file = "Pillow-8.3.1-cp38-cp38-win_amd64.whl", hash = "sha256:70af7d222df0ff81a2da601fab42decb009dc721545ed78549cb96e3a1c5f0c8"}, - {file = "Pillow-8.3.1-cp39-cp39-macosx_10_10_x86_64.whl", hash = "sha256:37730f6e68bdc6a3f02d2079c34c532330d206429f3cee651aab6b66839a9f0e"}, - {file = "Pillow-8.3.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:4bc3c7ef940eeb200ca65bd83005eb3aae8083d47e8fcbf5f0943baa50726856"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c35d09db702f4185ba22bb33ef1751ad49c266534339a5cebeb5159d364f6f82"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:0b2efa07f69dc395d95bb9ef3299f4ca29bcb2157dc615bae0b42c3c20668ffc"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:cc866706d56bd3a7dbf8bac8660c6f6462f2f2b8a49add2ba617bc0c54473d83"}, - {file = "Pillow-8.3.1-cp39-cp39-win32.whl", hash = "sha256:9a211b663cf2314edbdb4cf897beeb5c9ee3810d1d53f0e423f06d6ebbf9cd5d"}, - {file = "Pillow-8.3.1-cp39-cp39-win_amd64.whl", hash = "sha256:c2a5ff58751670292b406b9f06e07ed1446a4b13ffced6b6cab75b857485cbc8"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-macosx_10_10_x86_64.whl", hash = "sha256:c379425c2707078dfb6bfad2430728831d399dc95a7deeb92015eb4c92345eaf"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:114f816e4f73f9ec06997b2fde81a92cbf0777c9e8f462005550eed6bae57e63"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:8960a8a9f4598974e4c2aeb1bff9bdd5db03ee65fd1fce8adf3223721aa2a636"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-macosx_10_10_x86_64.whl", hash = "sha256:147bd9e71fb9dcf08357b4d530b5167941e222a6fd21f869c7911bac40b9994d"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:1fd5066cd343b5db88c048d971994e56b296868766e461b82fa4e22498f34d77"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:f4ebde71785f8bceb39dcd1e7f06bcc5d5c3cf48b9f69ab52636309387b097c8"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:1c03e24be975e2afe70dfc5da6f187eea0b49a68bb2b69db0f30a61b7031cee4"}, - {file = "Pillow-8.3.1.tar.gz", hash = "sha256:2cac53839bfc5cece8fdbe7f084d5e3ee61e1303cccc86511d351adcb9e2c792"}, -] -purplship = [ - {file = "purplship-2021.6.2-py3-none-any.whl", hash = "sha256:ded793b23664a14649f3c08ebbd344f6b58fbbc982d69481242478074ea74ff1"}, -] -py-soap = [ - {file = "py_soap-2020.3.2-py3-none-any.whl", hash = "sha256:61e2ec956d349bdd9d4c6248a2ae3c4cc4b0a2a5cf6b439b6de480a3bc2766a1"}, -] -six = [ - {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"}, - {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"}, -] -xmltodict = [ - {file = "xmltodict-0.12.0-py2.py3-none-any.whl", hash = "sha256:8bbcb45cc982f48b2ca8fe7e7827c5d792f217ecf1792626f808bf41c3b86051"}, - {file = "xmltodict-0.12.0.tar.gz", hash = "sha256:50d8c638ed7ecb88d90561beedbf720c9b4e851a9fa6c47ebd64e99d166d8a21"}, -] diff --git a/sdk/extensions/australiapost/pyproject.toml b/sdk/extensions/australiapost/pyproject.toml index aa57ba1d31..0254af3b7e 100644 --- a/sdk/extensions/australiapost/pyproject.toml +++ b/sdk/extensions/australiapost/pyproject.toml @@ -1,11 +1,11 @@ [tool.poetry] name = "purplship.australiapost" version = "2021.10" -homepage="https://docs.purplship.com" +homepage="https://next.purplship.com/docs/guides/sdk" repository="https://github.com/purplship/purplship" description = "Purplship - Australia Post Shipping Extension" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [{ include = "purplship" }] classifiers=[ diff --git a/sdk/extensions/boxknight/poetry.lock b/sdk/extensions/boxknight/poetry.lock deleted file mode 100644 index 150826ca4a..0000000000 --- a/sdk/extensions/boxknight/poetry.lock +++ /dev/null @@ -1,249 +0,0 @@ -[[package]] -name = "attrs" -version = "21.2.0" -description = "Classes Without Boilerplate" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" - -[package.extras] -dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit"] -docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"] -tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface"] -tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins"] - -[[package]] -name = "carrier.boxknight" -version = "2020.11.2" -description = "Boxknight API Schemas Python Data Types library" -category = "main" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -jstruct = "*" - -[[package]] -name = "jstruct" -version = "2020.4.0" -description = "Readable serializable and deserializable Python nested models" -category = "main" -optional = false -python-versions = "*" - -[package.dependencies] -attrs = "*" - -[[package]] -name = "lxml" -version = "4.6.3" -description = "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API." -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*" - -[package.extras] -cssselect = ["cssselect (>=0.7)"] -html5 = ["html5lib"] -htmlsoup = ["beautifulsoup4"] -source = ["Cython (>=0.29.7)"] - -[[package]] -name = "lxml-stubs" -version = "0.1.1" -description = "Type annotations for the lxml package" -category = "main" -optional = false -python-versions = "*" - -[package.extras] -test = ["pytest (>=6.0.0)", "pytest-mypy-plugins (==1.4.0)", "coverage[toml] (==5.2)"] - -[[package]] -name = "phonenumbers" -version = "8.12.28" -description = "Python version of Google's common library for parsing, formatting, storing and validating international phone numbers." -category = "main" -optional = false -python-versions = "*" - -[[package]] -name = "pillow" -version = "8.3.1" -description = "Python Imaging Library (Fork)" -category = "main" -optional = false -python-versions = ">=3.6" - -[[package]] -name = "purplship" -version = "2021.6.2" -description = "Multi-carrier shipping API integration with python" -category = "main" -optional = false -python-versions = ">=3.7,<4.0" - -[package.dependencies] -jstruct = ">=2020.4.0,<2021.0.0" -lxml = ">=4.6.2,<5.0.0" -lxml-stubs = ">=0.1.1,<0.2.0" -phonenumbers = ">=8.12.17,<9.0.0" -Pillow = ">=8.1.0,<9.0.0" -py-soap = ">=2020.3.2,<2021.0.0" -xmltodict = ">=0.12.0,<0.13.0" - -[[package]] -name = "py-soap" -version = "2020.3.2" -description = "SOAP Schemas Python Data Types library" -category = "main" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "six" -version = "1.16.0" -description = "Python 2 and 3 compatibility utilities" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" - -[[package]] -name = "xmltodict" -version = "0.12.0" -description = "Makes working with XML feel like you are working with JSON" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.7" -content-hash = "73d0093e8e5a670bccb8f8de4f1dd5604160114b29a64d3b957a8168e31d7f08" - -[metadata.files] -attrs = [ - {file = "attrs-21.2.0-py2.py3-none-any.whl", hash = "sha256:149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1"}, - {file = "attrs-21.2.0.tar.gz", hash = "sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"}, -] -"carrier.boxknight" = [ - {file = "carrier.boxknight-2020.11.2-py3-none-any.whl", hash = "sha256:e6d99a06d98d624a21333d798c2ae681be1d1f29589111e5db9ed2fbde28b63a"}, -] -jstruct = [ - {file = "jstruct-2020.4.0-py3-none-any.whl", hash = "sha256:86257c1332e1ba6983d78e3199fb3dcadaf742e96c3c1a97f3ba322fa241f89c"}, -] -lxml = [ - {file = "lxml-4.6.3-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:df7c53783a46febb0e70f6b05df2ba104610f2fb0d27023409734a3ecbb78fb2"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:1b7584d421d254ab86d4f0b13ec662a9014397678a7c4265a02a6d7c2b18a75f"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:079f3ae844f38982d156efce585bc540c16a926d4436712cf4baee0cce487a3d"}, - {file = "lxml-4.6.3-cp27-cp27m-win32.whl", hash = "sha256:bc4313cbeb0e7a416a488d72f9680fffffc645f8a838bd2193809881c67dd106"}, - {file = "lxml-4.6.3-cp27-cp27m-win_amd64.whl", hash = "sha256:8157dadbb09a34a6bd95a50690595e1fa0af1a99445e2744110e3dca7831c4ee"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:7728e05c35412ba36d3e9795ae8995e3c86958179c9770e65558ec3fdfd3724f"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:4bff24dfeea62f2e56f5bab929b4428ae6caba2d1eea0c2d6eb618e30a71e6d4"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:74f7d8d439b18fa4c385f3f5dfd11144bb87c1da034a466c5b5577d23a1d9b51"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:f90ba11136bfdd25cae3951af8da2e95121c9b9b93727b1b896e3fa105b2f586"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux2010_i686.whl", hash = "sha256:4c61b3a0db43a1607d6264166b230438f85bfed02e8cff20c22e564d0faff354"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux2014_x86_64.whl", hash = "sha256:5c8c163396cc0df3fd151b927e74f6e4acd67160d6c33304e805b84293351d16"}, - {file = "lxml-4.6.3-cp35-cp35m-win32.whl", hash = "sha256:f2380a6376dfa090227b663f9678150ef27543483055cc327555fb592c5967e2"}, - {file = "lxml-4.6.3-cp35-cp35m-win_amd64.whl", hash = "sha256:c4f05c5a7c49d2fb70223d0d5bcfbe474cf928310ac9fa6a7c6dddc831d0b1d4"}, - {file = "lxml-4.6.3-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:d2e35d7bf1c1ac8c538f88d26b396e73dd81440d59c1ef8522e1ea77b345ede4"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:289e9ca1a9287f08daaf796d96e06cb2bc2958891d7911ac7cae1c5f9e1e0ee3"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:bccbfc27563652de7dc9bdc595cb25e90b59c5f8e23e806ed0fd623755b6565d"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux2010_i686.whl", hash = "sha256:d916d31fd85b2f78c76400d625076d9124de3e4bda8b016d25a050cc7d603f24"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:820628b7b3135403540202e60551e741f9b6d3304371712521be939470b454ec"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux2014_x86_64.whl", hash = "sha256:c47ff7e0a36d4efac9fd692cfa33fbd0636674c102e9e8d9b26e1b93a94e7617"}, - {file = "lxml-4.6.3-cp36-cp36m-win32.whl", hash = "sha256:5a0a14e264069c03e46f926be0d8919f4105c1623d620e7ec0e612a2e9bf1c04"}, - {file = "lxml-4.6.3-cp36-cp36m-win_amd64.whl", hash = "sha256:92e821e43ad382332eade6812e298dc9701c75fe289f2a2d39c7960b43d1e92a"}, - {file = "lxml-4.6.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:efd7a09678fd8b53117f6bae4fa3825e0a22b03ef0a932e070c0bdbb3a35e654"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:efac139c3f0bf4f0939f9375af4b02c5ad83a622de52d6dfa8e438e8e01d0eb0"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:0fbcf5565ac01dff87cbfc0ff323515c823081c5777a9fc7703ff58388c258c3"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux2010_i686.whl", hash = "sha256:36108c73739985979bf302006527cf8a20515ce444ba916281d1c43938b8bb96"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:122fba10466c7bd4178b07dba427aa516286b846b2cbd6f6169141917283aae2"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux2014_x86_64.whl", hash = "sha256:cdaf11d2bd275bf391b5308f86731e5194a21af45fbaaaf1d9e8147b9160ea92"}, - {file = "lxml-4.6.3-cp37-cp37m-win32.whl", hash = "sha256:3439c71103ef0e904ea0a1901611863e51f50b5cd5e8654a151740fde5e1cade"}, - {file = "lxml-4.6.3-cp37-cp37m-win_amd64.whl", hash = "sha256:4289728b5e2000a4ad4ab8da6e1db2e093c63c08bdc0414799ee776a3f78da4b"}, - {file = "lxml-4.6.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:b007cbb845b28db4fb8b6a5cdcbf65bacb16a8bd328b53cbc0698688a68e1caa"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_i686.whl", hash = "sha256:76fa7b1362d19f8fbd3e75fe2fb7c79359b0af8747e6f7141c338f0bee2f871a"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:26e761ab5b07adf5f555ee82fb4bfc35bf93750499c6c7614bd64d12aaa67927"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux2010_i686.whl", hash = "sha256:e1cbd3f19a61e27e011e02f9600837b921ac661f0c40560eefb366e4e4fb275e"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:66e575c62792c3f9ca47cb8b6fab9e35bab91360c783d1606f758761810c9791"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux2014_x86_64.whl", hash = "sha256:1b38116b6e628118dea5b2186ee6820ab138dbb1e24a13e478490c7db2f326ae"}, - {file = "lxml-4.6.3-cp38-cp38-win32.whl", hash = "sha256:89b8b22a5ff72d89d48d0e62abb14340d9e99fd637d046c27b8b257a01ffbe28"}, - {file = "lxml-4.6.3-cp38-cp38-win_amd64.whl", hash = "sha256:2a9d50e69aac3ebee695424f7dbd7b8c6d6eb7de2a2eb6b0f6c7db6aa41e02b7"}, - {file = "lxml-4.6.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:ce256aaa50f6cc9a649c51be3cd4ff142d67295bfc4f490c9134d0f9f6d58ef0"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_i686.whl", hash = "sha256:7610b8c31688f0b1be0ef882889817939490a36d0ee880ea562a4e1399c447a1"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:f8380c03e45cf09f8557bdaa41e1fa7c81f3ae22828e1db470ab2a6c96d8bc23"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux2010_i686.whl", hash = "sha256:3082c518be8e97324390614dacd041bb1358c882d77108ca1957ba47738d9d59"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:884ab9b29feaca361f7f88d811b1eea9bfca36cf3da27768d28ad45c3ee6f969"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux2014_x86_64.whl", hash = "sha256:6f12e1427285008fd32a6025e38e977d44d6382cf28e7201ed10d6c1698d2a9a"}, - {file = "lxml-4.6.3-cp39-cp39-win32.whl", hash = "sha256:33bb934a044cf32157c12bfcfbb6649807da20aa92c062ef51903415c704704f"}, - {file = "lxml-4.6.3-cp39-cp39-win_amd64.whl", hash = "sha256:542d454665a3e277f76954418124d67516c5f88e51a900365ed54a9806122b83"}, - {file = "lxml-4.6.3.tar.gz", hash = "sha256:39b78571b3b30645ac77b95f7c69d1bffc4cf8c3b157c435a34da72e78c82468"}, -] -lxml-stubs = [ - {file = "lxml-stubs-0.1.1.tar.gz", hash = "sha256:9b6a01ba4bccd6e532c01e19d2a3bc6d1d018fa0b9870236f61f315cb7b06648"}, - {file = "lxml_stubs-0.1.1-py3-none-any.whl", hash = "sha256:d34a28be0e2525b0236aff7fe67af1f61911f556cadbc61f09810b69f762b747"}, -] -phonenumbers = [ - {file = "phonenumbers-8.12.28-py2.py3-none-any.whl", hash = "sha256:f8ce05f82955d2faeefe2303350b2ccb7369dd39b6e45231a09475d67eb7e83b"}, - {file = "phonenumbers-8.12.28.tar.gz", hash = "sha256:42ea4f946d5cce0056cbce257842ea6b281e69828ad2e7f27b29d3908e5b06bd"}, -] -pillow = [ - {file = "Pillow-8.3.1-1-cp36-cp36m-win_amd64.whl", hash = "sha256:fd7eef578f5b2200d066db1b50c4aa66410786201669fb76d5238b007918fb24"}, - {file = "Pillow-8.3.1-1-cp37-cp37m-win_amd64.whl", hash = "sha256:75e09042a3b39e0ea61ce37e941221313d51a9c26b8e54e12b3ececccb71718a"}, - {file = "Pillow-8.3.1-1-cp38-cp38-win_amd64.whl", hash = "sha256:c0e0550a404c69aab1e04ae89cca3e2a042b56ab043f7f729d984bf73ed2a093"}, - {file = "Pillow-8.3.1-1-cp39-cp39-win_amd64.whl", hash = "sha256:479ab11cbd69612acefa8286481f65c5dece2002ffaa4f9db62682379ca3bb77"}, - {file = "Pillow-8.3.1-1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:f156d6ecfc747ee111c167f8faf5f4953761b5e66e91a4e6767e548d0f80129c"}, - {file = "Pillow-8.3.1-cp36-cp36m-macosx_10_10_x86_64.whl", hash = "sha256:196560dba4da7a72c5e7085fccc5938ab4075fd37fe8b5468869724109812edd"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:29c9569049d04aaacd690573a0398dbd8e0bf0255684fee512b413c2142ab723"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:c088a000dfdd88c184cc7271bfac8c5b82d9efa8637cd2b68183771e3cf56f04"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:fc214a6b75d2e0ea7745488da7da3c381f41790812988c7a92345978414fad37"}, - {file = "Pillow-8.3.1-cp36-cp36m-win32.whl", hash = "sha256:a17ca41f45cf78c2216ebfab03add7cc350c305c38ff34ef4eef66b7d76c5229"}, - {file = "Pillow-8.3.1-cp36-cp36m-win_amd64.whl", hash = "sha256:67b3666b544b953a2777cb3f5a922e991be73ab32635666ee72e05876b8a92de"}, - {file = "Pillow-8.3.1-cp37-cp37m-macosx_10_10_x86_64.whl", hash = "sha256:ff04c373477723430dce2e9d024c708a047d44cf17166bf16e604b379bf0ca14"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9364c81b252d8348e9cc0cb63e856b8f7c1b340caba6ee7a7a65c968312f7dab"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a2f381932dca2cf775811a008aa3027671ace723b7a38838045b1aee8669fdcf"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:d0da39795049a9afcaadec532e7b669b5ebbb2a9134576ebcc15dd5bdae33cc0"}, - {file = "Pillow-8.3.1-cp37-cp37m-win32.whl", hash = "sha256:2b6dfa068a8b6137da34a4936f5a816aba0ecc967af2feeb32c4393ddd671cba"}, - {file = "Pillow-8.3.1-cp37-cp37m-win_amd64.whl", hash = "sha256:a4eef1ff2d62676deabf076f963eda4da34b51bc0517c70239fafed1d5b51500"}, - {file = "Pillow-8.3.1-cp38-cp38-macosx_10_10_x86_64.whl", hash = "sha256:660a87085925c61a0dcc80efb967512ac34dbb256ff7dd2b9b4ee8dbdab58cf4"}, - {file = "Pillow-8.3.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:15a2808e269a1cf2131930183dcc0419bc77bb73eb54285dde2706ac9939fa8e"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:969cc558cca859cadf24f890fc009e1bce7d7d0386ba7c0478641a60199adf79"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:2ee77c14a0299d0541d26f3d8500bb57e081233e3fa915fa35abd02c51fa7fae"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:c11003197f908878164f0e6da15fce22373ac3fc320cda8c9d16e6bba105b844"}, - {file = "Pillow-8.3.1-cp38-cp38-win32.whl", hash = "sha256:3f08bd8d785204149b5b33e3b5f0ebbfe2190ea58d1a051c578e29e39bfd2367"}, - {file = "Pillow-8.3.1-cp38-cp38-win_amd64.whl", hash = "sha256:70af7d222df0ff81a2da601fab42decb009dc721545ed78549cb96e3a1c5f0c8"}, - {file = "Pillow-8.3.1-cp39-cp39-macosx_10_10_x86_64.whl", hash = "sha256:37730f6e68bdc6a3f02d2079c34c532330d206429f3cee651aab6b66839a9f0e"}, - {file = "Pillow-8.3.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:4bc3c7ef940eeb200ca65bd83005eb3aae8083d47e8fcbf5f0943baa50726856"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c35d09db702f4185ba22bb33ef1751ad49c266534339a5cebeb5159d364f6f82"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:0b2efa07f69dc395d95bb9ef3299f4ca29bcb2157dc615bae0b42c3c20668ffc"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:cc866706d56bd3a7dbf8bac8660c6f6462f2f2b8a49add2ba617bc0c54473d83"}, - {file = "Pillow-8.3.1-cp39-cp39-win32.whl", hash = "sha256:9a211b663cf2314edbdb4cf897beeb5c9ee3810d1d53f0e423f06d6ebbf9cd5d"}, - {file = "Pillow-8.3.1-cp39-cp39-win_amd64.whl", hash = "sha256:c2a5ff58751670292b406b9f06e07ed1446a4b13ffced6b6cab75b857485cbc8"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-macosx_10_10_x86_64.whl", hash = "sha256:c379425c2707078dfb6bfad2430728831d399dc95a7deeb92015eb4c92345eaf"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:114f816e4f73f9ec06997b2fde81a92cbf0777c9e8f462005550eed6bae57e63"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:8960a8a9f4598974e4c2aeb1bff9bdd5db03ee65fd1fce8adf3223721aa2a636"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-macosx_10_10_x86_64.whl", hash = "sha256:147bd9e71fb9dcf08357b4d530b5167941e222a6fd21f869c7911bac40b9994d"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:1fd5066cd343b5db88c048d971994e56b296868766e461b82fa4e22498f34d77"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:f4ebde71785f8bceb39dcd1e7f06bcc5d5c3cf48b9f69ab52636309387b097c8"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:1c03e24be975e2afe70dfc5da6f187eea0b49a68bb2b69db0f30a61b7031cee4"}, - {file = "Pillow-8.3.1.tar.gz", hash = "sha256:2cac53839bfc5cece8fdbe7f084d5e3ee61e1303cccc86511d351adcb9e2c792"}, -] -purplship = [ - {file = "purplship-2021.6.2-py3-none-any.whl", hash = "sha256:ded793b23664a14649f3c08ebbd344f6b58fbbc982d69481242478074ea74ff1"}, -] -py-soap = [ - {file = "py_soap-2020.3.2-py3-none-any.whl", hash = "sha256:61e2ec956d349bdd9d4c6248a2ae3c4cc4b0a2a5cf6b439b6de480a3bc2766a1"}, -] -six = [ - {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"}, - {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"}, -] -xmltodict = [ - {file = "xmltodict-0.12.0-py2.py3-none-any.whl", hash = "sha256:8bbcb45cc982f48b2ca8fe7e7827c5d792f217ecf1792626f808bf41c3b86051"}, - {file = "xmltodict-0.12.0.tar.gz", hash = "sha256:50d8c638ed7ecb88d90561beedbf720c9b4e851a9fa6c47ebd64e99d166d8a21"}, -] diff --git a/sdk/extensions/boxknight/pyproject.toml b/sdk/extensions/boxknight/pyproject.toml index 92140fa63d..6244430099 100644 --- a/sdk/extensions/boxknight/pyproject.toml +++ b/sdk/extensions/boxknight/pyproject.toml @@ -1,11 +1,11 @@ [tool.poetry] name = "purplship.boxknight" version = "2021.10" -homepage="https://docs.purplship.com" +homepage="https://next.purplship.com/docs/guides/sdk" repository="https://github.com/purplship/purplship" description = "Purplship - Boxknight Shipping Extension" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [{ include = "purplship" }] classifiers=[ diff --git a/sdk/extensions/canadapost/poetry.lock b/sdk/extensions/canadapost/poetry.lock deleted file mode 100644 index df70ba39de..0000000000 --- a/sdk/extensions/canadapost/poetry.lock +++ /dev/null @@ -1,240 +0,0 @@ -[[package]] -name = "attrs" -version = "21.2.0" -description = "Classes Without Boilerplate" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" - -[package.extras] -dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit"] -docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"] -tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface"] -tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins"] - -[[package]] -name = "carrier.canadapost" -version = "2021.10" -description = "Canada Post API Schemas Python Data Types library" -category = "main" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "jstruct" -version = "2020.4.0" -description = "Readable serializable and deserializable Python nested models" -category = "main" -optional = false -python-versions = "*" - -[package.dependencies] -attrs = "*" - -[[package]] -name = "lxml" -version = "4.6.3" -description = "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API." -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*" - -[package.extras] -cssselect = ["cssselect (>=0.7)"] -html5 = ["html5lib"] -htmlsoup = ["beautifulsoup4"] -source = ["Cython (>=0.29.7)"] - -[[package]] -name = "lxml-stubs" -version = "0.1.1" -description = "Type annotations for the lxml package" -category = "main" -optional = false -python-versions = "*" - -[package.extras] -test = ["pytest (>=6.0.0)", "pytest-mypy-plugins (==1.4.0)", "coverage[toml] (==5.2)"] - -[[package]] -name = "phonenumbers" -version = "8.12.28" -description = "Python version of Google's common library for parsing, formatting, storing and validating international phone numbers." -category = "main" -optional = false -python-versions = "*" - -[[package]] -name = "pillow" -version = "8.3.1" -description = "Python Imaging Library (Fork)" -category = "main" -optional = false -python-versions = ">=3.6" - -[[package]] -name = "purplship" -version = "2021.6.2" -description = "Multi-carrier shipping API integration with python" -category = "main" -optional = false -python-versions = ">=3.7,<4.0" - -[package.dependencies] -jstruct = ">=2020.4.0,<2021.0.0" -lxml = ">=4.6.2,<5.0.0" -lxml-stubs = ">=0.1.1,<0.2.0" -phonenumbers = ">=8.12.17,<9.0.0" -Pillow = ">=8.1.0,<9.0.0" -py-soap = ">=2020.3.2,<2021.0.0" -xmltodict = ">=0.12.0,<0.13.0" - -[[package]] -name = "py-soap" -version = "2020.3.2" -description = "SOAP Schemas Python Data Types library" -category = "main" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "six" -version = "1.16.0" -description = "Python 2 and 3 compatibility utilities" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" - -[[package]] -name = "xmltodict" -version = "0.12.0" -description = "Makes working with XML feel like you are working with JSON" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.7" -content-hash = "f937ceea198ae274b9e894c76cb342126e183a0fba1a08584a377bd240626356" - -[metadata.files] -attrs = [ - {file = "attrs-21.2.0-py2.py3-none-any.whl", hash = "sha256:149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1"}, - {file = "attrs-21.2.0.tar.gz", hash = "sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"}, -] -"carrier.canadapost" = [ - {file = "carrier.canadapost-2021.7-py3-none-any.whl", hash = "sha256:c81849b7ea8bbf13702c94e09b5aa93d869327f2c439377f186e32c142c17d77"}, -] -jstruct = [ - {file = "jstruct-2020.4.0-py3-none-any.whl", hash = "sha256:86257c1332e1ba6983d78e3199fb3dcadaf742e96c3c1a97f3ba322fa241f89c"}, -] -lxml = [ - {file = "lxml-4.6.3-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:df7c53783a46febb0e70f6b05df2ba104610f2fb0d27023409734a3ecbb78fb2"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:1b7584d421d254ab86d4f0b13ec662a9014397678a7c4265a02a6d7c2b18a75f"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:079f3ae844f38982d156efce585bc540c16a926d4436712cf4baee0cce487a3d"}, - {file = "lxml-4.6.3-cp27-cp27m-win32.whl", hash = "sha256:bc4313cbeb0e7a416a488d72f9680fffffc645f8a838bd2193809881c67dd106"}, - {file = "lxml-4.6.3-cp27-cp27m-win_amd64.whl", hash = "sha256:8157dadbb09a34a6bd95a50690595e1fa0af1a99445e2744110e3dca7831c4ee"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:7728e05c35412ba36d3e9795ae8995e3c86958179c9770e65558ec3fdfd3724f"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:4bff24dfeea62f2e56f5bab929b4428ae6caba2d1eea0c2d6eb618e30a71e6d4"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:74f7d8d439b18fa4c385f3f5dfd11144bb87c1da034a466c5b5577d23a1d9b51"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:f90ba11136bfdd25cae3951af8da2e95121c9b9b93727b1b896e3fa105b2f586"}, - {file = "lxml-4.6.3-cp35-cp35m-win32.whl", hash = "sha256:f2380a6376dfa090227b663f9678150ef27543483055cc327555fb592c5967e2"}, - {file = "lxml-4.6.3-cp35-cp35m-win_amd64.whl", hash = "sha256:c4f05c5a7c49d2fb70223d0d5bcfbe474cf928310ac9fa6a7c6dddc831d0b1d4"}, - {file = "lxml-4.6.3-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:d2e35d7bf1c1ac8c538f88d26b396e73dd81440d59c1ef8522e1ea77b345ede4"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:289e9ca1a9287f08daaf796d96e06cb2bc2958891d7911ac7cae1c5f9e1e0ee3"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:bccbfc27563652de7dc9bdc595cb25e90b59c5f8e23e806ed0fd623755b6565d"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:820628b7b3135403540202e60551e741f9b6d3304371712521be939470b454ec"}, - {file = "lxml-4.6.3-cp36-cp36m-win32.whl", hash = "sha256:5a0a14e264069c03e46f926be0d8919f4105c1623d620e7ec0e612a2e9bf1c04"}, - {file = "lxml-4.6.3-cp36-cp36m-win_amd64.whl", hash = "sha256:92e821e43ad382332eade6812e298dc9701c75fe289f2a2d39c7960b43d1e92a"}, - {file = "lxml-4.6.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:efd7a09678fd8b53117f6bae4fa3825e0a22b03ef0a932e070c0bdbb3a35e654"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:efac139c3f0bf4f0939f9375af4b02c5ad83a622de52d6dfa8e438e8e01d0eb0"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:0fbcf5565ac01dff87cbfc0ff323515c823081c5777a9fc7703ff58388c258c3"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:122fba10466c7bd4178b07dba427aa516286b846b2cbd6f6169141917283aae2"}, - {file = "lxml-4.6.3-cp37-cp37m-win32.whl", hash = "sha256:3439c71103ef0e904ea0a1901611863e51f50b5cd5e8654a151740fde5e1cade"}, - {file = "lxml-4.6.3-cp37-cp37m-win_amd64.whl", hash = "sha256:4289728b5e2000a4ad4ab8da6e1db2e093c63c08bdc0414799ee776a3f78da4b"}, - {file = "lxml-4.6.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:b007cbb845b28db4fb8b6a5cdcbf65bacb16a8bd328b53cbc0698688a68e1caa"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_i686.whl", hash = "sha256:76fa7b1362d19f8fbd3e75fe2fb7c79359b0af8747e6f7141c338f0bee2f871a"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:26e761ab5b07adf5f555ee82fb4bfc35bf93750499c6c7614bd64d12aaa67927"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:66e575c62792c3f9ca47cb8b6fab9e35bab91360c783d1606f758761810c9791"}, - {file = "lxml-4.6.3-cp38-cp38-win32.whl", hash = "sha256:89b8b22a5ff72d89d48d0e62abb14340d9e99fd637d046c27b8b257a01ffbe28"}, - {file = "lxml-4.6.3-cp38-cp38-win_amd64.whl", hash = "sha256:2a9d50e69aac3ebee695424f7dbd7b8c6d6eb7de2a2eb6b0f6c7db6aa41e02b7"}, - {file = "lxml-4.6.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:ce256aaa50f6cc9a649c51be3cd4ff142d67295bfc4f490c9134d0f9f6d58ef0"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_i686.whl", hash = "sha256:7610b8c31688f0b1be0ef882889817939490a36d0ee880ea562a4e1399c447a1"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:f8380c03e45cf09f8557bdaa41e1fa7c81f3ae22828e1db470ab2a6c96d8bc23"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:884ab9b29feaca361f7f88d811b1eea9bfca36cf3da27768d28ad45c3ee6f969"}, - {file = "lxml-4.6.3-cp39-cp39-win32.whl", hash = "sha256:33bb934a044cf32157c12bfcfbb6649807da20aa92c062ef51903415c704704f"}, - {file = "lxml-4.6.3-cp39-cp39-win_amd64.whl", hash = "sha256:542d454665a3e277f76954418124d67516c5f88e51a900365ed54a9806122b83"}, - {file = "lxml-4.6.3.tar.gz", hash = "sha256:39b78571b3b30645ac77b95f7c69d1bffc4cf8c3b157c435a34da72e78c82468"}, -] -lxml-stubs = [ - {file = "lxml-stubs-0.1.1.tar.gz", hash = "sha256:9b6a01ba4bccd6e532c01e19d2a3bc6d1d018fa0b9870236f61f315cb7b06648"}, - {file = "lxml_stubs-0.1.1-py3-none-any.whl", hash = "sha256:d34a28be0e2525b0236aff7fe67af1f61911f556cadbc61f09810b69f762b747"}, -] -phonenumbers = [ - {file = "phonenumbers-8.12.28-py2.py3-none-any.whl", hash = "sha256:f8ce05f82955d2faeefe2303350b2ccb7369dd39b6e45231a09475d67eb7e83b"}, - {file = "phonenumbers-8.12.28.tar.gz", hash = "sha256:42ea4f946d5cce0056cbce257842ea6b281e69828ad2e7f27b29d3908e5b06bd"}, -] -pillow = [ - {file = "Pillow-8.3.1-1-cp36-cp36m-win_amd64.whl", hash = "sha256:fd7eef578f5b2200d066db1b50c4aa66410786201669fb76d5238b007918fb24"}, - {file = "Pillow-8.3.1-1-cp37-cp37m-win_amd64.whl", hash = "sha256:75e09042a3b39e0ea61ce37e941221313d51a9c26b8e54e12b3ececccb71718a"}, - {file = "Pillow-8.3.1-1-cp38-cp38-win_amd64.whl", hash = "sha256:c0e0550a404c69aab1e04ae89cca3e2a042b56ab043f7f729d984bf73ed2a093"}, - {file = "Pillow-8.3.1-1-cp39-cp39-win_amd64.whl", hash = "sha256:479ab11cbd69612acefa8286481f65c5dece2002ffaa4f9db62682379ca3bb77"}, - {file = "Pillow-8.3.1-1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:f156d6ecfc747ee111c167f8faf5f4953761b5e66e91a4e6767e548d0f80129c"}, - {file = "Pillow-8.3.1-cp36-cp36m-macosx_10_10_x86_64.whl", hash = "sha256:196560dba4da7a72c5e7085fccc5938ab4075fd37fe8b5468869724109812edd"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:29c9569049d04aaacd690573a0398dbd8e0bf0255684fee512b413c2142ab723"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:c088a000dfdd88c184cc7271bfac8c5b82d9efa8637cd2b68183771e3cf56f04"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:fc214a6b75d2e0ea7745488da7da3c381f41790812988c7a92345978414fad37"}, - {file = "Pillow-8.3.1-cp36-cp36m-win32.whl", hash = "sha256:a17ca41f45cf78c2216ebfab03add7cc350c305c38ff34ef4eef66b7d76c5229"}, - {file = "Pillow-8.3.1-cp36-cp36m-win_amd64.whl", hash = "sha256:67b3666b544b953a2777cb3f5a922e991be73ab32635666ee72e05876b8a92de"}, - {file = "Pillow-8.3.1-cp37-cp37m-macosx_10_10_x86_64.whl", hash = "sha256:ff04c373477723430dce2e9d024c708a047d44cf17166bf16e604b379bf0ca14"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9364c81b252d8348e9cc0cb63e856b8f7c1b340caba6ee7a7a65c968312f7dab"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a2f381932dca2cf775811a008aa3027671ace723b7a38838045b1aee8669fdcf"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:d0da39795049a9afcaadec532e7b669b5ebbb2a9134576ebcc15dd5bdae33cc0"}, - {file = "Pillow-8.3.1-cp37-cp37m-win32.whl", hash = "sha256:2b6dfa068a8b6137da34a4936f5a816aba0ecc967af2feeb32c4393ddd671cba"}, - {file = "Pillow-8.3.1-cp37-cp37m-win_amd64.whl", hash = "sha256:a4eef1ff2d62676deabf076f963eda4da34b51bc0517c70239fafed1d5b51500"}, - {file = "Pillow-8.3.1-cp38-cp38-macosx_10_10_x86_64.whl", hash = "sha256:660a87085925c61a0dcc80efb967512ac34dbb256ff7dd2b9b4ee8dbdab58cf4"}, - {file = "Pillow-8.3.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:15a2808e269a1cf2131930183dcc0419bc77bb73eb54285dde2706ac9939fa8e"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:969cc558cca859cadf24f890fc009e1bce7d7d0386ba7c0478641a60199adf79"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:2ee77c14a0299d0541d26f3d8500bb57e081233e3fa915fa35abd02c51fa7fae"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:c11003197f908878164f0e6da15fce22373ac3fc320cda8c9d16e6bba105b844"}, - {file = "Pillow-8.3.1-cp38-cp38-win32.whl", hash = "sha256:3f08bd8d785204149b5b33e3b5f0ebbfe2190ea58d1a051c578e29e39bfd2367"}, - {file = "Pillow-8.3.1-cp38-cp38-win_amd64.whl", hash = "sha256:70af7d222df0ff81a2da601fab42decb009dc721545ed78549cb96e3a1c5f0c8"}, - {file = "Pillow-8.3.1-cp39-cp39-macosx_10_10_x86_64.whl", hash = "sha256:37730f6e68bdc6a3f02d2079c34c532330d206429f3cee651aab6b66839a9f0e"}, - {file = "Pillow-8.3.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:4bc3c7ef940eeb200ca65bd83005eb3aae8083d47e8fcbf5f0943baa50726856"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c35d09db702f4185ba22bb33ef1751ad49c266534339a5cebeb5159d364f6f82"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:0b2efa07f69dc395d95bb9ef3299f4ca29bcb2157dc615bae0b42c3c20668ffc"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:cc866706d56bd3a7dbf8bac8660c6f6462f2f2b8a49add2ba617bc0c54473d83"}, - {file = "Pillow-8.3.1-cp39-cp39-win32.whl", hash = "sha256:9a211b663cf2314edbdb4cf897beeb5c9ee3810d1d53f0e423f06d6ebbf9cd5d"}, - {file = "Pillow-8.3.1-cp39-cp39-win_amd64.whl", hash = "sha256:c2a5ff58751670292b406b9f06e07ed1446a4b13ffced6b6cab75b857485cbc8"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-macosx_10_10_x86_64.whl", hash = "sha256:c379425c2707078dfb6bfad2430728831d399dc95a7deeb92015eb4c92345eaf"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:114f816e4f73f9ec06997b2fde81a92cbf0777c9e8f462005550eed6bae57e63"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:8960a8a9f4598974e4c2aeb1bff9bdd5db03ee65fd1fce8adf3223721aa2a636"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-macosx_10_10_x86_64.whl", hash = "sha256:147bd9e71fb9dcf08357b4d530b5167941e222a6fd21f869c7911bac40b9994d"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:1fd5066cd343b5db88c048d971994e56b296868766e461b82fa4e22498f34d77"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:f4ebde71785f8bceb39dcd1e7f06bcc5d5c3cf48b9f69ab52636309387b097c8"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:1c03e24be975e2afe70dfc5da6f187eea0b49a68bb2b69db0f30a61b7031cee4"}, - {file = "Pillow-8.3.1.tar.gz", hash = "sha256:2cac53839bfc5cece8fdbe7f084d5e3ee61e1303cccc86511d351adcb9e2c792"}, -] -purplship = [ - {file = "purplship-2021.6.2-py3-none-any.whl", hash = "sha256:ded793b23664a14649f3c08ebbd344f6b58fbbc982d69481242478074ea74ff1"}, -] -py-soap = [ - {file = "py_soap-2020.3.2-py3-none-any.whl", hash = "sha256:61e2ec956d349bdd9d4c6248a2ae3c4cc4b0a2a5cf6b439b6de480a3bc2766a1"}, -] -six = [ - {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"}, - {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"}, -] -xmltodict = [ - {file = "xmltodict-0.12.0-py2.py3-none-any.whl", hash = "sha256:8bbcb45cc982f48b2ca8fe7e7827c5d792f217ecf1792626f808bf41c3b86051"}, - {file = "xmltodict-0.12.0.tar.gz", hash = "sha256:50d8c638ed7ecb88d90561beedbf720c9b4e851a9fa6c47ebd64e99d166d8a21"}, -] diff --git a/sdk/extensions/canadapost/purplship/providers/canadapost/shipment/non_contract.py b/sdk/extensions/canadapost/purplship/providers/canadapost/shipment/non_contract.py index ba468b8b3a..1cff16eed2 100644 --- a/sdk/extensions/canadapost/purplship/providers/canadapost/shipment/non_contract.py +++ b/sdk/extensions/canadapost/purplship/providers/canadapost/shipment/non_contract.py @@ -18,7 +18,7 @@ CustomsType, PreferencesType, ) -from purplship.core.units import Currency, WeightUnit, Options, Packages +from purplship.core.units import Currency, CustomsInfo, WeightUnit, Options, Packages from purplship.core.utils import Serializable, Element, SF, XP, NF from purplship.core.models import ( Message, @@ -71,6 +71,7 @@ def shipment_request( package = Packages(payload.parcels, PackagePresets, required=["weight"]).single service = ServiceType.map(payload.service).value_or_key options = Options(payload.options, OptionCode) + customs = CustomsInfo(payload.customs) is_intl = ( payload.recipient.country_code is not None @@ -181,12 +182,14 @@ def shipment_request( CustomsType( currency=Currency.AUD.value, conversion_from_cad=None, - reason_for_export=payload.customs.incoterm, - other_reason=payload.customs.content_description, - duties_and_taxes_prepaid=payload.customs.duty.account_number, - certificate_number=None, - licence_number=None, - invoice_number=None, + reason_for_export=customs.incoterm, + other_reason=customs.content_description, + duties_and_taxes_prepaid=getattr( + customs.duty, "account_number", None + ), + certificate_number=customs.certificate_number, + licence_number=customs.licence_number, + invoice_number=customs.invoice, sku_list=sku_listType( item=[ SkuType( @@ -200,11 +203,11 @@ def shipment_request( country_of_origin=payload.shipper.country_code, province_of_origin=None, ) - for item in payload.customs.commodities + for item in customs.commodities or [] ] ), ) - if payload.customs is not None + if customs.is_defined else None ), settlement_info=None, diff --git a/sdk/extensions/canadapost/purplship/providers/canadapost/tracking.py b/sdk/extensions/canadapost/purplship/providers/canadapost/tracking.py index 9824157b03..14b91ba9b6 100644 --- a/sdk/extensions/canadapost/purplship/providers/canadapost/tracking.py +++ b/sdk/extensions/canadapost/purplship/providers/canadapost/tracking.py @@ -17,7 +17,8 @@ def parse_tracking_response( ) -> Tuple[List[TrackingDetails], List[Message]]: details = XP.find("tracking-detail", response) tracking_details: List[TrackingDetails] = [ - _extract_tracking(node, settings) for node in details + _extract_tracking(node, settings) + for node in details if len(XP.find("occurrence", node)) > 0 ] @@ -27,6 +28,12 @@ def parse_tracking_response( def _extract_tracking(detail_node: Element, settings: Settings) -> TrackingDetails: pin = XP.find("pin", detail_node, first=True) events: List[occurrenceType] = XP.find("occurrence", detail_node, occurrenceType) + expected_delivery = getattr( + XP.find("changed-expected-date", detail_node, first=True) + or XP.find("expected-delivery-date", detail_node, first=True), + "text", + None, + ) return TrackingDetails( carrier_name=settings.carrier_name, @@ -37,12 +44,17 @@ def _extract_tracking(detail_node: Element, settings: Settings) -> TrackingDetai date=DF.fdate(event.event_date, "%Y-%m-%d"), time=DF.ftime(event.event_time, "%H:%M:%S"), code=event.event_identifier, - location=SF.concat_str(event.event_site, event.event_province, join=True, separator=', '), - description=event.event_description + location=SF.concat_str( + event.event_site, event.event_province, join=True, separator=", " + ), + description=event.event_description, ) for event in events ], - delivered=any(e.event_identifier in TRACKING_DELIVERED_EVENT_CODES for e in events) + estimated_delivery=DF.fdate(expected_delivery, "%Y-%m-%d"), + delivered=any( + e.event_identifier in TRACKING_DELIVERED_EVENT_CODES for e in events + ), ) diff --git a/sdk/extensions/canadapost/pyproject.toml b/sdk/extensions/canadapost/pyproject.toml index 53c4283603..0b82e1b6ca 100644 --- a/sdk/extensions/canadapost/pyproject.toml +++ b/sdk/extensions/canadapost/pyproject.toml @@ -1,11 +1,11 @@ [tool.poetry] name = "purplship.canadapost" -version = "2021.10.1" -homepage="https://docs.purplship.com" +version = "2021.11.1" +homepage="https://next.purplship.com/docs/guides/sdk" repository="https://github.com/purplship/purplship" description = "Purplship - Canada Post Shipping Extension" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [{ include = "purplship" }] classifiers=[ diff --git a/sdk/extensions/canadapost/tests/canadapost/tracking.py b/sdk/extensions/canadapost/tests/canadapost/tracking.py index 570c9ac867..1c6b8dc2db 100644 --- a/sdk/extensions/canadapost/tests/canadapost/tracking.py +++ b/sdk/extensions/canadapost/tests/canadapost/tracking.py @@ -77,6 +77,7 @@ def test_tracking_unknown_response_parsing(self): "carrier_id": "canadapost", "carrier_name": "canadapost", "delivered": True, + "estimated_delivery": "2011-04-05", "events": [ { "code": "20", diff --git a/sdk/extensions/canpar/poetry.lock b/sdk/extensions/canpar/poetry.lock deleted file mode 100644 index 5d1e21db57..0000000000 --- a/sdk/extensions/canpar/poetry.lock +++ /dev/null @@ -1,240 +0,0 @@ -[[package]] -name = "attrs" -version = "21.2.0" -description = "Classes Without Boilerplate" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" - -[package.extras] -dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit"] -docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"] -tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface"] -tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins"] - -[[package]] -name = "carrier.canpar" -version = "2021.2" -description = "Canpar Web API Schemas Python Data Types library" -category = "main" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "jstruct" -version = "2020.4.0" -description = "Readable serializable and deserializable Python nested models" -category = "main" -optional = false -python-versions = "*" - -[package.dependencies] -attrs = "*" - -[[package]] -name = "lxml" -version = "4.6.3" -description = "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API." -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*" - -[package.extras] -cssselect = ["cssselect (>=0.7)"] -html5 = ["html5lib"] -htmlsoup = ["beautifulsoup4"] -source = ["Cython (>=0.29.7)"] - -[[package]] -name = "lxml-stubs" -version = "0.1.1" -description = "Type annotations for the lxml package" -category = "main" -optional = false -python-versions = "*" - -[package.extras] -test = ["pytest (>=6.0.0)", "pytest-mypy-plugins (==1.4.0)", "coverage[toml] (==5.2)"] - -[[package]] -name = "phonenumbers" -version = "8.12.28" -description = "Python version of Google's common library for parsing, formatting, storing and validating international phone numbers." -category = "main" -optional = false -python-versions = "*" - -[[package]] -name = "pillow" -version = "8.3.1" -description = "Python Imaging Library (Fork)" -category = "main" -optional = false -python-versions = ">=3.6" - -[[package]] -name = "purplship" -version = "2021.6.2" -description = "Multi-carrier shipping API integration with python" -category = "main" -optional = false -python-versions = ">=3.7,<4.0" - -[package.dependencies] -jstruct = ">=2020.4.0,<2021.0.0" -lxml = ">=4.6.2,<5.0.0" -lxml-stubs = ">=0.1.1,<0.2.0" -phonenumbers = ">=8.12.17,<9.0.0" -Pillow = ">=8.1.0,<9.0.0" -py-soap = ">=2020.3.2,<2021.0.0" -xmltodict = ">=0.12.0,<0.13.0" - -[[package]] -name = "py-soap" -version = "2020.3.2" -description = "SOAP Schemas Python Data Types library" -category = "main" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "six" -version = "1.16.0" -description = "Python 2 and 3 compatibility utilities" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" - -[[package]] -name = "xmltodict" -version = "0.12.0" -description = "Makes working with XML feel like you are working with JSON" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.7" -content-hash = "6e6b9f9843a1fe8c031c8ada7770fbbf7900e8fe9fe8f3afd022ac4c56cc2ae3" - -[metadata.files] -attrs = [ - {file = "attrs-21.2.0-py2.py3-none-any.whl", hash = "sha256:149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1"}, - {file = "attrs-21.2.0.tar.gz", hash = "sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"}, -] -"carrier.canpar" = [ - {file = "carrier.canpar-2021.2-py3-none-any.whl", hash = "sha256:51b366a8abf7f02e45b95ee01f4bfc8296a46545c45480c9696819816d5c5927"}, -] -jstruct = [ - {file = "jstruct-2020.4.0-py3-none-any.whl", hash = "sha256:86257c1332e1ba6983d78e3199fb3dcadaf742e96c3c1a97f3ba322fa241f89c"}, -] -lxml = [ - {file = "lxml-4.6.3-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:df7c53783a46febb0e70f6b05df2ba104610f2fb0d27023409734a3ecbb78fb2"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:1b7584d421d254ab86d4f0b13ec662a9014397678a7c4265a02a6d7c2b18a75f"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:079f3ae844f38982d156efce585bc540c16a926d4436712cf4baee0cce487a3d"}, - {file = "lxml-4.6.3-cp27-cp27m-win32.whl", hash = "sha256:bc4313cbeb0e7a416a488d72f9680fffffc645f8a838bd2193809881c67dd106"}, - {file = "lxml-4.6.3-cp27-cp27m-win_amd64.whl", hash = "sha256:8157dadbb09a34a6bd95a50690595e1fa0af1a99445e2744110e3dca7831c4ee"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:7728e05c35412ba36d3e9795ae8995e3c86958179c9770e65558ec3fdfd3724f"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:4bff24dfeea62f2e56f5bab929b4428ae6caba2d1eea0c2d6eb618e30a71e6d4"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:74f7d8d439b18fa4c385f3f5dfd11144bb87c1da034a466c5b5577d23a1d9b51"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:f90ba11136bfdd25cae3951af8da2e95121c9b9b93727b1b896e3fa105b2f586"}, - {file = "lxml-4.6.3-cp35-cp35m-win32.whl", hash = "sha256:f2380a6376dfa090227b663f9678150ef27543483055cc327555fb592c5967e2"}, - {file = "lxml-4.6.3-cp35-cp35m-win_amd64.whl", hash = "sha256:c4f05c5a7c49d2fb70223d0d5bcfbe474cf928310ac9fa6a7c6dddc831d0b1d4"}, - {file = "lxml-4.6.3-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:d2e35d7bf1c1ac8c538f88d26b396e73dd81440d59c1ef8522e1ea77b345ede4"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:289e9ca1a9287f08daaf796d96e06cb2bc2958891d7911ac7cae1c5f9e1e0ee3"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:bccbfc27563652de7dc9bdc595cb25e90b59c5f8e23e806ed0fd623755b6565d"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:820628b7b3135403540202e60551e741f9b6d3304371712521be939470b454ec"}, - {file = "lxml-4.6.3-cp36-cp36m-win32.whl", hash = "sha256:5a0a14e264069c03e46f926be0d8919f4105c1623d620e7ec0e612a2e9bf1c04"}, - {file = "lxml-4.6.3-cp36-cp36m-win_amd64.whl", hash = "sha256:92e821e43ad382332eade6812e298dc9701c75fe289f2a2d39c7960b43d1e92a"}, - {file = "lxml-4.6.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:efd7a09678fd8b53117f6bae4fa3825e0a22b03ef0a932e070c0bdbb3a35e654"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:efac139c3f0bf4f0939f9375af4b02c5ad83a622de52d6dfa8e438e8e01d0eb0"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:0fbcf5565ac01dff87cbfc0ff323515c823081c5777a9fc7703ff58388c258c3"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:122fba10466c7bd4178b07dba427aa516286b846b2cbd6f6169141917283aae2"}, - {file = "lxml-4.6.3-cp37-cp37m-win32.whl", hash = "sha256:3439c71103ef0e904ea0a1901611863e51f50b5cd5e8654a151740fde5e1cade"}, - {file = "lxml-4.6.3-cp37-cp37m-win_amd64.whl", hash = "sha256:4289728b5e2000a4ad4ab8da6e1db2e093c63c08bdc0414799ee776a3f78da4b"}, - {file = "lxml-4.6.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:b007cbb845b28db4fb8b6a5cdcbf65bacb16a8bd328b53cbc0698688a68e1caa"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_i686.whl", hash = "sha256:76fa7b1362d19f8fbd3e75fe2fb7c79359b0af8747e6f7141c338f0bee2f871a"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:26e761ab5b07adf5f555ee82fb4bfc35bf93750499c6c7614bd64d12aaa67927"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:66e575c62792c3f9ca47cb8b6fab9e35bab91360c783d1606f758761810c9791"}, - {file = "lxml-4.6.3-cp38-cp38-win32.whl", hash = "sha256:89b8b22a5ff72d89d48d0e62abb14340d9e99fd637d046c27b8b257a01ffbe28"}, - {file = "lxml-4.6.3-cp38-cp38-win_amd64.whl", hash = "sha256:2a9d50e69aac3ebee695424f7dbd7b8c6d6eb7de2a2eb6b0f6c7db6aa41e02b7"}, - {file = "lxml-4.6.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:ce256aaa50f6cc9a649c51be3cd4ff142d67295bfc4f490c9134d0f9f6d58ef0"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_i686.whl", hash = "sha256:7610b8c31688f0b1be0ef882889817939490a36d0ee880ea562a4e1399c447a1"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:f8380c03e45cf09f8557bdaa41e1fa7c81f3ae22828e1db470ab2a6c96d8bc23"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:884ab9b29feaca361f7f88d811b1eea9bfca36cf3da27768d28ad45c3ee6f969"}, - {file = "lxml-4.6.3-cp39-cp39-win32.whl", hash = "sha256:33bb934a044cf32157c12bfcfbb6649807da20aa92c062ef51903415c704704f"}, - {file = "lxml-4.6.3-cp39-cp39-win_amd64.whl", hash = "sha256:542d454665a3e277f76954418124d67516c5f88e51a900365ed54a9806122b83"}, - {file = "lxml-4.6.3.tar.gz", hash = "sha256:39b78571b3b30645ac77b95f7c69d1bffc4cf8c3b157c435a34da72e78c82468"}, -] -lxml-stubs = [ - {file = "lxml-stubs-0.1.1.tar.gz", hash = "sha256:9b6a01ba4bccd6e532c01e19d2a3bc6d1d018fa0b9870236f61f315cb7b06648"}, - {file = "lxml_stubs-0.1.1-py3-none-any.whl", hash = "sha256:d34a28be0e2525b0236aff7fe67af1f61911f556cadbc61f09810b69f762b747"}, -] -phonenumbers = [ - {file = "phonenumbers-8.12.28-py2.py3-none-any.whl", hash = "sha256:f8ce05f82955d2faeefe2303350b2ccb7369dd39b6e45231a09475d67eb7e83b"}, - {file = "phonenumbers-8.12.28.tar.gz", hash = "sha256:42ea4f946d5cce0056cbce257842ea6b281e69828ad2e7f27b29d3908e5b06bd"}, -] -pillow = [ - {file = "Pillow-8.3.1-1-cp36-cp36m-win_amd64.whl", hash = "sha256:fd7eef578f5b2200d066db1b50c4aa66410786201669fb76d5238b007918fb24"}, - {file = "Pillow-8.3.1-1-cp37-cp37m-win_amd64.whl", hash = "sha256:75e09042a3b39e0ea61ce37e941221313d51a9c26b8e54e12b3ececccb71718a"}, - {file = "Pillow-8.3.1-1-cp38-cp38-win_amd64.whl", hash = "sha256:c0e0550a404c69aab1e04ae89cca3e2a042b56ab043f7f729d984bf73ed2a093"}, - {file = "Pillow-8.3.1-1-cp39-cp39-win_amd64.whl", hash = "sha256:479ab11cbd69612acefa8286481f65c5dece2002ffaa4f9db62682379ca3bb77"}, - {file = "Pillow-8.3.1-1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:f156d6ecfc747ee111c167f8faf5f4953761b5e66e91a4e6767e548d0f80129c"}, - {file = "Pillow-8.3.1-cp36-cp36m-macosx_10_10_x86_64.whl", hash = "sha256:196560dba4da7a72c5e7085fccc5938ab4075fd37fe8b5468869724109812edd"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:29c9569049d04aaacd690573a0398dbd8e0bf0255684fee512b413c2142ab723"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:c088a000dfdd88c184cc7271bfac8c5b82d9efa8637cd2b68183771e3cf56f04"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:fc214a6b75d2e0ea7745488da7da3c381f41790812988c7a92345978414fad37"}, - {file = "Pillow-8.3.1-cp36-cp36m-win32.whl", hash = "sha256:a17ca41f45cf78c2216ebfab03add7cc350c305c38ff34ef4eef66b7d76c5229"}, - {file = "Pillow-8.3.1-cp36-cp36m-win_amd64.whl", hash = "sha256:67b3666b544b953a2777cb3f5a922e991be73ab32635666ee72e05876b8a92de"}, - {file = "Pillow-8.3.1-cp37-cp37m-macosx_10_10_x86_64.whl", hash = "sha256:ff04c373477723430dce2e9d024c708a047d44cf17166bf16e604b379bf0ca14"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9364c81b252d8348e9cc0cb63e856b8f7c1b340caba6ee7a7a65c968312f7dab"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a2f381932dca2cf775811a008aa3027671ace723b7a38838045b1aee8669fdcf"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:d0da39795049a9afcaadec532e7b669b5ebbb2a9134576ebcc15dd5bdae33cc0"}, - {file = "Pillow-8.3.1-cp37-cp37m-win32.whl", hash = "sha256:2b6dfa068a8b6137da34a4936f5a816aba0ecc967af2feeb32c4393ddd671cba"}, - {file = "Pillow-8.3.1-cp37-cp37m-win_amd64.whl", hash = "sha256:a4eef1ff2d62676deabf076f963eda4da34b51bc0517c70239fafed1d5b51500"}, - {file = "Pillow-8.3.1-cp38-cp38-macosx_10_10_x86_64.whl", hash = "sha256:660a87085925c61a0dcc80efb967512ac34dbb256ff7dd2b9b4ee8dbdab58cf4"}, - {file = "Pillow-8.3.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:15a2808e269a1cf2131930183dcc0419bc77bb73eb54285dde2706ac9939fa8e"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:969cc558cca859cadf24f890fc009e1bce7d7d0386ba7c0478641a60199adf79"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:2ee77c14a0299d0541d26f3d8500bb57e081233e3fa915fa35abd02c51fa7fae"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:c11003197f908878164f0e6da15fce22373ac3fc320cda8c9d16e6bba105b844"}, - {file = "Pillow-8.3.1-cp38-cp38-win32.whl", hash = "sha256:3f08bd8d785204149b5b33e3b5f0ebbfe2190ea58d1a051c578e29e39bfd2367"}, - {file = "Pillow-8.3.1-cp38-cp38-win_amd64.whl", hash = "sha256:70af7d222df0ff81a2da601fab42decb009dc721545ed78549cb96e3a1c5f0c8"}, - {file = "Pillow-8.3.1-cp39-cp39-macosx_10_10_x86_64.whl", hash = "sha256:37730f6e68bdc6a3f02d2079c34c532330d206429f3cee651aab6b66839a9f0e"}, - {file = "Pillow-8.3.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:4bc3c7ef940eeb200ca65bd83005eb3aae8083d47e8fcbf5f0943baa50726856"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c35d09db702f4185ba22bb33ef1751ad49c266534339a5cebeb5159d364f6f82"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:0b2efa07f69dc395d95bb9ef3299f4ca29bcb2157dc615bae0b42c3c20668ffc"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:cc866706d56bd3a7dbf8bac8660c6f6462f2f2b8a49add2ba617bc0c54473d83"}, - {file = "Pillow-8.3.1-cp39-cp39-win32.whl", hash = "sha256:9a211b663cf2314edbdb4cf897beeb5c9ee3810d1d53f0e423f06d6ebbf9cd5d"}, - {file = "Pillow-8.3.1-cp39-cp39-win_amd64.whl", hash = "sha256:c2a5ff58751670292b406b9f06e07ed1446a4b13ffced6b6cab75b857485cbc8"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-macosx_10_10_x86_64.whl", hash = "sha256:c379425c2707078dfb6bfad2430728831d399dc95a7deeb92015eb4c92345eaf"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:114f816e4f73f9ec06997b2fde81a92cbf0777c9e8f462005550eed6bae57e63"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:8960a8a9f4598974e4c2aeb1bff9bdd5db03ee65fd1fce8adf3223721aa2a636"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-macosx_10_10_x86_64.whl", hash = "sha256:147bd9e71fb9dcf08357b4d530b5167941e222a6fd21f869c7911bac40b9994d"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:1fd5066cd343b5db88c048d971994e56b296868766e461b82fa4e22498f34d77"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:f4ebde71785f8bceb39dcd1e7f06bcc5d5c3cf48b9f69ab52636309387b097c8"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:1c03e24be975e2afe70dfc5da6f187eea0b49a68bb2b69db0f30a61b7031cee4"}, - {file = "Pillow-8.3.1.tar.gz", hash = "sha256:2cac53839bfc5cece8fdbe7f084d5e3ee61e1303cccc86511d351adcb9e2c792"}, -] -purplship = [ - {file = "purplship-2021.6.2-py3-none-any.whl", hash = "sha256:ded793b23664a14649f3c08ebbd344f6b58fbbc982d69481242478074ea74ff1"}, -] -py-soap = [ - {file = "py_soap-2020.3.2-py3-none-any.whl", hash = "sha256:61e2ec956d349bdd9d4c6248a2ae3c4cc4b0a2a5cf6b439b6de480a3bc2766a1"}, -] -six = [ - {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"}, - {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"}, -] -xmltodict = [ - {file = "xmltodict-0.12.0-py2.py3-none-any.whl", hash = "sha256:8bbcb45cc982f48b2ca8fe7e7827c5d792f217ecf1792626f808bf41c3b86051"}, - {file = "xmltodict-0.12.0.tar.gz", hash = "sha256:50d8c638ed7ecb88d90561beedbf720c9b4e851a9fa6c47ebd64e99d166d8a21"}, -] diff --git a/sdk/extensions/canpar/purplship/providers/canpar/tracking.py b/sdk/extensions/canpar/purplship/providers/canpar/tracking.py index fd80909fb6..98a0525dee 100644 --- a/sdk/extensions/canpar/purplship/providers/canpar/tracking.py +++ b/sdk/extensions/canpar/purplship/providers/canpar/tracking.py @@ -3,7 +3,7 @@ trackByBarcodeV2, TrackByBarcodeV2Rq, TrackingResult, - TrackingEvent as CanparTrackingEvent + TrackingEvent as CanparTrackingEvent, ) from purplship.core.models import ( Message, @@ -24,7 +24,9 @@ from purplship.providers.canpar.utils import Settings -def parse_tracking_response(response: Element, settings: Settings) -> Tuple[List[TrackingDetails], List[Message]]: +def parse_tracking_response( + response: Element, settings: Settings +) -> Tuple[List[TrackingDetails], List[Message]]: results = response.xpath(".//*[local-name() = $name]", name="result") details: List[TrackingDetails] = [ _extract_tracking_details(result, settings) for result in results @@ -38,19 +40,23 @@ def _extract_tracking_details(node: Element, settings: Settings) -> TrackingDeta is_en = settings.language == "en" events = [ TrackingEvent( - date=DF.fdate(event.local_date_time, '%Y%m%d %H%M%S'), - description=(event.code_description_en if is_en else event.code_description_fr), + date=DF.fdate(event.local_date_time, "%Y%m%d %H%M%S"), + description=( + event.code_description_en if is_en else event.code_description_fr + ), location=SF.concat_str( event.address.address_line_1, event.address.address_line_2, event.address.city, event.address.province, event.address.country, - join=True, separator=", " + join=True, + separator=", ", ), code=event.code, - time=DF.ftime(event.local_date_time, '%Y%m%d %H%M%S'), - ) for event in cast(List[CanparTrackingEvent], result.events) + time=DF.ftime(event.local_date_time, "%Y%m%d %H%M%S"), + ) + for event in cast(List[CanparTrackingEvent], result.events) ] return TrackingDetails( @@ -58,7 +64,8 @@ def _extract_tracking_details(node: Element, settings: Settings) -> TrackingDeta carrier_id=settings.carrier_id, tracking_number=result.barcode, events=events, - delivered=any(event.code == 'DEL' for event in events) + estimated_delivery=DF.fdate(result.estimated_delivery_date, "%Y%m%d"), + delivered=any(event.code == "DEL" for event in events), ) @@ -68,18 +75,15 @@ def tracking_request(payload: TrackingRequest, _) -> Serializable[List[Envelope] create_envelope( body_content=trackByBarcodeV2( request=TrackByBarcodeV2Rq( - barcode=barcode, - filter=None, - track_shipment=True + barcode=barcode, filter=None, track_shipment=True ) ) - ) for barcode in payload.tracking_numbers + ) + for barcode in payload.tracking_numbers ] return Serializable(request, _request_serializer) def _request_serializer(envelopes: List[Envelope]) -> List[str]: - return [ - Settings.serialize(envelope) for envelope in envelopes - ] + return [Settings.serialize(envelope) for envelope in envelopes] diff --git a/sdk/extensions/canpar/pyproject.toml b/sdk/extensions/canpar/pyproject.toml index 6373908235..efa20ba490 100644 --- a/sdk/extensions/canpar/pyproject.toml +++ b/sdk/extensions/canpar/pyproject.toml @@ -1,11 +1,11 @@ [tool.poetry] name = "purplship.canpar" -version = "2021.10" -homepage="https://docs.purplship.com" +version = "2021.11" +homepage="https://next.purplship.com/docs/guides/sdk" repository="https://github.com/purplship/purplship" description = "Purplship - Canpar Shipping Extension" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [{ include = "purplship" }] classifiers=[ @@ -17,7 +17,7 @@ classifiers=[ [tool.poetry.dependencies] python = "^3.7" -"purplship" = "^2021.6" +"purplship" = "" "carrier.canpar" = "" [tool.poetry.dev-dependencies] diff --git a/sdk/extensions/canpar/tests/canpar/tracking.py b/sdk/extensions/canpar/tests/canpar/tracking.py index 61b0f14588..8831f4243a 100644 --- a/sdk/extensions/canpar/tests/canpar/tracking.py +++ b/sdk/extensions/canpar/tests/canpar/tracking.py @@ -37,7 +37,9 @@ def test_parse_tracking_response(self): Tracking.fetch(self.TrackingRequest).from_(gateway).parse() ) - self.assertEqual(DP.to_dict(parsed_response), DP.to_dict(ParsedTrackingResponse)) + self.assertEqual( + DP.to_dict(parsed_response), DP.to_dict(ParsedTrackingResponse) + ) if __name__ == "__main__": @@ -51,6 +53,7 @@ def test_parse_tracking_response(self): "carrier_id": "canpar", "carrier_name": "canpar", "delivered": True, + "estimated_delivery": "2011-03-07", "events": [ { "code": "DEL", @@ -135,7 +138,7 @@ def test_parse_tracking_response(self): 2015-01-22T23:17:26.681Z false - + 20110307 diff --git a/sdk/extensions/dhl_express/poetry.lock b/sdk/extensions/dhl_express/poetry.lock deleted file mode 100644 index 140bebdd33..0000000000 --- a/sdk/extensions/dhl_express/poetry.lock +++ /dev/null @@ -1,240 +0,0 @@ -[[package]] -name = "attrs" -version = "21.2.0" -description = "Classes Without Boilerplate" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" - -[package.extras] -dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit"] -docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"] -tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface"] -tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins"] - -[[package]] -name = "carrier.dhl-express" -version = "2021.4" -description = "DHL Express Web API Schemas Python Data Types library" -category = "main" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "jstruct" -version = "2020.4.0" -description = "Readable serializable and deserializable Python nested models" -category = "main" -optional = false -python-versions = "*" - -[package.dependencies] -attrs = "*" - -[[package]] -name = "lxml" -version = "4.6.3" -description = "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API." -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*" - -[package.extras] -cssselect = ["cssselect (>=0.7)"] -html5 = ["html5lib"] -htmlsoup = ["beautifulsoup4"] -source = ["Cython (>=0.29.7)"] - -[[package]] -name = "lxml-stubs" -version = "0.1.1" -description = "Type annotations for the lxml package" -category = "main" -optional = false -python-versions = "*" - -[package.extras] -test = ["pytest (>=6.0.0)", "pytest-mypy-plugins (==1.4.0)", "coverage[toml] (==5.2)"] - -[[package]] -name = "phonenumbers" -version = "8.12.28" -description = "Python version of Google's common library for parsing, formatting, storing and validating international phone numbers." -category = "main" -optional = false -python-versions = "*" - -[[package]] -name = "pillow" -version = "8.3.1" -description = "Python Imaging Library (Fork)" -category = "main" -optional = false -python-versions = ">=3.6" - -[[package]] -name = "purplship" -version = "2021.6.2" -description = "Multi-carrier shipping API integration with python" -category = "main" -optional = false -python-versions = ">=3.7,<4.0" - -[package.dependencies] -jstruct = ">=2020.4.0,<2021.0.0" -lxml = ">=4.6.2,<5.0.0" -lxml-stubs = ">=0.1.1,<0.2.0" -phonenumbers = ">=8.12.17,<9.0.0" -Pillow = ">=8.1.0,<9.0.0" -py-soap = ">=2020.3.2,<2021.0.0" -xmltodict = ">=0.12.0,<0.13.0" - -[[package]] -name = "py-soap" -version = "2020.3.2" -description = "SOAP Schemas Python Data Types library" -category = "main" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "six" -version = "1.16.0" -description = "Python 2 and 3 compatibility utilities" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" - -[[package]] -name = "xmltodict" -version = "0.12.0" -description = "Makes working with XML feel like you are working with JSON" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.7" -content-hash = "21ec6df46de550064378cb66a3d07e2ef69907bf1be3b992379f010658a43d8f" - -[metadata.files] -attrs = [ - {file = "attrs-21.2.0-py2.py3-none-any.whl", hash = "sha256:149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1"}, - {file = "attrs-21.2.0.tar.gz", hash = "sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"}, -] -"carrier.dhl-express" = [ - {file = "carrier.dhl_express-2021.4-py3-none-any.whl", hash = "sha256:23fd7cd2e6658e2a77f49ddf8887624b3b6fc97fbe48d8bfce3139760d5fa36a"}, -] -jstruct = [ - {file = "jstruct-2020.4.0-py3-none-any.whl", hash = "sha256:86257c1332e1ba6983d78e3199fb3dcadaf742e96c3c1a97f3ba322fa241f89c"}, -] -lxml = [ - {file = "lxml-4.6.3-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:df7c53783a46febb0e70f6b05df2ba104610f2fb0d27023409734a3ecbb78fb2"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:1b7584d421d254ab86d4f0b13ec662a9014397678a7c4265a02a6d7c2b18a75f"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:079f3ae844f38982d156efce585bc540c16a926d4436712cf4baee0cce487a3d"}, - {file = "lxml-4.6.3-cp27-cp27m-win32.whl", hash = "sha256:bc4313cbeb0e7a416a488d72f9680fffffc645f8a838bd2193809881c67dd106"}, - {file = "lxml-4.6.3-cp27-cp27m-win_amd64.whl", hash = "sha256:8157dadbb09a34a6bd95a50690595e1fa0af1a99445e2744110e3dca7831c4ee"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:7728e05c35412ba36d3e9795ae8995e3c86958179c9770e65558ec3fdfd3724f"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:4bff24dfeea62f2e56f5bab929b4428ae6caba2d1eea0c2d6eb618e30a71e6d4"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:74f7d8d439b18fa4c385f3f5dfd11144bb87c1da034a466c5b5577d23a1d9b51"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:f90ba11136bfdd25cae3951af8da2e95121c9b9b93727b1b896e3fa105b2f586"}, - {file = "lxml-4.6.3-cp35-cp35m-win32.whl", hash = "sha256:f2380a6376dfa090227b663f9678150ef27543483055cc327555fb592c5967e2"}, - {file = "lxml-4.6.3-cp35-cp35m-win_amd64.whl", hash = "sha256:c4f05c5a7c49d2fb70223d0d5bcfbe474cf928310ac9fa6a7c6dddc831d0b1d4"}, - {file = "lxml-4.6.3-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:d2e35d7bf1c1ac8c538f88d26b396e73dd81440d59c1ef8522e1ea77b345ede4"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:289e9ca1a9287f08daaf796d96e06cb2bc2958891d7911ac7cae1c5f9e1e0ee3"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:bccbfc27563652de7dc9bdc595cb25e90b59c5f8e23e806ed0fd623755b6565d"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:820628b7b3135403540202e60551e741f9b6d3304371712521be939470b454ec"}, - {file = "lxml-4.6.3-cp36-cp36m-win32.whl", hash = "sha256:5a0a14e264069c03e46f926be0d8919f4105c1623d620e7ec0e612a2e9bf1c04"}, - {file = "lxml-4.6.3-cp36-cp36m-win_amd64.whl", hash = "sha256:92e821e43ad382332eade6812e298dc9701c75fe289f2a2d39c7960b43d1e92a"}, - {file = "lxml-4.6.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:efd7a09678fd8b53117f6bae4fa3825e0a22b03ef0a932e070c0bdbb3a35e654"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:efac139c3f0bf4f0939f9375af4b02c5ad83a622de52d6dfa8e438e8e01d0eb0"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:0fbcf5565ac01dff87cbfc0ff323515c823081c5777a9fc7703ff58388c258c3"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:122fba10466c7bd4178b07dba427aa516286b846b2cbd6f6169141917283aae2"}, - {file = "lxml-4.6.3-cp37-cp37m-win32.whl", hash = "sha256:3439c71103ef0e904ea0a1901611863e51f50b5cd5e8654a151740fde5e1cade"}, - {file = "lxml-4.6.3-cp37-cp37m-win_amd64.whl", hash = "sha256:4289728b5e2000a4ad4ab8da6e1db2e093c63c08bdc0414799ee776a3f78da4b"}, - {file = "lxml-4.6.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:b007cbb845b28db4fb8b6a5cdcbf65bacb16a8bd328b53cbc0698688a68e1caa"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_i686.whl", hash = "sha256:76fa7b1362d19f8fbd3e75fe2fb7c79359b0af8747e6f7141c338f0bee2f871a"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:26e761ab5b07adf5f555ee82fb4bfc35bf93750499c6c7614bd64d12aaa67927"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:66e575c62792c3f9ca47cb8b6fab9e35bab91360c783d1606f758761810c9791"}, - {file = "lxml-4.6.3-cp38-cp38-win32.whl", hash = "sha256:89b8b22a5ff72d89d48d0e62abb14340d9e99fd637d046c27b8b257a01ffbe28"}, - {file = "lxml-4.6.3-cp38-cp38-win_amd64.whl", hash = "sha256:2a9d50e69aac3ebee695424f7dbd7b8c6d6eb7de2a2eb6b0f6c7db6aa41e02b7"}, - {file = "lxml-4.6.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:ce256aaa50f6cc9a649c51be3cd4ff142d67295bfc4f490c9134d0f9f6d58ef0"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_i686.whl", hash = "sha256:7610b8c31688f0b1be0ef882889817939490a36d0ee880ea562a4e1399c447a1"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:f8380c03e45cf09f8557bdaa41e1fa7c81f3ae22828e1db470ab2a6c96d8bc23"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:884ab9b29feaca361f7f88d811b1eea9bfca36cf3da27768d28ad45c3ee6f969"}, - {file = "lxml-4.6.3-cp39-cp39-win32.whl", hash = "sha256:33bb934a044cf32157c12bfcfbb6649807da20aa92c062ef51903415c704704f"}, - {file = "lxml-4.6.3-cp39-cp39-win_amd64.whl", hash = "sha256:542d454665a3e277f76954418124d67516c5f88e51a900365ed54a9806122b83"}, - {file = "lxml-4.6.3.tar.gz", hash = "sha256:39b78571b3b30645ac77b95f7c69d1bffc4cf8c3b157c435a34da72e78c82468"}, -] -lxml-stubs = [ - {file = "lxml-stubs-0.1.1.tar.gz", hash = "sha256:9b6a01ba4bccd6e532c01e19d2a3bc6d1d018fa0b9870236f61f315cb7b06648"}, - {file = "lxml_stubs-0.1.1-py3-none-any.whl", hash = "sha256:d34a28be0e2525b0236aff7fe67af1f61911f556cadbc61f09810b69f762b747"}, -] -phonenumbers = [ - {file = "phonenumbers-8.12.28-py2.py3-none-any.whl", hash = "sha256:f8ce05f82955d2faeefe2303350b2ccb7369dd39b6e45231a09475d67eb7e83b"}, - {file = "phonenumbers-8.12.28.tar.gz", hash = "sha256:42ea4f946d5cce0056cbce257842ea6b281e69828ad2e7f27b29d3908e5b06bd"}, -] -pillow = [ - {file = "Pillow-8.3.1-1-cp36-cp36m-win_amd64.whl", hash = "sha256:fd7eef578f5b2200d066db1b50c4aa66410786201669fb76d5238b007918fb24"}, - {file = "Pillow-8.3.1-1-cp37-cp37m-win_amd64.whl", hash = "sha256:75e09042a3b39e0ea61ce37e941221313d51a9c26b8e54e12b3ececccb71718a"}, - {file = "Pillow-8.3.1-1-cp38-cp38-win_amd64.whl", hash = "sha256:c0e0550a404c69aab1e04ae89cca3e2a042b56ab043f7f729d984bf73ed2a093"}, - {file = "Pillow-8.3.1-1-cp39-cp39-win_amd64.whl", hash = "sha256:479ab11cbd69612acefa8286481f65c5dece2002ffaa4f9db62682379ca3bb77"}, - {file = "Pillow-8.3.1-1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:f156d6ecfc747ee111c167f8faf5f4953761b5e66e91a4e6767e548d0f80129c"}, - {file = "Pillow-8.3.1-cp36-cp36m-macosx_10_10_x86_64.whl", hash = "sha256:196560dba4da7a72c5e7085fccc5938ab4075fd37fe8b5468869724109812edd"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:29c9569049d04aaacd690573a0398dbd8e0bf0255684fee512b413c2142ab723"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:c088a000dfdd88c184cc7271bfac8c5b82d9efa8637cd2b68183771e3cf56f04"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:fc214a6b75d2e0ea7745488da7da3c381f41790812988c7a92345978414fad37"}, - {file = "Pillow-8.3.1-cp36-cp36m-win32.whl", hash = "sha256:a17ca41f45cf78c2216ebfab03add7cc350c305c38ff34ef4eef66b7d76c5229"}, - {file = "Pillow-8.3.1-cp36-cp36m-win_amd64.whl", hash = "sha256:67b3666b544b953a2777cb3f5a922e991be73ab32635666ee72e05876b8a92de"}, - {file = "Pillow-8.3.1-cp37-cp37m-macosx_10_10_x86_64.whl", hash = "sha256:ff04c373477723430dce2e9d024c708a047d44cf17166bf16e604b379bf0ca14"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9364c81b252d8348e9cc0cb63e856b8f7c1b340caba6ee7a7a65c968312f7dab"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a2f381932dca2cf775811a008aa3027671ace723b7a38838045b1aee8669fdcf"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:d0da39795049a9afcaadec532e7b669b5ebbb2a9134576ebcc15dd5bdae33cc0"}, - {file = "Pillow-8.3.1-cp37-cp37m-win32.whl", hash = "sha256:2b6dfa068a8b6137da34a4936f5a816aba0ecc967af2feeb32c4393ddd671cba"}, - {file = "Pillow-8.3.1-cp37-cp37m-win_amd64.whl", hash = "sha256:a4eef1ff2d62676deabf076f963eda4da34b51bc0517c70239fafed1d5b51500"}, - {file = "Pillow-8.3.1-cp38-cp38-macosx_10_10_x86_64.whl", hash = "sha256:660a87085925c61a0dcc80efb967512ac34dbb256ff7dd2b9b4ee8dbdab58cf4"}, - {file = "Pillow-8.3.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:15a2808e269a1cf2131930183dcc0419bc77bb73eb54285dde2706ac9939fa8e"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:969cc558cca859cadf24f890fc009e1bce7d7d0386ba7c0478641a60199adf79"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:2ee77c14a0299d0541d26f3d8500bb57e081233e3fa915fa35abd02c51fa7fae"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:c11003197f908878164f0e6da15fce22373ac3fc320cda8c9d16e6bba105b844"}, - {file = "Pillow-8.3.1-cp38-cp38-win32.whl", hash = "sha256:3f08bd8d785204149b5b33e3b5f0ebbfe2190ea58d1a051c578e29e39bfd2367"}, - {file = "Pillow-8.3.1-cp38-cp38-win_amd64.whl", hash = "sha256:70af7d222df0ff81a2da601fab42decb009dc721545ed78549cb96e3a1c5f0c8"}, - {file = "Pillow-8.3.1-cp39-cp39-macosx_10_10_x86_64.whl", hash = "sha256:37730f6e68bdc6a3f02d2079c34c532330d206429f3cee651aab6b66839a9f0e"}, - {file = "Pillow-8.3.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:4bc3c7ef940eeb200ca65bd83005eb3aae8083d47e8fcbf5f0943baa50726856"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c35d09db702f4185ba22bb33ef1751ad49c266534339a5cebeb5159d364f6f82"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:0b2efa07f69dc395d95bb9ef3299f4ca29bcb2157dc615bae0b42c3c20668ffc"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:cc866706d56bd3a7dbf8bac8660c6f6462f2f2b8a49add2ba617bc0c54473d83"}, - {file = "Pillow-8.3.1-cp39-cp39-win32.whl", hash = "sha256:9a211b663cf2314edbdb4cf897beeb5c9ee3810d1d53f0e423f06d6ebbf9cd5d"}, - {file = "Pillow-8.3.1-cp39-cp39-win_amd64.whl", hash = "sha256:c2a5ff58751670292b406b9f06e07ed1446a4b13ffced6b6cab75b857485cbc8"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-macosx_10_10_x86_64.whl", hash = "sha256:c379425c2707078dfb6bfad2430728831d399dc95a7deeb92015eb4c92345eaf"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:114f816e4f73f9ec06997b2fde81a92cbf0777c9e8f462005550eed6bae57e63"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:8960a8a9f4598974e4c2aeb1bff9bdd5db03ee65fd1fce8adf3223721aa2a636"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-macosx_10_10_x86_64.whl", hash = "sha256:147bd9e71fb9dcf08357b4d530b5167941e222a6fd21f869c7911bac40b9994d"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:1fd5066cd343b5db88c048d971994e56b296868766e461b82fa4e22498f34d77"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:f4ebde71785f8bceb39dcd1e7f06bcc5d5c3cf48b9f69ab52636309387b097c8"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:1c03e24be975e2afe70dfc5da6f187eea0b49a68bb2b69db0f30a61b7031cee4"}, - {file = "Pillow-8.3.1.tar.gz", hash = "sha256:2cac53839bfc5cece8fdbe7f084d5e3ee61e1303cccc86511d351adcb9e2c792"}, -] -purplship = [ - {file = "purplship-2021.6.2-py3-none-any.whl", hash = "sha256:ded793b23664a14649f3c08ebbd344f6b58fbbc982d69481242478074ea74ff1"}, -] -py-soap = [ - {file = "py_soap-2020.3.2-py3-none-any.whl", hash = "sha256:61e2ec956d349bdd9d4c6248a2ae3c4cc4b0a2a5cf6b439b6de480a3bc2766a1"}, -] -six = [ - {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"}, - {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"}, -] -xmltodict = [ - {file = "xmltodict-0.12.0-py2.py3-none-any.whl", hash = "sha256:8bbcb45cc982f48b2ca8fe7e7827c5d792f217ecf1792626f808bf41c3b86051"}, - {file = "xmltodict-0.12.0.tar.gz", hash = "sha256:50d8c638ed7ecb88d90561beedbf720c9b4e851a9fa6c47ebd64e99d166d8a21"}, -] diff --git a/sdk/extensions/dhl_express/purplship/providers/dhl_express/shipment.py b/sdk/extensions/dhl_express/purplship/providers/dhl_express/shipment.py index 3621ac4feb..2c0a6f3799 100644 --- a/sdk/extensions/dhl_express/purplship/providers/dhl_express/shipment.py +++ b/sdk/extensions/dhl_express/purplship/providers/dhl_express/shipment.py @@ -30,9 +30,16 @@ ShipmentDetails, Payment, Customs, - Duty + Duty, +) +from purplship.core.units import ( + CustomsInfo, + Options, + Packages, + CompleteAddress, + Weight, + WeightUnit, ) -from purplship.core.units import Options, Packages, CompleteAddress, Weight, WeightUnit from purplship.providers.dhl_express.units import ( PackageType, ProductCode, @@ -51,11 +58,11 @@ from purplship.providers.dhl_express.error import parse_error_response -UNSUPPORTED_PAPERLESS_COUNTRIES = ['JM'] +UNSUPPORTED_PAPERLESS_COUNTRIES = ["JM"] def parse_shipment_response( - response: Element, settings: Settings + response: Element, settings: Settings ) -> Tuple[ShipmentDetails, List[Message]]: air_way_bill = XP.find("AirwayBillNumber", response, first=True) @@ -68,13 +75,18 @@ def parse_shipment_response( def _extract_shipment(shipment_node, settings: Settings) -> Optional[ShipmentDetails]: tracking_number = XP.find("AirwayBillNumber", shipment_node, first=True).text label_image = XP.find("LabelImage", shipment_node, LabelImage, first=True) - multilabels: List[MultiLabelType] = XP.find("MultiLabel", shipment_node, MultiLabelType) - invoice = next((item for item in multilabels if item.DocName == "CustomInvoiceImage"), None) + multilabels: List[MultiLabelType] = XP.find( + "MultiLabel", shipment_node, MultiLabelType + ) + invoice = next( + (item for item in multilabels if item.DocName == "CustomInvoiceImage"), None + ) label = encodebytes(label_image.OutputImage).decode("utf-8") meta = ( dict(custom_invoice=encodebytes(invoice.DocImageVal).decode("utf-8")) - if invoice is not None else None + if invoice is not None + else None ) return ShipmentDetails( @@ -83,12 +95,16 @@ def _extract_shipment(shipment_node, settings: Settings) -> Optional[ShipmentDet tracking_number=tracking_number, shipment_identifier=tracking_number, label=label, - meta=meta + meta=meta, ) -def shipment_request(payload: ShipmentRequest, settings: Settings) -> Serializable[DHLShipmentRequest]: - if any(settings.account_country_code or "") and (payload.shipper.country_code != settings.account_country_code): +def shipment_request( + payload: ShipmentRequest, settings: Settings +) -> Serializable[DHLShipmentRequest]: + if any(settings.account_country_code or "") and ( + payload.shipper.country_code != settings.account_country_code + ): raise OriginNotServicedError(payload.shipper.country_code) packages = Packages.map(payload.parcels, PackagePresets, required=["weight"]) @@ -97,23 +113,31 @@ def shipment_request(payload: ShipmentRequest, settings: Settings) -> Serializab shipper = CompleteAddress.map(payload.shipper) recipient = CompleteAddress.map(payload.recipient) - weight_unit, dim_unit = (COUNTRY_PREFERED_UNITS.get(payload.shipper.country_code) or packages.compatible_units) + weight_unit, dim_unit = ( + COUNTRY_PREFERED_UNITS.get(payload.shipper.country_code) + or packages.compatible_units + ) is_document = all(p.parcel.is_document for p in packages) package_type = PackageType[packages.package_type].value - label_format, label_template = LabelType[payload.label_type or 'PDF_6x4'].value - payment = (payload.payment or Payment(paid_by="sender", account_number=settings.account_number)) - customs = (payload.customs or Customs(commodities=[])) - is_dutiable = (is_document is False and customs.duty is not None) - paperless_supported = (is_dutiable and payload.shipper.country_code not in UNSUPPORTED_PAPERLESS_COUNTRIES) - duty = (customs.duty or Duty(paid_by="sender")) + label_format, label_template = LabelType[payload.label_type or "PDF_6x4"].value + payment = payload.payment or Payment( + paid_by="sender", account_number=settings.account_number + ) + customs = CustomsInfo(payload.customs or Customs(commodities=[])) + is_dutiable = is_document is False and customs.duty is not None + paperless_supported = ( + is_dutiable + and payload.shipper.country_code not in UNSUPPORTED_PAPERLESS_COUNTRIES + ) + duty = customs.duty or Duty(paid_by="sender") bill_to = CompleteAddress.map(duty.bill_to) - content = (packages[0].parcel.content or customs.content_description or "N/A") - reference = (payload.reference or getattr(payload, 'id', None)) + content = packages[0].parcel.content or customs.content_description or "N/A" + reference = payload.reference or getattr(payload, "id", None) request = DHLShipmentRequest( - schemaVersion='10.0', + schemaVersion="10.0", Request=settings.Request( - MetaData=MetaData(SoftwareName="3PV", SoftwareVersion='10.0') + MetaData=MetaData(SoftwareName="3PV", SoftwareVersion="10.0") ), RegionCode=CountryRegion[shipper.country_code].value, LanguageCode="en", @@ -153,7 +177,8 @@ def shipment_request(payload: ShipmentRequest, settings: Settings) -> Serializab Commodity(CommodityCode=c.sku, CommodityName=c.description) for c in payload.customs.commodities ] - if any(customs.commodities) else None + if any(customs.commodities) + else None ), Dutiable=( Dutiable( @@ -165,13 +190,16 @@ def shipment_request(payload: ShipmentRequest, settings: Settings) -> Serializab ShipperIDType=None, TermsOfTrade=customs.incoterm, CommerceLicensed=None, - Filing=None + Filing=None, ) - if is_dutiable else None + if is_dutiable + else None ), UseDHLInvoice=("Y" if is_dutiable else None), DHLInvoiceLanguageCode=("en" if is_dutiable else None), - DHLInvoiceType=(("CMI" if customs.commercial_invoice else "PFI") if is_dutiable else None), + DHLInvoiceType=( + ("CMI" if customs.commercial_invoice else "PFI") if is_dutiable else None + ), ExportDeclaration=( ExportDeclaration( InterConsignee=None, @@ -180,7 +208,9 @@ def shipment_request(payload: ShipmentRequest, settings: Settings) -> Serializab SignatureName=customs.signer, SignatureTitle=None, ExportReason=customs.content_type, - ExportReasonCode=ExportReasonCode[customs.content_type or 'other'].value, + ExportReasonCode=ExportReasonCode[ + customs.content_type or "other" + ].value, SedNumber=None, SedNumberType=None, MxStateCode=None, @@ -209,25 +239,31 @@ def shipment_request(payload: ShipmentRequest, settings: Settings) -> Serializab ExportLineItem( LineNumber=index, Quantity=item.quantity, - QuantityUnit='PCS', - Description=item.description or 'N/A', + QuantityUnit="PCS", + Description=item.description or "N/A", Value=((item.quantity or 1) * (item.value_amount or 0.0)), IsDomestic=None, CommodityCode=item.sku, ScheduleB=None, ECCN=None, Weight=WeightType( - Weight=Weight(item.weight, WeightUnit[item.weight_unit or 'KG'])[weight_unit.name], - WeightUnit=DHLWeightUnit[weight_unit.name].value + Weight=Weight( + item.weight, WeightUnit[item.weight_unit or "KG"] + )[weight_unit.name], + WeightUnit=DHLWeightUnit[weight_unit.name].value, ), GrossWeight=WeightType( - Weight=Weight(item.weight, WeightUnit[item.weight_unit or 'KG'])[weight_unit.name], - WeightUnit=DHLWeightUnit[weight_unit.name].value + Weight=Weight( + item.weight, WeightUnit[item.weight_unit or "KG"] + )[weight_unit.name], + WeightUnit=DHLWeightUnit[weight_unit.name].value, ), License=None, LicenseSymbol=None, ManufactureCountryCode=item.origin_country, - ManufactureCountryName=Location(item.origin_country).as_country_name, + ManufactureCountryName=Location( + item.origin_country + ).as_country_name, ImportTaxManagedOutsideDhlExpress=None, AdditionalInformation=None, ImportCommodityCode=None, @@ -240,40 +276,49 @@ def shipment_request(payload: ShipmentRequest, settings: Settings) -> Serializab InvoiceInstructions=None, CustomerDataTextEntries=None, PlaceOfIncoterm="N/A", - ShipmentPurpose=("COMMERCIAL" if customs.commercial_invoice else "PERSONAL"), + ShipmentPurpose=( + "COMMERCIAL" if customs.commercial_invoice else "PERSONAL" + ), DocumentFunction=None, CustomsDocuments=None, InvoiceTotalNetWeight=None, InvoiceTotalGrossWeight=None, InvoiceReferences=None, ) - if is_dutiable else None - ), - Reference=( - [Reference(ReferenceID=reference)] - if any([reference]) else None + if is_dutiable + else None ), + Reference=([Reference(ReferenceID=reference)] if any([reference]) else None), ShipmentDetails=DHLShipmentDetails( Pieces=Pieces( Piece=[ Piece( PieceID=index, PackageType=( - package_type or PackageType[package.packaging_type or "your_packaging"].value + package_type + or PackageType[ + package.packaging_type or "your_packaging" + ].value ), Depth=package.length.map(MeasurementOptions)[dim_unit.name], Width=package.width.map(MeasurementOptions)[dim_unit.name], Height=package.height.map(MeasurementOptions)[dim_unit.name], Weight=package.weight[weight_unit.name], - PieceContents=(package.parcel.content or package.parcel.description), + PieceContents=( + package.parcel.content or package.parcel.description + ), PieceReference=( [Reference(ReferenceID=package.parcel.id)] - if package.parcel.id is not None else None + if package.parcel.id is not None + else None ), AdditionalInformation=( - AdditionalInformation(CustomerDescription=package.parcel.description) - if package.parcel.description is not None else None - ) + AdditionalInformation( + CustomerDescription=package.parcel.description + ) + if package.parcel.description is not None + else None + ), ) for (index, package) in enumerate(packages, start=1) ] @@ -287,8 +332,10 @@ def shipment_request(payload: ShipmentRequest, settings: Settings) -> Serializab PackageType=package_type, IsDutiable=("Y" if is_dutiable else "N"), CurrencyCode=options.currency or "USD", - CustData=getattr(payload, 'id', None), - ShipmentCharges=(options.cash_on_delivery if options.cash_on_delivery else None), + CustData=getattr(payload, "id", None), + ShipmentCharges=( + options.cash_on_delivery if options.cash_on_delivery else None + ), ParentShipmentIdentificationNumber=None, ParentShipmentGlobalProductCode=None, ParentShipmentPackagesCount=None, @@ -325,19 +372,24 @@ def shipment_request(payload: ShipmentRequest, settings: Settings) -> Serializab [ SpecialService( SpecialServiceType=SpecialServiceCode[key].value.key, - ChargeValue=getattr(svc, 'value', None), - CurrencyCode=(options.currency or "USD" if hasattr(svc, 'value') else None) + ChargeValue=getattr(svc, "value", None), + CurrencyCode=( + options.currency or "USD" if hasattr(svc, "value") else None + ), ) - for key, svc in options if key in SpecialServiceCode - ] + - ( # Add paperless trade if dutiable + for key, svc in options + if key in SpecialServiceCode + ] + + ( # Add paperless trade if dutiable [SpecialService(SpecialServiceType="WY")] - if paperless_supported and 'dhl_paperless_trade' not in options else [] + if paperless_supported and "dhl_paperless_trade" not in options + else [] ) ), Notification=( Notification(EmailAddress=options.email_notification_to or recipient.email) - if options.email_notification and any([options.email_notification_to, recipient.email]) + if options.email_notification + and any([options.email_notification_to, recipient.email]) else None ), Place=None, @@ -347,15 +399,15 @@ def shipment_request(payload: ShipmentRequest, settings: Settings) -> Serializab LabelImageFormat=label_format, RequestArchiveDoc=None, NumberOfArchiveDoc=None, - RequestQRCode='N', + RequestQRCode="N", RequestTransportLabel=None, Label=Label(LabelTemplate=label_template), ODDLinkReq=None, DGs=None, - GetPriceEstimate='Y', - SinglePieceImage='N', + GetPriceEstimate="Y", + SinglePieceImage="N", ShipmentIdentificationNumber=None, - UseOwnShipmentIdentificationNumber='N', + UseOwnShipmentIdentificationNumber="N", Importer=None, ) diff --git a/sdk/extensions/dhl_express/purplship/providers/dhl_express/tracking.py b/sdk/extensions/dhl_express/purplship/providers/dhl_express/tracking.py index acb8b2f5f6..c8018a4621 100644 --- a/sdk/extensions/dhl_express/purplship/providers/dhl_express/tracking.py +++ b/sdk/extensions/dhl_express/purplship/providers/dhl_express/tracking.py @@ -23,8 +23,9 @@ def parse_tracking_response( awb_nodes = response.xpath(".//*[local-name() = $name]", name="AWBInfo") tracking_details = [ - _extract_tracking(info_node, settings) for info_node in awb_nodes - if len(XP.find('ShipmentInfo', info_node)) > 0 + _extract_tracking(info_node, settings) + for info_node in awb_nodes + if len(XP.find("ShipmentInfo", info_node)) > 0 ] return ( tracking_details, @@ -35,9 +36,12 @@ def parse_tracking_response( def _extract_tracking( info_node: Element, settings: Settings ) -> Optional[TrackingDetails]: - tracking_number = XP.find('AWBNumber', info_node, first=True).text - events: List[ShipmentEvent] = XP.find('ShipmentEvent', info_node, ShipmentEvent) - delivered = any(e.ServiceEvent.EventCode == 'OK' for e in events) + tracking_number = XP.find("AWBNumber", info_node, first=True).text + estimated_delivery = getattr( + XP.find("EstDlvyDate", info_node, first=True), "text", None + ) + events: List[ShipmentEvent] = XP.find("ShipmentEvent", info_node, ShipmentEvent) + delivered = any(e.ServiceEvent.EventCode == "OK" for e in events) return TrackingDetails( carrier_name=settings.carrier_name, @@ -49,11 +53,12 @@ def _extract_tracking( time=DF.ftime(e.Time), code=e.ServiceEvent.EventCode, location=e.ServiceArea.Description, - description=f'{e.ServiceEvent.Description} {e.Signatory}'.strip(), + description=f"{e.ServiceEvent.Description} {e.Signatory}".strip(), ) for e in reversed(events) ], - delivered=delivered + estimated_delivery=DF.fdate(estimated_delivery, "%Y-%m-%d %H:%M:%S %Z%z"), + delivered=delivered, ) diff --git a/sdk/extensions/dhl_express/pyproject.toml b/sdk/extensions/dhl_express/pyproject.toml index cf62a28ae6..5e4e682e9e 100644 --- a/sdk/extensions/dhl_express/pyproject.toml +++ b/sdk/extensions/dhl_express/pyproject.toml @@ -1,11 +1,11 @@ [tool.poetry] name = "purplship.dhl_express" -version = "2021.10" -homepage="https://docs.purplship.com" +version = "2021.11.1" +homepage="https://next.purplship.com/docs/guides/sdk" repository="https://github.com/purplship/purplship" description = "Purplship - DHL Express Shipping Extension" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [{ include = "purplship" }] classifiers=[ diff --git a/sdk/extensions/dhl_express/tests/dhl_express/tracking.py b/sdk/extensions/dhl_express/tests/dhl_express/tracking.py index 0a3d25e94b..758a4bc44b 100644 --- a/sdk/extensions/dhl_express/tests/dhl_express/tracking.py +++ b/sdk/extensions/dhl_express/tests/dhl_express/tracking.py @@ -15,8 +15,15 @@ def setUp(self): def test_create_tracking_request(self): request = gateway.mapper.create_tracking_request(self.TrackingRequest) # remove MessageTime, Date and ReadyTime for testing purpose + self.assertEqual( - re.sub("[^>]+", "", request.serialize()), + re.sub( + "[^>]+", + "", + request.serialize().replace( + " ", "" + ), + ), TrackingRequestXML, ) @@ -265,6 +272,7 @@ def test_tracking_single_not_found_parsing(self): "carrier_id": "carrier_id", "carrier_name": "dhl_express", "delivered": False, + "estimated_delivery": "2021-05-07", "events": [ { "code": "PU", @@ -328,7 +336,7 @@ def test_tracking_single_not_found_parsing(self): TrackingRequestXML = """ - + 1234567890123456789012345678901 site_id password diff --git a/sdk/extensions/dhl_poland/README.md b/sdk/extensions/dhl_poland/README.md new file mode 100644 index 0000000000..374a897c6f --- /dev/null +++ b/sdk/extensions/dhl_poland/README.md @@ -0,0 +1,30 @@ +# purplship.dhl_poland + +This package is a DHL Parcel Poland extension of the [purplship](https://pypi.org/project/purplship) multi carrier shipping SDK. + +## Requirements + +`Python 3.7+` + +## Installation + +```bash +pip install purplship.dhl_poland +``` + +## Usage + +```python +import purplship +from purplship.mappers.dhl_poland.settings import Settings + + +# Initialize a carrier gateway +canadapost = purplship.gateway["dhl_poland"].create( + Settings( + ... + ) +) +``` + +Check the [Purplship Mutli-carrier SDK docs](https://sdk.purplship.com) for Shipping API requests diff --git a/sdk/extensions/dhl_poland/purplship/mappers/dhl_poland/__init__.py b/sdk/extensions/dhl_poland/purplship/mappers/dhl_poland/__init__.py new file mode 100644 index 0000000000..6158c5b49a --- /dev/null +++ b/sdk/extensions/dhl_poland/purplship/mappers/dhl_poland/__init__.py @@ -0,0 +1,21 @@ +from purplship.core.metadata import Metadata + +from purplship.mappers.dhl_poland.mapper import Mapper +from purplship.mappers.dhl_poland.proxy import Proxy +from purplship.mappers.dhl_poland.settings import Settings, DEFAULT_SERVICES +from purplship.providers.dhl_poland import units + + +METADATA = Metadata( + id="dhl_poland", + label="DHL Parcel Poland", + # Integrations + Mapper=Mapper, + Proxy=Proxy, + Settings=Settings, + # Data Units + services=units.Service, + options=units.Option, + packaging_types=units.PackagingType, + service_levels=units.DEFAULT_SERVICES, +) diff --git a/sdk/extensions/dhl_poland/purplship/mappers/dhl_poland/mapper.py b/sdk/extensions/dhl_poland/purplship/mappers/dhl_poland/mapper.py new file mode 100644 index 0000000000..1ca7678cad --- /dev/null +++ b/sdk/extensions/dhl_poland/purplship/mappers/dhl_poland/mapper.py @@ -0,0 +1,56 @@ +from typing import List, Tuple +from purplship.core.utils.serializable import Serializable, Deserializable +from purplship.api.mapper import Mapper as BaseMapper +from purplship.core.models import ( + RateDetails, + RateRequest, + TrackingRequest, + TrackingDetails, + Message, +) +from purplship.providers.dhl_poland import ( + parse_shipment_cancel_response, + parse_tracking_response, + parse_shipment_response, + shipment_cancel_request, + shipment_request, + tracking_request, +) +from purplship.universal.providers.rate import parse_rate_response, rate_request +from purplship.mappers.dhl_poland.settings import Settings + + +class Mapper(BaseMapper): + settings: Settings + + def create_rate_request(self, payload: RateRequest) -> Serializable: + return rate_request(payload, self.settings) + + def create_shipment_request(self, payload: Serializable[str]) -> Serializable: + return shipment_request(payload, self.settings) + + def create_cancel_shipment_request(self, payload: TrackingRequest) -> Serializable: + return shipment_cancel_request(payload, self.settings) + + def create_tracking_request(self, payload: TrackingRequest) -> Serializable: + return tracking_request(payload, self.settings) + + def parse_rate_response( + self, response: Deserializable[str] + ) -> Tuple[List[RateDetails], List[Message]]: + return parse_rate_response(response.deserialize(), self.settings) + + def parse_shipment_response( + self, response: Deserializable[str] + ) -> Tuple[TrackingDetails, List[Message]]: + return parse_shipment_response(response.deserialize(), self.settings) + + def parse_cancel_shipment_response( + self, response: Deserializable[str] + ) -> Tuple[TrackingDetails, List[Message]]: + return parse_shipment_cancel_response(response.deserialize(), self.settings) + + def parse_tracking_response( + self, response: Deserializable[str] + ) -> Tuple[List[TrackingDetails], List[Message]]: + return parse_tracking_response(response.deserialize(), self.settings) diff --git a/sdk/extensions/dhl_poland/purplship/mappers/dhl_poland/proxy.py b/sdk/extensions/dhl_poland/purplship/mappers/dhl_poland/proxy.py new file mode 100644 index 0000000000..983dc9fc26 --- /dev/null +++ b/sdk/extensions/dhl_poland/purplship/mappers/dhl_poland/proxy.py @@ -0,0 +1,64 @@ +from typing import Any +from purplship.core.utils import ( + Serializable, + Deserializable, + request as http, + XP, +) +from purplship.universal.mappers import Proxy as UniversalProxy +from purplship.core.utils.helpers import exec_async +from purplship.mappers.dhl_poland.settings import Settings +from purplship.api.proxy import Proxy as BaseProxy + + +class Proxy(UniversalProxy, BaseProxy): + settings: Settings + + def _send_request(self, request: Serializable[Any], soapaction: str) -> str: + return http( + url=f"{self.settings.server_url}", + data=bytearray(request.serialize(), "utf-8"), + headers={ + "Content-Type": "text/xml; charset=utf-8", + "soapaction": soapaction, + }, + method="POST", + ) + + def get_rates(self, request: Serializable) -> Deserializable: + return super().get_rates(request) + + def get_tracking(self, requests: Serializable) -> Deserializable: + responses = exec_async( + lambda request: dict( + number=request[0], + data=self._send_request( + Serializable(request[1]), + soapaction=f"{self.settings.server_url}#getTrackAndTraceInfo", + ), + ), + requests.serialize().items(), + ) + + return Deserializable( + responses, + lambda results: { + result["number"]: XP.to_xml(result["data"]) for result in results + }, + ) + + def create_shipment(self, request: Serializable) -> Deserializable[str]: + response = self._send_request( + request, + soapaction=f"{self.settings.server_url}#createShipment", + ) + + return Deserializable(response, XP.to_xml) + + def cancel_shipment(self, request: Serializable) -> Deserializable[str]: + response = self._send_request( + request, + soapaction=f"{self.settings.server_url}#deleteShipment", + ) + + return Deserializable(response, XP.to_xml) diff --git a/sdk/extensions/dhl_poland/purplship/mappers/dhl_poland/settings.py b/sdk/extensions/dhl_poland/purplship/mappers/dhl_poland/settings.py new file mode 100644 index 0000000000..5f8f7a1a23 --- /dev/null +++ b/sdk/extensions/dhl_poland/purplship/mappers/dhl_poland/settings.py @@ -0,0 +1,25 @@ +"""Purplship DHL Parcel Poland client settings.""" + +from typing import List +import attr +from jstruct.types import JList +from purplship.core.models import ServiceLevel +from purplship.universal.mappers import Settings as UniversalSettings +from purplship.providers.dhl_poland.units import DEFAULT_SERVICES +from purplship.providers.dhl_poland.utils import Settings as BaseSettings + + +@attr.s(auto_attribs=True) +class Settings(BaseSettings, UniversalSettings): + """DHL Parcel Poland connection settings.""" + + username: str # type: ignore + password: str # type: ignore + account_number: str = None + + id: str = None + test: bool = False + carrier_id: str = "dhl_poland" + account_country_code: str = "PL" + + services: List[ServiceLevel] = JList[ServiceLevel, False, dict(default=DEFAULT_SERVICES)] # type: ignore diff --git a/sdk/extensions/dhl_poland/purplship/providers/dhl_poland/__init__.py b/sdk/extensions/dhl_poland/purplship/providers/dhl_poland/__init__.py new file mode 100644 index 0000000000..2fffd844a4 --- /dev/null +++ b/sdk/extensions/dhl_poland/purplship/providers/dhl_poland/__init__.py @@ -0,0 +1,11 @@ +from purplship.providers.dhl_poland.utils import Settings +from purplship.providers.dhl_poland.shipment import ( + parse_shipment_cancel_response, + parse_shipment_response, + shipment_cancel_request, + shipment_request, +) +from purplship.providers.dhl_poland.tracking import ( + parse_tracking_response, + tracking_request, +) diff --git a/sdk/extensions/dhl_poland/purplship/providers/dhl_poland/error.py b/sdk/extensions/dhl_poland/purplship/providers/dhl_poland/error.py new file mode 100644 index 0000000000..654db8e8ef --- /dev/null +++ b/sdk/extensions/dhl_poland/purplship/providers/dhl_poland/error.py @@ -0,0 +1,21 @@ +from typing import List +from pysoap.envelope import Fault +from purplship.core.models import Message +from purplship.core.utils import Element, XP +from purplship.providers.dhl_poland.utils import Settings + + +def parse_error_response( + response: Element, settings: Settings, details: dict = None +) -> List[Message]: + errors = XP.find("Fault", response, Fault) + return [ + Message( + carrier_id=settings.carrier_id, + carrier_name=settings.carrier_name, + message=error.faultstring, + code=error.faultcode, + details=details, + ) + for error in errors + ] diff --git a/sdk/extensions/dhl_poland/purplship/providers/dhl_poland/shipment/__init__.py b/sdk/extensions/dhl_poland/purplship/providers/dhl_poland/shipment/__init__.py new file mode 100644 index 0000000000..33279904a0 --- /dev/null +++ b/sdk/extensions/dhl_poland/purplship/providers/dhl_poland/shipment/__init__.py @@ -0,0 +1,8 @@ +from purplship.providers.dhl_poland.shipment.create import ( + parse_shipment_response, + shipment_request, +) +from purplship.providers.dhl_poland.shipment.cancel import ( + parse_shipment_cancel_response, + shipment_cancel_request, +) diff --git a/sdk/extensions/dhl_poland/purplship/providers/dhl_poland/shipment/cancel.py b/sdk/extensions/dhl_poland/purplship/providers/dhl_poland/shipment/cancel.py new file mode 100644 index 0000000000..0203dd9444 --- /dev/null +++ b/sdk/extensions/dhl_poland/purplship/providers/dhl_poland/shipment/cancel.py @@ -0,0 +1,53 @@ +from typing import List, Tuple +from dhl_poland_lib.services import ( + deleteShipment, + DeleteShipmentRequest, +) +from purplship.core.models import ShipmentCancelRequest, ConfirmationDetails, Message +from purplship.core.utils import ( + create_envelope, + Envelope, + Element, + Serializable, +) +from purplship.providers.dhl_poland.error import parse_error_response +from purplship.providers.dhl_poland.utils import Settings + + +def parse_shipment_cancel_response( + response: Element, settings: Settings +) -> Tuple[ConfirmationDetails, List[Message]]: + errors = parse_error_response(response, settings) + success = len(errors) == 0 + confirmation: ConfirmationDetails = ( + ConfirmationDetails( + carrier_id=settings.carrier_id, + carrier_name=settings.carrier_name, + success=success, + operation="Cancel Shipment", + ) + if success + else None + ) + + return confirmation, errors + + +def shipment_cancel_request( + payload: ShipmentCancelRequest, settings: Settings +) -> Serializable[Envelope]: + request = create_envelope( + body_content=deleteShipment( + authData=settings.auth_data, + shipment=DeleteShipmentRequest( + shipmentIdentificationNumber=payload.shipment_identifier + ), + ) + ) + + return Serializable( + request, + lambda request: settings.serialize( + request, "createShipment", settings.server_url + ), + ) diff --git a/sdk/extensions/dhl_poland/purplship/providers/dhl_poland/shipment/create.py b/sdk/extensions/dhl_poland/purplship/providers/dhl_poland/shipment/create.py new file mode 100644 index 0000000000..beaf9666e0 --- /dev/null +++ b/sdk/extensions/dhl_poland/purplship/providers/dhl_poland/shipment/create.py @@ -0,0 +1,320 @@ +import time +from functools import partial +from typing import List, Tuple, Optional +from dhl_poland_lib.services import ( + Address, + Addressat, + ArrayOfCustomsitemdata, + ArrayOfPackage, + ArrayOfService, + Billing, + CreateShipmentRequest, + CustomsAgreementData, + CustomsData, + CustomsItemData, + Package, + PreavisoContact, + ReceiverAddress, + ReceiverAddressat, + Ship, + ShipmentInfo, + ShipmentTime, + createShipment, + Service as DhlService, + CreateShipmentResponse, +) +from purplship.core.models import ( + Message, + Payment, + ShipmentRequest, + ShipmentDetails, +) +from purplship.core.utils import ( + Serializable, + Element, + create_envelope, + XP, + DF, +) +from purplship.core.units import ( + CompleteAddress, + CustomsInfo, + Packages, + Options, + Weight, + WeightUnit, +) +from purplship.providers.dhl_poland.error import parse_error_response +from purplship.providers.dhl_poland.utils import Settings +from purplship.providers.dhl_poland.units import ( + PackagingType, + Option, + Service, + LabelType, + PaymentType, + CustomsContentType, +) + + +def parse_shipment_response( + response: Element, settings: Settings +) -> Tuple[ShipmentDetails, List[Message]]: + errors = parse_error_response(response, settings) + shipment = ( + _extract_details(response, settings) + if XP.find("createShipmentResult", response, first=True) is not None + else None + ) + + return shipment, errors + + +def _extract_details(response: Element, settings: Settings) -> ShipmentDetails: + shipment = XP.find( + "createShipmentResult", response, CreateShipmentResponse, first=True + ) + + return ShipmentDetails( + carrier_id=settings.carrier_id, + carrier_name=settings.carrier_name, + tracking_number=shipment.shipmentNotificationNumber, + shipment_identifier=shipment.shipmentTrackingNumber, + label=shipment.label.labelContent, + meta=dict(invoice=shipment.label.fvProformaContent), + ) + + +def shipment_request(payload: ShipmentRequest, settings: Settings) -> Serializable[str]: + packages = Packages(payload.parcels, required=["weight"]) + shipper = CompleteAddress.map(payload.shipper) + recipient = CompleteAddress.map(payload.recipient) + options = Options(payload.options, Option) + customs = CustomsInfo(payload.customs) + + is_international = shipper.country_code != recipient.country_code + service_type = Service.map(payload.service).value_or_key or ( + Service.dhl_poland_polska.value + if is_international + else Service.dhl_poland_09.value + ) + label_type = LabelType.map(payload.label_type or "PDF").value + payment = payload.payment or Payment() + quantity = len(customs.commodities or []) if customs.is_defined else 1 + + request = create_envelope( + body_content=createShipment( + authData=settings.auth_data, + shipment=CreateShipmentRequest( + shipmentInfo=ShipmentInfo( + wayBill=None, + dropOffType="REGULAR_PICKUP", + serviceType=service_type, + billing=Billing( + shippingPaymentType=PaymentType[payment.paid_by].value, + billingAccountNumber=( + payment.account_number or settings.account_number + ), + paymentType="BANK_TRANSFER", + costsCenter=None, + ), + specialServices=( + ArrayOfService( + item=[ + DhlService( + serviceType=getattr(option, "key", option), + serviceValue=getattr(option, "value", None), + textInstruction=None, + collectOnDeliveryForm=None, + ) + for _, option in options + ] + ) + if any(options) + else None + ), + shipmentTime=( + ShipmentTime( + shipmentDate=( + options.shipment_date or time.strftime("%Y-%m-%d") + ), + shipmentStartHour="10:00", + shipmentEndHour="10:00", + ) + ), + labelType=label_type, + ), + content=payload.parcels[0].content or "N/A", + comment=None, + reference=payload.reference, + ship=Ship( + shipper=Addressat( + preaviso=( + PreavisoContact( + personName=shipper.person_name, + phoneNumber=shipper.phone_number, + emailAddress=shipper.email, + ) + if any( + [ + shipper.person_name, + shipper.phone_number, + shipper.email, + ] + ) + else None + ), + contact=( + PreavisoContact( + personName=shipper.person_name, + phoneNumber=shipper.phone_number, + emailAddress=shipper.email, + ) + if any( + [ + shipper.person_name, + shipper.phone_number, + shipper.email, + ] + ) + else None + ), + address=Address( + name=(shipper.company_name or shipper.person_name), + postalCode=(shipper.postal_code or "").replace("-", ""), + city=shipper.city, + street=shipper.address_line, + houseNumber=(shipper.street_number or "N/A"), + apartmentNumber=shipper.suite, + ), + ), + receiver=ReceiverAddressat( + preaviso=( + PreavisoContact( + personName=recipient.person_name, + phoneNumber=recipient.phone_number, + emailAddress=recipient.email, + ) + if any( + [ + recipient.person_name, + recipient.phone_number, + recipient.email, + ] + ) + else None + ), + contact=( + PreavisoContact( + personName=recipient.person_name, + phoneNumber=recipient.phone_number, + emailAddress=recipient.email, + ) + if any( + [ + recipient.person_name, + recipient.phone_number, + recipient.email, + ] + ) + else None + ), + address=ReceiverAddress( + country=recipient.country_code, + isPackstation=None, + isPostfiliale=None, + postnummer=None, + addressType=("C" if recipient.residential else "B"), + name=(recipient.company_name or recipient.person_name), + postalCode=(recipient.postal_code or "").replace("-", ""), + city=recipient.city, + street=recipient.address_line, + houseNumber=(shipper.street_number or "N/A"), + apartmentNumber=shipper.suite, + ), + ), + neighbour=None, + ), + pieceList=ArrayOfPackage( + item=[ + Package( + type_=PackagingType[ + package.packaging_type or "your_packaging" + ].value, + euroReturn=None, + weight=package.weight.KG, + width=package.width.CM, + height=package.height.CM, + length=package.length.CM, + quantity=quantity, + nonStandard=None, + blpPieceId=None, + ) + for package in packages + ] + ), + customs=( + CustomsData( + customsType="S", + firstName=getattr( + getattr(customs.duty, "bil_to", shipper.company_name), + "company_name", + "N/A", + ), + secondaryName=getattr( + getattr(customs.duty, "bil_to", shipper.person_name), + "person_name", + "N/A", + ), + costsOfShipment=getattr( + customs.duty or options, "declared_value", None + ), + currency=getattr(customs.duty or options, "currency", "EUR"), + nipNr=customs.nip_number, + eoriNr=customs.eori_number, + vatRegistrationNumber=customs.vat_registration_number, + categoryOfItem=CustomsContentType[ + customs.content_type or "other" + ].value, + invoiceNr=customs.invoice, + invoice=None, + invoiceDate=customs.invoice_date, + countryOfOrigin=shipper.country_code, + additionalInfo=None, + grossWeight=packages.weight.KG, + customsItem=( + ArrayOfCustomsitemdata( + item=[ + CustomsItemData( + nameEn=item.description or "N/A", + namePl=item.description or "N/A", + quantity=item.quantity, + weight=Weight( + item.weight, + WeightUnit[item.weight_unit or "KG"], + ).KG, + value=item.value_amount, + tariffCode=item.sku, + ) + for item in customs.commodities + ] + ) + if any(customs.commodities) + else None + ), + customAgreements=CustomsAgreementData( + notExceedValue=True, + notProhibitedGoods=True, + notRestrictedGoods=True, + ), + ) + if customs.is_defined + else None + ), + ), + ) + ) + + return Serializable( + request, + lambda req: settings.serialize(req, "createShipment", settings.server_url), + ) diff --git a/sdk/extensions/dhl_poland/purplship/providers/dhl_poland/tracking.py b/sdk/extensions/dhl_poland/purplship/providers/dhl_poland/tracking.py new file mode 100644 index 0000000000..f0a4fb4942 --- /dev/null +++ b/sdk/extensions/dhl_poland/purplship/providers/dhl_poland/tracking.py @@ -0,0 +1,94 @@ +from typing import List, Tuple, Dict +from dhl_poland_lib.services import ( + getTrackAndTraceInfo, + TrackAndTraceResponse, + TrackAndTraceEvent, +) +from purplship.core.models import ( + Message, + TrackingRequest, + TrackingDetails, + TrackingEvent, +) +from purplship.core.utils import ( + Serializable, + Element, + create_envelope, + Envelope, + DF, + XP, + SF, +) +from purplship.providers.dhl_poland.error import parse_error_response +from purplship.providers.dhl_poland.utils import Settings + + +def parse_tracking_response( + response: Dict[str, Element], settings: Settings +) -> Tuple[List[TrackingDetails], List[Message]]: + details = [ + _extract_tracking_details(node, settings) + for node in response.values() + if XP.find("getTrackAndTraceInfoResult", node, first=True) is not None + ] + errors: List[Message] = sum( + [ + parse_error_response(node, settings, dict(tracking_number=number)) + for number, node in response.items() + if XP.find("Fault", node, first=True) is not None + ], + [], + ) + + return details, errors + + +def _extract_tracking_details(node: Element, settings: Settings) -> TrackingDetails: + track: TrackAndTraceResponse = XP.find( + "getTrackAndTraceInfoResult", node, TrackAndTraceResponse, first=True + ) + events = [XP.build(TrackAndTraceEvent, item) for item in XP.find("item", node)] + + return TrackingDetails( + carrier_name=settings.carrier_name, + carrier_id=settings.carrier_id, + tracking_number=track.shipmentId, + events=[ + TrackingEvent( + date=DF.fdate(event.timestamp, "%Y-%m-%d %H:%M:%S"), + description=event.description, + location=event.terminal, + code=event.status, + time=DF.ftime(event.timestamp, "%Y-%m-%d %H:%M:%S"), + ) + for event in events + ], + delivered=any(track.receivedBy or ""), + ) + + +def tracking_request( + payload: TrackingRequest, settings: Settings +) -> Serializable[Dict[str, Envelope]]: + requests = { + tracking_number: create_envelope( + body_prefix="", + body_content=getTrackAndTraceInfo( + authData=settings.auth_data, + shipmentId=tracking_number, + ), + ) + for tracking_number in payload.tracking_numbers + } + + return Serializable( + requests, + lambda requests: { + number: settings.serialize( + request, + "getTrackAndTraceInfo", + settings.server_url, + ) + for number, request in requests.items() + }, + ) diff --git a/sdk/extensions/dhl_poland/purplship/providers/dhl_poland/units.py b/sdk/extensions/dhl_poland/purplship/providers/dhl_poland/units.py new file mode 100644 index 0000000000..0ebab8528e --- /dev/null +++ b/sdk/extensions/dhl_poland/purplship/providers/dhl_poland/units.py @@ -0,0 +1,126 @@ +from purplship.core.utils import Enum, Flag, Spec +from purplship.core.models import ServiceLevel + + +class CustomsContentType(Flag): + other = "9" + sale_of_goods = "11" + return_of_goods = "21" + gifts = "31" + samples_of_goods = "32" + documents = "91" + + """ Unified Content type mapping """ + gift = gifts + sample = samples_of_goods + merchandise = sale_of_goods + return_merchandise = return_of_goods + + +class LabelType(Flag): + BLP_LABEL = "BLP" + LBLP_LABEL_A4_PDF = "LBLP" + ZBLP_LABEL_ZPL = "ZBLP" + + """ Unified Label type mapping """ + PDF = BLP_LABEL + ZPL = ZBLP_LABEL_ZPL + + +class PaymentType(Flag): + shipper = "SHIPPER" + receiver = "RECEIVER" + user = "USER" + + """ Unified Payment type mapping """ + sender = shipper + recipient = receiver + third_party = user + + +class PackagingType(Flag): + dhl_poland_envelope = "ENVELOPE" + dhl_poland_package = "PACKAGE" + dhl_poland_pallet = "PALLET" + + """ Unified Packaging type mapping """ + envelope = dhl_poland_envelope + pak = dhl_poland_package + tube = dhl_poland_package + pallet = dhl_poland_pallet + small_box = dhl_poland_package + medium_box = dhl_poland_package + large_box = dhl_poland_package + your_packaging = dhl_poland_package + + +class Service(Enum): + dhl_poland_premium = "PR" + dhl_poland_polska = "AH" + dhl_poland_09 = "09" + dhl_poland_12 = "12" + dhl_poland_connect = "EK" + dhl_poland_international = "PI" + + +class Option(Flag): + dhl_poland_delivery_in_18_22_hours = Spec.asKey("1722") + dhl_poland_delivery_on_saturday = Spec.asKey("SATURDAY") + dhl_poland_pickup_on_staturday = Spec.asKey("NAD_SOBOTA") + dhl_poland_insuration = Spec.asKeyVal("UBEZP") + dhl_poland_collect_on_delivery = Spec.asKeyVal("COD") + dhl_poland_information_to_receiver = Spec.asKey("PDI") + dhl_poland_return_of_document = Spec.asKey("ROD") + dhl_poland_proof_of_delivery = Spec.asKey("POD") + dhl_poland_delivery_to_neighbour = Spec.asKey("SAS") + dhl_poland_self_collect = Spec.asKey("ODB") + + """ Unified Option type mapping """ + cash_on_delivery = dhl_poland_collect_on_delivery + insurance = dhl_poland_insuration + + +DEFAULT_SERVICES = [ + ServiceLevel( + service_name="DHL Poland Premium", + service_code="dhl_poland_premium", + cost="0.00", + currency="USD", + domicile=True, + ), + ServiceLevel( + service_name="DHL Poland Polska", + service_code="dhl_poland_polska", + cost="0.00", + currency="USD", + domicile=True, + ), + ServiceLevel( + service_name="DHL Poland 09", + service_code="dhl_poland_09", + cost="0.00", + currency="USD", + domicile=True, + ), + ServiceLevel( + service_name="DHL Poland 12", + service_code="dhl_poland_12", + cost="0.00", + currency="USD", + domicile=True, + ), + ServiceLevel( + service_name="DHL Poland Connect", + service_code="dhl_poland_connect", + cost="0.00", + currency="USD", + international=True, + ), + ServiceLevel( + service_name="DHL Poland International", + service_code="dhl_poland_international", + cost="0.00", + currency="USD", + international=True, + ), +] diff --git a/sdk/extensions/dhl_poland/purplship/providers/dhl_poland/utils.py b/sdk/extensions/dhl_poland/purplship/providers/dhl_poland/utils.py new file mode 100644 index 0000000000..b8a652c84e --- /dev/null +++ b/sdk/extensions/dhl_poland/purplship/providers/dhl_poland/utils.py @@ -0,0 +1,57 @@ +"""Purplship DHL Parcel Poland client settings.""" + +from dhl_poland_lib.services import AuthData +from purplship.core.settings import Settings as BaseSettings +from purplship.core.utils import Envelope, apply_namespaceprefix, XP + + +class Settings(BaseSettings): + """DHL Parcel Poland connection settings.""" + + username: str + password: str + account_number: str = None + + id: str = None + account_country_code: str = "PL" + + @property + def carrier_name(self): + return "dhl_poland" + + @property + def server_url(self): + return ( + "https://sandbox.dhl24.com.pl/webapi2/provider/service.html?ws=1" + if self.test + else "https://dhl24.com.pl/webapi2/provider/service.html?ws=1" + ) + + @property + def auth_data(self): + return AuthData( + username=self.username, + password=self.password, + ) + + @staticmethod + def serialize(envelope: Envelope, request_name: str, namesapce: str) -> str: + namespacedef_ = ( + 'xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"' + f' xmlns="{namesapce}"' + ) + envelope.ns_prefix_ = "soap-env" + envelope.Body.ns_prefix_ = envelope.ns_prefix_ + + apply_namespaceprefix(envelope.Body.anytypeobjs_[0], "") + return ( + XP.export(envelope, namespacedef_=namespacedef_) + .replace( + "<%s:%s" % (envelope.ns_prefix_, request_name), + "<%s%s" % ("", request_name), + ) + .replace( + ""] +license = "Apache-2.0" +readme = "README.md" +packages = [{ include = "purplship" }] +classifiers=[ + "Intended Audience :: Developers", + "Operating System :: OS Independent", + "Programming Language :: Python :: 3", + "License :: OSI Approved :: Apache Software License", +] + +[tool.poetry.dependencies] +python = "^3.7" +"purplship" = "" +"carrier.dhl_poland" = "" + +[tool.poetry.dev-dependencies] + +[build-system] +requires = ["poetry-core>=1.0.0", "setuptools!=50.0"] +build-backend = "poetry.core.masonry.api" diff --git a/sdk/extensions/dhl_poland/setup.py b/sdk/extensions/dhl_poland/setup.py new file mode 100644 index 0000000000..3ef6922cd4 --- /dev/null +++ b/sdk/extensions/dhl_poland/setup.py @@ -0,0 +1,12 @@ +"""Warning: This setup.py is only there for git install until poetry support git subdirectory""" + +from setuptools import setup, find_namespace_packages + +setup( + name="purplship.dhl_poland", + version="0.0.0-dev", + license="LGPLv3", + packages=find_namespace_packages(), + install_requires=["purplship", "carrier.dhl_poland"], + zip_safe=False, +) diff --git a/sdk/extensions/dhl_poland/tests/__init__.py b/sdk/extensions/dhl_poland/tests/__init__.py new file mode 100644 index 0000000000..69634ae64c --- /dev/null +++ b/sdk/extensions/dhl_poland/tests/__init__.py @@ -0,0 +1 @@ +from tests.dhl_poland import * diff --git a/sdk/extensions/dhl_poland/tests/dhl_poland/__init__.py b/sdk/extensions/dhl_poland/tests/dhl_poland/__init__.py new file mode 100644 index 0000000000..abf936e1aa --- /dev/null +++ b/sdk/extensions/dhl_poland/tests/dhl_poland/__init__.py @@ -0,0 +1,3 @@ +from tests.dhl_poland.tracking import * +from tests.dhl_poland.shipment import * +from tests.dhl_poland.rate import * diff --git a/sdk/extensions/dhl_poland/tests/dhl_poland/fixture.py b/sdk/extensions/dhl_poland/tests/dhl_poland/fixture.py new file mode 100644 index 0000000000..5bb98120f6 --- /dev/null +++ b/sdk/extensions/dhl_poland/tests/dhl_poland/fixture.py @@ -0,0 +1,8 @@ +import purplship + +gateway = purplship.gateway["dhl_poland"].create( + dict( + username="username", + password="password", + ) +) diff --git a/sdk/extensions/dhl_poland/tests/dhl_poland/rate.py b/sdk/extensions/dhl_poland/tests/dhl_poland/rate.py new file mode 100644 index 0000000000..96cdbdf170 --- /dev/null +++ b/sdk/extensions/dhl_poland/tests/dhl_poland/rate.py @@ -0,0 +1,84 @@ +import unittest +from unittest.mock import patch +import purplship +from purplship.core.utils import DP, Serializable +from purplship.core.models import RateRequest +from tests.dhl_poland.fixture import gateway + + +class TestDHLPolandRating(unittest.TestCase): + def setUp(self): + self.maxDiff = None + self.RateRequest = RateRequest(**rate_request_data) + + def test_parse_rate_response(self): + with patch("purplship.mappers.dhl_poland.proxy.http") as mock: + parsed_response = ( + purplship.Rating.fetch(self.RateRequest).from_(gateway).parse() + ) + + self.assertListEqual(DP.to_dict(parsed_response), ParsedRateResponse) + + +if __name__ == "__main__": + unittest.main() + + +rate_request_data = { + "shipper": {"postal_code": "00909", "country_code": "PL"}, + "recipient": {"postal_code": "00001", "country_code": "PL"}, + "parcels": [ + { + "height": 3.0, + "length": 5.0, + "width": 3.0, + "weight": 4.0, + "dimension_unit": "IN", + "weight_unit": "LB", + } + ], + "services": [], +} + + +ParsedRateResponse = [ + [ + { + "base_charge": "0.00", + "carrier_id": "dhl_poland", + "carrier_name": "dhl_poland", + "currency": "USD", + "meta": {"service_name": "DHL Poland Premium"}, + "service": "dhl_poland_premium", + "total_charge": "0.00", + }, + { + "base_charge": "0.00", + "carrier_id": "dhl_poland", + "carrier_name": "dhl_poland", + "currency": "USD", + "meta": {"service_name": "DHL Poland Polska"}, + "service": "dhl_poland_polska", + "total_charge": "0.00", + }, + { + "base_charge": "0.00", + "carrier_id": "dhl_poland", + "carrier_name": "dhl_poland", + "currency": "USD", + "meta": {"service_name": "DHL Poland 09"}, + "service": "dhl_poland_09", + "total_charge": "0.00", + }, + { + "base_charge": "0.00", + "carrier_id": "dhl_poland", + "carrier_name": "dhl_poland", + "currency": "USD", + "meta": {"service_name": "DHL Poland 12"}, + "service": "dhl_poland_12", + "total_charge": "0.00", + }, + ], + [], +] diff --git a/sdk/extensions/dhl_poland/tests/dhl_poland/shipment.py b/sdk/extensions/dhl_poland/tests/dhl_poland/shipment.py new file mode 100644 index 0000000000..2358d60580 --- /dev/null +++ b/sdk/extensions/dhl_poland/tests/dhl_poland/shipment.py @@ -0,0 +1,423 @@ +import time +import unittest +from unittest.mock import patch, ANY +import purplship +from purplship.core.utils import DP +from purplship.core.models import ShipmentRequest, ShipmentCancelRequest +from tests.dhl_poland.fixture import gateway + + +class TestDHLPolandShipment(unittest.TestCase): + def setUp(self): + self.maxDiff = None + self.ShipmentRequest = ShipmentRequest(**shipment_data) + self.InternationalShipmentRequest = ShipmentRequest( + **interantional_shipment_data + ) + self.VoidShipmentRequest = ShipmentCancelRequest(**void_shipment_data) + + def test_create_shipment_request(self): + request = gateway.mapper.create_shipment_request(self.ShipmentRequest) + + self.assertEqual(request.serialize(), ShipmentRequestXML) + + def test_create_international_shipment_request(self): + request = gateway.mapper.create_shipment_request( + self.InternationalShipmentRequest + ) + + self.assertEqual(request.serialize(), InternationalShipmentRequestXML) + + def test_create_void_shipment_request(self): + request = gateway.mapper.create_cancel_shipment_request( + self.VoidShipmentRequest + ) + + self.assertEqual(request.serialize(), VoidShipmentRequestXML) + + def test_create_shipment(self): + with patch("purplship.mappers.dhl_poland.proxy.http") as mock: + mock.return_value = "" + purplship.Shipment.create(self.ShipmentRequest).from_(gateway) + + self.assertEqual( + mock.call_args[1]["url"], + gateway.settings.server_url, + ) + self.assertEqual( + mock.call_args[1]["headers"]["soapaction"], + f"{gateway.settings.server_url}#createShipment", + ) + + def test_void_shipment(self): + with patch("purplship.mappers.dhl_poland.proxy.http") as mock: + mock.return_value = "" + purplship.Shipment.cancel(self.VoidShipmentRequest).from_(gateway) + + self.assertEqual( + mock.call_args[1]["url"], + gateway.settings.server_url, + ) + self.assertEqual( + mock.call_args[1]["headers"]["soapaction"], + f"{gateway.settings.server_url}#deleteShipment", + ) + + def test_parse_shipment_response(self): + with patch("purplship.mappers.dhl_poland.proxy.http") as mock: + mock.return_value = ShipmentResponseXML + parsed_response = ( + purplship.Shipment.create(self.ShipmentRequest).from_(gateway).parse() + ) + + self.assertListEqual(DP.to_dict(parsed_response), ParsedShipmentResponse) + + def test_parse_void_shipment_response(self): + with patch("purplship.mappers.dhl_poland.proxy.http") as mock: + mock.return_value = VoidShipmentResponseXML + parsed_response = ( + purplship.Shipment.cancel(self.VoidShipmentRequest) + .from_(gateway) + .parse() + ) + + self.assertListEqual( + DP.to_dict(parsed_response), ParsedVoidShipmentResponse + ) + + +if __name__ == "__main__": + unittest.main() + + +void_shipment_data = {"shipment_identifier": "10000696"} + +shipment_data = { + "shipper": { + "company_name": "Janek", + "person_name": "3e General Partnership", + "address_line1": "9 Lesna", + "city": "Wawa", + "postal_code": "00909", + "country_code": "PL", + "phone_number": "123456789", + "email": "testomir@gmail.pl", + "residential": True, + "extra": {"street_number": "9", "suite": "59"}, + }, + "recipient": { + "company_name": "Me", + "person_name": "3e General Partnership", + "address_line1": "Lesna", + "city": "Wawa", + "postal_code": "00001", + "country_code": "PL", + "phone_number": "123456789", + "email": "testomir@gmail.pl", + "residential": False, + "extra": {"street_number": "9", "suite": "59"}, + }, + "parcels": [ + { + "height": 3, + "length": 10, + "width": 3, + "weight": 1.0, + } + ], + "service": "dhl_poland_polska", + "options": { + "dhl_poland_proof_of_delivery": True, + }, +} + +interantional_shipment_data = { + **shipment_data, + "recipient": { + "company_name": "CGI", + "address_line1": "23 jardin private", + "city": "Ottawa", + "postal_code": "k1k 4t3", + "country_code": "CA", + "person_name": "Jain", + "state_code": "ON", + "phone_number": "1 (450) 823-8432", + "residential": False, + "extra": {"street_number": "23"}, + }, + "customs": { + "duty": {"paid_by": "sender", "declared_value": "100.0"}, + "commodities": [{"weight": "10", "description": "test"}], + "options": {"nip_number": "5218487281"}, + }, +} + +ParsedShipmentResponse = [ + { + "carrier_id": "dhl_poland", + "carrier_name": "dhl_poland", + "label": ANY, + "meta": {"invoice": "string"}, + "shipment_identifier": "string", + "tracking_number": "string", + }, + [], +] + +ParsedVoidShipmentResponse = [ + { + "carrier_id": "dhl_poland", + "carrier_name": "dhl_poland", + "operation": "Cancel Shipment", + "success": True, + }, + [], +] + + +ShipmentRequestXML = f""" + + + + username + password + + + + REGULAR_PICKUP + AH + + SHIPPER + BANK_TRANSFER + + + + POD + + + + {time.strftime("%Y-%m-%d")} + 10:00 + 10:00 + + BLP + + N/A + + + + + 3e General Partnership + 123456789 + testomir@gmail.pl + + + 3e General Partnership + 123456789 + testomir@gmail.pl + +
+ Janek + 00909 + Wawa + 9 Lesna + 9 + 59 +
+
+ + + 3e General Partnership + 123456789 + testomir@gmail.pl + + + 3e General Partnership + 123456789 + testomir@gmail.pl + +
+ PL + B + Me + 00001 + Wawa + Lesna + 9 + 59 +
+
+
+ + + PACKAGE + 0 + 7 + 7 + 25 + 1 + + +
+
+
+
+""" + +InternationalShipmentRequestXML = f""" + + + + username + password + + + + REGULAR_PICKUP + AH + + SHIPPER + BANK_TRANSFER + + + + POD + + + + {time.strftime("%Y-%m-%d")} + 10:00 + 10:00 + + BLP + + N/A + + + + + 3e General Partnership + 123456789 + testomir@gmail.pl + + + 3e General Partnership + 123456789 + testomir@gmail.pl + +
+ Janek + 00909 + Wawa + 9 Lesna + 9 + 59 +
+
+ + + Jain + 1 (450) 823-8432 + + + Jain + 1 (450) 823-8432 + +
+ CA + B + CGI + k1k 4t3 + Ottawa + 23 jardin private + 9 + 59 +
+
+
+ + + PACKAGE + 0 + 7 + 7 + 25 + 1 + + + + S + N/A + N/A + 100.0 + 5218487281 + 9 + PL + 0.45 + + + test + test + 1 + 10.0 + + + + true + true + true + + +
+
+
+
+""" + +ShipmentResponseXML = """ + + + string + string + string + string + + + +""" + +VoidShipmentRequestXML = """ + + + + username + password + + + 10000696 + + + + +""" + +VoidShipmentResponseXML = """ + + + string + 0 + string + + +""" diff --git a/sdk/extensions/dhl_poland/tests/dhl_poland/tracking.py b/sdk/extensions/dhl_poland/tests/dhl_poland/tracking.py new file mode 100644 index 0000000000..931dbb5672 --- /dev/null +++ b/sdk/extensions/dhl_poland/tests/dhl_poland/tracking.py @@ -0,0 +1,148 @@ +import unittest +import logging +from unittest.mock import patch +from purplship.core.utils import DP +from purplship import Tracking +from purplship.core.models import TrackingRequest +from tests.dhl_poland.fixture import gateway + + +class TestDHLPolandTracking(unittest.TestCase): + def setUp(self): + self.maxDiff = None + self.TrackingRequest = TrackingRequest(tracking_numbers=TRACKING_PAYLOAD) + + def test_create_tracking_request(self): + request = gateway.mapper.create_tracking_request(self.TrackingRequest) + + self.assertEqual(request.serialize()[TRACKING_PAYLOAD[0]], TrackingRequestXML) + + def test_get_tracking(self): + with patch("purplship.mappers.dhl_poland.proxy.http") as mock: + mock.return_value = "" + Tracking.fetch(self.TrackingRequest).from_(gateway) + + self.assertEqual( + mock.call_args[1]["url"], + f"{gateway.settings.server_url}", + ) + self.assertEqual( + mock.call_args[1]["headers"]["soapaction"], + f"{gateway.settings.server_url}#getTrackAndTraceInfo", + ) + + def test_parse_tracking_response(self): + with patch("purplship.mappers.dhl_poland.proxy.http") as mock: + mock.return_value = TrackingResponseXML + parsed_response = ( + Tracking.fetch(self.TrackingRequest).from_(gateway).parse() + ) + + self.assertListEqual( + DP.to_dict(parsed_response), DP.to_dict(ParsedTrackingResponse) + ) + + def test_parse_error_response(self): + with patch("purplship.mappers.dhl_poland.proxy.http") as mock: + mock.return_value = ErrorResponseXML + parsed_response = ( + Tracking.fetch(self.TrackingRequest).from_(gateway).parse() + ) + self.assertListEqual( + DP.to_dict(parsed_response), DP.to_dict(ParsedErrorResponse) + ) + + +if __name__ == "__main__": + unittest.main() + +TRACKING_PAYLOAD = ["24333892874"] + +ParsedTrackingResponse = [ + [ + { + "carrier_id": "dhl_poland", + "carrier_name": "dhl_poland", + "delivered": True, + "events": [ + { + "code": "string", + "date": "2012-10-12", + "description": "string", + "location": "string", + "time": "07:40", + }, + { + "code": "string", + "date": "2012-10-12", + "description": "string", + "location": "string", + "time": "06:40", + }, + ], + "tracking_number": "24333892874", + } + ], + [], +] + +ParsedErrorResponse = [ + [], + [ + { + "carrier_id": "dhl_poland", + "carrier_name": "dhl_poland", + "code": "100", + "details": {"tracking_number": "24333892874"}, + "message": "Nieprawidlowe dane autoryzacyjne", + } + ], +] + +TrackingRequestXML = """ + + + + username + password + + 24333892874 + + + +""" + +TrackingResponseXML = """ + + + 24333892874 + string + + + string + string + string + 2012-10-12 07:40:31 + + + string + string + string + 2012-10-12 06:40:31 + + + + +""" + +ErrorResponseXML = """ + + + + 100 + Nieprawidlowe dane autoryzacyjne + + + +""" diff --git a/sdk/extensions/dhl_universal/poetry.lock b/sdk/extensions/dhl_universal/poetry.lock deleted file mode 100644 index 05aa327c8c..0000000000 --- a/sdk/extensions/dhl_universal/poetry.lock +++ /dev/null @@ -1,239 +0,0 @@ -[[package]] -name = "attrs" -version = "21.2.0" -description = "Classes Without Boilerplate" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" - -[package.extras] -dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit"] -docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"] -tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface"] -tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins"] - -[[package]] -name = "carrier.dhl-universal" -version = "2021.2.1" -description = "DHL eCommerce API Schemas Python Data Types library" -category = "main" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -jstruct = "*" - -[[package]] -name = "jstruct" -version = "2020.4.0" -description = "Readable serializable and deserializable Python nested models" -category = "main" -optional = false -python-versions = "*" - -[package.dependencies] -attrs = "*" - -[[package]] -name = "lxml" -version = "4.6.3" -description = "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API." -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*" - -[package.extras] -cssselect = ["cssselect (>=0.7)"] -html5 = ["html5lib"] -htmlsoup = ["beautifulsoup4"] -source = ["Cython (>=0.29.7)"] - -[[package]] -name = "lxml-stubs" -version = "0.1.1" -description = "Type annotations for the lxml package" -category = "main" -optional = false -python-versions = "*" - -[package.extras] -test = ["pytest (>=6.0.0)", "pytest-mypy-plugins (==1.4.0)", "coverage[toml] (==5.2)"] - -[[package]] -name = "phonenumbers" -version = "8.12.28" -description = "Python version of Google's common library for parsing, formatting, storing and validating international phone numbers." -category = "main" -optional = false -python-versions = "*" - -[[package]] -name = "pillow" -version = "8.3.1" -description = "Python Imaging Library (Fork)" -category = "main" -optional = false -python-versions = ">=3.6" - -[[package]] -name = "purplship" -version = "2021.6.2" -description = "Multi-carrier shipping API integration with python" -category = "main" -optional = false -python-versions = ">=3.7,<4.0" - -[package.dependencies] -jstruct = ">=2020.4.0,<2021.0.0" -lxml = ">=4.6.2,<5.0.0" -lxml-stubs = ">=0.1.1,<0.2.0" -phonenumbers = ">=8.12.17,<9.0.0" -Pillow = ">=8.1.0,<9.0.0" -py-soap = ">=2020.3.2,<2021.0.0" -xmltodict = ">=0.12.0,<0.13.0" - -[[package]] -name = "py-soap" -version = "2020.3.2" -description = "SOAP Schemas Python Data Types library" -category = "main" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "six" -version = "1.16.0" -description = "Python 2 and 3 compatibility utilities" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" - -[[package]] -name = "xmltodict" -version = "0.12.0" -description = "Makes working with XML feel like you are working with JSON" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.7" -content-hash = "5fbaf0b85e4dd44813901580a69e5b5386d7f6be8e63629296a85a676dfac471" - -[metadata.files] -attrs = [ - {file = "attrs-21.2.0-py2.py3-none-any.whl", hash = "sha256:149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1"}, - {file = "attrs-21.2.0.tar.gz", hash = "sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"}, -] -"carrier.dhl-universal" = [ - {file = "carrier.dhl_universal-2021.2.1-py3-none-any.whl", hash = "sha256:4e78518ca280fd6a4a99a2ac17f038f4b2735388c949312c9d1c5e814f9db191"}, -] -jstruct = [ - {file = "jstruct-2020.4.0-py3-none-any.whl", hash = "sha256:86257c1332e1ba6983d78e3199fb3dcadaf742e96c3c1a97f3ba322fa241f89c"}, -] -lxml = [ - {file = "lxml-4.6.3-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:df7c53783a46febb0e70f6b05df2ba104610f2fb0d27023409734a3ecbb78fb2"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:1b7584d421d254ab86d4f0b13ec662a9014397678a7c4265a02a6d7c2b18a75f"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:079f3ae844f38982d156efce585bc540c16a926d4436712cf4baee0cce487a3d"}, - {file = "lxml-4.6.3-cp27-cp27m-win32.whl", hash = "sha256:bc4313cbeb0e7a416a488d72f9680fffffc645f8a838bd2193809881c67dd106"}, - {file = "lxml-4.6.3-cp27-cp27m-win_amd64.whl", hash = "sha256:8157dadbb09a34a6bd95a50690595e1fa0af1a99445e2744110e3dca7831c4ee"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:7728e05c35412ba36d3e9795ae8995e3c86958179c9770e65558ec3fdfd3724f"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:4bff24dfeea62f2e56f5bab929b4428ae6caba2d1eea0c2d6eb618e30a71e6d4"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:74f7d8d439b18fa4c385f3f5dfd11144bb87c1da034a466c5b5577d23a1d9b51"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:f90ba11136bfdd25cae3951af8da2e95121c9b9b93727b1b896e3fa105b2f586"}, - {file = "lxml-4.6.3-cp35-cp35m-win32.whl", hash = "sha256:f2380a6376dfa090227b663f9678150ef27543483055cc327555fb592c5967e2"}, - {file = "lxml-4.6.3-cp35-cp35m-win_amd64.whl", hash = "sha256:c4f05c5a7c49d2fb70223d0d5bcfbe474cf928310ac9fa6a7c6dddc831d0b1d4"}, - {file = "lxml-4.6.3-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:d2e35d7bf1c1ac8c538f88d26b396e73dd81440d59c1ef8522e1ea77b345ede4"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:289e9ca1a9287f08daaf796d96e06cb2bc2958891d7911ac7cae1c5f9e1e0ee3"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:bccbfc27563652de7dc9bdc595cb25e90b59c5f8e23e806ed0fd623755b6565d"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:820628b7b3135403540202e60551e741f9b6d3304371712521be939470b454ec"}, - {file = "lxml-4.6.3-cp36-cp36m-win32.whl", hash = "sha256:5a0a14e264069c03e46f926be0d8919f4105c1623d620e7ec0e612a2e9bf1c04"}, - {file = "lxml-4.6.3-cp36-cp36m-win_amd64.whl", hash = "sha256:92e821e43ad382332eade6812e298dc9701c75fe289f2a2d39c7960b43d1e92a"}, - {file = "lxml-4.6.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:efd7a09678fd8b53117f6bae4fa3825e0a22b03ef0a932e070c0bdbb3a35e654"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:efac139c3f0bf4f0939f9375af4b02c5ad83a622de52d6dfa8e438e8e01d0eb0"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:0fbcf5565ac01dff87cbfc0ff323515c823081c5777a9fc7703ff58388c258c3"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:122fba10466c7bd4178b07dba427aa516286b846b2cbd6f6169141917283aae2"}, - {file = "lxml-4.6.3-cp37-cp37m-win32.whl", hash = "sha256:3439c71103ef0e904ea0a1901611863e51f50b5cd5e8654a151740fde5e1cade"}, - {file = "lxml-4.6.3-cp37-cp37m-win_amd64.whl", hash = "sha256:4289728b5e2000a4ad4ab8da6e1db2e093c63c08bdc0414799ee776a3f78da4b"}, - {file = "lxml-4.6.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:b007cbb845b28db4fb8b6a5cdcbf65bacb16a8bd328b53cbc0698688a68e1caa"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_i686.whl", hash = "sha256:76fa7b1362d19f8fbd3e75fe2fb7c79359b0af8747e6f7141c338f0bee2f871a"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:26e761ab5b07adf5f555ee82fb4bfc35bf93750499c6c7614bd64d12aaa67927"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:66e575c62792c3f9ca47cb8b6fab9e35bab91360c783d1606f758761810c9791"}, - {file = "lxml-4.6.3-cp38-cp38-win32.whl", hash = "sha256:89b8b22a5ff72d89d48d0e62abb14340d9e99fd637d046c27b8b257a01ffbe28"}, - {file = "lxml-4.6.3-cp38-cp38-win_amd64.whl", hash = "sha256:2a9d50e69aac3ebee695424f7dbd7b8c6d6eb7de2a2eb6b0f6c7db6aa41e02b7"}, - {file = "lxml-4.6.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:ce256aaa50f6cc9a649c51be3cd4ff142d67295bfc4f490c9134d0f9f6d58ef0"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_i686.whl", hash = "sha256:7610b8c31688f0b1be0ef882889817939490a36d0ee880ea562a4e1399c447a1"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:f8380c03e45cf09f8557bdaa41e1fa7c81f3ae22828e1db470ab2a6c96d8bc23"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:884ab9b29feaca361f7f88d811b1eea9bfca36cf3da27768d28ad45c3ee6f969"}, - {file = "lxml-4.6.3-cp39-cp39-win32.whl", hash = "sha256:33bb934a044cf32157c12bfcfbb6649807da20aa92c062ef51903415c704704f"}, - {file = "lxml-4.6.3-cp39-cp39-win_amd64.whl", hash = "sha256:542d454665a3e277f76954418124d67516c5f88e51a900365ed54a9806122b83"}, - {file = "lxml-4.6.3.tar.gz", hash = "sha256:39b78571b3b30645ac77b95f7c69d1bffc4cf8c3b157c435a34da72e78c82468"}, -] -lxml-stubs = [ - {file = "lxml-stubs-0.1.1.tar.gz", hash = "sha256:9b6a01ba4bccd6e532c01e19d2a3bc6d1d018fa0b9870236f61f315cb7b06648"}, - {file = "lxml_stubs-0.1.1-py3-none-any.whl", hash = "sha256:d34a28be0e2525b0236aff7fe67af1f61911f556cadbc61f09810b69f762b747"}, -] -phonenumbers = [ - {file = "phonenumbers-8.12.28-py2.py3-none-any.whl", hash = "sha256:f8ce05f82955d2faeefe2303350b2ccb7369dd39b6e45231a09475d67eb7e83b"}, - {file = "phonenumbers-8.12.28.tar.gz", hash = "sha256:42ea4f946d5cce0056cbce257842ea6b281e69828ad2e7f27b29d3908e5b06bd"}, -] -pillow = [ - {file = "Pillow-8.3.1-1-cp36-cp36m-win_amd64.whl", hash = "sha256:fd7eef578f5b2200d066db1b50c4aa66410786201669fb76d5238b007918fb24"}, - {file = "Pillow-8.3.1-1-cp37-cp37m-win_amd64.whl", hash = "sha256:75e09042a3b39e0ea61ce37e941221313d51a9c26b8e54e12b3ececccb71718a"}, - {file = "Pillow-8.3.1-1-cp38-cp38-win_amd64.whl", hash = "sha256:c0e0550a404c69aab1e04ae89cca3e2a042b56ab043f7f729d984bf73ed2a093"}, - {file = "Pillow-8.3.1-1-cp39-cp39-win_amd64.whl", hash = "sha256:479ab11cbd69612acefa8286481f65c5dece2002ffaa4f9db62682379ca3bb77"}, - {file = "Pillow-8.3.1-1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:f156d6ecfc747ee111c167f8faf5f4953761b5e66e91a4e6767e548d0f80129c"}, - {file = "Pillow-8.3.1-cp36-cp36m-macosx_10_10_x86_64.whl", hash = "sha256:196560dba4da7a72c5e7085fccc5938ab4075fd37fe8b5468869724109812edd"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:29c9569049d04aaacd690573a0398dbd8e0bf0255684fee512b413c2142ab723"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:c088a000dfdd88c184cc7271bfac8c5b82d9efa8637cd2b68183771e3cf56f04"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:fc214a6b75d2e0ea7745488da7da3c381f41790812988c7a92345978414fad37"}, - {file = "Pillow-8.3.1-cp36-cp36m-win32.whl", hash = "sha256:a17ca41f45cf78c2216ebfab03add7cc350c305c38ff34ef4eef66b7d76c5229"}, - {file = "Pillow-8.3.1-cp36-cp36m-win_amd64.whl", hash = "sha256:67b3666b544b953a2777cb3f5a922e991be73ab32635666ee72e05876b8a92de"}, - {file = "Pillow-8.3.1-cp37-cp37m-macosx_10_10_x86_64.whl", hash = "sha256:ff04c373477723430dce2e9d024c708a047d44cf17166bf16e604b379bf0ca14"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9364c81b252d8348e9cc0cb63e856b8f7c1b340caba6ee7a7a65c968312f7dab"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a2f381932dca2cf775811a008aa3027671ace723b7a38838045b1aee8669fdcf"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:d0da39795049a9afcaadec532e7b669b5ebbb2a9134576ebcc15dd5bdae33cc0"}, - {file = "Pillow-8.3.1-cp37-cp37m-win32.whl", hash = "sha256:2b6dfa068a8b6137da34a4936f5a816aba0ecc967af2feeb32c4393ddd671cba"}, - {file = "Pillow-8.3.1-cp37-cp37m-win_amd64.whl", hash = "sha256:a4eef1ff2d62676deabf076f963eda4da34b51bc0517c70239fafed1d5b51500"}, - {file = "Pillow-8.3.1-cp38-cp38-macosx_10_10_x86_64.whl", hash = "sha256:660a87085925c61a0dcc80efb967512ac34dbb256ff7dd2b9b4ee8dbdab58cf4"}, - {file = "Pillow-8.3.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:15a2808e269a1cf2131930183dcc0419bc77bb73eb54285dde2706ac9939fa8e"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:969cc558cca859cadf24f890fc009e1bce7d7d0386ba7c0478641a60199adf79"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:2ee77c14a0299d0541d26f3d8500bb57e081233e3fa915fa35abd02c51fa7fae"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:c11003197f908878164f0e6da15fce22373ac3fc320cda8c9d16e6bba105b844"}, - {file = "Pillow-8.3.1-cp38-cp38-win32.whl", hash = "sha256:3f08bd8d785204149b5b33e3b5f0ebbfe2190ea58d1a051c578e29e39bfd2367"}, - {file = "Pillow-8.3.1-cp38-cp38-win_amd64.whl", hash = "sha256:70af7d222df0ff81a2da601fab42decb009dc721545ed78549cb96e3a1c5f0c8"}, - {file = "Pillow-8.3.1-cp39-cp39-macosx_10_10_x86_64.whl", hash = "sha256:37730f6e68bdc6a3f02d2079c34c532330d206429f3cee651aab6b66839a9f0e"}, - {file = "Pillow-8.3.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:4bc3c7ef940eeb200ca65bd83005eb3aae8083d47e8fcbf5f0943baa50726856"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c35d09db702f4185ba22bb33ef1751ad49c266534339a5cebeb5159d364f6f82"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:0b2efa07f69dc395d95bb9ef3299f4ca29bcb2157dc615bae0b42c3c20668ffc"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:cc866706d56bd3a7dbf8bac8660c6f6462f2f2b8a49add2ba617bc0c54473d83"}, - {file = "Pillow-8.3.1-cp39-cp39-win32.whl", hash = "sha256:9a211b663cf2314edbdb4cf897beeb5c9ee3810d1d53f0e423f06d6ebbf9cd5d"}, - {file = "Pillow-8.3.1-cp39-cp39-win_amd64.whl", hash = "sha256:c2a5ff58751670292b406b9f06e07ed1446a4b13ffced6b6cab75b857485cbc8"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-macosx_10_10_x86_64.whl", hash = "sha256:c379425c2707078dfb6bfad2430728831d399dc95a7deeb92015eb4c92345eaf"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:114f816e4f73f9ec06997b2fde81a92cbf0777c9e8f462005550eed6bae57e63"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:8960a8a9f4598974e4c2aeb1bff9bdd5db03ee65fd1fce8adf3223721aa2a636"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-macosx_10_10_x86_64.whl", hash = "sha256:147bd9e71fb9dcf08357b4d530b5167941e222a6fd21f869c7911bac40b9994d"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:1fd5066cd343b5db88c048d971994e56b296868766e461b82fa4e22498f34d77"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:f4ebde71785f8bceb39dcd1e7f06bcc5d5c3cf48b9f69ab52636309387b097c8"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:1c03e24be975e2afe70dfc5da6f187eea0b49a68bb2b69db0f30a61b7031cee4"}, - {file = "Pillow-8.3.1.tar.gz", hash = "sha256:2cac53839bfc5cece8fdbe7f084d5e3ee61e1303cccc86511d351adcb9e2c792"}, -] -purplship = [ - {file = "purplship-2021.6.2-py3-none-any.whl", hash = "sha256:ded793b23664a14649f3c08ebbd344f6b58fbbc982d69481242478074ea74ff1"}, -] -py-soap = [ - {file = "py_soap-2020.3.2-py3-none-any.whl", hash = "sha256:61e2ec956d349bdd9d4c6248a2ae3c4cc4b0a2a5cf6b439b6de480a3bc2766a1"}, -] -six = [ - {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"}, - {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"}, -] -xmltodict = [ - {file = "xmltodict-0.12.0-py2.py3-none-any.whl", hash = "sha256:8bbcb45cc982f48b2ca8fe7e7827c5d792f217ecf1792626f808bf41c3b86051"}, - {file = "xmltodict-0.12.0.tar.gz", hash = "sha256:50d8c638ed7ecb88d90561beedbf720c9b4e851a9fa6c47ebd64e99d166d8a21"}, -] diff --git a/sdk/extensions/dhl_universal/purplship/providers/dhl_universal/tracking.py b/sdk/extensions/dhl_universal/purplship/providers/dhl_universal/tracking.py index d18954e759..856ff5380c 100644 --- a/sdk/extensions/dhl_universal/purplship/providers/dhl_universal/tracking.py +++ b/sdk/extensions/dhl_universal/purplship/providers/dhl_universal/tracking.py @@ -1,8 +1,5 @@ from typing import List, Tuple -from dhl_universal_lib.tracking import ( - TrackingRequest as DHLTrackingRequest, - Shipment -) +from dhl_universal_lib.tracking import TrackingRequest as DHLTrackingRequest, Shipment from purplship.core.utils import ( Serializable, DP, @@ -18,11 +15,14 @@ from purplship.providers.dhl_universal.error import parse_error_response -def parse_tracking_response(response: List[dict], settings: Settings) -> Tuple[List[TrackingDetails], List[Message]]: - errors = [e for e in response if 'shipments' not in e] +def parse_tracking_response( + response: List[dict], settings: Settings +) -> Tuple[List[TrackingDetails], List[Message]]: + errors = [e for e in response if "shipments" not in e] details = [ - _extract_detail(DP.to_object(Shipment, d['shipments'][0]), settings) - for d in response if 'shipments' in d + _extract_detail(DP.to_object(Shipment, d["shipments"][0]), settings) + for d in response + if "shipments" in d ] return details, parse_error_response(errors, settings) @@ -32,11 +32,10 @@ def _extract_detail(detail: Shipment, settings: Settings) -> TrackingDetails: return TrackingDetails( carrier_name=settings.carrier_name, carrier_id=settings.carrier_id, - tracking_number=str(detail.id), events=[ TrackingEvent( - date=DF.fdate(event.timestamp, '%Y-%m-%dT%H:%M:%S'), + date=DF.fdate(event.timestamp, "%Y-%m-%dT%H:%M:%S"), description=event.description, location=( event.location.address.addressLocality @@ -44,14 +43,18 @@ def _extract_detail(detail: Shipment, settings: Settings) -> TrackingDetails: else None ), code=event.statusCode, - time=DF.ftime(event.timestamp, '%Y-%m-%dT%H:%M:%S'), - ) for event in detail.events or [] + time=DF.ftime(event.timestamp, "%Y-%m-%dT%H:%M:%S"), + ) + for event in detail.events or [] ], + estimated_delivery=DF.fdate( + detail.estimatedTimeOfDelivery, "%Y-%m-%dT%H:%M:%SZ" + ), delivered=( detail.status.status.lower() == "delivered" - if all([detail.status, detail.status.status]) else - False - ) + if all([detail.status, detail.status.status]) + else False + ), ) diff --git a/sdk/extensions/dhl_universal/pyproject.toml b/sdk/extensions/dhl_universal/pyproject.toml index ec60bfad57..658f110ef7 100644 --- a/sdk/extensions/dhl_universal/pyproject.toml +++ b/sdk/extensions/dhl_universal/pyproject.toml @@ -1,11 +1,11 @@ [tool.poetry] name = "purplship.dhl_universal" -version = "2021.10" -homepage="https://docs.purplship.com" +version = "2021.11" +homepage="https://next.purplship.com/docs/guides/sdk" repository="https://github.com/purplship/purplship" description = "Purplship - DHL Universal Tracking Extension" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [{ include = "purplship" }] classifiers=[ diff --git a/sdk/extensions/dhl_universal/tests/dhl_universal/tracking.py b/sdk/extensions/dhl_universal/tests/dhl_universal/tracking.py index ac06307399..4c8bf589d9 100644 --- a/sdk/extensions/dhl_universal/tests/dhl_universal/tracking.py +++ b/sdk/extensions/dhl_universal/tests/dhl_universal/tracking.py @@ -60,6 +60,7 @@ def test_parse_tracking_error_response(self): "carrier_id": "dhl_universal", "carrier_name": "dhl_universal", "delivered": True, + "estimated_delivery": "2018-08-03", "events": [ { "code": "pre-transit", diff --git a/sdk/extensions/dicom/poetry.lock b/sdk/extensions/dicom/poetry.lock deleted file mode 100644 index 31c68dddde..0000000000 --- a/sdk/extensions/dicom/poetry.lock +++ /dev/null @@ -1,239 +0,0 @@ -[[package]] -name = "attrs" -version = "21.2.0" -description = "Classes Without Boilerplate" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" - -[package.extras] -dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit"] -docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"] -tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface"] -tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins"] - -[[package]] -name = "carrier.dicom" -version = "2021.2.1" -description = "Dicom Web API Schemas Python Data Types library" -category = "main" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -jstruct = "*" - -[[package]] -name = "jstruct" -version = "2020.4.0" -description = "Readable serializable and deserializable Python nested models" -category = "main" -optional = false -python-versions = "*" - -[package.dependencies] -attrs = "*" - -[[package]] -name = "lxml" -version = "4.6.3" -description = "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API." -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*" - -[package.extras] -cssselect = ["cssselect (>=0.7)"] -html5 = ["html5lib"] -htmlsoup = ["beautifulsoup4"] -source = ["Cython (>=0.29.7)"] - -[[package]] -name = "lxml-stubs" -version = "0.1.1" -description = "Type annotations for the lxml package" -category = "main" -optional = false -python-versions = "*" - -[package.extras] -test = ["pytest (>=6.0.0)", "pytest-mypy-plugins (==1.4.0)", "coverage[toml] (==5.2)"] - -[[package]] -name = "phonenumbers" -version = "8.12.28" -description = "Python version of Google's common library for parsing, formatting, storing and validating international phone numbers." -category = "main" -optional = false -python-versions = "*" - -[[package]] -name = "pillow" -version = "8.3.1" -description = "Python Imaging Library (Fork)" -category = "main" -optional = false -python-versions = ">=3.6" - -[[package]] -name = "purplship" -version = "2021.6.2" -description = "Multi-carrier shipping API integration with python" -category = "main" -optional = false -python-versions = ">=3.7,<4.0" - -[package.dependencies] -jstruct = ">=2020.4.0,<2021.0.0" -lxml = ">=4.6.2,<5.0.0" -lxml-stubs = ">=0.1.1,<0.2.0" -phonenumbers = ">=8.12.17,<9.0.0" -Pillow = ">=8.1.0,<9.0.0" -py-soap = ">=2020.3.2,<2021.0.0" -xmltodict = ">=0.12.0,<0.13.0" - -[[package]] -name = "py-soap" -version = "2020.3.2" -description = "SOAP Schemas Python Data Types library" -category = "main" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "six" -version = "1.16.0" -description = "Python 2 and 3 compatibility utilities" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" - -[[package]] -name = "xmltodict" -version = "0.12.0" -description = "Makes working with XML feel like you are working with JSON" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.7" -content-hash = "907e41a621349dc98397418531c5d89f87177e31959a572573918bcc53ed9d39" - -[metadata.files] -attrs = [ - {file = "attrs-21.2.0-py2.py3-none-any.whl", hash = "sha256:149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1"}, - {file = "attrs-21.2.0.tar.gz", hash = "sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"}, -] -"carrier.dicom" = [ - {file = "carrier.dicom-2021.2.1-py3-none-any.whl", hash = "sha256:f118f850aa526dd321f0c8f8a6801848fb0c9d4bb753688bf939dc7b931fd533"}, -] -jstruct = [ - {file = "jstruct-2020.4.0-py3-none-any.whl", hash = "sha256:86257c1332e1ba6983d78e3199fb3dcadaf742e96c3c1a97f3ba322fa241f89c"}, -] -lxml = [ - {file = "lxml-4.6.3-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:df7c53783a46febb0e70f6b05df2ba104610f2fb0d27023409734a3ecbb78fb2"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:1b7584d421d254ab86d4f0b13ec662a9014397678a7c4265a02a6d7c2b18a75f"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:079f3ae844f38982d156efce585bc540c16a926d4436712cf4baee0cce487a3d"}, - {file = "lxml-4.6.3-cp27-cp27m-win32.whl", hash = "sha256:bc4313cbeb0e7a416a488d72f9680fffffc645f8a838bd2193809881c67dd106"}, - {file = "lxml-4.6.3-cp27-cp27m-win_amd64.whl", hash = "sha256:8157dadbb09a34a6bd95a50690595e1fa0af1a99445e2744110e3dca7831c4ee"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:7728e05c35412ba36d3e9795ae8995e3c86958179c9770e65558ec3fdfd3724f"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:4bff24dfeea62f2e56f5bab929b4428ae6caba2d1eea0c2d6eb618e30a71e6d4"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:74f7d8d439b18fa4c385f3f5dfd11144bb87c1da034a466c5b5577d23a1d9b51"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:f90ba11136bfdd25cae3951af8da2e95121c9b9b93727b1b896e3fa105b2f586"}, - {file = "lxml-4.6.3-cp35-cp35m-win32.whl", hash = "sha256:f2380a6376dfa090227b663f9678150ef27543483055cc327555fb592c5967e2"}, - {file = "lxml-4.6.3-cp35-cp35m-win_amd64.whl", hash = "sha256:c4f05c5a7c49d2fb70223d0d5bcfbe474cf928310ac9fa6a7c6dddc831d0b1d4"}, - {file = "lxml-4.6.3-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:d2e35d7bf1c1ac8c538f88d26b396e73dd81440d59c1ef8522e1ea77b345ede4"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:289e9ca1a9287f08daaf796d96e06cb2bc2958891d7911ac7cae1c5f9e1e0ee3"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:bccbfc27563652de7dc9bdc595cb25e90b59c5f8e23e806ed0fd623755b6565d"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:820628b7b3135403540202e60551e741f9b6d3304371712521be939470b454ec"}, - {file = "lxml-4.6.3-cp36-cp36m-win32.whl", hash = "sha256:5a0a14e264069c03e46f926be0d8919f4105c1623d620e7ec0e612a2e9bf1c04"}, - {file = "lxml-4.6.3-cp36-cp36m-win_amd64.whl", hash = "sha256:92e821e43ad382332eade6812e298dc9701c75fe289f2a2d39c7960b43d1e92a"}, - {file = "lxml-4.6.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:efd7a09678fd8b53117f6bae4fa3825e0a22b03ef0a932e070c0bdbb3a35e654"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:efac139c3f0bf4f0939f9375af4b02c5ad83a622de52d6dfa8e438e8e01d0eb0"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:0fbcf5565ac01dff87cbfc0ff323515c823081c5777a9fc7703ff58388c258c3"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:122fba10466c7bd4178b07dba427aa516286b846b2cbd6f6169141917283aae2"}, - {file = "lxml-4.6.3-cp37-cp37m-win32.whl", hash = "sha256:3439c71103ef0e904ea0a1901611863e51f50b5cd5e8654a151740fde5e1cade"}, - {file = "lxml-4.6.3-cp37-cp37m-win_amd64.whl", hash = "sha256:4289728b5e2000a4ad4ab8da6e1db2e093c63c08bdc0414799ee776a3f78da4b"}, - {file = "lxml-4.6.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:b007cbb845b28db4fb8b6a5cdcbf65bacb16a8bd328b53cbc0698688a68e1caa"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_i686.whl", hash = "sha256:76fa7b1362d19f8fbd3e75fe2fb7c79359b0af8747e6f7141c338f0bee2f871a"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:26e761ab5b07adf5f555ee82fb4bfc35bf93750499c6c7614bd64d12aaa67927"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:66e575c62792c3f9ca47cb8b6fab9e35bab91360c783d1606f758761810c9791"}, - {file = "lxml-4.6.3-cp38-cp38-win32.whl", hash = "sha256:89b8b22a5ff72d89d48d0e62abb14340d9e99fd637d046c27b8b257a01ffbe28"}, - {file = "lxml-4.6.3-cp38-cp38-win_amd64.whl", hash = "sha256:2a9d50e69aac3ebee695424f7dbd7b8c6d6eb7de2a2eb6b0f6c7db6aa41e02b7"}, - {file = "lxml-4.6.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:ce256aaa50f6cc9a649c51be3cd4ff142d67295bfc4f490c9134d0f9f6d58ef0"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_i686.whl", hash = "sha256:7610b8c31688f0b1be0ef882889817939490a36d0ee880ea562a4e1399c447a1"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:f8380c03e45cf09f8557bdaa41e1fa7c81f3ae22828e1db470ab2a6c96d8bc23"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:884ab9b29feaca361f7f88d811b1eea9bfca36cf3da27768d28ad45c3ee6f969"}, - {file = "lxml-4.6.3-cp39-cp39-win32.whl", hash = "sha256:33bb934a044cf32157c12bfcfbb6649807da20aa92c062ef51903415c704704f"}, - {file = "lxml-4.6.3-cp39-cp39-win_amd64.whl", hash = "sha256:542d454665a3e277f76954418124d67516c5f88e51a900365ed54a9806122b83"}, - {file = "lxml-4.6.3.tar.gz", hash = "sha256:39b78571b3b30645ac77b95f7c69d1bffc4cf8c3b157c435a34da72e78c82468"}, -] -lxml-stubs = [ - {file = "lxml-stubs-0.1.1.tar.gz", hash = "sha256:9b6a01ba4bccd6e532c01e19d2a3bc6d1d018fa0b9870236f61f315cb7b06648"}, - {file = "lxml_stubs-0.1.1-py3-none-any.whl", hash = "sha256:d34a28be0e2525b0236aff7fe67af1f61911f556cadbc61f09810b69f762b747"}, -] -phonenumbers = [ - {file = "phonenumbers-8.12.28-py2.py3-none-any.whl", hash = "sha256:f8ce05f82955d2faeefe2303350b2ccb7369dd39b6e45231a09475d67eb7e83b"}, - {file = "phonenumbers-8.12.28.tar.gz", hash = "sha256:42ea4f946d5cce0056cbce257842ea6b281e69828ad2e7f27b29d3908e5b06bd"}, -] -pillow = [ - {file = "Pillow-8.3.1-1-cp36-cp36m-win_amd64.whl", hash = "sha256:fd7eef578f5b2200d066db1b50c4aa66410786201669fb76d5238b007918fb24"}, - {file = "Pillow-8.3.1-1-cp37-cp37m-win_amd64.whl", hash = "sha256:75e09042a3b39e0ea61ce37e941221313d51a9c26b8e54e12b3ececccb71718a"}, - {file = "Pillow-8.3.1-1-cp38-cp38-win_amd64.whl", hash = "sha256:c0e0550a404c69aab1e04ae89cca3e2a042b56ab043f7f729d984bf73ed2a093"}, - {file = "Pillow-8.3.1-1-cp39-cp39-win_amd64.whl", hash = "sha256:479ab11cbd69612acefa8286481f65c5dece2002ffaa4f9db62682379ca3bb77"}, - {file = "Pillow-8.3.1-1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:f156d6ecfc747ee111c167f8faf5f4953761b5e66e91a4e6767e548d0f80129c"}, - {file = "Pillow-8.3.1-cp36-cp36m-macosx_10_10_x86_64.whl", hash = "sha256:196560dba4da7a72c5e7085fccc5938ab4075fd37fe8b5468869724109812edd"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:29c9569049d04aaacd690573a0398dbd8e0bf0255684fee512b413c2142ab723"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:c088a000dfdd88c184cc7271bfac8c5b82d9efa8637cd2b68183771e3cf56f04"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:fc214a6b75d2e0ea7745488da7da3c381f41790812988c7a92345978414fad37"}, - {file = "Pillow-8.3.1-cp36-cp36m-win32.whl", hash = "sha256:a17ca41f45cf78c2216ebfab03add7cc350c305c38ff34ef4eef66b7d76c5229"}, - {file = "Pillow-8.3.1-cp36-cp36m-win_amd64.whl", hash = "sha256:67b3666b544b953a2777cb3f5a922e991be73ab32635666ee72e05876b8a92de"}, - {file = "Pillow-8.3.1-cp37-cp37m-macosx_10_10_x86_64.whl", hash = "sha256:ff04c373477723430dce2e9d024c708a047d44cf17166bf16e604b379bf0ca14"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9364c81b252d8348e9cc0cb63e856b8f7c1b340caba6ee7a7a65c968312f7dab"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a2f381932dca2cf775811a008aa3027671ace723b7a38838045b1aee8669fdcf"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:d0da39795049a9afcaadec532e7b669b5ebbb2a9134576ebcc15dd5bdae33cc0"}, - {file = "Pillow-8.3.1-cp37-cp37m-win32.whl", hash = "sha256:2b6dfa068a8b6137da34a4936f5a816aba0ecc967af2feeb32c4393ddd671cba"}, - {file = "Pillow-8.3.1-cp37-cp37m-win_amd64.whl", hash = "sha256:a4eef1ff2d62676deabf076f963eda4da34b51bc0517c70239fafed1d5b51500"}, - {file = "Pillow-8.3.1-cp38-cp38-macosx_10_10_x86_64.whl", hash = "sha256:660a87085925c61a0dcc80efb967512ac34dbb256ff7dd2b9b4ee8dbdab58cf4"}, - {file = "Pillow-8.3.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:15a2808e269a1cf2131930183dcc0419bc77bb73eb54285dde2706ac9939fa8e"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:969cc558cca859cadf24f890fc009e1bce7d7d0386ba7c0478641a60199adf79"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:2ee77c14a0299d0541d26f3d8500bb57e081233e3fa915fa35abd02c51fa7fae"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:c11003197f908878164f0e6da15fce22373ac3fc320cda8c9d16e6bba105b844"}, - {file = "Pillow-8.3.1-cp38-cp38-win32.whl", hash = "sha256:3f08bd8d785204149b5b33e3b5f0ebbfe2190ea58d1a051c578e29e39bfd2367"}, - {file = "Pillow-8.3.1-cp38-cp38-win_amd64.whl", hash = "sha256:70af7d222df0ff81a2da601fab42decb009dc721545ed78549cb96e3a1c5f0c8"}, - {file = "Pillow-8.3.1-cp39-cp39-macosx_10_10_x86_64.whl", hash = "sha256:37730f6e68bdc6a3f02d2079c34c532330d206429f3cee651aab6b66839a9f0e"}, - {file = "Pillow-8.3.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:4bc3c7ef940eeb200ca65bd83005eb3aae8083d47e8fcbf5f0943baa50726856"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c35d09db702f4185ba22bb33ef1751ad49c266534339a5cebeb5159d364f6f82"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:0b2efa07f69dc395d95bb9ef3299f4ca29bcb2157dc615bae0b42c3c20668ffc"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:cc866706d56bd3a7dbf8bac8660c6f6462f2f2b8a49add2ba617bc0c54473d83"}, - {file = "Pillow-8.3.1-cp39-cp39-win32.whl", hash = "sha256:9a211b663cf2314edbdb4cf897beeb5c9ee3810d1d53f0e423f06d6ebbf9cd5d"}, - {file = "Pillow-8.3.1-cp39-cp39-win_amd64.whl", hash = "sha256:c2a5ff58751670292b406b9f06e07ed1446a4b13ffced6b6cab75b857485cbc8"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-macosx_10_10_x86_64.whl", hash = "sha256:c379425c2707078dfb6bfad2430728831d399dc95a7deeb92015eb4c92345eaf"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:114f816e4f73f9ec06997b2fde81a92cbf0777c9e8f462005550eed6bae57e63"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:8960a8a9f4598974e4c2aeb1bff9bdd5db03ee65fd1fce8adf3223721aa2a636"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-macosx_10_10_x86_64.whl", hash = "sha256:147bd9e71fb9dcf08357b4d530b5167941e222a6fd21f869c7911bac40b9994d"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:1fd5066cd343b5db88c048d971994e56b296868766e461b82fa4e22498f34d77"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:f4ebde71785f8bceb39dcd1e7f06bcc5d5c3cf48b9f69ab52636309387b097c8"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:1c03e24be975e2afe70dfc5da6f187eea0b49a68bb2b69db0f30a61b7031cee4"}, - {file = "Pillow-8.3.1.tar.gz", hash = "sha256:2cac53839bfc5cece8fdbe7f084d5e3ee61e1303cccc86511d351adcb9e2c792"}, -] -purplship = [ - {file = "purplship-2021.6.2-py3-none-any.whl", hash = "sha256:ded793b23664a14649f3c08ebbd344f6b58fbbc982d69481242478074ea74ff1"}, -] -py-soap = [ - {file = "py_soap-2020.3.2-py3-none-any.whl", hash = "sha256:61e2ec956d349bdd9d4c6248a2ae3c4cc4b0a2a5cf6b439b6de480a3bc2766a1"}, -] -six = [ - {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"}, - {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"}, -] -xmltodict = [ - {file = "xmltodict-0.12.0-py2.py3-none-any.whl", hash = "sha256:8bbcb45cc982f48b2ca8fe7e7827c5d792f217ecf1792626f808bf41c3b86051"}, - {file = "xmltodict-0.12.0.tar.gz", hash = "sha256:50d8c638ed7ecb88d90561beedbf720c9b4e851a9fa6c47ebd64e99d166d8a21"}, -] diff --git a/sdk/extensions/dicom/pyproject.toml b/sdk/extensions/dicom/pyproject.toml index bb7f02ccc7..f134b01c5d 100644 --- a/sdk/extensions/dicom/pyproject.toml +++ b/sdk/extensions/dicom/pyproject.toml @@ -1,11 +1,11 @@ [tool.poetry] name = "purplship.dicom" version = "2021.10" -homepage="https://docs.purplship.com" +homepage="https://next.purplship.com/docs/guides/sdk" repository="https://github.com/purplship/purplship" description = "Purplship - Dicom Shipping Extension" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [{ include = "purplship" }] classifiers=[ diff --git a/sdk/extensions/fedex/poetry.lock b/sdk/extensions/fedex/poetry.lock deleted file mode 100644 index f1ac15f186..0000000000 --- a/sdk/extensions/fedex/poetry.lock +++ /dev/null @@ -1,240 +0,0 @@ -[[package]] -name = "attrs" -version = "21.2.0" -description = "Classes Without Boilerplate" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" - -[package.extras] -dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit"] -docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"] -tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface"] -tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins"] - -[[package]] -name = "carrier.fedex" -version = "2021.4" -description = "FedEx Web API Schemas Python Data Types library" -category = "main" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "jstruct" -version = "2020.4.0" -description = "Readable serializable and deserializable Python nested models" -category = "main" -optional = false -python-versions = "*" - -[package.dependencies] -attrs = "*" - -[[package]] -name = "lxml" -version = "4.6.3" -description = "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API." -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*" - -[package.extras] -cssselect = ["cssselect (>=0.7)"] -html5 = ["html5lib"] -htmlsoup = ["beautifulsoup4"] -source = ["Cython (>=0.29.7)"] - -[[package]] -name = "lxml-stubs" -version = "0.1.1" -description = "Type annotations for the lxml package" -category = "main" -optional = false -python-versions = "*" - -[package.extras] -test = ["pytest (>=6.0.0)", "pytest-mypy-plugins (==1.4.0)", "coverage[toml] (==5.2)"] - -[[package]] -name = "phonenumbers" -version = "8.12.28" -description = "Python version of Google's common library for parsing, formatting, storing and validating international phone numbers." -category = "main" -optional = false -python-versions = "*" - -[[package]] -name = "pillow" -version = "8.3.1" -description = "Python Imaging Library (Fork)" -category = "main" -optional = false -python-versions = ">=3.6" - -[[package]] -name = "purplship" -version = "2021.6.2" -description = "Multi-carrier shipping API integration with python" -category = "main" -optional = false -python-versions = ">=3.7,<4.0" - -[package.dependencies] -jstruct = ">=2020.4.0,<2021.0.0" -lxml = ">=4.6.2,<5.0.0" -lxml-stubs = ">=0.1.1,<0.2.0" -phonenumbers = ">=8.12.17,<9.0.0" -Pillow = ">=8.1.0,<9.0.0" -py-soap = ">=2020.3.2,<2021.0.0" -xmltodict = ">=0.12.0,<0.13.0" - -[[package]] -name = "py-soap" -version = "2020.3.2" -description = "SOAP Schemas Python Data Types library" -category = "main" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "six" -version = "1.16.0" -description = "Python 2 and 3 compatibility utilities" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" - -[[package]] -name = "xmltodict" -version = "0.12.0" -description = "Makes working with XML feel like you are working with JSON" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.7" -content-hash = "1b191e9b15b8cd0e8d7a720538f2531901205900f9d9a0ebc57f0f19446e1ba5" - -[metadata.files] -attrs = [ - {file = "attrs-21.2.0-py2.py3-none-any.whl", hash = "sha256:149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1"}, - {file = "attrs-21.2.0.tar.gz", hash = "sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"}, -] -"carrier.fedex" = [ - {file = "carrier.fedex-2021.4-py3-none-any.whl", hash = "sha256:9894a1bc5dc7bf81ff73202b881c1bc18eea347af37c6c42a1462284dee1999e"}, -] -jstruct = [ - {file = "jstruct-2020.4.0-py3-none-any.whl", hash = "sha256:86257c1332e1ba6983d78e3199fb3dcadaf742e96c3c1a97f3ba322fa241f89c"}, -] -lxml = [ - {file = "lxml-4.6.3-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:df7c53783a46febb0e70f6b05df2ba104610f2fb0d27023409734a3ecbb78fb2"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:1b7584d421d254ab86d4f0b13ec662a9014397678a7c4265a02a6d7c2b18a75f"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:079f3ae844f38982d156efce585bc540c16a926d4436712cf4baee0cce487a3d"}, - {file = "lxml-4.6.3-cp27-cp27m-win32.whl", hash = "sha256:bc4313cbeb0e7a416a488d72f9680fffffc645f8a838bd2193809881c67dd106"}, - {file = "lxml-4.6.3-cp27-cp27m-win_amd64.whl", hash = "sha256:8157dadbb09a34a6bd95a50690595e1fa0af1a99445e2744110e3dca7831c4ee"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:7728e05c35412ba36d3e9795ae8995e3c86958179c9770e65558ec3fdfd3724f"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:4bff24dfeea62f2e56f5bab929b4428ae6caba2d1eea0c2d6eb618e30a71e6d4"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:74f7d8d439b18fa4c385f3f5dfd11144bb87c1da034a466c5b5577d23a1d9b51"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:f90ba11136bfdd25cae3951af8da2e95121c9b9b93727b1b896e3fa105b2f586"}, - {file = "lxml-4.6.3-cp35-cp35m-win32.whl", hash = "sha256:f2380a6376dfa090227b663f9678150ef27543483055cc327555fb592c5967e2"}, - {file = "lxml-4.6.3-cp35-cp35m-win_amd64.whl", hash = "sha256:c4f05c5a7c49d2fb70223d0d5bcfbe474cf928310ac9fa6a7c6dddc831d0b1d4"}, - {file = "lxml-4.6.3-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:d2e35d7bf1c1ac8c538f88d26b396e73dd81440d59c1ef8522e1ea77b345ede4"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:289e9ca1a9287f08daaf796d96e06cb2bc2958891d7911ac7cae1c5f9e1e0ee3"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:bccbfc27563652de7dc9bdc595cb25e90b59c5f8e23e806ed0fd623755b6565d"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:820628b7b3135403540202e60551e741f9b6d3304371712521be939470b454ec"}, - {file = "lxml-4.6.3-cp36-cp36m-win32.whl", hash = "sha256:5a0a14e264069c03e46f926be0d8919f4105c1623d620e7ec0e612a2e9bf1c04"}, - {file = "lxml-4.6.3-cp36-cp36m-win_amd64.whl", hash = "sha256:92e821e43ad382332eade6812e298dc9701c75fe289f2a2d39c7960b43d1e92a"}, - {file = "lxml-4.6.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:efd7a09678fd8b53117f6bae4fa3825e0a22b03ef0a932e070c0bdbb3a35e654"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:efac139c3f0bf4f0939f9375af4b02c5ad83a622de52d6dfa8e438e8e01d0eb0"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:0fbcf5565ac01dff87cbfc0ff323515c823081c5777a9fc7703ff58388c258c3"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:122fba10466c7bd4178b07dba427aa516286b846b2cbd6f6169141917283aae2"}, - {file = "lxml-4.6.3-cp37-cp37m-win32.whl", hash = "sha256:3439c71103ef0e904ea0a1901611863e51f50b5cd5e8654a151740fde5e1cade"}, - {file = "lxml-4.6.3-cp37-cp37m-win_amd64.whl", hash = "sha256:4289728b5e2000a4ad4ab8da6e1db2e093c63c08bdc0414799ee776a3f78da4b"}, - {file = "lxml-4.6.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:b007cbb845b28db4fb8b6a5cdcbf65bacb16a8bd328b53cbc0698688a68e1caa"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_i686.whl", hash = "sha256:76fa7b1362d19f8fbd3e75fe2fb7c79359b0af8747e6f7141c338f0bee2f871a"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:26e761ab5b07adf5f555ee82fb4bfc35bf93750499c6c7614bd64d12aaa67927"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:66e575c62792c3f9ca47cb8b6fab9e35bab91360c783d1606f758761810c9791"}, - {file = "lxml-4.6.3-cp38-cp38-win32.whl", hash = "sha256:89b8b22a5ff72d89d48d0e62abb14340d9e99fd637d046c27b8b257a01ffbe28"}, - {file = "lxml-4.6.3-cp38-cp38-win_amd64.whl", hash = "sha256:2a9d50e69aac3ebee695424f7dbd7b8c6d6eb7de2a2eb6b0f6c7db6aa41e02b7"}, - {file = "lxml-4.6.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:ce256aaa50f6cc9a649c51be3cd4ff142d67295bfc4f490c9134d0f9f6d58ef0"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_i686.whl", hash = "sha256:7610b8c31688f0b1be0ef882889817939490a36d0ee880ea562a4e1399c447a1"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:f8380c03e45cf09f8557bdaa41e1fa7c81f3ae22828e1db470ab2a6c96d8bc23"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:884ab9b29feaca361f7f88d811b1eea9bfca36cf3da27768d28ad45c3ee6f969"}, - {file = "lxml-4.6.3-cp39-cp39-win32.whl", hash = "sha256:33bb934a044cf32157c12bfcfbb6649807da20aa92c062ef51903415c704704f"}, - {file = "lxml-4.6.3-cp39-cp39-win_amd64.whl", hash = "sha256:542d454665a3e277f76954418124d67516c5f88e51a900365ed54a9806122b83"}, - {file = "lxml-4.6.3.tar.gz", hash = "sha256:39b78571b3b30645ac77b95f7c69d1bffc4cf8c3b157c435a34da72e78c82468"}, -] -lxml-stubs = [ - {file = "lxml-stubs-0.1.1.tar.gz", hash = "sha256:9b6a01ba4bccd6e532c01e19d2a3bc6d1d018fa0b9870236f61f315cb7b06648"}, - {file = "lxml_stubs-0.1.1-py3-none-any.whl", hash = "sha256:d34a28be0e2525b0236aff7fe67af1f61911f556cadbc61f09810b69f762b747"}, -] -phonenumbers = [ - {file = "phonenumbers-8.12.28-py2.py3-none-any.whl", hash = "sha256:f8ce05f82955d2faeefe2303350b2ccb7369dd39b6e45231a09475d67eb7e83b"}, - {file = "phonenumbers-8.12.28.tar.gz", hash = "sha256:42ea4f946d5cce0056cbce257842ea6b281e69828ad2e7f27b29d3908e5b06bd"}, -] -pillow = [ - {file = "Pillow-8.3.1-1-cp36-cp36m-win_amd64.whl", hash = "sha256:fd7eef578f5b2200d066db1b50c4aa66410786201669fb76d5238b007918fb24"}, - {file = "Pillow-8.3.1-1-cp37-cp37m-win_amd64.whl", hash = "sha256:75e09042a3b39e0ea61ce37e941221313d51a9c26b8e54e12b3ececccb71718a"}, - {file = "Pillow-8.3.1-1-cp38-cp38-win_amd64.whl", hash = "sha256:c0e0550a404c69aab1e04ae89cca3e2a042b56ab043f7f729d984bf73ed2a093"}, - {file = "Pillow-8.3.1-1-cp39-cp39-win_amd64.whl", hash = "sha256:479ab11cbd69612acefa8286481f65c5dece2002ffaa4f9db62682379ca3bb77"}, - {file = "Pillow-8.3.1-1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:f156d6ecfc747ee111c167f8faf5f4953761b5e66e91a4e6767e548d0f80129c"}, - {file = "Pillow-8.3.1-cp36-cp36m-macosx_10_10_x86_64.whl", hash = "sha256:196560dba4da7a72c5e7085fccc5938ab4075fd37fe8b5468869724109812edd"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:29c9569049d04aaacd690573a0398dbd8e0bf0255684fee512b413c2142ab723"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:c088a000dfdd88c184cc7271bfac8c5b82d9efa8637cd2b68183771e3cf56f04"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:fc214a6b75d2e0ea7745488da7da3c381f41790812988c7a92345978414fad37"}, - {file = "Pillow-8.3.1-cp36-cp36m-win32.whl", hash = "sha256:a17ca41f45cf78c2216ebfab03add7cc350c305c38ff34ef4eef66b7d76c5229"}, - {file = "Pillow-8.3.1-cp36-cp36m-win_amd64.whl", hash = "sha256:67b3666b544b953a2777cb3f5a922e991be73ab32635666ee72e05876b8a92de"}, - {file = "Pillow-8.3.1-cp37-cp37m-macosx_10_10_x86_64.whl", hash = "sha256:ff04c373477723430dce2e9d024c708a047d44cf17166bf16e604b379bf0ca14"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9364c81b252d8348e9cc0cb63e856b8f7c1b340caba6ee7a7a65c968312f7dab"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a2f381932dca2cf775811a008aa3027671ace723b7a38838045b1aee8669fdcf"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:d0da39795049a9afcaadec532e7b669b5ebbb2a9134576ebcc15dd5bdae33cc0"}, - {file = "Pillow-8.3.1-cp37-cp37m-win32.whl", hash = "sha256:2b6dfa068a8b6137da34a4936f5a816aba0ecc967af2feeb32c4393ddd671cba"}, - {file = "Pillow-8.3.1-cp37-cp37m-win_amd64.whl", hash = "sha256:a4eef1ff2d62676deabf076f963eda4da34b51bc0517c70239fafed1d5b51500"}, - {file = "Pillow-8.3.1-cp38-cp38-macosx_10_10_x86_64.whl", hash = "sha256:660a87085925c61a0dcc80efb967512ac34dbb256ff7dd2b9b4ee8dbdab58cf4"}, - {file = "Pillow-8.3.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:15a2808e269a1cf2131930183dcc0419bc77bb73eb54285dde2706ac9939fa8e"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:969cc558cca859cadf24f890fc009e1bce7d7d0386ba7c0478641a60199adf79"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:2ee77c14a0299d0541d26f3d8500bb57e081233e3fa915fa35abd02c51fa7fae"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:c11003197f908878164f0e6da15fce22373ac3fc320cda8c9d16e6bba105b844"}, - {file = "Pillow-8.3.1-cp38-cp38-win32.whl", hash = "sha256:3f08bd8d785204149b5b33e3b5f0ebbfe2190ea58d1a051c578e29e39bfd2367"}, - {file = "Pillow-8.3.1-cp38-cp38-win_amd64.whl", hash = "sha256:70af7d222df0ff81a2da601fab42decb009dc721545ed78549cb96e3a1c5f0c8"}, - {file = "Pillow-8.3.1-cp39-cp39-macosx_10_10_x86_64.whl", hash = "sha256:37730f6e68bdc6a3f02d2079c34c532330d206429f3cee651aab6b66839a9f0e"}, - {file = "Pillow-8.3.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:4bc3c7ef940eeb200ca65bd83005eb3aae8083d47e8fcbf5f0943baa50726856"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c35d09db702f4185ba22bb33ef1751ad49c266534339a5cebeb5159d364f6f82"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:0b2efa07f69dc395d95bb9ef3299f4ca29bcb2157dc615bae0b42c3c20668ffc"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:cc866706d56bd3a7dbf8bac8660c6f6462f2f2b8a49add2ba617bc0c54473d83"}, - {file = "Pillow-8.3.1-cp39-cp39-win32.whl", hash = "sha256:9a211b663cf2314edbdb4cf897beeb5c9ee3810d1d53f0e423f06d6ebbf9cd5d"}, - {file = "Pillow-8.3.1-cp39-cp39-win_amd64.whl", hash = "sha256:c2a5ff58751670292b406b9f06e07ed1446a4b13ffced6b6cab75b857485cbc8"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-macosx_10_10_x86_64.whl", hash = "sha256:c379425c2707078dfb6bfad2430728831d399dc95a7deeb92015eb4c92345eaf"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:114f816e4f73f9ec06997b2fde81a92cbf0777c9e8f462005550eed6bae57e63"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:8960a8a9f4598974e4c2aeb1bff9bdd5db03ee65fd1fce8adf3223721aa2a636"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-macosx_10_10_x86_64.whl", hash = "sha256:147bd9e71fb9dcf08357b4d530b5167941e222a6fd21f869c7911bac40b9994d"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:1fd5066cd343b5db88c048d971994e56b296868766e461b82fa4e22498f34d77"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:f4ebde71785f8bceb39dcd1e7f06bcc5d5c3cf48b9f69ab52636309387b097c8"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:1c03e24be975e2afe70dfc5da6f187eea0b49a68bb2b69db0f30a61b7031cee4"}, - {file = "Pillow-8.3.1.tar.gz", hash = "sha256:2cac53839bfc5cece8fdbe7f084d5e3ee61e1303cccc86511d351adcb9e2c792"}, -] -purplship = [ - {file = "purplship-2021.6.2-py3-none-any.whl", hash = "sha256:ded793b23664a14649f3c08ebbd344f6b58fbbc982d69481242478074ea74ff1"}, -] -py-soap = [ - {file = "py_soap-2020.3.2-py3-none-any.whl", hash = "sha256:61e2ec956d349bdd9d4c6248a2ae3c4cc4b0a2a5cf6b439b6de480a3bc2766a1"}, -] -six = [ - {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"}, - {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"}, -] -xmltodict = [ - {file = "xmltodict-0.12.0-py2.py3-none-any.whl", hash = "sha256:8bbcb45cc982f48b2ca8fe7e7827c5d792f217ecf1792626f808bf41c3b86051"}, - {file = "xmltodict-0.12.0.tar.gz", hash = "sha256:50d8c638ed7ecb88d90561beedbf720c9b4e851a9fa6c47ebd64e99d166d8a21"}, -] diff --git a/sdk/extensions/fedex/purplship/mappers/fedex/mapper.py b/sdk/extensions/fedex/purplship/mappers/fedex/mapper.py index f30a01b327..326fc8f5cd 100644 --- a/sdk/extensions/fedex/purplship/mappers/fedex/mapper.py +++ b/sdk/extensions/fedex/purplship/mappers/fedex/mapper.py @@ -10,7 +10,6 @@ TrackingRequest, PickupRequest, RateRequest, - AddressValidationDetails, ConfirmationDetails, TrackingDetails, @@ -19,27 +18,23 @@ RateDetails, Message, ) -from purplship.providers.fedex.package import ( - parse_shipment_cancel_response, - parse_shipment_response, - parse_rate_response, - - shipment_cancel_request, - shipment_request, - rate_request, -) from purplship.providers.fedex import ( parse_address_validation_response, + parse_shipment_cancel_response, parse_pickup_update_response, parse_pickup_cancel_response, + parse_shipment_response, parse_tracking_response, parse_pickup_response, - + parse_rate_response, address_validation_request, + shipment_cancel_request, pickup_update_request, pickup_cancel_request, + shipment_request, tracking_request, pickup_request, + rate_request, ) from purplship.mappers.fedex.settings import Settings @@ -47,27 +42,21 @@ class Mapper(BaseMapper): settings: Settings - def create_address_validation_request(self, payload: AddressValidationRequest) -> Serializable: + def create_address_validation_request( + self, payload: AddressValidationRequest + ) -> Serializable: return address_validation_request(payload, self.settings) - def create_rate_request( - self, payload: RateRequest - ) -> Serializable: + def create_rate_request(self, payload: RateRequest) -> Serializable: return rate_request(payload, self.settings) - def create_tracking_request( - self, payload: TrackingRequest - ) -> Serializable: + def create_tracking_request(self, payload: TrackingRequest) -> Serializable: return tracking_request(payload, self.settings) - def create_shipment_request( - self, payload: ShipmentRequest - ) -> Serializable: + def create_shipment_request(self, payload: ShipmentRequest) -> Serializable: return shipment_request(payload, self.settings) - def create_pickup_request( - self, payload: PickupRequest - ) -> Serializable: + def create_pickup_request(self, payload: PickupRequest) -> Serializable: return pickup_request(payload, self.settings) def create_pickup_update_request( @@ -80,12 +69,11 @@ def create_cancel_pickup_request( ) -> Serializable: return pickup_cancel_request(payload, self.settings) - def create_cancel_shipment_request(self, payload: ShipmentCancelRequest) -> Serializable[str]: + def create_cancel_shipment_request( + self, payload: ShipmentCancelRequest + ) -> Serializable[str]: return shipment_cancel_request(payload, self.settings) - - - def parse_address_validation_response( self, response: Deserializable ) -> Tuple[AddressValidationDetails, List[Message]]: @@ -125,4 +113,3 @@ def parse_tracking_response( self, response: Deserializable[str] ) -> Tuple[List[TrackingDetails], List[Message]]: return parse_tracking_response(response.deserialize(), self.settings) - diff --git a/sdk/extensions/fedex/purplship/mappers/fedex/proxy.py b/sdk/extensions/fedex/purplship/mappers/fedex/proxy.py index 1e4c656d8b..5b72e4f96e 100644 --- a/sdk/extensions/fedex/purplship/mappers/fedex/proxy.py +++ b/sdk/extensions/fedex/purplship/mappers/fedex/proxy.py @@ -1,4 +1,5 @@ from typing import Any +from fedex_lib.ship_service_v26 import TrackingId from purplship.core.utils import ( XP, request as http, @@ -6,7 +7,7 @@ Serializable, Deserializable, Job, - Envelope + Envelope, ) from purplship.api.proxy import Proxy as BaseProxy from purplship.mappers.fedex.settings import Settings @@ -38,10 +39,27 @@ def get_tracking(self, request: Serializable[Envelope]) -> Deserializable[str]: return Deserializable(response, XP.to_xml) - def create_shipment( - self, request: Serializable[Envelope] - ) -> Deserializable[str]: - response = self._send_request("/ship", request) + def create_shipment(self, request: Serializable[Envelope]) -> Deserializable[str]: + + requests = request.serialize() + response = self._send_request("/ship", Serializable(requests[0])) + master_id = XP.find( + "MasterTrackingId", XP.to_xml(response), TrackingId, first=True + ) + + if len(requests) > 1 and master_id is not None: + responses = [ + self._send_request( + "/ship", + Serializable( + request.replace( + "[MASTER_ID_TYPE]", master_id.TrackingIdType + ).replace("[MASTER_TRACKING_ID]", master_id.TrackingNumber) + ), + ) + for request in requests[1:] + ] + return Deserializable(XP.bundle_xml([response, *responses]), XP.to_xml) return Deserializable(response, XP.to_xml) @@ -74,9 +92,7 @@ def process(job: Job): return Deserializable(XP.bundle_xml(response), XP.to_xml) - def cancel_pickup( - self, request: Serializable[Envelope] - ) -> Deserializable[str]: + def cancel_pickup(self, request: Serializable[Envelope]) -> Deserializable[str]: response = self._send_request("/pickup", request) return Deserializable(response, XP.to_xml) diff --git a/sdk/extensions/fedex/purplship/mappers/fedex/settings.py b/sdk/extensions/fedex/purplship/mappers/fedex/settings.py index c0f97c1def..f4d3d1aa18 100644 --- a/sdk/extensions/fedex/purplship/mappers/fedex/settings.py +++ b/sdk/extensions/fedex/purplship/mappers/fedex/settings.py @@ -8,10 +8,10 @@ class Settings(BaseSettings): """FedEx connection settings.""" - user_key: str password: str meter_number: str account_number: str + user_key: str = None account_country_code: str = None id: str = None diff --git a/sdk/extensions/fedex/purplship/providers/fedex/__init__.py b/sdk/extensions/fedex/purplship/providers/fedex/__init__.py index bff15ddbcc..2bf95cd9dc 100644 --- a/sdk/extensions/fedex/purplship/providers/fedex/__init__.py +++ b/sdk/extensions/fedex/purplship/providers/fedex/__init__.py @@ -1,7 +1,7 @@ from purplship.providers.fedex.utils import Settings from purplship.providers.fedex.address import ( parse_address_validation_response, - address_validation_request + address_validation_request, ) from purplship.providers.fedex.pickup import ( parse_pickup_cancel_response, @@ -15,3 +15,10 @@ parse_tracking_response, tracking_request, ) +from purplship.providers.fedex.rate import rate_request, parse_rate_response +from purplship.providers.fedex.shipment import ( + parse_shipment_cancel_response, + parse_shipment_response, + shipment_cancel_request, + shipment_request, +) diff --git a/sdk/extensions/fedex/purplship/providers/fedex/package/__init__.py b/sdk/extensions/fedex/purplship/providers/fedex/package/__init__.py deleted file mode 100644 index c476cdea23..0000000000 --- a/sdk/extensions/fedex/purplship/providers/fedex/package/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -from purplship.providers.fedex.package.rate import rate_request, parse_rate_response -from purplship.providers.fedex.package.shipment import ( - parse_shipment_cancel_response, - parse_shipment_response, - shipment_cancel_request, - shipment_request, -) diff --git a/sdk/extensions/fedex/purplship/providers/fedex/package/shipment/__init__.py b/sdk/extensions/fedex/purplship/providers/fedex/package/shipment/__init__.py deleted file mode 100644 index 27a1a21ff5..0000000000 --- a/sdk/extensions/fedex/purplship/providers/fedex/package/shipment/__init__.py +++ /dev/null @@ -1,2 +0,0 @@ -from purplship.providers.fedex.package.shipment.create import parse_shipment_response, shipment_request -from purplship.providers.fedex.package.shipment.cancel import parse_shipment_cancel_response, shipment_cancel_request diff --git a/sdk/extensions/fedex/purplship/providers/fedex/package/shipment/create.py b/sdk/extensions/fedex/purplship/providers/fedex/package/shipment/create.py deleted file mode 100644 index 173cb49f9d..0000000000 --- a/sdk/extensions/fedex/purplship/providers/fedex/package/shipment/create.py +++ /dev/null @@ -1,426 +0,0 @@ -from datetime import datetime -from base64 import encodebytes -from typing import List, Tuple, cast -from fedex_lib.ship_service_v26 import ( - CompletedShipmentDetail, - ProcessShipmentRequest, - TransactionDetail, - VersionId, - RequestedShipment, - RequestedPackageLineItem, - Party, - Contact, - Address, - TaxpayerIdentification, - Weight as FedexWeight, - Dimensions as FedexDimensions, - CompletedPackageDetail, - TrackingId, - ShipmentSpecialServicesRequested, - ShipmentEventNotificationDetail, - ShipmentEventNotificationSpecification, - NotificationDetail, - EMailDetail, - Localization, - CodDetail, - CodCollectionType, - Money, - ShippingDocumentPart, - Payment, - Payor, - LabelSpecification, - LabelFormatType, - LabelPrintingOrientationType, - ShipmentNotificationFormatSpecification, - LabelOrderType, - CustomsClearanceDetail, - Commodity, - CommercialInvoice, - CustomerReference, - CustomerReferenceType, -) -from purplship.core.utils import Serializable, apply_namespaceprefix, create_envelope, Element, SF, XP, DF -from purplship.core.units import Options, Packages, CompleteAddress, Weight -from purplship.core.models import ShipmentDetails, Message, ShipmentRequest -from purplship.providers.fedex.error import parse_error_response -from purplship.providers.fedex.utils import Settings -from purplship.providers.fedex.units import ( - PackagingType, - ServiceType, - SpecialServiceType, - PackagePresets, - PaymentType, - LabelType, - Incoterm, - PurposeType, - MeasurementOptions, -) - - -NOTIFICATION_EVENTS = [ - "ON_DELIVERY", - "ON_ESTIMATED_DELIVERY", - "ON_EXCEPTION", - "ON_SHIPMENT", - "ON_TENDER", -] - - -def parse_shipment_response( - response: Element, settings: Settings -) -> Tuple[ShipmentDetails, List[Message]]: - detail = XP.find("CompletedShipmentDetail", response, first=True) - shipment = ( - _extract_shipment(detail, settings) if detail is not None else None - ) - return shipment, parse_error_response(response, settings) - - -def _extract_shipment( - shipment_detail_node: Element, settings: Settings -) -> ShipmentDetails: - detail = XP.to_object(CompletedShipmentDetail, shipment_detail_node) - - tracking_number = cast(TrackingId, detail.MasterTrackingId).TrackingNumber - package: CompletedPackageDetail = next(iter(detail.CompletedPackageDetails), None) - part: ShippingDocumentPart = ( - next(iter(package.Label.Parts)) if package is not None else None - ) - label = ( - encodebytes(cast(ShippingDocumentPart, part).Image).decode("utf-8") - if part is not None - else None - ) - - return ShipmentDetails( - carrier_name=settings.carrier_name, - carrier_id=settings.carrier_id, - tracking_number=tracking_number, - shipment_identifier=tracking_number, - label=label, - ) - - -def shipment_request( - payload: ShipmentRequest, settings: Settings -) -> Serializable[ProcessShipmentRequest]: - shipper = CompleteAddress.map(payload.shipper) - recipient = CompleteAddress.map(payload.recipient) - packages = Packages(payload.parcels, PackagePresets, required=["weight"]) - # Only the master package is selected here because even for MPS only one package is accepted for a master tracking. - master_package = packages[0] - - service = ServiceType.map(payload.service).value_or_key - options = Options(payload.options, SpecialServiceType) - special_services = [getattr(v, 'value', v) for k, v in options if k in SpecialServiceType] - label_type, label_format = LabelType[payload.label_type or 'PDF_4x6'].value - customs = payload.customs - duty = customs.duty if customs is not None else None - bill_to = CompleteAddress(getattr(duty, 'bill_to', None)) - - request = ProcessShipmentRequest( - WebAuthenticationDetail=settings.webAuthenticationDetail, - ClientDetail=settings.clientDetail, - TransactionDetail=TransactionDetail(CustomerTransactionId="IE_v26_Ship"), - Version=VersionId(ServiceId="ship", Major=26, Intermediate=0, Minor=0), - RequestedShipment=RequestedShipment( - ShipTimestamp=DF.date(options.shipment_date or datetime.now()), - DropoffType="REGULAR_PICKUP", - ServiceType=service, - PackagingType=PackagingType[packages.package_type or 'your_packaging'].value, - ManifestDetail=None, - VariationOptions=None, - TotalWeight=FedexWeight( - Units=packages.weight.unit, - Value=packages.weight.value - ), - TotalInsuredValue=options.insurance, - PreferredCurrency=options.currency, - ShipmentAuthorizationDetail=None, - Shipper=Party( - AccountNumber=settings.account_number, - Tins=( - [TaxpayerIdentification(Number=tax) for tax in shipper.taxes] - if shipper.has_tax_info else None - ), - Contact=( - Contact( - ContactId=None, - PersonName=shipper.person_name, - Title=None, - CompanyName=shipper.company_name, - PhoneNumber=shipper.phone_number, - PhoneExtension=None, - TollFreePhoneNumber=None, - PagerNumber=None, - FaxNumber=None, - EMailAddress=shipper.email, - ) - if shipper.has_contact_info else None - ), - Address=Address( - StreetLines=shipper.address_lines, - City=shipper.city, - StateOrProvinceCode=shipper.state_code, - PostalCode=shipper.postal_code, - UrbanizationCode=None, - CountryCode=shipper.country_code, - CountryName=shipper.country_name, - Residential=shipper.residential, - GeographicCoordinates=None, - ), - ), - Recipient=Party( - AccountNumber=None, - Tins=( - [TaxpayerIdentification(Number=tax) for tax in recipient.taxes] - if recipient.has_tax_info else None - ), - Contact=( - Contact( - ContactId=None, - PersonName=recipient.person_name, - Title=None, - CompanyName=recipient.company_name, - PhoneNumber=recipient.phone_number, - PhoneExtension=None, - TollFreePhoneNumber=None, - PagerNumber=None, - FaxNumber=None, - EMailAddress=recipient.email, - ) - if recipient.has_contact_info else None - ), - Address=Address( - StreetLines=recipient.address_lines, - City=recipient.city, - StateOrProvinceCode=recipient.state_code, - PostalCode=recipient.postal_code, - UrbanizationCode=None, - CountryCode=recipient.country_code, - CountryName=recipient.country_name, - Residential=recipient.residential, - GeographicCoordinates=None, - ), - ), - RecipientLocationNumber=None, - Origin=None, - SoldTo=None, - ShippingChargesPayment=Payment( - PaymentType=PaymentType[payload.payment.paid_by or "sender"].value, - Payor=Payor( - ResponsibleParty=Party( - AccountNumber=(payload.payment.account_number or settings.account_number), - ) - ), - ), - SpecialServicesRequested=( - ShipmentSpecialServicesRequested( - SpecialServiceTypes=special_services, - CodDetail=( - CodDetail( - CodCollectionAmount=Money( - Currency=options.currency or "USD", - Amount=options.cash_on_delivery, - ), - AddTransportationChargesDetail=None, - CollectionType=CodCollectionType.CASH, - CodRecipient=None, - FinancialInstitutionContactAndAddress=None, - RemitToName=None, - ReferenceIndicator=None, - ReturnTrackingId=None, - ) - if options.cash_on_delivery else None - ), - DeliveryOnInvoiceAcceptanceDetail=None, - HoldAtLocationDetail=None, - EventNotificationDetail=( - ShipmentEventNotificationDetail( - AggregationType=None, - PersonalMessage=None, - EventNotifications=[ - ShipmentEventNotificationSpecification( - Role=None, - Events=NOTIFICATION_EVENTS, - NotificationDetail=NotificationDetail( - NotificationType="EMAIL", - EmailDetail=EMailDetail( - EmailAddress=(options.email_notification_to or recipient.email), - Name=recipient.person_name or recipient.company_name, - ), - Localization=Localization(LanguageCode="EN"), - ), - FormatSpecification=ShipmentNotificationFormatSpecification( - Type="TEXT" - ), - ) - ], - ) - if options.email_notification and any([options.email_notification_to, recipient.email]) - else None - ), - ReturnShipmentDetail=None, - PendingShipmentDetail=None, - InternationalControlledExportDetail=None, - InternationalTrafficInArmsRegulationsDetail=None, - ShipmentDryIceDetail=None, - HomeDeliveryPremiumDetail=None, - EtdDetail=None, - ) - if options.has_content else None - ), - ExpressFreightDetail=None, - FreightShipmentDetail=None, - DeliveryInstructions=None, - VariableHandlingChargeDetail=None, - CustomsClearanceDetail=( - CustomsClearanceDetail( - Brokers=None, - ClearanceBrokerage=None, - CustomsOptions=None, - ImporterOfRecord=None, - RecipientCustomsId=None, - DutiesPayment=( - Payment( - PaymentType=PaymentType[duty.paid_by or "sender"].value, - Payor=( - Payor( - ResponsibleParty=Party( - AccountNumber=duty.account_number, - Tins=bill_to.taxes - ) - ) if any([duty.account_number, bill_to.taxes]) else None - ) - ) if duty is not None else None - ), - DocumentContent=None, - CustomsValue=Money( - Currency=(duty.currency or options.currency), - Amount=(duty.declared_value or options.declared_value) - ), - FreightOnValue=None, - InsuranceCharges=None, - PartiesToTransactionAreRelated=None, - CommercialInvoice=( - CommercialInvoice( - Comments=None, - FreightCharge=None, - TaxesOrMiscellaneousChargeType=None, - PackingCosts=None, - HandlingCosts=None, - SpecialInstructions=None, - DeclarationStatement=None, - PaymentTerms=None, - Purpose=PurposeType[customs.content_type or 'other'].value, - PurposeOfShipmentDescription=None, - CustomerReferences=None, - OriginatorName=(shipper.company_name or shipper.person_name), - TermsOfSale=Incoterm[customs.incoterm or "DDU"].value - ) - if customs.commercial_invoice else None - ), - Commodities=[ - Commodity( - Name=None, - NumberOfPieces=item.quantity, - Description=item.description or "N/A", - Purpose=None, - CountryOfManufacture=item.origin_country, - HarmonizedCode=None, - Weight=FedexWeight( - Units=master_package.weight_unit.value, - Value=Weight(item.weight, item.weight_unit)[master_package.weight_unit.value] - ), - Quantity=item.quantity, - QuantityUnits='EA', - AdditionalMeasures=None, - UnitPrice=Money( - Currency=(options.currency or duty.currency), - Amount=item.value_amount, - ), - CustomsValue=None, - ExciseConditions=None, - ExportLicenseNumber=None, - ExportLicenseExpirationDate=None, - CIMarksAndNumbers=None, - PartNumber=item.sku, - NaftaDetail=None, - ) for item in customs.commodities - ], - ExportDetail=None, - RegulatoryControls=None, - DeclarationStatementDetail=None - ) if payload.customs is not None else None - ), - PickupDetail=None, - SmartPostDetail=None, - BlockInsightVisibility=None, - LabelSpecification=LabelSpecification( - Dispositions=None, - LabelFormatType=LabelFormatType.COMMON_2_D.value, - ImageType=label_type, - LabelStockType=label_format, - LabelPrintingOrientation=LabelPrintingOrientationType.TOP_EDGE_OF_TEXT_FIRST.value, - LabelOrder=LabelOrderType.SHIPPING_LABEL_FIRST.value, - PrintedLabelOrigin=None, - CustomerSpecifiedDetail=None, - ), - ShippingDocumentSpecification=None, - RateRequestTypes=None, - EdtRequestType=None, - MasterTrackingId=None, - PackageCount=len(packages), - ConfigurationData=None, - RequestedPackageLineItems=[ - RequestedPackageLineItem( - SequenceNumber=1, - GroupNumber=None, - GroupPackageCount=None, - VariableHandlingChargeDetail=None, - InsuredValue=None, - Weight=( - FedexWeight( - Units=master_package.weight.unit, - Value=master_package.weight.value, - ) - if master_package.weight.value else None - ), - Dimensions=( - FedexDimensions( - Length=master_package.length.map(MeasurementOptions).value, - Width=master_package.width.map(MeasurementOptions).value, - Height=master_package.height.map(MeasurementOptions).value, - Units=master_package.dimension_unit.value, - ) - if master_package.has_dimensions else None - ), - PhysicalPackaging=None, - ItemDescription=master_package.parcel.description, - ItemDescriptionForClearance=None, - CustomerReferences=( - [ - CustomerReference( - CustomerReferenceType=CustomerReferenceType.CUSTOMER_REFERENCE, - Value=payload.reference - ) - ] - if any(payload.reference or "") else None - ), - SpecialServicesRequested=None, - ContentRecords=None, - ) - ], - ), - ) - return Serializable(request, _request_serializer) - - -def _request_serializer(request: ProcessShipmentRequest) -> str: - namespacedef_ = 'xmlns:tns="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v26="http://fedex.com/ws/ship/v26"' - - envelope = create_envelope(body_content=request) - envelope.Body.ns_prefix_ = envelope.ns_prefix_ - apply_namespaceprefix(envelope.Body.anytypeobjs_[0], "v26") - - return XP.export(envelope, namespacedef_=namespacedef_) diff --git a/sdk/extensions/fedex/purplship/providers/fedex/package/rate.py b/sdk/extensions/fedex/purplship/providers/fedex/rate.py similarity index 86% rename from sdk/extensions/fedex/purplship/providers/fedex/package/rate.py rename to sdk/extensions/fedex/purplship/providers/fedex/rate.py index 119153cf8c..e9423457f0 100644 --- a/sdk/extensions/fedex/purplship/providers/fedex/package/rate.py +++ b/sdk/extensions/fedex/purplship/providers/fedex/rate.py @@ -19,10 +19,23 @@ CustomerReference, CustomerReferenceType, ) -from purplship.core.utils import create_envelope, apply_namespaceprefix, Element, Serializable, NF, XP, DF +from purplship.core.utils import ( + create_envelope, + apply_namespaceprefix, + Element, + Serializable, + NF, + XP, + DF, +) from purplship.core.units import Packages, Options, Services, CompleteAddress from purplship.core.models import RateDetails, RateRequest, Message, ChargeDetails -from purplship.providers.fedex.units import PackagingType, ServiceType, PackagePresets, MeasurementOptions +from purplship.providers.fedex.units import ( + PackagingType, + ServiceType, + PackagePresets, + MeasurementOptions, +) from purplship.providers.fedex.error import parse_error_response from purplship.providers.fedex.utils import Settings @@ -70,7 +83,8 @@ def _extract_rate(detail_node: Element, settings: Settings) -> Optional[RateDeta estimated_delivery = DF.date(rate.DeliveryTimestamp) transit = ( ((estimated_delivery.date() - datetime.today().date()).days or None) - if estimated_delivery is not None else None + if estimated_delivery is not None + else None ) return RateDetails( @@ -84,7 +98,7 @@ def _extract_rate(detail_node: Element, settings: Settings) -> Optional[RateDeta discount=discount, transit_days=transit, extra_charges=surcharges, - meta=dict(service_name=service.name_or_key) + meta=dict(service_name=service.name_or_key), ) @@ -96,7 +110,6 @@ def rate_request( packages = Packages(payload.parcels, PackagePresets, required=["weight"]) service = Services(payload.services, ServiceType).first options = Options(payload.options) - request_types = ["LIST"] + ([] if "currency" not in options else ["PREFERRED"]) request = FedexRateRequest( @@ -112,7 +125,9 @@ def rate_request( ShipTimestamp=DF.date(options.shipment_date or datetime.now()), DropoffType="REGULAR_PICKUP", ServiceType=(service.value if service is not None else None), - PackagingType=PackagingType[packages.package_type or 'your_packaging'].value, + PackagingType=PackagingType.map( + packages.package_type or "your_packaging" + ).value, VariationOptions=None, TotalWeight=FedexWeight( Units=packages.weight.unit, @@ -125,7 +140,8 @@ def rate_request( AccountNumber=settings.account_number, Tins=( [TaxpayerIdentification(Number=tax) for tax in shipper.taxes] - if shipper.has_tax_info else None + if shipper.has_tax_info + else None ), Contact=( Contact( @@ -140,7 +156,8 @@ def rate_request( FaxNumber=None, EMailAddress=shipper.email, ) - if shipper.has_contact_info else None + if shipper.has_contact_info + else None ), Address=Address( StreetLines=shipper.address_lines, @@ -158,7 +175,8 @@ def rate_request( AccountNumber=None, Tins=( [TaxpayerIdentification(Number=tax) for tax in recipient.taxes] - if recipient.has_tax_info else None + if recipient.has_tax_info + else None ), Contact=( Contact( @@ -173,7 +191,8 @@ def rate_request( FaxNumber=None, EMailAddress=recipient.email, ) - if recipient.has_contact_info else None + if recipient.has_contact_info + else None ), Address=Address( StreetLines=recipient.address_lines, @@ -219,7 +238,8 @@ def rate_request( Units=package.weight.unit, Value=package.weight.value, ) - if package.weight.value else None + if package.weight.value + else None ), Dimensions=( Dimensions( @@ -228,7 +248,15 @@ def rate_request( Height=package.height.map(MeasurementOptions).value, Units=package.dimension_unit.value, ) - if package.has_dimensions else None + if ( + # only set dimensions if the packaging type is set to your_packaging + package.has_dimensions + and PackagingType.map( + package.packaging_type or "your_packaging" + ).value + == PackagingType.your_packaging.value + ) + else None ), PhysicalPackaging=None, ItemDescription=package.parcel.description, @@ -237,10 +265,11 @@ def rate_request( [ CustomerReference( CustomerReferenceType=CustomerReferenceType.CUSTOMER_REFERENCE, - Value=payload.reference + Value=payload.reference, ) ] - if any(payload.reference or "") else None + if any(payload.reference or "") + else None ), SpecialServicesRequested=None, ContentRecords=None, diff --git a/sdk/extensions/fedex/purplship/providers/fedex/shipment/__init__.py b/sdk/extensions/fedex/purplship/providers/fedex/shipment/__init__.py new file mode 100644 index 0000000000..38939b5e83 --- /dev/null +++ b/sdk/extensions/fedex/purplship/providers/fedex/shipment/__init__.py @@ -0,0 +1,8 @@ +from purplship.providers.fedex.shipment.create import ( + parse_shipment_response, + shipment_request, +) +from purplship.providers.fedex.shipment.cancel import ( + parse_shipment_cancel_response, + shipment_cancel_request, +) diff --git a/sdk/extensions/fedex/purplship/providers/fedex/package/shipment/cancel.py b/sdk/extensions/fedex/purplship/providers/fedex/shipment/cancel.py similarity index 100% rename from sdk/extensions/fedex/purplship/providers/fedex/package/shipment/cancel.py rename to sdk/extensions/fedex/purplship/providers/fedex/shipment/cancel.py diff --git a/sdk/extensions/fedex/purplship/providers/fedex/shipment/create.py b/sdk/extensions/fedex/purplship/providers/fedex/shipment/create.py new file mode 100644 index 0000000000..8e321f4ab8 --- /dev/null +++ b/sdk/extensions/fedex/purplship/providers/fedex/shipment/create.py @@ -0,0 +1,481 @@ +from datetime import datetime +from base64 import encodebytes +from typing import List, Tuple, cast +from fedex_lib.ship_service_v26 import ( + ProcessShipmentRequest, + TransactionDetail, + VersionId, + RequestedShipment, + RequestedPackageLineItem, + Party, + Contact, + Address, + TaxpayerIdentification, + Weight as FedexWeight, + Dimensions as FedexDimensions, + TrackingId, + ShipmentSpecialServicesRequested, + ShipmentEventNotificationDetail, + ShipmentEventNotificationSpecification, + NotificationDetail, + EMailDetail, + Localization, + CodDetail, + CodCollectionType, + Money, + Payment, + Payor, + LabelSpecification, + LabelFormatType, + LabelPrintingOrientationType, + ShipmentNotificationFormatSpecification, + LabelOrderType, + CustomsClearanceDetail, + Commodity, + CommercialInvoice, + CustomerReference, + CustomerReferenceType, +) +from purplship.core.utils import ( + Serializable, + apply_namespaceprefix, + create_envelope, + bundle_base64, + Element, + XP, + DF, +) +from purplship.core.units import Options, Packages, CompleteAddress, Weight +from purplship.core.models import ShipmentDetails, Message, ShipmentRequest +from purplship.providers.fedex.error import parse_error_response +from purplship.providers.fedex.utils import Settings +from purplship.providers.fedex.units import ( + PackagingType, + ServiceType, + SpecialServiceType, + PackagePresets, + PaymentType, + LabelType, + Incoterm, + PurposeType, + MeasurementOptions, +) + + +NOTIFICATION_EVENTS = [ + "ON_DELIVERY", + "ON_ESTIMATED_DELIVERY", + "ON_EXCEPTION", + "ON_SHIPMENT", + "ON_TENDER", +] + + +def parse_shipment_response( + response: Element, settings: Settings +) -> Tuple[ShipmentDetails, List[Message]]: + details = XP.find("CompletedPackageDetails", response) + shipment = _extract_shipment(details, settings) if any(details) else None + return shipment, parse_error_response(response, settings) + + +def _extract_shipment(pieces: List[Element], settings: Settings) -> ShipmentDetails: + tracking_numbers = [ + getattr(XP.find("TrackingNumber", piece, first=True), "text", None) + for piece in pieces + ] + labels = [ + getattr(XP.find("Image", piece, first=True), "text", None) for piece in pieces + ] + label_type = getattr(XP.find("ImageType", pieces[0], first=True), "text", None) + [master_id, *_] = tracking_numbers + label = labels[0] if len(labels) == 1 else bundle_base64(labels, label_type) + + return ShipmentDetails( + carrier_name=settings.carrier_name, + carrier_id=settings.carrier_id, + tracking_number=master_id, + shipment_identifier=master_id, + label=label, + meta=dict(tracking_numbers=tracking_numbers), + ) + + +def shipment_request( + payload: ShipmentRequest, settings: Settings +) -> Serializable[ProcessShipmentRequest]: + shipper = CompleteAddress.map(payload.shipper) + recipient = CompleteAddress.map(payload.recipient) + packages = Packages(payload.parcels, PackagePresets, required=["weight"]) + + service = ServiceType.map(payload.service).value_or_key + options = Options(payload.options, SpecialServiceType) + special_services = [ + getattr(v, "value", v) for k, v in options if k in SpecialServiceType + ] + label_type, label_format = LabelType[payload.label_type or "PDF_4x6"].value + customs = payload.customs + duty = customs.duty if customs is not None else None + bill_to = CompleteAddress(getattr(duty, "bill_to", None)) + + requests = [ + ProcessShipmentRequest( + WebAuthenticationDetail=settings.webAuthenticationDetail, + ClientDetail=settings.clientDetail, + TransactionDetail=TransactionDetail(CustomerTransactionId="IE_v26_Ship"), + Version=VersionId(ServiceId="ship", Major=26, Intermediate=0, Minor=0), + RequestedShipment=RequestedShipment( + ShipTimestamp=DF.date(options.shipment_date or datetime.now()), + DropoffType="REGULAR_PICKUP", + ServiceType=service, + PackagingType=PackagingType.map( + packages.package_type or "your_packaging" + ).value, + ManifestDetail=None, + VariationOptions=None, + TotalWeight=FedexWeight( + Units=packages.weight.unit, Value=packages.weight.value + ), + TotalInsuredValue=options.insurance, + PreferredCurrency=options.currency, + ShipmentAuthorizationDetail=None, + Shipper=Party( + AccountNumber=settings.account_number, + Tins=( + [TaxpayerIdentification(Number=tax) for tax in shipper.taxes] + if shipper.has_tax_info + else None + ), + Contact=( + Contact( + ContactId=None, + PersonName=shipper.person_name, + Title=None, + CompanyName=shipper.company_name, + PhoneNumber=shipper.phone_number, + PhoneExtension=None, + TollFreePhoneNumber=None, + PagerNumber=None, + FaxNumber=None, + EMailAddress=shipper.email, + ) + if shipper.has_contact_info + else None + ), + Address=Address( + StreetLines=shipper.address_lines, + City=shipper.city, + StateOrProvinceCode=shipper.state_code, + PostalCode=shipper.postal_code, + UrbanizationCode=None, + CountryCode=shipper.country_code, + CountryName=shipper.country_name, + Residential=shipper.residential, + GeographicCoordinates=None, + ), + ), + Recipient=Party( + AccountNumber=None, + Tins=( + [TaxpayerIdentification(Number=tax) for tax in recipient.taxes] + if recipient.has_tax_info + else None + ), + Contact=( + Contact( + ContactId=None, + PersonName=recipient.person_name, + Title=None, + CompanyName=recipient.company_name, + PhoneNumber=recipient.phone_number, + PhoneExtension=None, + TollFreePhoneNumber=None, + PagerNumber=None, + FaxNumber=None, + EMailAddress=recipient.email, + ) + if recipient.has_contact_info + else None + ), + Address=Address( + StreetLines=recipient.address_lines, + City=recipient.city, + StateOrProvinceCode=recipient.state_code, + PostalCode=recipient.postal_code, + UrbanizationCode=None, + CountryCode=recipient.country_code, + CountryName=recipient.country_name, + Residential=recipient.residential, + GeographicCoordinates=None, + ), + ), + RecipientLocationNumber=None, + Origin=None, + SoldTo=None, + ShippingChargesPayment=Payment( + PaymentType=PaymentType[payload.payment.paid_by or "sender"].value, + Payor=Payor( + ResponsibleParty=Party( + AccountNumber=( + payload.payment.account_number + or settings.account_number + ), + ) + ), + ), + SpecialServicesRequested=( + ShipmentSpecialServicesRequested( + SpecialServiceTypes=special_services, + CodDetail=( + CodDetail( + CodCollectionAmount=Money( + Currency=options.currency or "USD", + Amount=options.cash_on_delivery, + ), + AddTransportationChargesDetail=None, + CollectionType=CodCollectionType.CASH, + CodRecipient=None, + FinancialInstitutionContactAndAddress=None, + RemitToName=None, + ReferenceIndicator=None, + ReturnTrackingId=None, + ) + if options.cash_on_delivery + else None + ), + DeliveryOnInvoiceAcceptanceDetail=None, + HoldAtLocationDetail=None, + EventNotificationDetail=( + ShipmentEventNotificationDetail( + AggregationType=None, + PersonalMessage=None, + EventNotifications=[ + ShipmentEventNotificationSpecification( + Role=None, + Events=NOTIFICATION_EVENTS, + NotificationDetail=NotificationDetail( + NotificationType="EMAIL", + EmailDetail=EMailDetail( + EmailAddress=( + options.email_notification_to + or recipient.email + ), + Name=recipient.person_name + or recipient.company_name, + ), + Localization=Localization( + LanguageCode="EN" + ), + ), + FormatSpecification=ShipmentNotificationFormatSpecification( + Type="TEXT" + ), + ) + ], + ) + if options.email_notification + and any([options.email_notification_to, recipient.email]) + else None + ), + ReturnShipmentDetail=None, + PendingShipmentDetail=None, + InternationalControlledExportDetail=None, + InternationalTrafficInArmsRegulationsDetail=None, + ShipmentDryIceDetail=None, + HomeDeliveryPremiumDetail=None, + EtdDetail=None, + ) + if options.has_content + else None + ), + ExpressFreightDetail=None, + FreightShipmentDetail=None, + DeliveryInstructions=None, + VariableHandlingChargeDetail=None, + CustomsClearanceDetail=( + CustomsClearanceDetail( + Brokers=None, + ClearanceBrokerage=None, + CustomsOptions=None, + ImporterOfRecord=None, + RecipientCustomsId=None, + DutiesPayment=( + Payment( + PaymentType=PaymentType[duty.paid_by or "sender"].value, + Payor=( + Payor( + ResponsibleParty=Party( + AccountNumber=duty.account_number, + Tins=bill_to.taxes, + ) + ) + if any([duty.account_number, bill_to.taxes]) + else None + ), + ) + if duty is not None + else None + ), + DocumentContent=None, + CustomsValue=Money( + Currency=(duty.currency or options.currency), + Amount=(duty.declared_value or options.declared_value), + ), + FreightOnValue=None, + InsuranceCharges=None, + PartiesToTransactionAreRelated=None, + CommercialInvoice=( + CommercialInvoice( + Comments=None, + FreightCharge=None, + TaxesOrMiscellaneousChargeType=None, + PackingCosts=None, + HandlingCosts=None, + SpecialInstructions=None, + DeclarationStatement=None, + PaymentTerms=None, + Purpose=PurposeType[ + customs.content_type or "other" + ].value, + PurposeOfShipmentDescription=None, + CustomerReferences=None, + OriginatorName=( + shipper.company_name or shipper.person_name + ), + TermsOfSale=Incoterm[customs.incoterm or "DDU"].value, + ) + if customs.commercial_invoice + else None + ), + Commodities=[ + Commodity( + Name=None, + NumberOfPieces=item.quantity, + Description=item.description or "N/A", + Purpose=None, + CountryOfManufacture=item.origin_country, + HarmonizedCode=None, + Weight=FedexWeight( + Units=package.weight_unit.value, + Value=Weight(item.weight, item.weight_unit)[ + package.weight_unit.value + ], + ), + Quantity=item.quantity, + QuantityUnits="EA", + AdditionalMeasures=None, + UnitPrice=Money( + Currency=(options.currency or duty.currency), + Amount=item.value_amount, + ), + CustomsValue=None, + ExciseConditions=None, + ExportLicenseNumber=None, + ExportLicenseExpirationDate=None, + CIMarksAndNumbers=None, + PartNumber=item.sku, + NaftaDetail=None, + ) + for item in customs.commodities + ], + ExportDetail=None, + RegulatoryControls=None, + DeclarationStatementDetail=None, + ) + if payload.customs is not None + else None + ), + PickupDetail=None, + SmartPostDetail=None, + BlockInsightVisibility=None, + LabelSpecification=LabelSpecification( + Dispositions=None, + LabelFormatType=LabelFormatType.COMMON_2_D.value, + ImageType=label_type, + LabelStockType=label_format, + LabelPrintingOrientation=LabelPrintingOrientationType.TOP_EDGE_OF_TEXT_FIRST.value, + LabelOrder=LabelOrderType.SHIPPING_LABEL_FIRST.value, + PrintedLabelOrigin=None, + CustomerSpecifiedDetail=None, + ), + ShippingDocumentSpecification=None, + RateRequestTypes=None, + EdtRequestType=None, + MasterTrackingId=( + TrackingId( + TrackingIdType="[MASTER_ID_TYPE]", + TrackingNumber="[MASTER_TRACKING_ID]", + ) + if package_index > 1 + else None + ), + PackageCount=len(packages), + ConfigurationData=None, + RequestedPackageLineItems=[ + RequestedPackageLineItem( + SequenceNumber=package_index, + GroupNumber=None, + GroupPackageCount=None, + VariableHandlingChargeDetail=None, + InsuredValue=None, + Weight=( + FedexWeight( + Units=package.weight.unit, + Value=package.weight.value, + ) + if package.weight.value + else None + ), + Dimensions=( + FedexDimensions( + Length=package.length.map(MeasurementOptions).value, + Width=package.width.map(MeasurementOptions).value, + Height=package.height.map(MeasurementOptions).value, + Units=package.dimension_unit.value, + ) + if ( + # only set dimensions if the packaging type is set to your_packaging + package.has_dimensions + and PackagingType.map( + package.packaging_type or "your_packaging" + ).value + == PackagingType.your_packaging.value + ) + else None + ), + PhysicalPackaging=None, + ItemDescription=package.parcel.description, + ItemDescriptionForClearance=None, + CustomerReferences=( + [ + CustomerReference( + CustomerReferenceType=CustomerReferenceType.CUSTOMER_REFERENCE, + Value=payload.reference, + ) + ] + if any(payload.reference or "") + else None + ), + SpecialServicesRequested=None, + ContentRecords=None, + ) + ], + ), + ) + for package_index, package in enumerate(packages, 1) + ] + + return Serializable(requests, _request_serializer) + + +def _request_serializer(requests: List[ProcessShipmentRequest]) -> List[str]: + namespacedef_ = 'xmlns:tns="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v26="http://fedex.com/ws/ship/v26"' + + def serialize(request: ProcessShipmentRequest): + envelope = create_envelope(body_content=request) + envelope.Body.ns_prefix_ = envelope.ns_prefix_ + apply_namespaceprefix(envelope.Body.anytypeobjs_[0], "v26") + + return XP.export(envelope, namespacedef_=namespacedef_) + + return [serialize(request) for request in requests] diff --git a/sdk/extensions/fedex/purplship/providers/fedex/tracking.py b/sdk/extensions/fedex/purplship/providers/fedex/tracking.py index 1d398fb01a..d908348022 100644 --- a/sdk/extensions/fedex/purplship/providers/fedex/tracking.py +++ b/sdk/extensions/fedex/purplship/providers/fedex/tracking.py @@ -7,6 +7,7 @@ VersionId, TrackSelectionDetail, TrackPackageIdentifier, + TrackingDateOrTimestamp, ) from purplship.core.utils import Serializable, Element, XP, DF from purplship.core.utils.soap import create_envelope, apply_namespaceprefix @@ -19,6 +20,11 @@ from purplship.providers.fedex.error import parse_error_response from purplship.providers.fedex.utils import Settings +estimated_date_formats = [ + "%Y-%m-%dT%H:%M:%S%z", + "%Y-%m-%dT%H:%M:%S", +] + def parse_tracking_response( response: Element, settings: Settings @@ -35,32 +41,52 @@ def parse_tracking_response( def _extract_tracking( - track_detail_node: Element, settings: Settings + detail_node: Element, settings: Settings ) -> Optional[TrackingDetails]: track_detail = TrackDetail() - track_detail.build(track_detail_node) + track_detail.build(detail_node) if track_detail.Notification.Severity == "ERROR": return None - delivered = any(e.EventType == 'DL' for e in track_detail.Events) + date_or_timestamps = XP.find("DatesOrTimes", detail_node, TrackingDateOrTimestamp) + estimated_delivery = ( + _parse_date_or_timestamp(date_or_timestamps, "ACTUAL_DELIVERY") + or _parse_date_or_timestamp(date_or_timestamps, "ACTUAL_TENDER") + or _parse_date_or_timestamp(date_or_timestamps, "ANTICIPATED_TENDER") + or _parse_date_or_timestamp(date_or_timestamps, "ESTIMATED_DELIVERY") + ) return TrackingDetails( carrier_name=settings.carrier_name, carrier_id=settings.carrier_id, tracking_number=track_detail.TrackingNumber, - events=list( - map( - lambda e: TrackingEvent( - date=DF.fdate(e.Timestamp, "%Y-%m-%d %H:%M:%S%z"), - time=DF.ftime(e.Timestamp, "%Y-%m-%d %H:%M:%S%z"), - code=e.EventType, - location=e.ArrivalLocation, - description=e.EventDescription, - ), - track_detail.Events, + events=[ + TrackingEvent( + date=DF.fdate(e.Timestamp, "%Y-%m-%d %H:%M:%S%z"), + time=DF.ftime(e.Timestamp, "%Y-%m-%d %H:%M:%S%z"), + code=e.EventType, + location=e.ArrivalLocation, + description=e.EventDescription, ) + for e in track_detail.Events + ], + estimated_delivery=estimated_delivery, + delivered=any(e.EventType == "DL" for e in track_detail.Events), + ) + + +def _parse_date_or_timestamp( + date_or_timestamps: List[TrackingDateOrTimestamp], type: str +) -> Optional[str]: + return next( + iter( + [ + DF.fdate(d.DateOrTimestamp, try_formats=estimated_date_formats) + for d in date_or_timestamps + if d.Type == type + ] ), - delivered=delivered + None, ) diff --git a/sdk/extensions/fedex/purplship/providers/fedex/utils.py b/sdk/extensions/fedex/purplship/providers/fedex/utils.py index b7f58243a7..ec1e688b15 100644 --- a/sdk/extensions/fedex/purplship/providers/fedex/utils.py +++ b/sdk/extensions/fedex/purplship/providers/fedex/utils.py @@ -11,10 +11,10 @@ class Settings(BaseSettings): """FedEx connection settings.""" - user_key: str password: str meter_number: str account_number: str + user_key: str = None account_country_code: str = None id: str = None @@ -46,7 +46,9 @@ def default_request_serializer( prefix: str, namespace: str ) -> Callable[[Envelope], str]: def serializer(envelope: Envelope): - namespacedef_ = f'xmlns:tns="http://schemas.xmlsoap.org/soap/envelope/" {namespace}' + namespacedef_ = ( + f'xmlns:tns="http://schemas.xmlsoap.org/soap/envelope/" {namespace}' + ) envelope.Body.ns_prefix_ = envelope.ns_prefix_ apply_namespaceprefix(envelope.Body.anytypeobjs_[0], prefix) diff --git a/sdk/extensions/fedex/pyproject.toml b/sdk/extensions/fedex/pyproject.toml index 118a9d6c48..76fbcf8b54 100644 --- a/sdk/extensions/fedex/pyproject.toml +++ b/sdk/extensions/fedex/pyproject.toml @@ -1,11 +1,11 @@ [tool.poetry] name = "purplship.fedex" -version = "2021.10" -homepage="https://docs.purplship.com" +version = "2021.11.4" +homepage="https://next.purplship.com/docs/guides/sdk" repository="https://github.com/purplship/purplship" description = "Purplship - Fedex Shipping Extension" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [{ include = "purplship" }] classifiers=[ diff --git a/sdk/extensions/fedex/tests/fedex/rate.py b/sdk/extensions/fedex/tests/fedex/rate.py index a4208b1f36..0cc2cc2bfa 100644 --- a/sdk/extensions/fedex/tests/fedex/rate.py +++ b/sdk/extensions/fedex/tests/fedex/rate.py @@ -19,7 +19,11 @@ def test_create_rate_request(self): request = gateway.mapper.create_rate_request(self.RateRequest) # Remove timeStamp for testing serialized_request = re.sub( - "[^>]+", "", request.serialize() + "[^>]+", + "", + request.serialize().replace( + " ", "" + ), ) self.assertEqual(serialized_request, RateRequestXml) @@ -29,7 +33,11 @@ def test_create_rate_request_with_preset_package(self): ) # Remove timeStamp for testing serialized_request = re.sub( - "[^>]+", "", request.serialize() + "[^>]+", + "", + request.serialize().replace( + " ", "" + ), ) self.assertEqual(serialized_request, RateRequestUsingPackagePresetXML) @@ -258,7 +266,7 @@ def test_parse_rate_error_response(self): true - + REGULAR_PICKUP YOUR_PACKAGING @@ -330,7 +338,7 @@ def test_parse_rate_error_response(self): true - + REGULAR_PICKUP FEDEX_PAK @@ -365,12 +373,6 @@ def test_parse_rate_error_response(self): LB 2.2 - - 1 - 11 - 14 - IN - diff --git a/sdk/extensions/fedex/tests/fedex/shipment.py b/sdk/extensions/fedex/tests/fedex/shipment.py index 4986c169a4..7d370b65bc 100644 --- a/sdk/extensions/fedex/tests/fedex/shipment.py +++ b/sdk/extensions/fedex/tests/fedex/shipment.py @@ -1,7 +1,7 @@ import re import unittest import logging -from unittest.mock import patch +from unittest.mock import patch, ANY from purplship.core.utils import DP from purplship.core.models import ShipmentRequest, ShipmentCancelRequest from purplship import Shipment @@ -15,16 +15,38 @@ def setUp(self): self.maxDiff = None self.ShipmentRequest = ShipmentRequest(**shipment_data) self.ShipmentCancelRequest = ShipmentCancelRequest(**shipment_cancel_data) + self.MultiPieceShipmentRequest = ShipmentRequest(**multi_piece_shipment_data) def test_create_shipment_request(self): request = gateway.mapper.create_shipment_request(self.ShipmentRequest) # Remove timeStamp for testing serialized_request = re.sub( - "[^>]+", "", request.serialize() + "[^>]+", + "", + request.serialize()[0].replace( + " ", "" + ), ) self.assertEqual(serialized_request, ShipmentRequestXml) + def test_create_multi_piece_shipment_request(self): + request = gateway.mapper.create_shipment_request(self.MultiPieceShipmentRequest) + # Remove timeStamp for testing + [master_request, second_shipment_request] = [ + re.sub( + "[^>]+", + "", + request.replace( + " ", "" + ), + ) + for request in request.serialize() + ] + + self.assertEqual(master_request, MasterShipmentRequestXml) + self.assertEqual(second_shipment_request, SecondPieceShipmentRequestXml) + def test_create_cancel_shipment_request(self): request = gateway.mapper.create_cancel_shipment_request( self.ShipmentCancelRequest @@ -53,7 +75,19 @@ def test_parse_shipment_response(self): Shipment.create(self.ShipmentRequest).from_(gateway).parse() ) - self.assertEqual(DP.to_dict(parsed_response), DP.to_dict(ParsedShipmentResponse)) + self.assertListEqual(DP.to_dict(parsed_response), ParsedShipmentResponse) + + def test_parse_multi_piece_shipment_response(self): + with patch("purplship.mappers.fedex.proxy.http") as mocks: + mocks.side_effect = [ShipmentResponseXML, ShipmentResponseXML] + parsed_response = ( + Shipment.create(self.MultiPieceShipmentRequest).from_(gateway).parse() + ) + + self.assertListEqual( + DP.to_dict(parsed_response), + ParsedMultiPieceShipmentResponse, + ) def test_parse_shipment_cancel_response(self): with patch("purplship.mappers.fedex.proxy.http") as mock: @@ -110,10 +144,34 @@ def test_parse_shipment_cancel_response(self): "options": {"currency": "USD", "international_traffic_in_arms_regulations": True}, "payment": {"paid_by": "third_party", "account_number": "2349857"}, "customs": { - "duty": {"paid_by": "sender", "declared_value": "100."}, - "commodities": [{"weight": "10", "description": "test"}] - }, - "reference": "#Order 11111" + "duty": {"paid_by": "sender", "declared_value": "100."}, + "commodities": [{"weight": "10", "description": "test"}], + }, + "reference": "#Order 11111", +} + +multi_piece_shipment_data = { + **shipment_data, + "parcels": [ + { + "packaging_type": "your_packaging", + "weight_unit": "LB", + "dimension_unit": "IN", + "weight": 1.0, + "length": 12, + "width": 12, + "height": 12, + }, + { + "packaging_type": "your_packaging", + "weight_unit": "LB", + "dimension_unit": "IN", + "weight": 2.0, + "length": 11, + "width": 11, + "height": 11, + }, + ], } shipment_cancel_data = { @@ -125,9 +183,22 @@ def test_parse_shipment_cancel_response(self): { "carrier_name": "fedex", "carrier_id": "carrier_id", - "label": "iVBORw0KGgoAAAANSUhEUgAABXgAAAO2AQAAAAB6QsJkAAA28klEQVR42u2d24sk2ZnYTxCNYgyi\nQ2Yf3A9NB8bC8zrjl+3FRYWWffCLQQ/7DwjWoCfDaJtF1VapIptaXGCWSXsWvJYZOv8Evxj8MNZW\n1NZDsXhQPtogRh1FL0qDzFSUklVFTkXF8bnEucX1RMaJyCw7UlKrL1VZv4r6znf/vgPg43qBiXfi\nnXgn3ol34p14J97/d3iXE+/EuyPetcbHbBr/NQZuFky8g/EieZh4J95HzAsn3iF53zwu3gz4j4o3\nOfEeFe8GLh4V73pofZYAAFRe/De1L2/XvPfojEy8RnmDMu/KFO8Q580bkHcIfebm//9uAN50AHth\ny8/ZMO8Q9jj/5IzzJsAxxiv8nRVM0a++AV76HslgvIfeDASYNzv2bfzIe/JSAY6G4j0+cHPe5MgL\nfeQC9eSldDPKmwKj8ot5N1cwIryb9Ty2kcroyWtRz4/yxuBwC97Qr+d9vVllFvqZAbBeL9chUsk9\neUFANA/lfQ9fdOfNmAQpipz+kr2+XUUe5X2/XKfI5PXl9Uhmg/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SjP3zy0feuKnm/QrwB5v3V17+7\nP/8vo/MWXsn6L54he3HxrY/+VeU6jfvPb4J/A7/4Gv78y69/+Op8sWve1kj70Av+rXX0wrq8fuee\nBZVXGu0T787934l34p14J96Jd+KdeCfeiXfinXgn3ol34p14J96Jd+KdeCfeiXfinXgn3ol34p14\nJ96Jd+KdeCfeiXfinXgn3ol34p14J96Jd+KdeCfeiXfinXgn3ol34p14J96Jd+KdeCfeiXfinXgn\n3ol34p14J96Jd+KdeCfeiXfinXgn3ol34p14J96Jd+KdeCfeiXfinXgn3ol34p14J96Jd+KdeCfe\niXfinXgn3ol34p14J96Jd+KdeCde/vq/IYsam1SzVhkAAAAASUVORK5CYII=\n", + "label": ANY, + "tracking_number": "794947717776", + "shipment_identifier": "794947717776", + "meta": {"tracking_numbers": ["794947717776"]}, + }, + [], +] + +ParsedMultiPieceShipmentResponse = [ + { + "carrier_name": "fedex", + "carrier_id": "carrier_id", + "label": ANY, "tracking_number": "794947717776", "shipment_identifier": "794947717776", + "meta": {"tracking_numbers": ["794947717776", "794947717776"]}, }, [], ] @@ -166,7 +237,7 @@ def test_parse_shipment_cancel_response(self): 0 - + REGULAR_PICKUP INTERNATIONAL_PRIORITY YOUR_PACKAGING @@ -296,504 +367,814 @@ def test_parse_shipment_cancel_response(self): """ +MasterShipmentRequestXml = """ + + + + + user_key + password + + + + 2349857 + 1293587 + + + IE_v26_Ship + + + ship + 26 + 0 + 0 + + + + REGULAR_PICKUP + INTERNATIONAL_PRIORITY + YOUR_PACKAGING + + LB + 3 + + USD + + 2349857 + + Input Your Information + Input Your Information + Input Your Information + Input Your Information + + + Input Your Information + Input Your Information + MEMPHIS + TN + 38117 + US + United States + false + + + + + Input Your Information + Input Your Information + Input Your Information + Input Your Information + + + Input Your Information + Input Your Information + RICHMOND + BC + V7C4v7 + CA + Canada + false + + + + THIRD_PARTY + + + 2349857 + + + + + + + ON_DELIVERY + ON_ESTIMATED_DELIVERY + ON_EXCEPTION + ON_SHIPMENT + ON_TENDER + + EMAIL + + Input Your Information + Input Your Information + + + EN + + + + TEXT + + + + + + + SENDER + + + USD + 100 + + + 1 + test + + LB + + 1 + EA + + USD + + + + + COMMON2D + PDF + STOCK_4X6 + TOP_EDGE_OF_TEXT_FIRST + SHIPPING_LABEL_FIRST + + 2 + + 1 + + LB + 1 + + + 12 + 12 + 12 + IN + + + CUSTOMER_REFERENCE + #Order 11111 + + + + + + +""" + +SecondPieceShipmentRequestXml = """ + + + + + user_key + password + + + + 2349857 + 1293587 + + + IE_v26_Ship + + + ship + 26 + 0 + 0 + + + + REGULAR_PICKUP + INTERNATIONAL_PRIORITY + YOUR_PACKAGING + + LB + 3 + + USD + + 2349857 + + Input Your Information + Input Your Information + Input Your Information + Input Your Information + + + Input Your Information + Input Your Information + MEMPHIS + TN + 38117 + US + United States + false + + + + + Input Your Information + Input Your Information + Input Your Information + Input Your Information + + + Input Your Information + Input Your Information + RICHMOND + BC + V7C4v7 + CA + Canada + false + + + + THIRD_PARTY + + + 2349857 + + + + + + + ON_DELIVERY + ON_ESTIMATED_DELIVERY + ON_EXCEPTION + ON_SHIPMENT + ON_TENDER + + EMAIL + + Input Your Information + Input Your Information + + + EN + + + + TEXT + + + + + + + SENDER + + + USD + 100 + + + 1 + test + + LB + + 1 + EA + + USD + + + + + COMMON2D + PDF + STOCK_4X6 + TOP_EDGE_OF_TEXT_FIRST + SHIPPING_LABEL_FIRST + + + [MASTER_ID_TYPE] + [MASTER_TRACKING_ID] + + 2 + + 2 + + LB + 2 + + + 11 + 11 + 11 + IN + + + CUSTOMER_REFERENCE + #Order 11111 + + + + + + +""" + ShipmentResponseXML = """ - - - - SUCCESS - - SUCCESS - ship - 0000 - Success - Success - - - IE_v18_Ship - - - ship - 26 - 0 - 0 - - 4cde266f831738s010fj248460 - - false - FDXE - - FEDEX - 0430 - 794947717776 - - - INTERNATIONAL_PRIORITY - 01 - - long - utf-8 - FedEx International Priority� - - - long - ascii - FedEx International Priority - - - medium - utf-8 - FedEx International Priority� - - - medium - ascii - FedEx International Priority - - - short - utf-8 - IP - - - short - ascii - IP - - - abbrv - ascii - IP - - International Priority - IP - - - YOUR_PACKAGING - 01 - - long - utf-8 - Your Packaging - - - long - ascii - Your Packaging - - - medium - utf-8 - Your Packaging - - - medium - ascii - Your Packaging - - - small - utf-8 - Your Pkg - - - small - ascii - Your Pkg - - - short - utf-8 - Your - - - short - ascii - Your - - - abbrv - ascii - YP - - Customer Packaging - CST PKG - - - - EP1000000088 - INTERNATIONAL_TRAFFIC_IN_ARMS_REGULATIONS - 92 - - - long - utf-8 - ITAR - - - long - ascii - ITAR - - - medium - utf-8 - ITAR - - - medium - ascii - ITAR - - - short - utf-8 - ITAR - - - short - ascii - ITAR - - - - - EP1000000060 - DELIVER_WEEKDAY - 02 - - - long - utf-8 - Deliver Weekday - - - long - ascii - Deliver Weekday - - - medium - utf-8 - Deliver Weekday - - - medium - ascii - Deliver Weekday - - - short - utf-8 - WDY - - - short - ascii - WDY - - - - XQ - YVRA - NQAA - 0 - A1 - YVRA - 0 - AM - BC - false - AM - INTL PRIORITY - V7C4V7 - BC - CA - YVR - 01 - 01 - - - PAYOR_ACCOUNT_SHIPMENT - - PAYOR_ACCOUNT_SHIPMENT - 0000000 - US001O - ACTUAL - ACTUAL - - USD - USD - 1.0 - - 139 - COUNTRY - 16.5 - - LB - 20.0 - - - USD - 215.83 - - - USD - 0.0 - - - USD - 215.83 - - - USD - 35.61 - - - USD - 261.44 - - - USD - 0.0 - - - USD - 261.44 - - - USD - 0.0 - - - USD - 0.0 - - - USD - 0.0 - - - USD - 0.0 - - - USD - 261.44 - - - FUEL - Fuel - - USD - 35.61 - - - - - PAYOR_LIST_SHIPMENT - 0000000 - US001O - ACTUAL - ACTUAL - - USD - USD - 1.0 - - 139 - COUNTRY - 5.0 - - LB - 20.0 - - - USD - 215.83 - - - USD - 0.0 - - - USD - 215.83 - - - USD - 10.79 - - - USD - 226.62 - - - USD - 0.0 - - - USD - 226.62 - - - USD - 0.0 - - - USD - 0.0 - - - USD - 0.0 - - - USD - 0.0 - - - USD - 226.62 - - - FUEL - Fuel - - USD - 10.79 - - - - - NO EEI 30.37(f) - - COMMERCIAL_OR_PRO_FORMA_INVOICE - AIR_WAYBILL - - COMMERCIAL_INVOICE - 3 - OPTIONAL - OPTIONAL - - - PRO_FORMA_INVOICE - 3 - OPTIONAL - OPTIONAL - - - AIR_WAYBILL - 3 - - - - COMMERCIAL_INVOICE - RETURNED - PDF - 200 - 3 - - 1 - JVBERi0xLjQKJeLjz9MKODIgMCBvYmogPDwvU3VidHlwZS9Gb3JtL0ZpbHRlci9GbGF0ZURlY29kZS9UeXBlL1hPYmplY3QvTWF0cml4WzEgMCAwIDEgMCAwXS9Gb3JtVHlwZSAxL1Jlc291cmNlczw8L1Byb2NTZXRbL1BERi9UZXh0L0ltYWdlQi9JbWFnZUMvSW1hZ2VJXS9Gb260PDwvSGVsdiA0NSAwIFI+Pj4+L0JCb3hbMCAwIDI1Ni4zNyA5LjI1XS9MZW5ndGggMTA2Pj5zdHJlYW0KeJwrVDAEw6J0BQMgNDI10zM2V7DUMzJVKEpVSFMIVNAPqVBw8nVWKMSmIFwhDyjhFAI0ASRrqGCkYKRnaKgQkqug75GaU6ZgrhCSBpRIV9AIrswrSc3RDMkCc11DgEYHKrgCDQYAh98eZQplbmRzdHJlYW0KZW5kb2JqCjEwNiAwIG9iaiA8PC9TdWJ0eXBlL0Zvcm0vRmlsdGVyL0ZsYXRlRGVjb2RlL1R5cGUvWE9iamVjdC9NYXRyaXhbMSAwIDAgMSAwIDBdL0Zvcm1UeXBlIDEvUmVzb3VyY2VzPDwvUHJvY1NldFsvUERGL1RleHQvSW1hZ2VCL0ltYWdlQy9JbWFnZUldL0ZvbnQ8PC9IZWx2IDQ1IDAgUj4+Pj4vQkJveFswIDAgMjEyLjQ2IDEwLjM3XS9MZW5ndGggMTA0Pj5zdHJlYW0KeJwrVDAEw6J0BQMgNDI00jMxUzA00DM2VyhKVUhTCFTQD6lQcP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X - 0430 - 794947717776 - - 0 - - ITAR - - 2 - TRK# - - - 3 - 0430 - - - 5 - XQ YVRA - - - 7 - 1017547653890652726300794947717776 - - - 8 - 567J2/BE80/05A2 - - - 10 - 7949 4771 7776 - - - 12 - AM - - - 13 - INTL PRIORITY - - - 14 - ITAR - - - 15 - V7C 4V7 - - - 16 - BC-CA - - - 17 - YVR - - - - COMMON_2D - Wyk+HjAxHTAyVjdDNFY3HTEyNB0wMR03OTQ5NDc3MTc3NzYwNDMwHUZERR0xNTAwNjc2MDAdMjA2HR0xLzEdMjAuMDBMQh1OHVRlc3QgUmVjaXBpZW50IEFkZHJlc3MgTGluZTUdUklDSE1PTkQdQkMdQU5DHjA2HTEwWkVJTzA2HTExWlhUWUlVRx0xMlo5ODIyMjg3NzIxHTE0WlRlc3QgUmVjaXBpZW50IEFkZHJlc3MgTGluZTYdMTVaNzAwMzA0Mx0zMVoxMDE3NTQ3NjUzODkwNjUyNzI1MzAwNzk0OTQ3NzE3Nzc2HTMyWjAyOTIdMzlaTlFBQR05OVpFSTAwMDccVVMcMTM0HENBRBxBQkNEHE5PIEVFSSAzMC4zNyhmKRwcMTUwMDY3NjAwHR4wOR1GRFgdeh04HSsuCCAjDn9AHgQ= - - - FEDEX_1D - 1017547653890652726300794947717776 - - - - - - AUXILIARY_LABEL - RETURNED - AWB-2DCommon - PNG - 200 - 3 - - 1 - iVBORw0KGgoAAAANSUhEUgAABXgAAAO2AQAAAAB6QsJkAABK3UlEQVR42u2dT4zjWHrYqcgwN8hu08Ai8AzcaRrIwcfMYA7uwZabDvYwxz3mZHiNPfg0aRsLo2ew3UU1ynAlyMKCkYMdoBMdfMjRBwMzttvTUqGAqQAORtiTA/TWSIVKoAXWXaKWOy3WiuLL+773SL5HPvI9StWSCpZ2u6a7qiT+RH3v+/++Z5Hb9bD2vHvef068cfqXxF/z0toX8Pa8e9497553z7vn3fNumTf297x73tvKm1jWirxj+ueogre/W7yxZXlk5J+QJzlaTAKHPitw6OU69qU368Vu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6L/vT28XwHv6wLxTvL+zvyr+e989ZU7n98O3vP5q/n5Vz+fTqevXr+e3oL1Njmff/n/5vPR6PxW8I5+9bP56F/P5/3+Z7eB99Fo/mQ++mo+9/0nr+e/u/u856+XVH6/ep0ky9vB+yqZnl+9erVcJleT3eftfnnXdr907939pV+y3V/t7/2dPe+ed8+7593z7nn3vNvn3fJjz7vn3fPuefe8e9497553z7vn3fPuefe8e9497553z7vn3fPuefe8e9497553z7vn3fPuefe8e9497553z7vn3fPuefe8e9497553z7vn3fPuefe8e9497553z7vn3fPuefe8e9497553z7vn3fPuefe8e9497553z7vn3fPuefe8e9497553z7vn3fPuefe8e9497553z7vn3fPuefe8e9497553z7vn3fPuefe8e9497553z7vnXefx/wG/O2P0t4FXbQAAAABJRU5ErkJggg== - - - SERVICE_DEFAULT - - - - + + + + SUCCESS + + SUCCESS + ship + 0000 + Success + Success + + + IE_v18_Ship + + + ship + 26 + 0 + 0 + + 4cde266f831738s010fj248460 + + false + FDXE + + FEDEX + 0430 + 794947717776 + + + INTERNATIONAL_PRIORITY + 01 + + long + utf-8 + FedEx International Priority� + + + long + ascii + FedEx International Priority + + + medium + utf-8 + FedEx International Priority� + + + medium + ascii + FedEx International Priority + + + short + utf-8 + IP + + + short + ascii + IP + + + abbrv + ascii + IP + + International Priority + IP + + + YOUR_PACKAGING + 01 + + long + utf-8 + Your Packaging + + + long + ascii + Your Packaging + + + medium + utf-8 + Your Packaging + + + medium + ascii + Your Packaging + + + small + utf-8 + Your Pkg + + + small + ascii + Your Pkg + + + short + utf-8 + Your + + + short + ascii + Your + + + abbrv + ascii + YP + + Customer Packaging + CST PKG + + + + EP1000000088 + INTERNATIONAL_TRAFFIC_IN_ARMS_REGULATIONS + 92 + + + long + utf-8 + ITAR + + + long + ascii + ITAR + + + medium + utf-8 + ITAR + + + medium + ascii + ITAR + + + short + utf-8 + ITAR + + + short + ascii + ITAR + + + + + EP1000000060 + DELIVER_WEEKDAY + 02 + + + long + utf-8 + Deliver Weekday + + + long + ascii + Deliver Weekday + + + medium + utf-8 + Deliver Weekday + + + medium + ascii + Deliver Weekday + + + short + utf-8 + WDY + + + short + ascii + WDY + + + + XQ + YVRA + NQAA + 0 + A1 + YVRA + 0 + AM + BC + false + AM + INTL PRIORITY + V7C4V7 + BC + CA + YVR + 01 + 01 + + + PAYOR_ACCOUNT_SHIPMENT + + PAYOR_ACCOUNT_SHIPMENT + 0000000 + US001O + ACTUAL + ACTUAL + + USD + USD + 1.0 + + 139 + COUNTRY + 16.5 + + LB + 20.0 + + + USD + 215.83 + + + USD + 0.0 + + + USD + 215.83 + + + USD + 35.61 + + + USD + 261.44 + + + USD + 0.0 + + + USD + 261.44 + + + USD + 0.0 + + + USD + 0.0 + + + USD + 0.0 + + + USD + 0.0 + + + USD + 261.44 + + + FUEL + Fuel + + USD + 35.61 + + + + + PAYOR_LIST_SHIPMENT + 0000000 + US001O + ACTUAL + ACTUAL + + USD + USD + 1.0 + + 139 + COUNTRY + 5.0 + + LB + 20.0 + + + USD + 215.83 + + + USD + 0.0 + + + USD + 215.83 + + + USD + 10.79 + + + USD + 226.62 + + + USD + 0.0 + + + USD + 226.62 + + + USD + 0.0 + + + USD + 0.0 + + + USD + 0.0 + + + USD + 0.0 + + + USD + 226.62 + + + FUEL + Fuel + + USD + 10.79 + + + + + NO EEI 30.37(f) + + COMMERCIAL_OR_PRO_FORMA_INVOICE + AIR_WAYBILL + + COMMERCIAL_INVOICE + 3 + OPTIONAL + OPTIONAL + + + PRO_FORMA_INVOICE + 3 + OPTIONAL + OPTIONAL + + + AIR_WAYBILL + 3 + + + + COMMERCIAL_INVOICE + RETURNED + PDF + 200 + 3 + + 1 + JVBERi0xLjQKJeLjz9MKODIgMCBvYmogPDwvU3VidHlwZS9Gb3JtL0ZpbHRlci9GbGF0ZURlY29kZS9UeXBlL1hPYmplY3QvTWF0cml4WzEgMCAwIDEgMCAwXS9Gb3JtVHlwZSAxL1Jlc291cmNlczw8L1Byb2NTZXRbL1BERi9UZX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YTBkNmJmNGZhMGVkPl0vUm9vdCAxMDkgMCBSL0xlbmd0aCAzNTkvU2l6ZSAxMTI+PnN0cmVhbQp4nC3RTSjDYRwH8N8zZrbZhtmLmdDMa8gITYqacJCmpBy22bwM4+KiKBc3FxcJSUmUlByUGwfl4uLtKHJwkJNcNft+/Z/Dp6fn+T6/fs/ziIik0zqRlGRRj5KOWxElXUbYPQRDK7D/CQ4aYNgFR87gWA8MloqwQjbV0zxqoVZqUzJ/gvxhCKb6tVM5NJ8WUAMtzCT3tMy/udROi6iDOpUcD2RqKvMaKh8ZtbyRuqibmmhxJvmAZGQX6ge0vKJmJc0BrEeHYVuNtqtTYnvESozvE7uBxk5o+ITWZeiMQosPjq/C2gUYZzL+DcvqYfkibPqChUnoZT+JU9hyDt0vcCIBJ8tg1g/nz1C3D007sKYa5mzCqQ3o34aNB1Bs0PwOq95gSQT6THC6j/7CimtYwP6TF9Djha4tOMO7NPTCWT9s/eD8HtbdQYcTBpZgZRiWvsJ2vo/9EqpROLeOX7NeUaFB0cYfevRJCwplbmRzdHJlYW0KZW5kb2JqCnN0YXJ0eHJlZgo3NDYwNgolJUVPRgo= + + + + 1 + + FEDEX + 0430 + 794947717776 + + 0 + + ITAR + + 2 + TRK# + + + 3 + 0430 + + + 5 + XQ YVRA + + + 7 + 1017547653890652726300794947717776 + + + 8 + 567J2/BE80/05A2 + + + 10 + 7949 4771 7776 + + + 12 + AM + + + 13 + INTL PRIORITY + + + 14 + ITAR + + + 15 + V7C 4V7 + + + 16 + BC-CA + + + 17 + YVR + + + + COMMON_2D + Wyk+HjAxHTAyVjdDNFY3HTEyNB0wMR03OTQ5NDc3MTc3NzYwNDMwHUZERR0xNTAwNjc2MDAdMjA2HR0xLzEdMjAuMDBMQh1OHVRlc3QgUmVjaXBpZW50IEFkZHJlc3MgTGluZTUdUklDSE1PTkQdQkMdQU5DHjA2HTEwWkVJTzA2HTExWlhUWUlVRx0xMlo5ODIyMjg3NzIxHTE0WlRlc3QgUmVjaXBpZW50IEFkZHJlc3MgTGluZTYdMTVaNzAwMzA0Mx0zMVoxMDE3NTQ3NjUzODkwNjUyNzI1MzAwNzk0OTQ3NzE3Nzc2HTMyWjAyOTIdMzlaTlFBQR05OVpFSTAwMDccVVMcMTM0HENBRBxBQkNEHE5PIEVFSSAzMC4zNyhmKRwcMTUwMDY3NjAwHR4wOR1GRFgdeh04HSsuCCAjDn9AHgQ= + + + FEDEX_1D + 1017547653890652726300794947717776 + + + + + + AUXILIARY_LABEL + RETURNED + AWB-2DCommon + PNG + 200 + 3 + + 1 + iVBORw0KGgoAAAANSUhEUgAABXgAAAO2AQAAAAB6QsJkAABK3UlEQVR42u2dT4zjWHrYqcgwN8hu08Ai8AzcaRrIwcfMYA7uwZabDvYwxz3mZHiNPfg0aRsLo2ew3UU1ynAlyMKCkYMdoBMdfMjRBwMzttvTUqGAqQAORtiTA/TWSIVKoAXWXaKWOy3WiuLL+773SL5HPvI9StWSCpZ2u6a7qiT+RH3v+/++Z5Hb9bD2vHvef068cfqXxF/z0toX8Pa8e9497553z7vn3fNumTf297x73tvKm1jWirxj+ueogre/W7yxZXlk5J+QJzlaTAKHPitw6OU69qU368Vu4hCbEHr5wHIsK/+yFd5+/0WSiLyDdmx5gzZc7tPz0dV0MV3Ok8UN864mv4kPvP6hxHt8ER26xxdwuTnwzueLxXKJvOFk6MUhYV+Sx9vjpXc043WvZ6TnXoM8eDlvZO0I7xf+C/K+eH85EVzOv+rPf1eQh13gpb/jkAre/sAfe8J6u0neVfyHJH+PSl7pFYu819vhBf37tqh/3XhGhm7MLjeif+bZDymvG81IF79c3F+Hl2rN1XhH/g+TK5G3O4uI263Ry42pbgucwIracSvlPZ5Fvotfjlrr8A7aZFX98OjwStQPp5fxA+/0kl5u5JOXUzKf0zu8SPUD1870i3O6Dm+ntZL/y3nJIr+/4YQ88MMJvVy/D7z0sSDLVCq49aNfdOJZz2uPV/TXR/4j/48oj8J/6PcH7Sk1aiSkP1/crP/gRiv7O3+XtGXekF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i7W/q32v9NeXfKvhXjCwXvTvkPxfht93nl+FjBO9stXpdUxm/xLvKSyvu7jCOntWu87Upe8oNd5HWreT+Nr4fv7xovqeYd7iDvnGjv727Fb6ROfm8VL9UPnNe9HfeX3C7eoI28iXNb7u8P4tbgPnWDbwkvlV/G694aXpzGFNi3htdHTda6NfLr4ambg1vCexz34j76GLdF/w6vgTe+NbyTS+DdbX0GD7be2nF4hrzkVvAS6j90bwcv65dbxrF7O+Qh7e/z/d3mHUu87QT07y77O/m3KG/yivRiOInm9vAOI5zHfWt4z6A5Y4f9nSJvF5tfWreDl3yPuHiNwS3hpd9H/yy4Jbzfjwl2EsS3RH5/GifebtuLwnqLo95u+w8y73k8G94m3pfxJfV/d2u/SN16+1Z8NusX94vssj6Lu1G/uF9kp/UZ+me7O7+kpM8g/1Don9wlXnl/N9VnkN8p9E/uMO85jtrZsf7JGt6X7Ie71T9ZzUu+xX64W/2TNbz8h7vVP1nL65Jd2y9Sy5tM+S/cEt7l/HbxxvYtu7//E398eWvu73/AH89u2XqLyG3SZzAi81bZC8ty97z/DHlrHnvePe+e92Z55yPXdUfuPZv+x70NvF9eXU3pn+SK/vc28P73r76if14vv6L/vT28XwHv6wLxTvL+zvyr+e989ZU7n98O3vP5q/n5Vz+fTqevXr+e3oL1Njmff/n/5vPR6PxW8I5+9bP56F/P5/3+Z7eB99Fo/mQ++mo+9/0nr+e/u/u856+XVH6/ep0ky9vB+yqZnl+9erVcJleT3eftfnnXdr907939pV+y3V/t7/2dPe+ed8+7593z7nn3vNvn3fJjz7vn3fPuefe8e9497553z7vn3fPuefe8e9497553z7vn3fPuefe8e9497553z7vn3fPuefe8e9497553z7vn3fPuefe8e9497553z7vn3fPuefe8e9497553z7vn3fPuefe8e9497553z7vn3fPuefe8e9497553z7vn3fPuefe8e9497553z7vn3fPuefe8e9497553z7vn3fPuefe8e9497553z7vn3fPuefe8e9497553z7vnXefx/wG/O2P0t4FXbQAAAABJRU5ErkJggg== + + + SERVICE_DEFAULT + + + + """ diff --git a/sdk/extensions/fedex/tests/fedex/tracking.py b/sdk/extensions/fedex/tests/fedex/tracking.py index 0deb6f3ffa..3d5a0d7431 100644 --- a/sdk/extensions/fedex/tests/fedex/tracking.py +++ b/sdk/extensions/fedex/tests/fedex/tracking.py @@ -32,7 +32,9 @@ def test_parse_tracking_response(self): mock.return_value = TrackingResponseXML parsed_response = Tracking.fetch(self.TrackRequest).from_(gateway).parse() - self.assertEqual(DP.to_dict(parsed_response), DP.to_dict(ParsedTrackingResponse)) + self.assertEqual( + DP.to_dict(parsed_response), DP.to_dict(ParsedTrackingResponse) + ) def test_tracking_auth_error_parsing(self): with patch("purplship.mappers.fedex.proxy.http") as mock: @@ -73,6 +75,7 @@ def test_parse_error_tracking_response(self): "carrier_name": "fedex", "carrier_id": "carrier_id", "delivered": False, + "estimated_delivery": "2016-11-17", "events": [ { "code": "OC", diff --git a/sdk/extensions/ics_courier/poetry.lock b/sdk/extensions/ics_courier/poetry.lock deleted file mode 100644 index d715c69b14..0000000000 --- a/sdk/extensions/ics_courier/poetry.lock +++ /dev/null @@ -1,240 +0,0 @@ -[[package]] -name = "attrs" -version = "21.2.0" -description = "Classes Without Boilerplate" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" - -[package.extras] -dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit"] -docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"] -tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface"] -tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins"] - -[[package]] -name = "carrier.ics_courier" -version = "2021.2" -description = "ICS Courier Web API Schemas Python Data Types library" -category = "main" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "jstruct" -version = "2020.4.0" -description = "Readable serializable and deserializable Python nested models" -category = "main" -optional = false -python-versions = "*" - -[package.dependencies] -attrs = "*" - -[[package]] -name = "lxml" -version = "4.6.3" -description = "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API." -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*" - -[package.extras] -cssselect = ["cssselect (>=0.7)"] -html5 = ["html5lib"] -htmlsoup = ["beautifulsoup4"] -source = ["Cython (>=0.29.7)"] - -[[package]] -name = "lxml-stubs" -version = "0.1.1" -description = "Type annotations for the lxml package" -category = "main" -optional = false -python-versions = "*" - -[package.extras] -test = ["pytest (>=6.0.0)", "pytest-mypy-plugins (==1.4.0)", "coverage[toml] (==5.2)"] - -[[package]] -name = "phonenumbers" -version = "8.12.28" -description = "Python version of Google's common library for parsing, formatting, storing and validating international phone numbers." -category = "main" -optional = false -python-versions = "*" - -[[package]] -name = "pillow" -version = "8.3.1" -description = "Python Imaging Library (Fork)" -category = "main" -optional = false -python-versions = ">=3.6" - -[[package]] -name = "purplship" -version = "2021.6.2" -description = "Multi-carrier shipping API integration with python" -category = "main" -optional = false -python-versions = ">=3.7,<4.0" - -[package.dependencies] -jstruct = ">=2020.4.0,<2021.0.0" -lxml = ">=4.6.2,<5.0.0" -lxml-stubs = ">=0.1.1,<0.2.0" -phonenumbers = ">=8.12.17,<9.0.0" -Pillow = ">=8.1.0,<9.0.0" -py-soap = ">=2020.3.2,<2021.0.0" -xmltodict = ">=0.12.0,<0.13.0" - -[[package]] -name = "py-soap" -version = "2020.3.2" -description = "SOAP Schemas Python Data Types library" -category = "main" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "six" -version = "1.16.0" -description = "Python 2 and 3 compatibility utilities" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" - -[[package]] -name = "xmltodict" -version = "0.12.0" -description = "Makes working with XML feel like you are working with JSON" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.7" -content-hash = "6e6b9f9843a1fe8c031c8ada7770fbbf7900e8fe9fe8f3afd022ac4c56cc2ae3" - -[metadata.files] -attrs = [ - {file = "attrs-21.2.0-py2.py3-none-any.whl", hash = "sha256:149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1"}, - {file = "attrs-21.2.0.tar.gz", hash = "sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"}, -] -"carrier.ics_courier" = [ - {file = "carrier.ics_courier-2021.2-py3-none-any.whl", hash = "sha256:51b366a8abf7f02e45b95ee01f4bfc8296a46545c45480c9696819816d5c5927"}, -] -jstruct = [ - {file = "jstruct-2020.4.0-py3-none-any.whl", hash = "sha256:86257c1332e1ba6983d78e3199fb3dcadaf742e96c3c1a97f3ba322fa241f89c"}, -] -lxml = [ - {file = "lxml-4.6.3-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:df7c53783a46febb0e70f6b05df2ba104610f2fb0d27023409734a3ecbb78fb2"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:1b7584d421d254ab86d4f0b13ec662a9014397678a7c4265a02a6d7c2b18a75f"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:079f3ae844f38982d156efce585bc540c16a926d4436712cf4baee0cce487a3d"}, - {file = "lxml-4.6.3-cp27-cp27m-win32.whl", hash = "sha256:bc4313cbeb0e7a416a488d72f9680fffffc645f8a838bd2193809881c67dd106"}, - {file = "lxml-4.6.3-cp27-cp27m-win_amd64.whl", hash = "sha256:8157dadbb09a34a6bd95a50690595e1fa0af1a99445e2744110e3dca7831c4ee"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:7728e05c35412ba36d3e9795ae8995e3c86958179c9770e65558ec3fdfd3724f"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:4bff24dfeea62f2e56f5bab929b4428ae6caba2d1eea0c2d6eb618e30a71e6d4"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:74f7d8d439b18fa4c385f3f5dfd11144bb87c1da034a466c5b5577d23a1d9b51"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:f90ba11136bfdd25cae3951af8da2e95121c9b9b93727b1b896e3fa105b2f586"}, - {file = "lxml-4.6.3-cp35-cp35m-win32.whl", hash = "sha256:f2380a6376dfa090227b663f9678150ef27543483055cc327555fb592c5967e2"}, - {file = "lxml-4.6.3-cp35-cp35m-win_amd64.whl", hash = "sha256:c4f05c5a7c49d2fb70223d0d5bcfbe474cf928310ac9fa6a7c6dddc831d0b1d4"}, - {file = "lxml-4.6.3-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:d2e35d7bf1c1ac8c538f88d26b396e73dd81440d59c1ef8522e1ea77b345ede4"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:289e9ca1a9287f08daaf796d96e06cb2bc2958891d7911ac7cae1c5f9e1e0ee3"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:bccbfc27563652de7dc9bdc595cb25e90b59c5f8e23e806ed0fd623755b6565d"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:820628b7b3135403540202e60551e741f9b6d3304371712521be939470b454ec"}, - {file = "lxml-4.6.3-cp36-cp36m-win32.whl", hash = "sha256:5a0a14e264069c03e46f926be0d8919f4105c1623d620e7ec0e612a2e9bf1c04"}, - {file = "lxml-4.6.3-cp36-cp36m-win_amd64.whl", hash = "sha256:92e821e43ad382332eade6812e298dc9701c75fe289f2a2d39c7960b43d1e92a"}, - {file = "lxml-4.6.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:efd7a09678fd8b53117f6bae4fa3825e0a22b03ef0a932e070c0bdbb3a35e654"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:efac139c3f0bf4f0939f9375af4b02c5ad83a622de52d6dfa8e438e8e01d0eb0"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:0fbcf5565ac01dff87cbfc0ff323515c823081c5777a9fc7703ff58388c258c3"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:122fba10466c7bd4178b07dba427aa516286b846b2cbd6f6169141917283aae2"}, - {file = "lxml-4.6.3-cp37-cp37m-win32.whl", hash = "sha256:3439c71103ef0e904ea0a1901611863e51f50b5cd5e8654a151740fde5e1cade"}, - {file = "lxml-4.6.3-cp37-cp37m-win_amd64.whl", hash = "sha256:4289728b5e2000a4ad4ab8da6e1db2e093c63c08bdc0414799ee776a3f78da4b"}, - {file = "lxml-4.6.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:b007cbb845b28db4fb8b6a5cdcbf65bacb16a8bd328b53cbc0698688a68e1caa"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_i686.whl", hash = "sha256:76fa7b1362d19f8fbd3e75fe2fb7c79359b0af8747e6f7141c338f0bee2f871a"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:26e761ab5b07adf5f555ee82fb4bfc35bf93750499c6c7614bd64d12aaa67927"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:66e575c62792c3f9ca47cb8b6fab9e35bab91360c783d1606f758761810c9791"}, - {file = "lxml-4.6.3-cp38-cp38-win32.whl", hash = "sha256:89b8b22a5ff72d89d48d0e62abb14340d9e99fd637d046c27b8b257a01ffbe28"}, - {file = "lxml-4.6.3-cp38-cp38-win_amd64.whl", hash = "sha256:2a9d50e69aac3ebee695424f7dbd7b8c6d6eb7de2a2eb6b0f6c7db6aa41e02b7"}, - {file = "lxml-4.6.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:ce256aaa50f6cc9a649c51be3cd4ff142d67295bfc4f490c9134d0f9f6d58ef0"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_i686.whl", hash = "sha256:7610b8c31688f0b1be0ef882889817939490a36d0ee880ea562a4e1399c447a1"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:f8380c03e45cf09f8557bdaa41e1fa7c81f3ae22828e1db470ab2a6c96d8bc23"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:884ab9b29feaca361f7f88d811b1eea9bfca36cf3da27768d28ad45c3ee6f969"}, - {file = "lxml-4.6.3-cp39-cp39-win32.whl", hash = "sha256:33bb934a044cf32157c12bfcfbb6649807da20aa92c062ef51903415c704704f"}, - {file = "lxml-4.6.3-cp39-cp39-win_amd64.whl", hash = "sha256:542d454665a3e277f76954418124d67516c5f88e51a900365ed54a9806122b83"}, - {file = "lxml-4.6.3.tar.gz", hash = "sha256:39b78571b3b30645ac77b95f7c69d1bffc4cf8c3b157c435a34da72e78c82468"}, -] -lxml-stubs = [ - {file = "lxml-stubs-0.1.1.tar.gz", hash = "sha256:9b6a01ba4bccd6e532c01e19d2a3bc6d1d018fa0b9870236f61f315cb7b06648"}, - {file = "lxml_stubs-0.1.1-py3-none-any.whl", hash = "sha256:d34a28be0e2525b0236aff7fe67af1f61911f556cadbc61f09810b69f762b747"}, -] -phonenumbers = [ - {file = "phonenumbers-8.12.28-py2.py3-none-any.whl", hash = "sha256:f8ce05f82955d2faeefe2303350b2ccb7369dd39b6e45231a09475d67eb7e83b"}, - {file = "phonenumbers-8.12.28.tar.gz", hash = "sha256:42ea4f946d5cce0056cbce257842ea6b281e69828ad2e7f27b29d3908e5b06bd"}, -] -pillow = [ - {file = "Pillow-8.3.1-1-cp36-cp36m-win_amd64.whl", hash = "sha256:fd7eef578f5b2200d066db1b50c4aa66410786201669fb76d5238b007918fb24"}, - {file = "Pillow-8.3.1-1-cp37-cp37m-win_amd64.whl", hash = "sha256:75e09042a3b39e0ea61ce37e941221313d51a9c26b8e54e12b3ececccb71718a"}, - {file = "Pillow-8.3.1-1-cp38-cp38-win_amd64.whl", hash = "sha256:c0e0550a404c69aab1e04ae89cca3e2a042b56ab043f7f729d984bf73ed2a093"}, - {file = "Pillow-8.3.1-1-cp39-cp39-win_amd64.whl", hash = "sha256:479ab11cbd69612acefa8286481f65c5dece2002ffaa4f9db62682379ca3bb77"}, - {file = "Pillow-8.3.1-1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:f156d6ecfc747ee111c167f8faf5f4953761b5e66e91a4e6767e548d0f80129c"}, - {file = "Pillow-8.3.1-cp36-cp36m-macosx_10_10_x86_64.whl", hash = "sha256:196560dba4da7a72c5e7085fccc5938ab4075fd37fe8b5468869724109812edd"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:29c9569049d04aaacd690573a0398dbd8e0bf0255684fee512b413c2142ab723"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:c088a000dfdd88c184cc7271bfac8c5b82d9efa8637cd2b68183771e3cf56f04"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:fc214a6b75d2e0ea7745488da7da3c381f41790812988c7a92345978414fad37"}, - {file = "Pillow-8.3.1-cp36-cp36m-win32.whl", hash = "sha256:a17ca41f45cf78c2216ebfab03add7cc350c305c38ff34ef4eef66b7d76c5229"}, - {file = "Pillow-8.3.1-cp36-cp36m-win_amd64.whl", hash = "sha256:67b3666b544b953a2777cb3f5a922e991be73ab32635666ee72e05876b8a92de"}, - {file = "Pillow-8.3.1-cp37-cp37m-macosx_10_10_x86_64.whl", hash = "sha256:ff04c373477723430dce2e9d024c708a047d44cf17166bf16e604b379bf0ca14"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9364c81b252d8348e9cc0cb63e856b8f7c1b340caba6ee7a7a65c968312f7dab"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a2f381932dca2cf775811a008aa3027671ace723b7a38838045b1aee8669fdcf"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:d0da39795049a9afcaadec532e7b669b5ebbb2a9134576ebcc15dd5bdae33cc0"}, - {file = "Pillow-8.3.1-cp37-cp37m-win32.whl", hash = "sha256:2b6dfa068a8b6137da34a4936f5a816aba0ecc967af2feeb32c4393ddd671cba"}, - {file = "Pillow-8.3.1-cp37-cp37m-win_amd64.whl", hash = "sha256:a4eef1ff2d62676deabf076f963eda4da34b51bc0517c70239fafed1d5b51500"}, - {file = "Pillow-8.3.1-cp38-cp38-macosx_10_10_x86_64.whl", hash = "sha256:660a87085925c61a0dcc80efb967512ac34dbb256ff7dd2b9b4ee8dbdab58cf4"}, - {file = "Pillow-8.3.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:15a2808e269a1cf2131930183dcc0419bc77bb73eb54285dde2706ac9939fa8e"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:969cc558cca859cadf24f890fc009e1bce7d7d0386ba7c0478641a60199adf79"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:2ee77c14a0299d0541d26f3d8500bb57e081233e3fa915fa35abd02c51fa7fae"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:c11003197f908878164f0e6da15fce22373ac3fc320cda8c9d16e6bba105b844"}, - {file = "Pillow-8.3.1-cp38-cp38-win32.whl", hash = "sha256:3f08bd8d785204149b5b33e3b5f0ebbfe2190ea58d1a051c578e29e39bfd2367"}, - {file = "Pillow-8.3.1-cp38-cp38-win_amd64.whl", hash = "sha256:70af7d222df0ff81a2da601fab42decb009dc721545ed78549cb96e3a1c5f0c8"}, - {file = "Pillow-8.3.1-cp39-cp39-macosx_10_10_x86_64.whl", hash = "sha256:37730f6e68bdc6a3f02d2079c34c532330d206429f3cee651aab6b66839a9f0e"}, - {file = "Pillow-8.3.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:4bc3c7ef940eeb200ca65bd83005eb3aae8083d47e8fcbf5f0943baa50726856"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c35d09db702f4185ba22bb33ef1751ad49c266534339a5cebeb5159d364f6f82"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:0b2efa07f69dc395d95bb9ef3299f4ca29bcb2157dc615bae0b42c3c20668ffc"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:cc866706d56bd3a7dbf8bac8660c6f6462f2f2b8a49add2ba617bc0c54473d83"}, - {file = "Pillow-8.3.1-cp39-cp39-win32.whl", hash = "sha256:9a211b663cf2314edbdb4cf897beeb5c9ee3810d1d53f0e423f06d6ebbf9cd5d"}, - {file = "Pillow-8.3.1-cp39-cp39-win_amd64.whl", hash = "sha256:c2a5ff58751670292b406b9f06e07ed1446a4b13ffced6b6cab75b857485cbc8"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-macosx_10_10_x86_64.whl", hash = "sha256:c379425c2707078dfb6bfad2430728831d399dc95a7deeb92015eb4c92345eaf"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:114f816e4f73f9ec06997b2fde81a92cbf0777c9e8f462005550eed6bae57e63"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:8960a8a9f4598974e4c2aeb1bff9bdd5db03ee65fd1fce8adf3223721aa2a636"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-macosx_10_10_x86_64.whl", hash = "sha256:147bd9e71fb9dcf08357b4d530b5167941e222a6fd21f869c7911bac40b9994d"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:1fd5066cd343b5db88c048d971994e56b296868766e461b82fa4e22498f34d77"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:f4ebde71785f8bceb39dcd1e7f06bcc5d5c3cf48b9f69ab52636309387b097c8"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:1c03e24be975e2afe70dfc5da6f187eea0b49a68bb2b69db0f30a61b7031cee4"}, - {file = "Pillow-8.3.1.tar.gz", hash = "sha256:2cac53839bfc5cece8fdbe7f084d5e3ee61e1303cccc86511d351adcb9e2c792"}, -] -purplship = [ - {file = "purplship-2021.6.2-py3-none-any.whl", hash = "sha256:ded793b23664a14649f3c08ebbd344f6b58fbbc982d69481242478074ea74ff1"}, -] -py-soap = [ - {file = "py_soap-2020.3.2-py3-none-any.whl", hash = "sha256:61e2ec956d349bdd9d4c6248a2ae3c4cc4b0a2a5cf6b439b6de480a3bc2766a1"}, -] -six = [ - {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"}, - {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"}, -] -xmltodict = [ - {file = "xmltodict-0.12.0-py2.py3-none-any.whl", hash = "sha256:8bbcb45cc982f48b2ca8fe7e7827c5d792f217ecf1792626f808bf41c3b86051"}, - {file = "xmltodict-0.12.0.tar.gz", hash = "sha256:50d8c638ed7ecb88d90561beedbf720c9b4e851a9fa6c47ebd64e99d166d8a21"}, -] diff --git a/sdk/extensions/ics_courier/pyproject.toml b/sdk/extensions/ics_courier/pyproject.toml index 0107bcf31b..1c5699e866 100644 --- a/sdk/extensions/ics_courier/pyproject.toml +++ b/sdk/extensions/ics_courier/pyproject.toml @@ -1,11 +1,11 @@ [tool.poetry] name = "purplship.ics_courier" version = "2021.10" -homepage="https://docs.purplship.com" +homepage="https://next.purplship.com/docs/guides/sdk" repository="https://github.com/purplship/purplship" description = "purplship - ICS Courier Shipping Extension" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [{ include = "purplship" }] classifiers=[ diff --git a/sdk/extensions/purolator/poetry.lock b/sdk/extensions/purolator/poetry.lock deleted file mode 100644 index 3e9d7d1498..0000000000 --- a/sdk/extensions/purolator/poetry.lock +++ /dev/null @@ -1,240 +0,0 @@ -[[package]] -name = "attrs" -version = "21.2.0" -description = "Classes Without Boilerplate" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" - -[package.extras] -dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit"] -docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"] -tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface"] -tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins"] - -[[package]] -name = "carrier.purolator" -version = "2020.4.1" -description = "Purolator Web API Schemas Python Data Types library" -category = "main" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "jstruct" -version = "2020.4.0" -description = "Readable serializable and deserializable Python nested models" -category = "main" -optional = false -python-versions = "*" - -[package.dependencies] -attrs = "*" - -[[package]] -name = "lxml" -version = "4.6.3" -description = "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API." -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*" - -[package.extras] -cssselect = ["cssselect (>=0.7)"] -html5 = ["html5lib"] -htmlsoup = ["beautifulsoup4"] -source = ["Cython (>=0.29.7)"] - -[[package]] -name = "lxml-stubs" -version = "0.1.1" -description = "Type annotations for the lxml package" -category = "main" -optional = false -python-versions = "*" - -[package.extras] -test = ["pytest (>=6.0.0)", "pytest-mypy-plugins (==1.4.0)", "coverage[toml] (==5.2)"] - -[[package]] -name = "phonenumbers" -version = "8.12.28" -description = "Python version of Google's common library for parsing, formatting, storing and validating international phone numbers." -category = "main" -optional = false -python-versions = "*" - -[[package]] -name = "pillow" -version = "8.3.1" -description = "Python Imaging Library (Fork)" -category = "main" -optional = false -python-versions = ">=3.6" - -[[package]] -name = "purplship" -version = "2021.6.2" -description = "Multi-carrier shipping API integration with python" -category = "main" -optional = false -python-versions = ">=3.7,<4.0" - -[package.dependencies] -jstruct = ">=2020.4.0,<2021.0.0" -lxml = ">=4.6.2,<5.0.0" -lxml-stubs = ">=0.1.1,<0.2.0" -phonenumbers = ">=8.12.17,<9.0.0" -Pillow = ">=8.1.0,<9.0.0" -py-soap = ">=2020.3.2,<2021.0.0" -xmltodict = ">=0.12.0,<0.13.0" - -[[package]] -name = "py-soap" -version = "2020.3.2" -description = "SOAP Schemas Python Data Types library" -category = "main" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "six" -version = "1.16.0" -description = "Python 2 and 3 compatibility utilities" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" - -[[package]] -name = "xmltodict" -version = "0.12.0" -description = "Makes working with XML feel like you are working with JSON" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.7" -content-hash = "5d63defc66795d12fcfea2c840e71123639186d38f22109428604b9147031fe0" - -[metadata.files] -attrs = [ - {file = "attrs-21.2.0-py2.py3-none-any.whl", hash = "sha256:149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1"}, - {file = "attrs-21.2.0.tar.gz", hash = "sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"}, -] -"carrier.purolator" = [ - {file = "carrier.purolator-2020.4.1-py3-none-any.whl", hash = "sha256:9571870e3a47d5aba483a3a5db6dc6fa6135918b26b6878d989943652137b93b"}, -] -jstruct = [ - {file = "jstruct-2020.4.0-py3-none-any.whl", hash = "sha256:86257c1332e1ba6983d78e3199fb3dcadaf742e96c3c1a97f3ba322fa241f89c"}, -] -lxml = [ - {file = "lxml-4.6.3-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:df7c53783a46febb0e70f6b05df2ba104610f2fb0d27023409734a3ecbb78fb2"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:1b7584d421d254ab86d4f0b13ec662a9014397678a7c4265a02a6d7c2b18a75f"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:079f3ae844f38982d156efce585bc540c16a926d4436712cf4baee0cce487a3d"}, - {file = "lxml-4.6.3-cp27-cp27m-win32.whl", hash = "sha256:bc4313cbeb0e7a416a488d72f9680fffffc645f8a838bd2193809881c67dd106"}, - {file = "lxml-4.6.3-cp27-cp27m-win_amd64.whl", hash = "sha256:8157dadbb09a34a6bd95a50690595e1fa0af1a99445e2744110e3dca7831c4ee"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:7728e05c35412ba36d3e9795ae8995e3c86958179c9770e65558ec3fdfd3724f"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:4bff24dfeea62f2e56f5bab929b4428ae6caba2d1eea0c2d6eb618e30a71e6d4"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:74f7d8d439b18fa4c385f3f5dfd11144bb87c1da034a466c5b5577d23a1d9b51"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:f90ba11136bfdd25cae3951af8da2e95121c9b9b93727b1b896e3fa105b2f586"}, - {file = "lxml-4.6.3-cp35-cp35m-win32.whl", hash = "sha256:f2380a6376dfa090227b663f9678150ef27543483055cc327555fb592c5967e2"}, - {file = "lxml-4.6.3-cp35-cp35m-win_amd64.whl", hash = "sha256:c4f05c5a7c49d2fb70223d0d5bcfbe474cf928310ac9fa6a7c6dddc831d0b1d4"}, - {file = "lxml-4.6.3-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:d2e35d7bf1c1ac8c538f88d26b396e73dd81440d59c1ef8522e1ea77b345ede4"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:289e9ca1a9287f08daaf796d96e06cb2bc2958891d7911ac7cae1c5f9e1e0ee3"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:bccbfc27563652de7dc9bdc595cb25e90b59c5f8e23e806ed0fd623755b6565d"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:820628b7b3135403540202e60551e741f9b6d3304371712521be939470b454ec"}, - {file = "lxml-4.6.3-cp36-cp36m-win32.whl", hash = "sha256:5a0a14e264069c03e46f926be0d8919f4105c1623d620e7ec0e612a2e9bf1c04"}, - {file = "lxml-4.6.3-cp36-cp36m-win_amd64.whl", hash = "sha256:92e821e43ad382332eade6812e298dc9701c75fe289f2a2d39c7960b43d1e92a"}, - {file = "lxml-4.6.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:efd7a09678fd8b53117f6bae4fa3825e0a22b03ef0a932e070c0bdbb3a35e654"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:efac139c3f0bf4f0939f9375af4b02c5ad83a622de52d6dfa8e438e8e01d0eb0"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:0fbcf5565ac01dff87cbfc0ff323515c823081c5777a9fc7703ff58388c258c3"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:122fba10466c7bd4178b07dba427aa516286b846b2cbd6f6169141917283aae2"}, - {file = "lxml-4.6.3-cp37-cp37m-win32.whl", hash = "sha256:3439c71103ef0e904ea0a1901611863e51f50b5cd5e8654a151740fde5e1cade"}, - {file = "lxml-4.6.3-cp37-cp37m-win_amd64.whl", hash = "sha256:4289728b5e2000a4ad4ab8da6e1db2e093c63c08bdc0414799ee776a3f78da4b"}, - {file = "lxml-4.6.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:b007cbb845b28db4fb8b6a5cdcbf65bacb16a8bd328b53cbc0698688a68e1caa"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_i686.whl", hash = "sha256:76fa7b1362d19f8fbd3e75fe2fb7c79359b0af8747e6f7141c338f0bee2f871a"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:26e761ab5b07adf5f555ee82fb4bfc35bf93750499c6c7614bd64d12aaa67927"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:66e575c62792c3f9ca47cb8b6fab9e35bab91360c783d1606f758761810c9791"}, - {file = "lxml-4.6.3-cp38-cp38-win32.whl", hash = "sha256:89b8b22a5ff72d89d48d0e62abb14340d9e99fd637d046c27b8b257a01ffbe28"}, - {file = "lxml-4.6.3-cp38-cp38-win_amd64.whl", hash = "sha256:2a9d50e69aac3ebee695424f7dbd7b8c6d6eb7de2a2eb6b0f6c7db6aa41e02b7"}, - {file = "lxml-4.6.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:ce256aaa50f6cc9a649c51be3cd4ff142d67295bfc4f490c9134d0f9f6d58ef0"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_i686.whl", hash = "sha256:7610b8c31688f0b1be0ef882889817939490a36d0ee880ea562a4e1399c447a1"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:f8380c03e45cf09f8557bdaa41e1fa7c81f3ae22828e1db470ab2a6c96d8bc23"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:884ab9b29feaca361f7f88d811b1eea9bfca36cf3da27768d28ad45c3ee6f969"}, - {file = "lxml-4.6.3-cp39-cp39-win32.whl", hash = "sha256:33bb934a044cf32157c12bfcfbb6649807da20aa92c062ef51903415c704704f"}, - {file = "lxml-4.6.3-cp39-cp39-win_amd64.whl", hash = "sha256:542d454665a3e277f76954418124d67516c5f88e51a900365ed54a9806122b83"}, - {file = "lxml-4.6.3.tar.gz", hash = "sha256:39b78571b3b30645ac77b95f7c69d1bffc4cf8c3b157c435a34da72e78c82468"}, -] -lxml-stubs = [ - {file = "lxml-stubs-0.1.1.tar.gz", hash = "sha256:9b6a01ba4bccd6e532c01e19d2a3bc6d1d018fa0b9870236f61f315cb7b06648"}, - {file = "lxml_stubs-0.1.1-py3-none-any.whl", hash = "sha256:d34a28be0e2525b0236aff7fe67af1f61911f556cadbc61f09810b69f762b747"}, -] -phonenumbers = [ - {file = "phonenumbers-8.12.28-py2.py3-none-any.whl", hash = "sha256:f8ce05f82955d2faeefe2303350b2ccb7369dd39b6e45231a09475d67eb7e83b"}, - {file = "phonenumbers-8.12.28.tar.gz", hash = "sha256:42ea4f946d5cce0056cbce257842ea6b281e69828ad2e7f27b29d3908e5b06bd"}, -] -pillow = [ - {file = "Pillow-8.3.1-1-cp36-cp36m-win_amd64.whl", hash = "sha256:fd7eef578f5b2200d066db1b50c4aa66410786201669fb76d5238b007918fb24"}, - {file = "Pillow-8.3.1-1-cp37-cp37m-win_amd64.whl", hash = "sha256:75e09042a3b39e0ea61ce37e941221313d51a9c26b8e54e12b3ececccb71718a"}, - {file = "Pillow-8.3.1-1-cp38-cp38-win_amd64.whl", hash = "sha256:c0e0550a404c69aab1e04ae89cca3e2a042b56ab043f7f729d984bf73ed2a093"}, - {file = "Pillow-8.3.1-1-cp39-cp39-win_amd64.whl", hash = "sha256:479ab11cbd69612acefa8286481f65c5dece2002ffaa4f9db62682379ca3bb77"}, - {file = "Pillow-8.3.1-1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:f156d6ecfc747ee111c167f8faf5f4953761b5e66e91a4e6767e548d0f80129c"}, - {file = "Pillow-8.3.1-cp36-cp36m-macosx_10_10_x86_64.whl", hash = "sha256:196560dba4da7a72c5e7085fccc5938ab4075fd37fe8b5468869724109812edd"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:29c9569049d04aaacd690573a0398dbd8e0bf0255684fee512b413c2142ab723"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:c088a000dfdd88c184cc7271bfac8c5b82d9efa8637cd2b68183771e3cf56f04"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:fc214a6b75d2e0ea7745488da7da3c381f41790812988c7a92345978414fad37"}, - {file = "Pillow-8.3.1-cp36-cp36m-win32.whl", hash = "sha256:a17ca41f45cf78c2216ebfab03add7cc350c305c38ff34ef4eef66b7d76c5229"}, - {file = "Pillow-8.3.1-cp36-cp36m-win_amd64.whl", hash = "sha256:67b3666b544b953a2777cb3f5a922e991be73ab32635666ee72e05876b8a92de"}, - {file = "Pillow-8.3.1-cp37-cp37m-macosx_10_10_x86_64.whl", hash = "sha256:ff04c373477723430dce2e9d024c708a047d44cf17166bf16e604b379bf0ca14"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9364c81b252d8348e9cc0cb63e856b8f7c1b340caba6ee7a7a65c968312f7dab"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a2f381932dca2cf775811a008aa3027671ace723b7a38838045b1aee8669fdcf"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:d0da39795049a9afcaadec532e7b669b5ebbb2a9134576ebcc15dd5bdae33cc0"}, - {file = "Pillow-8.3.1-cp37-cp37m-win32.whl", hash = "sha256:2b6dfa068a8b6137da34a4936f5a816aba0ecc967af2feeb32c4393ddd671cba"}, - {file = "Pillow-8.3.1-cp37-cp37m-win_amd64.whl", hash = "sha256:a4eef1ff2d62676deabf076f963eda4da34b51bc0517c70239fafed1d5b51500"}, - {file = "Pillow-8.3.1-cp38-cp38-macosx_10_10_x86_64.whl", hash = "sha256:660a87085925c61a0dcc80efb967512ac34dbb256ff7dd2b9b4ee8dbdab58cf4"}, - {file = "Pillow-8.3.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:15a2808e269a1cf2131930183dcc0419bc77bb73eb54285dde2706ac9939fa8e"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:969cc558cca859cadf24f890fc009e1bce7d7d0386ba7c0478641a60199adf79"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:2ee77c14a0299d0541d26f3d8500bb57e081233e3fa915fa35abd02c51fa7fae"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:c11003197f908878164f0e6da15fce22373ac3fc320cda8c9d16e6bba105b844"}, - {file = "Pillow-8.3.1-cp38-cp38-win32.whl", hash = "sha256:3f08bd8d785204149b5b33e3b5f0ebbfe2190ea58d1a051c578e29e39bfd2367"}, - {file = "Pillow-8.3.1-cp38-cp38-win_amd64.whl", hash = "sha256:70af7d222df0ff81a2da601fab42decb009dc721545ed78549cb96e3a1c5f0c8"}, - {file = "Pillow-8.3.1-cp39-cp39-macosx_10_10_x86_64.whl", hash = "sha256:37730f6e68bdc6a3f02d2079c34c532330d206429f3cee651aab6b66839a9f0e"}, - {file = "Pillow-8.3.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:4bc3c7ef940eeb200ca65bd83005eb3aae8083d47e8fcbf5f0943baa50726856"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c35d09db702f4185ba22bb33ef1751ad49c266534339a5cebeb5159d364f6f82"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:0b2efa07f69dc395d95bb9ef3299f4ca29bcb2157dc615bae0b42c3c20668ffc"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:cc866706d56bd3a7dbf8bac8660c6f6462f2f2b8a49add2ba617bc0c54473d83"}, - {file = "Pillow-8.3.1-cp39-cp39-win32.whl", hash = "sha256:9a211b663cf2314edbdb4cf897beeb5c9ee3810d1d53f0e423f06d6ebbf9cd5d"}, - {file = "Pillow-8.3.1-cp39-cp39-win_amd64.whl", hash = "sha256:c2a5ff58751670292b406b9f06e07ed1446a4b13ffced6b6cab75b857485cbc8"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-macosx_10_10_x86_64.whl", hash = "sha256:c379425c2707078dfb6bfad2430728831d399dc95a7deeb92015eb4c92345eaf"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:114f816e4f73f9ec06997b2fde81a92cbf0777c9e8f462005550eed6bae57e63"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:8960a8a9f4598974e4c2aeb1bff9bdd5db03ee65fd1fce8adf3223721aa2a636"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-macosx_10_10_x86_64.whl", hash = "sha256:147bd9e71fb9dcf08357b4d530b5167941e222a6fd21f869c7911bac40b9994d"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:1fd5066cd343b5db88c048d971994e56b296868766e461b82fa4e22498f34d77"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:f4ebde71785f8bceb39dcd1e7f06bcc5d5c3cf48b9f69ab52636309387b097c8"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:1c03e24be975e2afe70dfc5da6f187eea0b49a68bb2b69db0f30a61b7031cee4"}, - {file = "Pillow-8.3.1.tar.gz", hash = "sha256:2cac53839bfc5cece8fdbe7f084d5e3ee61e1303cccc86511d351adcb9e2c792"}, -] -purplship = [ - {file = "purplship-2021.6.2-py3-none-any.whl", hash = "sha256:ded793b23664a14649f3c08ebbd344f6b58fbbc982d69481242478074ea74ff1"}, -] -py-soap = [ - {file = "py_soap-2020.3.2-py3-none-any.whl", hash = "sha256:61e2ec956d349bdd9d4c6248a2ae3c4cc4b0a2a5cf6b439b6de480a3bc2766a1"}, -] -six = [ - {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"}, - {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"}, -] -xmltodict = [ - {file = "xmltodict-0.12.0-py2.py3-none-any.whl", hash = "sha256:8bbcb45cc982f48b2ca8fe7e7827c5d792f217ecf1792626f808bf41c3b86051"}, - {file = "xmltodict-0.12.0.tar.gz", hash = "sha256:50d8c638ed7ecb88d90561beedbf720c9b4e851a9fa6c47ebd64e99d166d8a21"}, -] diff --git a/sdk/extensions/purolator/pyproject.toml b/sdk/extensions/purolator/pyproject.toml index 45f7dfce7b..3a83661f11 100644 --- a/sdk/extensions/purolator/pyproject.toml +++ b/sdk/extensions/purolator/pyproject.toml @@ -1,11 +1,11 @@ [tool.poetry] name = "purplship.purolator" version = "2021.10" -homepage="https://docs.purplship.com" +homepage="https://next.purplship.com/docs/guides/sdk" repository="https://github.com/purplship/purplship" description = "Purplship - Purolator Shipping Extension" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [{ include = "purplship" }] classifiers=[ diff --git a/sdk/extensions/royalmail/poetry.lock b/sdk/extensions/royalmail/poetry.lock deleted file mode 100644 index 5806ada089..0000000000 --- a/sdk/extensions/royalmail/poetry.lock +++ /dev/null @@ -1,239 +0,0 @@ -[[package]] -name = "attrs" -version = "21.2.0" -description = "Classes Without Boilerplate" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" - -[package.extras] -dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit"] -docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"] -tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface"] -tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins"] - -[[package]] -name = "carrier.royalmail" -version = "2021.2.1" -description = "Australia Post API Schemas Python Data Types library" -category = "main" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -jstruct = "*" - -[[package]] -name = "jstruct" -version = "2020.4.0" -description = "Readable serializable and deserializable Python nested models" -category = "main" -optional = false -python-versions = "*" - -[package.dependencies] -attrs = "*" - -[[package]] -name = "lxml" -version = "4.6.3" -description = "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API." -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*" - -[package.extras] -cssselect = ["cssselect (>=0.7)"] -html5 = ["html5lib"] -htmlsoup = ["beautifulsoup4"] -source = ["Cython (>=0.29.7)"] - -[[package]] -name = "lxml-stubs" -version = "0.1.1" -description = "Type annotations for the lxml package" -category = "main" -optional = false -python-versions = "*" - -[package.extras] -test = ["pytest (>=6.0.0)", "pytest-mypy-plugins (==1.4.0)", "coverage[toml] (==5.2)"] - -[[package]] -name = "phonenumbers" -version = "8.12.28" -description = "Python version of Google's common library for parsing, formatting, storing and validating international phone numbers." -category = "main" -optional = false -python-versions = "*" - -[[package]] -name = "pillow" -version = "8.3.1" -description = "Python Imaging Library (Fork)" -category = "main" -optional = false -python-versions = ">=3.6" - -[[package]] -name = "purplship" -version = "2021.6.2" -description = "Multi-carrier shipping API integration with python" -category = "main" -optional = false -python-versions = ">=3.7,<4.0" - -[package.dependencies] -jstruct = ">=2020.4.0,<2021.0.0" -lxml = ">=4.6.2,<5.0.0" -lxml-stubs = ">=0.1.1,<0.2.0" -phonenumbers = ">=8.12.17,<9.0.0" -Pillow = ">=8.1.0,<9.0.0" -py-soap = ">=2020.3.2,<2021.0.0" -xmltodict = ">=0.12.0,<0.13.0" - -[[package]] -name = "py-soap" -version = "2020.3.2" -description = "SOAP Schemas Python Data Types library" -category = "main" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "six" -version = "1.16.0" -description = "Python 2 and 3 compatibility utilities" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" - -[[package]] -name = "xmltodict" -version = "0.12.0" -description = "Makes working with XML feel like you are working with JSON" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.7" -content-hash = "0a59d3716c1e04251d8f1f667f38d6b7fb6615f496ee2fa67129244a34d52e48" - -[metadata.files] -attrs = [ - {file = "attrs-21.2.0-py2.py3-none-any.whl", hash = "sha256:149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1"}, - {file = "attrs-21.2.0.tar.gz", hash = "sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"}, -] -"carrier.royalmail" = [ - {file = "carrier.royalmail-2021.2.1-py3-none-any.whl", hash = "sha256:89227b38f82f3fab0b797702a8c1489302f5d4fae6303d7c2b08748239d3bca8"}, -] -jstruct = [ - {file = "jstruct-2020.4.0-py3-none-any.whl", hash = "sha256:86257c1332e1ba6983d78e3199fb3dcadaf742e96c3c1a97f3ba322fa241f89c"}, -] -lxml = [ - {file = "lxml-4.6.3-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:df7c53783a46febb0e70f6b05df2ba104610f2fb0d27023409734a3ecbb78fb2"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:1b7584d421d254ab86d4f0b13ec662a9014397678a7c4265a02a6d7c2b18a75f"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:079f3ae844f38982d156efce585bc540c16a926d4436712cf4baee0cce487a3d"}, - {file = "lxml-4.6.3-cp27-cp27m-win32.whl", hash = "sha256:bc4313cbeb0e7a416a488d72f9680fffffc645f8a838bd2193809881c67dd106"}, - {file = "lxml-4.6.3-cp27-cp27m-win_amd64.whl", hash = "sha256:8157dadbb09a34a6bd95a50690595e1fa0af1a99445e2744110e3dca7831c4ee"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:7728e05c35412ba36d3e9795ae8995e3c86958179c9770e65558ec3fdfd3724f"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:4bff24dfeea62f2e56f5bab929b4428ae6caba2d1eea0c2d6eb618e30a71e6d4"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:74f7d8d439b18fa4c385f3f5dfd11144bb87c1da034a466c5b5577d23a1d9b51"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:f90ba11136bfdd25cae3951af8da2e95121c9b9b93727b1b896e3fa105b2f586"}, - {file = "lxml-4.6.3-cp35-cp35m-win32.whl", hash = "sha256:f2380a6376dfa090227b663f9678150ef27543483055cc327555fb592c5967e2"}, - {file = "lxml-4.6.3-cp35-cp35m-win_amd64.whl", hash = "sha256:c4f05c5a7c49d2fb70223d0d5bcfbe474cf928310ac9fa6a7c6dddc831d0b1d4"}, - {file = "lxml-4.6.3-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:d2e35d7bf1c1ac8c538f88d26b396e73dd81440d59c1ef8522e1ea77b345ede4"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:289e9ca1a9287f08daaf796d96e06cb2bc2958891d7911ac7cae1c5f9e1e0ee3"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:bccbfc27563652de7dc9bdc595cb25e90b59c5f8e23e806ed0fd623755b6565d"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:820628b7b3135403540202e60551e741f9b6d3304371712521be939470b454ec"}, - {file = "lxml-4.6.3-cp36-cp36m-win32.whl", hash = "sha256:5a0a14e264069c03e46f926be0d8919f4105c1623d620e7ec0e612a2e9bf1c04"}, - {file = "lxml-4.6.3-cp36-cp36m-win_amd64.whl", hash = "sha256:92e821e43ad382332eade6812e298dc9701c75fe289f2a2d39c7960b43d1e92a"}, - {file = "lxml-4.6.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:efd7a09678fd8b53117f6bae4fa3825e0a22b03ef0a932e070c0bdbb3a35e654"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:efac139c3f0bf4f0939f9375af4b02c5ad83a622de52d6dfa8e438e8e01d0eb0"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:0fbcf5565ac01dff87cbfc0ff323515c823081c5777a9fc7703ff58388c258c3"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:122fba10466c7bd4178b07dba427aa516286b846b2cbd6f6169141917283aae2"}, - {file = "lxml-4.6.3-cp37-cp37m-win32.whl", hash = "sha256:3439c71103ef0e904ea0a1901611863e51f50b5cd5e8654a151740fde5e1cade"}, - {file = "lxml-4.6.3-cp37-cp37m-win_amd64.whl", hash = "sha256:4289728b5e2000a4ad4ab8da6e1db2e093c63c08bdc0414799ee776a3f78da4b"}, - {file = "lxml-4.6.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:b007cbb845b28db4fb8b6a5cdcbf65bacb16a8bd328b53cbc0698688a68e1caa"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_i686.whl", hash = "sha256:76fa7b1362d19f8fbd3e75fe2fb7c79359b0af8747e6f7141c338f0bee2f871a"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:26e761ab5b07adf5f555ee82fb4bfc35bf93750499c6c7614bd64d12aaa67927"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:66e575c62792c3f9ca47cb8b6fab9e35bab91360c783d1606f758761810c9791"}, - {file = "lxml-4.6.3-cp38-cp38-win32.whl", hash = "sha256:89b8b22a5ff72d89d48d0e62abb14340d9e99fd637d046c27b8b257a01ffbe28"}, - {file = "lxml-4.6.3-cp38-cp38-win_amd64.whl", hash = "sha256:2a9d50e69aac3ebee695424f7dbd7b8c6d6eb7de2a2eb6b0f6c7db6aa41e02b7"}, - {file = "lxml-4.6.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:ce256aaa50f6cc9a649c51be3cd4ff142d67295bfc4f490c9134d0f9f6d58ef0"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_i686.whl", hash = "sha256:7610b8c31688f0b1be0ef882889817939490a36d0ee880ea562a4e1399c447a1"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:f8380c03e45cf09f8557bdaa41e1fa7c81f3ae22828e1db470ab2a6c96d8bc23"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:884ab9b29feaca361f7f88d811b1eea9bfca36cf3da27768d28ad45c3ee6f969"}, - {file = "lxml-4.6.3-cp39-cp39-win32.whl", hash = "sha256:33bb934a044cf32157c12bfcfbb6649807da20aa92c062ef51903415c704704f"}, - {file = "lxml-4.6.3-cp39-cp39-win_amd64.whl", hash = "sha256:542d454665a3e277f76954418124d67516c5f88e51a900365ed54a9806122b83"}, - {file = "lxml-4.6.3.tar.gz", hash = "sha256:39b78571b3b30645ac77b95f7c69d1bffc4cf8c3b157c435a34da72e78c82468"}, -] -lxml-stubs = [ - {file = "lxml-stubs-0.1.1.tar.gz", hash = "sha256:9b6a01ba4bccd6e532c01e19d2a3bc6d1d018fa0b9870236f61f315cb7b06648"}, - {file = "lxml_stubs-0.1.1-py3-none-any.whl", hash = "sha256:d34a28be0e2525b0236aff7fe67af1f61911f556cadbc61f09810b69f762b747"}, -] -phonenumbers = [ - {file = "phonenumbers-8.12.28-py2.py3-none-any.whl", hash = "sha256:f8ce05f82955d2faeefe2303350b2ccb7369dd39b6e45231a09475d67eb7e83b"}, - {file = "phonenumbers-8.12.28.tar.gz", hash = "sha256:42ea4f946d5cce0056cbce257842ea6b281e69828ad2e7f27b29d3908e5b06bd"}, -] -pillow = [ - {file = "Pillow-8.3.1-1-cp36-cp36m-win_amd64.whl", hash = "sha256:fd7eef578f5b2200d066db1b50c4aa66410786201669fb76d5238b007918fb24"}, - {file = "Pillow-8.3.1-1-cp37-cp37m-win_amd64.whl", hash = "sha256:75e09042a3b39e0ea61ce37e941221313d51a9c26b8e54e12b3ececccb71718a"}, - {file = "Pillow-8.3.1-1-cp38-cp38-win_amd64.whl", hash = "sha256:c0e0550a404c69aab1e04ae89cca3e2a042b56ab043f7f729d984bf73ed2a093"}, - {file = "Pillow-8.3.1-1-cp39-cp39-win_amd64.whl", hash = "sha256:479ab11cbd69612acefa8286481f65c5dece2002ffaa4f9db62682379ca3bb77"}, - {file = "Pillow-8.3.1-1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:f156d6ecfc747ee111c167f8faf5f4953761b5e66e91a4e6767e548d0f80129c"}, - {file = "Pillow-8.3.1-cp36-cp36m-macosx_10_10_x86_64.whl", hash = "sha256:196560dba4da7a72c5e7085fccc5938ab4075fd37fe8b5468869724109812edd"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:29c9569049d04aaacd690573a0398dbd8e0bf0255684fee512b413c2142ab723"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:c088a000dfdd88c184cc7271bfac8c5b82d9efa8637cd2b68183771e3cf56f04"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:fc214a6b75d2e0ea7745488da7da3c381f41790812988c7a92345978414fad37"}, - {file = "Pillow-8.3.1-cp36-cp36m-win32.whl", hash = "sha256:a17ca41f45cf78c2216ebfab03add7cc350c305c38ff34ef4eef66b7d76c5229"}, - {file = "Pillow-8.3.1-cp36-cp36m-win_amd64.whl", hash = "sha256:67b3666b544b953a2777cb3f5a922e991be73ab32635666ee72e05876b8a92de"}, - {file = "Pillow-8.3.1-cp37-cp37m-macosx_10_10_x86_64.whl", hash = "sha256:ff04c373477723430dce2e9d024c708a047d44cf17166bf16e604b379bf0ca14"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9364c81b252d8348e9cc0cb63e856b8f7c1b340caba6ee7a7a65c968312f7dab"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a2f381932dca2cf775811a008aa3027671ace723b7a38838045b1aee8669fdcf"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:d0da39795049a9afcaadec532e7b669b5ebbb2a9134576ebcc15dd5bdae33cc0"}, - {file = "Pillow-8.3.1-cp37-cp37m-win32.whl", hash = "sha256:2b6dfa068a8b6137da34a4936f5a816aba0ecc967af2feeb32c4393ddd671cba"}, - {file = "Pillow-8.3.1-cp37-cp37m-win_amd64.whl", hash = "sha256:a4eef1ff2d62676deabf076f963eda4da34b51bc0517c70239fafed1d5b51500"}, - {file = "Pillow-8.3.1-cp38-cp38-macosx_10_10_x86_64.whl", hash = "sha256:660a87085925c61a0dcc80efb967512ac34dbb256ff7dd2b9b4ee8dbdab58cf4"}, - {file = "Pillow-8.3.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:15a2808e269a1cf2131930183dcc0419bc77bb73eb54285dde2706ac9939fa8e"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:969cc558cca859cadf24f890fc009e1bce7d7d0386ba7c0478641a60199adf79"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:2ee77c14a0299d0541d26f3d8500bb57e081233e3fa915fa35abd02c51fa7fae"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:c11003197f908878164f0e6da15fce22373ac3fc320cda8c9d16e6bba105b844"}, - {file = "Pillow-8.3.1-cp38-cp38-win32.whl", hash = "sha256:3f08bd8d785204149b5b33e3b5f0ebbfe2190ea58d1a051c578e29e39bfd2367"}, - {file = "Pillow-8.3.1-cp38-cp38-win_amd64.whl", hash = "sha256:70af7d222df0ff81a2da601fab42decb009dc721545ed78549cb96e3a1c5f0c8"}, - {file = "Pillow-8.3.1-cp39-cp39-macosx_10_10_x86_64.whl", hash = "sha256:37730f6e68bdc6a3f02d2079c34c532330d206429f3cee651aab6b66839a9f0e"}, - {file = "Pillow-8.3.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:4bc3c7ef940eeb200ca65bd83005eb3aae8083d47e8fcbf5f0943baa50726856"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c35d09db702f4185ba22bb33ef1751ad49c266534339a5cebeb5159d364f6f82"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:0b2efa07f69dc395d95bb9ef3299f4ca29bcb2157dc615bae0b42c3c20668ffc"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:cc866706d56bd3a7dbf8bac8660c6f6462f2f2b8a49add2ba617bc0c54473d83"}, - {file = "Pillow-8.3.1-cp39-cp39-win32.whl", hash = "sha256:9a211b663cf2314edbdb4cf897beeb5c9ee3810d1d53f0e423f06d6ebbf9cd5d"}, - {file = "Pillow-8.3.1-cp39-cp39-win_amd64.whl", hash = "sha256:c2a5ff58751670292b406b9f06e07ed1446a4b13ffced6b6cab75b857485cbc8"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-macosx_10_10_x86_64.whl", hash = "sha256:c379425c2707078dfb6bfad2430728831d399dc95a7deeb92015eb4c92345eaf"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:114f816e4f73f9ec06997b2fde81a92cbf0777c9e8f462005550eed6bae57e63"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:8960a8a9f4598974e4c2aeb1bff9bdd5db03ee65fd1fce8adf3223721aa2a636"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-macosx_10_10_x86_64.whl", hash = "sha256:147bd9e71fb9dcf08357b4d530b5167941e222a6fd21f869c7911bac40b9994d"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:1fd5066cd343b5db88c048d971994e56b296868766e461b82fa4e22498f34d77"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:f4ebde71785f8bceb39dcd1e7f06bcc5d5c3cf48b9f69ab52636309387b097c8"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:1c03e24be975e2afe70dfc5da6f187eea0b49a68bb2b69db0f30a61b7031cee4"}, - {file = "Pillow-8.3.1.tar.gz", hash = "sha256:2cac53839bfc5cece8fdbe7f084d5e3ee61e1303cccc86511d351adcb9e2c792"}, -] -purplship = [ - {file = "purplship-2021.6.2-py3-none-any.whl", hash = "sha256:ded793b23664a14649f3c08ebbd344f6b58fbbc982d69481242478074ea74ff1"}, -] -py-soap = [ - {file = "py_soap-2020.3.2-py3-none-any.whl", hash = "sha256:61e2ec956d349bdd9d4c6248a2ae3c4cc4b0a2a5cf6b439b6de480a3bc2766a1"}, -] -six = [ - {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"}, - {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"}, -] -xmltodict = [ - {file = "xmltodict-0.12.0-py2.py3-none-any.whl", hash = "sha256:8bbcb45cc982f48b2ca8fe7e7827c5d792f217ecf1792626f808bf41c3b86051"}, - {file = "xmltodict-0.12.0.tar.gz", hash = "sha256:50d8c638ed7ecb88d90561beedbf720c9b4e851a9fa6c47ebd64e99d166d8a21"}, -] diff --git a/sdk/extensions/royalmail/purplship/providers/royalmail/tracking.py b/sdk/extensions/royalmail/purplship/providers/royalmail/tracking.py index 1bfb9697fb..5dc2e46624 100644 --- a/sdk/extensions/royalmail/purplship/providers/royalmail/tracking.py +++ b/sdk/extensions/royalmail/purplship/providers/royalmail/tracking.py @@ -15,11 +15,14 @@ from purplship.providers.royalmail.error import parse_error_response -def parse_tracking_response(response: List[dict], settings: Settings) -> Tuple[List[TrackingDetails], List[Message]]: - errors = [e for e in response if 'mailPieces' not in e] +def parse_tracking_response( + response: List[dict], settings: Settings +) -> Tuple[List[TrackingDetails], List[Message]]: + errors = [e for e in response if "mailPieces" not in e] details = [ - _extract_detail(DP.to_object(MailPieces, d['mailPieces']), settings) - for d in response if 'mailPieces' in d + _extract_detail(DP.to_object(MailPieces, d["mailPieces"]), settings) + for d in response + if "mailPieces" in d ] return details, parse_error_response(errors, settings) @@ -30,17 +33,19 @@ def _extract_detail(detail: MailPieces, settings: Settings) -> TrackingDetails: return TrackingDetails( carrier_name=settings.carrier_name, carrier_id=settings.carrier_id, - tracking_number=detail.mailPieceId, + delivered=("Delivered" in detail.summary.get("lastEventName")), events=[ TrackingEvent( - date=DF.fdate(event.eventDateTime, '%Y-%m-%dT%H:%M:%S%z'), + date=DF.fdate(event.eventDateTime, "%Y-%m-%dT%H:%M:%S%z"), description=event.eventName, location=event.locationName, code=event.eventCode, - time=DF.ftime(event.eventDateTime, '%Y-%m-%dT%H:%M:%S%z'), - ) for event in detail.events + time=DF.ftime(event.eventDateTime, "%Y-%m-%dT%H:%M:%S%z"), + ) + for event in detail.events ], + estimated_delivery=DF.fdate(detail.estimatedDelivery.get("date"), "%Y-%m-%d"), ) diff --git a/sdk/extensions/royalmail/pyproject.toml b/sdk/extensions/royalmail/pyproject.toml index 7dab4e5a68..2cfbb25d54 100644 --- a/sdk/extensions/royalmail/pyproject.toml +++ b/sdk/extensions/royalmail/pyproject.toml @@ -1,11 +1,11 @@ [tool.poetry] name = "purplship.royalmail" -version = "2021.10" -homepage="https://docs.purplship.com" +version = "2021.11" +homepage="https://next.purplship.com/docs/guides/sdk" repository="https://github.com/purplship/purplship" description = "Purplship - Royal Mail Shipping Extension" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [{ include = "purplship" }] classifiers=[ diff --git a/sdk/extensions/royalmail/tests/royalmail/tracking.py b/sdk/extensions/royalmail/tests/royalmail/tracking.py index 246722903c..4b9ef1a708 100644 --- a/sdk/extensions/royalmail/tests/royalmail/tracking.py +++ b/sdk/extensions/royalmail/tests/royalmail/tracking.py @@ -59,6 +59,8 @@ def test_parse_tracking_error_response(self): { "carrier_id": "royalmail", "carrier_name": "royalmail", + "delivered": False, + "estimated_delivery": "2017-02-20", "events": [ { "code": "EVNMI", diff --git a/sdk/extensions/sendle/poetry.lock b/sdk/extensions/sendle/poetry.lock deleted file mode 100644 index 469571fdc8..0000000000 --- a/sdk/extensions/sendle/poetry.lock +++ /dev/null @@ -1,239 +0,0 @@ -[[package]] -name = "attrs" -version = "21.2.0" -description = "Classes Without Boilerplate" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" - -[package.extras] -dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit"] -docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"] -tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface"] -tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins"] - -[[package]] -name = "carrier.sendle" -version = "2021.2.1" -description = "Sendle API Schemas Python Data Types library" -category = "main" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -jstruct = "*" - -[[package]] -name = "jstruct" -version = "2020.4.0" -description = "Readable serializable and deserializable Python nested models" -category = "main" -optional = false -python-versions = "*" - -[package.dependencies] -attrs = "*" - -[[package]] -name = "lxml" -version = "4.6.3" -description = "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API." -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*" - -[package.extras] -cssselect = ["cssselect (>=0.7)"] -html5 = ["html5lib"] -htmlsoup = ["beautifulsoup4"] -source = ["Cython (>=0.29.7)"] - -[[package]] -name = "lxml-stubs" -version = "0.1.1" -description = "Type annotations for the lxml package" -category = "main" -optional = false -python-versions = "*" - -[package.extras] -test = ["pytest (>=6.0.0)", "pytest-mypy-plugins (==1.4.0)", "coverage[toml] (==5.2)"] - -[[package]] -name = "phonenumbers" -version = "8.12.28" -description = "Python version of Google's common library for parsing, formatting, storing and validating international phone numbers." -category = "main" -optional = false -python-versions = "*" - -[[package]] -name = "pillow" -version = "8.3.1" -description = "Python Imaging Library (Fork)" -category = "main" -optional = false -python-versions = ">=3.6" - -[[package]] -name = "purplship" -version = "2021.6.2" -description = "Multi-carrier shipping API integration with python" -category = "main" -optional = false -python-versions = ">=3.7,<4.0" - -[package.dependencies] -jstruct = ">=2020.4.0,<2021.0.0" -lxml = ">=4.6.2,<5.0.0" -lxml-stubs = ">=0.1.1,<0.2.0" -phonenumbers = ">=8.12.17,<9.0.0" -Pillow = ">=8.1.0,<9.0.0" -py-soap = ">=2020.3.2,<2021.0.0" -xmltodict = ">=0.12.0,<0.13.0" - -[[package]] -name = "py-soap" -version = "2020.3.2" -description = "SOAP Schemas Python Data Types library" -category = "main" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "six" -version = "1.16.0" -description = "Python 2 and 3 compatibility utilities" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" - -[[package]] -name = "xmltodict" -version = "0.12.0" -description = "Makes working with XML feel like you are working with JSON" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.7" -content-hash = "164978b01fbe33b11e8482cf6a1fa6cfb5c31884667d4501d5e8470ddf39aed9" - -[metadata.files] -attrs = [ - {file = "attrs-21.2.0-py2.py3-none-any.whl", hash = "sha256:149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1"}, - {file = "attrs-21.2.0.tar.gz", hash = "sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"}, -] -"carrier.sendle" = [ - {file = "carrier.sendle-2021.2.1-py3-none-any.whl", hash = "sha256:9892fc9a1d306d85a6c6899417f8d1a3502b2d303762fc8300cbbe478a23bec4"}, -] -jstruct = [ - {file = "jstruct-2020.4.0-py3-none-any.whl", hash = "sha256:86257c1332e1ba6983d78e3199fb3dcadaf742e96c3c1a97f3ba322fa241f89c"}, -] -lxml = [ - {file = "lxml-4.6.3-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:df7c53783a46febb0e70f6b05df2ba104610f2fb0d27023409734a3ecbb78fb2"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:1b7584d421d254ab86d4f0b13ec662a9014397678a7c4265a02a6d7c2b18a75f"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:079f3ae844f38982d156efce585bc540c16a926d4436712cf4baee0cce487a3d"}, - {file = "lxml-4.6.3-cp27-cp27m-win32.whl", hash = "sha256:bc4313cbeb0e7a416a488d72f9680fffffc645f8a838bd2193809881c67dd106"}, - {file = "lxml-4.6.3-cp27-cp27m-win_amd64.whl", hash = "sha256:8157dadbb09a34a6bd95a50690595e1fa0af1a99445e2744110e3dca7831c4ee"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:7728e05c35412ba36d3e9795ae8995e3c86958179c9770e65558ec3fdfd3724f"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:4bff24dfeea62f2e56f5bab929b4428ae6caba2d1eea0c2d6eb618e30a71e6d4"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:74f7d8d439b18fa4c385f3f5dfd11144bb87c1da034a466c5b5577d23a1d9b51"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:f90ba11136bfdd25cae3951af8da2e95121c9b9b93727b1b896e3fa105b2f586"}, - {file = "lxml-4.6.3-cp35-cp35m-win32.whl", hash = "sha256:f2380a6376dfa090227b663f9678150ef27543483055cc327555fb592c5967e2"}, - {file = "lxml-4.6.3-cp35-cp35m-win_amd64.whl", hash = "sha256:c4f05c5a7c49d2fb70223d0d5bcfbe474cf928310ac9fa6a7c6dddc831d0b1d4"}, - {file = "lxml-4.6.3-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:d2e35d7bf1c1ac8c538f88d26b396e73dd81440d59c1ef8522e1ea77b345ede4"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:289e9ca1a9287f08daaf796d96e06cb2bc2958891d7911ac7cae1c5f9e1e0ee3"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:bccbfc27563652de7dc9bdc595cb25e90b59c5f8e23e806ed0fd623755b6565d"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:820628b7b3135403540202e60551e741f9b6d3304371712521be939470b454ec"}, - {file = "lxml-4.6.3-cp36-cp36m-win32.whl", hash = "sha256:5a0a14e264069c03e46f926be0d8919f4105c1623d620e7ec0e612a2e9bf1c04"}, - {file = "lxml-4.6.3-cp36-cp36m-win_amd64.whl", hash = "sha256:92e821e43ad382332eade6812e298dc9701c75fe289f2a2d39c7960b43d1e92a"}, - {file = "lxml-4.6.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:efd7a09678fd8b53117f6bae4fa3825e0a22b03ef0a932e070c0bdbb3a35e654"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:efac139c3f0bf4f0939f9375af4b02c5ad83a622de52d6dfa8e438e8e01d0eb0"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:0fbcf5565ac01dff87cbfc0ff323515c823081c5777a9fc7703ff58388c258c3"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:122fba10466c7bd4178b07dba427aa516286b846b2cbd6f6169141917283aae2"}, - {file = "lxml-4.6.3-cp37-cp37m-win32.whl", hash = "sha256:3439c71103ef0e904ea0a1901611863e51f50b5cd5e8654a151740fde5e1cade"}, - {file = "lxml-4.6.3-cp37-cp37m-win_amd64.whl", hash = "sha256:4289728b5e2000a4ad4ab8da6e1db2e093c63c08bdc0414799ee776a3f78da4b"}, - {file = "lxml-4.6.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:b007cbb845b28db4fb8b6a5cdcbf65bacb16a8bd328b53cbc0698688a68e1caa"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_i686.whl", hash = "sha256:76fa7b1362d19f8fbd3e75fe2fb7c79359b0af8747e6f7141c338f0bee2f871a"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:26e761ab5b07adf5f555ee82fb4bfc35bf93750499c6c7614bd64d12aaa67927"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:66e575c62792c3f9ca47cb8b6fab9e35bab91360c783d1606f758761810c9791"}, - {file = "lxml-4.6.3-cp38-cp38-win32.whl", hash = "sha256:89b8b22a5ff72d89d48d0e62abb14340d9e99fd637d046c27b8b257a01ffbe28"}, - {file = "lxml-4.6.3-cp38-cp38-win_amd64.whl", hash = "sha256:2a9d50e69aac3ebee695424f7dbd7b8c6d6eb7de2a2eb6b0f6c7db6aa41e02b7"}, - {file = "lxml-4.6.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:ce256aaa50f6cc9a649c51be3cd4ff142d67295bfc4f490c9134d0f9f6d58ef0"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_i686.whl", hash = "sha256:7610b8c31688f0b1be0ef882889817939490a36d0ee880ea562a4e1399c447a1"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:f8380c03e45cf09f8557bdaa41e1fa7c81f3ae22828e1db470ab2a6c96d8bc23"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:884ab9b29feaca361f7f88d811b1eea9bfca36cf3da27768d28ad45c3ee6f969"}, - {file = "lxml-4.6.3-cp39-cp39-win32.whl", hash = "sha256:33bb934a044cf32157c12bfcfbb6649807da20aa92c062ef51903415c704704f"}, - {file = "lxml-4.6.3-cp39-cp39-win_amd64.whl", hash = "sha256:542d454665a3e277f76954418124d67516c5f88e51a900365ed54a9806122b83"}, - {file = "lxml-4.6.3.tar.gz", hash = "sha256:39b78571b3b30645ac77b95f7c69d1bffc4cf8c3b157c435a34da72e78c82468"}, -] -lxml-stubs = [ - {file = "lxml-stubs-0.1.1.tar.gz", hash = "sha256:9b6a01ba4bccd6e532c01e19d2a3bc6d1d018fa0b9870236f61f315cb7b06648"}, - {file = "lxml_stubs-0.1.1-py3-none-any.whl", hash = "sha256:d34a28be0e2525b0236aff7fe67af1f61911f556cadbc61f09810b69f762b747"}, -] -phonenumbers = [ - {file = "phonenumbers-8.12.28-py2.py3-none-any.whl", hash = "sha256:f8ce05f82955d2faeefe2303350b2ccb7369dd39b6e45231a09475d67eb7e83b"}, - {file = "phonenumbers-8.12.28.tar.gz", hash = "sha256:42ea4f946d5cce0056cbce257842ea6b281e69828ad2e7f27b29d3908e5b06bd"}, -] -pillow = [ - {file = "Pillow-8.3.1-1-cp36-cp36m-win_amd64.whl", hash = "sha256:fd7eef578f5b2200d066db1b50c4aa66410786201669fb76d5238b007918fb24"}, - {file = "Pillow-8.3.1-1-cp37-cp37m-win_amd64.whl", hash = "sha256:75e09042a3b39e0ea61ce37e941221313d51a9c26b8e54e12b3ececccb71718a"}, - {file = "Pillow-8.3.1-1-cp38-cp38-win_amd64.whl", hash = "sha256:c0e0550a404c69aab1e04ae89cca3e2a042b56ab043f7f729d984bf73ed2a093"}, - {file = "Pillow-8.3.1-1-cp39-cp39-win_amd64.whl", hash = "sha256:479ab11cbd69612acefa8286481f65c5dece2002ffaa4f9db62682379ca3bb77"}, - {file = "Pillow-8.3.1-1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:f156d6ecfc747ee111c167f8faf5f4953761b5e66e91a4e6767e548d0f80129c"}, - {file = "Pillow-8.3.1-cp36-cp36m-macosx_10_10_x86_64.whl", hash = "sha256:196560dba4da7a72c5e7085fccc5938ab4075fd37fe8b5468869724109812edd"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:29c9569049d04aaacd690573a0398dbd8e0bf0255684fee512b413c2142ab723"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:c088a000dfdd88c184cc7271bfac8c5b82d9efa8637cd2b68183771e3cf56f04"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:fc214a6b75d2e0ea7745488da7da3c381f41790812988c7a92345978414fad37"}, - {file = "Pillow-8.3.1-cp36-cp36m-win32.whl", hash = "sha256:a17ca41f45cf78c2216ebfab03add7cc350c305c38ff34ef4eef66b7d76c5229"}, - {file = "Pillow-8.3.1-cp36-cp36m-win_amd64.whl", hash = "sha256:67b3666b544b953a2777cb3f5a922e991be73ab32635666ee72e05876b8a92de"}, - {file = "Pillow-8.3.1-cp37-cp37m-macosx_10_10_x86_64.whl", hash = "sha256:ff04c373477723430dce2e9d024c708a047d44cf17166bf16e604b379bf0ca14"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9364c81b252d8348e9cc0cb63e856b8f7c1b340caba6ee7a7a65c968312f7dab"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a2f381932dca2cf775811a008aa3027671ace723b7a38838045b1aee8669fdcf"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:d0da39795049a9afcaadec532e7b669b5ebbb2a9134576ebcc15dd5bdae33cc0"}, - {file = "Pillow-8.3.1-cp37-cp37m-win32.whl", hash = "sha256:2b6dfa068a8b6137da34a4936f5a816aba0ecc967af2feeb32c4393ddd671cba"}, - {file = "Pillow-8.3.1-cp37-cp37m-win_amd64.whl", hash = "sha256:a4eef1ff2d62676deabf076f963eda4da34b51bc0517c70239fafed1d5b51500"}, - {file = "Pillow-8.3.1-cp38-cp38-macosx_10_10_x86_64.whl", hash = "sha256:660a87085925c61a0dcc80efb967512ac34dbb256ff7dd2b9b4ee8dbdab58cf4"}, - {file = "Pillow-8.3.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:15a2808e269a1cf2131930183dcc0419bc77bb73eb54285dde2706ac9939fa8e"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:969cc558cca859cadf24f890fc009e1bce7d7d0386ba7c0478641a60199adf79"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:2ee77c14a0299d0541d26f3d8500bb57e081233e3fa915fa35abd02c51fa7fae"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:c11003197f908878164f0e6da15fce22373ac3fc320cda8c9d16e6bba105b844"}, - {file = "Pillow-8.3.1-cp38-cp38-win32.whl", hash = "sha256:3f08bd8d785204149b5b33e3b5f0ebbfe2190ea58d1a051c578e29e39bfd2367"}, - {file = "Pillow-8.3.1-cp38-cp38-win_amd64.whl", hash = "sha256:70af7d222df0ff81a2da601fab42decb009dc721545ed78549cb96e3a1c5f0c8"}, - {file = "Pillow-8.3.1-cp39-cp39-macosx_10_10_x86_64.whl", hash = "sha256:37730f6e68bdc6a3f02d2079c34c532330d206429f3cee651aab6b66839a9f0e"}, - {file = "Pillow-8.3.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:4bc3c7ef940eeb200ca65bd83005eb3aae8083d47e8fcbf5f0943baa50726856"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c35d09db702f4185ba22bb33ef1751ad49c266534339a5cebeb5159d364f6f82"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:0b2efa07f69dc395d95bb9ef3299f4ca29bcb2157dc615bae0b42c3c20668ffc"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:cc866706d56bd3a7dbf8bac8660c6f6462f2f2b8a49add2ba617bc0c54473d83"}, - {file = "Pillow-8.3.1-cp39-cp39-win32.whl", hash = "sha256:9a211b663cf2314edbdb4cf897beeb5c9ee3810d1d53f0e423f06d6ebbf9cd5d"}, - {file = "Pillow-8.3.1-cp39-cp39-win_amd64.whl", hash = "sha256:c2a5ff58751670292b406b9f06e07ed1446a4b13ffced6b6cab75b857485cbc8"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-macosx_10_10_x86_64.whl", hash = "sha256:c379425c2707078dfb6bfad2430728831d399dc95a7deeb92015eb4c92345eaf"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:114f816e4f73f9ec06997b2fde81a92cbf0777c9e8f462005550eed6bae57e63"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:8960a8a9f4598974e4c2aeb1bff9bdd5db03ee65fd1fce8adf3223721aa2a636"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-macosx_10_10_x86_64.whl", hash = "sha256:147bd9e71fb9dcf08357b4d530b5167941e222a6fd21f869c7911bac40b9994d"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:1fd5066cd343b5db88c048d971994e56b296868766e461b82fa4e22498f34d77"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:f4ebde71785f8bceb39dcd1e7f06bcc5d5c3cf48b9f69ab52636309387b097c8"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:1c03e24be975e2afe70dfc5da6f187eea0b49a68bb2b69db0f30a61b7031cee4"}, - {file = "Pillow-8.3.1.tar.gz", hash = "sha256:2cac53839bfc5cece8fdbe7f084d5e3ee61e1303cccc86511d351adcb9e2c792"}, -] -purplship = [ - {file = "purplship-2021.6.2-py3-none-any.whl", hash = "sha256:ded793b23664a14649f3c08ebbd344f6b58fbbc982d69481242478074ea74ff1"}, -] -py-soap = [ - {file = "py_soap-2020.3.2-py3-none-any.whl", hash = "sha256:61e2ec956d349bdd9d4c6248a2ae3c4cc4b0a2a5cf6b439b6de480a3bc2766a1"}, -] -six = [ - {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"}, - {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"}, -] -xmltodict = [ - {file = "xmltodict-0.12.0-py2.py3-none-any.whl", hash = "sha256:8bbcb45cc982f48b2ca8fe7e7827c5d792f217ecf1792626f808bf41c3b86051"}, - {file = "xmltodict-0.12.0.tar.gz", hash = "sha256:50d8c638ed7ecb88d90561beedbf720c9b4e851a9fa6c47ebd64e99d166d8a21"}, -] diff --git a/sdk/extensions/sendle/purplship/mappers/sendle/proxy.py b/sdk/extensions/sendle/purplship/mappers/sendle/proxy.py index ea7ee1e5ec..d69a53a9e4 100644 --- a/sdk/extensions/sendle/purplship/mappers/sendle/proxy.py +++ b/sdk/extensions/sendle/purplship/mappers/sendle/proxy.py @@ -1,5 +1,11 @@ from typing import List, Tuple -from purplship.core.utils import DP, request as http, Serializable, Deserializable, exec_async +from purplship.core.utils import ( + DP, + request as http, + Serializable, + Deserializable, + exec_async, +) from purplship.api.proxy import Proxy as BaseProxy from purplship.mappers.sendle.settings import Settings @@ -9,21 +15,26 @@ class Proxy(BaseProxy): """ Proxy Methods """ - def get_tracking(self, request: Serializable) -> Deserializable[List[Tuple[str, str]]]: - + def get_tracking( + self, request: Serializable + ) -> Deserializable[List[Tuple[str, dict]]]: def _get_tracking(ref: str): response = http( url=f"{self.settings.server_url}/api/tracking/{ref}", headers={ "Accept": "application/json", - "Authorization": f"Basic {self.settings.authorization}" + "Authorization": f"Basic {self.settings.authorization}", }, method="GET", ) return ref, response - responses: List[Tuple[str, str]] = exec_async(_get_tracking, request.serialize()) + responses: List[Tuple[str, str]] = exec_async( + _get_tracking, request.serialize() + ) return Deserializable( responses, - lambda res: [(num, DP.to_dict(track)) for num, track in res if any(track.strip())] + lambda res: [ + (num, DP.to_dict(track)) for num, track in res if any(track.strip()) + ], ) diff --git a/sdk/extensions/sendle/purplship/providers/sendle/tracking.py b/sdk/extensions/sendle/purplship/providers/sendle/tracking.py index 1fc7e50c32..ebdc22cc2a 100644 --- a/sdk/extensions/sendle/purplship/providers/sendle/tracking.py +++ b/sdk/extensions/sendle/purplship/providers/sendle/tracking.py @@ -1,5 +1,5 @@ from typing import List, Tuple -from sendle_lib.tracking import Tracking +from sendle_lib.tracking_response import Tracking from purplship.core.utils import ( Serializable, DF, @@ -15,35 +15,45 @@ from purplship.providers.sendle.error import parse_error_response -def parse_tracking_response(response: List[Tuple[str, dict]], settings: Settings) -> Tuple[List[TrackingDetails], List[Message]]: - errors = [e for ref, e in response if 'error' in e] +def parse_tracking_response( + response: List[Tuple[str, dict]], settings: Settings +) -> Tuple[List[TrackingDetails], List[Message]]: + errors = [e for ref, e in response if "error" in e] tracking_details = [ _extract_detail((ref, DP.to_object(Tracking, d)), settings) - for ref, d in response if 'tracking_events' in d + for ref, d in response + if "tracking_events" in d ] return tracking_details, parse_error_response(errors, settings) -def _extract_detail(detail: Tuple[str, Tracking], settings: Settings) -> TrackingDetails: +def _extract_detail( + detail: Tuple[str, Tracking], settings: Settings +) -> TrackingDetails: tracking_number, tracking_details = detail + estimated_delivery = ( + tracking_details.scheduling.estimated_delivery_date_minimum + or tracking_details.scheduling.estimated_delivery_date_maximum + or tracking_details.scheduling.delivered_on + ) return TrackingDetails( carrier_name=settings.carrier_name, carrier_id=settings.carrier_id, - tracking_number=tracking_number, events=[ TrackingEvent( - date=DF.fdate(event.scan_time, '%Y-%m-%dT%H:%M:%SZ'), + date=DF.fdate(event.scan_time, "%Y-%m-%dT%H:%M:%SZ"), description=event.description, location=event.location, code=event.event_type, - time=DF.ftime(event.scan_time, '%Y-%m-%dT%H:%M:%SZ'), + time=DF.ftime(event.scan_time, "%Y-%m-%dT%H:%M:%SZ"), ) for event in reversed(tracking_details.tracking_events) ], - delivered=(tracking_details.state == 'Delivered') + estimated_delivery=DF.fdate(estimated_delivery, "%Y-%m-%d"), + delivered=(tracking_details.state == "Delivered"), ) diff --git a/sdk/extensions/sendle/pyproject.toml b/sdk/extensions/sendle/pyproject.toml index 089cfa6782..0d08f8c65b 100644 --- a/sdk/extensions/sendle/pyproject.toml +++ b/sdk/extensions/sendle/pyproject.toml @@ -1,11 +1,11 @@ [tool.poetry] name = "purplship.sendle" -version = "2021.10" -homepage="https://docs.purplship.com" +version = "2021.11" +homepage="https://next.purplship.com/docs/guides/sdk" repository="https://github.com/purplship/purplship" description = "Purplship - Sendle Shipping Extension" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [{ include = "purplship" }] classifiers=[ @@ -17,7 +17,7 @@ classifiers=[ [tool.poetry.dependencies] python = "^3.7" -"purplship" = "^2021.6" +"purplship" = "" "carrier.sendle" = "" [tool.poetry.dev-dependencies] diff --git a/sdk/extensions/sendle/tests/sendle/tracking.py b/sdk/extensions/sendle/tests/sendle/tracking.py index ee6b2a4985..d7399bd6f3 100644 --- a/sdk/extensions/sendle/tests/sendle/tracking.py +++ b/sdk/extensions/sendle/tests/sendle/tracking.py @@ -54,7 +54,68 @@ def test_parse_error_response(self): TRACKING_PAYLOAD = ["S3ND73"] -ParsedTrackingResponse = [[{'carrier_id': 'sendle', 'carrier_name': 'sendle', 'delivered': True, 'events': [{'code': 'Info', 'date': '2015-11-27', 'description': 'Your parcel was signed for by JIMMY', 'time': '23:47'}, {'code': 'Delivered', 'date': '2015-11-27', 'description': 'Parcel delivered', 'time': '23:46'}, {'code': 'Info', 'date': '2015-11-26', 'description': 'Parcel is loaded for delivery', 'time': '23:00'}, {'code': 'Info', 'date': '2015-11-26', 'description': 'Arrived at the depot for processing', 'time': '19:46'}, {'code': 'In Transit', 'date': '2015-11-25', 'description': 'In transit', 'time': '01:14'}, {'code': 'Info', 'date': '2015-11-25', 'description': 'In transit between locations', 'time': '01:04'}, {'code': 'Pickup', 'date': '2015-11-24', 'description': 'Parcel picked up', 'time': '20:31'}, {'code': 'Pickup Attempted', 'date': '2015-11-23', 'description': 'We attempted to pick up the parcel but were unsuccessful', 'time': '01:04'}], 'tracking_number': 'S3ND73'}], []] +ParsedTrackingResponse = [ + [ + { + "carrier_id": "sendle", + "carrier_name": "sendle", + "delivered": True, + "estimated_delivery": "2015-11-26", + "events": [ + { + "code": "Info", + "date": "2015-11-27", + "description": "Your parcel was signed for by JIMMY", + "time": "23:47", + }, + { + "code": "Delivered", + "date": "2015-11-27", + "description": "Parcel delivered", + "time": "23:46", + }, + { + "code": "Info", + "date": "2015-11-26", + "description": "Parcel is loaded for delivery", + "time": "23:00", + }, + { + "code": "Info", + "date": "2015-11-26", + "description": "Arrived at the depot for processing", + "time": "19:46", + }, + { + "code": "In Transit", + "date": "2015-11-25", + "description": "In transit", + "time": "01:14", + }, + { + "code": "Info", + "date": "2015-11-25", + "description": "In transit between locations", + "time": "01:04", + }, + { + "code": "Pickup", + "date": "2015-11-24", + "description": "Parcel picked up", + "time": "20:31", + }, + { + "code": "Pickup Attempted", + "date": "2015-11-23", + "description": "We attempted to pick up the parcel but were unsuccessful", + "time": "01:04", + }, + ], + "tracking_number": "S3ND73", + } + ], + [], +] ParsedErrorResponse = [ [], @@ -72,58 +133,65 @@ def test_parse_error_response(self): TrackingRequestJSON = ["S3ND73"] TrackingResponseJSON = """{ - "state": "Delivered", - "tracking_events": [ - { - "event_type": "Pickup Attempted", - "scan_time": "2015-11-23T01:04:00Z", - "description": "We attempted to pick up the parcel but were unsuccessful", - "reason": "Parcel not ready" - }, - { - "event_type": "Pickup", - "scan_time": "2015-11-24T20:31:00Z", - "description": "Parcel picked up" - }, - { - "event_type": "Info", - "scan_time": "2015-11-25T01:04:00Z", - "description": "In transit between locations" - }, - { - "event_type": "In Transit", - "scan_time": "2015-11-25T01:14:00Z", - "description": "In transit", - "origin_location": "Sydney", - "destination_location": "Brisbane" - }, - { - "event_type": "Info", - "scan_time": "2015-11-26T19:46:00Z", - "description": "Arrived at the depot for processing" - }, - { - "event_type": "Info", - "scan_time": "2015-11-26T23:00:00Z", - "description": "Parcel is loaded for delivery" + "state": "Delivered", + "tracking_events": [ + { + "event_type": "Pickup Attempted", + "scan_time": "2015-11-23T01:04:00Z", + "description": "We attempted to pick up the parcel but were unsuccessful", + "reason": "Parcel not ready" + }, + { + "event_type": "Pickup", + "scan_time": "2015-11-24T20:31:00Z", + "description": "Parcel picked up" + }, + { + "event_type": "Info", + "scan_time": "2015-11-25T01:04:00Z", + "description": "In transit between locations" + }, + { + "event_type": "In Transit", + "scan_time": "2015-11-25T01:14:00Z", + "description": "In transit", + "origin_location": "Sydney", + "destination_location": "Brisbane" + }, + { + "event_type": "Info", + "scan_time": "2015-11-26T19:46:00Z", + "description": "Arrived at the depot for processing" + }, + { + "event_type": "Info", + "scan_time": "2015-11-26T23:00:00Z", + "description": "Parcel is loaded for delivery" + }, + { + "event_type": "Delivered", + "scan_time": "2015-11-27T23:46:00Z", + "description": "Parcel delivered" + }, + { + "event_type": "Info", + "scan_time": "2015-11-27T23:47:00Z", + "description": "Your parcel was signed for by JIMMY" + } + ], + "origin": { + "country": "AU" }, - { - "event_type": "Delivered", - "scan_time": "2015-11-27T23:46:00Z", - "description": "Parcel delivered" + "destination": { + "country": "AU" }, - { - "event_type": "Info", - "scan_time": "2015-11-27T23:47:00Z", - "description": "Your parcel was signed for by JIMMY" + "scheduling": { + "pickup_date": "2015-11-24", + "picked_up_on": null, + "delivered_on": null, + "estimated_delivery_date_minimum": "2015-11-26", + "estimated_delivery_date_maximum": "2015-11-27" } - ], - "origin": { - "country": "AU" - }, - "destination": { - "country": "AU" - } } """ diff --git a/sdk/extensions/sf_express/poetry.lock b/sdk/extensions/sf_express/poetry.lock deleted file mode 100644 index 26360e29ae..0000000000 --- a/sdk/extensions/sf_express/poetry.lock +++ /dev/null @@ -1,240 +0,0 @@ -[[package]] -name = "attrs" -version = "21.2.0" -description = "Classes Without Boilerplate" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" - -[package.extras] -dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit"] -docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"] -tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface"] -tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins"] - -[[package]] -name = "carrier.sf-express" -version = "2021.2" -description = "Purolator Web API Schemas Python Data Types library" -category = "main" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "jstruct" -version = "2020.4.0" -description = "Readable serializable and deserializable Python nested models" -category = "main" -optional = false -python-versions = "*" - -[package.dependencies] -attrs = "*" - -[[package]] -name = "lxml" -version = "4.6.3" -description = "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API." -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*" - -[package.extras] -cssselect = ["cssselect (>=0.7)"] -html5 = ["html5lib"] -htmlsoup = ["beautifulsoup4"] -source = ["Cython (>=0.29.7)"] - -[[package]] -name = "lxml-stubs" -version = "0.1.1" -description = "Type annotations for the lxml package" -category = "main" -optional = false -python-versions = "*" - -[package.extras] -test = ["pytest (>=6.0.0)", "pytest-mypy-plugins (==1.4.0)", "coverage[toml] (==5.2)"] - -[[package]] -name = "phonenumbers" -version = "8.12.28" -description = "Python version of Google's common library for parsing, formatting, storing and validating international phone numbers." -category = "main" -optional = false -python-versions = "*" - -[[package]] -name = "pillow" -version = "8.3.1" -description = "Python Imaging Library (Fork)" -category = "main" -optional = false -python-versions = ">=3.6" - -[[package]] -name = "purplship" -version = "2021.6.2" -description = "Multi-carrier shipping API integration with python" -category = "main" -optional = false -python-versions = ">=3.7,<4.0" - -[package.dependencies] -jstruct = ">=2020.4.0,<2021.0.0" -lxml = ">=4.6.2,<5.0.0" -lxml-stubs = ">=0.1.1,<0.2.0" -phonenumbers = ">=8.12.17,<9.0.0" -Pillow = ">=8.1.0,<9.0.0" -py-soap = ">=2020.3.2,<2021.0.0" -xmltodict = ">=0.12.0,<0.13.0" - -[[package]] -name = "py-soap" -version = "2020.3.2" -description = "SOAP Schemas Python Data Types library" -category = "main" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "six" -version = "1.16.0" -description = "Python 2 and 3 compatibility utilities" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" - -[[package]] -name = "xmltodict" -version = "0.12.0" -description = "Makes working with XML feel like you are working with JSON" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.7" -content-hash = "54bfd8d054dc7135351f00da7871beb13b193cf0e01a1c1c3201a41f66556563" - -[metadata.files] -attrs = [ - {file = "attrs-21.2.0-py2.py3-none-any.whl", hash = "sha256:149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1"}, - {file = "attrs-21.2.0.tar.gz", hash = "sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"}, -] -"carrier.sf-express" = [ - {file = "carrier.sf_express-2021.2-py3-none-any.whl", hash = "sha256:3fa0115d80d0fee7e6ccc5e7b1a1779898fa006c2fb5af52a7b91c9857111187"}, -] -jstruct = [ - {file = "jstruct-2020.4.0-py3-none-any.whl", hash = "sha256:86257c1332e1ba6983d78e3199fb3dcadaf742e96c3c1a97f3ba322fa241f89c"}, -] -lxml = [ - {file = "lxml-4.6.3-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:df7c53783a46febb0e70f6b05df2ba104610f2fb0d27023409734a3ecbb78fb2"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:1b7584d421d254ab86d4f0b13ec662a9014397678a7c4265a02a6d7c2b18a75f"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:079f3ae844f38982d156efce585bc540c16a926d4436712cf4baee0cce487a3d"}, - {file = "lxml-4.6.3-cp27-cp27m-win32.whl", hash = "sha256:bc4313cbeb0e7a416a488d72f9680fffffc645f8a838bd2193809881c67dd106"}, - {file = "lxml-4.6.3-cp27-cp27m-win_amd64.whl", hash = "sha256:8157dadbb09a34a6bd95a50690595e1fa0af1a99445e2744110e3dca7831c4ee"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:7728e05c35412ba36d3e9795ae8995e3c86958179c9770e65558ec3fdfd3724f"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:4bff24dfeea62f2e56f5bab929b4428ae6caba2d1eea0c2d6eb618e30a71e6d4"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:74f7d8d439b18fa4c385f3f5dfd11144bb87c1da034a466c5b5577d23a1d9b51"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:f90ba11136bfdd25cae3951af8da2e95121c9b9b93727b1b896e3fa105b2f586"}, - {file = "lxml-4.6.3-cp35-cp35m-win32.whl", hash = "sha256:f2380a6376dfa090227b663f9678150ef27543483055cc327555fb592c5967e2"}, - {file = "lxml-4.6.3-cp35-cp35m-win_amd64.whl", hash = "sha256:c4f05c5a7c49d2fb70223d0d5bcfbe474cf928310ac9fa6a7c6dddc831d0b1d4"}, - {file = "lxml-4.6.3-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:d2e35d7bf1c1ac8c538f88d26b396e73dd81440d59c1ef8522e1ea77b345ede4"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:289e9ca1a9287f08daaf796d96e06cb2bc2958891d7911ac7cae1c5f9e1e0ee3"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:bccbfc27563652de7dc9bdc595cb25e90b59c5f8e23e806ed0fd623755b6565d"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:820628b7b3135403540202e60551e741f9b6d3304371712521be939470b454ec"}, - {file = "lxml-4.6.3-cp36-cp36m-win32.whl", hash = "sha256:5a0a14e264069c03e46f926be0d8919f4105c1623d620e7ec0e612a2e9bf1c04"}, - {file = "lxml-4.6.3-cp36-cp36m-win_amd64.whl", hash = "sha256:92e821e43ad382332eade6812e298dc9701c75fe289f2a2d39c7960b43d1e92a"}, - {file = "lxml-4.6.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:efd7a09678fd8b53117f6bae4fa3825e0a22b03ef0a932e070c0bdbb3a35e654"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:efac139c3f0bf4f0939f9375af4b02c5ad83a622de52d6dfa8e438e8e01d0eb0"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:0fbcf5565ac01dff87cbfc0ff323515c823081c5777a9fc7703ff58388c258c3"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:122fba10466c7bd4178b07dba427aa516286b846b2cbd6f6169141917283aae2"}, - {file = "lxml-4.6.3-cp37-cp37m-win32.whl", hash = "sha256:3439c71103ef0e904ea0a1901611863e51f50b5cd5e8654a151740fde5e1cade"}, - {file = "lxml-4.6.3-cp37-cp37m-win_amd64.whl", hash = "sha256:4289728b5e2000a4ad4ab8da6e1db2e093c63c08bdc0414799ee776a3f78da4b"}, - {file = "lxml-4.6.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:b007cbb845b28db4fb8b6a5cdcbf65bacb16a8bd328b53cbc0698688a68e1caa"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_i686.whl", hash = "sha256:76fa7b1362d19f8fbd3e75fe2fb7c79359b0af8747e6f7141c338f0bee2f871a"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:26e761ab5b07adf5f555ee82fb4bfc35bf93750499c6c7614bd64d12aaa67927"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:66e575c62792c3f9ca47cb8b6fab9e35bab91360c783d1606f758761810c9791"}, - {file = "lxml-4.6.3-cp38-cp38-win32.whl", hash = "sha256:89b8b22a5ff72d89d48d0e62abb14340d9e99fd637d046c27b8b257a01ffbe28"}, - {file = "lxml-4.6.3-cp38-cp38-win_amd64.whl", hash = "sha256:2a9d50e69aac3ebee695424f7dbd7b8c6d6eb7de2a2eb6b0f6c7db6aa41e02b7"}, - {file = "lxml-4.6.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:ce256aaa50f6cc9a649c51be3cd4ff142d67295bfc4f490c9134d0f9f6d58ef0"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_i686.whl", hash = "sha256:7610b8c31688f0b1be0ef882889817939490a36d0ee880ea562a4e1399c447a1"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:f8380c03e45cf09f8557bdaa41e1fa7c81f3ae22828e1db470ab2a6c96d8bc23"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:884ab9b29feaca361f7f88d811b1eea9bfca36cf3da27768d28ad45c3ee6f969"}, - {file = "lxml-4.6.3-cp39-cp39-win32.whl", hash = "sha256:33bb934a044cf32157c12bfcfbb6649807da20aa92c062ef51903415c704704f"}, - {file = "lxml-4.6.3-cp39-cp39-win_amd64.whl", hash = "sha256:542d454665a3e277f76954418124d67516c5f88e51a900365ed54a9806122b83"}, - {file = "lxml-4.6.3.tar.gz", hash = "sha256:39b78571b3b30645ac77b95f7c69d1bffc4cf8c3b157c435a34da72e78c82468"}, -] -lxml-stubs = [ - {file = "lxml-stubs-0.1.1.tar.gz", hash = "sha256:9b6a01ba4bccd6e532c01e19d2a3bc6d1d018fa0b9870236f61f315cb7b06648"}, - {file = "lxml_stubs-0.1.1-py3-none-any.whl", hash = "sha256:d34a28be0e2525b0236aff7fe67af1f61911f556cadbc61f09810b69f762b747"}, -] -phonenumbers = [ - {file = "phonenumbers-8.12.28-py2.py3-none-any.whl", hash = "sha256:f8ce05f82955d2faeefe2303350b2ccb7369dd39b6e45231a09475d67eb7e83b"}, - {file = "phonenumbers-8.12.28.tar.gz", hash = "sha256:42ea4f946d5cce0056cbce257842ea6b281e69828ad2e7f27b29d3908e5b06bd"}, -] -pillow = [ - {file = "Pillow-8.3.1-1-cp36-cp36m-win_amd64.whl", hash = "sha256:fd7eef578f5b2200d066db1b50c4aa66410786201669fb76d5238b007918fb24"}, - {file = "Pillow-8.3.1-1-cp37-cp37m-win_amd64.whl", hash = "sha256:75e09042a3b39e0ea61ce37e941221313d51a9c26b8e54e12b3ececccb71718a"}, - {file = "Pillow-8.3.1-1-cp38-cp38-win_amd64.whl", hash = "sha256:c0e0550a404c69aab1e04ae89cca3e2a042b56ab043f7f729d984bf73ed2a093"}, - {file = "Pillow-8.3.1-1-cp39-cp39-win_amd64.whl", hash = "sha256:479ab11cbd69612acefa8286481f65c5dece2002ffaa4f9db62682379ca3bb77"}, - {file = "Pillow-8.3.1-1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:f156d6ecfc747ee111c167f8faf5f4953761b5e66e91a4e6767e548d0f80129c"}, - {file = "Pillow-8.3.1-cp36-cp36m-macosx_10_10_x86_64.whl", hash = "sha256:196560dba4da7a72c5e7085fccc5938ab4075fd37fe8b5468869724109812edd"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:29c9569049d04aaacd690573a0398dbd8e0bf0255684fee512b413c2142ab723"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:c088a000dfdd88c184cc7271bfac8c5b82d9efa8637cd2b68183771e3cf56f04"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:fc214a6b75d2e0ea7745488da7da3c381f41790812988c7a92345978414fad37"}, - {file = "Pillow-8.3.1-cp36-cp36m-win32.whl", hash = "sha256:a17ca41f45cf78c2216ebfab03add7cc350c305c38ff34ef4eef66b7d76c5229"}, - {file = "Pillow-8.3.1-cp36-cp36m-win_amd64.whl", hash = "sha256:67b3666b544b953a2777cb3f5a922e991be73ab32635666ee72e05876b8a92de"}, - {file = "Pillow-8.3.1-cp37-cp37m-macosx_10_10_x86_64.whl", hash = "sha256:ff04c373477723430dce2e9d024c708a047d44cf17166bf16e604b379bf0ca14"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9364c81b252d8348e9cc0cb63e856b8f7c1b340caba6ee7a7a65c968312f7dab"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a2f381932dca2cf775811a008aa3027671ace723b7a38838045b1aee8669fdcf"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:d0da39795049a9afcaadec532e7b669b5ebbb2a9134576ebcc15dd5bdae33cc0"}, - {file = "Pillow-8.3.1-cp37-cp37m-win32.whl", hash = "sha256:2b6dfa068a8b6137da34a4936f5a816aba0ecc967af2feeb32c4393ddd671cba"}, - {file = "Pillow-8.3.1-cp37-cp37m-win_amd64.whl", hash = "sha256:a4eef1ff2d62676deabf076f963eda4da34b51bc0517c70239fafed1d5b51500"}, - {file = "Pillow-8.3.1-cp38-cp38-macosx_10_10_x86_64.whl", hash = "sha256:660a87085925c61a0dcc80efb967512ac34dbb256ff7dd2b9b4ee8dbdab58cf4"}, - {file = "Pillow-8.3.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:15a2808e269a1cf2131930183dcc0419bc77bb73eb54285dde2706ac9939fa8e"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:969cc558cca859cadf24f890fc009e1bce7d7d0386ba7c0478641a60199adf79"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:2ee77c14a0299d0541d26f3d8500bb57e081233e3fa915fa35abd02c51fa7fae"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:c11003197f908878164f0e6da15fce22373ac3fc320cda8c9d16e6bba105b844"}, - {file = "Pillow-8.3.1-cp38-cp38-win32.whl", hash = "sha256:3f08bd8d785204149b5b33e3b5f0ebbfe2190ea58d1a051c578e29e39bfd2367"}, - {file = "Pillow-8.3.1-cp38-cp38-win_amd64.whl", hash = "sha256:70af7d222df0ff81a2da601fab42decb009dc721545ed78549cb96e3a1c5f0c8"}, - {file = "Pillow-8.3.1-cp39-cp39-macosx_10_10_x86_64.whl", hash = "sha256:37730f6e68bdc6a3f02d2079c34c532330d206429f3cee651aab6b66839a9f0e"}, - {file = "Pillow-8.3.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:4bc3c7ef940eeb200ca65bd83005eb3aae8083d47e8fcbf5f0943baa50726856"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c35d09db702f4185ba22bb33ef1751ad49c266534339a5cebeb5159d364f6f82"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:0b2efa07f69dc395d95bb9ef3299f4ca29bcb2157dc615bae0b42c3c20668ffc"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:cc866706d56bd3a7dbf8bac8660c6f6462f2f2b8a49add2ba617bc0c54473d83"}, - {file = "Pillow-8.3.1-cp39-cp39-win32.whl", hash = "sha256:9a211b663cf2314edbdb4cf897beeb5c9ee3810d1d53f0e423f06d6ebbf9cd5d"}, - {file = "Pillow-8.3.1-cp39-cp39-win_amd64.whl", hash = "sha256:c2a5ff58751670292b406b9f06e07ed1446a4b13ffced6b6cab75b857485cbc8"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-macosx_10_10_x86_64.whl", hash = "sha256:c379425c2707078dfb6bfad2430728831d399dc95a7deeb92015eb4c92345eaf"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:114f816e4f73f9ec06997b2fde81a92cbf0777c9e8f462005550eed6bae57e63"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:8960a8a9f4598974e4c2aeb1bff9bdd5db03ee65fd1fce8adf3223721aa2a636"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-macosx_10_10_x86_64.whl", hash = "sha256:147bd9e71fb9dcf08357b4d530b5167941e222a6fd21f869c7911bac40b9994d"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:1fd5066cd343b5db88c048d971994e56b296868766e461b82fa4e22498f34d77"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:f4ebde71785f8bceb39dcd1e7f06bcc5d5c3cf48b9f69ab52636309387b097c8"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:1c03e24be975e2afe70dfc5da6f187eea0b49a68bb2b69db0f30a61b7031cee4"}, - {file = "Pillow-8.3.1.tar.gz", hash = "sha256:2cac53839bfc5cece8fdbe7f084d5e3ee61e1303cccc86511d351adcb9e2c792"}, -] -purplship = [ - {file = "purplship-2021.6.2-py3-none-any.whl", hash = "sha256:ded793b23664a14649f3c08ebbd344f6b58fbbc982d69481242478074ea74ff1"}, -] -py-soap = [ - {file = "py_soap-2020.3.2-py3-none-any.whl", hash = "sha256:61e2ec956d349bdd9d4c6248a2ae3c4cc4b0a2a5cf6b439b6de480a3bc2766a1"}, -] -six = [ - {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"}, - {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"}, -] -xmltodict = [ - {file = "xmltodict-0.12.0-py2.py3-none-any.whl", hash = "sha256:8bbcb45cc982f48b2ca8fe7e7827c5d792f217ecf1792626f808bf41c3b86051"}, - {file = "xmltodict-0.12.0.tar.gz", hash = "sha256:50d8c638ed7ecb88d90561beedbf720c9b4e851a9fa6c47ebd64e99d166d8a21"}, -] diff --git a/sdk/extensions/sf_express/pyproject.toml b/sdk/extensions/sf_express/pyproject.toml index 5d43338042..9bfe2cbed6 100644 --- a/sdk/extensions/sf_express/pyproject.toml +++ b/sdk/extensions/sf_express/pyproject.toml @@ -1,11 +1,11 @@ [tool.poetry] name = "purplship.sf_express" version = "2021.10" -homepage="https://docs.purplship.com" +homepage="https://next.purplship.com/docs/guides/sdk" repository="https://github.com/purplship/purplship" description = "Purplship - SF-Express Shipping Extension" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [{ include = "purplship" }] classifiers=[ diff --git a/sdk/extensions/tnt/poetry.lock b/sdk/extensions/tnt/poetry.lock deleted file mode 100644 index cd9d017395..0000000000 --- a/sdk/extensions/tnt/poetry.lock +++ /dev/null @@ -1,240 +0,0 @@ -[[package]] -name = "attrs" -version = "21.2.0" -description = "Classes Without Boilerplate" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" - -[package.extras] -dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit"] -docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"] -tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface"] -tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins"] - -[[package]] -name = "carrier.tnt" -version = "2021.3" -description = "TNT Web API Schemas Python Data Types library" -category = "main" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "jstruct" -version = "2020.4.0" -description = "Readable serializable and deserializable Python nested models" -category = "main" -optional = false -python-versions = "*" - -[package.dependencies] -attrs = "*" - -[[package]] -name = "lxml" -version = "4.6.3" -description = "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API." -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*" - -[package.extras] -cssselect = ["cssselect (>=0.7)"] -html5 = ["html5lib"] -htmlsoup = ["beautifulsoup4"] -source = ["Cython (>=0.29.7)"] - -[[package]] -name = "lxml-stubs" -version = "0.1.1" -description = "Type annotations for the lxml package" -category = "main" -optional = false -python-versions = "*" - -[package.extras] -test = ["pytest (>=6.0.0)", "pytest-mypy-plugins (==1.4.0)", "coverage[toml] (==5.2)"] - -[[package]] -name = "phonenumbers" -version = "8.12.28" -description = "Python version of Google's common library for parsing, formatting, storing and validating international phone numbers." -category = "main" -optional = false -python-versions = "*" - -[[package]] -name = "pillow" -version = "8.3.1" -description = "Python Imaging Library (Fork)" -category = "main" -optional = false -python-versions = ">=3.6" - -[[package]] -name = "purplship" -version = "2021.6.2" -description = "Multi-carrier shipping API integration with python" -category = "main" -optional = false -python-versions = ">=3.7,<4.0" - -[package.dependencies] -jstruct = ">=2020.4.0,<2021.0.0" -lxml = ">=4.6.2,<5.0.0" -lxml-stubs = ">=0.1.1,<0.2.0" -phonenumbers = ">=8.12.17,<9.0.0" -Pillow = ">=8.1.0,<9.0.0" -py-soap = ">=2020.3.2,<2021.0.0" -xmltodict = ">=0.12.0,<0.13.0" - -[[package]] -name = "py-soap" -version = "2020.3.2" -description = "SOAP Schemas Python Data Types library" -category = "main" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "six" -version = "1.16.0" -description = "Python 2 and 3 compatibility utilities" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" - -[[package]] -name = "xmltodict" -version = "0.12.0" -description = "Makes working with XML feel like you are working with JSON" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.7" -content-hash = "18802cfb3daa2d38b078440fea93c4061b0e45af1463a46c877322afd0ded8b1" - -[metadata.files] -attrs = [ - {file = "attrs-21.2.0-py2.py3-none-any.whl", hash = "sha256:149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1"}, - {file = "attrs-21.2.0.tar.gz", hash = "sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"}, -] -"carrier.tnt" = [ - {file = "carrier.tnt-2021.3-py3-none-any.whl", hash = "sha256:90bb31bc3b400a62e32862b13060f2693c22b4f7c90726b8c3f37fed368ed591"}, -] -jstruct = [ - {file = "jstruct-2020.4.0-py3-none-any.whl", hash = "sha256:86257c1332e1ba6983d78e3199fb3dcadaf742e96c3c1a97f3ba322fa241f89c"}, -] -lxml = [ - {file = "lxml-4.6.3-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:df7c53783a46febb0e70f6b05df2ba104610f2fb0d27023409734a3ecbb78fb2"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:1b7584d421d254ab86d4f0b13ec662a9014397678a7c4265a02a6d7c2b18a75f"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:079f3ae844f38982d156efce585bc540c16a926d4436712cf4baee0cce487a3d"}, - {file = "lxml-4.6.3-cp27-cp27m-win32.whl", hash = "sha256:bc4313cbeb0e7a416a488d72f9680fffffc645f8a838bd2193809881c67dd106"}, - {file = "lxml-4.6.3-cp27-cp27m-win_amd64.whl", hash = "sha256:8157dadbb09a34a6bd95a50690595e1fa0af1a99445e2744110e3dca7831c4ee"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:7728e05c35412ba36d3e9795ae8995e3c86958179c9770e65558ec3fdfd3724f"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:4bff24dfeea62f2e56f5bab929b4428ae6caba2d1eea0c2d6eb618e30a71e6d4"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:74f7d8d439b18fa4c385f3f5dfd11144bb87c1da034a466c5b5577d23a1d9b51"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:f90ba11136bfdd25cae3951af8da2e95121c9b9b93727b1b896e3fa105b2f586"}, - {file = "lxml-4.6.3-cp35-cp35m-win32.whl", hash = "sha256:f2380a6376dfa090227b663f9678150ef27543483055cc327555fb592c5967e2"}, - {file = "lxml-4.6.3-cp35-cp35m-win_amd64.whl", hash = "sha256:c4f05c5a7c49d2fb70223d0d5bcfbe474cf928310ac9fa6a7c6dddc831d0b1d4"}, - {file = "lxml-4.6.3-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:d2e35d7bf1c1ac8c538f88d26b396e73dd81440d59c1ef8522e1ea77b345ede4"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:289e9ca1a9287f08daaf796d96e06cb2bc2958891d7911ac7cae1c5f9e1e0ee3"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:bccbfc27563652de7dc9bdc595cb25e90b59c5f8e23e806ed0fd623755b6565d"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:820628b7b3135403540202e60551e741f9b6d3304371712521be939470b454ec"}, - {file = "lxml-4.6.3-cp36-cp36m-win32.whl", hash = "sha256:5a0a14e264069c03e46f926be0d8919f4105c1623d620e7ec0e612a2e9bf1c04"}, - {file = "lxml-4.6.3-cp36-cp36m-win_amd64.whl", hash = "sha256:92e821e43ad382332eade6812e298dc9701c75fe289f2a2d39c7960b43d1e92a"}, - {file = "lxml-4.6.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:efd7a09678fd8b53117f6bae4fa3825e0a22b03ef0a932e070c0bdbb3a35e654"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:efac139c3f0bf4f0939f9375af4b02c5ad83a622de52d6dfa8e438e8e01d0eb0"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:0fbcf5565ac01dff87cbfc0ff323515c823081c5777a9fc7703ff58388c258c3"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:122fba10466c7bd4178b07dba427aa516286b846b2cbd6f6169141917283aae2"}, - {file = "lxml-4.6.3-cp37-cp37m-win32.whl", hash = "sha256:3439c71103ef0e904ea0a1901611863e51f50b5cd5e8654a151740fde5e1cade"}, - {file = "lxml-4.6.3-cp37-cp37m-win_amd64.whl", hash = "sha256:4289728b5e2000a4ad4ab8da6e1db2e093c63c08bdc0414799ee776a3f78da4b"}, - {file = "lxml-4.6.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:b007cbb845b28db4fb8b6a5cdcbf65bacb16a8bd328b53cbc0698688a68e1caa"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_i686.whl", hash = "sha256:76fa7b1362d19f8fbd3e75fe2fb7c79359b0af8747e6f7141c338f0bee2f871a"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:26e761ab5b07adf5f555ee82fb4bfc35bf93750499c6c7614bd64d12aaa67927"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:66e575c62792c3f9ca47cb8b6fab9e35bab91360c783d1606f758761810c9791"}, - {file = "lxml-4.6.3-cp38-cp38-win32.whl", hash = "sha256:89b8b22a5ff72d89d48d0e62abb14340d9e99fd637d046c27b8b257a01ffbe28"}, - {file = "lxml-4.6.3-cp38-cp38-win_amd64.whl", hash = "sha256:2a9d50e69aac3ebee695424f7dbd7b8c6d6eb7de2a2eb6b0f6c7db6aa41e02b7"}, - {file = "lxml-4.6.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:ce256aaa50f6cc9a649c51be3cd4ff142d67295bfc4f490c9134d0f9f6d58ef0"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_i686.whl", hash = "sha256:7610b8c31688f0b1be0ef882889817939490a36d0ee880ea562a4e1399c447a1"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:f8380c03e45cf09f8557bdaa41e1fa7c81f3ae22828e1db470ab2a6c96d8bc23"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:884ab9b29feaca361f7f88d811b1eea9bfca36cf3da27768d28ad45c3ee6f969"}, - {file = "lxml-4.6.3-cp39-cp39-win32.whl", hash = "sha256:33bb934a044cf32157c12bfcfbb6649807da20aa92c062ef51903415c704704f"}, - {file = "lxml-4.6.3-cp39-cp39-win_amd64.whl", hash = "sha256:542d454665a3e277f76954418124d67516c5f88e51a900365ed54a9806122b83"}, - {file = "lxml-4.6.3.tar.gz", hash = "sha256:39b78571b3b30645ac77b95f7c69d1bffc4cf8c3b157c435a34da72e78c82468"}, -] -lxml-stubs = [ - {file = "lxml-stubs-0.1.1.tar.gz", hash = "sha256:9b6a01ba4bccd6e532c01e19d2a3bc6d1d018fa0b9870236f61f315cb7b06648"}, - {file = "lxml_stubs-0.1.1-py3-none-any.whl", hash = "sha256:d34a28be0e2525b0236aff7fe67af1f61911f556cadbc61f09810b69f762b747"}, -] -phonenumbers = [ - {file = "phonenumbers-8.12.28-py2.py3-none-any.whl", hash = "sha256:f8ce05f82955d2faeefe2303350b2ccb7369dd39b6e45231a09475d67eb7e83b"}, - {file = "phonenumbers-8.12.28.tar.gz", hash = "sha256:42ea4f946d5cce0056cbce257842ea6b281e69828ad2e7f27b29d3908e5b06bd"}, -] -pillow = [ - {file = "Pillow-8.3.1-1-cp36-cp36m-win_amd64.whl", hash = "sha256:fd7eef578f5b2200d066db1b50c4aa66410786201669fb76d5238b007918fb24"}, - {file = "Pillow-8.3.1-1-cp37-cp37m-win_amd64.whl", hash = "sha256:75e09042a3b39e0ea61ce37e941221313d51a9c26b8e54e12b3ececccb71718a"}, - {file = "Pillow-8.3.1-1-cp38-cp38-win_amd64.whl", hash = "sha256:c0e0550a404c69aab1e04ae89cca3e2a042b56ab043f7f729d984bf73ed2a093"}, - {file = "Pillow-8.3.1-1-cp39-cp39-win_amd64.whl", hash = "sha256:479ab11cbd69612acefa8286481f65c5dece2002ffaa4f9db62682379ca3bb77"}, - {file = "Pillow-8.3.1-1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:f156d6ecfc747ee111c167f8faf5f4953761b5e66e91a4e6767e548d0f80129c"}, - {file = "Pillow-8.3.1-cp36-cp36m-macosx_10_10_x86_64.whl", hash = "sha256:196560dba4da7a72c5e7085fccc5938ab4075fd37fe8b5468869724109812edd"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:29c9569049d04aaacd690573a0398dbd8e0bf0255684fee512b413c2142ab723"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:c088a000dfdd88c184cc7271bfac8c5b82d9efa8637cd2b68183771e3cf56f04"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:fc214a6b75d2e0ea7745488da7da3c381f41790812988c7a92345978414fad37"}, - {file = "Pillow-8.3.1-cp36-cp36m-win32.whl", hash = "sha256:a17ca41f45cf78c2216ebfab03add7cc350c305c38ff34ef4eef66b7d76c5229"}, - {file = "Pillow-8.3.1-cp36-cp36m-win_amd64.whl", hash = "sha256:67b3666b544b953a2777cb3f5a922e991be73ab32635666ee72e05876b8a92de"}, - {file = "Pillow-8.3.1-cp37-cp37m-macosx_10_10_x86_64.whl", hash = "sha256:ff04c373477723430dce2e9d024c708a047d44cf17166bf16e604b379bf0ca14"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9364c81b252d8348e9cc0cb63e856b8f7c1b340caba6ee7a7a65c968312f7dab"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a2f381932dca2cf775811a008aa3027671ace723b7a38838045b1aee8669fdcf"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:d0da39795049a9afcaadec532e7b669b5ebbb2a9134576ebcc15dd5bdae33cc0"}, - {file = "Pillow-8.3.1-cp37-cp37m-win32.whl", hash = "sha256:2b6dfa068a8b6137da34a4936f5a816aba0ecc967af2feeb32c4393ddd671cba"}, - {file = "Pillow-8.3.1-cp37-cp37m-win_amd64.whl", hash = "sha256:a4eef1ff2d62676deabf076f963eda4da34b51bc0517c70239fafed1d5b51500"}, - {file = "Pillow-8.3.1-cp38-cp38-macosx_10_10_x86_64.whl", hash = "sha256:660a87085925c61a0dcc80efb967512ac34dbb256ff7dd2b9b4ee8dbdab58cf4"}, - {file = "Pillow-8.3.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:15a2808e269a1cf2131930183dcc0419bc77bb73eb54285dde2706ac9939fa8e"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:969cc558cca859cadf24f890fc009e1bce7d7d0386ba7c0478641a60199adf79"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:2ee77c14a0299d0541d26f3d8500bb57e081233e3fa915fa35abd02c51fa7fae"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:c11003197f908878164f0e6da15fce22373ac3fc320cda8c9d16e6bba105b844"}, - {file = "Pillow-8.3.1-cp38-cp38-win32.whl", hash = "sha256:3f08bd8d785204149b5b33e3b5f0ebbfe2190ea58d1a051c578e29e39bfd2367"}, - {file = "Pillow-8.3.1-cp38-cp38-win_amd64.whl", hash = "sha256:70af7d222df0ff81a2da601fab42decb009dc721545ed78549cb96e3a1c5f0c8"}, - {file = "Pillow-8.3.1-cp39-cp39-macosx_10_10_x86_64.whl", hash = "sha256:37730f6e68bdc6a3f02d2079c34c532330d206429f3cee651aab6b66839a9f0e"}, - {file = "Pillow-8.3.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:4bc3c7ef940eeb200ca65bd83005eb3aae8083d47e8fcbf5f0943baa50726856"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c35d09db702f4185ba22bb33ef1751ad49c266534339a5cebeb5159d364f6f82"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:0b2efa07f69dc395d95bb9ef3299f4ca29bcb2157dc615bae0b42c3c20668ffc"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:cc866706d56bd3a7dbf8bac8660c6f6462f2f2b8a49add2ba617bc0c54473d83"}, - {file = "Pillow-8.3.1-cp39-cp39-win32.whl", hash = "sha256:9a211b663cf2314edbdb4cf897beeb5c9ee3810d1d53f0e423f06d6ebbf9cd5d"}, - {file = "Pillow-8.3.1-cp39-cp39-win_amd64.whl", hash = "sha256:c2a5ff58751670292b406b9f06e07ed1446a4b13ffced6b6cab75b857485cbc8"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-macosx_10_10_x86_64.whl", hash = "sha256:c379425c2707078dfb6bfad2430728831d399dc95a7deeb92015eb4c92345eaf"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:114f816e4f73f9ec06997b2fde81a92cbf0777c9e8f462005550eed6bae57e63"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:8960a8a9f4598974e4c2aeb1bff9bdd5db03ee65fd1fce8adf3223721aa2a636"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-macosx_10_10_x86_64.whl", hash = "sha256:147bd9e71fb9dcf08357b4d530b5167941e222a6fd21f869c7911bac40b9994d"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:1fd5066cd343b5db88c048d971994e56b296868766e461b82fa4e22498f34d77"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:f4ebde71785f8bceb39dcd1e7f06bcc5d5c3cf48b9f69ab52636309387b097c8"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:1c03e24be975e2afe70dfc5da6f187eea0b49a68bb2b69db0f30a61b7031cee4"}, - {file = "Pillow-8.3.1.tar.gz", hash = "sha256:2cac53839bfc5cece8fdbe7f084d5e3ee61e1303cccc86511d351adcb9e2c792"}, -] -purplship = [ - {file = "purplship-2021.6.2-py3-none-any.whl", hash = "sha256:ded793b23664a14649f3c08ebbd344f6b58fbbc982d69481242478074ea74ff1"}, -] -py-soap = [ - {file = "py_soap-2020.3.2-py3-none-any.whl", hash = "sha256:61e2ec956d349bdd9d4c6248a2ae3c4cc4b0a2a5cf6b439b6de480a3bc2766a1"}, -] -six = [ - {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"}, - {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"}, -] -xmltodict = [ - {file = "xmltodict-0.12.0-py2.py3-none-any.whl", hash = "sha256:8bbcb45cc982f48b2ca8fe7e7827c5d792f217ecf1792626f808bf41c3b86051"}, - {file = "xmltodict-0.12.0.tar.gz", hash = "sha256:50d8c638ed7ecb88d90561beedbf720c9b4e851a9fa6c47ebd64e99d166d8a21"}, -] diff --git a/sdk/extensions/tnt/pyproject.toml b/sdk/extensions/tnt/pyproject.toml index ddae5b1f42..afa3605f30 100644 --- a/sdk/extensions/tnt/pyproject.toml +++ b/sdk/extensions/tnt/pyproject.toml @@ -1,11 +1,11 @@ [tool.poetry] name = "purplship.tnt" version = "2021.10" -homepage="https://docs.purplship.com" +homepage="https://next.purplship.com/docs/guides/sdk" repository="https://github.com/purplship/purplship" description = "Purplship - TNT Shipping Extension" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [{ include = "purplship" }] classifiers=[ diff --git a/sdk/extensions/tnt/setup.py b/sdk/extensions/tnt/setup.py index 80b8bb8db4..5d09f46e21 100644 --- a/sdk/extensions/tnt/setup.py +++ b/sdk/extensions/tnt/setup.py @@ -3,10 +3,10 @@ from setuptools import setup, find_namespace_packages setup( - name='purplship.tnt', - version='0.0.0-dev', - license='LGPLv3', - packages=find_namespace_packages(), - install_requires=['purplship', 'carrier.tnt', 'weasyprint'], - zip_safe=False, -) \ No newline at end of file + name="purplship.tnt", + version="0.0.0-dev", + license="LGPLv3", + packages=find_namespace_packages(), + install_requires=["purplship", "carrier.tnt"], + zip_safe=False, +) diff --git a/sdk/extensions/ups/poetry.lock b/sdk/extensions/ups/poetry.lock deleted file mode 100644 index fa5b87ebc3..0000000000 --- a/sdk/extensions/ups/poetry.lock +++ /dev/null @@ -1,240 +0,0 @@ -[[package]] -name = "attrs" -version = "21.2.0" -description = "Classes Without Boilerplate" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" - -[package.extras] -dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit"] -docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"] -tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface"] -tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins"] - -[[package]] -name = "carrier.ups" -version = "2020.3.1" -description = "UPS Web API Schemas Python Data Types library" -category = "main" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "jstruct" -version = "2020.4.0" -description = "Readable serializable and deserializable Python nested models" -category = "main" -optional = false -python-versions = "*" - -[package.dependencies] -attrs = "*" - -[[package]] -name = "lxml" -version = "4.6.3" -description = "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API." -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*" - -[package.extras] -cssselect = ["cssselect (>=0.7)"] -html5 = ["html5lib"] -htmlsoup = ["beautifulsoup4"] -source = ["Cython (>=0.29.7)"] - -[[package]] -name = "lxml-stubs" -version = "0.1.1" -description = "Type annotations for the lxml package" -category = "main" -optional = false -python-versions = "*" - -[package.extras] -test = ["pytest (>=6.0.0)", "pytest-mypy-plugins (==1.4.0)", "coverage[toml] (==5.2)"] - -[[package]] -name = "phonenumbers" -version = "8.12.28" -description = "Python version of Google's common library for parsing, formatting, storing and validating international phone numbers." -category = "main" -optional = false -python-versions = "*" - -[[package]] -name = "pillow" -version = "8.3.1" -description = "Python Imaging Library (Fork)" -category = "main" -optional = false -python-versions = ">=3.6" - -[[package]] -name = "purplship" -version = "2021.6.2" -description = "Multi-carrier shipping API integration with python" -category = "main" -optional = false -python-versions = ">=3.7,<4.0" - -[package.dependencies] -jstruct = ">=2020.4.0,<2021.0.0" -lxml = ">=4.6.2,<5.0.0" -lxml-stubs = ">=0.1.1,<0.2.0" -phonenumbers = ">=8.12.17,<9.0.0" -Pillow = ">=8.1.0,<9.0.0" -py-soap = ">=2020.3.2,<2021.0.0" -xmltodict = ">=0.12.0,<0.13.0" - -[[package]] -name = "py-soap" -version = "2020.3.2" -description = "SOAP Schemas Python Data Types library" -category = "main" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "six" -version = "1.16.0" -description = "Python 2 and 3 compatibility utilities" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" - -[[package]] -name = "xmltodict" -version = "0.12.0" -description = "Makes working with XML feel like you are working with JSON" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.7" -content-hash = "3c6c0d2c152b8a7ea4cbcf0cfac4cab3edf291f9b0a2568344a30cbd352645f7" - -[metadata.files] -attrs = [ - {file = "attrs-21.2.0-py2.py3-none-any.whl", hash = "sha256:149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1"}, - {file = "attrs-21.2.0.tar.gz", hash = "sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"}, -] -"carrier.ups" = [ - {file = "carrier.ups-2020.3.1-py3-none-any.whl", hash = "sha256:0f2346fe7360f4e91f8c6215404b8eabd1f8d57dbac8fcb87410c5cdcbd08f15"}, -] -jstruct = [ - {file = "jstruct-2020.4.0-py3-none-any.whl", hash = "sha256:86257c1332e1ba6983d78e3199fb3dcadaf742e96c3c1a97f3ba322fa241f89c"}, -] -lxml = [ - {file = "lxml-4.6.3-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:df7c53783a46febb0e70f6b05df2ba104610f2fb0d27023409734a3ecbb78fb2"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:1b7584d421d254ab86d4f0b13ec662a9014397678a7c4265a02a6d7c2b18a75f"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:079f3ae844f38982d156efce585bc540c16a926d4436712cf4baee0cce487a3d"}, - {file = "lxml-4.6.3-cp27-cp27m-win32.whl", hash = "sha256:bc4313cbeb0e7a416a488d72f9680fffffc645f8a838bd2193809881c67dd106"}, - {file = "lxml-4.6.3-cp27-cp27m-win_amd64.whl", hash = "sha256:8157dadbb09a34a6bd95a50690595e1fa0af1a99445e2744110e3dca7831c4ee"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:7728e05c35412ba36d3e9795ae8995e3c86958179c9770e65558ec3fdfd3724f"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:4bff24dfeea62f2e56f5bab929b4428ae6caba2d1eea0c2d6eb618e30a71e6d4"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:74f7d8d439b18fa4c385f3f5dfd11144bb87c1da034a466c5b5577d23a1d9b51"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:f90ba11136bfdd25cae3951af8da2e95121c9b9b93727b1b896e3fa105b2f586"}, - {file = "lxml-4.6.3-cp35-cp35m-win32.whl", hash = "sha256:f2380a6376dfa090227b663f9678150ef27543483055cc327555fb592c5967e2"}, - {file = "lxml-4.6.3-cp35-cp35m-win_amd64.whl", hash = "sha256:c4f05c5a7c49d2fb70223d0d5bcfbe474cf928310ac9fa6a7c6dddc831d0b1d4"}, - {file = "lxml-4.6.3-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:d2e35d7bf1c1ac8c538f88d26b396e73dd81440d59c1ef8522e1ea77b345ede4"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:289e9ca1a9287f08daaf796d96e06cb2bc2958891d7911ac7cae1c5f9e1e0ee3"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:bccbfc27563652de7dc9bdc595cb25e90b59c5f8e23e806ed0fd623755b6565d"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:820628b7b3135403540202e60551e741f9b6d3304371712521be939470b454ec"}, - {file = "lxml-4.6.3-cp36-cp36m-win32.whl", hash = "sha256:5a0a14e264069c03e46f926be0d8919f4105c1623d620e7ec0e612a2e9bf1c04"}, - {file = "lxml-4.6.3-cp36-cp36m-win_amd64.whl", hash = "sha256:92e821e43ad382332eade6812e298dc9701c75fe289f2a2d39c7960b43d1e92a"}, - {file = "lxml-4.6.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:efd7a09678fd8b53117f6bae4fa3825e0a22b03ef0a932e070c0bdbb3a35e654"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:efac139c3f0bf4f0939f9375af4b02c5ad83a622de52d6dfa8e438e8e01d0eb0"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:0fbcf5565ac01dff87cbfc0ff323515c823081c5777a9fc7703ff58388c258c3"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:122fba10466c7bd4178b07dba427aa516286b846b2cbd6f6169141917283aae2"}, - {file = "lxml-4.6.3-cp37-cp37m-win32.whl", hash = "sha256:3439c71103ef0e904ea0a1901611863e51f50b5cd5e8654a151740fde5e1cade"}, - {file = "lxml-4.6.3-cp37-cp37m-win_amd64.whl", hash = "sha256:4289728b5e2000a4ad4ab8da6e1db2e093c63c08bdc0414799ee776a3f78da4b"}, - {file = "lxml-4.6.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:b007cbb845b28db4fb8b6a5cdcbf65bacb16a8bd328b53cbc0698688a68e1caa"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_i686.whl", hash = "sha256:76fa7b1362d19f8fbd3e75fe2fb7c79359b0af8747e6f7141c338f0bee2f871a"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:26e761ab5b07adf5f555ee82fb4bfc35bf93750499c6c7614bd64d12aaa67927"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:66e575c62792c3f9ca47cb8b6fab9e35bab91360c783d1606f758761810c9791"}, - {file = "lxml-4.6.3-cp38-cp38-win32.whl", hash = "sha256:89b8b22a5ff72d89d48d0e62abb14340d9e99fd637d046c27b8b257a01ffbe28"}, - {file = "lxml-4.6.3-cp38-cp38-win_amd64.whl", hash = "sha256:2a9d50e69aac3ebee695424f7dbd7b8c6d6eb7de2a2eb6b0f6c7db6aa41e02b7"}, - {file = "lxml-4.6.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:ce256aaa50f6cc9a649c51be3cd4ff142d67295bfc4f490c9134d0f9f6d58ef0"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_i686.whl", hash = "sha256:7610b8c31688f0b1be0ef882889817939490a36d0ee880ea562a4e1399c447a1"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:f8380c03e45cf09f8557bdaa41e1fa7c81f3ae22828e1db470ab2a6c96d8bc23"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:884ab9b29feaca361f7f88d811b1eea9bfca36cf3da27768d28ad45c3ee6f969"}, - {file = "lxml-4.6.3-cp39-cp39-win32.whl", hash = "sha256:33bb934a044cf32157c12bfcfbb6649807da20aa92c062ef51903415c704704f"}, - {file = "lxml-4.6.3-cp39-cp39-win_amd64.whl", hash = "sha256:542d454665a3e277f76954418124d67516c5f88e51a900365ed54a9806122b83"}, - {file = "lxml-4.6.3.tar.gz", hash = "sha256:39b78571b3b30645ac77b95f7c69d1bffc4cf8c3b157c435a34da72e78c82468"}, -] -lxml-stubs = [ - {file = "lxml-stubs-0.1.1.tar.gz", hash = "sha256:9b6a01ba4bccd6e532c01e19d2a3bc6d1d018fa0b9870236f61f315cb7b06648"}, - {file = "lxml_stubs-0.1.1-py3-none-any.whl", hash = "sha256:d34a28be0e2525b0236aff7fe67af1f61911f556cadbc61f09810b69f762b747"}, -] -phonenumbers = [ - {file = "phonenumbers-8.12.28-py2.py3-none-any.whl", hash = "sha256:f8ce05f82955d2faeefe2303350b2ccb7369dd39b6e45231a09475d67eb7e83b"}, - {file = "phonenumbers-8.12.28.tar.gz", hash = "sha256:42ea4f946d5cce0056cbce257842ea6b281e69828ad2e7f27b29d3908e5b06bd"}, -] -pillow = [ - {file = "Pillow-8.3.1-1-cp36-cp36m-win_amd64.whl", hash = "sha256:fd7eef578f5b2200d066db1b50c4aa66410786201669fb76d5238b007918fb24"}, - {file = "Pillow-8.3.1-1-cp37-cp37m-win_amd64.whl", hash = "sha256:75e09042a3b39e0ea61ce37e941221313d51a9c26b8e54e12b3ececccb71718a"}, - {file = "Pillow-8.3.1-1-cp38-cp38-win_amd64.whl", hash = "sha256:c0e0550a404c69aab1e04ae89cca3e2a042b56ab043f7f729d984bf73ed2a093"}, - {file = "Pillow-8.3.1-1-cp39-cp39-win_amd64.whl", hash = "sha256:479ab11cbd69612acefa8286481f65c5dece2002ffaa4f9db62682379ca3bb77"}, - {file = "Pillow-8.3.1-1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:f156d6ecfc747ee111c167f8faf5f4953761b5e66e91a4e6767e548d0f80129c"}, - {file = "Pillow-8.3.1-cp36-cp36m-macosx_10_10_x86_64.whl", hash = "sha256:196560dba4da7a72c5e7085fccc5938ab4075fd37fe8b5468869724109812edd"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:29c9569049d04aaacd690573a0398dbd8e0bf0255684fee512b413c2142ab723"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:c088a000dfdd88c184cc7271bfac8c5b82d9efa8637cd2b68183771e3cf56f04"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:fc214a6b75d2e0ea7745488da7da3c381f41790812988c7a92345978414fad37"}, - {file = "Pillow-8.3.1-cp36-cp36m-win32.whl", hash = "sha256:a17ca41f45cf78c2216ebfab03add7cc350c305c38ff34ef4eef66b7d76c5229"}, - {file = "Pillow-8.3.1-cp36-cp36m-win_amd64.whl", hash = "sha256:67b3666b544b953a2777cb3f5a922e991be73ab32635666ee72e05876b8a92de"}, - {file = "Pillow-8.3.1-cp37-cp37m-macosx_10_10_x86_64.whl", hash = "sha256:ff04c373477723430dce2e9d024c708a047d44cf17166bf16e604b379bf0ca14"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9364c81b252d8348e9cc0cb63e856b8f7c1b340caba6ee7a7a65c968312f7dab"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a2f381932dca2cf775811a008aa3027671ace723b7a38838045b1aee8669fdcf"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:d0da39795049a9afcaadec532e7b669b5ebbb2a9134576ebcc15dd5bdae33cc0"}, - {file = "Pillow-8.3.1-cp37-cp37m-win32.whl", hash = "sha256:2b6dfa068a8b6137da34a4936f5a816aba0ecc967af2feeb32c4393ddd671cba"}, - {file = "Pillow-8.3.1-cp37-cp37m-win_amd64.whl", hash = "sha256:a4eef1ff2d62676deabf076f963eda4da34b51bc0517c70239fafed1d5b51500"}, - {file = "Pillow-8.3.1-cp38-cp38-macosx_10_10_x86_64.whl", hash = "sha256:660a87085925c61a0dcc80efb967512ac34dbb256ff7dd2b9b4ee8dbdab58cf4"}, - {file = "Pillow-8.3.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:15a2808e269a1cf2131930183dcc0419bc77bb73eb54285dde2706ac9939fa8e"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:969cc558cca859cadf24f890fc009e1bce7d7d0386ba7c0478641a60199adf79"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:2ee77c14a0299d0541d26f3d8500bb57e081233e3fa915fa35abd02c51fa7fae"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:c11003197f908878164f0e6da15fce22373ac3fc320cda8c9d16e6bba105b844"}, - {file = "Pillow-8.3.1-cp38-cp38-win32.whl", hash = "sha256:3f08bd8d785204149b5b33e3b5f0ebbfe2190ea58d1a051c578e29e39bfd2367"}, - {file = "Pillow-8.3.1-cp38-cp38-win_amd64.whl", hash = "sha256:70af7d222df0ff81a2da601fab42decb009dc721545ed78549cb96e3a1c5f0c8"}, - {file = "Pillow-8.3.1-cp39-cp39-macosx_10_10_x86_64.whl", hash = "sha256:37730f6e68bdc6a3f02d2079c34c532330d206429f3cee651aab6b66839a9f0e"}, - {file = "Pillow-8.3.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:4bc3c7ef940eeb200ca65bd83005eb3aae8083d47e8fcbf5f0943baa50726856"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c35d09db702f4185ba22bb33ef1751ad49c266534339a5cebeb5159d364f6f82"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:0b2efa07f69dc395d95bb9ef3299f4ca29bcb2157dc615bae0b42c3c20668ffc"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:cc866706d56bd3a7dbf8bac8660c6f6462f2f2b8a49add2ba617bc0c54473d83"}, - {file = "Pillow-8.3.1-cp39-cp39-win32.whl", hash = "sha256:9a211b663cf2314edbdb4cf897beeb5c9ee3810d1d53f0e423f06d6ebbf9cd5d"}, - {file = "Pillow-8.3.1-cp39-cp39-win_amd64.whl", hash = "sha256:c2a5ff58751670292b406b9f06e07ed1446a4b13ffced6b6cab75b857485cbc8"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-macosx_10_10_x86_64.whl", hash = "sha256:c379425c2707078dfb6bfad2430728831d399dc95a7deeb92015eb4c92345eaf"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:114f816e4f73f9ec06997b2fde81a92cbf0777c9e8f462005550eed6bae57e63"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:8960a8a9f4598974e4c2aeb1bff9bdd5db03ee65fd1fce8adf3223721aa2a636"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-macosx_10_10_x86_64.whl", hash = "sha256:147bd9e71fb9dcf08357b4d530b5167941e222a6fd21f869c7911bac40b9994d"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:1fd5066cd343b5db88c048d971994e56b296868766e461b82fa4e22498f34d77"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:f4ebde71785f8bceb39dcd1e7f06bcc5d5c3cf48b9f69ab52636309387b097c8"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:1c03e24be975e2afe70dfc5da6f187eea0b49a68bb2b69db0f30a61b7031cee4"}, - {file = "Pillow-8.3.1.tar.gz", hash = "sha256:2cac53839bfc5cece8fdbe7f084d5e3ee61e1303cccc86511d351adcb9e2c792"}, -] -purplship = [ - {file = "purplship-2021.6.2-py3-none-any.whl", hash = "sha256:ded793b23664a14649f3c08ebbd344f6b58fbbc982d69481242478074ea74ff1"}, -] -py-soap = [ - {file = "py_soap-2020.3.2-py3-none-any.whl", hash = "sha256:61e2ec956d349bdd9d4c6248a2ae3c4cc4b0a2a5cf6b439b6de480a3bc2766a1"}, -] -six = [ - {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"}, - {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"}, -] -xmltodict = [ - {file = "xmltodict-0.12.0-py2.py3-none-any.whl", hash = "sha256:8bbcb45cc982f48b2ca8fe7e7827c5d792f217ecf1792626f808bf41c3b86051"}, - {file = "xmltodict-0.12.0.tar.gz", hash = "sha256:50d8c638ed7ecb88d90561beedbf720c9b4e851a9fa6c47ebd64e99d166d8a21"}, -] diff --git a/sdk/extensions/ups/purplship/mappers/ups/proxy.py b/sdk/extensions/ups/purplship/mappers/ups/proxy.py index ceb4cff478..299def6238 100644 --- a/sdk/extensions/ups/purplship/mappers/ups/proxy.py +++ b/sdk/extensions/ups/purplship/mappers/ups/proxy.py @@ -1,7 +1,8 @@ -from typing import List, Any +from typing import List, Any, Tuple from ups_lib.av_request import AddressValidationRequest from purplship.core.utils import ( XP, + DP, request as http, exec_parrallel, Serializable, @@ -28,36 +29,50 @@ def _send_request(self, path: str, request: Serializable[Any]) -> str: def validate_address( self, request: Serializable[AddressValidationRequest] ) -> Deserializable[str]: - response = self._send_request("/AV", request) + response = self._send_request("/webservices/AV", request) return Deserializable(response, XP.to_xml) def get_rates(self, request: Serializable[Envelope]) -> Deserializable[str]: - response = self._send_request("/Rate", request) + response = self._send_request("/webservices/Rate", request) return Deserializable(response, XP.to_xml) def get_tracking( - self, request: Serializable[List[Envelope]] - ) -> Deserializable[str]: + self, request: Serializable[List[str]] + ) -> Deserializable[List[Tuple[str, dict]]]: """ - get_tracking make parallel request for each TrackRequest + get_tracking makes parallel requests for each tracking number """ - def get_tracking(track_request: str): - return self._send_request("/Track", Serializable(track_request)) - - response: List[str] = exec_parrallel(get_tracking, request.serialize()) - - return Deserializable(XP.bundle_xml(xml_strings=response), XP.to_xml) + def get_tracking(tracking_number: str): + return tracking_number, http( + url=f"{self.settings.server_url}/track/v1/details/{tracking_number}", + headers={ + "Accept": "application/json", + "Content-Type": "application/json", + "AccessLicenseNumber": self.settings.access_license_number, + "Username": self.settings.username, + "Password": self.settings.password, + }, + method="GET", + ) + + responses: List[str] = exec_parrallel(get_tracking, request.serialize()) + return Deserializable( + responses, + lambda res: [ + (num, DP.to_dict(track)) for num, track in res if any(track.strip()) + ], + ) def create_shipment(self, request: Serializable[Envelope]) -> Deserializable[str]: - response = self._send_request("/Ship", request) + response = self._send_request("/webservices/Ship", request) return Deserializable(response, XP.to_xml) def cancel_shipment(self, request: Serializable) -> Deserializable[str]: - response = self._send_request("/Ship", request) + response = self._send_request("/webservices/Ship", request) return Deserializable(response, XP.to_xml) @@ -66,7 +81,7 @@ def process(job: Job): if job.data is None: return job.fallback - return self._send_request("/Pickup", job.data) + return self._send_request("/webservices/Pickup", job.data) pipeline: Pipeline = request.serialize() response = pipeline.apply(process) @@ -77,7 +92,7 @@ def process(job: Job): if job.data is None: return job.fallback - return self._send_request("/Pickup", job.data) + return self._send_request("/webservices/Pickup", job.data) pipeline: Pipeline = request.serialize() response = pipeline.apply(process) @@ -85,6 +100,6 @@ def process(job: Job): return Deserializable(XP.bundle_xml(response), XP.to_xml) def cancel_pickup(self, request: Serializable[Envelope]) -> Deserializable[str]: - response = self._send_request("/Pickup", request) + response = self._send_request("/webservices/Pickup", request) return Deserializable(response, XP.to_xml) diff --git a/sdk/extensions/ups/purplship/providers/ups/error.py b/sdk/extensions/ups/purplship/providers/ups/error.py index f30dbbc8a4..057337a8f8 100644 --- a/sdk/extensions/ups/purplship/providers/ups/error.py +++ b/sdk/extensions/ups/purplship/providers/ups/error.py @@ -21,3 +21,18 @@ def _extract_error(error_node: Element, settings: Settings) -> Message: carrier_name=settings.carrier_name, carrier_id=settings.carrier_id, ) + + +def parse_rest_error_response( + errors: List[dict], settings: Settings, details: dict = None +) -> List[Message]: + return [ + Message( + carrier_name=settings.carrier_name, + carrier_id=settings.carrier_id, + code=error.get("code"), + message=error.get("message"), + details=details, + ) + for error in errors + ] diff --git a/sdk/extensions/ups/purplship/providers/ups/tracking.py b/sdk/extensions/ups/purplship/providers/ups/tracking.py index 5d753baa74..5505442848 100644 --- a/sdk/extensions/ups/purplship/providers/ups/tracking.py +++ b/sdk/extensions/ups/purplship/providers/ups/tracking.py @@ -1,107 +1,82 @@ from typing import List, Tuple -from ups_lib.common import RequestType, TransactionReferenceType -from ups_lib.track_web_service_schema import TrackRequest, ShipmentType, ActivityType, AddressType -from purplship.core.utils import Serializable, Element, apply_namespaceprefix, create_envelope, Envelope, XP, DF +from ups_lib.rest_tracking_response import ( + Shipment, + Package, +) +from purplship.core.utils import ( + Serializable, + Envelope, + DP, + DF, + SF, +) from purplship.core.models import ( TrackingEvent, TrackingRequest, TrackingDetails, Message, ) -from purplship.providers.ups.error import parse_error_response +from purplship.providers.ups.error import parse_rest_error_response from purplship.providers.ups.utils import Settings def parse_tracking_response( - response: Element, settings: Settings + responses: List[Tuple[str, dict]], settings: Settings ) -> Tuple[List[TrackingDetails], List[Message]]: - track_details = response.xpath(".//*[local-name() = $name]", name="Shipment") - tracking: List[TrackingDetails] = [ - _extract_details(node, settings) for node in track_details + details = [ + _extract_details(response["trackResponse"]["shipment"][0], settings) + for _, response in responses + if "trackResponse" in response + ] + messages = [ + parse_rest_error_response( + response["response"]["errors"], + settings, + details=dict(tracking_number=tracking_number), + ) + for tracking_number, response in responses + if "response" in response ] - return tracking, parse_error_response(response, settings) + return details, messages -def _extract_details(shipment_node: Element, settings: Settings) -> TrackingDetails: - track_detail = XP.to_object(ShipmentType, shipment_node) - activities = [ - XP.to_object(ActivityType, node) - for node in - shipment_node.xpath(".//*[local-name() = $name]", name="Activity") - ] - delivered = any(a.Status.Type == 'D' for a in activities) + +def _extract_details(detail: dict, settings: Settings) -> TrackingDetails: + package: Package = next(iter(DP.to_object(Shipment, detail).package)) + delivered = any(a.status.type == "D" for a in package.activity) + estimated_delivery = next( + iter([d.date for d in package.deliveryDate if d.type == "DEL"]), None + ) return TrackingDetails( carrier_name=settings.carrier_name, carrier_id=settings.carrier_id, - tracking_number=track_detail.InquiryNumber.Value, - events=list( - map( - lambda a: TrackingEvent( - date=DF.fdate(a.Date, "%Y%m%d"), - description=a.Status.Description if a.Status else None, - location=( - _format_location(a.ActivityLocation.Address) - if a.ActivityLocation is not None and a.ActivityLocation.Address is not None else None - ), - time=DF.ftime(a.Time, "%H%M%S"), - code=a.Status.Code if a.Status else None, + tracking_number=package.trackingNumber, + events=[ + TrackingEvent( + date=DF.fdate(a.date, "%Y%m%d"), + description=a.status.description if a.status else None, + location=( + SF.concat_str( + a.location.address.city, + a.location.address.stateProvince, + a.location.address.postalCode, + a.location.address.country, + join=True, + separator=", ", + ) + if a.location + else None ), - activities, + time=DF.ftime(a.time, "%H%M%S"), + code=a.status.code if a.status else None, ) - ), - delivered=delivered - ) - - -def _format_location(address: AddressType) -> str: - return ", ".join([ - location for location in [ - address.City, address.StateProvinceCode, address.CountryCode - ] if location is not None - ]) - - -def tracking_request( - payload: TrackingRequest, settings: Settings -) -> Serializable[List[Envelope]]: - requests = [ - create_envelope( - header_content=settings.Security, - body_content=TrackRequest( - Request=RequestType( - RequestOption=[1], - TransactionReference=TransactionReferenceType( - TransactionIdentifier="TransactionIdentifier" - ), - ), - InquiryNumber=number, - ), - ) - for number in payload.tracking_numbers - ] - return Serializable(requests, _request_serializer) - - -def _request_serializer(requests: List[Envelope]) -> List[str]: - namespacedef_ = """ - xmlns:tns="http://schemas.xmlsoap.org/soap/envelope/" - xmlns:upss="http://www.ups.com/XMLSchema/XOLTWS/UPSS/v1.0" - xmlns:trk="http://www.ups.com/XMLSchema/XOLTWS/Track/v2.0" - xmlns:common="http://www.ups.com/XMLSchema/XOLTWS/Common/v1.0" - """.replace( - " ", "" - ).replace( - "\n", " " + for a in package.activity + ], + delivered=delivered, + estimated_delivery=DF.fdate(estimated_delivery, "%Y%m%d"), ) - def serialize(envelope: Envelope): - envelope.Body.ns_prefix_ = envelope.ns_prefix_ - envelope.Header.ns_prefix_ = envelope.ns_prefix_ - apply_namespaceprefix(envelope.Body.anytypeobjs_[0], "trk") - apply_namespaceprefix(envelope.Header.anytypeobjs_[0], "upss") - apply_namespaceprefix(envelope.Body.anytypeobjs_[0].Request, "common") - - return XP.export(envelope, namespacedef_=namespacedef_) - return [serialize(request) for request in requests] +def tracking_request(payload: TrackingRequest, _) -> Serializable[List[Envelope]]: + return Serializable(payload.tracking_numbers) diff --git a/sdk/extensions/ups/purplship/providers/ups/utils.py b/sdk/extensions/ups/purplship/providers/ups/utils.py index e4c94a290b..7e29e73bfd 100644 --- a/sdk/extensions/ups/purplship/providers/ups/utils.py +++ b/sdk/extensions/ups/purplship/providers/ups/utils.py @@ -21,11 +21,7 @@ def carrier_name(self): @property def server_url(self): - return ( - "https://wwwcie.ups.com/webservices" - if self.test - else "https://onlinetools.ups.com/webservices" - ) + return "https://wwwcie.ups.com" if self.test else "https://onlinetools.ups.com" @property def Security(self): diff --git a/sdk/extensions/ups/pyproject.toml b/sdk/extensions/ups/pyproject.toml index 41f286d849..eace977b16 100644 --- a/sdk/extensions/ups/pyproject.toml +++ b/sdk/extensions/ups/pyproject.toml @@ -1,11 +1,11 @@ [tool.poetry] name = "purplship.ups" -version = "2021.10" -homepage="https://docs.purplship.com" +version = "2021.11" +homepage="https://next.purplship.com/docs/guides/sdk" repository="https://github.com/purplship/purplship" description = "Purplship - UPS Shipping Extension" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [{ include = "purplship" }] classifiers=[ diff --git a/sdk/extensions/ups/tests/ups/address.py b/sdk/extensions/ups/tests/ups/address.py index 0fe693c665..67d7b6c697 100644 --- a/sdk/extensions/ups/tests/ups/address.py +++ b/sdk/extensions/ups/tests/ups/address.py @@ -26,7 +26,8 @@ def test_validate_address(self): purplship.Address.validate(self.AddressValidationRequest).from_(gateway) self.assertEqual( - mock.call_args[1]["url"], f"{gateway.settings.server_url}/AV" + mock.call_args[1]["url"], + f"{gateway.settings.server_url}/webservices/AV", ) def test_parse_address_validation_response(self): diff --git a/sdk/extensions/ups/tests/ups/pickup.py b/sdk/extensions/ups/tests/ups/pickup.py index 261e5ed56f..af4ace4880 100644 --- a/sdk/extensions/ups/tests/ups/pickup.py +++ b/sdk/extensions/ups/tests/ups/pickup.py @@ -48,11 +48,11 @@ def test_create_pickup(self): rate_call, create_call = mocks.call_args_list self.assertEqual( rate_call[1]["url"], - f"{gateway.settings.server_url}/Pickup", + f"{gateway.settings.server_url}/webservices/Pickup", ) self.assertEqual( create_call[1]["url"], - f"{gateway.settings.server_url}/Pickup", + f"{gateway.settings.server_url}/webservices/Pickup", ) def test_update_pickup(self): @@ -67,15 +67,15 @@ def test_update_pickup(self): rate_call, create_call, cancel_call = mocks.call_args_list self.assertEqual( rate_call[1]["url"], - f"{gateway.settings.server_url}/Pickup", + f"{gateway.settings.server_url}/webservices/Pickup", ) self.assertEqual( create_call[1]["url"], - f"{gateway.settings.server_url}/Pickup", + f"{gateway.settings.server_url}/webservices/Pickup", ) self.assertEqual( cancel_call[1]["url"], - f"{gateway.settings.server_url}/Pickup", + f"{gateway.settings.server_url}/webservices/Pickup", ) def test_parse_pickup_reply(self): diff --git a/sdk/extensions/ups/tests/ups/rate.py b/sdk/extensions/ups/tests/ups/rate.py index c13136b25a..d1b4332ab8 100644 --- a/sdk/extensions/ups/tests/ups/rate.py +++ b/sdk/extensions/ups/tests/ups/rate.py @@ -26,7 +26,7 @@ def test_package_get_quotes(self, http_mock): Rating.fetch(self.RateRequest).from_(gateway) url = http_mock.call_args[1]["url"] - self.assertEqual(url, f"{gateway.settings.server_url}/Rate") + self.assertEqual(url, f"{gateway.settings.server_url}/webservices/Rate") def test_parse_package_quote_response(self): with patch("purplship.mappers.ups.proxy.http") as mock: diff --git a/sdk/extensions/ups/tests/ups/shipment.py b/sdk/extensions/ups/tests/ups/shipment.py index bd09b3097c..902592c051 100644 --- a/sdk/extensions/ups/tests/ups/shipment.py +++ b/sdk/extensions/ups/tests/ups/shipment.py @@ -38,7 +38,7 @@ def test_create_shipment(self, http_mock): Shipment.create(self.ShipmentRequest).from_(gateway) url = http_mock.call_args[1]["url"] - self.assertEqual(url, f"{gateway.settings.server_url}/Ship") + self.assertEqual(url, f"{gateway.settings.server_url}/webservices/Ship") def test_parse_shipment_response(self): with patch("purplship.mappers.ups.proxy.http") as mock: @@ -64,7 +64,9 @@ def test_parse_cancel_shipment_response(self): parsed_response = ( Shipment.cancel(self.ShipmentCancelRequest).from_(gateway).parse() ) - self.assertListEqual(DP.to_dict(parsed_response), ParsedShipmentCancelResponse) + self.assertListEqual( + DP.to_dict(parsed_response), ParsedShipmentCancelResponse + ) if __name__ == "__main__": @@ -146,7 +148,7 @@ def test_parse_cancel_shipment_response(self): "payment": {"paid_by": "sender"}, "options": {"email_notification_to": "test@mail.com"}, "reference": "Your Customer Context", - "label_type": "ZPL" + "label_type": "ZPL", } diff --git a/sdk/extensions/ups/tests/ups/tracking.py b/sdk/extensions/ups/tests/ups/tracking.py index ac9e03eebe..e65f5726ea 100644 --- a/sdk/extensions/ups/tests/ups/tracking.py +++ b/sdk/extensions/ups/tests/ups/tracking.py @@ -14,14 +14,17 @@ def setUp(self): def test_create_tracking_request(self): request = gateway.mapper.create_tracking_request(self.TrackingRequest) - self.assertEqual(request.serialize(), [TrackingRequestXml]) + self.assertEqual(request.serialize(), TrackingRequestPayload) @patch("purplship.mappers.ups.proxy.http", return_value="") def test_get_tracking(self, http_mock): Tracking.fetch(self.TrackingRequest).from_(gateway) url = http_mock.call_args[1]["url"] - self.assertEqual(url, f"{gateway.settings.server_url}/Track") + self.assertEqual( + url, + f"{gateway.settings.server_url}/track/v1/details/{self.TrackingRequest.tracking_numbers[0]}", + ) def test_tracking_auth_error_parsing(self): with patch("purplship.mappers.ups.proxy.http") as mock: @@ -33,21 +36,23 @@ def test_tracking_auth_error_parsing(self): def test_tracking_response_parsing(self): with patch("purplship.mappers.ups.proxy.http") as mock: - mock.return_value = TrackingResponseXml + mock.return_value = TrackingResponseJSON parsed_response = ( Tracking.fetch(self.TrackingRequest).from_(gateway).parse() ) - - self.assertEqual(DP.to_dict(parsed_response), DP.to_dict(ParsedTrackingResponse)) + self.assertEqual( + DP.to_dict(parsed_response), DP.to_dict(ParsedTrackingResponse) + ) def test_tracking_unknown_response_parsing(self): with patch("purplship.mappers.ups.proxy.http") as mock: - mock.return_value = InvalidTrackingNumberResponseXML + mock.return_value = InvalidTrackingNumberResponseJSON parsed_response = ( Tracking.fetch(self.TrackingRequest).from_(gateway).parse() ) self.assertEqual( - DP.to_dict(parsed_response), DP.to_dict(ParsedInvalidTrackingNumberResponse) + DP.to_dict(parsed_response), + DP.to_dict(ParsedInvalidTrackingNumberResponse), ) @@ -60,66 +65,112 @@ def test_tracking_unknown_response_parsing(self): ParsedAuthError = [ [], [ - { - "carrier_name": "ups", - "carrier_id": "ups", - "code": "250003", - "message": "Invalid Access License number", - } + [ + { + "carrier_id": "ups", + "carrier_name": "ups", + "code": "250003", + "details": {"tracking_number": "1Z12345E6205277936"}, + "message": "Invalid Access License number", + } + ] ], ] ParsedTrackingResponse = [ [ { - "carrier_name": "ups", "carrier_id": "ups", + "carrier_name": "ups", "delivered": True, + "estimated_delivery": "2021-10-21", "events": [ { - "code": "KB", - "date": "2010-08-30", - "description": "UPS INTERNAL ACTIVITY CODE", - "location": "BONN, DE", - "time": "10:39", + "code": "FS", + "date": "2021-10-21", + "description": "Delivered", + "location": "ADRIAN, MI, US", + "time": "14:33", }, { - "code": "DJ", - "date": "2010-08-30", - "description": "ADVERSE WEATHER CONDITIONS CAUSED THIS DELAY", - "location": "BONN, DE", - "time": "10:32", + "code": "OT", + "date": "2021-10-21", + "description": "Out For Delivery Today", + "location": "Adrian, MI, US", + "time": "09:22", }, { - "code": "X", - "date": "2010-09-10", - "description": "THE RECEIVER'S LOCATION WAS CLOSED ON THE 2ND DELIVERY ATTEMPT. A 3RD DELIVERY ATTEMPT WILL BE MADE", - "location": "ANYTOWN, GA, US", - "time": "18:03", + "code": "YP", + "date": "2021-10-21", + "description": "Processing at UPS Facility", + "location": "Adrian, MI, US", + "time": "04:27", }, { - "code": "FS", - "date": "2010-09-12", - "description": "DELIVERED", - "location": "ANYTOWN, GA, US", - "time": "11:57", + "code": "AR", + "date": "2021-10-21", + "description": "Arrived at Facility", + "location": "Adrian, MI, US", + "time": "01:15", }, { - "code": "PU", - "date": "2010-04-04", - "description": "PICKUP SCAN", - "location": "WEST CHESTER-MALVERN, GA, US", - "time": "14:40", + "code": "DP", + "date": "2021-10-21", + "description": "Departed from Facility", + "location": "Maumee, OH, US", + "time": "00:27", }, { - "code": "KB", - "date": "2010-08-30", - "description": "UPS INTERNAL ACTIVITY CODE", - "location": "BONN, DE", - "time": "13:13", + "code": "AR", + "date": "2021-10-20", + "description": "Arrived at Facility", + "location": "Maumee, OH, US", + "time": "17:57", + }, + { + "code": "DP", + "date": "2021-10-20", + "description": "Departed from Facility", + "location": "Nashville, TN, US", + "time": "08:20", + }, + { + "code": "AR", + "date": "2021-10-19", + "description": "Arrived at Facility", + "location": "Nashville, TN, US", + "time": "22:24", + }, + { + "code": "DP", + "date": "2021-10-19", + "description": "Departed from Facility", + "location": "Nashville, TN, US", + "time": "21:59", + }, + { + "code": "OR", + "date": "2021-10-19", + "description": "Origin Scan", + "location": "Nashville, TN, US", + "time": "20:09", + }, + { + "code": "XD", + "date": "2021-10-19", + "description": "Drop-Off", + "location": "Nashville, TN, US", + "time": "12:18", + }, + { + "code": "MP", + "date": "2021-10-18", + "description": "Shipper created a label, UPS has not received the package yet. ", + "location": "US", + "time": "14:02", }, ], - "tracking_number": "1Z12345E6205277936", + "tracking_number": "1ZR760R60332160282", } ], [], @@ -128,228 +179,271 @@ def test_tracking_unknown_response_parsing(self): ParsedInvalidTrackingNumberResponse = [ [], [ - { - "carrier_name": "ups", - "carrier_id": "ups", - "code": "151018", - "message": "Invalid tracking number", - } + [ + { + "carrier_id": "ups", + "carrier_name": "ups", + "code": "TV1002", + "details": {"tracking_number": "1Z12345E6205277936"}, + "message": "Invalid inquiry number", + } + ] ], ] -AuthError = """ - - - - - Client - An exception has been raised as a result of client data. - - - - Authentication - - 250003 - Invalid Access License number - - - upss:AccessLicenseNumber - /tns:Envelope[1]/tns:Header[1]/upss:UPSSecurity[1]/upss:ServiceAccessToken[1]/upss:AccessLicenseNumber[1] - FG09H9G8H09GH8G0 - - - - - - - - +AuthError = """{ + "response": { + "errors": [ + { + "code": "250003", + "message": "Invalid Access License number" + } + ] + } +} """ -TrackingRequestXml = """ - - - - username - password - - - FG09H9G8H09GH8G0 - - - - - - - 1 - - TransactionIdentifier - - - 1Z12345E6205277936 - - - -""" - -TrackingResponseXml = """ - - - - - - 1 - Success - - - ciewstt217q879Ddg9vLBK - - - - - 01 - ShipmentIdentificationNumber - 1Z12345E6205277936 - - - 01 - Small Package - - 12345E - - 13 - NEXT DAY AIR SAVER - - - 1Z12345E6205277936 - - - - BONN - DE - - - - X - UPS INTERNAL ACTIVITY CODE - KB - - 20100830 - 103900 - - - - - BONN - DE - - - - X - ADVERSE WEATHER CONDITIONS CAUSED THIS DELAY - DJ - - 20100830 - 103200 - - - - - ANYTOWN - GA - US - - - - THE RECEIVER'S LOCATION WAS CLOSED ON THE 2ND DELIVERY ATTEMPT. A 3RD DELIVERY ATTEMPT WILL BE MADE - X - - 20100910 - 180300 - - - - - ANYTOWN - GA - 30340 - US - - MX - LEFT AT - - - D - DELIVERED - FS - - 20100912 - 115700 - - - - - WEST CHESTER-MALVERN - GA - US - - - - P - PICKUP SCAN - PU - - 20100404 - 144000 - - - - - BONN - DE - - - - X - UPS INTERNAL ACTIVITY CODE - KB - - 20100830 - 131300 - - - - LBS - - 1.00 - - - - You are using UPS tracking service on customer integration test environment, please switch to UPS production environment once you finish the test. The URL is https://onlinetools.ups.com/webservices/Track - - - +TrackingResponseJSON = """{ + "trackResponse": { + "shipment": [ + { + "package": [ + { + "trackingNumber": "1ZR760R60332160282", + "deliveryDate": [ + { + "type": "DEL", + "date": "20211021" + } + ], + "deliveryTime": { + "startTime": "", + "endTime": "143316", + "type": "DEL" + }, + "activity": [ + { + "location": { + "address": { + "city": "ADRIAN", + "stateProvince": "MI", + "postalCode": "", + "country": "US" + } + }, + "status": { + "type": "D", + "description": "Delivered", + "code": "FS" + }, + "date": "20211021", + "time": "143316" + }, + { + "location": { + "address": { + "city": "Adrian", + "stateProvince": "MI", + "postalCode": "", + "country": "US" + } + }, + "status": { + "type": "I", + "description": "Out For Delivery Today", + "code": "OT" + }, + "date": "20211021", + "time": "092215" + }, + { + "location": { + "address": { + "city": "Adrian", + "stateProvince": "MI", + "postalCode": "", + "country": "US" + } + }, + "status": { + "type": "I", + "description": "Processing at UPS Facility", + "code": "YP" + }, + "date": "20211021", + "time": "042712" + }, + { + "location": { + "address": { + "city": "Adrian", + "stateProvince": "MI", + "postalCode": "", + "country": "US" + } + }, + "status": { + "type": "I", + "description": "Arrived at Facility", + "code": "AR" + }, + "date": "20211021", + "time": "011500" + }, + { + "location": { + "address": { + "city": "Maumee", + "stateProvince": "OH", + "postalCode": "", + "country": "US" + } + }, + "status": { + "type": "I", + "description": "Departed from Facility", + "code": "DP" + }, + "date": "20211021", + "time": "002700" + }, + { + "location": { + "address": { + "city": "Maumee", + "stateProvince": "OH", + "postalCode": "", + "country": "US" + } + }, + "status": { + "type": "I", + "description": "Arrived at Facility", + "code": "AR" + }, + "date": "20211020", + "time": "175700" + }, + { + "location": { + "address": { + "city": "Nashville", + "stateProvince": "TN", + "postalCode": "", + "country": "US" + } + }, + "status": { + "type": "I", + "description": "Departed from Facility", + "code": "DP" + }, + "date": "20211020", + "time": "082000" + }, + { + "location": { + "address": { + "city": "Nashville", + "stateProvince": "TN", + "postalCode": "", + "country": "US" + } + }, + "status": { + "type": "I", + "description": "Arrived at Facility", + "code": "AR" + }, + "date": "20211019", + "time": "222400" + }, + { + "location": { + "address": { + "city": "Nashville", + "stateProvince": "TN", + "postalCode": "", + "country": "US" + } + }, + "status": { + "type": "I", + "description": "Departed from Facility", + "code": "DP" + }, + "date": "20211019", + "time": "215900" + }, + { + "location": { + "address": { + "city": "Nashville", + "stateProvince": "TN", + "postalCode": "", + "country": "US" + } + }, + "status": { + "type": "I", + "description": "Origin Scan", + "code": "OR" + }, + "date": "20211019", + "time": "200952" + }, + { + "location": { + "address": { + "city": "Nashville", + "stateProvince": "TN", + "postalCode": "", + "country": "US" + } + }, + "status": { + "type": "I", + "description": "Drop-Off", + "code": "XD" + }, + "date": "20211019", + "time": "121800" + }, + { + "location": { + "address": { + "city": "", + "stateProvince": "", + "postalCode": "", + "country": "US" + } + }, + "status": { + "type": "M", + "description": "Shipper created a label, UPS has not received the package yet. ", + "code": "MP" + }, + "date": "20211018", + "time": "140229" + } + ] + } + ] + } + ] + } +} """ -InvalidTrackingNumberResponseXML = """ - - - - Client - An exception has been raised as a result of client data. - - - - Hard - - 151018 - Invalid tracking number - - - - - - - +InvalidTrackingNumberResponseJSON = """{ + "response": { + "errors": [ + { + "code": "TV1002", + "message": "Invalid inquiry number" + } + ] + } +} """ diff --git a/sdk/extensions/ups_ground/pyproject.toml b/sdk/extensions/ups_ground/pyproject.toml index d0ed94e87e..c9a6dc60e8 100644 --- a/sdk/extensions/ups_ground/pyproject.toml +++ b/sdk/extensions/ups_ground/pyproject.toml @@ -1,11 +1,11 @@ [tool.poetry] name = "purplship.ups_ground" version = "2021.10" -homepage="https://docs.purplship.com" +homepage="https://next.purplship.com/docs/guides/sdk" repository="https://github.com/purplship/purplship" description = "Purplship - UPS Shipping Extension" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [{ include = "purplship" }] classifiers=[ diff --git a/sdk/extensions/usps/poetry.lock b/sdk/extensions/usps/poetry.lock deleted file mode 100644 index 7a90b62d8f..0000000000 --- a/sdk/extensions/usps/poetry.lock +++ /dev/null @@ -1,240 +0,0 @@ -[[package]] -name = "attrs" -version = "21.2.0" -description = "Classes Without Boilerplate" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" - -[package.extras] -dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit"] -docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"] -tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface"] -tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins"] - -[[package]] -name = "carrier.usps" -version = "2021.6" -description = "USPS Web API Schemas Python Data Types library" -category = "main" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "jstruct" -version = "2020.4.0" -description = "Readable serializable and deserializable Python nested models" -category = "main" -optional = false -python-versions = "*" - -[package.dependencies] -attrs = "*" - -[[package]] -name = "lxml" -version = "4.6.3" -description = "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API." -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*" - -[package.extras] -cssselect = ["cssselect (>=0.7)"] -html5 = ["html5lib"] -htmlsoup = ["beautifulsoup4"] -source = ["Cython (>=0.29.7)"] - -[[package]] -name = "lxml-stubs" -version = "0.1.1" -description = "Type annotations for the lxml package" -category = "main" -optional = false -python-versions = "*" - -[package.extras] -test = ["pytest (>=6.0.0)", "pytest-mypy-plugins (==1.4.0)", "coverage[toml] (==5.2)"] - -[[package]] -name = "phonenumbers" -version = "8.12.28" -description = "Python version of Google's common library for parsing, formatting, storing and validating international phone numbers." -category = "main" -optional = false -python-versions = "*" - -[[package]] -name = "pillow" -version = "8.3.1" -description = "Python Imaging Library (Fork)" -category = "main" -optional = false -python-versions = ">=3.6" - -[[package]] -name = "purplship" -version = "2021.6.2" -description = "Multi-carrier shipping API integration with python" -category = "main" -optional = false -python-versions = ">=3.7,<4.0" - -[package.dependencies] -jstruct = ">=2020.4.0,<2021.0.0" -lxml = ">=4.6.2,<5.0.0" -lxml-stubs = ">=0.1.1,<0.2.0" -phonenumbers = ">=8.12.17,<9.0.0" -Pillow = ">=8.1.0,<9.0.0" -py-soap = ">=2020.3.2,<2021.0.0" -xmltodict = ">=0.12.0,<0.13.0" - -[[package]] -name = "py-soap" -version = "2020.3.2" -description = "SOAP Schemas Python Data Types library" -category = "main" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "six" -version = "1.16.0" -description = "Python 2 and 3 compatibility utilities" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" - -[[package]] -name = "xmltodict" -version = "0.12.0" -description = "Makes working with XML feel like you are working with JSON" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.7" -content-hash = "9fa39f16867f2a1fef7b383cf1d0143e8886f0a33f0d34ee7b7706ee561a71b5" - -[metadata.files] -attrs = [ - {file = "attrs-21.2.0-py2.py3-none-any.whl", hash = "sha256:149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1"}, - {file = "attrs-21.2.0.tar.gz", hash = "sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"}, -] -"carrier.usps" = [ - {file = "carrier.usps-2021.6-py3-none-any.whl", hash = "sha256:3db8bb9d7ebd30ad7b4de01af71ed66b6088b63ea314729e4a2a2215f1864dfb"}, -] -jstruct = [ - {file = "jstruct-2020.4.0-py3-none-any.whl", hash = "sha256:86257c1332e1ba6983d78e3199fb3dcadaf742e96c3c1a97f3ba322fa241f89c"}, -] -lxml = [ - {file = "lxml-4.6.3-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:df7c53783a46febb0e70f6b05df2ba104610f2fb0d27023409734a3ecbb78fb2"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:1b7584d421d254ab86d4f0b13ec662a9014397678a7c4265a02a6d7c2b18a75f"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:079f3ae844f38982d156efce585bc540c16a926d4436712cf4baee0cce487a3d"}, - {file = "lxml-4.6.3-cp27-cp27m-win32.whl", hash = "sha256:bc4313cbeb0e7a416a488d72f9680fffffc645f8a838bd2193809881c67dd106"}, - {file = "lxml-4.6.3-cp27-cp27m-win_amd64.whl", hash = "sha256:8157dadbb09a34a6bd95a50690595e1fa0af1a99445e2744110e3dca7831c4ee"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:7728e05c35412ba36d3e9795ae8995e3c86958179c9770e65558ec3fdfd3724f"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:4bff24dfeea62f2e56f5bab929b4428ae6caba2d1eea0c2d6eb618e30a71e6d4"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:74f7d8d439b18fa4c385f3f5dfd11144bb87c1da034a466c5b5577d23a1d9b51"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:f90ba11136bfdd25cae3951af8da2e95121c9b9b93727b1b896e3fa105b2f586"}, - {file = "lxml-4.6.3-cp35-cp35m-win32.whl", hash = "sha256:f2380a6376dfa090227b663f9678150ef27543483055cc327555fb592c5967e2"}, - {file = "lxml-4.6.3-cp35-cp35m-win_amd64.whl", hash = "sha256:c4f05c5a7c49d2fb70223d0d5bcfbe474cf928310ac9fa6a7c6dddc831d0b1d4"}, - {file = "lxml-4.6.3-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:d2e35d7bf1c1ac8c538f88d26b396e73dd81440d59c1ef8522e1ea77b345ede4"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:289e9ca1a9287f08daaf796d96e06cb2bc2958891d7911ac7cae1c5f9e1e0ee3"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:bccbfc27563652de7dc9bdc595cb25e90b59c5f8e23e806ed0fd623755b6565d"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:820628b7b3135403540202e60551e741f9b6d3304371712521be939470b454ec"}, - {file = "lxml-4.6.3-cp36-cp36m-win32.whl", hash = "sha256:5a0a14e264069c03e46f926be0d8919f4105c1623d620e7ec0e612a2e9bf1c04"}, - {file = "lxml-4.6.3-cp36-cp36m-win_amd64.whl", hash = "sha256:92e821e43ad382332eade6812e298dc9701c75fe289f2a2d39c7960b43d1e92a"}, - {file = "lxml-4.6.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:efd7a09678fd8b53117f6bae4fa3825e0a22b03ef0a932e070c0bdbb3a35e654"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:efac139c3f0bf4f0939f9375af4b02c5ad83a622de52d6dfa8e438e8e01d0eb0"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:0fbcf5565ac01dff87cbfc0ff323515c823081c5777a9fc7703ff58388c258c3"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:122fba10466c7bd4178b07dba427aa516286b846b2cbd6f6169141917283aae2"}, - {file = "lxml-4.6.3-cp37-cp37m-win32.whl", hash = "sha256:3439c71103ef0e904ea0a1901611863e51f50b5cd5e8654a151740fde5e1cade"}, - {file = "lxml-4.6.3-cp37-cp37m-win_amd64.whl", hash = "sha256:4289728b5e2000a4ad4ab8da6e1db2e093c63c08bdc0414799ee776a3f78da4b"}, - {file = "lxml-4.6.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:b007cbb845b28db4fb8b6a5cdcbf65bacb16a8bd328b53cbc0698688a68e1caa"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_i686.whl", hash = "sha256:76fa7b1362d19f8fbd3e75fe2fb7c79359b0af8747e6f7141c338f0bee2f871a"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:26e761ab5b07adf5f555ee82fb4bfc35bf93750499c6c7614bd64d12aaa67927"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:66e575c62792c3f9ca47cb8b6fab9e35bab91360c783d1606f758761810c9791"}, - {file = "lxml-4.6.3-cp38-cp38-win32.whl", hash = "sha256:89b8b22a5ff72d89d48d0e62abb14340d9e99fd637d046c27b8b257a01ffbe28"}, - {file = "lxml-4.6.3-cp38-cp38-win_amd64.whl", hash = "sha256:2a9d50e69aac3ebee695424f7dbd7b8c6d6eb7de2a2eb6b0f6c7db6aa41e02b7"}, - {file = "lxml-4.6.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:ce256aaa50f6cc9a649c51be3cd4ff142d67295bfc4f490c9134d0f9f6d58ef0"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_i686.whl", hash = "sha256:7610b8c31688f0b1be0ef882889817939490a36d0ee880ea562a4e1399c447a1"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:f8380c03e45cf09f8557bdaa41e1fa7c81f3ae22828e1db470ab2a6c96d8bc23"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:884ab9b29feaca361f7f88d811b1eea9bfca36cf3da27768d28ad45c3ee6f969"}, - {file = "lxml-4.6.3-cp39-cp39-win32.whl", hash = "sha256:33bb934a044cf32157c12bfcfbb6649807da20aa92c062ef51903415c704704f"}, - {file = "lxml-4.6.3-cp39-cp39-win_amd64.whl", hash = "sha256:542d454665a3e277f76954418124d67516c5f88e51a900365ed54a9806122b83"}, - {file = "lxml-4.6.3.tar.gz", hash = "sha256:39b78571b3b30645ac77b95f7c69d1bffc4cf8c3b157c435a34da72e78c82468"}, -] -lxml-stubs = [ - {file = "lxml-stubs-0.1.1.tar.gz", hash = "sha256:9b6a01ba4bccd6e532c01e19d2a3bc6d1d018fa0b9870236f61f315cb7b06648"}, - {file = "lxml_stubs-0.1.1-py3-none-any.whl", hash = "sha256:d34a28be0e2525b0236aff7fe67af1f61911f556cadbc61f09810b69f762b747"}, -] -phonenumbers = [ - {file = "phonenumbers-8.12.28-py2.py3-none-any.whl", hash = "sha256:f8ce05f82955d2faeefe2303350b2ccb7369dd39b6e45231a09475d67eb7e83b"}, - {file = "phonenumbers-8.12.28.tar.gz", hash = "sha256:42ea4f946d5cce0056cbce257842ea6b281e69828ad2e7f27b29d3908e5b06bd"}, -] -pillow = [ - {file = "Pillow-8.3.1-1-cp36-cp36m-win_amd64.whl", hash = "sha256:fd7eef578f5b2200d066db1b50c4aa66410786201669fb76d5238b007918fb24"}, - {file = "Pillow-8.3.1-1-cp37-cp37m-win_amd64.whl", hash = "sha256:75e09042a3b39e0ea61ce37e941221313d51a9c26b8e54e12b3ececccb71718a"}, - {file = "Pillow-8.3.1-1-cp38-cp38-win_amd64.whl", hash = "sha256:c0e0550a404c69aab1e04ae89cca3e2a042b56ab043f7f729d984bf73ed2a093"}, - {file = "Pillow-8.3.1-1-cp39-cp39-win_amd64.whl", hash = "sha256:479ab11cbd69612acefa8286481f65c5dece2002ffaa4f9db62682379ca3bb77"}, - {file = "Pillow-8.3.1-1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:f156d6ecfc747ee111c167f8faf5f4953761b5e66e91a4e6767e548d0f80129c"}, - {file = "Pillow-8.3.1-cp36-cp36m-macosx_10_10_x86_64.whl", hash = "sha256:196560dba4da7a72c5e7085fccc5938ab4075fd37fe8b5468869724109812edd"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:29c9569049d04aaacd690573a0398dbd8e0bf0255684fee512b413c2142ab723"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:c088a000dfdd88c184cc7271bfac8c5b82d9efa8637cd2b68183771e3cf56f04"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:fc214a6b75d2e0ea7745488da7da3c381f41790812988c7a92345978414fad37"}, - {file = "Pillow-8.3.1-cp36-cp36m-win32.whl", hash = "sha256:a17ca41f45cf78c2216ebfab03add7cc350c305c38ff34ef4eef66b7d76c5229"}, - {file = "Pillow-8.3.1-cp36-cp36m-win_amd64.whl", hash = "sha256:67b3666b544b953a2777cb3f5a922e991be73ab32635666ee72e05876b8a92de"}, - {file = "Pillow-8.3.1-cp37-cp37m-macosx_10_10_x86_64.whl", hash = "sha256:ff04c373477723430dce2e9d024c708a047d44cf17166bf16e604b379bf0ca14"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9364c81b252d8348e9cc0cb63e856b8f7c1b340caba6ee7a7a65c968312f7dab"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a2f381932dca2cf775811a008aa3027671ace723b7a38838045b1aee8669fdcf"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:d0da39795049a9afcaadec532e7b669b5ebbb2a9134576ebcc15dd5bdae33cc0"}, - {file = "Pillow-8.3.1-cp37-cp37m-win32.whl", hash = "sha256:2b6dfa068a8b6137da34a4936f5a816aba0ecc967af2feeb32c4393ddd671cba"}, - {file = "Pillow-8.3.1-cp37-cp37m-win_amd64.whl", hash = "sha256:a4eef1ff2d62676deabf076f963eda4da34b51bc0517c70239fafed1d5b51500"}, - {file = "Pillow-8.3.1-cp38-cp38-macosx_10_10_x86_64.whl", hash = "sha256:660a87085925c61a0dcc80efb967512ac34dbb256ff7dd2b9b4ee8dbdab58cf4"}, - {file = "Pillow-8.3.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:15a2808e269a1cf2131930183dcc0419bc77bb73eb54285dde2706ac9939fa8e"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:969cc558cca859cadf24f890fc009e1bce7d7d0386ba7c0478641a60199adf79"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:2ee77c14a0299d0541d26f3d8500bb57e081233e3fa915fa35abd02c51fa7fae"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:c11003197f908878164f0e6da15fce22373ac3fc320cda8c9d16e6bba105b844"}, - {file = "Pillow-8.3.1-cp38-cp38-win32.whl", hash = "sha256:3f08bd8d785204149b5b33e3b5f0ebbfe2190ea58d1a051c578e29e39bfd2367"}, - {file = "Pillow-8.3.1-cp38-cp38-win_amd64.whl", hash = "sha256:70af7d222df0ff81a2da601fab42decb009dc721545ed78549cb96e3a1c5f0c8"}, - {file = "Pillow-8.3.1-cp39-cp39-macosx_10_10_x86_64.whl", hash = "sha256:37730f6e68bdc6a3f02d2079c34c532330d206429f3cee651aab6b66839a9f0e"}, - {file = "Pillow-8.3.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:4bc3c7ef940eeb200ca65bd83005eb3aae8083d47e8fcbf5f0943baa50726856"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c35d09db702f4185ba22bb33ef1751ad49c266534339a5cebeb5159d364f6f82"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:0b2efa07f69dc395d95bb9ef3299f4ca29bcb2157dc615bae0b42c3c20668ffc"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:cc866706d56bd3a7dbf8bac8660c6f6462f2f2b8a49add2ba617bc0c54473d83"}, - {file = "Pillow-8.3.1-cp39-cp39-win32.whl", hash = "sha256:9a211b663cf2314edbdb4cf897beeb5c9ee3810d1d53f0e423f06d6ebbf9cd5d"}, - {file = "Pillow-8.3.1-cp39-cp39-win_amd64.whl", hash = "sha256:c2a5ff58751670292b406b9f06e07ed1446a4b13ffced6b6cab75b857485cbc8"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-macosx_10_10_x86_64.whl", hash = "sha256:c379425c2707078dfb6bfad2430728831d399dc95a7deeb92015eb4c92345eaf"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:114f816e4f73f9ec06997b2fde81a92cbf0777c9e8f462005550eed6bae57e63"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:8960a8a9f4598974e4c2aeb1bff9bdd5db03ee65fd1fce8adf3223721aa2a636"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-macosx_10_10_x86_64.whl", hash = "sha256:147bd9e71fb9dcf08357b4d530b5167941e222a6fd21f869c7911bac40b9994d"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:1fd5066cd343b5db88c048d971994e56b296868766e461b82fa4e22498f34d77"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:f4ebde71785f8bceb39dcd1e7f06bcc5d5c3cf48b9f69ab52636309387b097c8"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:1c03e24be975e2afe70dfc5da6f187eea0b49a68bb2b69db0f30a61b7031cee4"}, - {file = "Pillow-8.3.1.tar.gz", hash = "sha256:2cac53839bfc5cece8fdbe7f084d5e3ee61e1303cccc86511d351adcb9e2c792"}, -] -purplship = [ - {file = "purplship-2021.6.2-py3-none-any.whl", hash = "sha256:ded793b23664a14649f3c08ebbd344f6b58fbbc982d69481242478074ea74ff1"}, -] -py-soap = [ - {file = "py_soap-2020.3.2-py3-none-any.whl", hash = "sha256:61e2ec956d349bdd9d4c6248a2ae3c4cc4b0a2a5cf6b439b6de480a3bc2766a1"}, -] -six = [ - {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"}, - {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"}, -] -xmltodict = [ - {file = "xmltodict-0.12.0-py2.py3-none-any.whl", hash = "sha256:8bbcb45cc982f48b2ca8fe7e7827c5d792f217ecf1792626f808bf41c3b86051"}, - {file = "xmltodict-0.12.0.tar.gz", hash = "sha256:50d8c638ed7ecb88d90561beedbf720c9b4e851a9fa6c47ebd64e99d166d8a21"}, -] diff --git a/sdk/extensions/usps/purplship/providers/usps/shipment/create.py b/sdk/extensions/usps/purplship/providers/usps/shipment/create.py index c35feea6f3..3c771eb238 100644 --- a/sdk/extensions/usps/purplship/providers/usps/shipment/create.py +++ b/sdk/extensions/usps/purplship/providers/usps/shipment/create.py @@ -9,7 +9,14 @@ ExtraServicesType, ) from purplship.core.errors import OriginNotServicedError, DestinationNotServicedError -from purplship.core.units import Packages, Options, WeightUnit, Weight, Country +from purplship.core.units import ( + CustomsInfo, + Packages, + Options, + WeightUnit, + Weight, + Country, +) from purplship.core.utils import Serializable, Element, Location, XP from purplship.core.models import ( ShipmentRequest, @@ -21,13 +28,19 @@ ) from purplship.providers.usps.units import ( - LabelFormat, ServiceType, PackagingType, ShipmentOption, ContentType + LabelFormat, + ServiceType, + PackagingType, + ShipmentOption, + ContentType, ) from purplship.providers.usps.error import parse_error_response from purplship.providers.usps.utils import Settings -def parse_shipment_response(response: Element, settings: Settings) -> Tuple[ShipmentDetails, List[Message]]: +def parse_shipment_response( + response: Element, settings: Settings +) -> Tuple[ShipmentDetails, List[Message]]: errors = parse_error_response(response, settings) details = _extract_details(response, settings) @@ -40,30 +53,46 @@ def _extract_details(response: Element, settings: Settings) -> ShipmentDetails: return ShipmentDetails( carrier_name=settings.carrier_name, carrier_id=settings.carrier_id, - label=shipment.LabelImage, tracking_number=shipment.BarcodeNumber, shipment_identifier=shipment.BarcodeNumber, ) -def shipment_request(payload: ShipmentRequest, settings: Settings) -> Serializable[eVSRequest]: - if payload.shipper.country_code is not None and payload.shipper.country_code != Country.US.name: +def shipment_request( + payload: ShipmentRequest, settings: Settings +) -> Serializable[eVSRequest]: + if ( + payload.shipper.country_code is not None + and payload.shipper.country_code != Country.US.name + ): raise OriginNotServicedError(payload.shipper.country_code) - if payload.recipient.country_code is not None and payload.recipient.country_code != Country.US.name: + if ( + payload.recipient.country_code is not None + and payload.recipient.country_code != Country.US.name + ): raise DestinationNotServicedError(payload.recipient.country_code) service = ServiceType.map(payload.service).value_or_key package = Packages(payload.parcels).single options = Options(payload.options, ShipmentOption) - customs = payload.customs or Customs(commodities=[]) - extra_services = [getattr(option, 'value', option) for key, option in options if 'usps_option' not in key] - label_format = LabelFormat[payload.label_type or 'usps_6_x_4_label'].value - insurance = next((option.value for key, option in options if 'usps_insurance' in key), options.insurance) + customs = CustomsInfo(payload.customs or Customs(commodities=[])) + extra_services = [ + getattr(option, "value", option) + for key, option in options + if "usps_option" not in key + ] + label_format = LabelFormat[payload.label_type or "usps_6_x_4_label"].value + insurance = next( + (option.value for key, option in options if "usps_insurance" in key), + options.insurance, + ) # Gets the first provided non delivery option or default to "RETURN" - non_delivery = next((option.value for name, option in options if 'non_delivery' in name), "RETURN") + non_delivery = next( + (option.value for name, option in options if "non_delivery" in name), "RETURN" + ) redirect_address = Address(**(options.usps_option_redirect_non_delivery or {})) request = eVSRequest( @@ -72,7 +101,7 @@ def shipment_request(payload: ShipmentRequest, settings: Settings) -> Serializab Revision="1", ImageParameters=ImageParametersType( ImageParameter=label_format, - LabelSequence=LabelSequenceType(PackageNumber=1, TotalPackages=1) + LabelSequence=LabelSequenceType(PackageNumber=1, TotalPackages=1), ), FromName=payload.shipper.person_name, FromFirm=payload.shipper.company_name or "N/A", @@ -101,7 +130,7 @@ def shipment_request(payload: ShipmentRequest, settings: Settings) -> Serializab AllowNonCleansedDestAddr=False, WeightInOunces=package.weight.OZ, ServiceType=service, - Container=PackagingType[package.packaging_type or 'variable'].value, + Container=PackagingType[package.packaging_type or "variable"].value, Width=package.width.IN, Length=package.length.IN, Height=package.height.IN, @@ -116,7 +145,8 @@ def shipment_request(payload: ShipmentRequest, settings: Settings) -> Serializab CustomerRefNo=None, ExtraServices=( ExtraServicesType(ExtraService=[s for s in extra_services]) - if any(extra_services) else None + if any(extra_services) + else None ), CRID=settings.customer_registration_id, MID=settings.mailer_id, @@ -144,19 +174,25 @@ def shipment_request(payload: ShipmentRequest, settings: Settings) -> Serializab Description=item.description, Quantity=item.quantity, Value=item.value_amount, - NetPounds=Weight(item.weight, WeightUnit[item.weight_unit or 'LB']).LB, - NetOunces=Weight(item.weight, WeightUnit[item.weight_unit or 'LB']).OZ, + NetPounds=Weight( + item.weight, WeightUnit[item.weight_unit or "LB"] + ).LB, + NetOunces=Weight( + item.weight, WeightUnit[item.weight_unit or "LB"] + ).OZ, HSTariffNumber=item.sku, - CountryOfOrigin=Location(item.origin_country).as_country_name + CountryOfOrigin=Location(item.origin_country).as_country_name, ) for item in customs.commodities ] ) - if payload.customs is not None else None + if payload.customs is not None + else None ), CustomsContentType=( ContentType[customs.content_type or "other"].value - if payload.customs is not None else None + if payload.customs is not None + else None ), ContentComments=None, RestrictionType=None, diff --git a/sdk/extensions/usps/purplship/providers/usps/tracking.py b/sdk/extensions/usps/purplship/providers/usps/tracking.py index a679c03472..1761d6294b 100644 --- a/sdk/extensions/usps/purplship/providers/usps/tracking.py +++ b/sdk/extensions/usps/purplship/providers/usps/tracking.py @@ -1,7 +1,7 @@ from typing import List, Tuple from usps_lib.track_field_request import TrackFieldRequest, TrackIDType from usps_lib.track_response import TrackInfoType, TrackDetailType -from purplship.core.utils import Serializable, Element, XP, DF +from purplship.core.utils import Serializable, Element, XP, DF, SF from purplship.core.models import ( TrackingRequest, Message, @@ -29,33 +29,31 @@ def _extract_details(node: Element, settings) -> TrackingDetails: info = XP.to_object(TrackInfoType, node) details: List[TrackDetailType] = [*([info.TrackSummary] or []), *info.TrackDetail] delivered = info.StatusCategory.lower() == "delivered" + expected_delivery = info.ExpectedDeliveryDate or info.PredictedDeliveryDate return TrackingDetails( carrier_name=settings.carrier_name, carrier_id=settings.carrier_id, tracking_number=info.ID, + delivered=delivered, events=[ TrackingEvent( code=str(event.EventCode), date=DF.fdate(event.EventDate, "%B %d, %Y"), time=DF.ftime(event.EventTime, "%H:%M %p"), description=event.Event, - location=", ".join( - [ - location - for location in [ - event.EventCity, - event.EventState, - event.EventCountry, - str(event.EventZIPCode), - ] - if location is not None - ] + location=SF.concat_str( + event.EventCity, + event.EventState, + event.EventCountry, + str(event.EventZIPCode or ""), + join=True, + separator=", ", ), ) for event in details ], - delivered=delivered + estimated_delivery=DF.fdate(expected_delivery, "%B %d, %Y"), ) diff --git a/sdk/extensions/usps/pyproject.toml b/sdk/extensions/usps/pyproject.toml index daf0b44626..aaf596005c 100644 --- a/sdk/extensions/usps/pyproject.toml +++ b/sdk/extensions/usps/pyproject.toml @@ -1,11 +1,11 @@ [tool.poetry] name = "purplship.usps" -version = "2021.10" -homepage="https://docs.purplship.com" +version = "2021.11.1" +homepage="https://next.purplship.com/docs/guides/sdk" repository="https://github.com/purplship/purplship" description = "Purplship - USPS Shipping Extension" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [{ include = "purplship" }] classifiers=[ @@ -17,7 +17,7 @@ classifiers=[ [tool.poetry.dependencies] python = "^3.7" -"purplship" = "^2021.6" +"purplship" = "" "carrier.usps" = "" [tool.poetry.dev-dependencies] diff --git a/sdk/extensions/usps_international/poetry.lock b/sdk/extensions/usps_international/poetry.lock deleted file mode 100644 index 7a90b62d8f..0000000000 --- a/sdk/extensions/usps_international/poetry.lock +++ /dev/null @@ -1,240 +0,0 @@ -[[package]] -name = "attrs" -version = "21.2.0" -description = "Classes Without Boilerplate" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" - -[package.extras] -dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit"] -docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"] -tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface"] -tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins"] - -[[package]] -name = "carrier.usps" -version = "2021.6" -description = "USPS Web API Schemas Python Data Types library" -category = "main" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "jstruct" -version = "2020.4.0" -description = "Readable serializable and deserializable Python nested models" -category = "main" -optional = false -python-versions = "*" - -[package.dependencies] -attrs = "*" - -[[package]] -name = "lxml" -version = "4.6.3" -description = "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API." -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*" - -[package.extras] -cssselect = ["cssselect (>=0.7)"] -html5 = ["html5lib"] -htmlsoup = ["beautifulsoup4"] -source = ["Cython (>=0.29.7)"] - -[[package]] -name = "lxml-stubs" -version = "0.1.1" -description = "Type annotations for the lxml package" -category = "main" -optional = false -python-versions = "*" - -[package.extras] -test = ["pytest (>=6.0.0)", "pytest-mypy-plugins (==1.4.0)", "coverage[toml] (==5.2)"] - -[[package]] -name = "phonenumbers" -version = "8.12.28" -description = "Python version of Google's common library for parsing, formatting, storing and validating international phone numbers." -category = "main" -optional = false -python-versions = "*" - -[[package]] -name = "pillow" -version = "8.3.1" -description = "Python Imaging Library (Fork)" -category = "main" -optional = false -python-versions = ">=3.6" - -[[package]] -name = "purplship" -version = "2021.6.2" -description = "Multi-carrier shipping API integration with python" -category = "main" -optional = false -python-versions = ">=3.7,<4.0" - -[package.dependencies] -jstruct = ">=2020.4.0,<2021.0.0" -lxml = ">=4.6.2,<5.0.0" -lxml-stubs = ">=0.1.1,<0.2.0" -phonenumbers = ">=8.12.17,<9.0.0" -Pillow = ">=8.1.0,<9.0.0" -py-soap = ">=2020.3.2,<2021.0.0" -xmltodict = ">=0.12.0,<0.13.0" - -[[package]] -name = "py-soap" -version = "2020.3.2" -description = "SOAP Schemas Python Data Types library" -category = "main" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "six" -version = "1.16.0" -description = "Python 2 and 3 compatibility utilities" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" - -[[package]] -name = "xmltodict" -version = "0.12.0" -description = "Makes working with XML feel like you are working with JSON" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.7" -content-hash = "9fa39f16867f2a1fef7b383cf1d0143e8886f0a33f0d34ee7b7706ee561a71b5" - -[metadata.files] -attrs = [ - {file = "attrs-21.2.0-py2.py3-none-any.whl", hash = "sha256:149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1"}, - {file = "attrs-21.2.0.tar.gz", hash = "sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"}, -] -"carrier.usps" = [ - {file = "carrier.usps-2021.6-py3-none-any.whl", hash = "sha256:3db8bb9d7ebd30ad7b4de01af71ed66b6088b63ea314729e4a2a2215f1864dfb"}, -] -jstruct = [ - {file = "jstruct-2020.4.0-py3-none-any.whl", hash = "sha256:86257c1332e1ba6983d78e3199fb3dcadaf742e96c3c1a97f3ba322fa241f89c"}, -] -lxml = [ - {file = "lxml-4.6.3-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:df7c53783a46febb0e70f6b05df2ba104610f2fb0d27023409734a3ecbb78fb2"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:1b7584d421d254ab86d4f0b13ec662a9014397678a7c4265a02a6d7c2b18a75f"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:079f3ae844f38982d156efce585bc540c16a926d4436712cf4baee0cce487a3d"}, - {file = "lxml-4.6.3-cp27-cp27m-win32.whl", hash = "sha256:bc4313cbeb0e7a416a488d72f9680fffffc645f8a838bd2193809881c67dd106"}, - {file = "lxml-4.6.3-cp27-cp27m-win_amd64.whl", hash = "sha256:8157dadbb09a34a6bd95a50690595e1fa0af1a99445e2744110e3dca7831c4ee"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:7728e05c35412ba36d3e9795ae8995e3c86958179c9770e65558ec3fdfd3724f"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:4bff24dfeea62f2e56f5bab929b4428ae6caba2d1eea0c2d6eb618e30a71e6d4"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:74f7d8d439b18fa4c385f3f5dfd11144bb87c1da034a466c5b5577d23a1d9b51"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:f90ba11136bfdd25cae3951af8da2e95121c9b9b93727b1b896e3fa105b2f586"}, - {file = "lxml-4.6.3-cp35-cp35m-win32.whl", hash = "sha256:f2380a6376dfa090227b663f9678150ef27543483055cc327555fb592c5967e2"}, - {file = "lxml-4.6.3-cp35-cp35m-win_amd64.whl", hash = "sha256:c4f05c5a7c49d2fb70223d0d5bcfbe474cf928310ac9fa6a7c6dddc831d0b1d4"}, - {file = "lxml-4.6.3-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:d2e35d7bf1c1ac8c538f88d26b396e73dd81440d59c1ef8522e1ea77b345ede4"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:289e9ca1a9287f08daaf796d96e06cb2bc2958891d7911ac7cae1c5f9e1e0ee3"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:bccbfc27563652de7dc9bdc595cb25e90b59c5f8e23e806ed0fd623755b6565d"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:820628b7b3135403540202e60551e741f9b6d3304371712521be939470b454ec"}, - {file = "lxml-4.6.3-cp36-cp36m-win32.whl", hash = "sha256:5a0a14e264069c03e46f926be0d8919f4105c1623d620e7ec0e612a2e9bf1c04"}, - {file = "lxml-4.6.3-cp36-cp36m-win_amd64.whl", hash = "sha256:92e821e43ad382332eade6812e298dc9701c75fe289f2a2d39c7960b43d1e92a"}, - {file = "lxml-4.6.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:efd7a09678fd8b53117f6bae4fa3825e0a22b03ef0a932e070c0bdbb3a35e654"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:efac139c3f0bf4f0939f9375af4b02c5ad83a622de52d6dfa8e438e8e01d0eb0"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:0fbcf5565ac01dff87cbfc0ff323515c823081c5777a9fc7703ff58388c258c3"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:122fba10466c7bd4178b07dba427aa516286b846b2cbd6f6169141917283aae2"}, - {file = "lxml-4.6.3-cp37-cp37m-win32.whl", hash = "sha256:3439c71103ef0e904ea0a1901611863e51f50b5cd5e8654a151740fde5e1cade"}, - {file = "lxml-4.6.3-cp37-cp37m-win_amd64.whl", hash = "sha256:4289728b5e2000a4ad4ab8da6e1db2e093c63c08bdc0414799ee776a3f78da4b"}, - {file = "lxml-4.6.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:b007cbb845b28db4fb8b6a5cdcbf65bacb16a8bd328b53cbc0698688a68e1caa"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_i686.whl", hash = "sha256:76fa7b1362d19f8fbd3e75fe2fb7c79359b0af8747e6f7141c338f0bee2f871a"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:26e761ab5b07adf5f555ee82fb4bfc35bf93750499c6c7614bd64d12aaa67927"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:66e575c62792c3f9ca47cb8b6fab9e35bab91360c783d1606f758761810c9791"}, - {file = "lxml-4.6.3-cp38-cp38-win32.whl", hash = "sha256:89b8b22a5ff72d89d48d0e62abb14340d9e99fd637d046c27b8b257a01ffbe28"}, - {file = "lxml-4.6.3-cp38-cp38-win_amd64.whl", hash = "sha256:2a9d50e69aac3ebee695424f7dbd7b8c6d6eb7de2a2eb6b0f6c7db6aa41e02b7"}, - {file = "lxml-4.6.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:ce256aaa50f6cc9a649c51be3cd4ff142d67295bfc4f490c9134d0f9f6d58ef0"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_i686.whl", hash = "sha256:7610b8c31688f0b1be0ef882889817939490a36d0ee880ea562a4e1399c447a1"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:f8380c03e45cf09f8557bdaa41e1fa7c81f3ae22828e1db470ab2a6c96d8bc23"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:884ab9b29feaca361f7f88d811b1eea9bfca36cf3da27768d28ad45c3ee6f969"}, - {file = "lxml-4.6.3-cp39-cp39-win32.whl", hash = "sha256:33bb934a044cf32157c12bfcfbb6649807da20aa92c062ef51903415c704704f"}, - {file = "lxml-4.6.3-cp39-cp39-win_amd64.whl", hash = "sha256:542d454665a3e277f76954418124d67516c5f88e51a900365ed54a9806122b83"}, - {file = "lxml-4.6.3.tar.gz", hash = "sha256:39b78571b3b30645ac77b95f7c69d1bffc4cf8c3b157c435a34da72e78c82468"}, -] -lxml-stubs = [ - {file = "lxml-stubs-0.1.1.tar.gz", hash = "sha256:9b6a01ba4bccd6e532c01e19d2a3bc6d1d018fa0b9870236f61f315cb7b06648"}, - {file = "lxml_stubs-0.1.1-py3-none-any.whl", hash = "sha256:d34a28be0e2525b0236aff7fe67af1f61911f556cadbc61f09810b69f762b747"}, -] -phonenumbers = [ - {file = "phonenumbers-8.12.28-py2.py3-none-any.whl", hash = "sha256:f8ce05f82955d2faeefe2303350b2ccb7369dd39b6e45231a09475d67eb7e83b"}, - {file = "phonenumbers-8.12.28.tar.gz", hash = "sha256:42ea4f946d5cce0056cbce257842ea6b281e69828ad2e7f27b29d3908e5b06bd"}, -] -pillow = [ - {file = "Pillow-8.3.1-1-cp36-cp36m-win_amd64.whl", hash = "sha256:fd7eef578f5b2200d066db1b50c4aa66410786201669fb76d5238b007918fb24"}, - {file = "Pillow-8.3.1-1-cp37-cp37m-win_amd64.whl", hash = "sha256:75e09042a3b39e0ea61ce37e941221313d51a9c26b8e54e12b3ececccb71718a"}, - {file = "Pillow-8.3.1-1-cp38-cp38-win_amd64.whl", hash = "sha256:c0e0550a404c69aab1e04ae89cca3e2a042b56ab043f7f729d984bf73ed2a093"}, - {file = "Pillow-8.3.1-1-cp39-cp39-win_amd64.whl", hash = "sha256:479ab11cbd69612acefa8286481f65c5dece2002ffaa4f9db62682379ca3bb77"}, - {file = "Pillow-8.3.1-1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:f156d6ecfc747ee111c167f8faf5f4953761b5e66e91a4e6767e548d0f80129c"}, - {file = "Pillow-8.3.1-cp36-cp36m-macosx_10_10_x86_64.whl", hash = "sha256:196560dba4da7a72c5e7085fccc5938ab4075fd37fe8b5468869724109812edd"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:29c9569049d04aaacd690573a0398dbd8e0bf0255684fee512b413c2142ab723"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:c088a000dfdd88c184cc7271bfac8c5b82d9efa8637cd2b68183771e3cf56f04"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:fc214a6b75d2e0ea7745488da7da3c381f41790812988c7a92345978414fad37"}, - {file = "Pillow-8.3.1-cp36-cp36m-win32.whl", hash = "sha256:a17ca41f45cf78c2216ebfab03add7cc350c305c38ff34ef4eef66b7d76c5229"}, - {file = "Pillow-8.3.1-cp36-cp36m-win_amd64.whl", hash = "sha256:67b3666b544b953a2777cb3f5a922e991be73ab32635666ee72e05876b8a92de"}, - {file = "Pillow-8.3.1-cp37-cp37m-macosx_10_10_x86_64.whl", hash = "sha256:ff04c373477723430dce2e9d024c708a047d44cf17166bf16e604b379bf0ca14"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9364c81b252d8348e9cc0cb63e856b8f7c1b340caba6ee7a7a65c968312f7dab"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a2f381932dca2cf775811a008aa3027671ace723b7a38838045b1aee8669fdcf"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:d0da39795049a9afcaadec532e7b669b5ebbb2a9134576ebcc15dd5bdae33cc0"}, - {file = "Pillow-8.3.1-cp37-cp37m-win32.whl", hash = "sha256:2b6dfa068a8b6137da34a4936f5a816aba0ecc967af2feeb32c4393ddd671cba"}, - {file = "Pillow-8.3.1-cp37-cp37m-win_amd64.whl", hash = "sha256:a4eef1ff2d62676deabf076f963eda4da34b51bc0517c70239fafed1d5b51500"}, - {file = "Pillow-8.3.1-cp38-cp38-macosx_10_10_x86_64.whl", hash = "sha256:660a87085925c61a0dcc80efb967512ac34dbb256ff7dd2b9b4ee8dbdab58cf4"}, - {file = "Pillow-8.3.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:15a2808e269a1cf2131930183dcc0419bc77bb73eb54285dde2706ac9939fa8e"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:969cc558cca859cadf24f890fc009e1bce7d7d0386ba7c0478641a60199adf79"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:2ee77c14a0299d0541d26f3d8500bb57e081233e3fa915fa35abd02c51fa7fae"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:c11003197f908878164f0e6da15fce22373ac3fc320cda8c9d16e6bba105b844"}, - {file = "Pillow-8.3.1-cp38-cp38-win32.whl", hash = "sha256:3f08bd8d785204149b5b33e3b5f0ebbfe2190ea58d1a051c578e29e39bfd2367"}, - {file = "Pillow-8.3.1-cp38-cp38-win_amd64.whl", hash = "sha256:70af7d222df0ff81a2da601fab42decb009dc721545ed78549cb96e3a1c5f0c8"}, - {file = "Pillow-8.3.1-cp39-cp39-macosx_10_10_x86_64.whl", hash = "sha256:37730f6e68bdc6a3f02d2079c34c532330d206429f3cee651aab6b66839a9f0e"}, - {file = "Pillow-8.3.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:4bc3c7ef940eeb200ca65bd83005eb3aae8083d47e8fcbf5f0943baa50726856"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c35d09db702f4185ba22bb33ef1751ad49c266534339a5cebeb5159d364f6f82"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:0b2efa07f69dc395d95bb9ef3299f4ca29bcb2157dc615bae0b42c3c20668ffc"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:cc866706d56bd3a7dbf8bac8660c6f6462f2f2b8a49add2ba617bc0c54473d83"}, - {file = "Pillow-8.3.1-cp39-cp39-win32.whl", hash = "sha256:9a211b663cf2314edbdb4cf897beeb5c9ee3810d1d53f0e423f06d6ebbf9cd5d"}, - {file = "Pillow-8.3.1-cp39-cp39-win_amd64.whl", hash = "sha256:c2a5ff58751670292b406b9f06e07ed1446a4b13ffced6b6cab75b857485cbc8"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-macosx_10_10_x86_64.whl", hash = "sha256:c379425c2707078dfb6bfad2430728831d399dc95a7deeb92015eb4c92345eaf"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:114f816e4f73f9ec06997b2fde81a92cbf0777c9e8f462005550eed6bae57e63"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:8960a8a9f4598974e4c2aeb1bff9bdd5db03ee65fd1fce8adf3223721aa2a636"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-macosx_10_10_x86_64.whl", hash = "sha256:147bd9e71fb9dcf08357b4d530b5167941e222a6fd21f869c7911bac40b9994d"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:1fd5066cd343b5db88c048d971994e56b296868766e461b82fa4e22498f34d77"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:f4ebde71785f8bceb39dcd1e7f06bcc5d5c3cf48b9f69ab52636309387b097c8"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:1c03e24be975e2afe70dfc5da6f187eea0b49a68bb2b69db0f30a61b7031cee4"}, - {file = "Pillow-8.3.1.tar.gz", hash = "sha256:2cac53839bfc5cece8fdbe7f084d5e3ee61e1303cccc86511d351adcb9e2c792"}, -] -purplship = [ - {file = "purplship-2021.6.2-py3-none-any.whl", hash = "sha256:ded793b23664a14649f3c08ebbd344f6b58fbbc982d69481242478074ea74ff1"}, -] -py-soap = [ - {file = "py_soap-2020.3.2-py3-none-any.whl", hash = "sha256:61e2ec956d349bdd9d4c6248a2ae3c4cc4b0a2a5cf6b439b6de480a3bc2766a1"}, -] -six = [ - {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"}, - {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"}, -] -xmltodict = [ - {file = "xmltodict-0.12.0-py2.py3-none-any.whl", hash = "sha256:8bbcb45cc982f48b2ca8fe7e7827c5d792f217ecf1792626f808bf41c3b86051"}, - {file = "xmltodict-0.12.0.tar.gz", hash = "sha256:50d8c638ed7ecb88d90561beedbf720c9b4e851a9fa6c47ebd64e99d166d8a21"}, -] diff --git a/sdk/extensions/usps_international/purplship/providers/usps_international/shipment/first_class_mail.py b/sdk/extensions/usps_international/purplship/providers/usps_international/shipment/first_class_mail.py index 4ca5dc1af2..9e2d30948e 100644 --- a/sdk/extensions/usps_international/purplship/providers/usps_international/shipment/first_class_mail.py +++ b/sdk/extensions/usps_international/purplship/providers/usps_international/shipment/first_class_mail.py @@ -9,19 +9,25 @@ ExtraServicesType, ) from purplship.core.utils import Serializable, Element, XP, DF, Location -from purplship.core.units import Packages, Options, Weight, WeightUnit +from purplship.core.units import CustomsInfo, Packages, Options, Weight, WeightUnit from purplship.core.models import ( ShipmentRequest, ShipmentDetails, Message, Customs, ) -from purplship.providers.usps_international.units import LabelFormat, ShipmentOption, ContentType +from purplship.providers.usps_international.units import ( + LabelFormat, + ShipmentOption, + ContentType, +) from purplship.providers.usps_international.error import parse_error_response from purplship.providers.usps_international.utils import Settings -def parse_shipment_response(response: Element, settings: Settings) -> Tuple[ShipmentDetails, List[Message]]: +def parse_shipment_response( + response: Element, settings: Settings +) -> Tuple[ShipmentDetails, List[Message]]: errors = parse_error_response(response, settings) details = _extract_details(response, settings) @@ -34,23 +40,25 @@ def _extract_details(response: Element, settings: Settings) -> ShipmentDetails: return ShipmentDetails( carrier_name=settings.carrier_name, carrier_id=settings.carrier_id, - label=shipment.LabelImage, tracking_number=shipment.BarcodeNumber, shipment_identifier=shipment.BarcodeNumber, ) -def shipment_request(payload: ShipmentRequest, settings: Settings) -> Serializable[eVSFirstClassMailIntlRequest]: +def shipment_request( + payload: ShipmentRequest, settings: Settings +) -> Serializable[eVSFirstClassMailIntlRequest]: package = Packages(payload.parcels, max_weight=Weight(70, WeightUnit.LB)).single options = Options(payload.options, ShipmentOption) - label_format = LabelFormat[payload.label_type or 'usps_6_x_4_label'].value + label_format = LabelFormat[payload.label_type or "usps_6_x_4_label"].value extra_services = [ - getattr(option, 'value', option) for key, option in options - if key in ShipmentOption and 'usps_option' not in key + getattr(option, "value", option) + for key, option in options + if key in ShipmentOption and "usps_option" not in key ] - customs = payload.customs or Customs(commodities=[]) + customs = CustomsInfo(payload.customs or Customs(commodities=[])) request = eVSFirstClassMailIntlRequest( USERID=settings.username, @@ -75,7 +83,9 @@ def shipment_request(payload: ShipmentRequest, settings: Settings) -> Serializab ToAddress2=payload.recipient.address_line1, ToAddress3=None, ToCity=payload.recipient.city, - ToProvince=Location(payload.recipient.state_code, country=payload.recipient.country_code).as_state_name, + ToProvince=Location( + payload.recipient.state_code, country=payload.recipient.country_code + ).as_state_name, ToCountry=Location(payload.recipient.country_code).as_country_name, ToPostalCode=payload.recipient.postal_code, ToPOBoxFlag=None, @@ -89,10 +99,14 @@ def shipment_request(payload: ShipmentRequest, settings: Settings) -> Serializab Description=item.description, Quantity=item.quantity, Value=item.value_amount, - NetPounds=Weight(item.weight, WeightUnit[item.weight_unit or 'LB']).LB, - NetOunces=Weight(item.weight, WeightUnit[item.weight_unit or 'LB']).OZ, + NetPounds=Weight( + item.weight, WeightUnit[item.weight_unit or "LB"] + ).LB, + NetOunces=Weight( + item.weight, WeightUnit[item.weight_unit or "LB"] + ).OZ, HSTariffNumber=item.sku, - CountryOfOrigin=Location(item.origin_country).as_country_name + CountryOfOrigin=Location(item.origin_country).as_country_name, ) for item in payload.customs.commodities ] @@ -102,7 +116,7 @@ def shipment_request(payload: ShipmentRequest, settings: Settings) -> Serializab GrossOunces=package.weight.OZ, ContentType=ContentType[customs.content_type or "other"].value, ContentTypeOther=customs.content_description or "N/A", - Agreement=('N' if customs.certify else 'Y'), + Agreement=("N" if customs.certify else "Y"), Comments=customs.content_description, LicenseNumber=customs.license_number, CertificateNumber=customs.certificate_number, @@ -113,9 +127,9 @@ def shipment_request(payload: ShipmentRequest, settings: Settings) -> Serializab CustomerRefNo2=None, POZipCode=None, LabelDate=DF.fdatetime( - (options.shipment_date or time.strftime('%Y-%m-%d')), + (options.shipment_date or time.strftime("%Y-%m-%d")), current_format="%Y-%m-%d", - output_format="%m/%d/%Y" + output_format="%m/%d/%Y", ), HoldForManifest=None, EELPFC=customs.eel_pfc, @@ -126,7 +140,8 @@ def shipment_request(payload: ShipmentRequest, settings: Settings) -> Serializab Girth=(package.girth.value if package.packaging_type == "tube" else None), ExtraServices=( ExtraServicesType(ExtraService=[s for s in extra_services]) - if any(extra_services) else None + if any(extra_services) + else None ), PriceOptions=None, ActionCode=None, diff --git a/sdk/extensions/usps_international/purplship/providers/usps_international/shipment/global_express_guaranteed.py b/sdk/extensions/usps_international/purplship/providers/usps_international/shipment/global_express_guaranteed.py index 17a48bb7dd..3aa6eed312 100644 --- a/sdk/extensions/usps_international/purplship/providers/usps_international/shipment/global_express_guaranteed.py +++ b/sdk/extensions/usps_international/purplship/providers/usps_international/shipment/global_express_guaranteed.py @@ -7,7 +7,7 @@ ItemDetailType, ) from purplship.core.utils import Serializable, Element, XP, DF, Location -from purplship.core.units import Packages, Options, Weight, WeightUnit +from purplship.core.units import CustomsInfo, Packages, Options, Weight, WeightUnit from purplship.core.models import ( ShipmentRequest, ShipmentDetails, @@ -15,13 +15,18 @@ Customs, ) from purplship.providers.usps_international.units import ( - ShipmentOption, ContentType, PackagingType, Incoterm + ShipmentOption, + ContentType, + PackagingType, + Incoterm, ) from purplship.providers.usps_international.error import parse_error_response from purplship.providers.usps_international.utils import Settings -def parse_shipment_response(response: Element, settings: Settings) -> Tuple[ShipmentDetails, List[Message]]: +def parse_shipment_response( + response: Element, settings: Settings +) -> Tuple[ShipmentDetails, List[Message]]: errors = parse_error_response(response, settings) details = _extract_details(response, settings) @@ -30,25 +35,28 @@ def parse_shipment_response(response: Element, settings: Settings) -> Tuple[Ship def _extract_details(response: Element, settings: Settings) -> ShipmentDetails: shipment = XP.to_object(eVSGXGGetLabelResponse, response) - tracking_number = (shipment.USPSBarcodeNumber or shipment.FedExBarcodeNumber) + tracking_number = shipment.USPSBarcodeNumber or shipment.FedExBarcodeNumber return ShipmentDetails( carrier_name=settings.carrier_name, carrier_id=settings.carrier_id, - label=shipment.LabelImage, tracking_number=tracking_number, shipment_identifier=tracking_number, ) -def shipment_request(payload: ShipmentRequest, settings: Settings) -> Serializable[eVSGXGGetLabelRequest]: +def shipment_request( + payload: ShipmentRequest, settings: Settings +) -> Serializable[eVSGXGGetLabelRequest]: package = Packages(payload.parcels, max_weight=Weight(70, WeightUnit.LB)).single options = Options(payload.options, ShipmentOption) - customs = payload.customs or Customs(commodities=[]) - incoterm = Incoterm[customs.incoterm or 'OTHER'].value - insurance = getattr((options.usps_insurance_global_express_guaranteed), 'value', options.insurance) + customs = CustomsInfo(payload.customs or Customs(commodities=[])) + incoterm = Incoterm[customs.incoterm or "OTHER"].value + insurance = getattr( + (options.usps_insurance_global_express_guaranteed), "value", options.insurance + ) request = eVSGXGGetLabelRequest( USERID=settings.username, @@ -64,7 +72,7 @@ def shipment_request(payload: ShipmentRequest, settings: Settings) -> Serializab FromAddress2=payload.shipper.address_line2, FromUrbanization=None, FromCity=payload.shipper.city, - FromState=Location(payload.shipper.state_code, country='US').as_state_name, + FromState=Location(payload.shipper.state_code, country="US").as_state_name, FromZIP5=Location(payload.shipper.postal_code).as_zip5, FromZIP4=Location(payload.shipper.postal_code).as_zip4, FromPhone=payload.shipper.phone_number, @@ -81,8 +89,8 @@ def shipment_request(payload: ShipmentRequest, settings: Settings) -> Serializab ToDPID="000", # supposedly required test and find a solution ToProvince=payload.recipient.state_code, ToTaxID=(payload.recipient.federal_tax_id or payload.recipient.state_tax_id), - Container=PackagingType[package.packaging_type or 'package'].value, - ContentType=('DOCUMENTS' if package.parcel.is_document else 'NON-DOC'), + Container=PackagingType[package.packaging_type or "package"].value, + ContentType=("DOCUMENTS" if package.parcel.is_document else "NON-DOC"), ShippingContents=ShippingContentsType( ItemDetail=[ ItemDetailType( @@ -90,18 +98,22 @@ def shipment_request(payload: ShipmentRequest, settings: Settings) -> Serializab Commodity=item.description or "N/A", Quantity=item.quantity, UnitValue=item.value_amount, - NetPounds=Weight(item.weight, WeightUnit[item.weight_unit or 'LB']).LB, - NetOunces=Weight(item.weight, WeightUnit[item.weight_unit or 'LB']).OZ, + NetPounds=Weight( + item.weight, WeightUnit[item.weight_unit or "LB"] + ).LB, + NetOunces=Weight( + item.weight, WeightUnit[item.weight_unit or "LB"] + ).OZ, UnitOfMeasure=None, HSTariffNumber=item.sku, - CountryofManufacture=Location(item.origin_country).as_country_name + CountryofManufacture=Location(item.origin_country).as_country_name, ) for item in customs.commodities ] ), - PurposeOfShipment=ContentType[customs.content_type or 'other'].value, + PurposeOfShipment=ContentType[customs.content_type or "other"].value, PartiesToTransaction=None, - Agreement=('N' if customs.certify else 'Y'), + Agreement=("N" if customs.certify else "Y"), Postage=None, InsuredValue=insurance, GrossPounds=package.weight.LB, @@ -117,7 +129,9 @@ def shipment_request(payload: ShipmentRequest, settings: Settings) -> Serializab CustomerOrderNumber=None, CustOrderNumber=None, TermsDelivery=incoterm, - TermsDeliveryOther=((customs.incoterm or incoterm) if incoterm == 'OTHER' else None), + TermsDeliveryOther=( + (customs.incoterm or incoterm) if incoterm == "OTHER" else None + ), PackingCost=None, CountryUltDest=Location(payload.recipient.country_code).as_country_name, CIAgreement=customs.commercial_invoice, @@ -125,11 +139,17 @@ def shipment_request(payload: ShipmentRequest, settings: Settings) -> Serializab ImageLayout=None, CustomerRefNo=None, CustomerRefNo2=None, - ShipDate=DF.fdatetime((options.shipment_date or time.strftime('%Y-%m-%d')), current_format="%Y-%m-%d", output_format="%m/%d/%Y"), + ShipDate=DF.fdatetime( + (options.shipment_date or time.strftime("%Y-%m-%d")), + current_format="%Y-%m-%d", + output_format="%m/%d/%Y", + ), HoldForManifest=None, PriceOptions=None, CommercialShipment=customs.commercial_invoice, - BuyerRecipient=(customs.commercial_invoice or None), # Consider recipient as buyer for commercial shipment + BuyerRecipient=( + customs.commercial_invoice or None + ), # Consider recipient as buyer for commercial shipment TermsPayment=("Net 50" if customs.commercial_invoice else None), ActionCode=None, OptOutOfSPE=None, diff --git a/sdk/extensions/usps_international/purplship/providers/usps_international/shipment/priority_express.py b/sdk/extensions/usps_international/purplship/providers/usps_international/shipment/priority_express.py index 037905d6b3..83a7754f1d 100644 --- a/sdk/extensions/usps_international/purplship/providers/usps_international/shipment/priority_express.py +++ b/sdk/extensions/usps_international/purplship/providers/usps_international/shipment/priority_express.py @@ -8,7 +8,14 @@ ItemDetailType, ) from purplship.core.utils import Serializable, Element, XP, DF, Location -from purplship.core.units import Packages, Options, Weight, WeightUnit, CompleteAddress +from purplship.core.units import ( + CustomsInfo, + Packages, + Options, + Weight, + WeightUnit, + CompleteAddress, +) from purplship.core.models import ( ShipmentRequest, ShipmentDetails, @@ -16,12 +23,18 @@ Customs, Address, ) -from purplship.providers.usps_international.units import LabelFormat, ShipmentOption, ContentType +from purplship.providers.usps_international.units import ( + LabelFormat, + ShipmentOption, + ContentType, +) from purplship.providers.usps_international.error import parse_error_response from purplship.providers.usps_international.utils import Settings -def parse_shipment_response(response: Element, settings: Settings) -> Tuple[ShipmentDetails, List[Message]]: +def parse_shipment_response( + response: Element, settings: Settings +) -> Tuple[ShipmentDetails, List[Message]]: errors = parse_error_response(response, settings) details = _extract_details(response, settings) @@ -34,23 +47,32 @@ def _extract_details(response: Element, settings: Settings) -> ShipmentDetails: return ShipmentDetails( carrier_name=settings.carrier_name, carrier_id=settings.carrier_id, - label=shipment.LabelImage, tracking_number=shipment.BarcodeNumber, shipment_identifier=shipment.BarcodeNumber, ) -def shipment_request(payload: ShipmentRequest, settings: Settings) -> Serializable[eVSExpressMailIntlRequest]: +def shipment_request( + payload: ShipmentRequest, settings: Settings +) -> Serializable[eVSExpressMailIntlRequest]: package = Packages(payload.parcels, max_weight=Weight(70, WeightUnit.LB)).single options = Options(payload.options, ShipmentOption) - label_format = LabelFormat[payload.label_type or 'usps_6_x_4_label'].value - customs = payload.customs or Customs(commodities=[]) - insurance = getattr((options['usps_insurance_express_mail_international']), 'value', options.insurance) + label_format = LabelFormat[payload.label_type or "usps_6_x_4_label"].value + customs = CustomsInfo(payload.customs or Customs(commodities=[])) + insurance = getattr( + (options["usps_insurance_express_mail_international"]), + "value", + options.insurance, + ) # Gets the first provided non delivery option or default to "RETURN" - non_delivery = next((option.value for name, option in options if 'non_delivery' in name), "RETURN") - redirect_address = CompleteAddress.map(Address(**(options['usps_option_redirect_non_delivery'] or {}))) + non_delivery = next( + (option.value for name, option in options if "non_delivery" in name), "RETURN" + ) + redirect_address = CompleteAddress.map( + Address(**(options["usps_option_redirect_non_delivery"] or {})) + ) request = eVSExpressMailIntlRequest( USERID=settings.username, @@ -77,7 +99,9 @@ def shipment_request(payload: ShipmentRequest, settings: Settings) -> Serializab ToAddress2=payload.recipient.address_line1, ToAddress3=None, ToCity=payload.recipient.city, - ToProvince=Location(payload.recipient.state_code, country=payload.recipient.country_code).as_state_name, + ToProvince=Location( + payload.recipient.state_code, country=payload.recipient.country_code + ).as_state_name, ToCountry=Location(payload.recipient.country_code).as_country_name, ToPostalCode=payload.recipient.postal_code, ToPOBoxFlag=None, @@ -101,10 +125,14 @@ def shipment_request(payload: ShipmentRequest, settings: Settings) -> Serializab Description=item.description, Quantity=item.quantity, Value=item.value_amount, - NetPounds=Weight(item.weight, WeightUnit[item.weight_unit or 'LB']).LB, - NetOunces=Weight(item.weight, WeightUnit[item.weight_unit or 'LB']).OZ, + NetPounds=Weight( + item.weight, WeightUnit[item.weight_unit or "LB"] + ).LB, + NetOunces=Weight( + item.weight, WeightUnit[item.weight_unit or "LB"] + ).OZ, HSTariffNumber=item.sku, - CountryOfOrigin=Location(item.origin_country).as_country_name + CountryOfOrigin=Location(item.origin_country).as_country_name, ) for item in customs.commodities ] @@ -114,7 +142,7 @@ def shipment_request(payload: ShipmentRequest, settings: Settings) -> Serializab GrossOunces=package.weight.OZ, ContentType=ContentType[customs.content_type or "other"].value, ContentTypeOther=customs.content_description or "N/A", - Agreement=('Y' if customs.certify else 'N'), + Agreement=("Y" if customs.certify else "N"), Comments=customs.content_description, LicenseNumber=customs.license_number, CertificateNumber=customs.certificate_number, @@ -126,9 +154,9 @@ def shipment_request(payload: ShipmentRequest, settings: Settings) -> Serializab CustomerRefNo2=None, POZipCode=None, LabelDate=DF.fdatetime( - (options.shipment_date or time.strftime('%Y-%m-%d')), + (options.shipment_date or time.strftime("%Y-%m-%d")), current_format="%Y-%m-%d", - output_format="%m/%d/%Y" + output_format="%m/%d/%Y", ), EMCAAccount=None, HoldForManifest=None, diff --git a/sdk/extensions/usps_international/purplship/providers/usps_international/shipment/priority_mail.py b/sdk/extensions/usps_international/purplship/providers/usps_international/shipment/priority_mail.py index 56ad436ec2..e15bde306c 100644 --- a/sdk/extensions/usps_international/purplship/providers/usps_international/shipment/priority_mail.py +++ b/sdk/extensions/usps_international/purplship/providers/usps_international/shipment/priority_mail.py @@ -9,7 +9,14 @@ ExtraServicesType, ) from purplship.core.utils import Serializable, Element, XP, DF, Location -from purplship.core.units import Packages, Options, Weight, WeightUnit, CompleteAddress +from purplship.core.units import ( + CustomsInfo, + Packages, + Options, + Weight, + WeightUnit, + CompleteAddress, +) from purplship.core.models import ( ShipmentRequest, ShipmentDetails, @@ -17,12 +24,18 @@ Address, Customs, ) -from purplship.providers.usps_international.units import LabelFormat, ShipmentOption, ContentType +from purplship.providers.usps_international.units import ( + LabelFormat, + ShipmentOption, + ContentType, +) from purplship.providers.usps_international.error import parse_error_response from purplship.providers.usps_international.utils import Settings -def parse_shipment_response(response: Element, settings: Settings) -> Tuple[ShipmentDetails, List[Message]]: +def parse_shipment_response( + response: Element, settings: Settings +) -> Tuple[ShipmentDetails, List[Message]]: errors = parse_error_response(response, settings) details = _extract_details(response, settings) @@ -35,27 +48,35 @@ def _extract_details(response: Element, settings: Settings) -> ShipmentDetails: return ShipmentDetails( carrier_name=settings.carrier_name, carrier_id=settings.carrier_id, - label=shipment.LabelImage, tracking_number=shipment.BarcodeNumber, shipment_identifier=shipment.BarcodeNumber, ) -def shipment_request(payload: ShipmentRequest, settings: Settings) -> Serializable[eVSPriorityMailIntlRequest]: +def shipment_request( + payload: ShipmentRequest, settings: Settings +) -> Serializable[eVSPriorityMailIntlRequest]: package = Packages(payload.parcels, max_weight=Weight(70, WeightUnit.LB)).single options = Options(payload.options, ShipmentOption) - label_format = LabelFormat[payload.label_type or 'usps_6_x_4_label'].value + label_format = LabelFormat[payload.label_type or "usps_6_x_4_label"].value extra_services = [ - getattr(option, 'value', option) for key, option in options - if key in ShipmentOption and 'usps_option' not in key + getattr(option, "value", option) + for key, option in options + if key in ShipmentOption and "usps_option" not in key ] - customs = payload.customs or Customs(commodities=[]) - insurance = getattr((options.usps_insurance_priority_mail_international), 'value', options.insurance) + customs = CustomsInfo(payload.customs or Customs(commodities=[])) + insurance = getattr( + (options.usps_insurance_priority_mail_international), "value", options.insurance + ) # Gets the first provided non delivery option or default to "RETURN" - non_delivery = next((option.value for name, option in options if 'non_delivery' in name), "RETURN") - redirect_address = CompleteAddress.map(Address(**(options.usps_option_redirect_non_delivery or {}))) + non_delivery = next( + (option.value for name, option in options if "non_delivery" in name), "RETURN" + ) + redirect_address = CompleteAddress.map( + Address(**(options.usps_option_redirect_non_delivery or {})) + ) request = eVSPriorityMailIntlRequest( USERID=settings.username, @@ -70,7 +91,7 @@ def shipment_request(payload: ShipmentRequest, settings: Settings) -> Serializab FromAddress2=payload.shipper.address_line1, FromUrbanization=None, FromCity=payload.shipper.city, - FromState=Location(payload.shipper.state_code, country='US').as_state_name, + FromState=Location(payload.shipper.state_code, country="US").as_state_name, FromZip5=Location(payload.shipper.postal_code).as_zip5, FromZip4=Location(payload.shipper.postal_code).as_zip4 or "", FromPhone=payload.shipper.phone_number, @@ -83,7 +104,9 @@ def shipment_request(payload: ShipmentRequest, settings: Settings) -> Serializab ToAddress2=payload.recipient.address_line1, ToAddress3=None, ToCity=payload.recipient.city, - ToProvince=Location(payload.recipient.state_code, country=payload.recipient.country_code).as_state_name, + ToProvince=Location( + payload.recipient.state_code, country=payload.recipient.country_code + ).as_state_name, ToCountry=Location(payload.recipient.country_code).as_country_name, ToPostalCode=payload.recipient.postal_code, ToPOBoxFlag=None, @@ -107,21 +130,25 @@ def shipment_request(payload: ShipmentRequest, settings: Settings) -> Serializab Description=item.description, Quantity=item.quantity, Value=item.value_amount, - NetPounds=Weight(item.weight, WeightUnit[item.weight_unit or 'LB']).LB, - NetOunces=Weight(item.weight, WeightUnit[item.weight_unit or 'LB']).OZ, + NetPounds=Weight( + item.weight, WeightUnit[item.weight_unit or "LB"] + ).LB, + NetOunces=Weight( + item.weight, WeightUnit[item.weight_unit or "LB"] + ).OZ, HSTariffNumber=item.sku, - CountryOfOrigin=Location(item.origin_country).as_country_name + CountryOfOrigin=Location(item.origin_country).as_country_name, ) for item in customs.commodities ] ), - Insured=('N' if insurance is None else 'Y'), + Insured=("N" if insurance is None else "Y"), InsuredAmount=insurance, GrossPounds=package.weight.LB, GrossOunces=package.weight.OZ, ContentType=ContentType[customs.content_type or "other"].value, ContentTypeOther=customs.content_description or "N/A", - Agreement=('N' if customs.certify else 'Y'), + Agreement=("N" if customs.certify else "Y"), Comments=customs.content_description, LicenseNumber=customs.license_number, CertificateNumber=customs.certificate_number, @@ -132,9 +159,9 @@ def shipment_request(payload: ShipmentRequest, settings: Settings) -> Serializab CustomerRefNo2=None, POZipCode=None, LabelDate=DF.fdatetime( - (options.shipment_date or time.strftime('%Y-%m-%d')), + (options.shipment_date or time.strftime("%Y-%m-%d")), current_format="%Y-%m-%d", - output_format="%m/%d/%Y" + output_format="%m/%d/%Y", ), EMCAAccount=None, HoldForManifest=None, @@ -146,7 +173,8 @@ def shipment_request(payload: ShipmentRequest, settings: Settings) -> Serializab Girth=(package.girth.value if package.packaging_type == "tube" else None), ExtraServices=( ExtraServicesType(ExtraService=[s for s in extra_services]) - if any(extra_services) else None + if any(extra_services) + else None ), ActionCode=None, OptOutOfSPE=None, diff --git a/sdk/extensions/usps_international/purplship/providers/usps_international/tracking.py b/sdk/extensions/usps_international/purplship/providers/usps_international/tracking.py index feb3167a2c..1277539158 100644 --- a/sdk/extensions/usps_international/purplship/providers/usps_international/tracking.py +++ b/sdk/extensions/usps_international/purplship/providers/usps_international/tracking.py @@ -1,7 +1,7 @@ from typing import List, Tuple from usps_lib.track_field_request import TrackFieldRequest, TrackIDType from usps_lib.track_response import TrackInfoType, TrackDetailType -from purplship.core.utils import Serializable, Element, XP, DF +from purplship.core.utils import Serializable, Element, XP, DF, SF from purplship.core.models import ( TrackingRequest, Message, @@ -29,33 +29,31 @@ def _extract_details(node: Element, settings) -> TrackingDetails: info = XP.to_object(TrackInfoType, node) details: List[TrackDetailType] = [*([info.TrackSummary] or []), *info.TrackDetail] delivered = info.StatusCategory.lower() == "delivered" + expected_delivery = info.ExpectedDeliveryDate or info.PredictedDeliveryDate return TrackingDetails( carrier_name=settings.carrier_name, carrier_id=settings.carrier_id, tracking_number=info.ID, + delivered=delivered, events=[ TrackingEvent( code=str(event.EventCode), date=DF.fdate(event.EventDate, "%B %d, %Y"), time=DF.ftime(event.EventTime, "%H:%M %p"), description=event.Event, - location=", ".join( - [ - location - for location in [ - event.EventCity, - event.EventState, - event.EventCountry, - str(event.EventZIPCode), - ] - if location is not None - ] + location=SF.concat_str( + event.EventCity, + event.EventState, + event.EventCountry, + str(event.EventZIPCode or ""), + join=True, + separator=", ", ), ) for event in details ], - delivered=delivered + estimated_delivery=DF.fdate(expected_delivery, "%B %d, %Y"), ) diff --git a/sdk/extensions/usps_international/pyproject.toml b/sdk/extensions/usps_international/pyproject.toml index de6b95df24..b162ee0e56 100644 --- a/sdk/extensions/usps_international/pyproject.toml +++ b/sdk/extensions/usps_international/pyproject.toml @@ -1,11 +1,11 @@ [tool.poetry] name = "purplship.usps_international" -version = "2021.10" -homepage="https://docs.purplship.com" +version = "2021.11.1" +homepage="https://next.purplship.com/docs/guides/sdk" repository="https://github.com/purplship/purplship" description = "Purplship - USPS International Shipping Extension" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [{ include = "purplship" }] classifiers=[ @@ -17,7 +17,7 @@ classifiers=[ [tool.poetry.dependencies] python = "^3.7" -"purplship" = "^2021.6" +"purplship" = "" "carrier.usps" = "" [tool.poetry.dev-dependencies] diff --git a/sdk/extensions/usps_international/setup.py b/sdk/extensions/usps_international/setup.py index c976b80abd..101a94f8de 100644 --- a/sdk/extensions/usps_international/setup.py +++ b/sdk/extensions/usps_international/setup.py @@ -3,10 +3,10 @@ from setuptools import setup, find_namespace_packages setup( - name='purplship.usps_international', - version='0.0.0-dev', - license='LGPLv3', - packages=find_namespace_packages(), - install_requires=['purplship', 'carrier.usps_international'], - zip_safe=False, -) \ No newline at end of file + name="purplship.usps_international", + version="0.0.0-dev", + license="LGPLv3", + packages=find_namespace_packages(), + install_requires=["purplship", "carrier.usps"], + zip_safe=False, +) diff --git a/sdk/extensions/usps_international/tests/usps_international/shipment/first_class.py b/sdk/extensions/usps_international/tests/usps_international/shipment/first_class.py index 2bd66fa051..344a517187 100644 --- a/sdk/extensions/usps_international/tests/usps_international/shipment/first_class.py +++ b/sdk/extensions/usps_international/tests/usps_international/shipment/first_class.py @@ -76,8 +76,6 @@ def test_parse_shipment_response(self): "customs": { "content_type": "merchandise", "incoterm": "DDU", - "license_number": "LIC-24356879", - "certificate_number": "CERT-97865342", "invoice": "INV-040903", "commodities": [ { @@ -97,10 +95,12 @@ def test_parse_shipment_response(self): }, "certify": True, "signer": "Admin", + "options": { + "license_number": "LIC-24356879", + "certificate_number": "CERT-97865342", + }, }, - "options": { - "shipment_date": "2021-05-15" - } + "options": {"shipment_date": "2021-05-15"}, } diff --git a/sdk/extensions/usps_international/tests/usps_international/shipment/global_express_guaranteed.py b/sdk/extensions/usps_international/tests/usps_international/shipment/global_express_guaranteed.py index f5ec7baadb..594ecd6c79 100644 --- a/sdk/extensions/usps_international/tests/usps_international/shipment/global_express_guaranteed.py +++ b/sdk/extensions/usps_international/tests/usps_international/shipment/global_express_guaranteed.py @@ -76,8 +76,6 @@ def test_parse_shipment_response(self): "customs": { "content_type": "merchandise", "incoterm": "DDU", - "license_number": "LIC-24356879", - "certificate_number": "CERT-97865342", "invoice": "INV-040903", "commodities": [ { @@ -97,10 +95,12 @@ def test_parse_shipment_response(self): }, "certify": True, "signer": "Admin", + "options": { + "license_number": "LIC-24356879", + "certificate_number": "CERT-97865342", + }, }, - "options": { - "shipment_date": "2021-05-15" - } + "options": {"shipment_date": "2021-05-15"}, } diff --git a/sdk/extensions/usps_international/tests/usps_international/shipment/priority_express.py b/sdk/extensions/usps_international/tests/usps_international/shipment/priority_express.py index a64de39f0c..b1451c15d7 100644 --- a/sdk/extensions/usps_international/tests/usps_international/shipment/priority_express.py +++ b/sdk/extensions/usps_international/tests/usps_international/shipment/priority_express.py @@ -77,8 +77,6 @@ def test_parse_shipment_response(self): "customs": { "content_type": "merchandise", "incoterm": "DDU", - "license_number": "LIC-24356879", - "certificate_number": "CERT-97865342", "invoice": "INV-040903", "commodities": [ { @@ -98,10 +96,12 @@ def test_parse_shipment_response(self): }, "certify": True, "signer": "Admin", + "options": { + "license_number": "LIC-24356879", + "certificate_number": "CERT-97865342", + }, }, - "options": { - "shipment_date": "2021-05-15" - } + "options": {"shipment_date": "2021-05-15"}, } diff --git a/sdk/extensions/usps_international/tests/usps_international/shipment/priority_mail.py b/sdk/extensions/usps_international/tests/usps_international/shipment/priority_mail.py index 1fc7e3a8b3..a84f3db1eb 100644 --- a/sdk/extensions/usps_international/tests/usps_international/shipment/priority_mail.py +++ b/sdk/extensions/usps_international/tests/usps_international/shipment/priority_mail.py @@ -112,8 +112,6 @@ def test_parse_cancel_shipment_response(self): "customs": { "content_type": "merchandise", "incoterm": "DDU", - "license_number": "LIC-24356879", - "certificate_number": "CERT-97865342", "invoice": "INV-040903", "commodities": [ { @@ -133,10 +131,12 @@ def test_parse_cancel_shipment_response(self): }, "certify": True, "signer": "Admin", + "options": { + "license_number": "LIC-24356879", + "certificate_number": "CERT-97865342", + }, }, - "options": { - "shipment_date": "2021-05-15" - } + "options": {"shipment_date": "2021-05-15"}, } diff --git a/sdk/extensions/yanwen/poetry.lock b/sdk/extensions/yanwen/poetry.lock deleted file mode 100644 index 74f0b05d59..0000000000 --- a/sdk/extensions/yanwen/poetry.lock +++ /dev/null @@ -1,239 +0,0 @@ -[[package]] -name = "attrs" -version = "21.2.0" -description = "Classes Without Boilerplate" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" - -[package.extras] -dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit"] -docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"] -tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface"] -tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins"] - -[[package]] -name = "carrier.yanwen" -version = "2021.2.1" -description = "DHL eCommerce API Schemas Python Data Types library" -category = "main" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -jstruct = "*" - -[[package]] -name = "jstruct" -version = "2020.4.0" -description = "Readable serializable and deserializable Python nested models" -category = "main" -optional = false -python-versions = "*" - -[package.dependencies] -attrs = "*" - -[[package]] -name = "lxml" -version = "4.6.3" -description = "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API." -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*" - -[package.extras] -cssselect = ["cssselect (>=0.7)"] -html5 = ["html5lib"] -htmlsoup = ["beautifulsoup4"] -source = ["Cython (>=0.29.7)"] - -[[package]] -name = "lxml-stubs" -version = "0.1.1" -description = "Type annotations for the lxml package" -category = "main" -optional = false -python-versions = "*" - -[package.extras] -test = ["pytest (>=6.0.0)", "pytest-mypy-plugins (==1.4.0)", "coverage[toml] (==5.2)"] - -[[package]] -name = "phonenumbers" -version = "8.12.28" -description = "Python version of Google's common library for parsing, formatting, storing and validating international phone numbers." -category = "main" -optional = false -python-versions = "*" - -[[package]] -name = "pillow" -version = "8.3.1" -description = "Python Imaging Library (Fork)" -category = "main" -optional = false -python-versions = ">=3.6" - -[[package]] -name = "purplship" -version = "2021.6.2" -description = "Multi-carrier shipping API integration with python" -category = "main" -optional = false -python-versions = ">=3.7,<4.0" - -[package.dependencies] -jstruct = ">=2020.4.0,<2021.0.0" -lxml = ">=4.6.2,<5.0.0" -lxml-stubs = ">=0.1.1,<0.2.0" -phonenumbers = ">=8.12.17,<9.0.0" -Pillow = ">=8.1.0,<9.0.0" -py-soap = ">=2020.3.2,<2021.0.0" -xmltodict = ">=0.12.0,<0.13.0" - -[[package]] -name = "py-soap" -version = "2020.3.2" -description = "SOAP Schemas Python Data Types library" -category = "main" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "six" -version = "1.16.0" -description = "Python 2 and 3 compatibility utilities" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" - -[[package]] -name = "xmltodict" -version = "0.12.0" -description = "Makes working with XML feel like you are working with JSON" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.7" -content-hash = "81076d4d6261aa54ea4520c5b75274b96662475cdf31ff04fefb0740e3c68c9a" - -[metadata.files] -attrs = [ - {file = "attrs-21.2.0-py2.py3-none-any.whl", hash = "sha256:149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1"}, - {file = "attrs-21.2.0.tar.gz", hash = "sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"}, -] -"carrier.yanwen" = [ - {file = "carrier.yanwen-2021.2.1-py3-none-any.whl", hash = "sha256:78ebf2e40f0dd5de66b7fda6fb8ec705b292db46f1d3923cbf2ce642139ea361"}, -] -jstruct = [ - {file = "jstruct-2020.4.0-py3-none-any.whl", hash = "sha256:86257c1332e1ba6983d78e3199fb3dcadaf742e96c3c1a97f3ba322fa241f89c"}, -] -lxml = [ - {file = "lxml-4.6.3-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:df7c53783a46febb0e70f6b05df2ba104610f2fb0d27023409734a3ecbb78fb2"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:1b7584d421d254ab86d4f0b13ec662a9014397678a7c4265a02a6d7c2b18a75f"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:079f3ae844f38982d156efce585bc540c16a926d4436712cf4baee0cce487a3d"}, - {file = "lxml-4.6.3-cp27-cp27m-win32.whl", hash = "sha256:bc4313cbeb0e7a416a488d72f9680fffffc645f8a838bd2193809881c67dd106"}, - {file = "lxml-4.6.3-cp27-cp27m-win_amd64.whl", hash = "sha256:8157dadbb09a34a6bd95a50690595e1fa0af1a99445e2744110e3dca7831c4ee"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:7728e05c35412ba36d3e9795ae8995e3c86958179c9770e65558ec3fdfd3724f"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:4bff24dfeea62f2e56f5bab929b4428ae6caba2d1eea0c2d6eb618e30a71e6d4"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:74f7d8d439b18fa4c385f3f5dfd11144bb87c1da034a466c5b5577d23a1d9b51"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:f90ba11136bfdd25cae3951af8da2e95121c9b9b93727b1b896e3fa105b2f586"}, - {file = "lxml-4.6.3-cp35-cp35m-win32.whl", hash = "sha256:f2380a6376dfa090227b663f9678150ef27543483055cc327555fb592c5967e2"}, - {file = "lxml-4.6.3-cp35-cp35m-win_amd64.whl", hash = "sha256:c4f05c5a7c49d2fb70223d0d5bcfbe474cf928310ac9fa6a7c6dddc831d0b1d4"}, - {file = "lxml-4.6.3-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:d2e35d7bf1c1ac8c538f88d26b396e73dd81440d59c1ef8522e1ea77b345ede4"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:289e9ca1a9287f08daaf796d96e06cb2bc2958891d7911ac7cae1c5f9e1e0ee3"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:bccbfc27563652de7dc9bdc595cb25e90b59c5f8e23e806ed0fd623755b6565d"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:820628b7b3135403540202e60551e741f9b6d3304371712521be939470b454ec"}, - {file = "lxml-4.6.3-cp36-cp36m-win32.whl", hash = "sha256:5a0a14e264069c03e46f926be0d8919f4105c1623d620e7ec0e612a2e9bf1c04"}, - {file = "lxml-4.6.3-cp36-cp36m-win_amd64.whl", hash = "sha256:92e821e43ad382332eade6812e298dc9701c75fe289f2a2d39c7960b43d1e92a"}, - {file = "lxml-4.6.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:efd7a09678fd8b53117f6bae4fa3825e0a22b03ef0a932e070c0bdbb3a35e654"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:efac139c3f0bf4f0939f9375af4b02c5ad83a622de52d6dfa8e438e8e01d0eb0"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:0fbcf5565ac01dff87cbfc0ff323515c823081c5777a9fc7703ff58388c258c3"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:122fba10466c7bd4178b07dba427aa516286b846b2cbd6f6169141917283aae2"}, - {file = "lxml-4.6.3-cp37-cp37m-win32.whl", hash = "sha256:3439c71103ef0e904ea0a1901611863e51f50b5cd5e8654a151740fde5e1cade"}, - {file = "lxml-4.6.3-cp37-cp37m-win_amd64.whl", hash = "sha256:4289728b5e2000a4ad4ab8da6e1db2e093c63c08bdc0414799ee776a3f78da4b"}, - {file = "lxml-4.6.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:b007cbb845b28db4fb8b6a5cdcbf65bacb16a8bd328b53cbc0698688a68e1caa"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_i686.whl", hash = "sha256:76fa7b1362d19f8fbd3e75fe2fb7c79359b0af8747e6f7141c338f0bee2f871a"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:26e761ab5b07adf5f555ee82fb4bfc35bf93750499c6c7614bd64d12aaa67927"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:66e575c62792c3f9ca47cb8b6fab9e35bab91360c783d1606f758761810c9791"}, - {file = "lxml-4.6.3-cp38-cp38-win32.whl", hash = "sha256:89b8b22a5ff72d89d48d0e62abb14340d9e99fd637d046c27b8b257a01ffbe28"}, - {file = "lxml-4.6.3-cp38-cp38-win_amd64.whl", hash = "sha256:2a9d50e69aac3ebee695424f7dbd7b8c6d6eb7de2a2eb6b0f6c7db6aa41e02b7"}, - {file = "lxml-4.6.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:ce256aaa50f6cc9a649c51be3cd4ff142d67295bfc4f490c9134d0f9f6d58ef0"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_i686.whl", hash = "sha256:7610b8c31688f0b1be0ef882889817939490a36d0ee880ea562a4e1399c447a1"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:f8380c03e45cf09f8557bdaa41e1fa7c81f3ae22828e1db470ab2a6c96d8bc23"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:884ab9b29feaca361f7f88d811b1eea9bfca36cf3da27768d28ad45c3ee6f969"}, - {file = "lxml-4.6.3-cp39-cp39-win32.whl", hash = "sha256:33bb934a044cf32157c12bfcfbb6649807da20aa92c062ef51903415c704704f"}, - {file = "lxml-4.6.3-cp39-cp39-win_amd64.whl", hash = "sha256:542d454665a3e277f76954418124d67516c5f88e51a900365ed54a9806122b83"}, - {file = "lxml-4.6.3.tar.gz", hash = "sha256:39b78571b3b30645ac77b95f7c69d1bffc4cf8c3b157c435a34da72e78c82468"}, -] -lxml-stubs = [ - {file = "lxml-stubs-0.1.1.tar.gz", hash = "sha256:9b6a01ba4bccd6e532c01e19d2a3bc6d1d018fa0b9870236f61f315cb7b06648"}, - {file = "lxml_stubs-0.1.1-py3-none-any.whl", hash = "sha256:d34a28be0e2525b0236aff7fe67af1f61911f556cadbc61f09810b69f762b747"}, -] -phonenumbers = [ - {file = "phonenumbers-8.12.28-py2.py3-none-any.whl", hash = "sha256:f8ce05f82955d2faeefe2303350b2ccb7369dd39b6e45231a09475d67eb7e83b"}, - {file = "phonenumbers-8.12.28.tar.gz", hash = "sha256:42ea4f946d5cce0056cbce257842ea6b281e69828ad2e7f27b29d3908e5b06bd"}, -] -pillow = [ - {file = "Pillow-8.3.1-1-cp36-cp36m-win_amd64.whl", hash = "sha256:fd7eef578f5b2200d066db1b50c4aa66410786201669fb76d5238b007918fb24"}, - {file = "Pillow-8.3.1-1-cp37-cp37m-win_amd64.whl", hash = "sha256:75e09042a3b39e0ea61ce37e941221313d51a9c26b8e54e12b3ececccb71718a"}, - {file = "Pillow-8.3.1-1-cp38-cp38-win_amd64.whl", hash = "sha256:c0e0550a404c69aab1e04ae89cca3e2a042b56ab043f7f729d984bf73ed2a093"}, - {file = "Pillow-8.3.1-1-cp39-cp39-win_amd64.whl", hash = "sha256:479ab11cbd69612acefa8286481f65c5dece2002ffaa4f9db62682379ca3bb77"}, - {file = "Pillow-8.3.1-1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:f156d6ecfc747ee111c167f8faf5f4953761b5e66e91a4e6767e548d0f80129c"}, - {file = "Pillow-8.3.1-cp36-cp36m-macosx_10_10_x86_64.whl", hash = "sha256:196560dba4da7a72c5e7085fccc5938ab4075fd37fe8b5468869724109812edd"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:29c9569049d04aaacd690573a0398dbd8e0bf0255684fee512b413c2142ab723"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:c088a000dfdd88c184cc7271bfac8c5b82d9efa8637cd2b68183771e3cf56f04"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:fc214a6b75d2e0ea7745488da7da3c381f41790812988c7a92345978414fad37"}, - {file = "Pillow-8.3.1-cp36-cp36m-win32.whl", hash = "sha256:a17ca41f45cf78c2216ebfab03add7cc350c305c38ff34ef4eef66b7d76c5229"}, - {file = "Pillow-8.3.1-cp36-cp36m-win_amd64.whl", hash = "sha256:67b3666b544b953a2777cb3f5a922e991be73ab32635666ee72e05876b8a92de"}, - {file = "Pillow-8.3.1-cp37-cp37m-macosx_10_10_x86_64.whl", hash = "sha256:ff04c373477723430dce2e9d024c708a047d44cf17166bf16e604b379bf0ca14"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9364c81b252d8348e9cc0cb63e856b8f7c1b340caba6ee7a7a65c968312f7dab"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a2f381932dca2cf775811a008aa3027671ace723b7a38838045b1aee8669fdcf"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:d0da39795049a9afcaadec532e7b669b5ebbb2a9134576ebcc15dd5bdae33cc0"}, - {file = "Pillow-8.3.1-cp37-cp37m-win32.whl", hash = "sha256:2b6dfa068a8b6137da34a4936f5a816aba0ecc967af2feeb32c4393ddd671cba"}, - {file = "Pillow-8.3.1-cp37-cp37m-win_amd64.whl", hash = "sha256:a4eef1ff2d62676deabf076f963eda4da34b51bc0517c70239fafed1d5b51500"}, - {file = "Pillow-8.3.1-cp38-cp38-macosx_10_10_x86_64.whl", hash = "sha256:660a87085925c61a0dcc80efb967512ac34dbb256ff7dd2b9b4ee8dbdab58cf4"}, - {file = "Pillow-8.3.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:15a2808e269a1cf2131930183dcc0419bc77bb73eb54285dde2706ac9939fa8e"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:969cc558cca859cadf24f890fc009e1bce7d7d0386ba7c0478641a60199adf79"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:2ee77c14a0299d0541d26f3d8500bb57e081233e3fa915fa35abd02c51fa7fae"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:c11003197f908878164f0e6da15fce22373ac3fc320cda8c9d16e6bba105b844"}, - {file = "Pillow-8.3.1-cp38-cp38-win32.whl", hash = "sha256:3f08bd8d785204149b5b33e3b5f0ebbfe2190ea58d1a051c578e29e39bfd2367"}, - {file = "Pillow-8.3.1-cp38-cp38-win_amd64.whl", hash = "sha256:70af7d222df0ff81a2da601fab42decb009dc721545ed78549cb96e3a1c5f0c8"}, - {file = "Pillow-8.3.1-cp39-cp39-macosx_10_10_x86_64.whl", hash = "sha256:37730f6e68bdc6a3f02d2079c34c532330d206429f3cee651aab6b66839a9f0e"}, - {file = "Pillow-8.3.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:4bc3c7ef940eeb200ca65bd83005eb3aae8083d47e8fcbf5f0943baa50726856"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c35d09db702f4185ba22bb33ef1751ad49c266534339a5cebeb5159d364f6f82"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:0b2efa07f69dc395d95bb9ef3299f4ca29bcb2157dc615bae0b42c3c20668ffc"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:cc866706d56bd3a7dbf8bac8660c6f6462f2f2b8a49add2ba617bc0c54473d83"}, - {file = "Pillow-8.3.1-cp39-cp39-win32.whl", hash = "sha256:9a211b663cf2314edbdb4cf897beeb5c9ee3810d1d53f0e423f06d6ebbf9cd5d"}, - {file = "Pillow-8.3.1-cp39-cp39-win_amd64.whl", hash = "sha256:c2a5ff58751670292b406b9f06e07ed1446a4b13ffced6b6cab75b857485cbc8"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-macosx_10_10_x86_64.whl", hash = "sha256:c379425c2707078dfb6bfad2430728831d399dc95a7deeb92015eb4c92345eaf"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:114f816e4f73f9ec06997b2fde81a92cbf0777c9e8f462005550eed6bae57e63"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:8960a8a9f4598974e4c2aeb1bff9bdd5db03ee65fd1fce8adf3223721aa2a636"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-macosx_10_10_x86_64.whl", hash = "sha256:147bd9e71fb9dcf08357b4d530b5167941e222a6fd21f869c7911bac40b9994d"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:1fd5066cd343b5db88c048d971994e56b296868766e461b82fa4e22498f34d77"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:f4ebde71785f8bceb39dcd1e7f06bcc5d5c3cf48b9f69ab52636309387b097c8"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:1c03e24be975e2afe70dfc5da6f187eea0b49a68bb2b69db0f30a61b7031cee4"}, - {file = "Pillow-8.3.1.tar.gz", hash = "sha256:2cac53839bfc5cece8fdbe7f084d5e3ee61e1303cccc86511d351adcb9e2c792"}, -] -purplship = [ - {file = "purplship-2021.6.2-py3-none-any.whl", hash = "sha256:ded793b23664a14649f3c08ebbd344f6b58fbbc982d69481242478074ea74ff1"}, -] -py-soap = [ - {file = "py_soap-2020.3.2-py3-none-any.whl", hash = "sha256:61e2ec956d349bdd9d4c6248a2ae3c4cc4b0a2a5cf6b439b6de480a3bc2766a1"}, -] -six = [ - {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"}, - {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"}, -] -xmltodict = [ - {file = "xmltodict-0.12.0-py2.py3-none-any.whl", hash = "sha256:8bbcb45cc982f48b2ca8fe7e7827c5d792f217ecf1792626f808bf41c3b86051"}, - {file = "xmltodict-0.12.0.tar.gz", hash = "sha256:50d8c638ed7ecb88d90561beedbf720c9b4e851a9fa6c47ebd64e99d166d8a21"}, -] diff --git a/sdk/extensions/yanwen/pyproject.toml b/sdk/extensions/yanwen/pyproject.toml index 52c1624c34..2d5abb733f 100644 --- a/sdk/extensions/yanwen/pyproject.toml +++ b/sdk/extensions/yanwen/pyproject.toml @@ -1,11 +1,11 @@ [tool.poetry] name = "purplship.yanwen" version = "2021.10" -homepage="https://docs.purplship.com" +homepage="https://next.purplship.com/docs/guides/sdk" repository="https://github.com/purplship/purplship" description = "Purplship - Yanwen Shipping Extension" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [{ include = "purplship" }] classifiers=[ diff --git a/sdk/extensions/yunexpress/poetry.lock b/sdk/extensions/yunexpress/poetry.lock deleted file mode 100644 index 97fe056d4c..0000000000 --- a/sdk/extensions/yunexpress/poetry.lock +++ /dev/null @@ -1,239 +0,0 @@ -[[package]] -name = "attrs" -version = "21.2.0" -description = "Classes Without Boilerplate" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" - -[package.extras] -dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit"] -docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"] -tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface"] -tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins"] - -[[package]] -name = "carrier.yunexpress" -version = "2021.2.1" -description = "Purolator Web API Schemas Python Data Types library" -category = "main" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -jstruct = "*" - -[[package]] -name = "jstruct" -version = "2020.4.0" -description = "Readable serializable and deserializable Python nested models" -category = "main" -optional = false -python-versions = "*" - -[package.dependencies] -attrs = "*" - -[[package]] -name = "lxml" -version = "4.6.3" -description = "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API." -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*" - -[package.extras] -cssselect = ["cssselect (>=0.7)"] -html5 = ["html5lib"] -htmlsoup = ["beautifulsoup4"] -source = ["Cython (>=0.29.7)"] - -[[package]] -name = "lxml-stubs" -version = "0.1.1" -description = "Type annotations for the lxml package" -category = "main" -optional = false -python-versions = "*" - -[package.extras] -test = ["pytest (>=6.0.0)", "pytest-mypy-plugins (==1.4.0)", "coverage[toml] (==5.2)"] - -[[package]] -name = "phonenumbers" -version = "8.12.28" -description = "Python version of Google's common library for parsing, formatting, storing and validating international phone numbers." -category = "main" -optional = false -python-versions = "*" - -[[package]] -name = "pillow" -version = "8.3.1" -description = "Python Imaging Library (Fork)" -category = "main" -optional = false -python-versions = ">=3.6" - -[[package]] -name = "purplship" -version = "2021.6.2" -description = "Multi-carrier shipping API integration with python" -category = "main" -optional = false -python-versions = ">=3.7,<4.0" - -[package.dependencies] -jstruct = ">=2020.4.0,<2021.0.0" -lxml = ">=4.6.2,<5.0.0" -lxml-stubs = ">=0.1.1,<0.2.0" -phonenumbers = ">=8.12.17,<9.0.0" -Pillow = ">=8.1.0,<9.0.0" -py-soap = ">=2020.3.2,<2021.0.0" -xmltodict = ">=0.12.0,<0.13.0" - -[[package]] -name = "py-soap" -version = "2020.3.2" -description = "SOAP Schemas Python Data Types library" -category = "main" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "six" -version = "1.16.0" -description = "Python 2 and 3 compatibility utilities" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" - -[[package]] -name = "xmltodict" -version = "0.12.0" -description = "Makes working with XML feel like you are working with JSON" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.7" -content-hash = "fd12415f4e567600b51fb6447010730f5338e23f79426a9e9124e62d6f68a4ad" - -[metadata.files] -attrs = [ - {file = "attrs-21.2.0-py2.py3-none-any.whl", hash = "sha256:149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1"}, - {file = "attrs-21.2.0.tar.gz", hash = "sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"}, -] -"carrier.yunexpress" = [ - {file = "carrier.yunexpress-2021.2.1-py3-none-any.whl", hash = "sha256:d385b947e1ce9c59f69f5df31f2a58e5a83c6e79eb3b1e372302a0bb42faa014"}, -] -jstruct = [ - {file = "jstruct-2020.4.0-py3-none-any.whl", hash = "sha256:86257c1332e1ba6983d78e3199fb3dcadaf742e96c3c1a97f3ba322fa241f89c"}, -] -lxml = [ - {file = "lxml-4.6.3-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:df7c53783a46febb0e70f6b05df2ba104610f2fb0d27023409734a3ecbb78fb2"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:1b7584d421d254ab86d4f0b13ec662a9014397678a7c4265a02a6d7c2b18a75f"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:079f3ae844f38982d156efce585bc540c16a926d4436712cf4baee0cce487a3d"}, - {file = "lxml-4.6.3-cp27-cp27m-win32.whl", hash = "sha256:bc4313cbeb0e7a416a488d72f9680fffffc645f8a838bd2193809881c67dd106"}, - {file = "lxml-4.6.3-cp27-cp27m-win_amd64.whl", hash = "sha256:8157dadbb09a34a6bd95a50690595e1fa0af1a99445e2744110e3dca7831c4ee"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:7728e05c35412ba36d3e9795ae8995e3c86958179c9770e65558ec3fdfd3724f"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:4bff24dfeea62f2e56f5bab929b4428ae6caba2d1eea0c2d6eb618e30a71e6d4"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:74f7d8d439b18fa4c385f3f5dfd11144bb87c1da034a466c5b5577d23a1d9b51"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:f90ba11136bfdd25cae3951af8da2e95121c9b9b93727b1b896e3fa105b2f586"}, - {file = "lxml-4.6.3-cp35-cp35m-win32.whl", hash = "sha256:f2380a6376dfa090227b663f9678150ef27543483055cc327555fb592c5967e2"}, - {file = "lxml-4.6.3-cp35-cp35m-win_amd64.whl", hash = "sha256:c4f05c5a7c49d2fb70223d0d5bcfbe474cf928310ac9fa6a7c6dddc831d0b1d4"}, - {file = "lxml-4.6.3-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:d2e35d7bf1c1ac8c538f88d26b396e73dd81440d59c1ef8522e1ea77b345ede4"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:289e9ca1a9287f08daaf796d96e06cb2bc2958891d7911ac7cae1c5f9e1e0ee3"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:bccbfc27563652de7dc9bdc595cb25e90b59c5f8e23e806ed0fd623755b6565d"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:820628b7b3135403540202e60551e741f9b6d3304371712521be939470b454ec"}, - {file = "lxml-4.6.3-cp36-cp36m-win32.whl", hash = "sha256:5a0a14e264069c03e46f926be0d8919f4105c1623d620e7ec0e612a2e9bf1c04"}, - {file = "lxml-4.6.3-cp36-cp36m-win_amd64.whl", hash = "sha256:92e821e43ad382332eade6812e298dc9701c75fe289f2a2d39c7960b43d1e92a"}, - {file = "lxml-4.6.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:efd7a09678fd8b53117f6bae4fa3825e0a22b03ef0a932e070c0bdbb3a35e654"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:efac139c3f0bf4f0939f9375af4b02c5ad83a622de52d6dfa8e438e8e01d0eb0"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:0fbcf5565ac01dff87cbfc0ff323515c823081c5777a9fc7703ff58388c258c3"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:122fba10466c7bd4178b07dba427aa516286b846b2cbd6f6169141917283aae2"}, - {file = "lxml-4.6.3-cp37-cp37m-win32.whl", hash = "sha256:3439c71103ef0e904ea0a1901611863e51f50b5cd5e8654a151740fde5e1cade"}, - {file = "lxml-4.6.3-cp37-cp37m-win_amd64.whl", hash = "sha256:4289728b5e2000a4ad4ab8da6e1db2e093c63c08bdc0414799ee776a3f78da4b"}, - {file = "lxml-4.6.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:b007cbb845b28db4fb8b6a5cdcbf65bacb16a8bd328b53cbc0698688a68e1caa"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_i686.whl", hash = "sha256:76fa7b1362d19f8fbd3e75fe2fb7c79359b0af8747e6f7141c338f0bee2f871a"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:26e761ab5b07adf5f555ee82fb4bfc35bf93750499c6c7614bd64d12aaa67927"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:66e575c62792c3f9ca47cb8b6fab9e35bab91360c783d1606f758761810c9791"}, - {file = "lxml-4.6.3-cp38-cp38-win32.whl", hash = "sha256:89b8b22a5ff72d89d48d0e62abb14340d9e99fd637d046c27b8b257a01ffbe28"}, - {file = "lxml-4.6.3-cp38-cp38-win_amd64.whl", hash = "sha256:2a9d50e69aac3ebee695424f7dbd7b8c6d6eb7de2a2eb6b0f6c7db6aa41e02b7"}, - {file = "lxml-4.6.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:ce256aaa50f6cc9a649c51be3cd4ff142d67295bfc4f490c9134d0f9f6d58ef0"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_i686.whl", hash = "sha256:7610b8c31688f0b1be0ef882889817939490a36d0ee880ea562a4e1399c447a1"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:f8380c03e45cf09f8557bdaa41e1fa7c81f3ae22828e1db470ab2a6c96d8bc23"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:884ab9b29feaca361f7f88d811b1eea9bfca36cf3da27768d28ad45c3ee6f969"}, - {file = "lxml-4.6.3-cp39-cp39-win32.whl", hash = "sha256:33bb934a044cf32157c12bfcfbb6649807da20aa92c062ef51903415c704704f"}, - {file = "lxml-4.6.3-cp39-cp39-win_amd64.whl", hash = "sha256:542d454665a3e277f76954418124d67516c5f88e51a900365ed54a9806122b83"}, - {file = "lxml-4.6.3.tar.gz", hash = "sha256:39b78571b3b30645ac77b95f7c69d1bffc4cf8c3b157c435a34da72e78c82468"}, -] -lxml-stubs = [ - {file = "lxml-stubs-0.1.1.tar.gz", hash = "sha256:9b6a01ba4bccd6e532c01e19d2a3bc6d1d018fa0b9870236f61f315cb7b06648"}, - {file = "lxml_stubs-0.1.1-py3-none-any.whl", hash = "sha256:d34a28be0e2525b0236aff7fe67af1f61911f556cadbc61f09810b69f762b747"}, -] -phonenumbers = [ - {file = "phonenumbers-8.12.28-py2.py3-none-any.whl", hash = "sha256:f8ce05f82955d2faeefe2303350b2ccb7369dd39b6e45231a09475d67eb7e83b"}, - {file = "phonenumbers-8.12.28.tar.gz", hash = "sha256:42ea4f946d5cce0056cbce257842ea6b281e69828ad2e7f27b29d3908e5b06bd"}, -] -pillow = [ - {file = "Pillow-8.3.1-1-cp36-cp36m-win_amd64.whl", hash = "sha256:fd7eef578f5b2200d066db1b50c4aa66410786201669fb76d5238b007918fb24"}, - {file = "Pillow-8.3.1-1-cp37-cp37m-win_amd64.whl", hash = "sha256:75e09042a3b39e0ea61ce37e941221313d51a9c26b8e54e12b3ececccb71718a"}, - {file = "Pillow-8.3.1-1-cp38-cp38-win_amd64.whl", hash = "sha256:c0e0550a404c69aab1e04ae89cca3e2a042b56ab043f7f729d984bf73ed2a093"}, - {file = "Pillow-8.3.1-1-cp39-cp39-win_amd64.whl", hash = "sha256:479ab11cbd69612acefa8286481f65c5dece2002ffaa4f9db62682379ca3bb77"}, - {file = "Pillow-8.3.1-1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:f156d6ecfc747ee111c167f8faf5f4953761b5e66e91a4e6767e548d0f80129c"}, - {file = "Pillow-8.3.1-cp36-cp36m-macosx_10_10_x86_64.whl", hash = "sha256:196560dba4da7a72c5e7085fccc5938ab4075fd37fe8b5468869724109812edd"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:29c9569049d04aaacd690573a0398dbd8e0bf0255684fee512b413c2142ab723"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:c088a000dfdd88c184cc7271bfac8c5b82d9efa8637cd2b68183771e3cf56f04"}, - {file = "Pillow-8.3.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:fc214a6b75d2e0ea7745488da7da3c381f41790812988c7a92345978414fad37"}, - {file = "Pillow-8.3.1-cp36-cp36m-win32.whl", hash = "sha256:a17ca41f45cf78c2216ebfab03add7cc350c305c38ff34ef4eef66b7d76c5229"}, - {file = "Pillow-8.3.1-cp36-cp36m-win_amd64.whl", hash = "sha256:67b3666b544b953a2777cb3f5a922e991be73ab32635666ee72e05876b8a92de"}, - {file = "Pillow-8.3.1-cp37-cp37m-macosx_10_10_x86_64.whl", hash = "sha256:ff04c373477723430dce2e9d024c708a047d44cf17166bf16e604b379bf0ca14"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9364c81b252d8348e9cc0cb63e856b8f7c1b340caba6ee7a7a65c968312f7dab"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a2f381932dca2cf775811a008aa3027671ace723b7a38838045b1aee8669fdcf"}, - {file = "Pillow-8.3.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:d0da39795049a9afcaadec532e7b669b5ebbb2a9134576ebcc15dd5bdae33cc0"}, - {file = "Pillow-8.3.1-cp37-cp37m-win32.whl", hash = "sha256:2b6dfa068a8b6137da34a4936f5a816aba0ecc967af2feeb32c4393ddd671cba"}, - {file = "Pillow-8.3.1-cp37-cp37m-win_amd64.whl", hash = "sha256:a4eef1ff2d62676deabf076f963eda4da34b51bc0517c70239fafed1d5b51500"}, - {file = "Pillow-8.3.1-cp38-cp38-macosx_10_10_x86_64.whl", hash = "sha256:660a87085925c61a0dcc80efb967512ac34dbb256ff7dd2b9b4ee8dbdab58cf4"}, - {file = "Pillow-8.3.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:15a2808e269a1cf2131930183dcc0419bc77bb73eb54285dde2706ac9939fa8e"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:969cc558cca859cadf24f890fc009e1bce7d7d0386ba7c0478641a60199adf79"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:2ee77c14a0299d0541d26f3d8500bb57e081233e3fa915fa35abd02c51fa7fae"}, - {file = "Pillow-8.3.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:c11003197f908878164f0e6da15fce22373ac3fc320cda8c9d16e6bba105b844"}, - {file = "Pillow-8.3.1-cp38-cp38-win32.whl", hash = "sha256:3f08bd8d785204149b5b33e3b5f0ebbfe2190ea58d1a051c578e29e39bfd2367"}, - {file = "Pillow-8.3.1-cp38-cp38-win_amd64.whl", hash = "sha256:70af7d222df0ff81a2da601fab42decb009dc721545ed78549cb96e3a1c5f0c8"}, - {file = "Pillow-8.3.1-cp39-cp39-macosx_10_10_x86_64.whl", hash = "sha256:37730f6e68bdc6a3f02d2079c34c532330d206429f3cee651aab6b66839a9f0e"}, - {file = "Pillow-8.3.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:4bc3c7ef940eeb200ca65bd83005eb3aae8083d47e8fcbf5f0943baa50726856"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c35d09db702f4185ba22bb33ef1751ad49c266534339a5cebeb5159d364f6f82"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:0b2efa07f69dc395d95bb9ef3299f4ca29bcb2157dc615bae0b42c3c20668ffc"}, - {file = "Pillow-8.3.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:cc866706d56bd3a7dbf8bac8660c6f6462f2f2b8a49add2ba617bc0c54473d83"}, - {file = "Pillow-8.3.1-cp39-cp39-win32.whl", hash = "sha256:9a211b663cf2314edbdb4cf897beeb5c9ee3810d1d53f0e423f06d6ebbf9cd5d"}, - {file = "Pillow-8.3.1-cp39-cp39-win_amd64.whl", hash = "sha256:c2a5ff58751670292b406b9f06e07ed1446a4b13ffced6b6cab75b857485cbc8"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-macosx_10_10_x86_64.whl", hash = "sha256:c379425c2707078dfb6bfad2430728831d399dc95a7deeb92015eb4c92345eaf"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:114f816e4f73f9ec06997b2fde81a92cbf0777c9e8f462005550eed6bae57e63"}, - {file = "Pillow-8.3.1-pp36-pypy36_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:8960a8a9f4598974e4c2aeb1bff9bdd5db03ee65fd1fce8adf3223721aa2a636"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-macosx_10_10_x86_64.whl", hash = "sha256:147bd9e71fb9dcf08357b4d530b5167941e222a6fd21f869c7911bac40b9994d"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:1fd5066cd343b5db88c048d971994e56b296868766e461b82fa4e22498f34d77"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:f4ebde71785f8bceb39dcd1e7f06bcc5d5c3cf48b9f69ab52636309387b097c8"}, - {file = "Pillow-8.3.1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:1c03e24be975e2afe70dfc5da6f187eea0b49a68bb2b69db0f30a61b7031cee4"}, - {file = "Pillow-8.3.1.tar.gz", hash = "sha256:2cac53839bfc5cece8fdbe7f084d5e3ee61e1303cccc86511d351adcb9e2c792"}, -] -purplship = [ - {file = "purplship-2021.6.2-py3-none-any.whl", hash = "sha256:ded793b23664a14649f3c08ebbd344f6b58fbbc982d69481242478074ea74ff1"}, -] -py-soap = [ - {file = "py_soap-2020.3.2-py3-none-any.whl", hash = "sha256:61e2ec956d349bdd9d4c6248a2ae3c4cc4b0a2a5cf6b439b6de480a3bc2766a1"}, -] -six = [ - {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"}, - {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"}, -] -xmltodict = [ - {file = "xmltodict-0.12.0-py2.py3-none-any.whl", hash = "sha256:8bbcb45cc982f48b2ca8fe7e7827c5d792f217ecf1792626f808bf41c3b86051"}, - {file = "xmltodict-0.12.0.tar.gz", hash = "sha256:50d8c638ed7ecb88d90561beedbf720c9b4e851a9fa6c47ebd64e99d166d8a21"}, -] diff --git a/sdk/extensions/yunexpress/pyproject.toml b/sdk/extensions/yunexpress/pyproject.toml index 4efd4d7c80..df90eca12c 100644 --- a/sdk/extensions/yunexpress/pyproject.toml +++ b/sdk/extensions/yunexpress/pyproject.toml @@ -1,11 +1,11 @@ [tool.poetry] name = "purplship.yunexpress" version = "2021.10" -homepage="https://docs.purplship.com" +homepage="https://next.purplship.com/docs/guides/sdk" repository="https://github.com/purplship/purplship" description = "Purplship - Yunexpress Shipping Extension" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [{ include = "purplship" }] classifiers=[ diff --git a/sdk/poetry.lock b/sdk/poetry.lock deleted file mode 100644 index 8cc428eaac..0000000000 --- a/sdk/poetry.lock +++ /dev/null @@ -1,880 +0,0 @@ -[[package]] -name = "attrs" -version = "21.2.0" -description = "Classes Without Boilerplate" -category = "dev" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" - -[package.extras] -dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit"] -docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"] -tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface"] -tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins"] - -[[package]] -name = "carrier.aramex" -version = "2021.2" -description = "Purolator Web API Schemas Python Data Types library" -category = "dev" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "carrier.australiapost" -version = "2021.2.1" -description = "Australia Post API Schemas Python Data Types library" -category = "dev" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -jstruct = "*" - -[[package]] -name = "carrier.boxknight" -version = "2020.11.2" -description = "Boxknight API Schemas Python Data Types library" -category = "dev" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -jstruct = "*" - -[[package]] -name = "carrier.canadapost" -version = "2021.7" -description = "Canada Post API Schemas Python Data Types library" -category = "dev" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "carrier.canpar" -version = "2021.2" -description = "Canpar Web API Schemas Python Data Types library" -category = "dev" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "carrier.dhl-express" -version = "2021.4" -description = "DHL Express Web API Schemas Python Data Types library" -category = "dev" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "carrier.dhl-universal" -version = "2021.2.1" -description = "DHL eCommerce API Schemas Python Data Types library" -category = "dev" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -jstruct = "*" - -[[package]] -name = "carrier.dicom" -version = "2021.2.1" -description = "Dicom Web API Schemas Python Data Types library" -category = "dev" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -jstruct = "*" - -[[package]] -name = "carrier.fedex" -version = "2021.4" -description = "FedEx Web API Schemas Python Data Types library" -category = "dev" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "carrier.purolator" -version = "2020.4.1" -description = "Purolator Web API Schemas Python Data Types library" -category = "dev" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "carrier.royalmail" -version = "2021.2.1" -description = "Australia Post API Schemas Python Data Types library" -category = "dev" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -jstruct = "*" - -[[package]] -name = "carrier.sendle" -version = "2021.2.1" -description = "Sendle API Schemas Python Data Types library" -category = "dev" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -jstruct = "*" - -[[package]] -name = "carrier.sf-express" -version = "2021.2" -description = "Purolator Web API Schemas Python Data Types library" -category = "dev" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "carrier.tnt" -version = "2021.3" -description = "TNT Web API Schemas Python Data Types library" -category = "dev" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "carrier.ups" -version = "2020.3.1" -description = "UPS Web API Schemas Python Data Types library" -category = "dev" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "carrier.usps" -version = "2021.6" -description = "USPS Web API Schemas Python Data Types library" -category = "dev" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "carrier.yanwen" -version = "2021.2.1" -description = "DHL eCommerce API Schemas Python Data Types library" -category = "dev" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -jstruct = "*" - -[[package]] -name = "carrier.yunexpress" -version = "2021.2.1" -description = "Purolator Web API Schemas Python Data Types library" -category = "dev" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -jstruct = "*" - -[[package]] -name = "jstruct" -version = "2021.7.1" -description = "Readable serializable and deserializable Python nested models" -category = "dev" -optional = false -python-versions = "*" - -[package.dependencies] -attrs = "*" - -[[package]] -name = "lxml" -version = "4.6.3" -description = "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API." -category = "dev" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*" - -[package.extras] -cssselect = ["cssselect (>=0.7)"] -html5 = ["html5lib"] -htmlsoup = ["beautifulsoup4"] -source = ["Cython (>=0.29.7)"] - -[[package]] -name = "lxml-stubs" -version = "0.1.1" -description = "Type annotations for the lxml package" -category = "dev" -optional = false -python-versions = "*" - -[package.extras] -test = ["pytest (>=6.0.0)", "pytest-mypy-plugins (==1.4.0)", "coverage[toml] (==5.2)"] - -[[package]] -name = "phonenumbers" -version = "8.12.35" -description = "Python version of Google's common library for parsing, formatting, storing and validating international phone numbers." -category = "dev" -optional = false -python-versions = "*" - -[[package]] -name = "pillow" -version = "8.4.0" -description = "Python Imaging Library (Fork)" -category = "dev" -optional = false -python-versions = ">=3.6" - -[[package]] -name = "purplship" -version = "2021.8" -description = "Multi-carrier shipping API integration with python" -category = "dev" -optional = false -python-versions = "^3.7" -develop = true - -[package.dependencies] -jstruct = "^2021.7.1" -lxml = "^4.6.2" -lxml-stubs = "^0.1.1" -phonenumbers = "^8.12.17" -Pillow = "^8.1.0" -py-soap = "^2020.3.2" -xmltodict = "^0.12.0" - -[package.source] -type = "directory" -url = "core" - -[[package]] -name = "purplship.aramex" -version = "2021.10" -description = "Purplship - Aramex Shipping Extension" -category = "dev" -optional = false -python-versions = "^3.7" -develop = true - -[package.dependencies] -"carrier.aramex" = "" -purplship = "^2021.6" - -[package.source] -type = "directory" -url = "extensions/aramex" - -[[package]] -name = "purplship.australiapost" -version = "2021.10" -description = "Purplship - Australia Post Shipping Extension" -category = "dev" -optional = false -python-versions = "^3.7" -develop = true - -[package.dependencies] -"carrier.australiapost" = "" -purplship = "^2021.6" - -[package.source] -type = "directory" -url = "extensions/australiapost" - -[[package]] -name = "purplship.boxknight" -version = "2021.10" -description = "Purplship - Boxknight Shipping Extension" -category = "dev" -optional = false -python-versions = "^3.7" -develop = true - -[package.dependencies] -"carrier.boxknight" = "" -purplship = "^2021.6" - -[package.source] -type = "directory" -url = "extensions/boxknight" - -[[package]] -name = "purplship.canadapost" -version = "2021.10" -description = "Purplship - Canada Post Shipping Extension" -category = "dev" -optional = false -python-versions = "^3.7" -develop = true - -[package.dependencies] -"carrier.canadapost" = "" -purplship = "" - -[package.source] -type = "directory" -url = "extensions/canadapost" - -[[package]] -name = "purplship.canpar" -version = "2021.10" -description = "Purplship - Canpar Shipping Extension" -category = "dev" -optional = false -python-versions = "^3.7" -develop = true - -[package.dependencies] -"carrier.canpar" = "" -purplship = "^2021.6" - -[package.source] -type = "directory" -url = "extensions/canpar" - -[[package]] -name = "purplship.dhl-express" -version = "2021.10" -description = "Purplship - DHL Express Shipping Extension" -category = "dev" -optional = false -python-versions = "^3.7" -develop = true - -[package.dependencies] -"carrier.dhl_express" = "" -purplship = "^2021.6" - -[package.source] -type = "directory" -url = "extensions/dhl_express" - -[[package]] -name = "purplship.dhl-universal" -version = "2021.10" -description = "Purplship - DHL Universal Tracking Extension" -category = "dev" -optional = false -python-versions = "^3.7" -develop = true - -[package.dependencies] -"carrier.dhl_universal" = "" -purplship = "^2021.6" - -[package.source] -type = "directory" -url = "extensions/dhl_universal" - -[[package]] -name = "purplship.dicom" -version = "2021.10" -description = "Purplship - Dicom Shipping Extension" -category = "dev" -optional = false -python-versions = "^3.7" -develop = true - -[package.dependencies] -"carrier.dicom" = "" -purplship = "^2021.6" - -[package.source] -type = "directory" -url = "extensions/dicom" - -[[package]] -name = "purplship.eshipper" -version = "2021.10" -description = "eShipper purplship extension" -category = "dev" -optional = false -python-versions = "^3.7" -develop = true - -[package.dependencies] -purplship = "" - -[package.source] -type = "directory" -url = "vendors/eshipper" - -[[package]] -name = "purplship.fedex" -version = "2021.10" -description = "Purplship - Fedex Shipping Extension" -category = "dev" -optional = false -python-versions = "^3.7" -develop = true - -[package.dependencies] -"carrier.fedex" = "" -purplship = "^2021.6" - -[package.source] -type = "directory" -url = "extensions/fedex" - -[[package]] -name = "purplship.freightcom" -version = "2021.10" -description = "Freightcom purplship extension" -category = "dev" -optional = false -python-versions = "^3.7" -develop = true - -[package.dependencies] -purplship = "" - -[package.source] -type = "directory" -url = "vendors/freightcom" - -[[package]] -name = "purplship.purolator" -version = "2021.10" -description = "Purplship - Purolator Shipping Extension" -category = "dev" -optional = false -python-versions = "^3.7" -develop = true - -[package.dependencies] -"carrier.purolator" = "" -purplship = "^2021.6" - -[package.source] -type = "directory" -url = "extensions/purolator" - -[[package]] -name = "purplship.royalmail" -version = "2021.10" -description = "Purplship - Royal Mail Shipping Extension" -category = "dev" -optional = false -python-versions = "^3.7" -develop = true - -[package.dependencies] -"carrier.royalmail" = "" -purplship = "^2021.6" - -[package.source] -type = "directory" -url = "extensions/royalmail" - -[[package]] -name = "purplship.sendle" -version = "2021.10" -description = "Purplship - Sendle Shipping Extension" -category = "dev" -optional = false -python-versions = "^3.7" -develop = true - -[package.dependencies] -"carrier.sendle" = "" -purplship = "^2021.6" - -[package.source] -type = "directory" -url = "extensions/sendle" - -[[package]] -name = "purplship.sf-express" -version = "2021.10" -description = "Purplship - SF-Express Shipping Extension" -category = "dev" -optional = false -python-versions = "^3.7" -develop = true - -[package.dependencies] -"carrier.sf_express" = "" -purplship = "^2021.6" - -[package.source] -type = "directory" -url = "extensions/sf_express" - -[[package]] -name = "purplship.tnt" -version = "2021.10" -description = "Purplship - TNT Shipping Extension" -category = "dev" -optional = false -python-versions = "^3.7" -develop = true - -[package.dependencies] -"carrier.tnt" = "" -purplship = "^2021.6" - -[package.source] -type = "directory" -url = "extensions/tnt" - -[[package]] -name = "purplship.ups" -version = "2021.10" -description = "Purplship - UPS Shipping Extension" -category = "dev" -optional = false -python-versions = "^3.7" -develop = true - -[package.dependencies] -"carrier.ups" = "" -purplship = "^2021.6" - -[package.source] -type = "directory" -url = "extensions/ups" - -[[package]] -name = "purplship.usps" -version = "2021.10" -description = "Purplship - USPS Shipping Extension" -category = "dev" -optional = false -python-versions = "^3.7" -develop = true - -[package.dependencies] -"carrier.usps" = "" -purplship = "^2021.6" - -[package.source] -type = "directory" -url = "extensions/usps" - -[[package]] -name = "purplship.usps-international" -version = "2021.10" -description = "Purplship - USPS International Shipping Extension" -category = "dev" -optional = false -python-versions = "^3.7" -develop = true - -[package.dependencies] -"carrier.usps" = "" -purplship = "^2021.6" - -[package.source] -type = "directory" -url = "extensions/usps_international" - -[[package]] -name = "purplship.yanwen" -version = "2021.10" -description = "Purplship - Yanwen Shipping Extension" -category = "dev" -optional = false -python-versions = "^3.7" -develop = true - -[package.dependencies] -"carrier.yanwen" = "" -purplship = "^2021.6" - -[package.source] -type = "directory" -url = "extensions/yanwen" - -[[package]] -name = "purplship.yunexpress" -version = "2021.10" -description = "Purplship - Yunexpress Shipping Extension" -category = "dev" -optional = false -python-versions = "^3.7" -develop = true - -[package.dependencies] -"carrier.yunexpress" = "" -purplship = "^2021.6" - -[package.source] -type = "directory" -url = "extensions/yunexpress" - -[[package]] -name = "py-soap" -version = "2020.3.2" -description = "SOAP Schemas Python Data Types library" -category = "dev" -optional = false -python-versions = ">=3.6,<4.0" - -[package.dependencies] -lxml = ">=4.6.2,<5.0.0" -six = ">=1.15.0,<2.0.0" - -[[package]] -name = "six" -version = "1.16.0" -description = "Python 2 and 3 compatibility utilities" -category = "dev" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" - -[[package]] -name = "xmltodict" -version = "0.12.0" -description = "Makes working with XML feel like you are working with JSON" -category = "dev" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" - -[metadata] -lock-version = "1.1" -python-versions = "^3.7" -content-hash = "c7e5b8a9b70a8a63a2ecc31102bb69e81aef8bbd1cd6bc0d47a5d2012a3b1079" - -[metadata.files] -attrs = [ - {file = "attrs-21.2.0-py2.py3-none-any.whl", hash = "sha256:149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1"}, - {file = "attrs-21.2.0.tar.gz", hash = "sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"}, -] -"carrier.aramex" = [ - {file = "carrier.aramex-2021.2-py3-none-any.whl", hash = "sha256:d62edc7ff9e9d8cde6d1d60373c6c2f726cd622da6c50845e5f787e0bbf145a4"}, -] -"carrier.australiapost" = [ - {file = "carrier.australiapost-2021.2.1-py3-none-any.whl", hash = "sha256:2bb030a46c07636a041ea8a57f64a17674fe0c0cc8eb6ebff56e03faa0322730"}, -] -"carrier.boxknight" = [ - {file = "carrier.boxknight-2020.11.2-py3-none-any.whl", hash = "sha256:e6d99a06d98d624a21333d798c2ae681be1d1f29589111e5db9ed2fbde28b63a"}, -] -"carrier.canadapost" = [ - {file = "carrier.canadapost-2021.7-py3-none-any.whl", hash = "sha256:c81849b7ea8bbf13702c94e09b5aa93d869327f2c439377f186e32c142c17d77"}, -] -"carrier.canpar" = [ - {file = "carrier.canpar-2021.2-py3-none-any.whl", hash = "sha256:51b366a8abf7f02e45b95ee01f4bfc8296a46545c45480c9696819816d5c5927"}, -] -"carrier.dhl-express" = [ - {file = "carrier.dhl_express-2021.4-py3-none-any.whl", hash = "sha256:23fd7cd2e6658e2a77f49ddf8887624b3b6fc97fbe48d8bfce3139760d5fa36a"}, -] -"carrier.dhl-universal" = [ - {file = "carrier.dhl_universal-2021.2.1-py3-none-any.whl", hash = "sha256:4e78518ca280fd6a4a99a2ac17f038f4b2735388c949312c9d1c5e814f9db191"}, -] -"carrier.dicom" = [ - {file = "carrier.dicom-2021.2.1-py3-none-any.whl", hash = "sha256:f118f850aa526dd321f0c8f8a6801848fb0c9d4bb753688bf939dc7b931fd533"}, -] -"carrier.fedex" = [ - {file = "carrier.fedex-2021.4-py3-none-any.whl", hash = "sha256:9894a1bc5dc7bf81ff73202b881c1bc18eea347af37c6c42a1462284dee1999e"}, -] -"carrier.purolator" = [ - {file = "carrier.purolator-2020.4.1-py3-none-any.whl", hash = "sha256:9571870e3a47d5aba483a3a5db6dc6fa6135918b26b6878d989943652137b93b"}, -] -"carrier.royalmail" = [ - {file = "carrier.royalmail-2021.2.1-py3-none-any.whl", hash = "sha256:89227b38f82f3fab0b797702a8c1489302f5d4fae6303d7c2b08748239d3bca8"}, -] -"carrier.sendle" = [ - {file = "carrier.sendle-2021.2.1-py3-none-any.whl", hash = "sha256:9892fc9a1d306d85a6c6899417f8d1a3502b2d303762fc8300cbbe478a23bec4"}, -] -"carrier.sf-express" = [ - {file = "carrier.sf_express-2021.2-py3-none-any.whl", hash = "sha256:3fa0115d80d0fee7e6ccc5e7b1a1779898fa006c2fb5af52a7b91c9857111187"}, -] -"carrier.tnt" = [ - {file = "carrier.tnt-2021.3-py3-none-any.whl", hash = "sha256:90bb31bc3b400a62e32862b13060f2693c22b4f7c90726b8c3f37fed368ed591"}, -] -"carrier.ups" = [ - {file = "carrier.ups-2020.3.1-py3-none-any.whl", hash = "sha256:0f2346fe7360f4e91f8c6215404b8eabd1f8d57dbac8fcb87410c5cdcbd08f15"}, -] -"carrier.usps" = [ - {file = "carrier.usps-2021.6-py3-none-any.whl", hash = "sha256:3db8bb9d7ebd30ad7b4de01af71ed66b6088b63ea314729e4a2a2215f1864dfb"}, -] -"carrier.yanwen" = [ - {file = "carrier.yanwen-2021.2.1-py3-none-any.whl", hash = "sha256:78ebf2e40f0dd5de66b7fda6fb8ec705b292db46f1d3923cbf2ce642139ea361"}, -] -"carrier.yunexpress" = [ - {file = "carrier.yunexpress-2021.2.1-py3-none-any.whl", hash = "sha256:d385b947e1ce9c59f69f5df31f2a58e5a83c6e79eb3b1e372302a0bb42faa014"}, -] -jstruct = [ - {file = "jstruct-2021.7.1-py3-none-any.whl", hash = "sha256:3711294897334e51bc5a706231896018d474a8e458f879cc493eac9cdc6365c3"}, -] -lxml = [ - {file = "lxml-4.6.3-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:df7c53783a46febb0e70f6b05df2ba104610f2fb0d27023409734a3ecbb78fb2"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:1b7584d421d254ab86d4f0b13ec662a9014397678a7c4265a02a6d7c2b18a75f"}, - {file = "lxml-4.6.3-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:079f3ae844f38982d156efce585bc540c16a926d4436712cf4baee0cce487a3d"}, - {file = "lxml-4.6.3-cp27-cp27m-win32.whl", hash = "sha256:bc4313cbeb0e7a416a488d72f9680fffffc645f8a838bd2193809881c67dd106"}, - {file = "lxml-4.6.3-cp27-cp27m-win_amd64.whl", hash = "sha256:8157dadbb09a34a6bd95a50690595e1fa0af1a99445e2744110e3dca7831c4ee"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:7728e05c35412ba36d3e9795ae8995e3c86958179c9770e65558ec3fdfd3724f"}, - {file = "lxml-4.6.3-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:4bff24dfeea62f2e56f5bab929b4428ae6caba2d1eea0c2d6eb618e30a71e6d4"}, - {file = "lxml-4.6.3-cp310-cp310-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_24_i686.whl", hash = "sha256:64812391546a18896adaa86c77c59a4998f33c24788cadc35789e55b727a37f4"}, - {file = "lxml-4.6.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl", hash = "sha256:c1a40c06fd5ba37ad39caa0b3144eb3772e813b5fb5b084198a985431c2f1e8d"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:74f7d8d439b18fa4c385f3f5dfd11144bb87c1da034a466c5b5577d23a1d9b51"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:f90ba11136bfdd25cae3951af8da2e95121c9b9b93727b1b896e3fa105b2f586"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux2010_i686.whl", hash = "sha256:4c61b3a0db43a1607d6264166b230438f85bfed02e8cff20c22e564d0faff354"}, - {file = "lxml-4.6.3-cp35-cp35m-manylinux2014_x86_64.whl", hash = "sha256:5c8c163396cc0df3fd151b927e74f6e4acd67160d6c33304e805b84293351d16"}, - {file = "lxml-4.6.3-cp35-cp35m-win32.whl", hash = "sha256:f2380a6376dfa090227b663f9678150ef27543483055cc327555fb592c5967e2"}, - {file = "lxml-4.6.3-cp35-cp35m-win_amd64.whl", hash = "sha256:c4f05c5a7c49d2fb70223d0d5bcfbe474cf928310ac9fa6a7c6dddc831d0b1d4"}, - {file = "lxml-4.6.3-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:d2e35d7bf1c1ac8c538f88d26b396e73dd81440d59c1ef8522e1ea77b345ede4"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:289e9ca1a9287f08daaf796d96e06cb2bc2958891d7911ac7cae1c5f9e1e0ee3"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:bccbfc27563652de7dc9bdc595cb25e90b59c5f8e23e806ed0fd623755b6565d"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux2010_i686.whl", hash = "sha256:d916d31fd85b2f78c76400d625076d9124de3e4bda8b016d25a050cc7d603f24"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:820628b7b3135403540202e60551e741f9b6d3304371712521be939470b454ec"}, - {file = "lxml-4.6.3-cp36-cp36m-manylinux2014_x86_64.whl", hash = "sha256:c47ff7e0a36d4efac9fd692cfa33fbd0636674c102e9e8d9b26e1b93a94e7617"}, - {file = "lxml-4.6.3-cp36-cp36m-win32.whl", hash = "sha256:5a0a14e264069c03e46f926be0d8919f4105c1623d620e7ec0e612a2e9bf1c04"}, - {file = "lxml-4.6.3-cp36-cp36m-win_amd64.whl", hash = "sha256:92e821e43ad382332eade6812e298dc9701c75fe289f2a2d39c7960b43d1e92a"}, - {file = "lxml-4.6.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:efd7a09678fd8b53117f6bae4fa3825e0a22b03ef0a932e070c0bdbb3a35e654"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:efac139c3f0bf4f0939f9375af4b02c5ad83a622de52d6dfa8e438e8e01d0eb0"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:0fbcf5565ac01dff87cbfc0ff323515c823081c5777a9fc7703ff58388c258c3"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux2010_i686.whl", hash = "sha256:36108c73739985979bf302006527cf8a20515ce444ba916281d1c43938b8bb96"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:122fba10466c7bd4178b07dba427aa516286b846b2cbd6f6169141917283aae2"}, - {file = "lxml-4.6.3-cp37-cp37m-manylinux2014_x86_64.whl", hash = "sha256:cdaf11d2bd275bf391b5308f86731e5194a21af45fbaaaf1d9e8147b9160ea92"}, - {file = "lxml-4.6.3-cp37-cp37m-win32.whl", hash = "sha256:3439c71103ef0e904ea0a1901611863e51f50b5cd5e8654a151740fde5e1cade"}, - {file = "lxml-4.6.3-cp37-cp37m-win_amd64.whl", hash = "sha256:4289728b5e2000a4ad4ab8da6e1db2e093c63c08bdc0414799ee776a3f78da4b"}, - {file = "lxml-4.6.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:b007cbb845b28db4fb8b6a5cdcbf65bacb16a8bd328b53cbc0698688a68e1caa"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_i686.whl", hash = "sha256:76fa7b1362d19f8fbd3e75fe2fb7c79359b0af8747e6f7141c338f0bee2f871a"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:26e761ab5b07adf5f555ee82fb4bfc35bf93750499c6c7614bd64d12aaa67927"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux2010_i686.whl", hash = "sha256:e1cbd3f19a61e27e011e02f9600837b921ac661f0c40560eefb366e4e4fb275e"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:66e575c62792c3f9ca47cb8b6fab9e35bab91360c783d1606f758761810c9791"}, - {file = "lxml-4.6.3-cp38-cp38-manylinux2014_x86_64.whl", hash = "sha256:1b38116b6e628118dea5b2186ee6820ab138dbb1e24a13e478490c7db2f326ae"}, - {file = "lxml-4.6.3-cp38-cp38-win32.whl", hash = "sha256:89b8b22a5ff72d89d48d0e62abb14340d9e99fd637d046c27b8b257a01ffbe28"}, - {file = "lxml-4.6.3-cp38-cp38-win_amd64.whl", hash = "sha256:2a9d50e69aac3ebee695424f7dbd7b8c6d6eb7de2a2eb6b0f6c7db6aa41e02b7"}, - {file = "lxml-4.6.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:ce256aaa50f6cc9a649c51be3cd4ff142d67295bfc4f490c9134d0f9f6d58ef0"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_i686.whl", hash = "sha256:7610b8c31688f0b1be0ef882889817939490a36d0ee880ea562a4e1399c447a1"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:f8380c03e45cf09f8557bdaa41e1fa7c81f3ae22828e1db470ab2a6c96d8bc23"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux2010_i686.whl", hash = "sha256:3082c518be8e97324390614dacd041bb1358c882d77108ca1957ba47738d9d59"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:884ab9b29feaca361f7f88d811b1eea9bfca36cf3da27768d28ad45c3ee6f969"}, - {file = "lxml-4.6.3-cp39-cp39-manylinux2014_x86_64.whl", hash = "sha256:6f12e1427285008fd32a6025e38e977d44d6382cf28e7201ed10d6c1698d2a9a"}, - {file = "lxml-4.6.3-cp39-cp39-win32.whl", hash = "sha256:33bb934a044cf32157c12bfcfbb6649807da20aa92c062ef51903415c704704f"}, - {file = "lxml-4.6.3-cp39-cp39-win_amd64.whl", hash = "sha256:542d454665a3e277f76954418124d67516c5f88e51a900365ed54a9806122b83"}, - {file = "lxml-4.6.3.tar.gz", hash = "sha256:39b78571b3b30645ac77b95f7c69d1bffc4cf8c3b157c435a34da72e78c82468"}, -] -lxml-stubs = [ - {file = "lxml-stubs-0.1.1.tar.gz", hash = "sha256:9b6a01ba4bccd6e532c01e19d2a3bc6d1d018fa0b9870236f61f315cb7b06648"}, - {file = "lxml_stubs-0.1.1-py3-none-any.whl", hash = "sha256:d34a28be0e2525b0236aff7fe67af1f61911f556cadbc61f09810b69f762b747"}, -] -phonenumbers = [ - {file = "phonenumbers-8.12.35-py2.py3-none-any.whl", hash = "sha256:16c8f6d682ab5be550af2f4a2f81f0a90c8743e37babc7465edcefc106d0a1eb"}, - {file = "phonenumbers-8.12.35.tar.gz", hash = "sha256:f426d419aabf6366c27ef1193918cc55217ef0e8be8f09cbf0667131037ca229"}, -] -pillow = [ - {file = "Pillow-8.4.0-cp310-cp310-macosx_10_10_universal2.whl", hash = "sha256:81f8d5c81e483a9442d72d182e1fb6dcb9723f289a57e8030811bac9ea3fef8d"}, - {file = "Pillow-8.4.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:3f97cfb1e5a392d75dd8b9fd274d205404729923840ca94ca45a0af57e13dbe6"}, - {file = "Pillow-8.4.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:eb9fc393f3c61f9054e1ed26e6fe912c7321af2f41ff49d3f83d05bacf22cc78"}, - {file = "Pillow-8.4.0-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d82cdb63100ef5eedb8391732375e6d05993b765f72cb34311fab92103314649"}, - {file = "Pillow-8.4.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:62cc1afda735a8d109007164714e73771b499768b9bb5afcbbee9d0ff374b43f"}, - {file = "Pillow-8.4.0-cp310-cp310-win32.whl", hash = "sha256:e3dacecfbeec9a33e932f00c6cd7996e62f53ad46fbe677577394aaa90ee419a"}, - {file = "Pillow-8.4.0-cp310-cp310-win_amd64.whl", hash = "sha256:620582db2a85b2df5f8a82ddeb52116560d7e5e6b055095f04ad828d1b0baa39"}, - {file = "Pillow-8.4.0-cp36-cp36m-macosx_10_10_x86_64.whl", hash = "sha256:1bc723b434fbc4ab50bb68e11e93ce5fb69866ad621e3c2c9bdb0cd70e345f55"}, - {file = "Pillow-8.4.0-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:72cbcfd54df6caf85cc35264c77ede902452d6df41166010262374155947460c"}, - {file = "Pillow-8.4.0-cp36-cp36m-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:70ad9e5c6cb9b8487280a02c0ad8a51581dcbbe8484ce058477692a27c151c0a"}, - {file = "Pillow-8.4.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:25a49dc2e2f74e65efaa32b153527fc5ac98508d502fa46e74fa4fd678ed6645"}, - {file = "Pillow-8.4.0-cp36-cp36m-win32.whl", hash = "sha256:93ce9e955cc95959df98505e4608ad98281fff037350d8c2671c9aa86bcf10a9"}, - {file = "Pillow-8.4.0-cp36-cp36m-win_amd64.whl", hash = "sha256:2e4440b8f00f504ee4b53fe30f4e381aae30b0568193be305256b1462216feff"}, - {file = "Pillow-8.4.0-cp37-cp37m-macosx_10_10_x86_64.whl", hash = "sha256:8c803ac3c28bbc53763e6825746f05cc407b20e4a69d0122e526a582e3b5e153"}, - {file = "Pillow-8.4.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c8a17b5d948f4ceeceb66384727dde11b240736fddeda54ca740b9b8b1556b29"}, - {file = "Pillow-8.4.0-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1394a6ad5abc838c5cd8a92c5a07535648cdf6d09e8e2d6df916dfa9ea86ead8"}, - {file = "Pillow-8.4.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:792e5c12376594bfcb986ebf3855aa4b7c225754e9a9521298e460e92fb4a488"}, - {file = "Pillow-8.4.0-cp37-cp37m-win32.whl", hash = "sha256:d99ec152570e4196772e7a8e4ba5320d2d27bf22fdf11743dd882936ed64305b"}, - {file = "Pillow-8.4.0-cp37-cp37m-win_amd64.whl", hash = "sha256:7b7017b61bbcdd7f6363aeceb881e23c46583739cb69a3ab39cb384f6ec82e5b"}, - {file = "Pillow-8.4.0-cp38-cp38-macosx_10_10_x86_64.whl", hash = "sha256:d89363f02658e253dbd171f7c3716a5d340a24ee82d38aab9183f7fdf0cdca49"}, - {file = "Pillow-8.4.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:0a0956fdc5defc34462bb1c765ee88d933239f9a94bc37d132004775241a7585"}, - {file = "Pillow-8.4.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5b7bb9de00197fb4261825c15551adf7605cf14a80badf1761d61e59da347779"}, - {file = "Pillow-8.4.0-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:72b9e656e340447f827885b8d7a15fc8c4e68d410dc2297ef6787eec0f0ea409"}, - {file = "Pillow-8.4.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a5a4532a12314149d8b4e4ad8ff09dde7427731fcfa5917ff16d0291f13609df"}, - {file = "Pillow-8.4.0-cp38-cp38-win32.whl", hash = "sha256:82aafa8d5eb68c8463b6e9baeb4f19043bb31fefc03eb7b216b51e6a9981ae09"}, - {file = "Pillow-8.4.0-cp38-cp38-win_amd64.whl", hash = "sha256:066f3999cb3b070a95c3652712cffa1a748cd02d60ad7b4e485c3748a04d9d76"}, - {file = "Pillow-8.4.0-cp39-cp39-macosx_10_10_x86_64.whl", hash = "sha256:5503c86916d27c2e101b7f71c2ae2cddba01a2cf55b8395b0255fd33fa4d1f1a"}, - {file = "Pillow-8.4.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:4acc0985ddf39d1bc969a9220b51d94ed51695d455c228d8ac29fcdb25810e6e"}, - {file = "Pillow-8.4.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0b052a619a8bfcf26bd8b3f48f45283f9e977890263e4571f2393ed8898d331b"}, - {file = "Pillow-8.4.0-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:493cb4e415f44cd601fcec11c99836f707bb714ab03f5ed46ac25713baf0ff20"}, - {file = "Pillow-8.4.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b8831cb7332eda5dc89b21a7bce7ef6ad305548820595033a4b03cf3091235ed"}, - {file = "Pillow-8.4.0-cp39-cp39-win32.whl", hash = "sha256:5e9ac5f66616b87d4da618a20ab0a38324dbe88d8a39b55be8964eb520021e02"}, - {file = "Pillow-8.4.0-cp39-cp39-win_amd64.whl", hash = "sha256:3eb1ce5f65908556c2d8685a8f0a6e989d887ec4057326f6c22b24e8a172c66b"}, - {file = "Pillow-8.4.0-pp36-pypy36_pp73-macosx_10_10_x86_64.whl", hash = "sha256:ddc4d832a0f0b4c52fff973a0d44b6c99839a9d016fe4e6a1cb8f3eea96479c2"}, - {file = "Pillow-8.4.0-pp36-pypy36_pp73-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9a3e5ddc44c14042f0844b8cf7d2cd455f6cc80fd7f5eefbe657292cf601d9ad"}, - {file = "Pillow-8.4.0-pp36-pypy36_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c70e94281588ef053ae8998039610dbd71bc509e4acbc77ab59d7d2937b10698"}, - {file = "Pillow-8.4.0-pp37-pypy37_pp73-macosx_10_10_x86_64.whl", hash = "sha256:3862b7256046fcd950618ed22d1d60b842e3a40a48236a5498746f21189afbbc"}, - {file = "Pillow-8.4.0-pp37-pypy37_pp73-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a4901622493f88b1a29bd30ec1a2f683782e57c3c16a2dbc7f2595ba01f639df"}, - {file = "Pillow-8.4.0-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:84c471a734240653a0ec91dec0996696eea227eafe72a33bd06c92697728046b"}, - {file = "Pillow-8.4.0-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:244cf3b97802c34c41905d22810846802a3329ddcb93ccc432870243211c79fc"}, - {file = "Pillow-8.4.0.tar.gz", hash = "sha256:b8e2f83c56e141920c39464b852de3719dfbfb6e3c99a2d8da0edf4fb33176ed"}, -] -purplship = [] -"purplship.aramex" = [] -"purplship.australiapost" = [] -"purplship.boxknight" = [] -"purplship.canadapost" = [] -"purplship.canpar" = [] -"purplship.dhl-express" = [] -"purplship.dhl-universal" = [] -"purplship.dicom" = [] -"purplship.eshipper" = [] -"purplship.fedex" = [] -"purplship.freightcom" = [] -"purplship.purolator" = [] -"purplship.royalmail" = [] -"purplship.sendle" = [] -"purplship.sf-express" = [] -"purplship.tnt" = [] -"purplship.ups" = [] -"purplship.usps" = [] -"purplship.usps-international" = [] -"purplship.yanwen" = [] -"purplship.yunexpress" = [] -py-soap = [ - {file = "py_soap-2020.3.2-py3-none-any.whl", hash = "sha256:61e2ec956d349bdd9d4c6248a2ae3c4cc4b0a2a5cf6b439b6de480a3bc2766a1"}, -] -six = [ - {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"}, - {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"}, -] -xmltodict = [ - {file = "xmltodict-0.12.0-py2.py3-none-any.whl", hash = "sha256:8bbcb45cc982f48b2ca8fe7e7827c5d792f217ecf1792626f808bf41c3b86051"}, - {file = "xmltodict-0.12.0.tar.gz", hash = "sha256:50d8c638ed7ecb88d90561beedbf720c9b4e851a9fa6c47ebd64e99d166d8a21"}, -] diff --git a/sdk/pyproject.toml b/sdk/pyproject.toml deleted file mode 100644 index f229188a76..0000000000 --- a/sdk/pyproject.toml +++ /dev/null @@ -1,37 +0,0 @@ -[tool.poetry] -name = "purplship.sdk" -version = "0.0.0" -description = "purplship sdk env" -authors = ["Purplship "] -license = "Apache License Version 2.0" - -[tool.poetry.dependencies] -python = "^3.7" - -[tool.poetry.dev-dependencies] -"purplship" = {path = "core", develop = true} -"purplship.aramex" = {path = "extensions/aramex", develop = true} -"purplship.australiapost" = {path = "extensions/australiapost", develop = true} -"purplship.boxknight" = {path = "extensions/boxknight", develop = true} -"purplship.canadapost" = {path = "extensions/canadapost", develop = true} -"purplship.canpar" = {path = "extensions/canpar", develop = true} -"purplship.dhl_express" = {path = "extensions/dhl_express", develop = true} -"purplship.dhl_universal" = {path = "extensions/dhl_universal", develop = true} -"purplship.dicom" = {path = "extensions/dicom", develop = true} -"purplship.fedex" = {path = "extensions/fedex", develop = true} -"purplship.purolator" = {path = "extensions/purolator", develop = true} -"purplship.royalmail" = {path = "extensions/royalmail", develop = true} -"purplship.sendle" = {path = "extensions/sendle", develop = true} -"purplship.sf_express" = {path = "extensions/sf_express", develop = true} -"purplship.tnt" = {path = "extensions/tnt", develop = true} -"purplship.ups" = {path = "extensions/ups", develop = true} -"purplship.usps" = {path = "extensions/usps", develop = true} -"purplship.usps_international" = {path = "extensions/usps_international", develop = true} -"purplship.yanwen" = {path = "extensions/yanwen", develop = true} -"purplship.yunexpress" = {path = "extensions/yunexpress", develop = true} -"purplship.eshipper" = {path = "vendors/eshipper", develop = true} -"purplship.freightcom" = {path = "vendors/freightcom", develop = true} - -[build-system] -requires = ["poetry-core>=1.0.0", "setuptools!=50.0"] -build-backend = "poetry.core.masonry.api" diff --git a/sdk/vendors/eshipper/pyproject.toml b/sdk/vendors/eshipper/pyproject.toml index 15b62cd01e..4c593bdba6 100644 --- a/sdk/vendors/eshipper/pyproject.toml +++ b/sdk/vendors/eshipper/pyproject.toml @@ -5,7 +5,7 @@ homepage="https://github.com/purplship/purplship/tree/main/sdk/vendors/eshipper" repository="https://github.com/purplship/purplship" description = "eShipper purplship extension" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [{ include = "purplship" }, { include = "eshipper_lib" }] classifiers=[ diff --git a/sdk/vendors/freightcom/pyproject.toml b/sdk/vendors/freightcom/pyproject.toml index bebb62c5fd..ed94a00498 100644 --- a/sdk/vendors/freightcom/pyproject.toml +++ b/sdk/vendors/freightcom/pyproject.toml @@ -5,7 +5,7 @@ homepage="https://github.com/purplship/purplship/tree/main/sdk/vendors/freightco repository="https://github.com/purplship/purplship" description = "Freightcom purplship extension" authors = ["Purplship "] -license = "Apache License Version 2.0" +license = "Apache-2.0" readme = "README.md" packages = [{ include = "purplship" }, { include = "freightcom_lib" }] classifiers=[ diff --git a/server/main/purplship/server/VERSION b/server/main/purplship/server/VERSION index cb6c107b40..3f42e86c0b 100644 --- a/server/main/purplship/server/VERSION +++ b/server/main/purplship/server/VERSION @@ -1 +1 @@ -2021.10 +2021.11 diff --git a/server/main/purplship/server/settings/base.py b/server/main/purplship/server/settings/base.py index 6e9b194edb..eb0cb0b6eb 100644 --- a/server/main/purplship/server/settings/base.py +++ b/server/main/purplship/server/settings/base.py @@ -96,11 +96,6 @@ "module": "purplship.server.events", "urls": "purplship.server.events.urls", }, - { - "app": "purplship.server.client", - "module": "purplship.server.client", - "urls": "purplship.server.client.urls", - }, {"app": "purplship.server.pricing", "module": "purplship.server.pricing"}, ] if importlib.util.find_spec(app["module"]) is not None @@ -110,7 +105,20 @@ PURPLSHIP_URLS = [cfg["urls"] for cfg in PURPLSHIP_CONF if "urls" in cfg] MULTI_ORGANIZATIONS = importlib.util.find_spec("purplship.server.orgs") is not None -HAS_EMBEDDED_CLIENT = importlib.util.find_spec("purplship.server.client") is not None + + +# components path settings +BASE_PATH = config("BASE_PATH", default="") +if len(BASE_PATH) > 0 and BASE_PATH.startswith("/"): + BASE_PATH = BASE_PATH[1:] +if len(BASE_PATH) > 0 and not BASE_PATH.endswith("/"): + BASE_PATH = BASE_PATH + "/" + +ROOT_URLCONF = "purplship.server.urls" +LOGOUT_REDIRECT_URL = "/admin/login/" +LOGIN_REDIRECT_URL = "/admin/" +LOGIN_URL = "/admin/login/" +OPEN_API_PATH = "openapi/" BASE_APPS = [ @@ -148,12 +156,6 @@ "django.middleware.clickjacking.XFrameOptionsMiddleware", ] -ROOT_URLCONF = "purplship.server.urls" -LOGOUT_REDIRECT_URL = "/login/" if HAS_EMBEDDED_CLIENT else "/" -LOGIN_REDIRECT_URL = "/" if HAS_EMBEDDED_CLIENT else "/admin/" -LOGIN_URL = "/login/" if HAS_EMBEDDED_CLIENT else "/admin/login/" -OPEN_API_PATH = "openapi/" if HAS_EMBEDDED_CLIENT else "" - TEMPLATES = [ { @@ -179,6 +181,7 @@ # Purplship Middleware # PURPLSHIP_ENTITY_ACCESS_METHOD = 'purplship.server.core.middleware.CreatorAccess' # PURPLSHIP_ENTITY_ACCESS_METHOD = 'purplship.server.core.middleware.WideAccess' +DEFAULT_TRACKERS_UPDATE_INTERVAL = config("TRACKING_PULSE", default=7200, cast=int) # Database @@ -234,7 +237,7 @@ # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/3.0/howto/static-files/ -STATIC_URL = "/static/" +STATIC_URL = config("STATIC_URL", default=f"{BASE_PATH}/static/".replace("//", "/")) STATIC_ROOT = config("STATIC_ROOT_DIR", default=(BASE_DIR / "server" / "staticfiles")) STATICFILES_DIRS = [ @@ -352,9 +355,12 @@ "handlers": { "file": { "level": "DEBUG", - "class": "logging.FileHandler", + "class": "logging.handlers.TimedRotatingFileHandler", "formatter": "verbose", "filename": LOG_FILE_NAME, + "when": "D", # this specifies the interval + "interval": 1, # defaults to 1, only necessary for other values + "backupCount": 20, # how many backup file to keep, 10 days }, "console": { "class": "logging.StreamHandler", diff --git a/server/main/purplship/server/settings/cache.py b/server/main/purplship/server/settings/cache.py index b7f78e7d75..31bbf779d8 100644 --- a/server/main/purplship/server/settings/cache.py +++ b/server/main/purplship/server/settings/cache.py @@ -2,18 +2,20 @@ CACHE_TTL = 60 * 15 -REDIS_HOST = config('REDIS_HOST', default=None) -REDIS_PORT = config('REDIS_PORT', default=None) +REDIS_HOST = config("REDIS_HOST", default=None) +REDIS_PORT = config("REDIS_PORT", default=None) # purplship server caching setup if REDIS_HOST is not None: - REDIS_CONNECTION_URL = f'redis://{REDIS_HOST or "127.0.0.1"}:{REDIS_PORT or "6379"}/1' + REDIS_CONNECTION_URL = ( + f'redis://{REDIS_HOST or "127.0.0.1"}:{REDIS_PORT or "6379"}/1' + ) CACHES = { "default": { "BACKEND": "django_redis.cache.RedisCache", "LOCATION": REDIS_CONNECTION_URL, - "OPTIONS": { - "CLIENT_CLASS": "django_redis.client.DefaultClient" - } + "OPTIONS": {"CLIENT_CLASS": "django_redis.client.DefaultClient"}, + "KEY_PREFIX": "purplship", } } + print(f"Redis connection initialized at: {REDIS_CONNECTION_URL}") diff --git a/server/main/purplship/server/static/purplship/js/purplship.js b/server/main/purplship/server/static/purplship/js/purplship.js index 395b55582e..76ba6165ad 100644 --- a/server/main/purplship/server/static/purplship/js/purplship.js +++ b/server/main/purplship/server/static/purplship/js/purplship.js @@ -1,8 +1,8 @@ (function (global, factory) { - typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : - typeof define === 'function' && define.amd ? define(['exports'], factory) : - (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.purplship = {})); -})(this, (function (exports) { 'use strict'; + typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : + typeof define === 'function' && define.amd ? define(factory) : + (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Purplship = factory()); +})(this, (function () { 'use strict'; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. @@ -358,6 +358,32 @@ return JSONApiResponse; }()); + /* tslint:disable */ + function AddressValidationFromJSON(json) { + return AddressValidationFromJSONTyped(json); + } + function AddressValidationFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'success': json['success'], + 'meta': !exists(json, 'meta') ? undefined : json['meta'], + }; + } + function AddressValidationToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'success': value.success, + 'meta': value.meta, + }; + } + /* tslint:disable */ /** * @export @@ -938,54 +964,13 @@ }; } - /* tslint:disable */ - function AddressValidationFromJSON(json) { - return AddressValidationFromJSONTyped(json); - } - function AddressValidationFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'success': json['success'], - 'meta': !exists(json, 'meta') ? undefined : json['meta'], - }; - } - function AddressValidationToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'success': value.success, - 'meta': value.meta, - }; - } - - /* tslint:disable */ - function CarrierListFromJSON(json) { - return CarrierListFromJSONTyped(json); - } - function CarrierListFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'next': !exists(json, 'next') ? undefined : json['next'], - 'previous': !exists(json, 'previous') ? undefined : json['previous'], - 'results': (json['results'].map(CarrierSettingsFromJSON)), - }; - } - /* tslint:disable */ /* eslint-disable */ /** * Purplship API - * ## API Reference Purplship is an open source multi-carrier shipping API that simplifies the integration of logistic carrier services. The Purplship API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs. The Purplship API differs for every account as we release new versions. These docs are customized to your version of the API. ## Versioning When backwards-incompatible changes are made to the API, a new, dated version is released. The current version is `2021.10`. Read our API changelog and to learn more about backwards compatibility. As a precaution, use API versioning to check a new API version before committing to an upgrade. ## Pagination All top-level API resources have support for bulk fetches via \"list\" API methods. For instance, you can list addresses, list shipments, and list trackers. These list API methods share a common structure, taking at least these two parameters: limit, and offset. Purplship utilizes offset-based pagination via the offset and limit parameters. Both parameters take a number as value (see below) and return objects in reverse chronological order. The offset parameter returns objects listed after an index. The limit parameter take a limit on the number of objects to be returned from 1 to 100. ```json { \"next\": \"/v1/shipments?limit=25&offset=25\", \"previous\": \"/v1/shipments?limit=25&offset=25\", \"results\": [ ] } ``` ## Environments The Purplship API offer the possibility to create and retrieve certain objects in `test_mode`. In development, it is therefore possible to add carrier connections, get live rates, buy labels, create trackers and schedule pickups in `test_mode`. + * ## API Reference Purplship is an open source multi-carrier shipping API that simplifies the integration of logistic carrier services. The Purplship API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs. The Purplship API differs for every account as we release new versions. These docs are customized to your version of the API. ## Versioning When backwards-incompatible changes are made to the API, a new, dated version is released. The current version is `2021.11`. Read our API changelog and to learn more about backwards compatibility. As a precaution, use API versioning to check a new API version before committing to an upgrade. ## Pagination All top-level API resources have support for bulk fetches via \"list\" API methods. For instance, you can list addresses, list shipments, and list trackers. These list API methods share a common structure, taking at least these two parameters: limit, and offset. Purplship utilizes offset-based pagination via the offset and limit parameters. Both parameters take a number as value (see below) and return objects in reverse chronological order. The offset parameter returns objects listed after an index. The limit parameter take a limit on the number of objects to be returned from 1 to 100. ```json { \"next\": \"/v1/shipments?limit=25&offset=25\", \"previous\": \"/v1/shipments?limit=25&offset=25\", \"results\": [ ] } ``` ## Environments The Purplship API offer the possibility to create and retrieve certain objects in `test_mode`. In development, it is therefore possible to add carrier connections, get live rates, buy labels, create trackers and schedule pickups in `test_mode`. * - * The version of the OpenAPI document: 2021.10 + * The version of the OpenAPI document: 2021.11 * Contact: hello@purplship.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -1003,6 +988,7 @@ CarrierSettingsCarrierNameEnum["Canadapost"] = "canadapost"; CarrierSettingsCarrierNameEnum["Canpar"] = "canpar"; CarrierSettingsCarrierNameEnum["DhlExpress"] = "dhl_express"; + CarrierSettingsCarrierNameEnum["DhlPoland"] = "dhl_poland"; CarrierSettingsCarrierNameEnum["DhlUniversal"] = "dhl_universal"; CarrierSettingsCarrierNameEnum["Dicom"] = "dicom"; CarrierSettingsCarrierNameEnum["Eshipper"] = "eshipper"; @@ -1035,6 +1021,21 @@ }; } + /* tslint:disable */ + function CarrierListFromJSON(json) { + return CarrierListFromJSONTyped(json); + } + function CarrierListFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'next': !exists(json, 'next') ? undefined : json['next'], + 'previous': !exists(json, 'previous') ? undefined : json['previous'], + 'results': (json['results'].map(CarrierSettingsFromJSON)), + }; + } + /* tslint:disable */ function ChargeFromJSON(json) { return ChargeFromJSONTyped(json); @@ -1141,138 +1142,6 @@ }; } - /* tslint:disable */ - /** - * @export - * @enum {string} - */ - var CustomsContentTypeEnum; - (function (CustomsContentTypeEnum) { - CustomsContentTypeEnum["Documents"] = "documents"; - CustomsContentTypeEnum["Gift"] = "gift"; - CustomsContentTypeEnum["Sample"] = "sample"; - CustomsContentTypeEnum["Merchandise"] = "merchandise"; - CustomsContentTypeEnum["ReturnMerchandise"] = "return_merchandise"; - CustomsContentTypeEnum["Other"] = "other"; - })(CustomsContentTypeEnum || (CustomsContentTypeEnum = {})); /** - * @export - * @enum {string} - */ - var CustomsIncotermEnum; - (function (CustomsIncotermEnum) { - CustomsIncotermEnum["Cfr"] = "CFR"; - CustomsIncotermEnum["Cif"] = "CIF"; - CustomsIncotermEnum["Cip"] = "CIP"; - CustomsIncotermEnum["Cpt"] = "CPT"; - CustomsIncotermEnum["Daf"] = "DAF"; - CustomsIncotermEnum["Ddp"] = "DDP"; - CustomsIncotermEnum["Ddu"] = "DDU"; - CustomsIncotermEnum["Deq"] = "DEQ"; - CustomsIncotermEnum["Des"] = "DES"; - CustomsIncotermEnum["Exw"] = "EXW"; - CustomsIncotermEnum["Fas"] = "FAS"; - CustomsIncotermEnum["Fca"] = "FCA"; - CustomsIncotermEnum["Fob"] = "FOB"; - })(CustomsIncotermEnum || (CustomsIncotermEnum = {})); - function CustomsFromJSON(json) { - return CustomsFromJSONTyped(json); - } - function CustomsFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'id': !exists(json, 'id') ? undefined : json['id'], - 'aes': !exists(json, 'aes') ? undefined : json['aes'], - 'eel_pfc': !exists(json, 'eel_pfc') ? undefined : json['eel_pfc'], - 'content_type': !exists(json, 'content_type') ? undefined : json['content_type'], - 'content_description': !exists(json, 'content_description') ? undefined : json['content_description'], - 'incoterm': !exists(json, 'incoterm') ? undefined : json['incoterm'], - 'commodities': !exists(json, 'commodities') ? undefined : (json['commodities'] === null ? null : json['commodities'].map(CommodityFromJSON)), - 'duty': !exists(json, 'duty') ? undefined : DutyFromJSON(json['duty']), - 'invoice': !exists(json, 'invoice') ? undefined : json['invoice'], - 'invoice_date': !exists(json, 'invoice_date') ? undefined : json['invoice_date'], - 'commercial_invoice': !exists(json, 'commercial_invoice') ? undefined : json['commercial_invoice'], - 'certify': !exists(json, 'certify') ? undefined : json['certify'], - 'signer': !exists(json, 'signer') ? undefined : json['signer'], - 'certificate_number': !exists(json, 'certificate_number') ? undefined : json['certificate_number'], - 'options': !exists(json, 'options') ? undefined : json['options'], - }; - } - - /* tslint:disable */ - /** - * @export - * @enum {string} - */ - var CustomsDataContentTypeEnum; - (function (CustomsDataContentTypeEnum) { - CustomsDataContentTypeEnum["Documents"] = "documents"; - CustomsDataContentTypeEnum["Gift"] = "gift"; - CustomsDataContentTypeEnum["Sample"] = "sample"; - CustomsDataContentTypeEnum["Merchandise"] = "merchandise"; - CustomsDataContentTypeEnum["ReturnMerchandise"] = "return_merchandise"; - CustomsDataContentTypeEnum["Other"] = "other"; - })(CustomsDataContentTypeEnum || (CustomsDataContentTypeEnum = {})); /** - * @export - * @enum {string} - */ - var CustomsDataIncotermEnum; - (function (CustomsDataIncotermEnum) { - CustomsDataIncotermEnum["Cfr"] = "CFR"; - CustomsDataIncotermEnum["Cif"] = "CIF"; - CustomsDataIncotermEnum["Cip"] = "CIP"; - CustomsDataIncotermEnum["Cpt"] = "CPT"; - CustomsDataIncotermEnum["Daf"] = "DAF"; - CustomsDataIncotermEnum["Ddp"] = "DDP"; - CustomsDataIncotermEnum["Ddu"] = "DDU"; - CustomsDataIncotermEnum["Deq"] = "DEQ"; - CustomsDataIncotermEnum["Des"] = "DES"; - CustomsDataIncotermEnum["Exw"] = "EXW"; - CustomsDataIncotermEnum["Fas"] = "FAS"; - CustomsDataIncotermEnum["Fca"] = "FCA"; - CustomsDataIncotermEnum["Fob"] = "FOB"; - })(CustomsDataIncotermEnum || (CustomsDataIncotermEnum = {})); - function CustomsDataToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'aes': value.aes, - 'eel_pfc': value.eel_pfc, - 'content_type': value.content_type, - 'content_description': value.content_description, - 'incoterm': value.incoterm, - 'commodities': value.commodities === undefined ? undefined : (value.commodities === null ? null : value.commodities.map(CommodityToJSON)), - 'duty': DutyToJSON(value.duty), - 'invoice': value.invoice, - 'invoice_date': value.invoice_date, - 'commercial_invoice': value.commercial_invoice, - 'certify': value.certify, - 'signer': value.signer, - 'certificate_number': value.certificate_number, - 'options': value.options, - }; - } - - /* tslint:disable */ - function CustomsListFromJSON(json) { - return CustomsListFromJSONTyped(json); - } - function CustomsListFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'next': !exists(json, 'next') ? undefined : json['next'], - 'previous': !exists(json, 'previous') ? undefined : json['previous'], - 'results': (json['results'].map(CustomsFromJSON)), - }; - } - /* tslint:disable */ /** * @export @@ -1464,6 +1333,132 @@ }; } + /* tslint:disable */ + /** + * @export + * @enum {string} + */ + var CustomsContentTypeEnum; + (function (CustomsContentTypeEnum) { + CustomsContentTypeEnum["Documents"] = "documents"; + CustomsContentTypeEnum["Gift"] = "gift"; + CustomsContentTypeEnum["Sample"] = "sample"; + CustomsContentTypeEnum["Merchandise"] = "merchandise"; + CustomsContentTypeEnum["ReturnMerchandise"] = "return_merchandise"; + CustomsContentTypeEnum["Other"] = "other"; + })(CustomsContentTypeEnum || (CustomsContentTypeEnum = {})); /** + * @export + * @enum {string} + */ + var CustomsIncotermEnum; + (function (CustomsIncotermEnum) { + CustomsIncotermEnum["Cfr"] = "CFR"; + CustomsIncotermEnum["Cif"] = "CIF"; + CustomsIncotermEnum["Cip"] = "CIP"; + CustomsIncotermEnum["Cpt"] = "CPT"; + CustomsIncotermEnum["Daf"] = "DAF"; + CustomsIncotermEnum["Ddp"] = "DDP"; + CustomsIncotermEnum["Ddu"] = "DDU"; + CustomsIncotermEnum["Deq"] = "DEQ"; + CustomsIncotermEnum["Des"] = "DES"; + CustomsIncotermEnum["Exw"] = "EXW"; + CustomsIncotermEnum["Fas"] = "FAS"; + CustomsIncotermEnum["Fca"] = "FCA"; + CustomsIncotermEnum["Fob"] = "FOB"; + })(CustomsIncotermEnum || (CustomsIncotermEnum = {})); + function CustomsFromJSON(json) { + return CustomsFromJSONTyped(json); + } + function CustomsFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'id': !exists(json, 'id') ? undefined : json['id'], + 'commodities': (json['commodities'].map(CommodityFromJSON)), + 'duty': !exists(json, 'duty') ? undefined : DutyFromJSON(json['duty']), + 'content_type': !exists(json, 'content_type') ? undefined : json['content_type'], + 'content_description': !exists(json, 'content_description') ? undefined : json['content_description'], + 'incoterm': !exists(json, 'incoterm') ? undefined : json['incoterm'], + 'invoice': !exists(json, 'invoice') ? undefined : json['invoice'], + 'invoice_date': !exists(json, 'invoice_date') ? undefined : json['invoice_date'], + 'commercial_invoice': !exists(json, 'commercial_invoice') ? undefined : json['commercial_invoice'], + 'certify': !exists(json, 'certify') ? undefined : json['certify'], + 'signer': !exists(json, 'signer') ? undefined : json['signer'], + 'options': !exists(json, 'options') ? undefined : json['options'], + }; + } + + /* tslint:disable */ + /** + * @export + * @enum {string} + */ + var CustomsDataContentTypeEnum; + (function (CustomsDataContentTypeEnum) { + CustomsDataContentTypeEnum["Documents"] = "documents"; + CustomsDataContentTypeEnum["Gift"] = "gift"; + CustomsDataContentTypeEnum["Sample"] = "sample"; + CustomsDataContentTypeEnum["Merchandise"] = "merchandise"; + CustomsDataContentTypeEnum["ReturnMerchandise"] = "return_merchandise"; + CustomsDataContentTypeEnum["Other"] = "other"; + })(CustomsDataContentTypeEnum || (CustomsDataContentTypeEnum = {})); /** + * @export + * @enum {string} + */ + var CustomsDataIncotermEnum; + (function (CustomsDataIncotermEnum) { + CustomsDataIncotermEnum["Cfr"] = "CFR"; + CustomsDataIncotermEnum["Cif"] = "CIF"; + CustomsDataIncotermEnum["Cip"] = "CIP"; + CustomsDataIncotermEnum["Cpt"] = "CPT"; + CustomsDataIncotermEnum["Daf"] = "DAF"; + CustomsDataIncotermEnum["Ddp"] = "DDP"; + CustomsDataIncotermEnum["Ddu"] = "DDU"; + CustomsDataIncotermEnum["Deq"] = "DEQ"; + CustomsDataIncotermEnum["Des"] = "DES"; + CustomsDataIncotermEnum["Exw"] = "EXW"; + CustomsDataIncotermEnum["Fas"] = "FAS"; + CustomsDataIncotermEnum["Fca"] = "FCA"; + CustomsDataIncotermEnum["Fob"] = "FOB"; + })(CustomsDataIncotermEnum || (CustomsDataIncotermEnum = {})); + function CustomsDataToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'commodities': (value.commodities.map(CommodityToJSON)), + 'duty': DutyToJSON(value.duty), + 'content_type': value.content_type, + 'content_description': value.content_description, + 'incoterm': value.incoterm, + 'invoice': value.invoice, + 'invoice_date': value.invoice_date, + 'commercial_invoice': value.commercial_invoice, + 'certify': value.certify, + 'signer': value.signer, + 'options': value.options, + }; + } + + /* tslint:disable */ + function CustomsListFromJSON(json) { + return CustomsListFromJSONTyped(json); + } + function CustomsListFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'next': !exists(json, 'next') ? undefined : json['next'], + 'previous': !exists(json, 'previous') ? undefined : json['previous'], + 'results': (json['results'].map(CustomsFromJSON)), + }; + } + /* tslint:disable */ function MessageFromJSON(json) { return MessageFromJSONTyped(json); @@ -1485,9 +1480,40 @@ /* eslint-disable */ /** * Purplship API - * ## API Reference Purplship is an open source multi-carrier shipping API that simplifies the integration of logistic carrier services. The Purplship API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs. The Purplship API differs for every account as we release new versions. These docs are customized to your version of the API. ## Versioning When backwards-incompatible changes are made to the API, a new, dated version is released. The current version is `2021.10`. Read our API changelog and to learn more about backwards compatibility. As a precaution, use API versioning to check a new API version before committing to an upgrade. ## Pagination All top-level API resources have support for bulk fetches via \"list\" API methods. For instance, you can list addresses, list shipments, and list trackers. These list API methods share a common structure, taking at least these two parameters: limit, and offset. Purplship utilizes offset-based pagination via the offset and limit parameters. Both parameters take a number as value (see below) and return objects in reverse chronological order. The offset parameter returns objects listed after an index. The limit parameter take a limit on the number of objects to be returned from 1 to 100. ```json { \"next\": \"/v1/shipments?limit=25&offset=25\", \"previous\": \"/v1/shipments?limit=25&offset=25\", \"results\": [ ] } ``` ## Environments The Purplship API offer the possibility to create and retrieve certain objects in `test_mode`. In development, it is therefore possible to add carrier connections, get live rates, buy labels, create trackers and schedule pickups in `test_mode`. + * ## API Reference Purplship is an open source multi-carrier shipping API that simplifies the integration of logistic carrier services. The Purplship API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs. The Purplship API differs for every account as we release new versions. These docs are customized to your version of the API. ## Versioning When backwards-incompatible changes are made to the API, a new, dated version is released. The current version is `2021.11`. Read our API changelog and to learn more about backwards compatibility. As a precaution, use API versioning to check a new API version before committing to an upgrade. ## Pagination All top-level API resources have support for bulk fetches via \"list\" API methods. For instance, you can list addresses, list shipments, and list trackers. These list API methods share a common structure, taking at least these two parameters: limit, and offset. Purplship utilizes offset-based pagination via the offset and limit parameters. Both parameters take a number as value (see below) and return objects in reverse chronological order. The offset parameter returns objects listed after an index. The limit parameter take a limit on the number of objects to be returned from 1 to 100. ```json { \"next\": \"/v1/shipments?limit=25&offset=25\", \"previous\": \"/v1/shipments?limit=25&offset=25\", \"results\": [ ] } ``` ## Environments The Purplship API offer the possibility to create and retrieve certain objects in `test_mode`. In development, it is therefore possible to add carrier connections, get live rates, buy labels, create trackers and schedule pickups in `test_mode`. * - * The version of the OpenAPI document: 2021.10 + * The version of the OpenAPI document: 2021.11 + * Contact: hello@purplship.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + function MetadataFromJSON(json) { + return MetadataFromJSONTyped(json); + } + function MetadataFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'app_name': json['APP_NAME'], + 'app_version': json['APP_VERSION'], + 'app_website': json['APP_WEBSITE'], + 'multi_organizations': json['MULTI_ORGANIZATIONS'], + 'admin': json['ADMIN'], + 'openapi': json['OPENAPI'], + 'graphql': json['GRAPHQL'], + }; + } + + /* tslint:disable */ + /* eslint-disable */ + /** + * Purplship API + * ## API Reference Purplship is an open source multi-carrier shipping API that simplifies the integration of logistic carrier services. The Purplship API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs. The Purplship API differs for every account as we release new versions. These docs are customized to your version of the API. ## Versioning When backwards-incompatible changes are made to the API, a new, dated version is released. The current version is `2021.11`. Read our API changelog and to learn more about backwards compatibility. As a precaution, use API versioning to check a new API version before committing to an upgrade. ## Pagination All top-level API resources have support for bulk fetches via \"list\" API methods. For instance, you can list addresses, list shipments, and list trackers. These list API methods share a common structure, taking at least these two parameters: limit, and offset. Purplship utilizes offset-based pagination via the offset and limit parameters. Both parameters take a number as value (see below) and return objects in reverse chronological order. The offset parameter returns objects listed after an index. The limit parameter take a limit on the number of objects to be returned from 1 to 100. ```json { \"next\": \"/v1/shipments?limit=25&offset=25\", \"previous\": \"/v1/shipments?limit=25&offset=25\", \"results\": [ ] } ``` ## Environments The Purplship API offer the possibility to create and retrieve certain objects in `test_mode`. In development, it is therefore possible to add carrier connections, get live rates, buy labels, create trackers and schedule pickups in `test_mode`. + * + * The version of the OpenAPI document: 2021.11 * Contact: hello@purplship.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -1511,9 +1537,9 @@ /* eslint-disable */ /** * Purplship API - * ## API Reference Purplship is an open source multi-carrier shipping API that simplifies the integration of logistic carrier services. The Purplship API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs. The Purplship API differs for every account as we release new versions. These docs are customized to your version of the API. ## Versioning When backwards-incompatible changes are made to the API, a new, dated version is released. The current version is `2021.10`. Read our API changelog and to learn more about backwards compatibility. As a precaution, use API versioning to check a new API version before committing to an upgrade. ## Pagination All top-level API resources have support for bulk fetches via \"list\" API methods. For instance, you can list addresses, list shipments, and list trackers. These list API methods share a common structure, taking at least these two parameters: limit, and offset. Purplship utilizes offset-based pagination via the offset and limit parameters. Both parameters take a number as value (see below) and return objects in reverse chronological order. The offset parameter returns objects listed after an index. The limit parameter take a limit on the number of objects to be returned from 1 to 100. ```json { \"next\": \"/v1/shipments?limit=25&offset=25\", \"previous\": \"/v1/shipments?limit=25&offset=25\", \"results\": [ ] } ``` ## Environments The Purplship API offer the possibility to create and retrieve certain objects in `test_mode`. In development, it is therefore possible to add carrier connections, get live rates, buy labels, create trackers and schedule pickups in `test_mode`. + * ## API Reference Purplship is an open source multi-carrier shipping API that simplifies the integration of logistic carrier services. The Purplship API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs. The Purplship API differs for every account as we release new versions. These docs are customized to your version of the API. ## Versioning When backwards-incompatible changes are made to the API, a new, dated version is released. The current version is `2021.11`. Read our API changelog and to learn more about backwards compatibility. As a precaution, use API versioning to check a new API version before committing to an upgrade. ## Pagination All top-level API resources have support for bulk fetches via \"list\" API methods. For instance, you can list addresses, list shipments, and list trackers. These list API methods share a common structure, taking at least these two parameters: limit, and offset. Purplship utilizes offset-based pagination via the offset and limit parameters. Both parameters take a number as value (see below) and return objects in reverse chronological order. The offset parameter returns objects listed after an index. The limit parameter take a limit on the number of objects to be returned from 1 to 100. ```json { \"next\": \"/v1/shipments?limit=25&offset=25\", \"previous\": \"/v1/shipments?limit=25&offset=25\", \"results\": [ ] } ``` ## Environments The Purplship API offer the possibility to create and retrieve certain objects in `test_mode`. In development, it is therefore possible to add carrier connections, get live rates, buy labels, create trackers and schedule pickups in `test_mode`. * - * The version of the OpenAPI document: 2021.10 + * The version of the OpenAPI document: 2021.11 * Contact: hello@purplship.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -2107,9 +2133,9 @@ /* eslint-disable */ /** * Purplship API - * ## API Reference Purplship is an open source multi-carrier shipping API that simplifies the integration of logistic carrier services. The Purplship API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs. The Purplship API differs for every account as we release new versions. These docs are customized to your version of the API. ## Versioning When backwards-incompatible changes are made to the API, a new, dated version is released. The current version is `2021.10`. Read our API changelog and to learn more about backwards compatibility. As a precaution, use API versioning to check a new API version before committing to an upgrade. ## Pagination All top-level API resources have support for bulk fetches via \"list\" API methods. For instance, you can list addresses, list shipments, and list trackers. These list API methods share a common structure, taking at least these two parameters: limit, and offset. Purplship utilizes offset-based pagination via the offset and limit parameters. Both parameters take a number as value (see below) and return objects in reverse chronological order. The offset parameter returns objects listed after an index. The limit parameter take a limit on the number of objects to be returned from 1 to 100. ```json { \"next\": \"/v1/shipments?limit=25&offset=25\", \"previous\": \"/v1/shipments?limit=25&offset=25\", \"results\": [ ] } ``` ## Environments The Purplship API offer the possibility to create and retrieve certain objects in `test_mode`. In development, it is therefore possible to add carrier connections, get live rates, buy labels, create trackers and schedule pickups in `test_mode`. + * ## API Reference Purplship is an open source multi-carrier shipping API that simplifies the integration of logistic carrier services. The Purplship API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs. The Purplship API differs for every account as we release new versions. These docs are customized to your version of the API. ## Versioning When backwards-incompatible changes are made to the API, a new, dated version is released. The current version is `2021.11`. Read our API changelog and to learn more about backwards compatibility. As a precaution, use API versioning to check a new API version before committing to an upgrade. ## Pagination All top-level API resources have support for bulk fetches via \"list\" API methods. For instance, you can list addresses, list shipments, and list trackers. These list API methods share a common structure, taking at least these two parameters: limit, and offset. Purplship utilizes offset-based pagination via the offset and limit parameters. Both parameters take a number as value (see below) and return objects in reverse chronological order. The offset parameter returns objects listed after an index. The limit parameter take a limit on the number of objects to be returned from 1 to 100. ```json { \"next\": \"/v1/shipments?limit=25&offset=25\", \"previous\": \"/v1/shipments?limit=25&offset=25\", \"results\": [ ] } ``` ## Environments The Purplship API offer the possibility to create and retrieve certain objects in `test_mode`. In development, it is therefore possible to add carrier connections, get live rates, buy labels, create trackers and schedule pickups in `test_mode`. * - * The version of the OpenAPI document: 2021.10 + * The version of the OpenAPI document: 2021.11 * Contact: hello@purplship.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -2128,6 +2154,9 @@ 'app_version': json['APP_VERSION'], 'app_website': json['APP_WEBSITE'], 'multi_organizations': json['MULTI_ORGANIZATIONS'], + 'admin': json['ADMIN'], + 'openapi': json['OPENAPI'], + 'graphql': json['GRAPHQL'], 'address_auto_complete': json['ADDRESS_AUTO_COMPLETE'], 'countries': json['countries'], 'currencies': json['currencies'], @@ -2143,6 +2172,7 @@ 'packaging_types': json['packaging_types'], 'payment_types': json['payment_types'], 'carrier_capabilities': json['carrier_capabilities'], + 'service_levels': json['service_levels'], }; } @@ -2357,9 +2387,9 @@ /* eslint-disable */ /** * Purplship API - * ## API Reference Purplship is an open source multi-carrier shipping API that simplifies the integration of logistic carrier services. The Purplship API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs. The Purplship API differs for every account as we release new versions. These docs are customized to your version of the API. ## Versioning When backwards-incompatible changes are made to the API, a new, dated version is released. The current version is `2021.10`. Read our API changelog and to learn more about backwards compatibility. As a precaution, use API versioning to check a new API version before committing to an upgrade. ## Pagination All top-level API resources have support for bulk fetches via \"list\" API methods. For instance, you can list addresses, list shipments, and list trackers. These list API methods share a common structure, taking at least these two parameters: limit, and offset. Purplship utilizes offset-based pagination via the offset and limit parameters. Both parameters take a number as value (see below) and return objects in reverse chronological order. The offset parameter returns objects listed after an index. The limit parameter take a limit on the number of objects to be returned from 1 to 100. ```json { \"next\": \"/v1/shipments?limit=25&offset=25\", \"previous\": \"/v1/shipments?limit=25&offset=25\", \"results\": [ ] } ``` ## Environments The Purplship API offer the possibility to create and retrieve certain objects in `test_mode`. In development, it is therefore possible to add carrier connections, get live rates, buy labels, create trackers and schedule pickups in `test_mode`. + * ## API Reference Purplship is an open source multi-carrier shipping API that simplifies the integration of logistic carrier services. The Purplship API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs. The Purplship API differs for every account as we release new versions. These docs are customized to your version of the API. ## Versioning When backwards-incompatible changes are made to the API, a new, dated version is released. The current version is `2021.11`. Read our API changelog and to learn more about backwards compatibility. As a precaution, use API versioning to check a new API version before committing to an upgrade. ## Pagination All top-level API resources have support for bulk fetches via \"list\" API methods. For instance, you can list addresses, list shipments, and list trackers. These list API methods share a common structure, taking at least these two parameters: limit, and offset. Purplship utilizes offset-based pagination via the offset and limit parameters. Both parameters take a number as value (see below) and return objects in reverse chronological order. The offset parameter returns objects listed after an index. The limit parameter take a limit on the number of objects to be returned from 1 to 100. ```json { \"next\": \"/v1/shipments?limit=25&offset=25\", \"previous\": \"/v1/shipments?limit=25&offset=25\", \"results\": [ ] } ``` ## Environments The Purplship API offer the possibility to create and retrieve certain objects in `test_mode`. In development, it is therefore possible to add carrier connections, get live rates, buy labels, create trackers and schedule pickups in `test_mode`. * - * The version of the OpenAPI document: 2021.10 + * The version of the OpenAPI document: 2021.11 * Contact: hello@purplship.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -2406,21 +2436,6 @@ }; } - /* tslint:disable */ - function TrackerListFromJSON(json) { - return TrackerListFromJSONTyped(json); - } - function TrackerListFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'next': !exists(json, 'next') ? undefined : json['next'], - 'previous': !exists(json, 'previous') ? undefined : json['previous'], - 'results': (json['results'].map(TrackingStatusFromJSON)), - }; - } - /* tslint:disable */ function TrackingEventFromJSON(json) { return TrackingEventFromJSONTyped(json); @@ -2438,20 +2453,6 @@ }; } - /* tslint:disable */ - function TrackingResponseFromJSON(json) { - return TrackingResponseFromJSONTyped(json); - } - function TrackingResponseFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'messages': !exists(json, 'messages') ? undefined : (json['messages'].map(MessageFromJSON)), - 'tracking': !exists(json, 'tracking') ? undefined : TrackingStatusFromJSON(json['tracking']), - }; - } - /* tslint:disable */ /** * @export @@ -2480,6 +2481,37 @@ 'delivered': !exists(json, 'delivered') ? undefined : json['delivered'], 'test_mode': json['test_mode'], 'status': !exists(json, 'status') ? undefined : json['status'], + 'estimated_delivery': !exists(json, 'estimated_delivery') ? undefined : json['estimated_delivery'], + 'messages': !exists(json, 'messages') ? undefined : (json['messages'].map(MessageFromJSON)), + }; + } + + /* tslint:disable */ + function TrackerListFromJSON(json) { + return TrackerListFromJSONTyped(json); + } + function TrackerListFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'next': !exists(json, 'next') ? undefined : json['next'], + 'previous': !exists(json, 'previous') ? undefined : json['previous'], + 'results': (json['results'].map(TrackingStatusFromJSON)), + }; + } + + /* tslint:disable */ + function TrackingResponseFromJSON(json) { + return TrackingResponseFromJSONTyped(json); + } + function TrackingResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'messages': !exists(json, 'messages') ? undefined : (json['messages'].map(MessageFromJSON)), + 'tracking': !exists(json, 'tracking') ? undefined : TrackingStatusFromJSON(json['tracking']), }; } @@ -2944,6 +2976,50 @@ }); }); }; + /** + * Instance Metadata + */ + APIApi.prototype.pingRaw = function (initOverrides) { + return __awaiter(this, void 0, void 0, function () { + var queryParameters, headerParameters, response; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + queryParameters = {}; + headerParameters = {}; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Token authentication + } + return [4 /*yield*/, this.request({ + path: "/", + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides)]; + case 1: + response = _a.sent(); + return [2 /*return*/, new JSONApiResponse(response, function (jsonValue) { return MetadataFromJSON(jsonValue); })]; + } + }); + }); + }; + /** + * Instance Metadata + */ + APIApi.prototype.ping = function (initOverrides) { + return __awaiter(this, void 0, void 0, function () { + var response; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, this.pingRaw(initOverrides)]; + case 1: + response = _a.sent(); + return [4 /*yield*/, response.value()]; + case 2: return [2 /*return*/, _a.sent()]; + } + }); + }); + }; /** * Authenticate the user and return a token pair * Refresh auth token @@ -3135,6 +3211,7 @@ ListCarrierNameEnum["Canadapost"] = "canadapost"; ListCarrierNameEnum["Canpar"] = "canpar"; ListCarrierNameEnum["DhlExpress"] = "dhl_express"; + ListCarrierNameEnum["DhlPoland"] = "dhl_poland"; ListCarrierNameEnum["DhlUniversal"] = "dhl_universal"; ListCarrierNameEnum["Dicom"] = "dicom"; ListCarrierNameEnum["Eshipper"] = "eshipper"; @@ -4483,6 +4560,7 @@ CancelPickupCarrierNameEnum["Canadapost"] = "canadapost"; CancelPickupCarrierNameEnum["Canpar"] = "canpar"; CancelPickupCarrierNameEnum["DhlExpress"] = "dhl_express"; + CancelPickupCarrierNameEnum["DhlPoland"] = "dhl_poland"; CancelPickupCarrierNameEnum["DhlUniversal"] = "dhl_universal"; CancelPickupCarrierNameEnum["Dicom"] = "dicom"; CancelPickupCarrierNameEnum["Eshipper"] = "eshipper"; @@ -4510,6 +4588,7 @@ SchedulePickupCarrierNameEnum["Canadapost"] = "canadapost"; SchedulePickupCarrierNameEnum["Canpar"] = "canpar"; SchedulePickupCarrierNameEnum["DhlExpress"] = "dhl_express"; + SchedulePickupCarrierNameEnum["DhlPoland"] = "dhl_poland"; SchedulePickupCarrierNameEnum["DhlUniversal"] = "dhl_universal"; SchedulePickupCarrierNameEnum["Dicom"] = "dicom"; SchedulePickupCarrierNameEnum["Eshipper"] = "eshipper"; @@ -4537,6 +4616,7 @@ TrackShipmentCarrierNameEnum["Canadapost"] = "canadapost"; TrackShipmentCarrierNameEnum["Canpar"] = "canpar"; TrackShipmentCarrierNameEnum["DhlExpress"] = "dhl_express"; + TrackShipmentCarrierNameEnum["DhlPoland"] = "dhl_poland"; TrackShipmentCarrierNameEnum["DhlUniversal"] = "dhl_universal"; TrackShipmentCarrierNameEnum["Dicom"] = "dicom"; TrackShipmentCarrierNameEnum["Eshipper"] = "eshipper"; @@ -4564,6 +4644,7 @@ UpdatePickupCarrierNameEnum["Canadapost"] = "canadapost"; UpdatePickupCarrierNameEnum["Canpar"] = "canpar"; UpdatePickupCarrierNameEnum["DhlExpress"] = "dhl_express"; + UpdatePickupCarrierNameEnum["DhlPoland"] = "dhl_poland"; UpdatePickupCarrierNameEnum["DhlUniversal"] = "dhl_universal"; UpdatePickupCarrierNameEnum["Dicom"] = "dicom"; UpdatePickupCarrierNameEnum["Eshipper"] = "eshipper"; @@ -4591,6 +4672,7 @@ VoidLabelCarrierNameEnum["Canadapost"] = "canadapost"; VoidLabelCarrierNameEnum["Canpar"] = "canpar"; VoidLabelCarrierNameEnum["DhlExpress"] = "dhl_express"; + VoidLabelCarrierNameEnum["DhlPoland"] = "dhl_poland"; VoidLabelCarrierNameEnum["DhlUniversal"] = "dhl_universal"; VoidLabelCarrierNameEnum["Dicom"] = "dicom"; VoidLabelCarrierNameEnum["Eshipper"] = "eshipper"; @@ -4845,11 +4927,11 @@ if (requestParameters.status !== undefined) { queryParameters['status'] = requestParameters.status; } - if (requestParameters.createdStart !== undefined) { - queryParameters['created_start'] = requestParameters.createdStart.toISOString().substr(0, 10); + if (requestParameters.createdAfter !== undefined) { + queryParameters['created_after'] = requestParameters.createdAfter.toISOString(); } - if (requestParameters.createdEnd !== undefined) { - queryParameters['created_end'] = requestParameters.createdEnd.toISOString().substr(0, 10); + if (requestParameters.createdBefore !== undefined) { + queryParameters['created_before'] = requestParameters.createdBefore.toISOString(); } if (requestParameters.carrierId !== undefined) { queryParameters['carrier_id'] = requestParameters.carrierId; @@ -5141,6 +5223,7 @@ ListCarrierNameEnum["Canadapost"] = "canadapost"; ListCarrierNameEnum["Canpar"] = "canpar"; ListCarrierNameEnum["DhlExpress"] = "dhl_express"; + ListCarrierNameEnum["DhlPoland"] = "dhl_poland"; ListCarrierNameEnum["DhlUniversal"] = "dhl_universal"; ListCarrierNameEnum["Dicom"] = "dicom"; ListCarrierNameEnum["Eshipper"] = "eshipper"; @@ -5239,6 +5322,12 @@ if (requestParameters.status !== undefined) { queryParameters['status'] = requestParameters.status; } + if (requestParameters.createdAfter !== undefined) { + queryParameters['created_after'] = requestParameters.createdAfter.toISOString(); + } + if (requestParameters.createdBefore !== undefined) { + queryParameters['created_before'] = requestParameters.createdBefore.toISOString(); + } if (requestParameters.carrierId !== undefined) { queryParameters['carrier_id'] = requestParameters.carrierId; } @@ -5397,6 +5486,7 @@ CreateCarrierNameEnum["Canadapost"] = "canadapost"; CreateCarrierNameEnum["Canpar"] = "canpar"; CreateCarrierNameEnum["DhlExpress"] = "dhl_express"; + CreateCarrierNameEnum["DhlPoland"] = "dhl_poland"; CreateCarrierNameEnum["DhlUniversal"] = "dhl_universal"; CreateCarrierNameEnum["Dicom"] = "dicom"; CreateCarrierNameEnum["Eshipper"] = "eshipper"; @@ -5435,6 +5525,7 @@ ListCarrierNameEnum["Canadapost"] = "canadapost"; ListCarrierNameEnum["Canpar"] = "canpar"; ListCarrierNameEnum["DhlExpress"] = "dhl_express"; + ListCarrierNameEnum["DhlPoland"] = "dhl_poland"; ListCarrierNameEnum["DhlUniversal"] = "dhl_universal"; ListCarrierNameEnum["Dicom"] = "dicom"; ListCarrierNameEnum["Eshipper"] = "eshipper"; @@ -5797,20 +5888,18 @@ return PurplshipClient; }()); - var Client = PurplshipClient; - var Purplship = /** @class */ (function (_super) { - __extends(Purplship, _super); - function Purplship(_a) { - var apiKey = _a.apiKey, host = _a.host; - return _super.call(this, { basePath: host, apiKey: apiKey }) || this; - } - return Purplship; - }(PurplshipClient)); - - exports.Client = Client; - exports.Purplship = Purplship; + function Purplship(apiKey, host, apiKeyPrefix) { + if (host === void 0) { host = 'https://cloud.purplship.com'; } + if (apiKeyPrefix === void 0) { apiKeyPrefix = 'Token'; } + var clientConfig = { + basePath: host, + apiKey: apiKeyPrefix + " " + apiKey, + }; + return new PurplshipClient(clientConfig); + } + Purplship.Client = PurplshipClient; - Object.defineProperty(exports, '__esModule', { value: true }); + return Purplship; })); //# sourceMappingURL=purplship.js.map diff --git a/server/main/purplship/server/static/purplship/js/purplship.js.map b/server/main/purplship/server/static/purplship/js/purplship.js.map index a4f23f8dbb..deceaa9356 100644 --- a/server/main/purplship/server/static/purplship/js/purplship.js.map +++ b/server/main/purplship/server/static/purplship/js/purplship.js.map @@ -1 +1 @@ -{"version":3,"file":"purplship.js","sources":["../../../../../../../.codegen/typescript/node_modules/tslib/tslib.es6.js","../../../../../../../.codegen/typescript/api/generated/runtime.ts","../../../../../../../.codegen/typescript/api/generated/models/Address.ts","../../../../../../../.codegen/typescript/api/generated/models/AddressData.ts","../../../../../../../.codegen/typescript/api/generated/models/AddressList.ts","../../../../../../../.codegen/typescript/api/generated/models/AddressValidation.ts","../../../../../../../.codegen/typescript/api/generated/models/CarrierList.ts","../../../../../../../.codegen/typescript/api/generated/models/CarrierSettings.ts","../../../../../../../.codegen/typescript/api/generated/models/Charge.ts","../../../../../../../.codegen/typescript/api/generated/models/Commodity.ts","../../../../../../../.codegen/typescript/api/generated/models/CommodityData.ts","../../../../../../../.codegen/typescript/api/generated/models/Customs.ts","../../../../../../../.codegen/typescript/api/generated/models/CustomsData.ts","../../../../../../../.codegen/typescript/api/generated/models/CustomsList.ts","../../../../../../../.codegen/typescript/api/generated/models/Duty.ts","../../../../../../../.codegen/typescript/api/generated/models/Message.ts","../../../../../../../.codegen/typescript/api/generated/models/Operation.ts","../../../../../../../.codegen/typescript/api/generated/models/OperationConfirmation.ts","../../../../../../../.codegen/typescript/api/generated/models/OperationResponse.ts","../../../../../../../.codegen/typescript/api/generated/models/Parcel.ts","../../../../../../../.codegen/typescript/api/generated/models/ParcelData.ts","../../../../../../../.codegen/typescript/api/generated/models/ParcelList.ts","../../../../../../../.codegen/typescript/api/generated/models/Payment.ts","../../../../../../../.codegen/typescript/api/generated/models/Pickup.ts","../../../../../../../.codegen/typescript/api/generated/models/PickupCancelData.ts","../../../../../../../.codegen/typescript/api/generated/models/PickupCancelRequest.ts","../../../../../../../.codegen/typescript/api/generated/models/PickupData.ts","../../../../../../../.codegen/typescript/api/generated/models/PickupList.ts","../../../../../../../.codegen/typescript/api/generated/models/PickupRequest.ts","../../../../../../../.codegen/typescript/api/generated/models/PickupResponse.ts","../../../../../../../.codegen/typescript/api/generated/models/PickupUpdateData.ts","../../../../../../../.codegen/typescript/api/generated/models/PickupUpdateRequest.ts","../../../../../../../.codegen/typescript/api/generated/models/Rate.ts","../../../../../../../.codegen/typescript/api/generated/models/RateRequest.ts","../../../../../../../.codegen/typescript/api/generated/models/RateResponse.ts","../../../../../../../.codegen/typescript/api/generated/models/References.ts","../../../../../../../.codegen/typescript/api/generated/models/Shipment.ts","../../../../../../../.codegen/typescript/api/generated/models/ShipmentCancelRequest.ts","../../../../../../../.codegen/typescript/api/generated/models/ShipmentData.ts","../../../../../../../.codegen/typescript/api/generated/models/ShipmentList.ts","../../../../../../../.codegen/typescript/api/generated/models/ShipmentPurchaseData.ts","../../../../../../../.codegen/typescript/api/generated/models/ShipmentRateData.ts","../../../../../../../.codegen/typescript/api/generated/models/ShippingRequest.ts","../../../../../../../.codegen/typescript/api/generated/models/TokenObtainPair.ts","../../../../../../../.codegen/typescript/api/generated/models/TokenPair.ts","../../../../../../../.codegen/typescript/api/generated/models/TokenRefresh.ts","../../../../../../../.codegen/typescript/api/generated/models/TokenVerify.ts","../../../../../../../.codegen/typescript/api/generated/models/TrackerList.ts","../../../../../../../.codegen/typescript/api/generated/models/TrackingEvent.ts","../../../../../../../.codegen/typescript/api/generated/models/TrackingResponse.ts","../../../../../../../.codegen/typescript/api/generated/models/TrackingStatus.ts","../../../../../../../.codegen/typescript/api/generated/models/Webhook.ts","../../../../../../../.codegen/typescript/api/generated/models/WebhookData.ts","../../../../../../../.codegen/typescript/api/generated/models/WebhookList.ts","../../../../../../../.codegen/typescript/api/generated/models/WebhookTestRequest.ts","../../../../../../../.codegen/typescript/api/generated/apis/AddressesApi.ts","../../../../../../../.codegen/typescript/api/generated/apis/APIApi.ts","../../../../../../../.codegen/typescript/api/generated/apis/CarriersApi.ts","../../../../../../../.codegen/typescript/api/generated/apis/CustomsApi.ts","../../../../../../../.codegen/typescript/api/generated/apis/ParcelsApi.ts","../../../../../../../.codegen/typescript/api/generated/apis/PickupsApi.ts","../../../../../../../.codegen/typescript/api/generated/apis/ProxyApi.ts","../../../../../../../.codegen/typescript/api/generated/apis/ShipmentsApi.ts","../../../../../../../.codegen/typescript/api/generated/apis/TrackersApi.ts","../../../../../../../.codegen/typescript/api/generated/apis/WebhooksApi.ts","../../../../../../../.codegen/typescript/api/index.ts","../../../../../../../.codegen/typescript/api/purplship.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n",null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":["runtime.RequiredError","runtime.JSONApiResponse","runtime.BaseAPI","ListCarrierNameEnum","ListStatusEnum"],"mappings":";;;;;;IAAA;IACA;AACA;IACA;IACA;AACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;AACA;IACA,IAAI,aAAa,GAAG,SAAS,CAAC,EAAE,CAAC,EAAE;IACnC,IAAI,aAAa,GAAG,MAAM,CAAC,cAAc;IACzC,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAA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SAAS,EACtB,OAAO,EAAE;oBACP,QAAQ,EAAE,kBAAkB;oBAC5B,cAAc,EAAE,kBAAkB;iBACnC,IACE,YAAY,EACf,CAAC;YAEH,IAAI,CAAC,MAAM,GAAG,YAAY,CAAC;YAC3B,IAAI,CAAC,GAAG,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,CAAC;YAC9B,IAAI,CAAC,SAAS,GAAG,IAAI,YAAY,CAAC,MAAM,CAAC,CAAC;YAC1C,IAAI,CAAC,QAAQ,GAAG,IAAI,WAAW,CAAC,MAAM,CAAC,CAAC;YACxC,IAAI,CAAC,OAAO,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC;YACtC,IAAI,CAAC,OAAO,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC;YACtC,IAAI,CAAC,OAAO,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC;YACtC,IAAI,CAAC,KAAK,GAAG,IAAI,QAAQ,CAAC,MAAM,CAAC,CAAC;YAClC,IAAI,CAAC,SAAS,GAAG,IAAI,YAAY,CAAC,MAAM,CAAC,CAAC;YAC1C,IAAI,CAAC,QAAQ,GAAG,IAAI,WAAW,CAAC,MAAM,CAAC,CAAC;YACxC,IAAI,CAAC,QAAQ,GAAG,IAAI,WAAW,CAAC,MAAM,CAAC,CAAC;SACzC;QACH,sBAAC;IAAD,CAAC;;QC9DY,MAAM,GAAG,gBAAgB;;QAEP,6BAAe;QAC5C,mBAAY,EAAkD;gBAAhD,MAAM,YAAA,EAAE,IAAI,UAAA;mBACxB,kBAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,QAAA,EAAE,CAAC;SAClC;QACH,gBAAC;IAAD,CAJA,CAA+B,eAAe;;;;;;;;;;;"} \ No newline at end of file +{"version":3,"file":"purplship.js","sources":["../../../../../../../.codegen/typescript/node_modules/tslib/tslib.es6.js","../../../../../../../.codegen/typescript/api/generated/runtime.ts","../../../../../../../.codegen/typescript/api/generated/models/AddressValidation.ts","../../../../../../../.codegen/typescript/api/generated/models/Address.ts","../../../../../../../.codegen/typescript/api/generated/models/AddressData.ts","../../../../../../../.codegen/typescript/api/generated/models/AddressList.ts","../../../../../../../.codegen/typescript/api/generated/models/CarrierSettings.ts","../../../../../../../.codegen/typescript/api/generated/models/CarrierList.ts","../../../../../../../.codegen/typescript/api/generated/models/Charge.ts","../../../../../../../.codegen/typescript/api/generated/models/Commodity.ts","../../../../../../../.codegen/typescript/api/generated/models/CommodityData.ts","../../../../../../../.codegen/typescript/api/generated/models/Duty.ts","../../../../../../../.codegen/typescript/api/generated/models/Customs.ts","../../../../../../../.codegen/typescript/api/generated/models/CustomsData.ts","../../../../../../../.codegen/typescript/api/generated/models/CustomsList.ts","../../../../../../../.codegen/typescript/api/generated/models/Message.ts","../../../../../../../.codegen/typescript/api/generated/models/Metadata.ts","../../../../../../../.codegen/typescript/api/generated/models/Operation.ts","../../../../../../../.codegen/typescript/api/generated/models/OperationConfirmation.ts","../../../../../../../.codegen/typescript/api/generated/models/OperationResponse.ts","../../../../../../../.codegen/typescript/api/generated/models/Parcel.ts","../../../../../../../.codegen/typescript/api/generated/models/ParcelData.ts","../../../../../../../.codegen/typescript/api/generated/models/ParcelList.ts","../../../../../../../.codegen/typescript/api/generated/models/Payment.ts","../../../../../../../.codegen/typescript/api/generated/models/Pickup.ts","../../../../../../../.codegen/typescript/api/generated/models/PickupCancelData.ts","../../../../../../../.codegen/typescript/api/generated/models/PickupCancelRequest.ts","../../../../../../../.codegen/typescript/api/generated/models/PickupData.ts","../../../../../../../.codegen/typescript/api/generated/models/PickupList.ts","../../../../../../../.codegen/typescript/api/generated/models/PickupRequest.ts","../../../../../../../.codegen/typescript/api/generated/models/PickupResponse.ts","../../../../../../../.codegen/typescript/api/generated/models/PickupUpdateData.ts","../../../../../../../.codegen/typescript/api/generated/models/PickupUpdateRequest.ts","../../../../../../../.codegen/typescript/api/generated/models/Rate.ts","../../../../../../../.codegen/typescript/api/generated/models/RateRequest.ts","../../../../../../../.codegen/typescript/api/generated/models/RateResponse.ts","../../../../../../../.codegen/typescript/api/generated/models/References.ts","../../../../../../../.codegen/typescript/api/generated/models/Shipment.ts","../../../../../../../.codegen/typescript/api/generated/models/ShipmentCancelRequest.ts","../../../../../../../.codegen/typescript/api/generated/models/ShipmentData.ts","../../../../../../../.codegen/typescript/api/generated/models/ShipmentList.ts","../../../../../../../.codegen/typescript/api/generated/models/ShipmentPurchaseData.ts","../../../../../../../.codegen/typescript/api/generated/models/ShipmentRateData.ts","../../../../../../../.codegen/typescript/api/generated/models/ShippingRequest.ts","../../../../../../../.codegen/typescript/api/generated/models/TokenObtainPair.ts","../../../../../../../.codegen/typescript/api/generated/models/TokenPair.ts","../../../../../../../.codegen/typescript/api/generated/models/TokenRefresh.ts","../../../../../../../.codegen/typescript/api/generated/models/TokenVerify.ts","../../../../../../../.codegen/typescript/api/generated/models/TrackingEvent.ts","../../../../../../../.codegen/typescript/api/generated/models/TrackingStatus.ts","../../../../../../../.codegen/typescript/api/generated/models/TrackerList.ts","../../../../../../../.codegen/typescript/api/generated/models/TrackingResponse.ts","../../../../../../../.codegen/typescript/api/generated/models/Webhook.ts","../../../../../../../.codegen/typescript/api/generated/models/WebhookData.ts","../../../../../../../.codegen/typescript/api/generated/models/WebhookList.ts","../../../../../../../.codegen/typescript/api/generated/models/WebhookTestRequest.ts","../../../../../../../.codegen/typescript/api/generated/apis/AddressesApi.ts","../../../../../../../.codegen/typescript/api/generated/apis/APIApi.ts","../../../../../../../.codegen/typescript/api/generated/apis/CarriersApi.ts","../../../../../../../.codegen/typescript/api/generated/apis/CustomsApi.ts","../../../../../../../.codegen/typescript/api/generated/apis/ParcelsApi.ts","../../../../../../../.codegen/typescript/api/generated/apis/PickupsApi.ts","../../../../../../../.codegen/typescript/api/generated/apis/ProxyApi.ts","../../../../../../../.codegen/typescript/api/generated/apis/ShipmentsApi.ts","../../../../../../../.codegen/typescript/api/generated/apis/TrackersApi.ts","../../../../../../../.codegen/typescript/api/generated/apis/WebhooksApi.ts","../../../../../../../.codegen/typescript/api/index.ts","../../../../../../../.codegen/typescript/api/purplship.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n",null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":["runtime.RequiredError","runtime.JSONApiResponse","runtime.BaseAPI","ListCarrierNameEnum","ListStatusEnum"],"mappings":";;;;;;IAAA;IACA;AACA;IACA;IACA;AACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;AACA;IACA,IAAI,aAAa,GAAG,SAAS,CAAC,EAAE,CAAC,EAAE;IACnC,IAAI,aAAa,GAAG,MAAM,CAAC,cAAc;IACzC,SAAS,EAAE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G,IAAI,WAAW,CAAC,MAAM,CAAC,CAAC;SACzC;QACH,sBAAC;IAAD,CAAC;;aC9DuB,SAAS,CAAC,MAAc,EAAE,IAA4C,EAAE,YAA8B;QAA5E,qBAAA,EAAA,oCAA4C;QAAE,6BAAA,EAAA,sBAA8B;QAC5H,IAAM,YAAY,GAA4B;YAC5C,QAAQ,EAAE,IAAI;YACd,MAAM,EAAK,YAAY,SAAI,MAAQ;SACpC,CAAC;QAEF,OAAO,IAAI,eAAe,CAAC,YAAY,CAAC,CAAC;IAC3C,CAAC;IAED,SAAS,CAAC,MAAM,GAAG,eAAe;;;;;;;;"} \ No newline at end of file diff --git a/server/main/purplship/server/templates/admin/base_site.html b/server/main/purplship/server/templates/admin/base_site.html index 9b7da7a076..dcad2d8890 100644 --- a/server/main/purplship/server/templates/admin/base_site.html +++ b/server/main/purplship/server/templates/admin/base_site.html @@ -1,6 +1,19 @@ {% extends "admin/base_site.html" %} +{% load i18n static %} {% load static %} {% block extrastyle %} {% endblock %} + +{% block userlinks %} + {% if site_url %} + {% translate 'Health Status' %} / + {% endif %} + {% translate 'OpenAPI' %} / + {% translate 'GraphQL' %} / + {% if user.has_usable_password %} + {% translate 'Change password' %} / + {% endif %} + {% translate 'Log out' %} +{% endblock %} diff --git a/server/main/purplship/server/templates/drf-yasg/redoc.html b/server/main/purplship/server/templates/drf-yasg/redoc.html index d7d28e7a6c..bae8887b53 100644 --- a/server/main/purplship/server/templates/drf-yasg/redoc.html +++ b/server/main/purplship/server/templates/drf-yasg/redoc.html @@ -20,7 +20,7 @@ height: 40px; background-color: rgba(50, 50, 159, 70%); border-radius: 50%; - z-index: 2; + z-index: 10; box-shadow: rgb(0 0 0 / 30%) 0px 0px 20px; } @@ -33,7 +33,7 @@ {% endblock %} {% block extra_body %} - + {% endblock %} diff --git a/server/main/purplship/server/urls/__init__.py b/server/main/purplship/server/urls/__init__.py index 32d6eab776..80e3130943 100644 --- a/server/main/purplship/server/urls/__init__.py +++ b/server/main/purplship/server/urls/__init__.py @@ -22,24 +22,29 @@ APP_VERSION = getattr(settings, "VERSION", "") APP_NAME = getattr(settings, "APP_NAME", "Purplship") +BASE_PATH = getattr(settings, "BASE_PATH", "") admin.site.site_header = APP_NAME admin.site.site_title = f"{APP_NAME} shipping API" admin.site.index_title = "Administration" - +admin.site.site_url = f"/{BASE_PATH}" urlpatterns = [ - path("", include("purplship.server.urls.schema")), - path("api/", include("rest_framework.urls", namespace="rest_framework")), - path("", include("purplship.server.urls.jwt")), - path("", include("purplship.server.user.urls")), - *[path("", include(urls)) for urls in settings.PURPLSHIP_URLS], - path("admin/", admin.site.urls, name="app_admin"), + path( + BASE_PATH, + include( + [ + path("", include("purplship.server.urls.schema")), + path( + "api/", include("rest_framework.urls", namespace="rest_framework") + ), + path("", include("purplship.server.urls.jwt")), + path("", include("purplship.server.user.urls")), + *[path("", include(urls)) for urls in settings.PURPLSHIP_URLS], + path("admin/", admin.site.urls, name="app_admin"), + *staticfiles_urlpatterns(), + ] + ), + name="purplship:index", + ), ] - -if settings.HAS_EMBEDDED_CLIENT: - urlpatterns += [ - path("", include("purplship.server.user.urls")), - ] - -urlpatterns += staticfiles_urlpatterns() diff --git a/server/main/setup.py b/server/main/setup.py index bccdcb67f8..b9112f9322 100644 --- a/server/main/setup.py +++ b/server/main/setup.py @@ -7,46 +7,45 @@ version = v.read().strip() setup( - name='purplship.server', - version=version, - description='Multi-carrier shipping API', - long_description=long_description, - long_description_content_type="text/markdown", - url='https://github.com/purplship/purplship-server', - author='purplship', - author_email='danielk.developer@gmail.com', - license='Apache License Version 2.0', - packages=find_namespace_packages("."), - install_requires=[ - 'django', - 'djangorestframework', - 'djangorestframework-simplejwt', - 'django-constance', - 'django-filter', - 'django-picklefield', - 'django-email-verification', - 'django-cors-headers', - 'django-redis', - 'drf-api-tracking', - 'drf-yasg', - 'gunicorn', - 'uvicorn', - 'jsonfield', - 'more-itertools', - 'requests', - 'python-decouple', - 'purplship.server.core', - ], - entry_points={ - "console_scripts": ["purplship = purplship.server.__main__:main"] - }, - dependency_links=[ - 'https://git.io/purplship', - ], - classifiers=[ - "Programming Language :: Python :: 3", - "License :: OSI Approved :: Apache Software License", - ], - zip_safe=False, - include_package_data=True + name="purplship.server", + version=version, + description="Multi-carrier shipping API", + long_description=long_description, + long_description_content_type="text/markdown", + url="https://github.com/purplship/purplship-server", + author="purplship", + author_email="danielk.developer@gmail.com", + license="Apache License Version 2.0", + packages=find_namespace_packages("."), + install_requires=[ + "django", + "djangorestframework", + "djangorestframework-simplejwt", + "django-constance", + "django-filter", + "django-picklefield", + "django-email-verification", + "django-cors-headers", + "django-redis", + "drf-api-tracking", + "drf-yasg", + "gunicorn", + "hiredis", + "uvicorn", + "jsonfield", + "more-itertools", + "requests", + "python-decouple", + "purplship.server.core", + ], + entry_points={"console_scripts": ["purplship = purplship.server.__main__:main"]}, + dependency_links=[ + "https://git.io/purplship", + ], + classifiers=[ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: Apache Software License", + ], + zip_safe=False, + include_package_data=True, ) diff --git a/server/modules/core/MANIFEST.in b/server/modules/core/MANIFEST.in deleted file mode 100644 index 59f57a0555..0000000000 --- a/server/modules/core/MANIFEST.in +++ /dev/null @@ -1 +0,0 @@ -recursive-include purpleserver/user/templates * diff --git a/server/modules/core/purplship/server/core/datatypes.py b/server/modules/core/purplship/server/core/datatypes.py index 0d1cd537bb..8a46d8b0ad 100644 --- a/server/modules/core/purplship/server/core/datatypes.py +++ b/server/modules/core/purplship/server/core/datatypes.py @@ -20,18 +20,27 @@ PickupUpdateRequest as BasePickupUpdateRequest, PickupCancelRequest as BasePickupCancelRequest, ConfirmationDetails as Confirmation, - TrackingEvent + TrackingEvent, + TrackingDetails, ) class ShipmentStatus(Enum): - created = 'created' - cancelled = 'cancelled' - purchased = 'purchased' + created = "created" + cancelled = "cancelled" + purchased = "purchased" class CarrierSettings: - def __init__(self, carrier_name: str, carrier_id: str, test: bool = None, active: bool = None, id: str = None, **kwargs): + def __init__( + self, + carrier_name: str, + carrier_id: str, + test: bool = None, + active: bool = None, + id: str = None, + **kwargs + ): self.carrier_name = carrier_name self.carrier_id = carrier_id self.active = active @@ -39,14 +48,15 @@ def __init__(self, carrier_name: str, carrier_id: str, test: bool = None, active self.id = id for name, value in kwargs.items(): - if name not in ['carrier_ptr', 'created_by']: + if name not in ["carrier_ptr", "created_by"]: self.__setattr__(name, value) # TODO: rename this to avoid confusion def dict(self): return { - name: value for name, value in self.__dict__.items() - if name not in ['carrier_name', 'created_by', 'active', 'capabilities'] + name: value + for name, value in self.__dict__.items() + if name not in ["carrier_name", "created_by", "active", "capabilities"] } @classmethod @@ -229,10 +239,11 @@ class Tracking: carrier_name: str carrier_id: str tracking_number: str - events: List[TrackingEvent] = JList[TrackingEvent, REQUIRED] + events: List[TrackingEvent] = JList[TrackingEvent] status: str = "" delivered: bool = None + estimated_delivery: str = None id: str = None test_mode: bool = None diff --git a/server/modules/core/purplship/server/core/dataunits.py b/server/modules/core/purplship/server/core/dataunits.py index 3d3dc504de..493c6a335c 100644 --- a/server/modules/core/purplship/server/core/dataunits.py +++ b/server/modules/core/purplship/server/core/dataunits.py @@ -6,12 +6,14 @@ PACKAGE_MAPPERS = collect_providers_data() - -REFERENCE_MODELS = { +METADATA = { "APP_NAME": getattr(settings, "APP_NAME", "purplship"), - "APP_WEBSITE": getattr(settings, "APP_WEBSITE", "https://purplship.com"), "APP_VERSION": getattr(settings, "VERSION"), + "APP_WEBSITE": getattr(settings, "APP_WEBSITE", "https://purplship.com"), "MULTI_ORGANIZATIONS": getattr(settings, "MULTI_ORGANIZATIONS", False), +} + +REFERENCE_MODELS = { **collect_references(), "customs_content_type": {c.name: c.value for c in list(CustomsContentType)}, "incoterms": {c.name: c.value for c in list(Incoterm)}, diff --git a/server/modules/core/purplship/server/core/gateway.py b/server/modules/core/purplship/server/core/gateway.py index 88dd1bdd0b..0165b9db30 100644 --- a/server/modules/core/purplship/server/core/gateway.py +++ b/server/modules/core/purplship/server/core/gateway.py @@ -18,7 +18,9 @@ identity, post_processing, upper, + is_sdk_message, compute_tracking_status, + filter_rate_carrier_compatible_gateways, ) logger = logging.getLogger(__name__) @@ -72,11 +74,11 @@ def list(context=None, **kwargs) -> List[models.Carrier]: ) query += (carrier_is_active | system_carrier_is_active,) - # Check if a specific carrier_id is provide, to add it to the query + # Check if a specific carrier_id is provided, to add it to the query if "carrier_id" in list_filter: query += (Q(carrier_id=list_filter["carrier_id"]),) - # Check if a specific carrier_id is provide, to add it to the query + # Check if a specific carrier_id is provided, to add it to the query if "capability" in list_filter: query += (Q(capabilities__contains=[list_filter["capability"]]),) @@ -265,7 +267,10 @@ def cancel( @staticmethod def track( - payload: dict, carrier: models.Carrier = None, **carrier_filters + payload: dict, + carrier: models.Carrier = None, + raise_on_error: bool = True, + **carrier_filters, ) -> datatypes.TrackingResponse: carrier = carrier or Carriers.first( **{ @@ -284,24 +289,36 @@ def track( # The request call is wrapped in identity to simplify mocking in tests results, messages = identity(lambda: request.from_(carrier.gateway).parse()) - if not any(results or []): + if not any(results or []) and (raise_on_error or is_sdk_message(messages)): raise exceptions.PurplShipApiException( detail=datatypes.ErrorResponse(messages=messages), status_code=status.HTTP_404_NOT_FOUND, ) - return datatypes.TrackingResponse( - tracking=( - datatypes.Tracking( - **{ - **DP.to_dict(results[0]), - "id": f"trk_{uuid.uuid4().hex}", - "test_mode": carrier.test, - "status": compute_tracking_status(results[0]).value, - } + result = next(iter(results or []), None) + details = result or datatypes.TrackingDetails( + carrier_id=carrier.carrier_id, + carrier_name=carrier.carrier_name, + tracking_number=payload["tracking_numbers"][0], + events=[ + datatypes.TrackingEvent( + date=datetime.now().strftime("%Y-%m-%d"), + description="Awaiting package update...", + code="UNKNOWN", + time=datetime.now().strftime("%H:%M"), ) - if any(results) - else None + ], + delivered=False, + ) + + return datatypes.TrackingResponse( + tracking=datatypes.Tracking( + **{ + **DP.to_dict(details), + "id": f"trk_{uuid.uuid4().hex}", + "test_mode": carrier.test, + "status": compute_tracking_status(result).value, + } ), messages=messages, ) @@ -438,6 +455,7 @@ def fetch( payload: dict, carriers: List[models.Carrier] = None, **carrier_filters ) -> datatypes.RateResponse: carrier_ids = payload.get("carrier_ids", []) + shipper_country_code = payload["shipper"].get("country_code") carriers = carriers or Carriers.list( **{ **dict(active=True, capability="rating", carrier_ids=carrier_ids), @@ -445,9 +463,9 @@ def fetch( } ) - gateways = [ - c.gateway for c in carriers if "get_rates" in c.gateway.capabilities - ] + gateways = filter_rate_carrier_compatible_gateways( + carriers, carrier_ids, shipper_country_code + ) if len(gateways) == 0: raise NotFound("No active carrier connection found to process the request") diff --git a/server/modules/core/purplship/server/core/models/base.py b/server/modules/core/purplship/server/core/models/base.py index 1df4cf1f58..4705f2533a 100644 --- a/server/modules/core/purplship/server/core/models/base.py +++ b/server/modules/core/purplship/server/core/models/base.py @@ -1,10 +1,13 @@ import pydoc from uuid import uuid4 -from django.db import models from django.conf import settings -ACCESS_METHOD = getattr(settings, 'PURPLSHIP_ENTITY_ACCESS_METHOD', 'purplship.server.core.middleware.WideAccess') +ACCESS_METHOD = getattr( + settings, + "PURPLSHIP_ENTITY_ACCESS_METHOD", + "purplship.server.core.middleware.WideAccess", +) get_access_filter = pydoc.locate(ACCESS_METHOD)() @@ -13,12 +16,11 @@ def uuid(prefix: str = None): class ControlledAccessModel: - @classmethod def access_by(cls, context): - if hasattr(cls, 'created_by'): - key = 'created_by' + if hasattr(cls, "created_by"): + key = "created_by" else: - key = 'user' + key = "user" return cls.objects.filter(get_access_filter(context, key)) diff --git a/server/modules/core/purplship/server/core/serializers.py b/server/modules/core/purplship/server/core/serializers.py index 93b0ca87f5..8d2b99928c 100644 --- a/server/modules/core/purplship/server/core/serializers.py +++ b/server/modules/core/purplship/server/core/serializers.py @@ -430,20 +430,8 @@ class Duty(Serializer): ) class CustomsData(Serializer): - aes = CharField(required=False, allow_blank=True, allow_null=True) - eel_pfc = CharField(required=False, allow_blank=True, allow_null=True) - content_type = ChoiceField( - required=False, choices=CUSTOMS_CONTENT_TYPE, allow_blank=True, allow_null=True - ) - content_description = CharField(required=False, allow_blank=True, allow_null=True) - incoterm = ChoiceField( - required=False, - allow_null=True, - choices=INCOTERMS, - help_text="The customs 'term of trade' also known as 'incoterm'", - ) commodities = Commodity( - many=True, required=False, allow_null=True, help_text="The parcel content items" + many=True, required=True, help_text="The parcel content items" ) duty = Duty( required=False, @@ -453,6 +441,16 @@ class CustomsData(Serializer): Note that this is required for a Dutiable parcel shipped internationally. """, ) + content_type = ChoiceField( + required=False, choices=CUSTOMS_CONTENT_TYPE, allow_blank=True, allow_null=True + ) + content_description = CharField(required=False, allow_blank=True, allow_null=True) + incoterm = ChoiceField( + required=False, + allow_null=True, + choices=INCOTERMS, + help_text="The customs 'term of trade' also known as 'incoterm'", + ) invoice = CharField( required=False, allow_null=True, @@ -477,8 +475,29 @@ class CustomsData(Serializer): help_text="Indicate that signer certified confirmed all", ) signer = CharField(required=False, allow_blank=True, allow_null=True) - certificate_number = CharField(required=False, allow_blank=True, allow_null=True) - options = PlainDictField(required=False, allow_null=True) + options = PlainDictField( + required=False, + allow_null=True, + help_text=""" +
+ Customs identification options. + + ``` + { + "aes": "5218487281", + "eel_pfc": "5218487281", + "license_number": "5218487281", + "certificate_number": "5218487281", + "nip_number": "5218487281", + "eori_number": "5218487281", + "vat_registration_number": "5218487281", + } + ``` + + Please check the docs for carrier specific options. +
+ """, + ) class Customs(EntitySerializer, CustomsData): @@ -572,10 +591,26 @@ class RateRequest(Serializer): options = PlainDictField( required=False, allow_null=True, - help_text=f""" - The options available for the shipment. - - Please consult [the reference](#operation/references) for additional specific carriers options. + help_text=""" +
+ The options available for the shipment. + + ``` + { + "currency": "USD", + "insurance": 100.00, + "cash_on_delivery": 30.00, + "shipment_date": "2020-01-01", + "dangerous_good": true, + "declared_value": 150.00, + "email_notification": true, + "email_notification_to": shipper@mail.com, + "signature_confirmation": true, + } + ``` + + Please check the docs for carrier specific options. +
""", ) reference = CharField( @@ -928,10 +963,19 @@ class TrackingDetails(Serializer): choices=TRACKER_STATUS, help_text="The current tracking status", ) + estimated_delivery = CharField( + required=False, + help_text="The delivery estimated date", + ) class TrackingStatus(EntitySerializer, TrackingDetails): - pass + messages = Message( + required=False, + many=True, + default=[], + help_text="The list of note or warning messages", + ) @allow_model_id( @@ -966,8 +1010,25 @@ class ShippingData(Serializer): required=False, allow_null=True, help_text=""" - The options available for the shipment.
- Please consult [the reference](#operation/references) for additional specific carriers options. +
+ The options available for the shipment. + + ``` + { + "currency": "USD", + "insurance": 100.00, + "cash_on_delivery": 30.00, + "shipment_date": "2020-01-01", + "dangerous_good": true, + "declared_value": 150.00, + "email_notification": true, + "email_notification_to": shipper@mail.com, + "signature_confirmation": true, + } + ``` + + Please check the docs for carrier specific options. +
""", ) payment = Payment(required=False, allow_null=True, help_text="The payment details") @@ -1130,8 +1191,25 @@ class ShipmentContent(Serializer): required=False, allow_null=True, help_text=""" - The options available for the shipment.
- Please consult [the reference](#operation/references) for additional specific carriers options. +
+ The options available for the shipment. + + ``` + { + "currency": "USD", + "insurance": 100.00, + "cash_on_delivery": 30.00, + "shipment_date": "2020-01-01", + "dangerous_good": true, + "declared_value": 150.00, + "email_notification": true, + "email_notification_to": shipper@mail.com, + "signature_confirmation": true, + } + ``` + + Please check the docs for carrier specific options. +
""", ) diff --git a/server/modules/core/purplship/server/core/urls.py b/server/modules/core/purplship/server/core/urls.py index 212b675c16..3cc131c80b 100644 --- a/server/modules/core/purplship/server/core/urls.py +++ b/server/modules/core/purplship/server/core/urls.py @@ -2,9 +2,10 @@ purplship server core module urls """ from django.urls import include, path -from purplship.server.core.views import router +from purplship.server.core.views import metadata, router -app_name = 'purplship.server.core' +app_name = "purplship.server.core" urlpatterns = [ - path('v1/', include(router.urls)), + path("", metadata.view, name="metadata"), + path("v1/", include(router.urls), name="references"), ] diff --git a/server/modules/core/purplship/server/core/utils.py b/server/modules/core/purplship/server/core/utils.py index f9de7cc3eb..e24bf47474 100644 --- a/server/modules/core/purplship/server/core/utils.py +++ b/server/modules/core/purplship/server/core/utils.py @@ -3,7 +3,7 @@ from purplship.server.core import datatypes from purplship.server.core import serializers -T = TypeVar('T') +T = TypeVar("T") def identity(value: Union[Any, Callable]) -> T: @@ -14,10 +14,20 @@ def identity(value: Union[Any, Callable]) -> T: return value() if callable(value) else value -def post_processing(methods: List[str] = None): +def failsafe(callable: Callable[[], T]) -> T: + try: + return callable() + except Exception: + return None + +def post_processing(methods: List[str] = None): def class_wrapper(klass): - setattr(klass, 'post_process_functions', getattr(klass, 'post_process_functions') or []) + setattr( + klass, + "post_process_functions", + getattr(klass, "post_process_functions") or [], + ) for name in methods: method = getattr(klass, name) @@ -25,10 +35,14 @@ def class_wrapper(klass): def wrapper(*args, **kwargs): result = method(*args, **kwargs) processes = klass.post_process_functions - context = kwargs.get('context') + context = kwargs.get("context") return functools.reduce( - lambda cummulated_result, process: process(context, cummulated_result), processes, result + lambda cummulated_result, process: process( + context, cummulated_result + ), + processes, + result, ) setattr(klass, name, wrapper) @@ -42,13 +56,54 @@ def upper(value_str: Optional[str]) -> Optional[str]: if value_str is None: return None - return value_str.upper().replace('_', ' ') + return value_str.upper().replace("_", " ") -def compute_tracking_status(details: datatypes.Tracking) -> serializers.TrackerStatus: - if details.delivered: +def compute_tracking_status( + details: Optional[datatypes.Tracking] = None, +) -> serializers.TrackerStatus: + if details is None: + return serializers.TrackerStatus.pending + elif details.delivered: return serializers.TrackerStatus.delivered - elif (len(details.events) == 0) or (len(details.events) == 1 and details.events[0].code == 'CREATED'): + elif (len(details.events) == 0) or ( + len(details.events) == 1 and details.events[0].code == "CREATED" + ): return serializers.TrackerStatus.pending return serializers.TrackerStatus.in_transit + + +def is_sdk_message( + message: Optional[Union[datatypes.Message, List[datatypes.Message]]] +) -> bool: + msg = next(iter(message), None) if isinstance(message, list) else message + + return "SHIPPING_SDK_" in getattr(msg, "code", "") + + +def filter_rate_carrier_compatible_gateways( + carriers: List, carrier_ids: List[str], shipper_country_code: Optional[str] = None +) -> List: + """ + This function filters the carriers based on the capability to "get_rates" + and if no explicit carrier list is provided, it will filter out any + carrier that does not support the shipper's country code. + """ + return [ + carrier.gateway + for carrier in carriers + if ( + ("get_rates" in carrier.gateway.capabilities and len(carrier_ids) > 0) + or ( + "get_rates" in carrier.gateway.capabilities + and len(carrier_ids) == 0 + and shipper_country_code is not None + and any(carrier.gateway.settings.account_country_code or []) + and ( + carrier.gateway.settings.account_country_code + == shipper_country_code + ) + ) + ) + ] diff --git a/server/modules/core/purplship/server/core/validators.py b/server/modules/core/purplship/server/core/validators.py index 4edbac7a44..d4b0f2c1d4 100644 --- a/server/modules/core/purplship/server/core/validators.py +++ b/server/modules/core/purplship/server/core/validators.py @@ -100,7 +100,7 @@ def validate(self, data): if not re.match(r"^\d{5}(-\d{4})?$", formatted): raise serializers.ValidationError( { - "postal_code": "The American postal code must match 9999 or 99999" + "postal_code": "The American postal code must match 12345 and 12345-6789" } ) diff --git a/server/modules/core/purplship/server/core/views/metadata.py b/server/modules/core/purplship/server/core/views/metadata.py new file mode 100644 index 0000000000..5b134fe9d3 --- /dev/null +++ b/server/modules/core/purplship/server/core/views/metadata.py @@ -0,0 +1,42 @@ +from rest_framework.decorators import api_view, renderer_classes, permission_classes +from rest_framework.permissions import AllowAny +from rest_framework.response import Response +from rest_framework.request import Request +from rest_framework.renderers import JSONRenderer +from rest_framework.serializers import Serializer +from drf_yasg.utils import swagger_auto_schema + +from purplship.server.core.serializers import PlainDictField, CharField, BooleanField +from purplship.server.core import dataunits + +ENDPOINT_ID = "&&" # This endpoint id is used to make operation ids unique make sure not to duplicate + + +class Metadata(Serializer): + APP_NAME = CharField() + APP_VERSION = CharField() + APP_WEBSITE = CharField() + MULTI_ORGANIZATIONS = BooleanField() + ADMIN = CharField() + OPENAPI = CharField() + GRAPHQL = CharField() + + +@swagger_auto_schema( + methods=["get"], + tags=["API"], + operation_id=f"{ENDPOINT_ID}ping", + operation_summary="Instance Metadata", + responses={200: Metadata()}, +) +@api_view(["GET"]) +@permission_classes([AllowAny]) +@renderer_classes([JSONRenderer]) +def view(request: Request) -> Response: + metadata = { + **dataunits.METADATA, + "ADMIN": f"{request.build_absolute_uri()}admin/", + "OPENAPI": f"{request.build_absolute_uri()}openapi", + "GRAPHQL": f"{request.build_absolute_uri()}graphql", + } + return Response(metadata) diff --git a/server/modules/core/purplship/server/core/views/references.py b/server/modules/core/purplship/server/core/views/references.py index 82e3e998ef..291870c1fc 100644 --- a/server/modules/core/purplship/server/core/views/references.py +++ b/server/modules/core/purplship/server/core/views/references.py @@ -6,13 +6,15 @@ from rest_framework.renderers import JSONRenderer from rest_framework.serializers import Serializer from drf_yasg.utils import swagger_auto_schema -from django.urls import path +from django.urls import path, reverse +from django.conf import settings from purplship.server.core.router import router from purplship.server.core.serializers import PlainDictField, CharField, BooleanField from purplship.server.core import dataunits, validators ENDPOINT_ID = "&&" # This endpoint id is used to make operation ids unique make sure not to duplicate +BASE_PATH = getattr(settings, "BASE_PATH", "") class References(Serializer): @@ -20,6 +22,9 @@ class References(Serializer): APP_VERSION = CharField() APP_WEBSITE = CharField() MULTI_ORGANIZATIONS = BooleanField() + ADMIN = CharField() + OPENAPI = CharField() + GRAPHQL = CharField() ADDRESS_AUTO_COMPLETE = PlainDictField() countries = PlainDictField() @@ -36,26 +41,35 @@ class References(Serializer): packaging_types = PlainDictField() payment_types = PlainDictField() carrier_capabilities = PlainDictField() + service_levels = PlainDictField() @swagger_auto_schema( - methods=['get'], - tags=['API'], + methods=["get"], + tags=["API"], operation_id=f"{ENDPOINT_ID}data", operation_summary="Data References", - responses={200: References()} + responses={200: References()}, ) -@api_view(['GET']) +@api_view(["GET"]) @permission_classes([AllowAny]) @renderer_classes([JSONRenderer]) def references(request: Request): is_authenticated = request.auth is not None + host = request.build_absolute_uri( + reverse("purplship.server.core:metadata", kwargs={}) + ) + references = { - **dataunits.REFERENCE_MODELS, + **dataunits.METADATA, + "ADMIN": f"{host}admin/", + "OPENAPI": f"{host}openapi", + "GRAPHQL": f"{host}graphql", "ADDRESS_AUTO_COMPLETE": validators.Address.get_info(is_authenticated), + **dataunits.REFERENCE_MODELS, } return Response(references, status=status.HTTP_200_OK) -router.urls.append(path('references', references)) +router.urls.append(path("references", references)) diff --git a/server/modules/core/purplship/server/providers/extension/models/dhl_poland.py b/server/modules/core/purplship/server/providers/extension/models/dhl_poland.py new file mode 100644 index 0000000000..a7be5d6b9e --- /dev/null +++ b/server/modules/core/purplship/server/providers/extension/models/dhl_poland.py @@ -0,0 +1,28 @@ +from django.db import models +from purplship.core.utils import DP +from purplship.server.providers.models.carrier import Carrier + + +class DHLPolandSettings(Carrier): + class Meta: + db_table = "dhl-poland-settings" + verbose_name = "DHL Poland Settings" + verbose_name_plural = "DHL Poland Settings" + + username = models.CharField(max_length=200) + password = models.CharField(max_length=200) + account_number = models.CharField(max_length=200, blank=True) + services = models.ManyToManyField("ServiceLevel", blank=True) + + @property + def carrier_name(self) -> str: + return "dhl_poland" + + @property + def default_services(self): + from purplship.mappers.dhl_poland import DEFAULT_SERVICES + + return DP.to_dict(DEFAULT_SERVICES) + + +SETTINGS = DHLPolandSettings diff --git a/server/modules/core/purplship/server/providers/extension/models/fedex.py b/server/modules/core/purplship/server/providers/extension/models/fedex.py index 788ad45756..10eeab1c0c 100644 --- a/server/modules/core/purplship/server/providers/extension/models/fedex.py +++ b/server/modules/core/purplship/server/providers/extension/models/fedex.py @@ -5,18 +5,18 @@ class FedexSettings(Carrier): class Meta: db_table = "fedex-settings" - verbose_name = 'FedEx Settings' - verbose_name_plural = 'FedEx Settings' + verbose_name = "FedEx Settings" + verbose_name_plural = "FedEx Settings" - user_key = models.CharField(max_length=200) password = models.CharField(max_length=200) meter_number = models.CharField(max_length=200) account_number = models.CharField(max_length=200) + user_key = models.CharField(max_length=200, blank=True) account_country_code = models.CharField(max_length=3, blank=True, choices=COUNTRIES) @property def carrier_name(self) -> str: - return 'fedex' + return "fedex" SETTINGS = FedexSettings diff --git a/server/modules/core/purplship/server/providers/migrations/0018_alter_fedexsettings_user_key.py b/server/modules/core/purplship/server/providers/migrations/0018_alter_fedexsettings_user_key.py new file mode 100644 index 0000000000..5dd520f2a8 --- /dev/null +++ b/server/modules/core/purplship/server/providers/migrations/0018_alter_fedexsettings_user_key.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.9 on 2021-11-11 19:38 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('providers', '0017_auto_20210805_0359'), + ] + + operations = [ + migrations.AlterField( + model_name='fedexsettings', + name='user_key', + field=models.CharField(blank=True, max_length=200), + ), + ] diff --git a/server/modules/core/purplship/server/providers/migrations/0019_dhlpolandsettings_servicelevel.py b/server/modules/core/purplship/server/providers/migrations/0019_dhlpolandsettings_servicelevel.py new file mode 100644 index 0000000000..101e720387 --- /dev/null +++ b/server/modules/core/purplship/server/providers/migrations/0019_dhlpolandsettings_servicelevel.py @@ -0,0 +1,65 @@ +# Generated by Django 3.2.9 on 2021-11-24 12:32 + +from django.conf import settings +from django.db import migrations, models +import django.db.models.deletion +import functools +import purplship.server.core.models.base + + +class Migration(migrations.Migration): + + dependencies = [ + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ('providers', '0018_alter_fedexsettings_user_key'), + ] + + operations = [ + migrations.CreateModel( + name='ServiceLevel', + fields=[ + ('created_at', models.DateTimeField(auto_now_add=True)), + ('updated_at', models.DateTimeField(auto_now=True)), + ('id', models.CharField(default=functools.partial(purplship.server.core.models.base.uuid, *(), **{'prefix': 'svc_'}), editable=False, max_length=50, primary_key=True, serialize=False)), + ('service_name', models.CharField(max_length=50)), + ('service_code', models.CharField(max_length=50)), + ('description', models.CharField(blank=True, max_length=250, null=True)), + ('active', models.BooleanField(default=True, null=True)), + ('cost', models.FloatField(blank=True, null=True)), + ('currency', models.CharField(blank=True, choices=[('EUR', 'EUR'), ('AED', 'AED'), ('USD', 'USD'), ('XCD', 'XCD'), ('AMD', 'AMD'), ('ANG', 'ANG'), ('AOA', 'AOA'), ('ARS', 'ARS'), ('AUD', 'AUD'), ('AWG', 'AWG'), ('AZN', 'AZN'), ('BAM', 'BAM'), ('BBD', 'BBD'), ('BDT', 'BDT'), ('XOF', 'XOF'), ('BGN', 'BGN'), ('BHD', 'BHD'), ('BIF', 'BIF'), ('BMD', 'BMD'), ('BND', 'BND'), ('BOB', 'BOB'), ('BRL', 'BRL'), ('BSD', 'BSD'), ('BTN', 'BTN'), ('BWP', 'BWP'), ('BYN', 'BYN'), ('BZD', 'BZD'), ('CAD', 'CAD'), ('CDF', 'CDF'), ('XAF', 'XAF'), ('CHF', 'CHF'), ('NZD', 'NZD'), ('CLP', 'CLP'), ('CNY', 'CNY'), ('COP', 'COP'), ('CRC', 'CRC'), ('CUC', 'CUC'), ('CVE', 'CVE'), ('CZK', 'CZK'), ('DJF', 'DJF'), ('DKK', 'DKK'), ('DOP', 'DOP'), ('DZD', 'DZD'), ('EGP', 'EGP'), ('ERN', 'ERN'), ('ETB', 'ETB'), ('FJD', 'FJD'), ('GBP', 'GBP'), ('GEL', 'GEL'), ('GHS', 'GHS'), ('GMD', 'GMD'), ('GNF', 'GNF'), ('GTQ', 'GTQ'), ('GYD', 'GYD'), ('HKD', 'HKD'), ('HNL', 'HNL'), ('HRK', 'HRK'), ('HTG', 'HTG'), ('HUF', 'HUF'), ('IDR', 'IDR'), ('ILS', 'ILS'), ('INR', 'INR'), ('IRR', 'IRR'), ('ISK', 'ISK'), ('JMD', 'JMD'), ('JOD', 'JOD'), ('JPY', 'JPY'), ('KES', 'KES'), ('KGS', 'KGS'), ('KHR', 'KHR'), ('KMF', 'KMF'), ('KPW', 'KPW'), ('KRW', 'KRW'), ('KWD', 'KWD'), ('KYD', 'KYD'), ('KZT', 'KZT'), ('LAK', 'LAK'), ('LKR', 'LKR'), ('LRD', 'LRD'), ('LSL', 'LSL'), ('LYD', 'LYD'), ('MAD', 'MAD'), ('MDL', 'MDL'), ('MGA', 'MGA'), ('MKD', 'MKD'), ('MMK', 'MMK'), ('MNT', 'MNT'), ('MOP', 'MOP'), ('MRO', 'MRO'), ('MUR', 'MUR'), ('MVR', 'MVR'), ('MWK', 'MWK'), ('MXN', 'MXN'), ('MYR', 'MYR'), ('MZN', 'MZN'), ('NAD', 'NAD'), ('XPF', 'XPF'), ('NGN', 'NGN'), ('NIO', 'NIO'), ('NOK', 'NOK'), ('NPR', 'NPR'), ('OMR', 'OMR'), ('PEN', 'PEN'), ('PGK', 'PGK'), ('PHP', 'PHP'), ('PKR', 'PKR'), ('PLN', 'PLN'), ('PYG', 'PYG'), ('QAR', 'QAR'), ('RSD', 'RSD'), ('RUB', 'RUB'), ('RWF', 'RWF'), ('SAR', 'SAR'), ('SBD', 'SBD'), ('SCR', 'SCR'), ('SDG', 'SDG'), ('SEK', 'SEK'), ('SGD', 'SGD'), ('SHP', 'SHP'), ('SLL', 'SLL'), ('SOS', 'SOS'), ('SRD', 'SRD'), ('SSP', 'SSP'), ('STD', 'STD'), ('SYP', 'SYP'), ('SZL', 'SZL'), ('THB', 'THB'), ('TJS', 'TJS'), ('TND', 'TND'), ('TOP', 'TOP'), ('TRY', 'TRY'), ('TTD', 'TTD'), ('TWD', 'TWD'), ('TZS', 'TZS'), ('UAH', 'UAH'), ('UYU', 'UYU'), ('UZS', 'UZS'), ('VEF', 'VEF'), ('VND', 'VND'), ('VUV', 'VUV'), ('WST', 'WST'), ('YER', 'YER'), ('ZAR', 'ZAR')], max_length=4, null=True)), + ('estimated_transit_days', models.IntegerField(blank=True, null=True)), + ('max_weight', models.FloatField(blank=True, null=True)), + ('max_width', models.FloatField(blank=True, null=True)), + ('max_height', models.FloatField(blank=True, null=True)), + ('max_length', models.FloatField(blank=True, null=True)), + ('weight_unit', models.CharField(blank=True, choices=[('KG', 'KG'), ('LB', 'LB')], max_length=2, null=True)), + ('dimension_unit', models.CharField(blank=True, choices=[('CM', 'CM'), ('IN', 'IN')], max_length=2, null=True)), + ('domicile', models.BooleanField(null=True)), + ('international', models.BooleanField(null=True)), + ('created_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), + ], + options={ + 'verbose_name': 'Service Level', + 'verbose_name_plural': 'Service Levels', + 'db_table': 'service-level', + 'ordering': ['-created_at'], + }, + bases=(purplship.server.core.models.base.ControlledAccessModel, models.Model), + ), + migrations.CreateModel( + name='DHLPolandSettings', + fields=[ + ('carrier_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='providers.carrier')), + ('username', models.CharField(max_length=200)), + ('password', models.CharField(max_length=200)), + ('account_number', models.CharField(blank=True, max_length=200)), + ('services', models.ManyToManyField(blank=True, to='providers.ServiceLevel')), + ], + options={ + 'verbose_name': 'DHL Poland Settings', + 'verbose_name_plural': 'DHL Poland Settings', + 'db_table': 'dhl-poland-settings', + }, + bases=('providers.carrier',), + ), + ] diff --git a/server/modules/core/purplship/server/providers/models/__init__.py b/server/modules/core/purplship/server/providers/models/__init__.py index 54fe0d79a1..8fdd72ce63 100644 --- a/server/modules/core/purplship/server/providers/models/__init__.py +++ b/server/modules/core/purplship/server/providers/models/__init__.py @@ -3,7 +3,7 @@ from typing import Any, Dict from purplship import gateway -from purplship.server.providers.models.carrier import Carrier +from purplship.server.providers.models.carrier import Carrier, ServiceLevel import purplship.server.providers.extension.models as extensions logger = logging.getLogger(__name__) diff --git a/server/modules/core/purplship/server/providers/models/carrier.py b/server/modules/core/purplship/server/providers/models/carrier.py index 97d18a2a54..51be5ce8cb 100644 --- a/server/modules/core/purplship/server/providers/models/carrier.py +++ b/server/modules/core/purplship/server/providers/models/carrier.py @@ -1,4 +1,3 @@ -import typing from functools import partial from django.db import models @@ -7,7 +6,7 @@ from purplship import gateway from purplship.core.utils import Enum -from purplship.core.units import Country +from purplship.core.units import Country, Currency, DimensionUnit, WeightUnit from purplship.api.gateway import Gateway from purplship.server.core.models import OwnedEntity, uuid from purplship.server.core.datatypes import CarrierSettings @@ -15,10 +14,10 @@ class CarrierCapabilities(Enum): - pickup = 'pickup' - rating = 'rating' - shipping = 'shipping' - tracking = 'tracking' + pickup = "pickup" + rating = "rating" + shipping = "shipping" + tracking = "tracking" @classmethod def get_capabilities(cls): @@ -27,30 +26,53 @@ def get_capabilities(cls): CAPABILITIES_CHOICES = [(c, c) for c in CarrierCapabilities.get_capabilities()] COUNTRIES = [(c.name, c.name) for c in Country] - +CURRENCIES = [(c.name, c.name) for c in Currency] +WEIGHT_UNITS = [(c.name, c.name) for c in WeightUnit] +DIMENSION_UNITS = [(c.name, c.name) for c in DimensionUnit] class CarrierManager(models.Manager): def get_queryset(self): from purplship.server.providers.models import MODELS - return super().get_queryset().prefetch_related(*[Model.__name__.lower() for Model in MODELS.values()]) + + return ( + super() + .get_queryset() + .prefetch_related(*[Model.__name__.lower() for Model in MODELS.values()]) + ) class Carrier(OwnedEntity): class Meta: - ordering = ['test', '-created_at'] - - id = models.CharField(max_length=50, primary_key=True, default=partial(uuid, prefix='car_'), editable=False) + ordering = ["test", "-created_at"] + + id = models.CharField( + max_length=50, + primary_key=True, + default=partial(uuid, prefix="car_"), + editable=False, + ) carrier_id = models.CharField( - max_length=200, help_text="eg. canadapost, dhl_express, fedex, purolator_courrier, ups...") + max_length=200, + help_text="eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", + ) test = models.BooleanField(default=True) active = models.BooleanField(default=True) - created_by = models.ForeignKey(settings.AUTH_USER_MODEL, blank=True, null=True, on_delete=models.CASCADE, editable=False) - active_users = models.ManyToManyField(settings.AUTH_USER_MODEL, blank=True, related_name='active_users') + created_by = models.ForeignKey( + settings.AUTH_USER_MODEL, + blank=True, + null=True, + on_delete=models.CASCADE, + editable=False, + ) + active_users = models.ManyToManyField( + settings.AUTH_USER_MODEL, blank=True, related_name="active_users" + ) capabilities = MultiChoiceField( models.CharField(max_length=50, choices=CAPABILITIES_CHOICES), default=CarrierCapabilities.get_capabilities, - size=len(CAPABILITIES_CHOICES)) + size=len(CAPABILITIES_CHOICES), + ) objects = CarrierManager() @@ -60,11 +82,14 @@ def __str__(self): def _linked_settings(self): from purplship.server.providers.models import MODELS - return next(( - getattr(self, Model.__name__.lower()) - for Model in MODELS.values() - if hasattr(self, Model.__name__.lower()) - ), None) + return next( + ( + getattr(self, Model.__name__.lower()) + for Model in MODELS.values() + if hasattr(self, Model.__name__.lower()) + ), + None, + ) @property def settings(self): @@ -76,13 +101,60 @@ def carrier_name(self): @property def data(self) -> CarrierSettings: - return CarrierSettings.create({ - 'id': self.settings.id, - 'carrier_name': self.settings.carrier_name, - **model_to_dict(self.settings) - }) + _extra = dict() + + if hasattr(self.settings, "services"): + _extra.update( + services=[model_to_dict(s) for s in self.settings.services.all()] + ) + + return CarrierSettings.create( + { + "id": self.settings.id, + "carrier_name": self.settings.carrier_name, + **model_to_dict(self.settings), + **_extra, + } + ) @property def gateway(self) -> Gateway: return gateway[self.settings.carrier_name].create({**self.data.dict()}) + +class ServiceLevel(OwnedEntity): + class Meta: + db_table = "service-level" + verbose_name = "Service Level" + verbose_name_plural = "Service Levels" + ordering = ["-created_at"] + + id = models.CharField( + max_length=50, + primary_key=True, + default=partial(uuid, prefix="svc_"), + editable=False, + ) + service_name = models.CharField(max_length=50) + service_code = models.CharField(max_length=50) + description = models.CharField(max_length=250, null=True, blank=True) + active = models.BooleanField(null=True, default=True) + + cost = models.FloatField(blank=True, null=True) + currency = models.CharField(max_length=4, choices=CURRENCIES, null=True, blank=True) + + estimated_transit_days = models.IntegerField(blank=True, null=True) + + max_weight = models.FloatField(blank=True, null=True) + max_width = models.FloatField(blank=True, null=True) + max_height = models.FloatField(blank=True, null=True) + max_length = models.FloatField(blank=True, null=True) + weight_unit = models.CharField( + max_length=2, choices=WEIGHT_UNITS, null=True, blank=True + ) + dimension_unit = models.CharField( + max_length=2, choices=DIMENSION_UNITS, null=True, blank=True + ) + + domicile = models.BooleanField(null=True) + international = models.BooleanField(null=True) diff --git a/server/modules/core/purplship/server/user/forms.py b/server/modules/core/purplship/server/user/forms.py index 8cb3bafe30..20027fa539 100644 --- a/server/modules/core/purplship/server/user/forms.py +++ b/server/modules/core/purplship/server/user/forms.py @@ -8,7 +8,7 @@ ValidationError, ) from django.utils.translation import gettext_lazy as _ -from django_email_verification import send_email +from purplship.server.user.utils import send_email class SignUpForm(UserCreationForm): diff --git a/server/modules/core/purplship/server/user/utils.py b/server/modules/core/purplship/server/user/utils.py new file mode 100644 index 0000000000..8809cefda1 --- /dev/null +++ b/server/modules/core/purplship/server/user/utils.py @@ -0,0 +1,52 @@ +from django_email_verification.token import default_token_generator +from django_email_verification.confirm import ( + Thread, + InvalidUserModel, + EmailMultiAlternatives, + _get_validated_field, + render_to_string, +) + + +def send_email(user, thread=True, **kwargs): + try: + user.save() + + if kwargs.get("custom_salt"): + default_token_generator.key_salt = kwargs["custom_salt"] + + expiry_ = kwargs.get("expiry") + token, expiry = default_token_generator.make_token(user, expiry_) + + sender = _get_validated_field("EMAIL_FROM_ADDRESS") + domain = _get_validated_field("EMAIL_PAGE_DOMAIN") + subject = _get_validated_field("EMAIL_MAIL_SUBJECT") + mail_plain = _get_validated_field("EMAIL_MAIL_PLAIN") + mail_html = _get_validated_field("EMAIL_MAIL_HTML") + + args = (user, token, expiry, sender, domain, subject, mail_plain, mail_html) + if thread: + t = Thread(target=send_email_thread, args=args) + t.start() + else: + send_email_thread(*args) + except AttributeError: + raise InvalidUserModel("The user model you provided is invalid") + + +def send_email_thread( + user, token, expiry, sender, domain, subject, mail_plain, mail_html +): + domain += "/" if not domain.endswith("/") else "" + + link = domain + "email/" + token + + context = {"link": link, "expiry": expiry, "user": user} + + text = render_to_string(mail_plain, context) + + html = render_to_string(mail_html, context) + + msg = EmailMultiAlternatives(subject, text, sender, [user.email]) + msg.attach_alternative(html, "text/html") + msg.send() diff --git a/server/modules/core/setup.py b/server/modules/core/setup.py index 5e28a9064a..0a642a1817 100644 --- a/server/modules/core/setup.py +++ b/server/modules/core/setup.py @@ -5,7 +5,7 @@ setup( name="purplship.server.core", - version="2021.10.2", + version="2021.11.5", description="Multi-carrier shipping API Core module", long_description=long_description, long_description_content_type="text/markdown", @@ -13,7 +13,7 @@ author="purplship", author_email="hello@purplship.com", license="Apache License Version 2.0", - packages=find_namespace_packages(), + packages=find_namespace_packages(exclude=["tests.*", "tests"]), install_requires=[ "purplship", "psycopg2-binary", diff --git a/server/modules/events/purplship/server/events/migrations/0002_event.py b/server/modules/events/purplship/server/events/migrations/0002_event.py new file mode 100644 index 0000000000..56be69cb4b --- /dev/null +++ b/server/modules/events/purplship/server/events/migrations/0002_event.py @@ -0,0 +1,39 @@ +# Generated by Django 3.2.9 on 2021-11-13 13:38 + +from django.conf import settings +from django.db import migrations, models +import django.db.models.deletion +import functools +import purplship.server.core.models.base +import purplship.server.core.utils + + +class Migration(migrations.Migration): + + dependencies = [ + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ('events', '0001_initial'), + ] + + operations = [ + migrations.CreateModel( + name='Event', + fields=[ + ('created_at', models.DateTimeField(auto_now_add=True)), + ('updated_at', models.DateTimeField(auto_now=True)), + ('id', models.CharField(default=functools.partial(purplship.server.core.models.base.uuid, *(), **{'prefix': 'evt_'}), editable=False, max_length=50, primary_key=True, serialize=False)), + ('type', models.CharField(max_length=50)), + ('data', models.JSONField(default=functools.partial(purplship.server.core.utils.identity, *(), **{'value': {}}))), + ('test_mode', models.BooleanField()), + ('pending_webhooks', models.IntegerField(default=0)), + ('created_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), + ], + options={ + 'verbose_name': 'Event', + 'verbose_name_plural': 'Events', + 'db_table': 'event', + 'ordering': ['-created_at'], + }, + bases=(purplship.server.core.models.base.ControlledAccessModel, models.Model), + ), + ] diff --git a/server/modules/events/purplship/server/events/models.py b/server/modules/events/purplship/server/events/models.py index 535beb754d..c7d036c6ff 100644 --- a/server/modules/events/purplship/server/events/models.py +++ b/server/modules/events/purplship/server/events/models.py @@ -2,17 +2,23 @@ from django.db import models from django.contrib.postgres import fields +from purplship.server.core.utils import identity from purplship.server.core.models import OwnedEntity, uuid class Webhook(OwnedEntity): class Meta: db_table = "webhook" - verbose_name = 'Webhook' - verbose_name_plural = 'Webhooks' - ordering = ['-created_at'] + verbose_name = "Webhook" + verbose_name_plural = "Webhooks" + ordering = ["-created_at"] - id = models.CharField(max_length=50, primary_key=True, default=partial(uuid, prefix='web_'), editable=False) + id = models.CharField( + max_length=50, + primary_key=True, + default=partial(uuid, prefix="web_"), + editable=False, + ) enabled_events = fields.ArrayField(models.CharField(max_length=200), blank=False) url = models.URLField(max_length=200) @@ -25,4 +31,24 @@ class Meta: failure_streak_count = models.IntegerField(default=0) def __str__(self): - return f'{self.id} + {self.url}' + return f"{self.id} + {self.url}" + + +class Event(OwnedEntity): + class Meta: + db_table = "event" + verbose_name = "Event" + verbose_name_plural = "Events" + ordering = ["-created_at"] + + id = models.CharField( + max_length=50, + primary_key=True, + default=partial(uuid, prefix="evt_"), + editable=False, + ) + + type = models.CharField(max_length=50) + data = models.JSONField(default=partial(identity, value={})) + test_mode = models.BooleanField(null=False) + pending_webhooks = models.IntegerField(default=0) diff --git a/server/modules/events/purplship/server/events/serializers/__init__.py b/server/modules/events/purplship/server/events/serializers/__init__.py index 0d6629a3eb..101318e0bb 100644 --- a/server/modules/events/purplship/server/events/serializers/__init__.py +++ b/server/modules/events/purplship/server/events/serializers/__init__.py @@ -1,2 +1,3 @@ from purplship.server.events.serializers.base import * from purplship.server.events.serializers.webhook import WebhookSerializer +from purplship.server.events.serializers.event import EventSerializer diff --git a/server/modules/events/purplship/server/events/serializers/event.py b/server/modules/events/purplship/server/events/serializers/event.py new file mode 100644 index 0000000000..aa12f7bd11 --- /dev/null +++ b/server/modules/events/purplship/server/events/serializers/event.py @@ -0,0 +1,9 @@ +from purplship.server.serializers import owned_model_serializer, ModelSerializer +from purplship.server.events.models import Event + + +@owned_model_serializer +class EventSerializer(ModelSerializer): + class Meta: + model = Event + exclude = ["created_at", "updated_at", "created_by"] diff --git a/server/modules/events/purplship/server/events/signals.py b/server/modules/events/purplship/server/events/signals.py index 079fe360a9..b56a2998ab 100644 --- a/server/modules/events/purplship/server/events/signals.py +++ b/server/modules/events/purplship/server/events/signals.py @@ -1,6 +1,7 @@ import logging from django.db.models import signals +from purplship.server.core.utils import failsafe import purplship.server.core.serializers as serializers import purplship.server.manager.models as models import purplship.server.events.tasks as tasks @@ -17,14 +18,16 @@ def register_signals(): logger.info("webhooks signals registered...") -def shipment_updated(sender, instance, created, raw, using, update_fields, *args, **kwargs): +def shipment_updated( + sender, instance, created, raw, using, update_fields, *args, **kwargs +): """Shipment related events: - - shipment purchased (label purchased) - - shipment fulfilled (shipped) + - shipment purchased (label purchased) + - shipment fulfilled (shipped) """ changes = update_fields or {} - if created or 'status' not in changes: + if created or "status" not in changes: return elif instance.status == serializers.ShipmentStatus.purchased.value: event = EventTypes.shipment_purchased.value @@ -38,30 +41,40 @@ def shipment_updated(sender, instance, created, raw, using, update_fields, *args data = serializers.Shipment(instance).data event_at = instance.updated_at test_mode = instance.test_mode + context = dict( + user_id=failsafe(lambda: instance.created_by.id), + org_id=getattr(getattr(instance, "org", None), "id", None), + ) - tasks.notify_webhooks(event, data, event_at, test_mode) + tasks.notify_webhooks(event, data, event_at, context, test_mode) def shipment_cancelled(sender, instance, *args, **kwargs): """Shipment related events: - - shipment cancelled/deleted (label voided) + - shipment cancelled/deleted (label voided) """ event = EventTypes.shipment_cancelled.value data = serializers.Shipment(instance) event_at = instance.updated_at test_mode = instance.test_mode + context = dict( + user_id=failsafe(lambda: instance.created_by.id), + org_id=getattr(getattr(instance, "org", None), "id", None), + ) - tasks.notify_webhooks(event, data, event_at, test_mode) + tasks.notify_webhooks(event, data, event_at, context, test_mode) -def tracker_updated(sender, instance, created, raw, using, update_fields, *args, **kwargs): +def tracker_updated( + sender, instance, created, raw, using, update_fields, *args, **kwargs +): """Tracking related events: - - tracker created (pending) - - tracker status changed (in-transit, delivered or blocked) + - tracker created (pending) + - tracker status changed (in-transit, delivered or blocked) """ if created: event = EventTypes.tracker_created.value - elif any(field in (update_fields or []) for field in ['status']): + elif any(field in (update_fields or []) for field in ["status"]): event = EventTypes.tracker_updated.value else: return @@ -69,5 +82,9 @@ def tracker_updated(sender, instance, created, raw, using, update_fields, *args, data = serializers.TrackingStatus(instance).data event_at = instance.updated_at test_mode = instance.test_mode + context = dict( + user_id=failsafe(lambda: instance.created_by.id), + org_id=getattr(getattr(instance, "org", None), "id", None), + ) - tasks.notify_webhooks(event, data, event_at, test_mode) + tasks.notify_webhooks(event, data, event_at, context, test_mode) diff --git a/server/modules/events/purplship/server/events/tasks/__init__.py b/server/modules/events/purplship/server/events/tasks/__init__.py index e59ce58aea..8168672bb4 100644 --- a/server/modules/events/purplship/server/events/tasks/__init__.py +++ b/server/modules/events/purplship/server/events/tasks/__init__.py @@ -5,7 +5,9 @@ from purplship.server.events.tasks import tracking, webhook logger = logging.getLogger(__name__) -DEFAULT_TRACKERS_UPDATE_INTERVAL = int(getattr(settings, 'DEFAULT_TRACKERS_UPDATE_INTERVAL', 10800) / 60) +DEFAULT_TRACKERS_UPDATE_INTERVAL = int( + getattr(settings, "DEFAULT_TRACKERS_UPDATE_INTERVAL", 7200) / 60 +) @db_periodic_task(crontab(minute=f"*/{DEFAULT_TRACKERS_UPDATE_INTERVAL}")) diff --git a/server/modules/events/purplship/server/events/tasks/tracking.py b/server/modules/events/purplship/server/events/tasks/tracking.py index 4f7294afbb..88b625f202 100644 --- a/server/modules/events/purplship/server/events/tasks/tracking.py +++ b/server/modules/events/purplship/server/events/tasks/tracking.py @@ -1,13 +1,14 @@ import time import logging import datetime -from typing import List, cast, Tuple +from typing import List, Tuple from itertools import groupby from django.conf import settings from django.utils import timezone import purplship +from purplship.core.models import TrackingDetails, Message from purplship.core.utils import exec_parrallel, DP from purplship.api.interface import Gateway, IRequestFrom @@ -17,21 +18,33 @@ logger = logging.getLogger(__name__) Delay = int -RequestBatches = List[Tuple[Gateway, IRequestFrom, Delay, List[models.Tracking]]] -BatchResponse = List[datatypes.Tracking] +RequestBatches = Tuple[Gateway, IRequestFrom, Delay, List[models.Tracking]] +BatchResponse = List[Tuple[TrackingDetails, List[Message]]] -DEFAULT_TRACKERS_UPDATE_INTERVAL = getattr(settings, 'DEFAULT_TRACKERS_UPDATE_INTERVAL', 10800) +DEFAULT_TRACKERS_UPDATE_INTERVAL = getattr( + settings, "DEFAULT_TRACKERS_UPDATE_INTERVAL", 7200 +) -def update_trackers(delta: datetime.timedelta = datetime.timedelta(seconds=DEFAULT_TRACKERS_UPDATE_INTERVAL)): +def update_trackers( + delta: datetime.timedelta = datetime.timedelta( + seconds=DEFAULT_TRACKERS_UPDATE_INTERVAL + ), +): logger.info("> starting scheduled trackers update") time_threshold = timezone.now() - delta - active_trackers = models.Tracking.objects.filter(delivered=False, updated_at__lt=time_threshold) + active_trackers = models.Tracking.objects.filter( + delivered=False, updated_at__lt=time_threshold + ) if any(active_trackers): - trackers_grouped_by_carrier = [list(g) for _, g in groupby(active_trackers, key=lambda t: t.carrier_id)] - request_batches = sum([create_request_batches(group) for group in trackers_grouped_by_carrier], []) + trackers_grouped_by_carrier = [ + list(g) for _, g in groupby(active_trackers, key=lambda t: t.carrier_id) + ] + request_batches: List[RequestBatches] = sum( + [create_request_batches(group) for group in trackers_grouped_by_carrier], [] + ) responses = exec_parrallel(fetch_tracking_info, request_batches, 2) save_updated_trackers(responses, active_trackers) @@ -41,15 +54,15 @@ def update_trackers(delta: datetime.timedelta = datetime.timedelta(seconds=DEFAU logger.info("> ending scheduled trackers update") -def create_request_batches(trackers: List[models.Tracking]) -> RequestBatches: +def create_request_batches(trackers: List[models.Tracking]) -> List[RequestBatches]: start = 0 - end = 5 + end = 10 batches = [] while any(trackers[start:end]): try: # Add a request delay to avoid sending two request batches to a carrier at the same time - delay = int(((end/5) * 10) - 10) + delay = int(((end / 10) * 10) - 10) # Get the common tracking carrier carrier = trackers[0].tracking_carrier # Collect the 5 trackers between the start and end indexes @@ -59,17 +72,21 @@ def create_request_batches(trackers: List[models.Tracking]) -> RequestBatches: logger.debug(f"prepare tracking request for {tracking_numbers}") # Prepare and send tracking request(s) using the purplship interface. - request: IRequestFrom = purplship.Tracking.fetch(datatypes.TrackingRequest(tracking_numbers=tracking_numbers)) - gateway: Gateway = purplship.gateway[carrier.data.carrier_name].create(carrier.data.dict()) + request: IRequestFrom = purplship.Tracking.fetch( + datatypes.TrackingRequest(tracking_numbers=tracking_numbers) + ) + gateway: Gateway = purplship.gateway[carrier.data.carrier_name].create( + carrier.data.dict() + ) batches.append((gateway, request, delay, batch_trackers)) except Exception as request_error: - logger.warning(f'failed to prepare tracking batch ({start}, {end}) request') + logger.warning(f"failed to prepare tracking batch ({start}, {end}) request") logger.error(request_error, exc_info=True) - end += 5 - start += 5 + end += 10 + start += 10 return batches @@ -80,50 +97,63 @@ def fetch_tracking_info(request_batch: RequestBatches) -> BatchResponse: time.sleep(delay) # apply delay before request try: - tracking_details, messages = identity(lambda: request.from_(gateway).parse()) - return tracking_details + return identity(lambda: request.from_(gateway).parse()) except Exception as request_error: - logger.warning('batch request failed') + logger.warning("batch request failed") logger.error(request_error, exc_info=True) return [] -def save_updated_trackers(responses: List[BatchResponse], trackers: List[models.Tracking]): - logger.info('> saving updated trackers') +def save_updated_trackers( + responses: List[BatchResponse], trackers: List[models.Tracking] +): + logger.info("> saving updated trackers") - for tracking_details in responses: - - for details in cast(List[datatypes.Tracking], tracking_details): + for tracking_details, _ in responses: + for details in tracking_details: try: logger.debug(f"update tracking info for {details.tracking_number}") - - related_trackers = [t for t in trackers if t.tracking_number == details.tracking_number] + related_trackers = [ + t for t in trackers if t.tracking_number == details.tracking_number + ] for tracker in related_trackers: # update values only if changed; This is important for webhooks notification changes = [] status = compute_tracking_status(details).value - events = (DP.to_dict(details.events) if any(details.events) else tracker.events) + events = ( + DP.to_dict(details.events) + if any(details.events) + else tracker.events + ) if events != tracker.events: tracker.events = events - changes.append('events') + changes.append("events") if details.delivered != tracker.delivered: tracker.delivered = details.delivered - changes.append('delivered') + changes.append("delivered") if status != tracker.status: tracker.status = status - changes.append('status') + changes.append("status") + + if details.estimated_delivery != tracker.estimated_delivery: + tracker.estimated_delivery = details.estimated_delivery + changes.append("estimated_delivery") if any(changes): tracker.save(update_fields=changes) serializers.update_shipment_tracker(tracker) - logger.debug(f"tracking info {details.tracking_number} updated successfully") + logger.debug( + f"tracking info {details.tracking_number} updated successfully" + ) else: logger.debug(f"no changes detect") except Exception as update_error: - logger.warning(f'failed to update tracker with tracking number: {details.tracking_number}') + logger.warning( + f"failed to update tracker with tracking number: {details.tracking_number}" + ) logger.error(update_error, exc_info=True) diff --git a/server/modules/events/purplship/server/events/tasks/webhook.py b/server/modules/events/purplship/server/events/tasks/webhook.py index 3da5171ea7..60f2376933 100644 --- a/server/modules/events/purplship/server/events/tasks/webhook.py +++ b/server/modules/events/purplship/server/events/tasks/webhook.py @@ -2,31 +2,50 @@ import requests import logging from datetime import datetime +from django.conf import settings from django.db.models import Q +from django.contrib.auth import get_user_model from purplship.core import utils from purplship.server.core.utils import identity +from purplship.server.serializers import Context, SerializerDecorator from purplship.server.events import models +from purplship.server.events import serializers logger = logging.getLogger(__name__) NotificationResponse = typing.Tuple[str, requests.Response] +User = get_user_model() -def notify_webhook_subscribers(event: str, data: dict, event_at: datetime, test_mode: bool = None): +def notify_webhook_subscribers( + event: str, data: dict, event_at: datetime, ctx: dict, test_mode: bool = None +): logger.info(f"> starting {event} subscribers notification") + context = retrive_context(ctx) query = ( - (Q(enabled_events__contains=[event]) | Q(enabled_events__contains=['all'])), - (Q(disabled__isnull=True) | Q(disabled=False)) + (Q(enabled_events__contains=[event]) | Q(enabled_events__contains=["all"])), + (Q(disabled__isnull=True) | Q(disabled=False)), ) if test_mode is not None: query += (Q(test_mode=test_mode),) - webhooks = models.Webhook.objects.filter(*query) + webhooks = models.Webhook.access_by(context).filter(*query) + SerializerDecorator[serializers.EventSerializer]( + data=dict( + type=event, + data=data, + test_mode=test_mode, + pending_webhooks=webhooks.count(), + ), + context=context, + ).save() if any(webhooks): payload = dict(event=event, data=data) - responses: typing.List[NotificationResponse] = notify_subscribers(webhooks, payload) + responses: typing.List[NotificationResponse] = notify_subscribers( + webhooks, payload + ) update_notified_webhooks(webhooks, responses, event_at) else: logger.info("no subscribers found") @@ -35,21 +54,24 @@ def notify_webhook_subscribers(event: str, data: dict, event_at: datetime, test_ def notify_subscribers(webhooks: typing.List[models.Webhook], payload: dict): - def notify_subscriber(webhook: models.Webhook): - response = identity(lambda: requests.post( - webhook.url, - json=payload, - headers={'Content-type': 'application/json'} - )) + response = identity( + lambda: requests.post( + webhook.url, json=payload, headers={"Content-type": "application/json"} + ) + ) return webhook.id, response return utils.exec_async(notify_subscriber, webhooks) -def update_notified_webhooks(webhooks: typing.List[models.Webhook], responses: typing.List[NotificationResponse], event_at: datetime): - logger.info('> saving updated webhooks') +def update_notified_webhooks( + webhooks: typing.List[models.Webhook], + responses: typing.List[NotificationResponse], + event_at: datetime, +): + logger.info("> saving updated webhooks") for webhook_id, response in responses: try: @@ -69,5 +91,19 @@ def update_notified_webhooks(webhooks: typing.List[models.Webhook], responses: t logger.debug(f"webhook {webhook_id} updated successfully") except Exception as update_error: - logger.warning(f'failed to update webhook {webhook_id}') + logger.warning(f"failed to update webhook {webhook_id}") logger.error(update_error, exc_info=True) + + +def retrive_context(info: dict) -> Context: + org = None + + if settings.MULTI_ORGANIZATIONS and "org_id" in info: + import purplship.server.orgs.models as orgs_models + + org = orgs_models.Organization.objects.filter(id=info["org_id"]).first() + + return Context( + org=org, + user=User.objects.filter(id=info["user_id"]).first(), + ) diff --git a/server/modules/events/purplship/server/events/tests/__init__.py b/server/modules/events/purplship/server/events/tests/__init__.py index 753b8e3bfd..a571838350 100644 --- a/server/modules/events/purplship/server/events/tests/__init__.py +++ b/server/modules/events/purplship/server/events/tests/__init__.py @@ -1,2 +1,3 @@ from purplship.server.events.tests.test_tracking_tasks import * from purplship.server.events.tests.test_webhooks import * +from purplship.server.events.tests.test_events import * diff --git a/server/modules/events/purplship/server/events/tests/test_events.py b/server/modules/events/purplship/server/events/tests/test_events.py new file mode 100644 index 0000000000..e117b0725a --- /dev/null +++ b/server/modules/events/purplship/server/events/tests/test_events.py @@ -0,0 +1,143 @@ +import json +from datetime import datetime +from unittest.mock import patch, ANY +from django.urls import reverse +from rest_framework import status +from purplship.server.graph.tests.base import GraphTestCase +from purplship.server.events import serializers +from purplship.server.events.tasks import webhook + + +class TestEventCreation(GraphTestCase): + def setUp(self) -> None: + super().setUp() + + event_type = serializers.EventTypes.tracker_created.value + event_data = TRACKER_VALUE + event_at = datetime.now().strftime("%Y-%m-%d %H:%M:%S.%f%z") + test_mode = True + context = dict(user_id=self.user.id) + + webhook.notify_webhook_subscribers( + event_type, event_data, event_at, context, test_mode + ) + + def test_query_events(self): + response = self.query( + """ + query get_events { + events { + edges { + node { + id + type + data + test_mode + pending_webhooks + } + } + } + } + """, + op_name="get_events", + ) + response_data = json.loads(response.content) + + self.assertResponseNoErrors(response) + self.assertDictEqual(response_data, EVENTS_RESPONSE) + + def test_query_event(self): + response = self.query( + """ + query get_event($id: String!) { + event(id: $id) { + id + type + data + test_mode + pending_webhooks + } + } + """, + op_name="get_event", + variables=dict(id=self.user.event_set.first().id), + ) + response_data = json.loads(response.content) + + self.assertResponseNoErrors(response) + self.assertDictEqual(response_data, EVENT_RESPONSE) + + +TRACKER_VALUE = { + "tracking_number": "1Z12345E6205277936", + "test_mode": True, + "delivered": False, + "events": [ + { + "date": "2012-10-04", + "description": "Order Processed: Ready for UPS", + "location": "FR", + "code": "MP", + "time": "13:58", + } + ], + "status": "in-transit", +} + +EVENTS_RESPONSE = { + "data": { + "events": { + "edges": [ + { + "node": { + "id": ANY, + "type": "tracker.created", + "data": { + "events": [ + { + "code": "MP", + "date": "2012-10-04", + "time": "13:58", + "location": "FR", + "description": "Order Processed: Ready for UPS", + } + ], + "status": "in-transit", + "delivered": False, + "test_mode": True, + "tracking_number": "1Z12345E6205277936", + }, + "test_mode": True, + "pending_webhooks": 0, + } + } + ] + } + } +} + +EVENT_RESPONSE = { + "data": { + "event": { + "id": ANY, + "type": "tracker.created", + "data": { + "events": [ + { + "code": "MP", + "date": "2012-10-04", + "time": "13:58", + "location": "FR", + "description": "Order Processed: Ready for UPS", + } + ], + "status": "in-transit", + "delivered": False, + "test_mode": True, + "tracking_number": "1Z12345E6205277936", + }, + "test_mode": True, + "pending_webhooks": 0, + } + } +} diff --git a/server/modules/events/purplship/server/events/tests/test_tracking_tasks.py b/server/modules/events/purplship/server/events/tests/test_tracking_tasks.py index 588ef8de31..a7f1b6cd0b 100644 --- a/server/modules/events/purplship/server/events/tests/test_tracking_tasks.py +++ b/server/modules/events/purplship/server/events/tests/test_tracking_tasks.py @@ -124,6 +124,7 @@ def test_get_updated_trackers(self): "carrier_name": "dhl_universal", "carrier_id": "dhl_universal", "tracking_number": "00340434292135100124", + "estimated_delivery": None, "events": [ { "date": "2021-01-11", @@ -136,12 +137,14 @@ def test_get_updated_trackers(self): "delivered": False, "status": "in-transit", "test_mode": True, + "messages": [], }, { "id": ANY, "carrier_name": "ups", "carrier_id": "ups_package", "tracking_number": "1Z12345E6205277936", + "estimated_delivery": None, "events": [ { "date": "2012-10-04", @@ -154,6 +157,7 @@ def test_get_updated_trackers(self): "delivered": False, "status": "in-transit", "test_mode": True, + "messages": [], }, ], } @@ -196,6 +200,7 @@ def test_get_updated_trackers(self): "carrier_name": "dhl_universal", "carrier_id": "dhl_universal", "tracking_number": "00340434292135100124", + "estimated_delivery": None, "events": [ { "date": "2021-03-02", @@ -215,12 +220,14 @@ def test_get_updated_trackers(self): "delivered": False, "test_mode": True, "status": "in-transit", + "messages": [], }, { "id": ANY, "carrier_name": "ups", "carrier_id": "ups_package", "tracking_number": "1Z12345E6205277936", + "estimated_delivery": None, "events": [ { "date": "2012-10-04", @@ -233,6 +240,7 @@ def test_get_updated_trackers(self): "delivered": False, "test_mode": True, "status": "in-transit", + "messages": [], }, ], } diff --git a/server/modules/events/purplship/server/events/tests/test_webhooks.py b/server/modules/events/purplship/server/events/tests/test_webhooks.py index 6adeba2923..2bb1512f84 100644 --- a/server/modules/events/purplship/server/events/tests/test_webhooks.py +++ b/server/modules/events/purplship/server/events/tests/test_webhooks.py @@ -14,9 +14,8 @@ class TestWebhooks(APITestCase): - def test_create_webhook(self): - url = reverse('purplship.server.events:webhook-list') + url = reverse("purplship.server.events:webhook-list") data = WEBHOOK_DATA response = self.client.post(url, data) @@ -29,19 +28,23 @@ def test_create_webhook(self): class TestWebhookDetails(APITestCase): def setUp(self) -> None: super().setUp() - self.webhook: Webhook = Webhook.objects.create(**{ - "url": "http://localhost:8080", - "description": "Testing Hook", - "enabled_events": ["all"], - "test_mode": True, - "disabled": False, - "id": ANY, - "last_event_at": None, - "created_by": self.user - }) + self.webhook: Webhook = Webhook.objects.create( + **{ + "url": "http://localhost:8080", + "description": "Testing Hook", + "enabled_events": ["all"], + "test_mode": True, + "disabled": False, + "id": ANY, + "last_event_at": None, + "created_by": self.user, + } + ) def test_update_webhook(self): - url = reverse('purplship.server.events:webhook-details', kwargs=dict(pk=self.webhook.pk)) + url = reverse( + "purplship.server.events:webhook-details", kwargs=dict(pk=self.webhook.pk) + ) data = WEBHOOK_UPDATE_DATA response = self.client.patch(url, data) @@ -51,7 +54,9 @@ def test_update_webhook(self): self.assertDictEqual(response_data, WEBHOOK_UPDATED_RESPONSE) def test_webhook_notify(self): - url = reverse('purplship.server.events:webhook-details', kwargs=dict(pk=self.webhook.pk)) + url = reverse( + "purplship.server.events:webhook-details", kwargs=dict(pk=self.webhook.pk) + ) with patch("purplship.server.events.tasks.webhook.identity") as mocks: response = Response() @@ -59,10 +64,11 @@ def test_webhook_notify(self): mocks.return_value = response notify_webhook_subscribers( - event='shipment.purchased', - data={'shipment': 'content'}, + event="shipment.purchased", + data={"shipment": "content"}, event_at=NOTIFICATION_DATETIME, - test_mode=True + test_mode=True, + ctx=dict(user_id=self.user.id), ) response = self.client.get(url) @@ -71,50 +77,44 @@ def test_webhook_notify(self): self.assertDictEqual(response_data, WEBHOOK_NOTIFIED_RESPONSE) - WEBHOOK_DATA = { - "url": "http://localhost:8080", - "description": "Testing Hook", - "enabled_events": ["all"], - "test_mode": True + "url": "http://localhost:8080", + "description": "Testing Hook", + "enabled_events": ["all"], + "test_mode": True, } WEBHOOK_RESPONSE = { - "url": "http://localhost:8080", - "description": "Testing Hook", - "enabled_events": [ - "all" - ], - "test_mode": True, - "disabled": False, - "id": ANY, - "last_event_at": None + "url": "http://localhost:8080", + "description": "Testing Hook", + "enabled_events": ["all"], + "test_mode": True, + "disabled": False, + "id": ANY, + "last_event_at": None, } WEBHOOK_UPDATE_DATA = { - "description": "Testing Hook Updated", - "enabled_events": ["shipment.purchased", "shipment.cancelled"] + "description": "Testing Hook Updated", + "enabled_events": ["shipment.purchased", "shipment.cancelled"], } WEBHOOK_UPDATED_RESPONSE = { - "url": "http://localhost:8080", - "description": "Testing Hook Updated", - "enabled_events": [ - "shipment.purchased", - "shipment.cancelled" - ], - "test_mode": True, - "disabled": False, - "id": ANY, - "last_event_at": None + "url": "http://localhost:8080", + "description": "Testing Hook Updated", + "enabled_events": ["shipment.purchased", "shipment.cancelled"], + "test_mode": True, + "disabled": False, + "id": ANY, + "last_event_at": None, } WEBHOOK_NOTIFIED_RESPONSE = { - "url": "http://localhost:8080", - "description": "Testing Hook", - "enabled_events": ["all"], - "test_mode": True, - "disabled": False, - "id": ANY, - "last_event_at": NOTIFICATION_DATETIME.strftime("%Y-%m-%dT%H:%M:%S.%fZ") + "url": "http://localhost:8080", + "description": "Testing Hook", + "enabled_events": ["all"], + "test_mode": True, + "disabled": False, + "id": ANY, + "last_event_at": NOTIFICATION_DATETIME.strftime("%Y-%m-%dT%H:%M:%S.%fZ"), } diff --git a/server/modules/events/setup.py b/server/modules/events/setup.py index 3b40a3af7b..db745f5cc6 100644 --- a/server/modules/events/setup.py +++ b/server/modules/events/setup.py @@ -5,7 +5,7 @@ setup( name="purplship.server.events", - version="2021.10", + version="2021.11.5", description="Multi-carrier shipping API Events module", long_description=long_description, long_description_content_type="text/markdown", @@ -13,7 +13,7 @@ author="purplship", author_email="hello@purplship.com", license="Apache License Version 2.0", - packages=find_namespace_packages("."), + packages=find_namespace_packages(exclude=["tests.*", "tests"]), install_requires=["purplship.server.core", "huey"], classifiers=[ "Programming Language :: Python :: 3", diff --git a/server/modules/graph/MANIFEST.in b/server/modules/graph/MANIFEST.in new file mode 100644 index 0000000000..25aa0ea472 --- /dev/null +++ b/server/modules/graph/MANIFEST.in @@ -0,0 +1 @@ +recursive-include purplship/server/graph/templates * diff --git a/server/modules/graph/purplship/server/graph/extension/base/__init__.py b/server/modules/graph/purplship/server/graph/extension/base/__init__.py index 83196ed55b..f8932aaf0b 100644 --- a/server/modules/graph/purplship/server/graph/extension/base/__init__.py +++ b/server/modules/graph/purplship/server/graph/extension/base/__init__.py @@ -2,7 +2,6 @@ import graphene_django.filter as django_filter from purplship.server.user.serializers import TokenSerializer - import purplship.server.core.views.api as api import purplship.server.core.gateway as gateway import purplship.server.providers.models as providers @@ -18,19 +17,48 @@ class Query: user = graphene.Field(types.UserType) token = graphene.Field(types.TokenType, org_id=graphene.String(required=False)) - user_connections = graphene.List(types.ConnectionType, test=graphene.Boolean(required=False)) - system_connections = graphene.List(types.SystemConnectionType, test=graphene.Boolean(required=False)) + user_connections = graphene.List( + types.ConnectionType, test=graphene.Boolean(required=False) + ) + system_connections = graphene.List( + types.SystemConnectionType, test=graphene.Boolean(required=False) + ) default_templates = types.generic.GenericScalar() - address_templates = django_filter.DjangoFilterConnectionField(types.AddressTemplateType) - customs_templates = django_filter.DjangoFilterConnectionField(types.CustomsTemplateType) - parcel_templates = django_filter.DjangoFilterConnectionField(types.ParcelTemplateType) + address_templates = django_filter.DjangoFilterConnectionField( + types.AddressTemplateType + ) + customs_templates = django_filter.DjangoFilterConnectionField( + types.CustomsTemplateType + ) + parcel_templates = django_filter.DjangoFilterConnectionField( + types.ParcelTemplateType + ) log = graphene.Field(types.LogType, id=graphene.Int(required=True)) - logs = django_filter.DjangoFilterConnectionField(types.LogType, filterset_class=types.LogFilter) - shipments = django_filter.DjangoFilterConnectionField(types.ShipmentType) - trackers = django_filter.DjangoFilterConnectionField(types.TrackerType) - webhooks = django_filter.DjangoFilterConnectionField(types.WebhookType) + logs = django_filter.DjangoFilterConnectionField( + types.LogType, filterset_class=types.LogFilter + ) + + shipment = graphene.Field(types.ShipmentType, id=graphene.String(required=True)) + shipments = django_filter.DjangoFilterConnectionField( + types.ShipmentType, filterset_class=types.ShipmentFilter + ) + + tracker = graphene.Field(types.TrackerType, id=graphene.String(required=True)) + trackers = django_filter.DjangoFilterConnectionField( + types.TrackerType, filterset_class=types.TrackerFilter + ) + + webhook = graphene.Field(types.WebhookType, id=graphene.String(required=True)) + webhooks = django_filter.DjangoFilterConnectionField( + types.WebhookType, filterset_class=types.WebhookFilter + ) + + event = graphene.Field(types.EventType, id=graphene.String(required=True)) + events = django_filter.DjangoFilterConnectionField( + types.EventType, filterset_class=types.EventFilter + ) @types.login_required def resolve_user(self, info): @@ -42,7 +70,9 @@ def resolve_token(self, info, **kwargs): @types.login_required def resolve_user_connections(self, info, **kwargs): - connections = providers.Carrier.access_by(info.context).filter(created_by__isnull=False, **kwargs) + connections = providers.Carrier.access_by(info.context).filter( + created_by__isnull=False, **kwargs + ) return [connection.settings for connection in connections] @types.login_required @@ -52,7 +82,10 @@ def resolve_system_connections(self, info, **kwargs): @types.login_required def resolve_default_templates(self, info, **kwargs): templates = graph.Template.access_by(info.context).filter(is_default=True) - return [serializers.DefaultTemplateSerializer(template).data for template in templates] + return [ + serializers.DefaultTemplateSerializer(template).data + for template in templates + ] @types.login_required def resolve_address_templates(self, info, **kwargs): @@ -74,18 +107,38 @@ def resolve_log(self, info, **kwargs): def resolve_logs(self, info, **kwargs): return api.APILog.access_by(info.context) + @types.login_required + def resolve_shipment(self, info, **kwargs): + return manager.Shipment.access_by(info.context).filter(**kwargs).first() + @types.login_required def resolve_shipments(self, info, **kwargs): return manager.Shipment.access_by(info.context) + @types.login_required + def resolve_tracker(self, info, **kwargs): + return manager.Tracking.access_by(info.context).filter(**kwargs).first() + @types.login_required def resolve_trackers(self, info, **kwargs): return manager.Tracking.access_by(info.context) + @types.login_required + def resolve_webhook(self, info, **kwargs): + return events.Webhook.access_by(info.context).filter(**kwargs).first() + @types.login_required def resolve_webhooks(self, info, **kwargs): return events.Webhook.access_by(info.context) + @types.login_required + def resolve_event(self, info, **kwargs): + return events.Event.access_by(info.context).filter(**kwargs).first() + + @types.login_required + def resolve_events(self, info, **kwargs): + return events.Event.access_by(info.context) + class Mutation: update_user = mutations.UpdateUser.Field() @@ -96,14 +149,30 @@ class Mutation: request_password_reset = mutations.RequestPasswordReset.Field() confirm_password_reset = mutations.ConfirmPasswordReset.Field() - create_template = mutations.CreateTemplate.Field() - update_template = mutations.UpdateTemplate.Field() - delete_template = mutations.create_delete_mutation('DeleteTemplate', graph.Template).Field() - discard_commodity = mutations.create_delete_mutation( - 'DiscardCommodity', manager.Commodity, customs__template__isnull=False).Field() + "DiscardCommodity", manager.Commodity, customs__template__isnull=False + ).Field() create_connection = mutations.CreateConnection.Field() update_connection = mutations.UpdateConnection.Field() - delete_connection = mutations.create_delete_mutation('DeleteConnection', providers.Carrier).Field() + delete_connection = mutations.create_delete_mutation( + "DeleteConnection", providers.Carrier + ).Field() mutate_system_connection = mutations.SystemCarrierMutation.Field() + + create_address_template = mutations.create_template_mutation("Address").Field() + update_address_template = mutations.create_template_mutation( + "Address", True + ).Field() + + create_customs_template = mutations.create_template_mutation("Customs").Field() + update_customs_template = mutations.create_template_mutation( + "Customs", True + ).Field() + + create_parcel_template = mutations.create_template_mutation("Parcel").Field() + update_parcel_template = mutations.create_template_mutation("Parcel", True).Field() + + delete_template = mutations.create_delete_mutation( + "DeleteTemplate", graph.Template + ).Field() diff --git a/server/modules/graph/purplship/server/graph/extension/base/inputs.py b/server/modules/graph/purplship/server/graph/extension/base/inputs.py new file mode 100644 index 0000000000..4e6e09c8d3 --- /dev/null +++ b/server/modules/graph/purplship/server/graph/extension/base/inputs.py @@ -0,0 +1,65 @@ +import graphene +from graphene_django.rest_framework.serializer_converter import ( + convert_serializer_to_input_type as serializer_to_input, +) + +from purplship.server.core import serializers +from purplship.server.serializers import make_fields_optional +import purplship.server.graph.serializers as model_serializers +import purplship.server.graph.extension.base.types as types + + +def create_address_input(optional: bool = False) -> graphene.InputObjectType: + _method = "Partial" if optional else "" + _type = ( + model_serializers.AddressModelSerializer + if optional + else make_fields_optional(model_serializers.AddressModelSerializer) + ) + + return type( + f"{_method}AddressTemplate", + (serializer_to_input(_type),), + dict(), + ) + + +def create_customs_input(optional: bool = False) -> graphene.InputObjectType: + _method = "Partial" if optional else "" + _type = ( + model_serializers.CustomsModelSerializer + if optional + else make_fields_optional(model_serializers.CustomsModelSerializer) + ) + + return type( + f"{_method}CustomsTemplate", + (serializer_to_input(_type),), + dict( + duty=graphene.Field(serializer_to_input(serializers.Duty)), + options=types.generic.GenericScalar(), + ), + ) + + +def create_parcel_input(optional: bool = False) -> graphene.InputObjectType: + _method = "Partial" if optional else "" + _type = ( + model_serializers.ParcelModelSerializer + if optional + else make_fields_optional(model_serializers.ParcelModelSerializer) + ) + + return type( + f"{_method}ParcelTemplate", + (serializer_to_input(_type),), + dict(), + ) + + +CreateAddressTemplateInput = create_address_input() +UpdateAddressTemplateInput = create_address_input(optional=True) +CreateCustomsTemplateInput = create_customs_input() +UpdateCustomsTemplateInput = create_customs_input(optional=True) +CreateParcelTemplateInput = create_parcel_input() +UpdateParcelTemplateInput = create_parcel_input(optional=True) diff --git a/server/modules/graph/purplship/server/graph/extension/base/mutations.py b/server/modules/graph/purplship/server/graph/extension/base/mutations.py index 7d687f54a4..2113260615 100644 --- a/server/modules/graph/purplship/server/graph/extension/base/mutations.py +++ b/server/modules/graph/purplship/server/graph/extension/base/mutations.py @@ -1,5 +1,6 @@ import logging import graphene +from graphene_django.types import ErrorType from graphene_django.rest_framework import mutation from graphene_django.forms.mutation import DjangoFormMutation from django_email_verification import confirm as email_verification @@ -9,9 +10,11 @@ from purplship.server.serializers import save_many_to_many_data, SerializerDecorator from purplship.server.user.serializers import TokenSerializer, Token from purplship.server.providers import models as providers +from purplship.server.graph import models as graph import purplship.server.graph.forms as forms import purplship.server.graph.serializers as serializers import purplship.server.graph.extension.base.types as types +import purplship.server.graph.extension.base.inputs as inputs logger = logging.getLogger(__name__) @@ -25,16 +28,22 @@ class Meta: def get_serializer_kwargs(cls, root, info, **input): data = input.copy() - if 'id' in input: - instance = cls._meta.model_class.access_by(info.context).get(id=data.pop('id')) + if "id" in input: + instance = cls._meta.model_class.access_by(info.context).get( + id=data.pop("id") + ) - return {'instance': instance, 'data': data, 'partial': True, 'context': info.context} + return { + "instance": instance, + "data": data, + "partial": True, + "context": info.context, + } - return {'data': data, 'partial': False, 'context': info.context} + return {"data": data, "partial": False, "context": info.context} class CreateConnection(SerializerMutation): - class Meta: model_operations = ("create",) convert_choices_to_enum = False @@ -42,42 +51,107 @@ class Meta: class UpdateConnection(SerializerMutation): - class Meta: model_operations = ("update",) convert_choices_to_enum = False serializer_class = serializers.PartialConnectionModelSerializer + @classmethod + def get_serializer_kwargs(cls, root, info, **input): + kwargs = super().get_serializer_kwargs(root, info, **input) -class CreateTemplate(SerializerMutation): + instance = kwargs.get("instance") + settings_name = next( + (k for k in kwargs.get("data", {}).keys() if "settings" in k), "" + ) + settings_data = kwargs.get("data", {}).get(settings_name, {}) - class Meta: - model_operations = ("create",) - convert_choices_to_enum = False - serializer_class = serializers.make_fields_optional(serializers.TemplateModelSerializer) + if "services" in settings_data and instance is not None: + services = settings_data.pop("services") + settings = getattr(instance, "settings", None) + extra = {"context": info.context} + save_many_to_many_data( + "services", + serializers.ServiceLevelModelSerializer, + settings, + payload=dict(services=services), + **extra, + ) + return kwargs -class UpdateTemplate(SerializerMutation): - class Meta: - model_operations = ("update",) - convert_choices_to_enum = False - serializer_class = serializers.make_fields_optional(serializers.TemplateModelSerializer) +def create_template_mutation(template: str, update: bool = False): + _type = getattr(types, f"{template}TemplateType") + _model = getattr( + inputs, + f"Update{template}TemplateInput" + if update + else f"Create{template}TemplateInput", + ) + _props = {"id": (graphene.String(required=True) if update else None)} + _props[template.lower()] = graphene.Field(_model, required=True) - @classmethod - def get_serializer_kwargs(cls, root, info, **input): - kwargs = super().get_serializer_kwargs(root, info, **input) + _Base = type("Base", (), _props) - instance = kwargs.get('instance') - customs_data = kwargs.get('data', {}).get('customs', {}) + class Mutation: + errors = graphene.List(ErrorType) + template = graphene.Field(_type) - if 'commodities' in customs_data and instance is not None: - customs = getattr(instance, 'customs', None) - extra = {'context': info.context} - save_many_to_many_data( - 'commodities', serializers.CommodityModelSerializer, customs, payload=customs_data, **extra) + class Input(_Base): + label = graphene.String(required=not update) + is_default = graphene.Boolean(default=False) - return kwargs + @classmethod + @types.login_required + def mutate_and_get_payload(cls, root, info, **input): + data = input.copy() + instance = ( + graph.Template.access_by(info.context).get(id=input["id"]) + if "id" in input + else None + ) + customs_data = data.get("customs", {}) + + if "commodities" in customs_data and instance is not None: + customs = getattr(instance, "customs", None) + extra = {"context": info.context} + save_many_to_many_data( + "commodities", + serializers.CommodityModelSerializer, + customs, + payload=customs_data, + **extra, + ) + + serializer = serializers.TemplateModelSerializer( + instance, + data=data, + context=info.context, + partial=(instance is not None), + ) + + if not serializer.is_valid(): + return cls( + template=None, errors=ErrorType.from_errors(serializer.errors) + ) + + try: + template = ( + SerializerDecorator[serializers.TemplateModelSerializer]( + instance, data=data, context=info.context + ) + .save() + .instance + ) + serializers.ensure_unique_default_related_data( + data, context=info.context + ) + return cls(template=template) + except Exception as e: + return cls(errors=ErrorType.from_errors(e)) + + return type(_model.__name__, (Mutation, graphene.relay.ClientIDMutation), {}) class SystemCarrierMutation(graphene.relay.ClientIDMutation): @@ -93,12 +167,12 @@ def mutate_and_get_payload(cls, root, info, id: str, enable: bool): carrier = providers.Carrier.objects.get(id=id, created_by=None) if enable: - if hasattr(carrier, 'active_orgs'): + if hasattr(carrier, "active_orgs"): carrier.active_orgs.add(info.context.org) else: carrier.active_users.add(info.context.user) else: - if hasattr(carrier, 'active_orgs'): + if hasattr(carrier, "active_orgs"): carrier.active_orgs.remove(info.context.org) else: carrier.active_users.remove(info.context.user) @@ -120,13 +194,16 @@ def mutate_and_get_payload(cls, root, info, refresh: bool = None): if refresh and any(tokens): tokens.delete() - token = SerializerDecorator[TokenSerializer](data={}, context=info.context).save().instance + token = ( + SerializerDecorator[TokenSerializer](data={}, context=info.context) + .save() + .instance + ) return TokenMutation(token=token) class UpdateUser(SerializerMutation): - class Meta: model_operations = ("update",) serializer_class = serializers.UserModelSerializer @@ -135,7 +212,7 @@ class Meta: def get_serializer_kwargs(cls, root, info, **data): instance = cls._meta.model_class.objects.get(id=info.context.user.id) - return {'instance': instance, 'data': data, 'partial': True} + return {"instance": instance, "data": data, "partial": True} class RegisterUser(DjangoFormMutation): @@ -199,7 +276,7 @@ class Meta: @classmethod def get_form_kwargs(cls, root, info, **input): kwargs = super().get_form_kwargs(root, info, **input) - user = cls.get_user(input.get('uid')) + user = cls.get_user(input.get("uid")) kwargs.update(user=user) return kwargs @@ -209,7 +286,13 @@ def get_user(cls, uidb64): try: uid = urlsafe_base64_decode(uidb64).decode() user = types.User._default_manager.get(pk=uid) - except (TypeError, ValueError, OverflowError, types.User.DoesNotExist, ValidationError): + except ( + TypeError, + ValueError, + OverflowError, + types.User.DoesNotExist, + ValidationError, + ): user = None return user diff --git a/server/modules/graph/purplship/server/graph/extension/base/types.py b/server/modules/graph/purplship/server/graph/extension/base/types.py index 141a0d93d7..6105e5ba4f 100644 --- a/server/modules/graph/purplship/server/graph/extension/base/types.py +++ b/server/modules/graph/purplship/server/graph/extension/base/types.py @@ -1,12 +1,19 @@ import functools import graphene +import django_filters import graphene_django +import rest_framework.status as http_status from graphene.types import generic -import django_filters +from graphene.types.scalars import Scalar from rest_framework import exceptions +from django.db.models import Q from django.contrib.auth import get_user_model from django.utils.translation import gettext_lazy as _ +import django.forms as forms +from purplship.core.utils import DP +from purplship.server.events.serializers import EventTypes +import purplship.server.core.serializers as serializers import purplship.server.core.models as core import purplship.server.providers.models as providers import purplship.server.manager.models as manager @@ -15,6 +22,8 @@ import purplship.server.user.models as auth User = get_user_model() +CARRIER_NAMES = list(providers.MODELS.keys()) +HTTP_STATUS = [getattr(http_status, a) for a in dir(http_status) if "HTTP" in a] def login_required(func): @@ -22,15 +31,28 @@ def login_required(func): def wrapper(*args, **kwargs): *a, info = args if info.context.user.is_anonymous: - raise exceptions.AuthenticationFailed(_('You are not authenticated'), code='login_required') + raise exceptions.AuthenticationFailed( + _("You are not authenticated"), code="login_required" + ) return func(*args, **kwargs) + return wrapper +class CharInFilter(django_filters.BaseInFilter, django_filters.CharFilter): + pass + + +class ObjectType(Scalar): + @staticmethod + def serialize(data): + return data + + class CustomNode(graphene.Node): class Meta: - name = 'CustomNode' + name = "CustomNode" @classmethod def to_global_id(cls, type, id): @@ -40,57 +62,121 @@ def to_global_id(cls, type, id): class UserType(graphene_django.DjangoObjectType): class Meta: model = User - fields = ('email', 'full_name', 'is_staff', 'last_login', 'date_joined') + fields = ("email", "full_name", "is_staff", "last_login", "date_joined") -class ConnectionType: +class BaseConnectionType: carrier_name = graphene.String(required=True) def resolve_carrier_name(self, info): - return getattr(self, 'settings', self).carrier_name + return getattr(self, "settings", self).carrier_name -class SystemConnectionType(graphene_django.DjangoObjectType, ConnectionType): +class SystemConnectionType(graphene_django.DjangoObjectType, BaseConnectionType): enabled = graphene.Boolean(required=True) class Meta: model = providers.Carrier - fields = ('created_at', 'updated_at', 'id', 'test', 'carrier_id', 'carrier_name', 'active', 'test', 'capabilities') + fields = ( + "created_at", + "updated_at", + "id", + "test", + "carrier_id", + "carrier_name", + "active", + "test", + "capabilities", + ) def resolve_enabled(self, info): - if hasattr(self, 'org'): + if hasattr(self, "org"): return self.active_orgs.filter(id=info.context.org.id).exists() return self.active_users.filter(id=info.context.user.id).exists() class LogFilter(django_filters.FilterSet): + api_endpoint = django_filters.CharFilter(field_name="path", lookup_expr="icontains") + date_after = django_filters.DateTimeFilter( + field_name="requested_at", lookup_expr="gte" + ) + date_before = django_filters.DateTimeFilter( + field_name="requested_at", lookup_expr="lte" + ) + entity_id = django_filters.CharFilter(method="entity_filter", field_name="response") + method = django_filters.MultipleChoiceFilter( + field_name="method", + choices=[ + ("GET", "GET"), + ("POST", "POST"), + ("PATCH", "PATCH"), + ("DELETE", "DELETE"), + ], + ) status = django_filters.ChoiceFilter( - method='status_filter', choices=[('succeeded', 'succeeded'), ('failed', 'failed')]) + method="status_filter", + choices=[("succeeded", "succeeded"), ("failed", "failed")], + ) + status_code = django_filters.TypedMultipleChoiceFilter( + coerce=int, + field_name="status_code", + choices=[(s, s) for s in HTTP_STATUS], + ) class Meta: model = core.APILog - fields = {'path': ['contains']} + fields = [] def status_filter(self, queryset, name, value): - if value == 'succeeded': + if value == "succeeded": return queryset.filter(status_code__range=[200, 399]) - elif value == 'failed': + elif value == "failed": return queryset.filter(status_code__range=[400, 599]) return queryset + def entity_filter(self, queryset, name, value): + return queryset.filter(response__icontains=value) + class LogType(graphene_django.DjangoObjectType): + data = generic.GenericScalar() + response = generic.GenericScalar() + query_params = generic.GenericScalar() + class Meta: model = core.APILog + exclude = ( + "errors", + "view", + "view_method", + ) interfaces = (CustomNode,) + def resolve_response(self, info): + try: + return DP.to_dict(self.response) + except: + return self.response + + def resolve_data(self, info): + try: + return DP.to_dict(self.data) + except: + return self.data + + def resolve_query_params(self, info): + try: + return DP.to_dict(self.query_params) + except: + return self.query_params + class TokenType(graphene_django.DjangoObjectType): class Meta: model = auth.Token - exclude = ('user', ) + exclude = ("user",) class MessageType(graphene.ObjectType): @@ -125,7 +211,7 @@ class RateType(graphene.ObjectType): class CommodityType(graphene_django.DjangoObjectType): class Meta: model = manager.Commodity - exclude = ('customs_set', ) + exclude = ("customs_set",) class AddressType(graphene_django.DjangoObjectType): @@ -133,13 +219,16 @@ class AddressType(graphene_django.DjangoObjectType): class Meta: model = manager.Address - exclude = ('pickup_set', 'recipient', 'shipper', 'template') + exclude = ("pickup_set", "recipient", "shipper", "template") class ParcelType(graphene_django.DjangoObjectType): class Meta: model = manager.Parcel - exclude = ('shipment_parcels', 'template', ) + exclude = ( + "shipment_parcels", + "template", + ) class DutyType(graphene.ObjectType): @@ -154,10 +243,11 @@ class DutyType(graphene.ObjectType): class CustomsType(graphene_django.DjangoObjectType): commodities = graphene.List(CommodityType) duty = graphene.Field(DutyType) + options = generic.GenericScalar() class Meta: model = manager.Customs - exclude = ('shipment_set', 'template', 'options') + exclude = ("shipment_set", "template") def resolve_commodities(self, info): return self.commodities.all() @@ -168,10 +258,10 @@ class AddressTemplateType(graphene_django.DjangoObjectType): class Meta: model = graph.Template - exclude = ('customs', 'parcel') + exclude = ("customs", "parcel") filter_fields = { - 'label': ['icontains'], - 'address__address_line1': ['icontains'] + "label": ["icontains"], + "address__address_line1": ["icontains"], } interfaces = (CustomNode,) @@ -181,8 +271,8 @@ class CustomsTemplateType(graphene_django.DjangoObjectType): class Meta: model = graph.Template - exclude = ('address', 'parcel') - filter_fields = {'label': ['icontains']} + exclude = ("address", "parcel") + filter_fields = {"label": ["icontains"]} interfaces = (CustomNode,) @@ -191,8 +281,8 @@ class ParcelTemplateType(graphene_django.DjangoObjectType): class Meta: model = graph.Template - exclude = ('address', 'customs') - filter_fields = {'label': ['icontains']} + exclude = ("address", "customs") + filter_fields = {"label": ["icontains"]} interfaces = (CustomNode,) @@ -214,15 +304,59 @@ class TrackingEventType(graphene.ObjectType): time = graphene.String() +class TrackerFilter(django_filters.FilterSet): + created_after = django_filters.DateTimeFilter( + field_name="created_at", lookup_expr="gte" + ) + created_before = django_filters.DateTimeFilter( + field_name="created_at", lookup_expr="lte" + ) + carrier_name = django_filters.MultipleChoiceFilter( + method="carrier_filter", + choices=[(c, c) for c in CARRIER_NAMES], + ) + status = django_filters.MultipleChoiceFilter( + field_name="status", + choices=[(c.value, c.value) for c in list(serializers.TrackerStatus)], + ) + test_mode = django_filters.BooleanFilter(field_name="test_mode") + + class Meta: + model = manager.Tracking + fields = [] + + def carrier_filter(self, queryset, name, values): + _filters = [ + Q(**{f"tracking_carrier__{value.replace('_', '')}settings__isnull": False}) + for value in values + ] + query = _filters.pop() + + for item in _filters: + query |= item + + return queryset.filter(query) + + class TrackerType(graphene_django.DjangoObjectType): - tracking_carrier = graphene.Field(SystemConnectionType) - events = graphene.List(TrackingEventType) + carrier_id = graphene.String(required=True) + carrier_name = graphene.String(required=True) + + events = graphene.List(TrackingEventType, required=True) + messages = graphene.List(MessageType, required=True) + status = graphene.Enum.from_enum(serializers.TrackerStatus)(required=True) class Meta: model = manager.Tracking - filter_fields = ['delivered'] + filter_fields = ["tracking_carrier"] interfaces = (CustomNode,) + def resolve_carrier_id(self, info): + return getattr(self.tracking_carrier, "carrier_id", None) + + def resolve_carrier_name(self, info): + return getattr(self.tracking_carrier, "carrier_name", None) + class PaymentType(graphene.ObjectType): paid_by = graphene.String() @@ -231,69 +365,222 @@ class PaymentType(graphene.ObjectType): id = graphene.String() +class ShipmentFilter(django_filters.FilterSet): + address = django_filters.CharFilter( + field_name="recipient__address_line1", lookup_expr="icontains" + ) + created_after = django_filters.DateTimeFilter( + field_name="created_at", lookup_expr="gte" + ) + created_before = django_filters.DateTimeFilter( + field_name="created_at", lookup_expr="lte" + ) + carrier_name = django_filters.MultipleChoiceFilter( + method="carrier_filter", + choices=[(c, c) for c in CARRIER_NAMES], + ) + reference = django_filters.CharFilter( + field_name="reference", lookup_expr="icontains" + ) + service = CharInFilter( + method="service_filter", field_name="selected_rate__service", lookup_expr="in" + ) + status = django_filters.MultipleChoiceFilter( + field_name="status", + choices=[(c.value, c.value) for c in list(serializers.ShipmentStatus)], + ) + option_key = CharInFilter( + field_name="options", + method="option_key_filter", + ) + option_value = django_filters.CharFilter( + field_name="options", + method="option_value_filter", + ) + test_mode = django_filters.BooleanFilter(field_name="test_mode") + + class Meta: + model = manager.Shipment + fields = [] + + def carrier_filter(self, queryset, name, values): + _filters = [ + Q( + **{ + f"selected_rate_carrier__{value.replace('_', '')}settings__isnull": False + } + ) + for value in values + ] + query = Q(meta__rate_provider__in=values) + + for item in _filters: + query |= item + + return queryset.filter(query) + + def option_key_filter(self, queryset, name, value): + return queryset.filter(Q(options__has_key=value)) + + def option_value_filter(self, queryset, name, value): + return queryset.filter(Q(options__values__contains=value)) + + def service_filter(self, queryset, name, values): + return queryset.filter(Q(selected_rate__service__in=values)) + + class ShipmentType(graphene_django.DjangoObjectType): carrier_id = graphene.String() carrier_name = graphene.String() - shipper = graphene.Field(AddressType) - recipient = graphene.Field(AddressType) + shipper = graphene.Field(AddressType, required=True) + recipient = graphene.Field(AddressType, required=True) customs = graphene.Field(CustomsType) - parcels = graphene.List(ParcelType) + parcels = graphene.List(ParcelType, required=True) payment = graphene.Field(PaymentType) + service = graphene.String() services = graphene.List(graphene.String) carrier_ids = graphene.List(graphene.String) messages = graphene.List(MessageType) + selected_rate_id = graphene.String() selected_rate = graphene.Field(RateType) - rates = graphene.List(RateType) + rates = graphene.List(RateType, required=True) + carrier_ids = graphene.List(graphene.String) options = generic.GenericScalar() meta = generic.GenericScalar() + tracker_id = graphene.String() + + status = graphene.Enum.from_enum(serializers.ShipmentStatus)(required=True) class Meta: model = manager.Shipment - exclude = ('pickup_shipments', 'selected_rate_carrier', 'carriers') - filter_fields = ['status'] + exclude = ("pickup_shipments", "selected_rate_carrier", "carriers") + filter_fields = ["status"] interfaces = (CustomNode,) - def resolve_carrier_ids(self, info): - return [c.carrier_id for c in self.carriers or []] - def resolve_parcels(self, info): return self.parcels.all() def resolve_carrier_id(self, info): - return getattr(self.selected_rate_carrier, 'carrier_id', None) + return getattr(self.selected_rate_carrier, "carrier_id", None) + + def resolve_carrier_ids(self, info): + return getattr(self, "carrier_ids", None) def resolve_carrier_name(self, info): - return getattr(self.selected_rate_carrier, 'carrier_name', None) + return getattr(self.selected_rate_carrier, "carrier_name", None) + + +class WebhookFilter(django_filters.FilterSet): + created_after = django_filters.DateTimeFilter( + field_name="created_at", lookup_expr="gte" + ) + created_before = django_filters.DateTimeFilter( + field_name="created_at", lookup_expr="lte" + ) + description = django_filters.CharFilter( + field_name="description", lookup_expr="icontains" + ) + events = django_filters.MultipleChoiceFilter( + field_name="enabled_events", + method="events_filter", + choices=[(c.value, c.value) for c in list(EventTypes)], + ) + disabled = django_filters.BooleanFilter(field_name="disabled") + test_mode = django_filters.BooleanFilter(field_name="test_mode") + url = django_filters.CharFilter(field_name="url", lookup_expr="icontains") + + class Meta: + model = events.Webhook + fields = [] + + def events_filter(self, queryset, name, values): + return queryset.filter( + Q(enabled_events__contains=values) | Q(enabled_events__contains=["all"]) + ) class WebhookType(graphene_django.DjangoObjectType): class Meta: model = events.Webhook - exclude = ('failure_streak_count', ) - filter_fields = {'description': ['icontains']} + exclude = ("failure_streak_count",) + interfaces = (CustomNode,) + + +class EventFilter(django_filters.FilterSet): + date_after = django_filters.DateTimeFilter( + field_name="created_at", lookup_expr="gte" + ) + date_before = django_filters.DateTimeFilter( + field_name="created_at", lookup_expr="lte" + ) + entity_id = django_filters.CharFilter(method="entity_filter", field_name="response") + type = django_filters.MultipleChoiceFilter( + field_name="type", + method="types_filter", + choices=[(c.value, c.value) for c in list(EventTypes) if c != EventTypes.all], + ) + + class Meta: + model = events.Event + fields = [] + + def entity_filter(self, queryset, name, value): + try: + return queryset.filter(data__icontains=value) + except: + return queryset + + def types_filter(self, queryset, name, values): + return queryset.filter(Q(type__in=values)) + + +class EventType(graphene_django.DjangoObjectType): + data = generic.GenericScalar() + + class Meta: + model = events.Event + interfaces = (CustomNode,) + + +class ServiceLevelType(graphene_django.DjangoObjectType): + class Meta: + model = providers.ServiceLevel + exclude = ("dhlpolandsettings_set",) interfaces = (CustomNode,) def setup_carrier_model(model_type): _extra_fields = {} - if hasattr(model_type, 'account_country_code'): + if hasattr(model_type, "account_country_code"): _extra_fields.update(account_country_code=graphene.String(required=True)) + if hasattr(model_type, "services"): + + def resolve_services(self, info): + return self.services.all() + + _extra_fields.update( + services=graphene.List(ServiceLevelType), resolve_services=resolve_services + ) + class Meta: model = model_type - exclude = ('carrier_ptr', ) + exclude = ("carrier_ptr",) - return type(model_type.__name__, (graphene_django.DjangoObjectType, ConnectionType), { - 'Meta': Meta, - **_extra_fields - }) + return type( + model_type.__name__, + (graphene_django.DjangoObjectType, BaseConnectionType), + {"Meta": Meta, **_extra_fields}, + ) class ConnectionType(graphene.Union): - class Meta: - types = tuple(setup_carrier_model(carrier_model) for carrier_model in providers.MODELS.values()) + types = tuple( + setup_carrier_model(carrier_model) + for carrier_model in providers.MODELS.values() + ) diff --git a/server/modules/graph/purplship/server/graph/serializers.py b/server/modules/graph/purplship/server/graph/serializers.py index 2b6c2d46d8..d451bb8e2e 100644 --- a/server/modules/graph/purplship/server/graph/serializers.py +++ b/server/modules/graph/purplship/server/graph/serializers.py @@ -6,7 +6,6 @@ from purplship.core.utils import DP from purplship.server.serializers import ( ModelSerializer, - Serializer, save_one_to_one_data, save_many_to_many_data, owned_model_serializer, @@ -28,18 +27,29 @@ class UserModelSerializer(ModelSerializer): class Meta: model = User extra_kwargs = { - field: {'read_only': True} for field in ['is_staff', 'last_login', 'date_joined'] + field: {"read_only": True} + for field in ["is_staff", "last_login", "date_joined"] } - fields = ['email', 'full_name', 'is_active', 'is_staff', 'last_login', 'date_joined'] + fields = [ + "email", + "full_name", + "is_active", + "is_staff", + "last_login", + "date_joined", + ] @transaction.atomic def update(self, instance, data: dict, **kwargs): user = super().update(instance, data) # Set all organization where user is owner inactive - if data.get('is_active') == False and settings.MULTI_ORGANIZATIONS: + if data.get("is_active") == False and settings.MULTI_ORGANIZATIONS: from purplship.server.orgs import models as orgs - user_orgs = orgs.Organization.objects.filter(owner__organization_user__user__id=user.id) + + user_orgs = orgs.Organization.objects.filter( + owner__organization_user__user__id=user.id + ) user_orgs.update(is_active=False) return user @@ -52,10 +62,12 @@ class AddressModelSerializer(validators.AugmentedAddressSerializer, ModelSeriali class Meta: model = manager.Address extra_kwargs = { - **{key: {'required': True} for key in ['country_code']}, - **{key: {'read_only': False} for key in ['validate_location', 'validation']}, + **{key: {"required": True} for key in ["country_code"]}, + **{ + key: {"read_only": False} for key in ["validate_location", "validation"] + }, } - exclude = ['created_at', 'updated_at', 'created_by'] + exclude = ["id", "created_at", "updated_at", "created_by"] @owned_model_serializer @@ -64,40 +76,64 @@ class CommodityModelSerializer(ModelSerializer): class Meta: model = manager.Commodity - exclude = ['created_at', 'updated_at', 'created_by'] + exclude = ["created_at", "updated_at", "created_by"] @owned_model_serializer class CustomsModelSerializer(ModelSerializer): - NESTED_FIELDS = ['commodities'] + NESTED_FIELDS = ["commodities"] - commodities = make_fields_optional(CommodityModelSerializer)(many=True, allow_null=True, required=False) + incoterm = serializers.CharField(required=False, allow_null=True, allow_blank=True) + commodities = make_fields_optional(CommodityModelSerializer)( + many=True, allow_null=True, required=False + ) class Meta: model = manager.Customs - exclude = ['created_at', 'updated_at', 'created_by', 'options'] + exclude = ["id", "created_at", "updated_at", "created_by"] @transaction.atomic def create(self, validated_data: dict, context: dict): data = { - **{name: value for name, value in validated_data.items() if name not in self.NESTED_FIELDS}, - 'options': DP.to_dict(validated_data['options']) if 'options' in validated_data else None, - 'duty': DP.to_dict(validated_data['duty']) if 'duty' in validated_data else None + **{ + name: value + for name, value in validated_data.items() + if name not in self.NESTED_FIELDS + }, + "options": ( + validated_data["options"] if "options" in validated_data else None + ), + "duty": (validated_data["duty"] if "duty" in validated_data else None), } instance = super().create(data) save_many_to_many_data( - 'commodities', CommodityModelSerializer, instance, payload=validated_data, context=context) + "commodities", + CommodityModelSerializer, + instance, + payload=validated_data, + context=context, + ) return instance @transaction.atomic - def update(self, instance: manager.Customs, validated_data: dict, **kwargs) -> manager.Customs: + def update( + self, instance: manager.Customs, validated_data: dict, **kwargs + ) -> manager.Customs: data = { - **{name: value for name, value in validated_data.items() if name not in self.NESTED_FIELDS}, - 'options': DP.to_dict(validated_data['options']) if 'options' in validated_data else instance.options, - 'duty': DP.to_dict(validated_data['duty']) if 'duty' in validated_data else instance.duty + **{ + name: value + for name, value in validated_data.items() + if name not in self.NESTED_FIELDS + }, + "options": DP.to_dict(validated_data["options"]) + if "options" in validated_data + else instance.options, + "duty": DP.to_dict(validated_data["duty"]) + if "duty" in validated_data + else instance.duty, } return super().update(instance, data) @@ -105,9 +141,16 @@ def update(self, instance: manager.Customs, validated_data: dict, **kwargs) -> m @owned_model_serializer class ParcelModelSerializer(validators.PresetSerializer, ModelSerializer): + weight_unit = serializers.CharField( + required=False, allow_null=True, allow_blank=True + ) + dimension_unit = serializers.CharField( + required=False, allow_null=True, allow_blank=True + ) + class Meta: model = manager.Parcel - exclude = ['created_at', 'updated_at', 'created_by'] + exclude = ["id", "created_at", "updated_at", "created_by"] @owned_model_serializer @@ -118,15 +161,27 @@ class TemplateModelSerializer(ModelSerializer): class Meta: model = graph.Template - exclude = ['created_at', 'updated_at', 'created_by'] + exclude = ["created_at", "updated_at", "created_by"] @transaction.atomic def create(self, validated_data: dict, context: dict, **kwargs) -> graph.Template: data = { **validated_data, - 'address': save_one_to_one_data('address', AddressModelSerializer, payload=validated_data, context=context), - 'customs': save_one_to_one_data('customs', CustomsModelSerializer, payload=validated_data, context=context), - 'parcel': save_one_to_one_data('parcel', ParcelModelSerializer, payload=validated_data, context=context) + "address": save_one_to_one_data( + "address", + AddressModelSerializer, + payload=validated_data, + context=context, + ), + "customs": save_one_to_one_data( + "customs", + CustomsModelSerializer, + payload=validated_data, + context=context, + ), + "parcel": save_one_to_one_data( + "parcel", ParcelModelSerializer, payload=validated_data, context=context + ), } ensure_unique_default_related_data(validated_data, context=context) @@ -134,12 +189,24 @@ def create(self, validated_data: dict, context: dict, **kwargs) -> graph.Templat return super().create(data) @transaction.atomic - def update(self, instance: graph.Template, validated_data: dict, **kwargs) -> graph.Template: - data = {key: value for key, value in validated_data.items() if key not in ['address', 'customs', 'parcel']} + def update( + self, instance: graph.Template, validated_data: dict, **kwargs + ) -> graph.Template: + data = { + key: value + for key, value in validated_data.items() + if key not in ["address", "customs", "parcel"] + } - save_one_to_one_data('address', AddressModelSerializer, instance, payload=validated_data) - save_one_to_one_data('customs', CustomsModelSerializer, instance, payload=validated_data) - save_one_to_one_data('parcel', ParcelModelSerializer, instance, payload=validated_data) + save_one_to_one_data( + "address", AddressModelSerializer, instance, payload=validated_data + ) + save_one_to_one_data( + "customs", CustomsModelSerializer, instance, payload=validated_data + ) + save_one_to_one_data( + "parcel", ParcelModelSerializer, instance, payload=validated_data + ) ensure_unique_default_related_data(validated_data, instance) @@ -147,21 +214,26 @@ def update(self, instance: graph.Template, validated_data: dict, **kwargs) -> gr def ensure_unique_default_related_data( - data: dict = None, instance: typing.Optional[graph.Template] = None, context = None): + data: dict = None, instance: typing.Optional[graph.Template] = None, context=None +): - if (data or {}).get('is_default', getattr(instance, 'is_default', None)) is not True: + if (data or {}).get( + "is_default", getattr(instance, "is_default", None) + ) is not True: return - if getattr(instance, 'address', None) is not None: + if getattr(instance, "address", None) is not None: query = dict(address__isnull=False, is_default=True) - elif getattr(instance, 'customs', None) is not None: + elif getattr(instance, "customs", None) is not None: query = dict(customs__isnull=False, is_default=True) - elif getattr(instance, 'parcel', None) is not None: + elif getattr(instance, "parcel", None) is not None: query = dict(parcel__isnull=False, is_default=True) else: return - default_templates = graph.Template.access_by(context or instance.created_by).filter(**query) + default_templates = graph.Template.access_by(context or instance.created_by).filter( + **query + ) if any([template for template in default_templates if template.id != instance.id]): for template in default_templates: template.is_default = False @@ -176,23 +248,64 @@ class DefaultTemplateSerializer(serializers.EntitySerializer): parcel = serializers.ParcelData(required=False) +@owned_model_serializer +class ServiceLevelModelSerializer(ModelSerializer): + dimension_unit = serializers.CharField( + required=False, allow_null=True, allow_blank=True + ) + weight_unit = serializers.CharField( + required=False, allow_null=True, allow_blank=True + ) + currency = serializers.CharField(required=False, allow_null=True, allow_blank=True) + + class Meta: + model = providers.ServiceLevel + exclude = ["created_at", "updated_at", "created_by"] + + def create_carrier_model_serializers(partial: bool = False): def _create_model_serializer(carrier_model): - _name = f'{carrier_model.__name__}' + _name = f"{carrier_model.__name__}" _extra_fields = {} - - if hasattr(carrier_model, 'account_country_code'): - _extra_fields.update(account_country_code=serializers.CharField(required=not partial)) + _extra_exclude = [] + + if hasattr(carrier_model, "account_country_code"): + _extra_fields.update( + account_country_code=serializers.CharField(required=not partial) + ) + + if hasattr(carrier_model, "services"): + _service_serializer = ( + make_fields_optional(ServiceLevelModelSerializer) + if partial + else ServiceLevelModelSerializer + ) + _extra_fields.update( + services=_service_serializer(many=True, allow_null=True, required=False) + ) class Meta: model = carrier_model - exclude = ['created_at', 'updated_at', 'created_by', 'capabilities', 'active_users'] - - return owned_model_serializer(type(_name, (ModelSerializer,), { - 'Meta': Meta, - 'carrier_id': serializers.CharField(required=not partial), - **_extra_fields - })) + exclude = ( + "created_at", + "updated_at", + "created_by", + "capabilities", + "active_users", + *_extra_exclude, + ) + + return owned_model_serializer( + type( + _name, + (ModelSerializer,), + { + "Meta": Meta, + "carrier_id": serializers.CharField(required=not partial), + **_extra_fields, + }, + ) + ) return { carrier.__name__.lower(): _create_model_serializer(carrier) @@ -205,37 +318,70 @@ class Meta: @owned_model_serializer class ConnectionModelSerializerBase(ModelSerializer): - class Meta: model = providers.Carrier exclude = [ - 'created_at', 'updated_at', 'created_by', 'carrier_id', - 'test', 'active', 'capabilities', 'active_users' + "created_at", + "updated_at", + "created_by", + "carrier_id", + "test", + "active", + "capabilities", + "active_users", ] @transaction.atomic def create(self, validated_data: dict, context: Context, **kwargs): - name = next((k for k in validated_data.keys() if 'settings' in k), '') + name = next((k for k in validated_data.keys() if "settings" in k), "") serializer = CARRIER_MODEL_SERIALIZERS.get(name) - settings = save_one_to_one_data(name, serializer, payload=validated_data, context=context) - - return getattr(settings, 'carrier_ptr', None) + payload = { + key: value + for key, value in validated_data.get(name, {}).items() + if key not in ["services"] + } + settings = save_one_to_one_data( + name, serializer, payload={name: payload}, context=context + ) + services = validated_data.get(name, {}).get("services") or getattr( + settings, "default_services", [] + ) + if any(services): + save_many_to_many_data( + "services", + ServiceLevelModelSerializer, + settings, + payload=dict(services=services), + context=context, + ) + + return getattr(settings, "carrier_ptr", None) @transaction.atomic def update(self, instance, validated_data: dict, **kwargs): - name = next((k for k in validated_data.keys() if 'settings' in k), '') + name = next((k for k in validated_data.keys() if "settings" in k), "") serializer = CARRIER_MODEL_SERIALIZERS.get(name) - settings = save_one_to_one_data(name, serializer, instance, payload=validated_data) + settings = save_one_to_one_data( + name, serializer, instance, payload=validated_data + ) - return getattr(settings, 'carrier_ptr', None) + return getattr(settings, "carrier_ptr", None) -ConnectionModelSerializer = type('ConnectionModelSerializer', (ConnectionModelSerializerBase,), { - _name: _serializer(required=False) - for _name, _serializer in CARRIER_MODEL_SERIALIZERS.items() -}) +ConnectionModelSerializer = type( + "ConnectionModelSerializer", + (ConnectionModelSerializerBase,), + { + _name: _serializer(required=False) + for _name, _serializer in CARRIER_MODEL_SERIALIZERS.items() + }, +) -PartialConnectionModelSerializer = type('PartialConnectionModelSerializer', (ConnectionModelSerializerBase,), { - _name: make_fields_optional(_serializer)(required=False) - for _name, _serializer in create_carrier_model_serializers(True).items() -}) +PartialConnectionModelSerializer = type( + "PartialConnectionModelSerializer", + (ConnectionModelSerializerBase,), + { + _name: make_fields_optional(_serializer)(required=False) + for _name, _serializer in create_carrier_model_serializers(True).items() + }, +) diff --git a/server/modules/graph/purplship/server/graph/templates/graphene/graphiql.html b/server/modules/graph/purplship/server/graph/templates/graphene/graphiql.html index e357d04cc5..ed9dc25976 100644 --- a/server/modules/graph/purplship/server/graph/templates/graphene/graphiql.html +++ b/server/modules/graph/purplship/server/graph/templates/graphene/graphiql.html @@ -27,7 +27,7 @@ height: 40px; background-color: rgba(50, 50, 159, 70%); border-radius: 50%; - z-index: 2; + z-index: 10; box-shadow: rgb(0 0 0 / 30%) 0px 0px 20px; } @media screen and (max-width: 50rem) { @@ -69,7 +69,7 @@ - + diff --git a/server/modules/graph/purplship/server/graph/tests/test_templates.py b/server/modules/graph/purplship/server/graph/tests/test_templates.py index 7cb5b323c8..a22ca1f0f1 100644 --- a/server/modules/graph/purplship/server/graph/tests/test_templates.py +++ b/server/modules/graph/purplship/server/graph/tests/test_templates.py @@ -9,25 +9,27 @@ class TestAddressTemplate(GraphTestCase): def _create_address_template(self): return self.query( """ - mutation create_template($data: CreateTemplateInput!) { - create_template(input: $data) { - id - is_default - label - address { - company_name - person_name - address_line1 - address_line2 - postal_code - residential - city - state_code - country_code - email - phone_number - validation - validate_location + mutation create_address_template($data: AddressTemplateInput!) { + create_address_template(input: $data) { + template { + id + is_default + label + address { + company_name + person_name + address_line1 + address_line2 + postal_code + residential + city + state_code + country_code + email + phone_number + validation + validate_location + } } errors { field @@ -36,7 +38,7 @@ def _create_address_template(self): } } """, - op_name="create_template", + op_name="create_address_template", variables=ADDRESS_TEMPLATE_DATA, ) @@ -51,25 +53,27 @@ def test_update_address_template(self): template = json.loads(self._create_address_template().content) response = self.query( """ - mutation update_template($data: UpdateTemplateInput!) { - update_template(input: $data) { - id - is_default - label - address { - company_name - person_name - address_line1 - address_line2 - postal_code - residential - city - state_code - country_code - email - phone_number - validation - validate_location + mutation update_address_template($data: PartialAddressTemplateInput!) { + update_address_template(input: $data) { + template { + id + is_default + label + address { + company_name + person_name + address_line1 + address_line2 + postal_code + residential + city + state_code + country_code + email + phone_number + validation + validate_location + } } errors { field @@ -78,11 +82,11 @@ def test_update_address_template(self): } } """, - op_name="update_template", + op_name="update_address_template", variables={ **ADDRESS_TEMPLATE_UPDATE_DATA, "data": { - "id": template["data"]["create_template"]["id"], + "id": template["data"]["create_address_template"]["template"]["id"], **ADDRESS_TEMPLATE_UPDATE_DATA["data"], }, }, @@ -94,7 +98,7 @@ def test_update_address_template(self): def test_delete_address_template(self): template = json.loads(self._create_address_template().content) - template_id = template["data"]["create_template"]["id"] + template_id = template["data"]["create_address_template"]["template"]["id"] delete_template_data = {"data": {"id": template_id}} response = self.query( """ @@ -119,20 +123,22 @@ class TestParcelTemplate(GraphTestCase): def _create_parcel_template(self): return self.query( """ - mutation create_template($data: CreateTemplateInput!) { - create_template(input: $data) { - id - is_default - label - parcel { - width - height - length - dimension_unit - weight - weight_unit - packaging_type - package_preset + mutation create_parcel_template($data: ParcelTemplateInput!) { + create_parcel_template(input: $data) { + template { + id + is_default + label + parcel { + width + height + length + dimension_unit + weight + weight_unit + packaging_type + package_preset + } } errors { field @@ -141,7 +147,7 @@ def _create_parcel_template(self): } } """, - op_name="create_template", + op_name="create_parcel_template", variables=PARCEL_TEMPLATE_DATA, ) @@ -156,20 +162,22 @@ def test_update_parcel_template(self): template = json.loads(self._create_parcel_template().content) response = self.query( """ - mutation update_template($data: UpdateTemplateInput!) { - update_template(input: $data) { - id - is_default - label - parcel { - width - height - length - dimension_unit - weight - weight_unit - packaging_type - package_preset + mutation update_parcel_template($data: PartialParcelTemplateInput!) { + update_parcel_template(input: $data) { + template { + id + is_default + label + parcel { + width + height + length + dimension_unit + weight + weight_unit + packaging_type + package_preset + } } errors { field @@ -178,11 +186,11 @@ def test_update_parcel_template(self): } } """, - op_name="update_template", + op_name="update_parcel_template", variables={ **PARCEL_TEMPLATE_UPDATE_DATA, "data": { - "id": template["data"]["create_template"]["id"], + "id": template["data"]["create_parcel_template"]["template"]["id"], **PARCEL_TEMPLATE_UPDATE_DATA["data"], }, }, @@ -194,7 +202,7 @@ def test_update_parcel_template(self): def test_delete_parcel_template(self): template = json.loads(self._create_parcel_template().content) - template_id = template["data"]["create_template"]["id"] + template_id = template["data"]["create_parcel_template"]["template"]["id"] delete_template_data = {"data": {"id": template_id}} response = self.query( """ @@ -219,53 +227,52 @@ class TestCustomsTemplate(GraphTestCase): def _create_customs_info_template(self): return self.query( """ - mutation create_template($data: CreateTemplateInput!) { - create_template(input: $data) { - id - label - is_default - customs { - aes - eel_pfc - incoterm - content_type - commercial_invoice - certificate_number - content_description - duty { - paid_by - currency - account_number - declared_value - bill_to { - company_name - person_name - address_line1 - address_line2 - postal_code - residential - city - state_code - country_code - email - phone_number - validation - validate_location + mutation create_customs_template($data: CustomsTemplateInput!) { + create_customs_template(input: $data) { + template { + id + label + is_default + customs { + incoterm + content_type + commercial_invoice + content_description + duty { + paid_by + currency + account_number + declared_value + bill_to { + company_name + person_name + address_line1 + address_line2 + postal_code + residential + city + state_code + country_code + email + phone_number + validation + validate_location + } + } + invoice + signer + certify + commodities { + id + sku + weight + quantity + weight_unit + description + value_amount + value_currency + origin_country } - } - invoice - signer - certify - commodities { - id - sku - weight - quantity - weight_unit - description - value_amount - value_currency - origin_country } } errors { @@ -275,7 +282,7 @@ def _create_customs_info_template(self): } } """, - op_name="create_template", + op_name="create_customs_template", variables=CUSTOMS_TEMPLATE_DATA, ) @@ -289,64 +296,67 @@ def test_create_customs_info_template(self): def test_update_customs_info_template(self): template = json.loads(self._create_customs_info_template().content) CUSTOMS_TEMPLATE_UPDATE_DATA["data"]["id"] = template["data"][ - "create_template" - ]["id"] + "create_customs_template" + ]["template"]["id"] CUSTOMS_TEMPLATE_UPDATE_DATA["data"]["customs"]["commodities"][0]["id"] = next( c["id"] - for c in template["data"]["create_template"]["customs"]["commodities"] + for c in template["data"]["create_customs_template"]["template"]["customs"][ + "commodities" + ] if c["sku"] - == template["data"]["create_template"]["customs"]["commodities"][0]["sku"] + == template["data"]["create_customs_template"]["template"]["customs"][ + "commodities" + ][0]["sku"] ) response = self.query( """ - mutation update_template($data: UpdateTemplateInput!) { - update_template(input: $data) { - id - is_default - label - customs { - aes - eel_pfc - incoterm - content_type - commercial_invoice - certificate_number - content_description - duty { - paid_by - currency - account_number - declared_value - bill_to { - company_name - person_name - address_line1 - address_line2 - postal_code - residential - city - state_code - country_code - email - phone_number - validation - validate_location + mutation update_customs_template($data: PartialCustomsTemplateInput!) { + update_customs_template(input: $data) { + template { + id + is_default + label + customs { + incoterm + content_type + commercial_invoice + content_description + duty { + paid_by + currency + account_number + declared_value + bill_to { + company_name + person_name + address_line1 + address_line2 + postal_code + residential + city + state_code + country_code + email + phone_number + validation + validate_location + } + } + invoice + signer + certify + commodities { + id + sku + weight + quantity + weight_unit + description + value_amount + value_currency + origin_country } - } - invoice - signer - certify - commodities { - id - sku - weight - quantity - weight_unit - description - value_amount - value_currency - origin_country } } errors { @@ -356,7 +366,7 @@ def test_update_customs_info_template(self): } } """, - op_name="update_template", + op_name="update_customs_template", variables=CUSTOMS_TEMPLATE_UPDATE_DATA, ) response_data = json.loads(response.content) @@ -366,7 +376,7 @@ def test_update_customs_info_template(self): def test_delete_customs_info(self): template = json.loads(self._create_customs_info_template().content) - template_id = template["data"]["create_template"]["id"] + template_id = template["data"]["create_customs_template"]["template"]["id"] delete_template_data = {"data": {"id": template_id}} response = self.query( """ @@ -406,26 +416,28 @@ def test_delete_customs_info(self): ADDRESS_TEMPLATE_RESPONSE = { "data": { - "create_template": { - "address": { - "address_line1": "125 Church St", - "address_line2": None, - "city": "Moncton", - "company_name": "A corp.", - "country_code": "CA", - "email": None, - "person_name": "John Doe", - "phone_number": "+1 514-000-0000", - "postal_code": "E1C4Z8", - "residential": False, - "state_code": "NB", - "validate_location": None, - "validation": None, + "create_address_template": { + "template": { + "id": ANY, + "is_default": False, + "label": "Warehouse", + "address": { + "company_name": "A corp.", + "person_name": "John Doe", + "address_line1": "125 Church St", + "address_line2": None, + "postal_code": "E1C4Z8", + "residential": False, + "city": "Moncton", + "state_code": "NB", + "country_code": "CA", + "email": None, + "phone_number": "+1 514-000-0000", + "validation": None, + "validate_location": None, + }, }, - 'errors': None, - 'id': ANY, - 'is_default': False, - 'label': 'Warehouse' + "errors": None, } } } @@ -443,26 +455,29 @@ def test_delete_customs_info(self): ADDRESS_TEMPLATE_UPDATE_RESPONSE = { "data": { - "update_template": { - "address": { - "address_line1": "125 Church St", - "address_line2": None, - "city": "Moncton", - "company_name": "A corp.", - "country_code": "CA", - "email": "test@gmail.com", - "person_name": "John Moe", - "phone_number": "+1 514-000-0000", - "postal_code": "E1C4Z8", - "residential": False, - "state_code": "NB", - "validate_location": None, - "validation": None, + "update_address_template": { + "template": { + "id": ANY, + "address": { + "address_line1": "125 Church St", + "address_line2": None, + "city": "Moncton", + "company_name": "A corp.", + "country_code": "CA", + "email": "test@gmail.com", + "person_name": "John Moe", + "phone_number": "+1 514-000-0000", + "postal_code": "E1C4Z8", + "residential": False, + "state_code": "NB", + "validate_location": None, + "validation": None, + }, + "id": ANY, + "is_default": False, + "label": "Warehouse Update", }, - 'id': ANY, - 'is_default': False, - 'label': 'Warehouse Update', - 'errors': None, + "errors": None, } } } @@ -479,22 +494,24 @@ def test_delete_customs_info(self): } PARCEL_TEMPLATE_RESPONSE = { - 'data': { - 'create_template': { - 'errors': None, - 'id': ANY, - 'is_default': False, - 'label': 'Purple Pack', - 'parcel': { - 'dimension_unit': 'CM', - 'height': 32.0, - 'length': 32.0, - 'package_preset': 'canadapost_corrugated_small_box', - 'packaging_type': None, - 'weight': 1.0, - 'weight_unit': 'KG', - 'width': 42.0 - } + "data": { + "create_parcel_template": { + "errors": None, + "template": { + "id": ANY, + "is_default": False, + "label": "Purple Pack", + "parcel": { + "dimension_unit": "CM", + "height": 32.0, + "length": 32.0, + "package_preset": "canadapost_corrugated_small_box", + "packaging_type": None, + "weight": 1.0, + "weight_unit": "KG", + "width": 42.0, + }, + }, } } } @@ -510,20 +527,22 @@ def test_delete_customs_info(self): PARCEL_TEMPLATE_UPDATE_RESPONSE = { "data": { - "update_template": { + "update_parcel_template": { "errors": None, - "id": ANY, - "is_default": False, - "label": "Purple Pack", - "parcel": { - "dimension_unit": "CM", - "height": 32.0, - "length": 32.0, - "package_preset": "canadapost_corrugated_small_box", - "packaging_type": None, - "weight": 0.45, - "weight_unit": "LB", - "width": 42.0, + "template": { + "id": ANY, + "is_default": False, + "label": "Purple Pack", + "parcel": { + "dimension_unit": "CM", + "height": 32.0, + "length": 32.0, + "package_preset": "canadapost_corrugated_small_box", + "packaging_type": None, + "weight": 0.45, + "weight_unit": "LB", + "width": 42.0, + }, }, } } @@ -550,48 +569,48 @@ def test_delete_customs_info(self): CUSTOMS_TEMPLATE_RESPONSE = { "data": { - "create_template": { - "customs": { - "aes": None, - "certificate_number": None, - "certify": None, - "commercial_invoice": None, - "commodities": [ - { - "description": None, - "id": ANY, - "origin_country": None, - "quantity": 4, - "sku": "3PO4I5J4PO5I4HI5OH4O5IH4IO5", - "value_amount": None, - "value_currency": None, - "weight": 0.75, - "weight_unit": "KG", - }, - { - "description": None, - "id": ANY, - "origin_country": None, - "quantity": None, - "sku": "6787L8K7J8L7J8L7K8", - "value_amount": None, - "value_currency": None, - "weight": 1.15, - "weight_unit": "KG", - }, - ], - "content_description": None, - "content_type": "documents", - "duty": None, - "eel_pfc": None, - "incoterm": "DDU", - "invoice": None, - "signer": None, + "create_customs_template": { + "template": { + "id": ANY, + "customs": { + "certify": None, + "commercial_invoice": None, + "commodities": [ + { + "description": None, + "id": ANY, + "origin_country": None, + "quantity": 4, + "sku": "3PO4I5J4PO5I4HI5OH4O5IH4IO5", + "value_amount": None, + "value_currency": None, + "weight": 0.75, + "weight_unit": "KG", + }, + { + "description": None, + "id": ANY, + "origin_country": None, + "quantity": None, + "sku": "6787L8K7J8L7J8L7K8", + "value_amount": None, + "value_currency": None, + "weight": 1.15, + "weight_unit": "KG", + }, + ], + "content_description": None, + "content_type": "documents", + "duty": None, + "incoterm": "DDU", + "invoice": None, + "signer": None, + }, + "id": ANY, + "is_default": False, + "label": "Customs info template", }, - 'id': ANY, - 'is_default': False, - 'label': 'Customs info template', - 'errors': None, + "errors": None, } } } @@ -605,59 +624,58 @@ def test_delete_customs_info(self): "weight_unit": "LB", } ], - "duty": '{"paid_by": "SENDER"}', + "duty": {"paid_by": "SENDER"}, } } } CUSTOMS_TEMPLATE_UPDATE_RESPONSE = { "data": { - "update_template": { - "id": ANY, - "is_default": False, - "label": "Customs info template", - "customs": { - "aes": None, - "eel_pfc": None, - "incoterm": "DDU", - "content_type": "documents", - "commercial_invoice": None, - "certificate_number": None, - "content_description": None, - "duty": { - "account_number": None, - "bill_to": None, - "currency": None, - "declared_value": None, - "paid_by": "SENDER", - }, - "invoice": None, - "signer": None, - "certify": None, - "commodities": [ - { - "id": ANY, - "sku": "3PO4I5J4PO5I4HI5OH4O5IH4IO5", - "weight": 1.0, - "quantity": 4, - "weight_unit": "LB", - "description": None, - "value_amount": None, - "value_currency": None, - "origin_country": None, + "update_customs_template": { + "template": { + "id": ANY, + "is_default": False, + "label": "Customs info template", + "customs": { + "incoterm": "DDU", + "content_type": "documents", + "commercial_invoice": None, + "content_description": None, + "duty": { + "account_number": None, + "bill_to": None, + "currency": None, + "declared_value": None, + "paid_by": "sender", }, - { - "id": ANY, - "sku": "6787L8K7J8L7J8L7K8", - "weight": 1.15, - "quantity": None, - "weight_unit": "KG", - "description": None, - "value_amount": None, - "value_currency": None, - "origin_country": None, - }, - ], + "invoice": None, + "signer": None, + "certify": None, + "commodities": [ + { + "id": ANY, + "sku": "3PO4I5J4PO5I4HI5OH4O5IH4IO5", + "weight": 1.0, + "quantity": 4, + "weight_unit": "LB", + "description": None, + "value_amount": None, + "value_currency": None, + "origin_country": None, + }, + { + "id": ANY, + "sku": "6787L8K7J8L7J8L7K8", + "weight": 1.15, + "quantity": None, + "weight_unit": "KG", + "description": None, + "value_amount": None, + "value_currency": None, + "origin_country": None, + }, + ], + }, }, "errors": None, } diff --git a/server/modules/graph/purplship/server/graph/urls.py b/server/modules/graph/purplship/server/graph/urls.py index fc61b1f25d..77ee68b545 100644 --- a/server/modules/graph/purplship/server/graph/urls.py +++ b/server/modules/graph/purplship/server/graph/urls.py @@ -12,7 +12,7 @@ class GraphQLView(AllAuthentication, BaseGraphQLView): pass -app_name = 'purplship.server.graph' +app_name = "purplship.server.graph" urlpatterns = [ - path("graphql", csrf_exempt(GraphQLView.as_view(graphiql=True))), + path("graphql", csrf_exempt(GraphQLView.as_view(graphiql=True)), name="graphql"), ] diff --git a/server/modules/graph/setup.py b/server/modules/graph/setup.py index e419546e36..f85cac916c 100644 --- a/server/modules/graph/setup.py +++ b/server/modules/graph/setup.py @@ -5,7 +5,7 @@ setup( name="purplship.server.graph", - version="2021.10", + version="2021.11.5", description="Multi-carrier shipping API Graph module", long_description=long_description, long_description_content_type="text/markdown", @@ -13,7 +13,7 @@ author="purplship", author_email="hello@purplship.com", license="Apache License Version 2.0", - packages=find_namespace_packages(), + packages=find_namespace_packages(exclude=["tests.*", "tests"]), install_requires=[ "purplship.server.core", "graphene-django", @@ -25,4 +25,5 @@ "License :: OSI Approved :: Apache Software License", ], zip_safe=False, + include_package_data=True, ) diff --git a/server/modules/manager/purplship/server/manager/migrations/0020_tracking_messages.py b/server/modules/manager/purplship/server/manager/migrations/0020_tracking_messages.py new file mode 100644 index 0000000000..4deeaf644d --- /dev/null +++ b/server/modules/manager/purplship/server/manager/migrations/0020_tracking_messages.py @@ -0,0 +1,20 @@ +# Generated by Django 3.2.9 on 2021-11-09 13:33 + +from django.db import migrations, models +import functools +import purplship.server.core.utils + + +class Migration(migrations.Migration): + + dependencies = [ + ('manager', '0019_auto_20210722_1131'), + ] + + operations = [ + migrations.AddField( + model_name='tracking', + name='messages', + field=models.JSONField(blank=True, default=functools.partial(purplship.server.core.utils.identity, *(), **{'value': []}), null=True), + ), + ] diff --git a/server/modules/manager/purplship/server/manager/migrations/0021_tracking_estimated_delivery.py b/server/modules/manager/purplship/server/manager/migrations/0021_tracking_estimated_delivery.py new file mode 100644 index 0000000000..744574113a --- /dev/null +++ b/server/modules/manager/purplship/server/manager/migrations/0021_tracking_estimated_delivery.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.9 on 2021-11-10 03:41 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('manager', '0020_tracking_messages'), + ] + + operations = [ + migrations.AddField( + model_name='tracking', + name='estimated_delivery', + field=models.DateField(blank=True, null=True), + ), + ] diff --git a/server/modules/manager/purplship/server/manager/migrations/0022_auto_20211122_2100.py b/server/modules/manager/purplship/server/manager/migrations/0022_auto_20211122_2100.py new file mode 100644 index 0000000000..b34bafcfbc --- /dev/null +++ b/server/modules/manager/purplship/server/manager/migrations/0022_auto_20211122_2100.py @@ -0,0 +1,53 @@ +# Generated by Django 3.2.9 on 2021-11-22 21:00 + +from django.db import migrations, models + + +def forwards_func(apps, schema_editor): + db_alias = schema_editor.connection.alias + Customs = apps.get_model("manager", "Customs") + + Customs.objects.using(db_alias).filter(delivered=True).update(status="delivered") + + for customs in Customs.objects.using(db_alias).filter( + models.Q(aes__isnull=False) + | models.Q(eel_pfc__isnull=False) + | models.Q(certificate_number__isnull=False) + ): + options = customs.options or dict() + + if options.aes is not None: + options.update(aes=options.aes) + if options.eel_pfc is not None: + options.update(aes=options.eel_pfc) + if options.certificate_number is not None: + options.update(aes=options.certificate_number) + + customs.options = options + customs.save() + + +def reverse_func(apps, schema_editor): + pass + + +class Migration(migrations.Migration): + + dependencies = [ + ("manager", "0021_tracking_estimated_delivery"), + ] + + operations = [ + migrations.RemoveField( + model_name="customs", + name="aes", + ), + migrations.RemoveField( + model_name="customs", + name="certificate_number", + ), + migrations.RemoveField( + model_name="customs", + name="eel_pfc", + ), + ] diff --git a/server/modules/manager/purplship/server/manager/models.py b/server/modules/manager/purplship/server/manager/models.py index 782ea45829..5eae91ed1c 100644 --- a/server/modules/manager/purplship/server/manager/models.py +++ b/server/modules/manager/purplship/server/manager/models.py @@ -6,18 +6,29 @@ from purplship.server.providers.models import Carrier from purplship.server.core.models import OwnedEntity, uuid from purplship.server.core.serializers import ( - WEIGHT_UNIT, DIMENSION_UNIT, CURRENCIES, SHIPMENT_STATUS, TRACKER_STATUS, COUNTRIES, INCOTERMS + WEIGHT_UNIT, + DIMENSION_UNIT, + CURRENCIES, + SHIPMENT_STATUS, + TRACKER_STATUS, + COUNTRIES, + INCOTERMS, ) class Address(OwnedEntity): class Meta: db_table = "address" - verbose_name = 'Address' - verbose_name_plural = 'Addresses' - ordering = ['-created_at'] + verbose_name = "Address" + verbose_name_plural = "Addresses" + ordering = ["-created_at"] - id = models.CharField(max_length=50, primary_key=True, default=partial(uuid, prefix='adr_'), editable=False) + id = models.CharField( + max_length=50, + primary_key=True, + default=partial(uuid, prefix="adr_"), + editable=False, + ) postal_code = models.CharField(max_length=10, null=True, blank=True) city = models.CharField(max_length=50, null=True, blank=True) @@ -43,11 +54,16 @@ class Meta: class Parcel(OwnedEntity): class Meta: db_table = "parcel" - verbose_name = 'Parcel' - verbose_name_plural = 'Parcels' - ordering = ['-created_at'] + verbose_name = "Parcel" + verbose_name_plural = "Parcels" + ordering = ["-created_at"] - id = models.CharField(max_length=50, primary_key=True, default=partial(uuid, prefix='pcl_'), editable=False) + id = models.CharField( + max_length=50, + primary_key=True, + default=partial(uuid, prefix="pcl_"), + editable=False, + ) weight = models.FloatField(blank=True, null=True) width = models.FloatField(blank=True, null=True) @@ -58,50 +74,88 @@ class Meta: description = models.CharField(max_length=250, null=True, blank=True) content = models.CharField(max_length=100, null=True, blank=True) is_document = models.BooleanField(default=False, blank=True, null=True) - weight_unit = models.CharField(max_length=2, choices=WEIGHT_UNIT, null=True, blank=True) - dimension_unit = models.CharField(max_length=2, choices=DIMENSION_UNIT, null=True, blank=True) + weight_unit = models.CharField( + max_length=2, choices=WEIGHT_UNIT, null=True, blank=True + ) + dimension_unit = models.CharField( + max_length=2, choices=DIMENSION_UNIT, null=True, blank=True + ) class Commodity(OwnedEntity): class Meta: db_table = "commodity" - verbose_name = 'Commodity' - verbose_name_plural = 'Commodities' - ordering = ['-created_at'] + verbose_name = "Commodity" + verbose_name_plural = "Commodities" + ordering = ["-created_at"] - id = models.CharField(max_length=50, primary_key=True, default=partial(uuid, prefix='cdt_'), editable=False) + id = models.CharField( + max_length=50, + primary_key=True, + default=partial(uuid, prefix="cdt_"), + editable=False, + ) weight = models.FloatField(blank=True, null=True) description = models.CharField(max_length=250, null=True, blank=True) quantity = models.IntegerField(blank=True, null=True) sku = models.CharField(max_length=100, null=True, blank=True) value_amount = models.FloatField(blank=True, null=True) - weight_unit = models.CharField(max_length=2, choices=WEIGHT_UNIT, null=True, blank=True) - value_currency = models.CharField(max_length=3, choices=CURRENCIES, null=True, blank=True) - origin_country = models.CharField(max_length=3, choices=COUNTRIES, null=True, blank=True) + weight_unit = models.CharField( + max_length=2, choices=WEIGHT_UNIT, null=True, blank=True + ) + value_currency = models.CharField( + max_length=3, choices=CURRENCIES, null=True, blank=True + ) + origin_country = models.CharField( + max_length=3, choices=COUNTRIES, null=True, blank=True + ) + + +class CustomsManager(models.Manager): + def get_queryset(self): + return ( + super() + .get_queryset() + .prefetch_related( + "commodities", + "created_by", + ) + ) class Customs(OwnedEntity): DIRECT_PROPS = [ - 'eel_pfc', 'aes', 'content_description', 'content_type', - 'incoterm', 'commercial_invoice', 'certify', 'duty', 'created_by', - 'certificate_number', 'signer', 'invoice', 'invoice_date', 'options' + "content_description", + "content_type", + "incoterm", + "commercial_invoice", + "certify", + "duty", + "created_by", + "signer", + "invoice", + "invoice_date", + "options", ] - RELATIONAL_PROPS = ['commodities'] + RELATIONAL_PROPS = ["commodities"] + objects = CustomsManager() class Meta: db_table = "customs" - verbose_name = 'Customs Info' - verbose_name_plural = 'Customs Info' - ordering = ['-created_at'] + verbose_name = "Customs Info" + verbose_name_plural = "Customs Info" + ordering = ["-created_at"] - id = models.CharField(max_length=50, primary_key=True, default=partial(uuid, prefix='cst_'), editable=False) + id = models.CharField( + max_length=50, + primary_key=True, + default=partial(uuid, prefix="cst_"), + editable=False, + ) - aes = models.CharField(max_length=20, null=True, blank=True) - eel_pfc = models.CharField(max_length=20, null=True, blank=True) certify = models.BooleanField(null=True) commercial_invoice = models.BooleanField(null=True) - certificate_number = models.CharField(max_length=50, null=True, blank=True) content_type = models.CharField(max_length=50, null=True, blank=True) content_description = models.CharField(max_length=250, null=True, blank=True) incoterm = models.CharField(max_length=20, choices=INCOTERMS) @@ -109,31 +163,61 @@ class Meta: invoice_date = models.DateField(null=True, blank=True) signer = models.CharField(max_length=50, null=True, blank=True) - duty = models.JSONField(blank=True, null=True, default=partial(identity, value=None)) - options = models.JSONField(blank=True, null=True, default=partial(identity, value={})) + duty = models.JSONField( + blank=True, null=True, default=partial(identity, value=None) + ) + options = models.JSONField( + blank=True, null=True, default=partial(identity, value={}) + ) # System Reference fields - commodities = models.ManyToManyField('Commodity', blank=True) + commodities = models.ManyToManyField("Commodity", blank=True) def delete(self, *args, **kwargs): self.commodities.all().delete() return super().delete(*args, **kwargs) +class PickupManager(models.Manager): + def get_queryset(self): + return ( + super() + .get_queryset() + .prefetch_related( + "pickup_carrier", + "shipments", + "created_by", + ) + ) + + class Pickup(OwnedEntity): DIRECT_PROPS = [ - "confirmation_number", "pickup_date", "instruction", "package_location", "ready_time", - "closing_time", "test_mode", "pickup_charge", 'created_by', + "confirmation_number", + "pickup_date", + "instruction", + "package_location", + "ready_time", + "closing_time", + "test_mode", + "pickup_charge", + "created_by", ] + objects = PickupManager() class Meta: db_table = "pickup" - verbose_name = 'Pickup' - verbose_name_plural = 'Pickups' - ordering = ['-created_at'] - - id = models.CharField(max_length=50, primary_key=True, default=partial(uuid, prefix='pck_'), editable=False) + verbose_name = "Pickup" + verbose_name_plural = "Pickups" + ordering = ["-created_at"] + + id = models.CharField( + max_length=50, + primary_key=True, + default=partial(uuid, prefix="pck_"), + editable=False, + ) confirmation_number = models.CharField(max_length=50, unique=True, blank=False) test_mode = models.BooleanField(null=False) pickup_date = models.DateField(blank=False) @@ -142,14 +226,18 @@ class Meta: instruction = models.CharField(max_length=200, null=True, blank=True) package_location = models.CharField(max_length=200, null=True, blank=True) - options = models.JSONField(blank=True, null=True, default=partial(identity, value={})) + options = models.JSONField( + blank=True, null=True, default=partial(identity, value={}) + ) pickup_charge = models.JSONField(blank=True, null=True) - address = models.ForeignKey('Address', on_delete=models.CASCADE, blank=True, null=True) + address = models.ForeignKey( + "Address", on_delete=models.CASCADE, blank=True, null=True + ) # System Reference fields pickup_carrier = models.ForeignKey(Carrier, on_delete=models.CASCADE) - shipments = models.ManyToManyField('Shipment', related_name='pickup_shipments') + shipments = models.ManyToManyField("Shipment", related_name="pickup_shipments") def delete(self, *args, **kwargs): handle = self.address or super() @@ -167,33 +255,60 @@ def carrier_name(self) -> str: @property def parcels(self) -> List[Parcel]: - return sum([list(shipment.parcels.all()) for shipment in self.shipments.all()], []) + return sum( + [list(shipment.parcels.all()) for shipment in self.shipments.all()], [] + ) @property def tracking_numbers(self) -> List[str]: return [shipment.tracking_number for shipment in self.shipments.all()] +class TrackingManager(models.Manager): + def get_queryset(self): + return ( + super() + .get_queryset() + .prefetch_related("tracking_carrier", "created_by", "shipment") + ) + + class Tracking(OwnedEntity): + objects = TrackingManager() + class Meta: db_table = "tracking-status" - verbose_name = 'Tracking Status' - verbose_name_plural = 'Tracking Statuses' - ordering = ['-created_at'] - - id = models.CharField(max_length=50, primary_key=True, default=partial(uuid, prefix='trk_'), editable=False) - - status = models.CharField(max_length=25, choices=TRACKER_STATUS, default=TRACKER_STATUS[0][0]) + verbose_name = "Tracking Status" + verbose_name_plural = "Tracking Statuses" + ordering = ["-created_at"] + + id = models.CharField( + max_length=50, + primary_key=True, + default=partial(uuid, prefix="trk_"), + editable=False, + ) + + status = models.CharField( + max_length=25, choices=TRACKER_STATUS, default=TRACKER_STATUS[0][0] + ) tracking_number = models.CharField(max_length=50) - events = models.JSONField(blank=True, null=True, default=partial(identity, value=[])) + events = models.JSONField( + blank=True, null=True, default=partial(identity, value=[]) + ) delivered = models.BooleanField(blank=True, null=True, default=False) + estimated_delivery = models.DateField(null=True, blank=True) test_mode = models.BooleanField(null=False) + messages = models.JSONField( + blank=True, null=True, default=partial(identity, value=[]) + ) # System Reference fields tracking_carrier = models.ForeignKey(Carrier, on_delete=models.CASCADE) shipment = models.ForeignKey( - 'Shipment', on_delete=models.CASCADE, related_name='tracker', null=True) + "Shipment", on_delete=models.CASCADE, related_name="tracker", null=True + ) # Computed properties @@ -207,31 +322,71 @@ def carrier_name(self) -> str: @property def pending(self) -> bool: + return len(self.events) == 0 or ( + len(self.events) == 1 and self.events[0].get("code") == "CREATED" + ) + + +class ShipmentManager(models.Manager): + def get_queryset(self): return ( - len(self.events) == 0 or - (len(self.events) == 1 and self.events[0].get('code') == 'CREATED') + super() + .get_queryset() + .prefetch_related( + "shipper", + "recipient", + "parcels", + "carriers", + "selected_rate_carrier", + "created_by", + "tracker", + ) ) class Shipment(OwnedEntity): DIRECT_PROPS = [ - 'label', 'options', 'services', 'status', 'service', 'meta', 'label_type', - 'tracking_number', 'tracking_url', 'shipment_identifier', 'test_mode', - 'messages', 'rates', 'payment', 'created_by', 'reference' + "label", + "options", + "services", + "status", + "meta", + "label_type", + "tracking_number", + "tracking_url", + "shipment_identifier", + "test_mode", + "messages", + "rates", + "payment", + "created_by", + "reference", ] - RELATIONAL_PROPS = ['shipper', 'recipient', 'parcels', 'customs', 'selected_rate'] + RELATIONAL_PROPS = ["shipper", "recipient", "parcels", "customs", "selected_rate"] + objects = ShipmentManager() class Meta: db_table = "shipment" - verbose_name = 'Shipment' - verbose_name_plural = 'Shipments' - ordering = ['-created_at'] - - id = models.CharField(max_length=50, primary_key=True, default=partial(uuid, prefix='shp_'), editable=False) - status = models.CharField(max_length=50, choices=SHIPMENT_STATUS, default=SHIPMENT_STATUS[0][0]) - - recipient = models.ForeignKey('Address', on_delete=models.CASCADE, related_name='recipient') - shipper = models.ForeignKey('Address', on_delete=models.CASCADE, related_name='shipper') + verbose_name = "Shipment" + verbose_name_plural = "Shipments" + ordering = ["-created_at"] + + id = models.CharField( + max_length=50, + primary_key=True, + default=partial(uuid, prefix="shp_"), + editable=False, + ) + status = models.CharField( + max_length=50, choices=SHIPMENT_STATUS, default=SHIPMENT_STATUS[0][0] + ) + + recipient = models.ForeignKey( + "Address", on_delete=models.CASCADE, related_name="recipient" + ) + shipper = models.ForeignKey( + "Address", on_delete=models.CASCADE, related_name="shipper" + ) label_type = models.CharField(max_length=25, null=True, blank=True) tracking_number = models.CharField(max_length=50, null=True, blank=True) @@ -241,22 +396,39 @@ class Meta: test_mode = models.BooleanField(null=False) reference = models.CharField(max_length=100, null=True, blank=True) - customs = models.ForeignKey('Customs', on_delete=models.SET_NULL, blank=True, null=True) + customs = models.ForeignKey( + "Customs", on_delete=models.SET_NULL, blank=True, null=True + ) selected_rate = models.JSONField(blank=True, null=True) - payment = models.JSONField(blank=True, null=True, default=partial(identity, value=None)) - options = models.JSONField(blank=True, null=True, default=partial(identity, value={})) - services = models.JSONField(blank=True, null=True, default=partial(identity, value=[])) - messages = models.JSONField(blank=True, null=True, default=partial(identity, value=[])) + payment = models.JSONField( + blank=True, null=True, default=partial(identity, value=None) + ) + options = models.JSONField( + blank=True, null=True, default=partial(identity, value={}) + ) + services = models.JSONField( + blank=True, null=True, default=partial(identity, value=[]) + ) + messages = models.JSONField( + blank=True, null=True, default=partial(identity, value=[]) + ) meta = models.JSONField(blank=True, null=True, default=partial(identity, value={})) # System Reference fields rates = models.JSONField(blank=True, null=True, default=partial(identity, value=[])) - parcels = models.ManyToManyField('Parcel', related_name='shipment_parcels') - carriers = models.ManyToManyField(Carrier, blank=True, related_name='rating_carriers') + parcels = models.ManyToManyField("Parcel", related_name="shipment_parcels") + carriers = models.ManyToManyField( + Carrier, blank=True, related_name="rating_carriers" + ) selected_rate_carrier = models.ForeignKey( - Carrier, on_delete=models.CASCADE, related_name='selected_rate_carrier', blank=True, null=True) + Carrier, + on_delete=models.CASCADE, + related_name="selected_rate_carrier", + blank=True, + null=True, + ) def delete(self, *args, **kwargs): self.parcels.all().delete() @@ -275,7 +447,7 @@ def carrier_name(self) -> str: @property def tracker_id(self) -> Optional[str]: - return getattr(self.tracker.first(), 'id', None) + return getattr(self.tracker.first(), "id", None) @property def carrier_ids(self) -> List[str]: @@ -283,8 +455,16 @@ def carrier_ids(self) -> List[str]: @property def selected_rate_id(self) -> str: - return (cast(dict, self.selected_rate).get('id') if self.selected_rate is not None else None) + return ( + cast(dict, self.selected_rate).get("id") + if self.selected_rate is not None + else None + ) @property def service(self) -> str: - return (cast(dict, self.selected_rate).get('service') if self.selected_rate is not None else None) + return ( + cast(dict, self.selected_rate).get("service") + if self.selected_rate is not None + else None + ) diff --git a/server/modules/manager/purplship/server/manager/serializers/tracking.py b/server/modules/manager/purplship/server/manager/serializers/tracking.py index b17ac3bfec..e33105809c 100644 --- a/server/modules/manager/purplship/server/manager/serializers/tracking.py +++ b/server/modules/manager/purplship/server/manager/serializers/tracking.py @@ -36,6 +36,7 @@ def create(self, validated_data: dict, context, **kwargs) -> models.Tracking: response = Shipments.track( TrackingRequest(dict(tracking_numbers=[tracking_number])).data, carrier=carrier, + raise_on_error=False, ) return models.Tracking.objects.create( @@ -46,6 +47,8 @@ def create(self, validated_data: dict, context, **kwargs) -> models.Tracking: delivered=response.tracking.delivered, status=response.tracking.status, tracking_carrier=carrier, + estimated_delivery=response.tracking.estimated_delivery, + messages=DP.to_dict(response.messages), ) def update( @@ -82,6 +85,10 @@ def update( instance.events = events changes.append("events") + if response.messages != instance.messages: + instance.messages = DP.to_dict(response.messages) + changes.append("messages") + if response.tracking.delivered != instance.delivered: instance.delivered = response.tracking.delivered changes.append("delivered") @@ -90,6 +97,10 @@ def update( instance.status = response.tracking.status changes.append("status") + if response.tracking.estimated_delivery != instance.estimated_delivery: + instance.estimated_delivery = response.tracking.estimated_delivery + changes.append("estimated_delivery") + if carrier.id != instance.tracking_carrier.id: instance.carrier = carrier changes.append("tracking_carrier") diff --git a/server/modules/manager/purplship/server/manager/tests/test_custom_infos.py b/server/modules/manager/purplship/server/manager/tests/test_custom_infos.py index c34c7643b0..48ef18ff91 100644 --- a/server/modules/manager/purplship/server/manager/tests/test_custom_infos.py +++ b/server/modules/manager/purplship/server/manager/tests/test_custom_infos.py @@ -36,18 +36,32 @@ def test_update_customs(self): self.assertDictEqual(response_data, CUSTOMS_UPDATE_RESPONSE) -CUSTOMS_DATA = {"incoterm": "DDU"} +CUSTOMS_DATA = { + "incoterm": "DDU", + "commodities": [ + {"description": "cn", "weight": 4.0, "weight_unit": "KG", "sku": "cc"}, + ], +} CUSTOMS_RESPONSE = { - "aes": None, - "certificate_number": None, "certify": None, "commercial_invoice": None, - "commodities": [], + "commodities": [ + { + "description": "cn", + "id": ANY, + "origin_country": None, + "quantity": None, + "sku": "cc", + "value_amount": None, + "value_currency": None, + "weight": 4.0, + "weight_unit": "KG", + } + ], "content_description": None, "content_type": None, "duty": None, - "eel_pfc": None, "id": ANY, "incoterm": "DDU", "invoice": None, @@ -59,15 +73,12 @@ def test_update_customs(self): CUSTOMS_UPDATE_DATA = {"incoterm": "DDP"} CUSTOMS_UPDATE_RESPONSE = { - "aes": None, - "certificate_number": None, "certify": None, "commercial_invoice": None, "commodities": [], "content_description": None, "content_type": None, "duty": None, - "eel_pfc": None, "id": ANY, "incoterm": "DDP", "invoice": None, diff --git a/server/modules/manager/purplship/server/manager/tests/test_trackers.py b/server/modules/manager/purplship/server/manager/tests/test_trackers.py index 6dcfcc509d..2a3b4b4f15 100644 --- a/server/modules/manager/purplship/server/manager/tests/test_trackers.py +++ b/server/modules/manager/purplship/server/manager/tests/test_trackers.py @@ -69,6 +69,7 @@ def test_shipment_tracking_retry(self): "test_mode": True, "delivered": False, "status": "in-transit", + "estimated_delivery": None, "events": [ { "code": "KB", @@ -78,4 +79,5 @@ def test_shipment_tracking_retry(self): "time": "10:39", } ], + "messages": [], } diff --git a/server/modules/manager/purplship/server/manager/views/pickups.py b/server/modules/manager/purplship/server/manager/views/pickups.py index b70bd0d9b8..9a4d0e448d 100644 --- a/server/modules/manager/purplship/server/manager/views/pickups.py +++ b/server/modules/manager/purplship/server/manager/views/pickups.py @@ -1,6 +1,6 @@ import logging -from rest_framework import status, serializers +from rest_framework import status from rest_framework.pagination import LimitOffsetPagination from rest_framework.response import Response from rest_framework.request import Request @@ -20,46 +20,53 @@ ) from purplship.server.serializers import SerializerDecorator, PaginatedResult from purplship.server.manager.router import router -from purplship.server.manager.serializers import PickupData, PickupUpdateData, PickupCancelData +from purplship.server.manager.serializers import ( + PickupData, + PickupUpdateData, + PickupCancelData, +) import purplship.server.manager.models as models logger = logging.getLogger(__name__) ENDPOINT_ID = "$$$$" # This endpoint id is used to make operation ids unique make sure not to duplicate -Pickups = PaginatedResult('PickupList', Pickup) +Pickups = PaginatedResult("PickupList", Pickup) class PickupFilters(filters.FilterSet): parameters = [ - openapi.Parameter('test_mode', in_=openapi.IN_QUERY, type=openapi.TYPE_BOOLEAN), + openapi.Parameter("test_mode", in_=openapi.IN_QUERY, type=openapi.TYPE_BOOLEAN), ] class Meta: model = models.Pickup - fields = ['test_mode'] + fields = ["test_mode"] class PickupList(GenericAPIView): - pagination_class = type('CustomPagination', (LimitOffsetPagination,), dict(default_limit=20)) + pagination_class = type( + "CustomPagination", (LimitOffsetPagination,), dict(default_limit=20) + ) filter_backends = (filters.DjangoFilterBackend,) filterset_class = PickupFilters + serializer_class = Pickups model = models.Pickup @swagger_auto_schema( - tags=['Pickups'], + tags=["Pickups"], operation_id=f"{ENDPOINT_ID}list", operation_summary="List shipment pickups", responses={200: Pickups(), 400: ErrorResponse()}, manual_parameters=PickupFilters.parameters, code_examples=[ { - 'lang': 'bash', - 'source': ''' + "lang": "bash", + "source": """ curl --request GET \\ --url '/v1/pickups' \\ --header 'Authorization: Token ' - ''' + """, } - ] + ], ) def get(self, request: Request): """ @@ -71,9 +78,8 @@ def get(self, request: Request): class PickupRequest(APIView): - @swagger_auto_schema( - tags=['Pickups'], + tags=["Pickups"], operation_id=f"{ENDPOINT_ID}schedule", operation_summary="Schedule a pickup", responses={200: Pickup(), 400: ErrorResponse()}, @@ -81,8 +87,8 @@ class PickupRequest(APIView): request_body=PickupData(), code_examples=[ { - 'lang': 'bash', - 'source': ''' + "lang": "bash", + "source": """ curl --request POST \\ --url /v1/pickups/ \\ --header 'Authorization: Token ' \\ @@ -104,9 +110,9 @@ class PickupRequest(APIView): "8545763607864201002" ] }' - ''' + """, } - ] + ], ) def post(self, request: Request, carrier_name: str): """ @@ -117,29 +123,31 @@ def post(self, request: Request, carrier_name: str): "carrier_name": carrier_name, } - pickup = SerializerDecorator[PickupData]( - data=request.data, context=request).save(carrier_filter=carrier_filter).instance + pickup = ( + SerializerDecorator[PickupData](data=request.data, context=request) + .save(carrier_filter=carrier_filter) + .instance + ) return Response(Pickup(pickup).data, status=status.HTTP_201_CREATED) class PickupDetails(APIView): - @swagger_auto_schema( - tags=['Pickups'], + tags=["Pickups"], operation_id=f"{ENDPOINT_ID}retrieve", operation_summary="Retrieve a pickup", responses={200: Pickup(), 400: ErrorResponse()}, code_examples=[ { - 'lang': 'bash', - 'source': ''' + "lang": "bash", + "source": """ curl --request GET \\ --url /v1/pickups/ \\ --header 'Authorization: Token ' - ''' + """, } - ] + ], ) def get(self, request: Request, pk: str): """Retrieve a scheduled pickup.""" @@ -147,15 +155,15 @@ def get(self, request: Request, pk: str): return Response(Pickup(pickup).data) @swagger_auto_schema( - tags=['Pickups'], + tags=["Pickups"], operation_id=f"{ENDPOINT_ID}update", operation_summary="Update a pickup", responses={200: OperationConfirmation(), 400: ErrorResponse()}, request_body=PickupUpdateData(), code_examples=[ { - 'lang': 'bash', - 'source': ''' + "lang": "bash", + "source": """ curl --request PATCH \\ --url /v1/pickups/ \\ --header 'Authorization: Token ' \\ @@ -168,52 +176,75 @@ def get(self, request: Request, pk: str): "ready_time": "13:00", "closing_time": "20:00", }' - ''' + """, } - ] + ], ) def patch(self, request: Request, pk: str): """ Modify a pickup for one or many shipments with labels already purchased. """ pickup = models.Pickup.access_by(request).get(pk=pk) - instance = SerializerDecorator[PickupUpdateData]( - pickup, data=request.data, context=request).save().instance + instance = ( + SerializerDecorator[PickupUpdateData]( + pickup, data=request.data, context=request + ) + .save() + .instance + ) return Response(Pickup(instance).data, status=status.HTTP_200_OK) class PickupCancel(APIView): - @swagger_auto_schema( - tags=['Pickups'], + tags=["Pickups"], operation_id=f"{ENDPOINT_ID}cancel", operation_summary="Cancel a pickup", responses={200: OperationConfirmation(), 400: ErrorResponse()}, request_body=PickupCancelData(), code_examples=[ { - 'lang': 'bash', - 'source': ''' + "lang": "bash", + "source": """ curl --request POST \\ --url /v1/pickups/ \\ --header 'Authorization: Token ' - ''' + """, } - ] + ], ) def post(self, request: Request, pk: str): """ Cancel a pickup of one or more shipments. """ pickup = models.Pickup.access_by(request).get(pk=pk) - confirmation = SerializerDecorator[PickupCancelData]( - pickup, data=request.data, context=request).save().instance - - return Response(OperationConfirmation(confirmation).data, status=status.HTTP_200_OK) - - -router.urls.append(path('pickups', PickupList.as_view(), name="shipment-pickup-list")) -router.urls.append(path('pickups/', PickupDetails.as_view(), name="shipment-pickup-details")) -router.urls.append(path('pickups//cancel', PickupCancel.as_view(), name="shipment-pickup-cancel")) -router.urls.append(path('pickups//schedule', PickupRequest.as_view(), name="shipment-pickup-request")) + confirmation = ( + SerializerDecorator[PickupCancelData]( + pickup, data=request.data, context=request + ) + .save() + .instance + ) + + return Response( + OperationConfirmation(confirmation).data, status=status.HTTP_200_OK + ) + + +router.urls.append(path("pickups", PickupList.as_view(), name="shipment-pickup-list")) +router.urls.append( + path("pickups/", PickupDetails.as_view(), name="shipment-pickup-details") +) +router.urls.append( + path( + "pickups//cancel", PickupCancel.as_view(), name="shipment-pickup-cancel" + ) +) +router.urls.append( + path( + "pickups//schedule", + PickupRequest.as_view(), + name="shipment-pickup-request", + ) +) diff --git a/server/modules/manager/purplship/server/manager/views/shipments.py b/server/modules/manager/purplship/server/manager/views/shipments.py index 1bf293599a..e6e13a3c61 100644 --- a/server/modules/manager/purplship/server/manager/views/shipments.py +++ b/server/modules/manager/purplship/server/manager/views/shipments.py @@ -18,7 +18,6 @@ from purplship.server.serializers import SerializerDecorator, PaginatedResult from purplship.server.core.serializers import ( MODELS, - CARRIERS, FlagField, ShipmentStatus, ErrorResponse, @@ -50,8 +49,8 @@ class ShipmentFilters(filters.FilterSet): - created_start = filters.DateFilter(field_name="created_at", lookup_expr="gte") - created_end = filters.DateFilter(field_name="created_at", lookup_expr="lte") + created_after = filters.DateFilter(field_name="created_at", lookup_expr="gte") + created_before = filters.DateFilter(field_name="created_at", lookup_expr="lte") carrier_id = filters.CharFilter(field_name="selected_rate_carrier__carrier_id") service = filters.CharFilter(field_name="selected_rate__service") reference = filters.CharFilter(field_name="reference", lookup_expr="iregex") @@ -74,16 +73,18 @@ class ShipmentFilters(filters.FilterSet): openapi.Parameter("service", in_=openapi.IN_QUERY, type=openapi.TYPE_STRING), openapi.Parameter("reference", in_=openapi.IN_QUERY, type=openapi.TYPE_STRING), openapi.Parameter( - "created_end", + "created_before", in_=openapi.IN_QUERY, type=openapi.TYPE_STRING, - format=openapi.FORMAT_DATE, + format=openapi.FORMAT_DATETIME, + description="DateTime in format `YYYY-MM-DD H:M:S.fz`", ), openapi.Parameter( - "created_start", + "created_after", in_=openapi.IN_QUERY, type=openapi.TYPE_STRING, - format=openapi.FORMAT_DATE, + format=openapi.FORMAT_DATETIME, + description="DateTime in format `YYYY-MM-DD H:M:S.fz`", ), ] @@ -107,6 +108,7 @@ class ShipmentList(GenericAPIView): ) filter_backends = (filters.DjangoFilterBackend,) filterset_class = ShipmentFilters + serializer_class = Shipments model = models.Shipment def get_queryset(self): @@ -119,7 +121,7 @@ def get_queryset(self): _filters += ( Q(meta__rate_provider=carrier_name) | Q( - **{f"selected_rate_carrier__{carrier_name}settings__isnull": False} + **{f"selected_rate_carrier__{carrier_name.replace('_', '')}settings__isnull": False} ), ) diff --git a/server/modules/manager/purplship/server/manager/views/trackers.py b/server/modules/manager/purplship/server/manager/views/trackers.py index f39cd9e184..7d5345aea8 100644 --- a/server/modules/manager/purplship/server/manager/views/trackers.py +++ b/server/modules/manager/purplship/server/manager/views/trackers.py @@ -32,6 +32,8 @@ class TrackerFilters(filters.FilterSet): + created_after = filters.DateFilter(field_name="created_at", lookup_expr="gte") + created_before = filters.DateFilter(field_name="created_at", lookup_expr="lte") carrier_id = filters.CharFilter(field_name="tracking_carrier__carrier_id") parameters = [ @@ -49,6 +51,20 @@ class TrackerFilters(filters.FilterSet): enum=[k.value for k in list(TrackerStatus)], ), openapi.Parameter("test_mode", in_=openapi.IN_QUERY, type=openapi.TYPE_BOOLEAN), + openapi.Parameter( + "created_before", + in_=openapi.IN_QUERY, + type=openapi.TYPE_STRING, + format=openapi.FORMAT_DATETIME, + description="DateTime in format `YYYY-MM-DD H:M:S.fz`", + ), + openapi.Parameter( + "created_after", + in_=openapi.IN_QUERY, + type=openapi.TYPE_STRING, + format=openapi.FORMAT_DATETIME, + description="DateTime in format `YYYY-MM-DD H:M:S.fz`", + ), ] class Meta: @@ -62,6 +78,7 @@ class TrackerList(GenericAPIView): ) filter_backends = (filters.DjangoFilterBackend,) filterset_class = TrackerFilters + serializer_class = Trackers model = models.Tracking def get_queryset(self): @@ -72,7 +89,11 @@ def get_queryset(self): if carrier_name is not None: _filters += ( - Q(**{f"tracking_carrier__{carrier_name}settings__isnull": False}), + Q( + **{ + f"tracking_carrier__{carrier_name.replace('_', '')}settings__isnull": False + } + ), ) return queryset.filter(*_filters) diff --git a/server/modules/manager/setup.py b/server/modules/manager/setup.py index 6b691bf005..0f8e0ec895 100644 --- a/server/modules/manager/setup.py +++ b/server/modules/manager/setup.py @@ -5,7 +5,7 @@ setup( name="purplship.server.manager", - version="2021.10", + version="2021.11.5", description="Multi-carrier shipping API Shipments manager module", long_description=long_description, long_description_content_type="text/markdown", @@ -13,7 +13,7 @@ author="purplship", author_email="hello@purplship.com", license="Apache License Version 2.0", - packages=find_namespace_packages("."), + packages=find_namespace_packages(exclude=["tests.*", "tests"]), install_requires=[ "purplship.server.core", ], diff --git a/server/modules/pricing/purplship/server/pricing/migrations/0015_auto_20211204_1350.py b/server/modules/pricing/purplship/server/pricing/migrations/0015_auto_20211204_1350.py new file mode 100644 index 0000000000..baaf259a97 --- /dev/null +++ b/server/modules/pricing/purplship/server/pricing/migrations/0015_auto_20211204_1350.py @@ -0,0 +1,24 @@ +# Generated by Django 3.2.9 on 2021-12-04 13:50 + +from django.db import migrations, models +import purplship.server.core.fields + + +class Migration(migrations.Migration): + + dependencies = [ + ('pricing', '0014_auto_20211013_1520'), + ] + + operations = [ + migrations.AlterField( + model_name='surcharge', + name='carriers', + field=purplship.server.core.fields.MultiChoiceField(base_field=models.CharField(choices=[('aramex', 'aramex'), ('australiapost', 'australiapost'), ('canadapost', 'canadapost'), ('canpar', 'canpar'), ('dhl_express', 'dhl_express'), ('dhl_poland', 'dhl_poland'), ('dhl_universal', 'dhl_universal'), ('dicom', 'dicom'), ('eshipper', 'eshipper'), ('fedex', 'fedex'), ('freightcom', 'freightcom'), ('purolator', 'purolator'), ('royalmail', 'royalmail'), ('sendle', 'sendle'), ('sf_express', 'sf_express'), ('tnt', 'tnt'), ('ups', 'ups'), ('usps', 'usps'), ('usps_international', 'usps_international'), ('yanwen', 'yanwen'), ('yunexpress', 'yunexpress')], max_length=50), blank=True, help_text='\n The list of carriers you want to apply the surcharge to.\n
\n Note that by default, the surcharge is applied to all carriers\n ', null=True, size=None), + ), + migrations.AlterField( + model_name='surcharge', + name='services', + field=purplship.server.core.fields.MultiChoiceField(base_field=models.CharField(choices=[('canadapost_regular_parcel', 'canadapost_regular_parcel'), ('canadapost_expedited_parcel', 'canadapost_expedited_parcel'), ('canadapost_xpresspost', 'canadapost_xpresspost'), ('canadapost_xpresspost_certified', 'canadapost_xpresspost_certified'), ('canadapost_priority', 'canadapost_priority'), ('canadapost_library_books', 'canadapost_library_books'), ('canadapost_expedited_parcel_usa', 'canadapost_expedited_parcel_usa'), ('canadapost_priority_worldwide_envelope_usa', 'canadapost_priority_worldwide_envelope_usa'), ('canadapost_priority_worldwide_pak_usa', 'canadapost_priority_worldwide_pak_usa'), ('canadapost_priority_worldwide_parcel_usa', 'canadapost_priority_worldwide_parcel_usa'), ('canadapost_small_packet_usa_air', 'canadapost_small_packet_usa_air'), ('canadapost_tracked_packet_usa', 'canadapost_tracked_packet_usa'), ('canadapost_tracked_packet_usa_lvm', 'canadapost_tracked_packet_usa_lvm'), ('canadapost_xpresspost_usa', 'canadapost_xpresspost_usa'), ('canadapost_xpresspost_international', 'canadapost_xpresspost_international'), ('canadapost_international_parcel_air', 'canadapost_international_parcel_air'), ('canadapost_international_parcel_surface', 'canadapost_international_parcel_surface'), ('canadapost_priority_worldwide_envelope_intl', 'canadapost_priority_worldwide_envelope_intl'), ('canadapost_priority_worldwide_pak_intl', 'canadapost_priority_worldwide_pak_intl'), ('canadapost_priority_worldwide_parcel_intl', 'canadapost_priority_worldwide_parcel_intl'), ('canadapost_small_packet_international_air', 'canadapost_small_packet_international_air'), ('canadapost_small_packet_international_surface', 'canadapost_small_packet_international_surface'), ('canadapost_tracked_packet_international', 'canadapost_tracked_packet_international'), ('dhl_logistics_services', 'dhl_logistics_services'), ('dhl_domestic_express_12_00_doc', 'dhl_domestic_express_12_00_doc'), ('dhl_b2_c_doc', 'dhl_b2_c_doc'), ('dhl_b2_c_nondoc', 'dhl_b2_c_nondoc'), ('dhl_jetline', 'dhl_jetline'), ('dhl_sprintline', 'dhl_sprintline'), ('dhl_express_easy_doc', 'dhl_express_easy_doc'), ('dhl_express_easy_nondoc', 'dhl_express_easy_nondoc'), ('dhl_europack_doc', 'dhl_europack_doc'), ('dhl_auto_reversals', 'dhl_auto_reversals'), ('dhl_breakbulk_express_doc', 'dhl_breakbulk_express_doc'), ('dhl_medical_express_doc', 'dhl_medical_express_doc'), ('dhl_express_worldwide_doc', 'dhl_express_worldwide_doc'), ('dhl_express_9_00_nondoc', 'dhl_express_9_00_nondoc'), ('dhl_freight_worldwide_nondoc', 'dhl_freight_worldwide_nondoc'), ('dhl_domestic_economy_select_doc', 'dhl_domestic_economy_select_doc'), ('dhl_economy_select_nondoc', 'dhl_economy_select_nondoc'), ('dhl_domestic_express_9_00_doc', 'dhl_domestic_express_9_00_doc'), ('dhl_jumbo_box_nondoc', 'dhl_jumbo_box_nondoc'), ('dhl_express_9_00_doc', 'dhl_express_9_00_doc'), ('dhl_express_10_30_doc', 'dhl_express_10_30_doc'), ('dhl_express_10_30_nondoc', 'dhl_express_10_30_nondoc'), ('dhl_domestic_express_doc', 'dhl_domestic_express_doc'), ('dhl_domestic_express_10_30_doc', 'dhl_domestic_express_10_30_doc'), ('dhl_express_worldwide_nondoc', 'dhl_express_worldwide_nondoc'), ('dhl_medical_express_nondoc', 'dhl_medical_express_nondoc'), ('dhl_globalmail_business_doc', 'dhl_globalmail_business_doc'), ('dhl_same_day_doc', 'dhl_same_day_doc'), ('dhl_express_12_00_doc', 'dhl_express_12_00_doc'), ('dhl_express_worldwide_ecx_doc', 'dhl_express_worldwide_ecx_doc'), ('dhl_europack_nondoc', 'dhl_europack_nondoc'), ('dhl_economy_select_doc', 'dhl_economy_select_doc'), ('dhl_express_envelope_doc', 'dhl_express_envelope_doc'), ('dhl_express_12_00_nondoc', 'dhl_express_12_00_nondoc'), ('dhl_destination_charges', 'dhl_destination_charges'), ('dhl_poland_premium', 'dhl_poland_premium'), ('dhl_poland_polska', 'dhl_poland_polska'), ('dhl_poland_09', 'dhl_poland_09'), ('dhl_poland_12', 'dhl_poland_12'), ('dhl_poland_connect', 'dhl_poland_connect'), ('dhl_poland_international', 'dhl_poland_international'), ('eshipper_all', 'eshipper_all'), ('eshipper_fedex_priority', 'eshipper_fedex_priority'), ('eshipper_fedex_first_overnight', 'eshipper_fedex_first_overnight'), ('eshipper_fedex_ground', 'eshipper_fedex_ground'), ('eshipper_fedex_standard_overnight', 'eshipper_fedex_standard_overnight'), ('eshipper_fedex_2nd_day', 'eshipper_fedex_2nd_day'), ('eshipper_fedex_express_saver', 'eshipper_fedex_express_saver'), ('eshipper_fedex_international_economy', 'eshipper_fedex_international_economy'), ('eshipper_purolator_air', 'eshipper_purolator_air'), ('eshipper_purolator_air_9_am', 'eshipper_purolator_air_9_am'), ('eshipper_purolator_air_10_30', 'eshipper_purolator_air_10_30'), ('eshipper_purolator_letter', 'eshipper_purolator_letter'), ('eshipper_purolator_letter_9_am', 'eshipper_purolator_letter_9_am'), ('eshipper_purolator_letter_10_30', 'eshipper_purolator_letter_10_30'), ('eshipper_purolator_pak', 'eshipper_purolator_pak'), ('eshipper_purolator_pak_9_am', 'eshipper_purolator_pak_9_am'), ('eshipper_purolator_pak_10_30', 'eshipper_purolator_pak_10_30'), ('eshipper_purolator_ground', 'eshipper_purolator_ground'), ('eshipper_purolator_ground_9_am', 'eshipper_purolator_ground_9_am'), ('eshipper_purolator_ground_10_30', 'eshipper_purolator_ground_10_30'), ('eshipper_canada_worldwide_same_day', 'eshipper_canada_worldwide_same_day'), ('eshipper_canada_worldwide_next_flight_out', 'eshipper_canada_worldwide_next_flight_out'), ('eshipper_canada_worldwide_air_freight', 'eshipper_canada_worldwide_air_freight'), ('eshipper_canada_worldwide_ltl', 'eshipper_canada_worldwide_ltl'), ('eshipper_dhl_express_worldwide', 'eshipper_dhl_express_worldwide'), ('eshipper_dhl_express_12_pm', 'eshipper_dhl_express_12_pm'), ('eshipper_dhl_express_10_30_am', 'eshipper_dhl_express_10_30_am'), ('eshipper_dhl_esi_export', 'eshipper_dhl_esi_export'), ('eshipper_dhl_international_express', 'eshipper_dhl_international_express'), ('eshipper_ups_express_next_day_air', 'eshipper_ups_express_next_day_air'), ('eshipper_ups_expedited_second_day_air', 'eshipper_ups_expedited_second_day_air'), ('eshipper_ups_worldwide_express', 'eshipper_ups_worldwide_express'), ('eshipper_ups_worldwide_expedited', 'eshipper_ups_worldwide_expedited'), ('eshipper_ups_standard_ground', 'eshipper_ups_standard_ground'), ('eshipper_ups_express_early_am_next_day_air_early_am', 'eshipper_ups_express_early_am_next_day_air_early_am'), ('eshipper_ups_three_day_select', 'eshipper_ups_three_day_select'), ('eshipper_ups_saver', 'eshipper_ups_saver'), ('eshipper_ups_ground', 'eshipper_ups_ground'), ('eshipper_ups_next_day_saver', 'eshipper_ups_next_day_saver'), ('eshipper_ups_worldwide_express_plus', 'eshipper_ups_worldwide_express_plus'), ('eshipper_ups_second_day_air_am', 'eshipper_ups_second_day_air_am'), ('eshipper_canada_post_priority', 'eshipper_canada_post_priority'), ('eshipper_canada_post_xpresspost', 'eshipper_canada_post_xpresspost'), ('eshipper_canada_post_expedited', 'eshipper_canada_post_expedited'), ('eshipper_canada_post_regular', 'eshipper_canada_post_regular'), ('eshipper_canada_post_xpresspost_usa', 'eshipper_canada_post_xpresspost_usa'), ('eshipper_canada_post_xpresspost_intl', 'eshipper_canada_post_xpresspost_intl'), ('eshipper_canada_post_air_parcel_intl', 'eshipper_canada_post_air_parcel_intl'), ('eshipper_canada_post_surface_parcel_intl', 'eshipper_canada_post_surface_parcel_intl'), ('eshipper_canada_post_expedited_parcel_usa', 'eshipper_canada_post_expedited_parcel_usa'), ('eshipper_tst_ltl', 'eshipper_tst_ltl'), ('eshipper_ltl_chicago_suburban_express', 'eshipper_ltl_chicago_suburban_express'), ('eshipper_ltl_fedex_freight_east', 'eshipper_ltl_fedex_freight_east'), ('eshipper_ltl_fedex_freight_west', 'eshipper_ltl_fedex_freight_west'), ('eshipper_ltl_mid_states_express', 'eshipper_ltl_mid_states_express'), ('eshipper_ltl_new_england_motor_freight', 'eshipper_ltl_new_england_motor_freight'), ('eshipper_ltl_new_penn', 'eshipper_ltl_new_penn'), ('eshipper_ltl_oak_harbor', 'eshipper_ltl_oak_harbor'), ('eshipper_ltl_pitt_ohio', 'eshipper_ltl_pitt_ohio'), ('eshipper_ltl_r_l_carriers', 'eshipper_ltl_r_l_carriers'), ('eshipper_ltl_saia', 'eshipper_ltl_saia'), ('eshipper_ltl_usf_reddaway', 'eshipper_ltl_usf_reddaway'), ('eshipper_ltl_vitran_express', 'eshipper_ltl_vitran_express'), ('eshipper_ltl_wilson_trucking', 'eshipper_ltl_wilson_trucking'), ('eshipper_ltl_yellow_transportation', 'eshipper_ltl_yellow_transportation'), ('eshipper_ltl_roadway', 'eshipper_ltl_roadway'), ('eshipper_ltl_fedex_national', 'eshipper_ltl_fedex_national'), ('eshipper_wilson_trucking_tfc', 'eshipper_wilson_trucking_tfc'), ('eshipper_aaa_cooper_transportation', 'eshipper_aaa_cooper_transportation'), ('eshipper_roadrunner_dawes', 'eshipper_roadrunner_dawes'), ('eshipper_new_england_motor_freight', 'eshipper_new_england_motor_freight'), ('eshipper_new_penn_motor_express', 'eshipper_new_penn_motor_express'), ('eshipper_dayton_freight', 'eshipper_dayton_freight'), ('eshipper_southeastern_freightway', 'eshipper_southeastern_freightway'), ('eshipper_saia_inc', 'eshipper_saia_inc'), ('eshipper_conway', 'eshipper_conway'), ('eshipper_roadway', 'eshipper_roadway'), ('eshipper_usf_reddaway', 'eshipper_usf_reddaway'), ('eshipper_usf_holland', 'eshipper_usf_holland'), ('eshipper_dependable_highway_express', 'eshipper_dependable_highway_express'), ('eshipper_day_and_ross', 'eshipper_day_and_ross'), ('eshipper_day_and_ross_r_and_l', 'eshipper_day_and_ross_r_and_l'), ('eshipper_ups', 'eshipper_ups'), ('eshipper_aaa_cooper', 'eshipper_aaa_cooper'), ('eshipper_ama_transportation', 'eshipper_ama_transportation'), ('eshipper_averitt_express', 'eshipper_averitt_express'), ('eshipper_central_freight', 'eshipper_central_freight'), ('eshipper_conway_us', 'eshipper_conway_us'), ('eshipper_dayton', 'eshipper_dayton'), ('eshipper_drug_transport', 'eshipper_drug_transport'), ('eshipper_estes', 'eshipper_estes'), ('eshipper_land_air_express', 'eshipper_land_air_express'), ('eshipper_fedex_west', 'eshipper_fedex_west'), ('eshipper_fedex_national', 'eshipper_fedex_national'), ('eshipper_usf_holland_us', 'eshipper_usf_holland_us'), ('eshipper_lakeville_m_express', 'eshipper_lakeville_m_express'), ('eshipper_milan_express', 'eshipper_milan_express'), ('eshipper_nebraska_transport', 'eshipper_nebraska_transport'), ('eshipper_new_england', 'eshipper_new_england'), ('eshipper_new_penn', 'eshipper_new_penn'), ('eshipper_a_duie_pyle', 'eshipper_a_duie_pyle'), ('eshipper_roadway_us', 'eshipper_roadway_us'), ('eshipper_usf_reddaway_us', 'eshipper_usf_reddaway_us'), ('eshipper_rhody_transportation', 'eshipper_rhody_transportation'), ('eshipper_saia_motor_freight', 'eshipper_saia_motor_freight'), ('eshipper_southeastern_frgt', 'eshipper_southeastern_frgt'), ('eshipper_pitt_ohio', 'eshipper_pitt_ohio'), ('eshipper_ward', 'eshipper_ward'), ('eshipper_wilson', 'eshipper_wilson'), ('eshipper_chi_cargo', 'eshipper_chi_cargo'), ('eshipper_tax_air', 'eshipper_tax_air'), ('eshipper_fedex_east', 'eshipper_fedex_east'), ('eshipper_central_transport', 'eshipper_central_transport'), ('eshipper_roadrunner', 'eshipper_roadrunner'), ('eshipper_r_and_l_carriers', 'eshipper_r_and_l_carriers'), ('eshipper_estes_us', 'eshipper_estes_us'), ('eshipper_yrc_roadway', 'eshipper_yrc_roadway'), ('eshipper_central_transport_us', 'eshipper_central_transport_us'), ('eshipper_absolute_transportation_services', 'eshipper_absolute_transportation_services'), ('eshipper_blue_sky_express', 'eshipper_blue_sky_express'), ('eshipper_galasso_trucking', 'eshipper_galasso_trucking'), ('eshipper_griley_air_freight', 'eshipper_griley_air_freight'), ('eshipper_jet_transportation', 'eshipper_jet_transportation'), ('eshipper_metro_transportation_logistics', 'eshipper_metro_transportation_logistics'), ('eshipper_oak_harbor', 'eshipper_oak_harbor'), ('eshipper_stream_links_express', 'eshipper_stream_links_express'), ('eshipper_tiffany_trucking', 'eshipper_tiffany_trucking'), ('eshipper_ups_freight', 'eshipper_ups_freight'), ('eshipper_roadrunner_us', 'eshipper_roadrunner_us'), ('eshipper_global_mail_parcel_priority', 'eshipper_global_mail_parcel_priority'), ('eshipper_global_mail_parcel_standard', 'eshipper_global_mail_parcel_standard'), ('eshipper_global_mail_packet_plus_priority', 'eshipper_global_mail_packet_plus_priority'), ('eshipper_global_mail_packet_priority', 'eshipper_global_mail_packet_priority'), ('eshipper_global_mail_packet_standard', 'eshipper_global_mail_packet_standard'), ('eshipper_global_mail_business_priority', 'eshipper_global_mail_business_priority'), ('eshipper_global_mail_business_standard', 'eshipper_global_mail_business_standard'), ('eshipper_global_mail_parcel_direct_priority', 'eshipper_global_mail_parcel_direct_priority'), ('eshipper_global_mail_parcel_direct_standard', 'eshipper_global_mail_parcel_direct_standard'), ('eshipper_canpar_ground', 'eshipper_canpar_ground'), ('eshipper_canpar_select_parcel', 'eshipper_canpar_select_parcel'), ('eshipper_canpar_express_parcel', 'eshipper_canpar_express_parcel'), ('eshipper_fleet_optics_ground', 'eshipper_fleet_optics_ground'), ('fedex_europe_first_international_priority', 'fedex_europe_first_international_priority'), ('fedex_1_day_freight', 'fedex_1_day_freight'), ('fedex_2_day', 'fedex_2_day'), ('fedex_2_day_am', 'fedex_2_day_am'), ('fedex_2_day_freight', 'fedex_2_day_freight'), ('fedex_3_day_freight', 'fedex_3_day_freight'), ('fedex_cargo_airport_to_airport', 'fedex_cargo_airport_to_airport'), ('fedex_cargo_freight_forwarding', 'fedex_cargo_freight_forwarding'), ('fedex_cargo_international_express_freight', 'fedex_cargo_international_express_freight'), ('fedex_cargo_international_premium', 'fedex_cargo_international_premium'), ('fedex_cargo_mail', 'fedex_cargo_mail'), ('fedex_cargo_registered_mail', 'fedex_cargo_registered_mail'), ('fedex_cargo_surface_mail', 'fedex_cargo_surface_mail'), ('fedex_custom_critical_air_expedite', 'fedex_custom_critical_air_expedite'), ('fedex_custom_critical_air_expedite_exclusive_use', 'fedex_custom_critical_air_expedite_exclusive_use'), ('fedex_custom_critical_air_expedite_network', 'fedex_custom_critical_air_expedite_network'), ('fedex_custom_critical_charter_air', 'fedex_custom_critical_charter_air'), ('fedex_custom_critical_point_to_point', 'fedex_custom_critical_point_to_point'), ('fedex_custom_critical_surface_expedite', 'fedex_custom_critical_surface_expedite'), ('fedex_custom_critical_surface_expedite_exclusive_use', 'fedex_custom_critical_surface_expedite_exclusive_use'), ('fedex_custom_critical_temp_assure_air', 'fedex_custom_critical_temp_assure_air'), ('fedex_custom_critical_temp_assure_validated_air', 'fedex_custom_critical_temp_assure_validated_air'), ('fedex_custom_critical_white_glove_services', 'fedex_custom_critical_white_glove_services'), ('fedex_distance_deferred', 'fedex_distance_deferred'), ('fedex_express_saver', 'fedex_express_saver'), ('fedex_first_freight', 'fedex_first_freight'), ('fedex_freight_economy', 'fedex_freight_economy'), ('fedex_freight_priority', 'fedex_freight_priority'), ('fedex_ground', 'fedex_ground'), ('fedex_international_priority_plus', 'fedex_international_priority_plus'), ('fedex_next_day_afternoon', 'fedex_next_day_afternoon'), ('fedex_next_day_early_morning', 'fedex_next_day_early_morning'), ('fedex_next_day_end_of_day', 'fedex_next_day_end_of_day'), ('fedex_next_day_freight', 'fedex_next_day_freight'), ('fedex_next_day_mid_morning', 'fedex_next_day_mid_morning'), ('fedex_first_overnight', 'fedex_first_overnight'), ('fedex_ground_home_delivery', 'fedex_ground_home_delivery'), ('fedex_international_distribution_freight', 'fedex_international_distribution_freight'), ('fedex_international_economy', 'fedex_international_economy'), ('fedex_international_economy_distribution', 'fedex_international_economy_distribution'), ('fedex_international_economy_freight', 'fedex_international_economy_freight'), ('fedex_international_first', 'fedex_international_first'), ('fedex_international_ground', 'fedex_international_ground'), ('fedex_international_priority', 'fedex_international_priority'), ('fedex_international_priority_distribution', 'fedex_international_priority_distribution'), ('fedex_international_priority_express', 'fedex_international_priority_express'), ('fedex_international_priority_freight', 'fedex_international_priority_freight'), ('fedex_priority_overnight', 'fedex_priority_overnight'), ('fedex_same_day', 'fedex_same_day'), ('fedex_same_day_city', 'fedex_same_day_city'), ('fedex_same_day_metro_afternoon', 'fedex_same_day_metro_afternoon'), ('fedex_same_day_metro_morning', 'fedex_same_day_metro_morning'), ('fedex_same_day_metro_rush', 'fedex_same_day_metro_rush'), ('fedex_smart_post', 'fedex_smart_post'), ('fedex_standard_overnight', 'fedex_standard_overnight'), ('fedex_transborder_distribution_consolidation', 'fedex_transborder_distribution_consolidation'), ('freightcom_all', 'freightcom_all'), ('freightcom_usf_holland', 'freightcom_usf_holland'), ('freightcom_central_transport', 'freightcom_central_transport'), ('freightcom_estes', 'freightcom_estes'), ('freightcom_canpar_ground', 'freightcom_canpar_ground'), ('freightcom_canpar_select', 'freightcom_canpar_select'), ('freightcom_canpar_overnight', 'freightcom_canpar_overnight'), ('freightcom_dicom_ground', 'freightcom_dicom_ground'), ('freightcom_purolator_ground', 'freightcom_purolator_ground'), ('freightcom_purolator_express', 'freightcom_purolator_express'), ('freightcom_purolator_express_9_am', 'freightcom_purolator_express_9_am'), ('freightcom_purolator_express_10_30_am', 'freightcom_purolator_express_10_30_am'), ('freightcom_purolator_ground_us', 'freightcom_purolator_ground_us'), ('freightcom_purolator_express_us', 'freightcom_purolator_express_us'), ('freightcom_purolator_express_us_9_am', 'freightcom_purolator_express_us_9_am'), ('freightcom_purolator_express_us_10_30_am', 'freightcom_purolator_express_us_10_30_am'), ('freightcom_fedex_express_saver', 'freightcom_fedex_express_saver'), ('freightcom_fedex_ground', 'freightcom_fedex_ground'), ('freightcom_fedex_2day', 'freightcom_fedex_2day'), ('freightcom_fedex_priority_overnight', 'freightcom_fedex_priority_overnight'), ('freightcom_fedex_standard_overnight', 'freightcom_fedex_standard_overnight'), ('freightcom_fedex_first_overnight', 'freightcom_fedex_first_overnight'), ('freightcom_fedex_international_priority', 'freightcom_fedex_international_priority'), ('freightcom_fedex_international_economy', 'freightcom_fedex_international_economy'), ('freightcom_ups_standard', 'freightcom_ups_standard'), ('freightcom_ups_expedited', 'freightcom_ups_expedited'), ('freightcom_ups_express_saver', 'freightcom_ups_express_saver'), ('freightcom_ups_express', 'freightcom_ups_express'), ('freightcom_ups_express_early', 'freightcom_ups_express_early'), ('freightcom_ups_3day_select', 'freightcom_ups_3day_select'), ('freightcom_ups_worldwide_expedited', 'freightcom_ups_worldwide_expedited'), ('freightcom_ups_worldwide_express', 'freightcom_ups_worldwide_express'), ('freightcom_ups_worldwide_express_plus', 'freightcom_ups_worldwide_express_plus'), ('freightcom_ups_worldwide_express_saver', 'freightcom_ups_worldwide_express_saver'), ('freightcom_dhl_express_easy', 'freightcom_dhl_express_easy'), ('freightcom_dhl_express_10_30', 'freightcom_dhl_express_10_30'), ('freightcom_dhl_express_worldwide', 'freightcom_dhl_express_worldwide'), ('freightcom_dhl_express_12_00', 'freightcom_dhl_express_12_00'), ('freightcom_dhl_economy_select', 'freightcom_dhl_economy_select'), ('freightcom_dhl_ecommerce_am_service', 'freightcom_dhl_ecommerce_am_service'), ('freightcom_dhl_ecommerce_ground_service', 'freightcom_dhl_ecommerce_ground_service'), ('freightcom_canadapost_regular_parcel', 'freightcom_canadapost_regular_parcel'), ('freightcom_canadapost_expedited_parcel', 'freightcom_canadapost_expedited_parcel'), ('freightcom_canadapost_xpresspost', 'freightcom_canadapost_xpresspost'), ('freightcom_canadapost_priority', 'freightcom_canadapost_priority'), ('purolator_express_9_am', 'purolator_express_9_am'), ('purolator_express_us', 'purolator_express_us'), ('purolator_express_10_30_am', 'purolator_express_10_30_am'), ('purolator_express_us_9_am', 'purolator_express_us_9_am'), ('purolator_express_12_pm', 'purolator_express_12_pm'), ('purolator_express_us_10_30_am', 'purolator_express_us_10_30_am'), ('purolator_express', 'purolator_express'), ('purolator_express_us_12_00', 'purolator_express_us_12_00'), ('purolator_express_evening', 'purolator_express_evening'), ('purolator_express_envelope_us', 'purolator_express_envelope_us'), ('purolator_express_envelope_9_am', 'purolator_express_envelope_9_am'), ('purolator_express_us_envelope_9_am', 'purolator_express_us_envelope_9_am'), ('purolator_express_envelope_10_30_am', 'purolator_express_envelope_10_30_am'), ('purolator_express_us_envelope_10_30_am', 'purolator_express_us_envelope_10_30_am'), ('purolator_express_envelope_12_pm', 'purolator_express_envelope_12_pm'), ('purolator_express_us_envelope_12_00', 'purolator_express_us_envelope_12_00'), ('purolator_express_envelope', 'purolator_express_envelope'), ('purolator_express_pack_us', 'purolator_express_pack_us'), ('purolator_express_envelope_evening', 'purolator_express_envelope_evening'), ('purolator_express_us_pack_9_am', 'purolator_express_us_pack_9_am'), ('purolator_express_pack_9_am', 'purolator_express_pack_9_am'), ('purolator_express_us_pack_10_30_am', 'purolator_express_us_pack_10_30_am'), ('purolator_express_pack10_30_am', 'purolator_express_pack10_30_am'), ('purolator_express_us_pack_12_00', 'purolator_express_us_pack_12_00'), ('purolator_express_pack_12_pm', 'purolator_express_pack_12_pm'), ('purolator_express_box_us', 'purolator_express_box_us'), ('purolator_express_pack', 'purolator_express_pack'), ('purolator_express_us_box_9_am', 'purolator_express_us_box_9_am'), ('purolator_express_pack_evening', 'purolator_express_pack_evening'), ('purolator_express_us_box_10_30_am', 'purolator_express_us_box_10_30_am'), ('purolator_express_box_9_am', 'purolator_express_box_9_am'), ('purolator_express_us_box_12_00', 'purolator_express_us_box_12_00'), ('purolator_express_box_10_30_am', 'purolator_express_box_10_30_am'), ('purolator_ground_us', 'purolator_ground_us'), ('purolator_express_box_12_pm', 'purolator_express_box_12_pm'), ('purolator_express_international', 'purolator_express_international'), ('purolator_express_box', 'purolator_express_box'), ('purolator_express_international_9_am', 'purolator_express_international_9_am'), ('purolator_express_box_evening', 'purolator_express_box_evening'), ('purolator_express_international_10_30_am', 'purolator_express_international_10_30_am'), ('purolator_ground', 'purolator_ground'), ('purolator_express_international_12_00', 'purolator_express_international_12_00'), ('purolator_ground_9_am', 'purolator_ground_9_am'), ('purolator_express_envelope_international', 'purolator_express_envelope_international'), ('purolator_ground_10_30_am', 'purolator_ground_10_30_am'), ('purolator_express_international_envelope_9_am', 'purolator_express_international_envelope_9_am'), ('purolator_ground_evening', 'purolator_ground_evening'), ('purolator_express_international_envelope_10_30_am', 'purolator_express_international_envelope_10_30_am'), ('purolator_quick_ship', 'purolator_quick_ship'), ('purolator_express_international_envelope_12_00', 'purolator_express_international_envelope_12_00'), ('purolator_quick_ship_envelope', 'purolator_quick_ship_envelope'), ('purolator_express_pack_international', 'purolator_express_pack_international'), ('purolator_quick_ship_pack', 'purolator_quick_ship_pack'), ('purolator_express_international_pack_9_am', 'purolator_express_international_pack_9_am'), ('purolator_quick_ship_box', 'purolator_quick_ship_box'), ('purolator_express_international_pack_10_30_am', 'purolator_express_international_pack_10_30_am'), ('purolator_express_international_pack_12_00', 'purolator_express_international_pack_12_00'), ('purolator_express_box_international', 'purolator_express_box_international'), ('purolator_express_international_box_9_am', 'purolator_express_international_box_9_am'), ('purolator_express_international_box_10_30_am', 'purolator_express_international_box_10_30_am'), ('purolator_express_international_box_12_00', 'purolator_express_international_box_12_00'), ('tnt_special_express', 'tnt_special_express'), ('tnt_9_00_express', 'tnt_9_00_express'), ('tnt_10_00_express', 'tnt_10_00_express'), ('tnt_12_00_express', 'tnt_12_00_express'), ('tnt_express', 'tnt_express'), ('tnt_economy_express', 'tnt_economy_express'), ('tnt_global_express', 'tnt_global_express'), ('ups_standard', 'ups_standard'), ('ups_worldwide_expedited', 'ups_worldwide_expedited'), ('ups_worldwide_express', 'ups_worldwide_express'), ('ups_worldwide_express_plus', 'ups_worldwide_express_plus'), ('ups_worldwide_saver', 'ups_worldwide_saver'), ('ups_2nd_day_air', 'ups_2nd_day_air'), ('ups_2nd_day_air_am', 'ups_2nd_day_air_am'), ('ups_3_day_select', 'ups_3_day_select'), ('ups_expedited_mail_innovations', 'ups_expedited_mail_innovations'), ('ups_first_class_mail', 'ups_first_class_mail'), ('ups_ground', 'ups_ground'), ('ups_next_day_air', 'ups_next_day_air'), ('ups_next_day_air_early', 'ups_next_day_air_early'), ('ups_next_day_air_saver', 'ups_next_day_air_saver'), ('ups_priority_mail', 'ups_priority_mail'), ('ups_access_point_economy', 'ups_access_point_economy'), ('ups_today_dedicated_courier', 'ups_today_dedicated_courier'), ('ups_today_express', 'ups_today_express'), ('ups_today_express_saver', 'ups_today_express_saver'), ('ups_today_standard', 'ups_today_standard'), ('ups_worldwide_express_freight', 'ups_worldwide_express_freight'), ('ups_priority_mail_innovations', 'ups_priority_mail_innovations'), ('ups_economy_mail_innovations', 'ups_economy_mail_innovations'), ('usps_first_class', 'usps_first_class'), ('usps_first_class_commercial', 'usps_first_class_commercial'), ('usps_first_class_hfp_commercial', 'usps_first_class_hfp_commercial'), ('usps_priority', 'usps_priority'), ('usps_priority_commercial', 'usps_priority_commercial'), ('usps_priority_cpp', 'usps_priority_cpp'), ('usps_priority_hfp_commercial', 'usps_priority_hfp_commercial'), ('usps_priority_hfp_cpp', 'usps_priority_hfp_cpp'), ('usps_priority_mail_express', 'usps_priority_mail_express'), ('usps_priority_mail_express_commercial', 'usps_priority_mail_express_commercial'), ('usps_priority_mail_express_cpp', 'usps_priority_mail_express_cpp'), ('usps_priority_mail_express_sh', 'usps_priority_mail_express_sh'), ('usps_priority_mail_express_sh_commercial', 'usps_priority_mail_express_sh_commercial'), ('usps_priority_mail_express_hfp', 'usps_priority_mail_express_hfp'), ('usps_priority_mail_express_hfp_commercial', 'usps_priority_mail_express_hfp_commercial'), ('usps_priority_mail_express_hfp_cpp', 'usps_priority_mail_express_hfp_cpp'), ('usps_priority_mail_cubic', 'usps_priority_mail_cubic'), ('usps_retail_ground', 'usps_retail_ground'), ('usps_media', 'usps_media'), ('usps_library', 'usps_library'), ('usps_all', 'usps_all'), ('usps_online', 'usps_online'), ('usps_plus', 'usps_plus'), ('usps_bpm', 'usps_bpm'), ('usps_first_class', 'usps_first_class'), ('usps_first_class_commercial', 'usps_first_class_commercial'), ('usps_first_class_hfp_commercial', 'usps_first_class_hfp_commercial'), ('usps_priority', 'usps_priority'), ('usps_priority_commercial', 'usps_priority_commercial'), ('usps_priority_cpp', 'usps_priority_cpp'), ('usps_priority_hfp_commercial', 'usps_priority_hfp_commercial'), ('usps_priority_hfp_cpp', 'usps_priority_hfp_cpp'), ('usps_priority_mail_express', 'usps_priority_mail_express'), ('usps_priority_mail_express_commercial', 'usps_priority_mail_express_commercial'), ('usps_priority_mail_express_cpp', 'usps_priority_mail_express_cpp'), ('usps_priority_mail_express_sh', 'usps_priority_mail_express_sh'), ('usps_priority_mail_express_sh_commercial', 'usps_priority_mail_express_sh_commercial'), ('usps_priority_mail_express_hfp', 'usps_priority_mail_express_hfp'), ('usps_priority_mail_express_hfp_commercial', 'usps_priority_mail_express_hfp_commercial'), ('usps_priority_mail_express_hfp_cpp', 'usps_priority_mail_express_hfp_cpp'), ('usps_priority_mail_cubic', 'usps_priority_mail_cubic'), ('usps_retail_ground', 'usps_retail_ground'), ('usps_media', 'usps_media'), ('usps_library', 'usps_library'), ('usps_all', 'usps_all'), ('usps_online', 'usps_online'), ('usps_plus', 'usps_plus'), ('usps_bpm', 'usps_bpm')], max_length=100), blank=True, help_text='\n The list of services you want to apply the surcharge to.\n
\n Note that by default, the surcharge is applied to all services\n ', null=True, size=None), + ), + ] diff --git a/server/modules/pricing/setup.py b/server/modules/pricing/setup.py index f5b322f92a..9870c9916c 100644 --- a/server/modules/pricing/setup.py +++ b/server/modules/pricing/setup.py @@ -5,7 +5,7 @@ setup( name="purplship.server.pricing", - version="2021.10", + version="2021.11.5", description="Multi-carrier shipping API Pricing panel", long_description=long_description, long_description_content_type="text/markdown", @@ -13,7 +13,7 @@ author="purplship", author_email="hello@purplship.com", license="Apache License Version 2.0", - packages=find_namespace_packages("."), + packages=find_namespace_packages(exclude=["tests.*", "tests"]), install_requires=["purplship.server.core"], classifiers=[ "Programming Language :: Python :: 3", diff --git a/server/modules/proxy/purplship/server/proxy/tests/test_tracking.py b/server/modules/proxy/purplship/server/proxy/tests/test_tracking.py index ecd9dabfe8..8864b691ec 100644 --- a/server/modules/proxy/purplship/server/proxy/tests/test_tracking.py +++ b/server/modules/proxy/purplship/server/proxy/tests/test_tracking.py @@ -49,6 +49,7 @@ def test_tracking_shipment(self): "carrier_id": "ups_package", "carrier_name": "ups", "delivered": None, + "estimated_delivery": None, "events": [ { "code": "KB", @@ -58,6 +59,7 @@ def test_tracking_shipment(self): "time": "10:39", } ], + "messages": [], "status": "in-transit", "test_mode": True, "tracking_number": "1Z12345E6205277936", diff --git a/server/modules/proxy/setup.py b/server/modules/proxy/setup.py index 9c2b28dc28..7651b078fe 100644 --- a/server/modules/proxy/setup.py +++ b/server/modules/proxy/setup.py @@ -5,7 +5,7 @@ setup( name="purplship.server.proxy", - version="2021.10", + version="2021.11.5", description="Multi-carrier shipping API Proxy module", long_description=long_description, long_description_content_type="text/markdown", @@ -13,7 +13,7 @@ author="purplship", author_email="hello@purplship.com", license="Apache License Version 2.0", - packages=find_namespace_packages("."), + packages=find_namespace_packages(exclude=["tests.*", "tests"]), install_requires=[ "purplship.server.core", ], diff --git a/server/schemas/graphql.json b/server/schemas/graphql.json index 8876a6d5a6..24d86a801d 100644 --- a/server/schemas/graphql.json +++ b/server/schemas/graphql.json @@ -65,6 +65,60 @@ "description": null, "enumValues": null, "fields": [ + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "is_active", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "organizations", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "OrganizationType", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "organization", + "type": { + "kind": "OBJECT", + "name": "OrganizationType", + "ofType": null + } + }, { "args": [], "deprecationReason": null, @@ -477,13 +531,57 @@ { "defaultValue": null, "description": null, - "name": "path__contains", + "name": "api_endpoint", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "date_after", + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "date_before", + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "entity_id", "type": { "kind": "SCALAR", "name": "String", "ofType": null } }, + { + "defaultValue": null, + "description": null, + "name": "method", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, { "defaultValue": null, "description": null, @@ -493,6 +591,20 @@ "name": "String", "ofType": null } + }, + { + "defaultValue": null, + "description": null, + "name": "status_code", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } } ], "deprecationReason": null, @@ -505,6 +617,33 @@ "ofType": null } }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "shipment", + "type": { + "kind": "OBJECT", + "name": "ShipmentType", + "ofType": null + } + }, { "args": [ { @@ -560,50 +699,51 @@ { "defaultValue": null, "description": null, - "name": "status", + "name": "address", "type": { "kind": "SCALAR", "name": "String", "ofType": null } - } - ], - "deprecationReason": null, - "description": null, - "isDeprecated": false, - "name": "shipments", - "type": { - "kind": "OBJECT", - "name": "ShipmentTypeConnection", - "ofType": null - } - }, - { - "args": [ + }, { "defaultValue": null, "description": null, - "name": "offset", + "name": "created_after", "type": { "kind": "SCALAR", - "name": "Int", + "name": "DateTime", "ofType": null } }, { "defaultValue": null, "description": null, - "name": "before", + "name": "created_before", "type": { "kind": "SCALAR", - "name": "String", + "name": "DateTime", "ofType": null } }, { "defaultValue": null, "description": null, - "name": "after", + "name": "carrier_name", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": null, + "name": "reference", "type": { "kind": "SCALAR", "name": "String", @@ -613,27 +753,59 @@ { "defaultValue": null, "description": null, - "name": "first", + "name": "service", "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } } }, { "defaultValue": null, "description": null, - "name": "last", + "name": "status", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": null, + "name": "option_key", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": null, + "name": "option_value", "type": { "kind": "SCALAR", - "name": "Int", + "name": "String", "ofType": null } }, { "defaultValue": null, "description": null, - "name": "delivered", + "name": "test_mode", "type": { "kind": "SCALAR", "name": "Boolean", @@ -644,10 +816,37 @@ "deprecationReason": null, "description": null, "isDeprecated": false, - "name": "trackers", + "name": "shipments", "type": { "kind": "OBJECT", - "name": "TrackerTypeConnection", + "name": "ShipmentTypeConnection", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "tracker", + "type": { + "kind": "OBJECT", + "name": "TrackerType", "ofType": null } }, @@ -706,4304 +905,6370 @@ { "defaultValue": null, "description": null, - "name": "description__icontains", + "name": "created_after", "type": { "kind": "SCALAR", - "name": "String", + "name": "DateTime", "ofType": null } - } - ], - "deprecationReason": null, - "description": null, - "isDeprecated": false, - "name": "webhooks", - "type": { - "kind": "OBJECT", - "name": "WebhookTypeConnection", - "ofType": null - } - }, - { - "args": [], - "deprecationReason": null, - "description": null, - "isDeprecated": false, - "name": "_debug", - "type": { - "kind": "OBJECT", - "name": "DjangoDebug", - "ofType": null - } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", + }, + { + "defaultValue": null, + "description": null, + "name": "created_before", + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "carrier_name", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": null, + "name": "status", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": null, + "name": "test_mode", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "trackers", + "type": { + "kind": "OBJECT", + "name": "TrackerTypeConnection", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "webhook", + "type": { + "kind": "OBJECT", + "name": "WebhookType", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "offset", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "before", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "after", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "first", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "last", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "created_after", + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "created_before", + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "description", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "events", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": null, + "name": "disabled", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "test_mode", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "url", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "webhooks", + "type": { + "kind": "OBJECT", + "name": "WebhookTypeConnection", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "event", + "type": { + "kind": "OBJECT", + "name": "EventType", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "offset", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "before", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "after", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "first", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "last", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "date_after", + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "date_before", + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "entity_id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "type", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "events", + "type": { + "kind": "OBJECT", + "name": "EventTypeConnection", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "_debug", + "type": { + "kind": "OBJECT", + "name": "DjangoDebug", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", "name": "Query", "possibleTypes": null }, { - "description": null, + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The name of the organization", + "isDeprecated": false, + "name": "name", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "is_active", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "created", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "modified", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The name in all lowercase, suitable for URL identification", + "isDeprecated": false, + "name": "slug", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "carriers", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "SystemConnectionType", + "ofType": null + } + } + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "system_carriers", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "SystemConnectionType", + "ofType": null + } + } + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "parcels", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ParcelType", + "ofType": null + } + } + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "customs", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "CustomsType", + "ofType": null + } + } + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "offset", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "before", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "after", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "first", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "last", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "tracking_carrier", + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "trackers", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "TrackerTypeConnection", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "addresses", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "AddressType", + "ofType": null + } + } + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "offset", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "before", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "after", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "first", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "last", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "status", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "shipments", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ShipmentTypeConnection", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "commodities", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "CommodityType", + "ofType": null + } + } + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "offset", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "before", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "after", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "first", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "last", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "templates", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "TemplateTypeConnection", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "offset", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "before", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "after", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "first", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "last", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "webhooks", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "WebhookTypeConnection", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "offset", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "before", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "after", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "first", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "last", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "events", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "EventTypeConnection", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "offset", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "before", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "after", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "first", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "last", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "logs", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "LogTypeConnection", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "users", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "OrganizationUserType", + "ofType": null + } + } + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "token", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "user", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "OrganizationUserType", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "OrganizationType", + "possibleTypes": null + }, + { + "description": "The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.", + "enumValues": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "SCALAR", + "name": "String", + "possibleTypes": null + }, + { + "description": "The `Boolean` scalar type represents `true` or `false`.", + "enumValues": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "SCALAR", + "name": "Boolean", + "possibleTypes": null + }, + { + "description": "The `DateTime` scalar type represents a DateTime\nvalue as specified by\n[iso8601](https://en.wikipedia.org/wiki/ISO_8601).", + "enumValues": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "SCALAR", + "name": "DateTime", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "created_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "updated_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", + "isDeprecated": false, + "name": "carrier_id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "test", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "active", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "capabilities", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "carrier_name", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "enabled", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "SystemConnectionType", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "created_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "updated_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "created_by", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "OrganizationUserType", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "weight", + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "width", + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "height", + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "length", + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "packaging_type", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "package_preset", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "description", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "content", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "is_document", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "weight_unit", + "type": { + "kind": "ENUM", + "name": "ParcelWeightUnit", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "dimension_unit", + "type": { + "kind": "ENUM", + "name": "ParcelDimensionUnit", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "org", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "OrganizationType", + "ofType": null + } + } + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "ParcelType", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "last_login", + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Designates whether the user can log into this admin site.", + "isDeprecated": false, + "name": "is_staff", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "date_joined", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "full_name", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "email", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "is_admin", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "OrganizationUserType", + "possibleTypes": null + }, + { + "description": "The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point). ", + "enumValues": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "SCALAR", + "name": "Float", + "possibleTypes": null + }, + { + "description": "An enumeration.", + "enumValues": [ + { + "deprecationReason": null, + "description": "KG", + "isDeprecated": false, + "name": "KG" + }, + { + "deprecationReason": null, + "description": "LB", + "isDeprecated": false, + "name": "LB" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "ParcelWeightUnit", + "possibleTypes": null + }, + { + "description": "An enumeration.", + "enumValues": [ + { + "deprecationReason": null, + "description": "CM", + "isDeprecated": false, + "name": "CM" + }, + { + "deprecationReason": null, + "description": "IN", + "isDeprecated": false, + "name": "IN" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "ParcelDimensionUnit", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "created_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "updated_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "created_by", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "OrganizationUserType", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "certify", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "commercial_invoice", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "content_type", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "content_description", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "incoterm", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "CustomsIncoterm", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "invoice", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "invoice_date", + "type": { + "kind": "SCALAR", + "name": "Date", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "signer", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "duty", + "type": { + "kind": "OBJECT", + "name": "DutyType", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "options", + "type": { + "kind": "SCALAR", + "name": "GenericScalar", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "commodities", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "CommodityType", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "org", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "OrganizationType", + "ofType": null + } + } + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "CustomsType", + "possibleTypes": null + }, + { + "description": "An enumeration.", + "enumValues": [ + { + "deprecationReason": null, + "description": "CFR", + "isDeprecated": false, + "name": "CFR" + }, + { + "deprecationReason": null, + "description": "CIF", + "isDeprecated": false, + "name": "CIF" + }, + { + "deprecationReason": null, + "description": "CIP", + "isDeprecated": false, + "name": "CIP" + }, + { + "deprecationReason": null, + "description": "CPT", + "isDeprecated": false, + "name": "CPT" + }, + { + "deprecationReason": null, + "description": "DAF", + "isDeprecated": false, + "name": "DAF" + }, + { + "deprecationReason": null, + "description": "DDP", + "isDeprecated": false, + "name": "DDP" + }, + { + "deprecationReason": null, + "description": "DDU", + "isDeprecated": false, + "name": "DDU" + }, + { + "deprecationReason": null, + "description": "DEQ", + "isDeprecated": false, + "name": "DEQ" + }, + { + "deprecationReason": null, + "description": "DES", + "isDeprecated": false, + "name": "DES" + }, + { + "deprecationReason": null, + "description": "EXW", + "isDeprecated": false, + "name": "EXW" + }, + { + "deprecationReason": null, + "description": "FAS", + "isDeprecated": false, + "name": "FAS" + }, + { + "deprecationReason": null, + "description": "FCA", + "isDeprecated": false, + "name": "FCA" + }, + { + "deprecationReason": null, + "description": "FOB", + "isDeprecated": false, + "name": "FOB" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "CustomsIncoterm", + "possibleTypes": null + }, + { + "description": "The `Date` scalar type represents a Date\nvalue as specified by\n[iso8601](https://en.wikipedia.org/wiki/ISO_8601).", + "enumValues": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "SCALAR", + "name": "Date", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "paid_by", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "currency", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "account_number", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "declared_value", + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "bill_to", + "type": { + "kind": "OBJECT", + "name": "AddressType", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "DutyType", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "created_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "updated_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "created_by", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "OrganizationUserType", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "postal_code", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "city", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "federal_tax_id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "state_tax_id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "person_name", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "company_name", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "country_code", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "AddressCountryCode", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "email", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "phone_number", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "state_code", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "suburb", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "residential", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "address_line1", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "address_line2", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "validate_location", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "validation", + "type": { + "kind": "SCALAR", + "name": "GenericScalar", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "org", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "OrganizationType", + "ofType": null + } + } + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "AddressType", + "possibleTypes": null + }, + { + "description": "An enumeration.", + "enumValues": [ + { + "deprecationReason": null, + "description": "AD", + "isDeprecated": false, + "name": "AD" + }, + { + "deprecationReason": null, + "description": "AE", + "isDeprecated": false, + "name": "AE" + }, + { + "deprecationReason": null, + "description": "AF", + "isDeprecated": false, + "name": "AF" + }, + { + "deprecationReason": null, + "description": "AG", + "isDeprecated": false, + "name": "AG" + }, + { + "deprecationReason": null, + "description": "AI", + "isDeprecated": false, + "name": "AI" + }, + { + "deprecationReason": null, + "description": "AL", + "isDeprecated": false, + "name": "AL" + }, + { + "deprecationReason": null, + "description": "AM", + "isDeprecated": false, + "name": "AM" + }, + { + "deprecationReason": null, + "description": "AN", + "isDeprecated": false, + "name": "AN" + }, + { + "deprecationReason": null, + "description": "AO", + "isDeprecated": false, + "name": "AO" + }, + { + "deprecationReason": null, + "description": "AR", + "isDeprecated": false, + "name": "AR" + }, + { + "deprecationReason": null, + "description": "AS", + "isDeprecated": false, + "name": "AS" + }, + { + "deprecationReason": null, + "description": "AT", + "isDeprecated": false, + "name": "AT" + }, + { + "deprecationReason": null, + "description": "AU", + "isDeprecated": false, + "name": "AU" + }, + { + "deprecationReason": null, + "description": "AW", + "isDeprecated": false, + "name": "AW" + }, + { + "deprecationReason": null, + "description": "AZ", + "isDeprecated": false, + "name": "AZ" + }, + { + "deprecationReason": null, + "description": "BA", + "isDeprecated": false, + "name": "BA" + }, + { + "deprecationReason": null, + "description": "BB", + "isDeprecated": false, + "name": "BB" + }, + { + "deprecationReason": null, + "description": "BD", + "isDeprecated": false, + "name": "BD" + }, + { + "deprecationReason": null, + "description": "BE", + "isDeprecated": false, + "name": "BE" + }, + { + "deprecationReason": null, + "description": "BF", + "isDeprecated": false, + "name": "BF" + }, + { + "deprecationReason": null, + "description": "BG", + "isDeprecated": false, + "name": "BG" + }, + { + "deprecationReason": null, + "description": "BH", + "isDeprecated": false, + "name": "BH" + }, + { + "deprecationReason": null, + "description": "BI", + "isDeprecated": false, + "name": "BI" + }, + { + "deprecationReason": null, + "description": "BJ", + "isDeprecated": false, + "name": "BJ" + }, + { + "deprecationReason": null, + "description": "BM", + "isDeprecated": false, + "name": "BM" + }, + { + "deprecationReason": null, + "description": "BN", + "isDeprecated": false, + "name": "BN" + }, + { + "deprecationReason": null, + "description": "BO", + "isDeprecated": false, + "name": "BO" + }, + { + "deprecationReason": null, + "description": "BR", + "isDeprecated": false, + "name": "BR" + }, + { + "deprecationReason": null, + "description": "BS", + "isDeprecated": false, + "name": "BS" + }, + { + "deprecationReason": null, + "description": "BT", + "isDeprecated": false, + "name": "BT" + }, + { + "deprecationReason": null, + "description": "BW", + "isDeprecated": false, + "name": "BW" + }, + { + "deprecationReason": null, + "description": "BY", + "isDeprecated": false, + "name": "BY" + }, + { + "deprecationReason": null, + "description": "BZ", + "isDeprecated": false, + "name": "BZ" + }, + { + "deprecationReason": null, + "description": "CA", + "isDeprecated": false, + "name": "CA" + }, + { + "deprecationReason": null, + "description": "CD", + "isDeprecated": false, + "name": "CD" + }, + { + "deprecationReason": null, + "description": "CF", + "isDeprecated": false, + "name": "CF" + }, + { + "deprecationReason": null, + "description": "CG", + "isDeprecated": false, + "name": "CG" + }, + { + "deprecationReason": null, + "description": "CH", + "isDeprecated": false, + "name": "CH" + }, + { + "deprecationReason": null, + "description": "CI", + "isDeprecated": false, + "name": "CI" + }, + { + "deprecationReason": null, + "description": "CK", + "isDeprecated": false, + "name": "CK" + }, + { + "deprecationReason": null, + "description": "CL", + "isDeprecated": false, + "name": "CL" + }, + { + "deprecationReason": null, + "description": "CM", + "isDeprecated": false, + "name": "CM" + }, + { + "deprecationReason": null, + "description": "CN", + "isDeprecated": false, + "name": "CN" + }, + { + "deprecationReason": null, + "description": "CO", + "isDeprecated": false, + "name": "CO" + }, + { + "deprecationReason": null, + "description": "CR", + "isDeprecated": false, + "name": "CR" + }, + { + "deprecationReason": null, + "description": "CU", + "isDeprecated": false, + "name": "CU" + }, + { + "deprecationReason": null, + "description": "CV", + "isDeprecated": false, + "name": "CV" + }, + { + "deprecationReason": null, + "description": "CY", + "isDeprecated": false, + "name": "CY" + }, + { + "deprecationReason": null, + "description": "CZ", + "isDeprecated": false, + "name": "CZ" + }, + { + "deprecationReason": null, + "description": "DE", + "isDeprecated": false, + "name": "DE" + }, + { + "deprecationReason": null, + "description": "DJ", + "isDeprecated": false, + "name": "DJ" + }, + { + "deprecationReason": null, + "description": "DK", + "isDeprecated": false, + "name": "DK" + }, + { + "deprecationReason": null, + "description": "DM", + "isDeprecated": false, + "name": "DM" + }, + { + "deprecationReason": null, + "description": "DO", + "isDeprecated": false, + "name": "DO" + }, + { + "deprecationReason": null, + "description": "DZ", + "isDeprecated": false, + "name": "DZ" + }, + { + "deprecationReason": null, + "description": "EC", + "isDeprecated": false, + "name": "EC" + }, + { + "deprecationReason": null, + "description": "EE", + "isDeprecated": false, + "name": "EE" + }, + { + "deprecationReason": null, + "description": "EG", + "isDeprecated": false, + "name": "EG" + }, + { + "deprecationReason": null, + "description": "ER", + "isDeprecated": false, + "name": "ER" + }, + { + "deprecationReason": null, + "description": "ES", + "isDeprecated": false, + "name": "ES" + }, + { + "deprecationReason": null, + "description": "ET", + "isDeprecated": false, + "name": "ET" + }, + { + "deprecationReason": null, + "description": "FI", + "isDeprecated": false, + "name": "FI" + }, + { + "deprecationReason": null, + "description": "FJ", + "isDeprecated": false, + "name": "FJ" + }, + { + "deprecationReason": null, + "description": "FK", + "isDeprecated": false, + "name": "FK" + }, + { + "deprecationReason": null, + "description": "FM", + "isDeprecated": false, + "name": "FM" + }, + { + "deprecationReason": null, + "description": "FO", + "isDeprecated": false, + "name": "FO" + }, + { + "deprecationReason": null, + "description": "FR", + "isDeprecated": false, + "name": "FR" + }, + { + "deprecationReason": null, + "description": "GA", + "isDeprecated": false, + "name": "GA" + }, + { + "deprecationReason": null, + "description": "GB", + "isDeprecated": false, + "name": "GB" + }, + { + "deprecationReason": null, + "description": "GD", + "isDeprecated": false, + "name": "GD" + }, + { + "deprecationReason": null, + "description": "GE", + "isDeprecated": false, + "name": "GE" + }, + { + "deprecationReason": null, + "description": "GF", + "isDeprecated": false, + "name": "GF" + }, + { + "deprecationReason": null, + "description": "GG", + "isDeprecated": false, + "name": "GG" + }, + { + "deprecationReason": null, + "description": "GH", + "isDeprecated": false, + "name": "GH" + }, + { + "deprecationReason": null, + "description": "GI", + "isDeprecated": false, + "name": "GI" + }, + { + "deprecationReason": null, + "description": "GL", + "isDeprecated": false, + "name": "GL" + }, + { + "deprecationReason": null, + "description": "GM", + "isDeprecated": false, + "name": "GM" + }, + { + "deprecationReason": null, + "description": "GN", + "isDeprecated": false, + "name": "GN" + }, + { + "deprecationReason": null, + "description": "GP", + "isDeprecated": false, + "name": "GP" + }, + { + "deprecationReason": null, + "description": "GQ", + "isDeprecated": false, + "name": "GQ" + }, + { + "deprecationReason": null, + "description": "GR", + "isDeprecated": false, + "name": "GR" + }, + { + "deprecationReason": null, + "description": "GT", + "isDeprecated": false, + "name": "GT" + }, + { + "deprecationReason": null, + "description": "GU", + "isDeprecated": false, + "name": "GU" + }, + { + "deprecationReason": null, + "description": "GW", + "isDeprecated": false, + "name": "GW" + }, + { + "deprecationReason": null, + "description": "GY", + "isDeprecated": false, + "name": "GY" + }, + { + "deprecationReason": null, + "description": "HK", + "isDeprecated": false, + "name": "HK" + }, + { + "deprecationReason": null, + "description": "HN", + "isDeprecated": false, + "name": "HN" + }, + { + "deprecationReason": null, + "description": "HR", + "isDeprecated": false, + "name": "HR" + }, + { + "deprecationReason": null, + "description": "HT", + "isDeprecated": false, + "name": "HT" + }, + { + "deprecationReason": null, + "description": "HU", + "isDeprecated": false, + "name": "HU" + }, + { + "deprecationReason": null, + "description": "IC", + "isDeprecated": false, + "name": "IC" + }, + { + "deprecationReason": null, + "description": "ID", + "isDeprecated": false, + "name": "ID" + }, + { + "deprecationReason": null, + "description": "IE", + "isDeprecated": false, + "name": "IE" + }, + { + "deprecationReason": null, + "description": "IL", + "isDeprecated": false, + "name": "IL" + }, + { + "deprecationReason": null, + "description": "IN", + "isDeprecated": false, + "name": "IN" + }, + { + "deprecationReason": null, + "description": "IQ", + "isDeprecated": false, + "name": "IQ" + }, + { + "deprecationReason": null, + "description": "IR", + "isDeprecated": false, + "name": "IR" + }, + { + "deprecationReason": null, + "description": "IS", + "isDeprecated": false, + "name": "IS" + }, + { + "deprecationReason": null, + "description": "IT", + "isDeprecated": false, + "name": "IT" + }, + { + "deprecationReason": null, + "description": "JE", + "isDeprecated": false, + "name": "JE" + }, + { + "deprecationReason": null, + "description": "JM", + "isDeprecated": false, + "name": "JM" + }, + { + "deprecationReason": null, + "description": "JO", + "isDeprecated": false, + "name": "JO" + }, + { + "deprecationReason": null, + "description": "JP", + "isDeprecated": false, + "name": "JP" + }, + { + "deprecationReason": null, + "description": "KE", + "isDeprecated": false, + "name": "KE" + }, + { + "deprecationReason": null, + "description": "KG", + "isDeprecated": false, + "name": "KG" + }, + { + "deprecationReason": null, + "description": "KH", + "isDeprecated": false, + "name": "KH" + }, + { + "deprecationReason": null, + "description": "KI", + "isDeprecated": false, + "name": "KI" + }, + { + "deprecationReason": null, + "description": "KM", + "isDeprecated": false, + "name": "KM" + }, + { + "deprecationReason": null, + "description": "KN", + "isDeprecated": false, + "name": "KN" + }, + { + "deprecationReason": null, + "description": "KP", + "isDeprecated": false, + "name": "KP" + }, + { + "deprecationReason": null, + "description": "KR", + "isDeprecated": false, + "name": "KR" + }, + { + "deprecationReason": null, + "description": "KV", + "isDeprecated": false, + "name": "KV" + }, + { + "deprecationReason": null, + "description": "KW", + "isDeprecated": false, + "name": "KW" + }, + { + "deprecationReason": null, + "description": "KY", + "isDeprecated": false, + "name": "KY" + }, + { + "deprecationReason": null, + "description": "KZ", + "isDeprecated": false, + "name": "KZ" + }, + { + "deprecationReason": null, + "description": "LA", + "isDeprecated": false, + "name": "LA" + }, + { + "deprecationReason": null, + "description": "LB", + "isDeprecated": false, + "name": "LB" + }, + { + "deprecationReason": null, + "description": "LC", + "isDeprecated": false, + "name": "LC" + }, + { + "deprecationReason": null, + "description": "LI", + "isDeprecated": false, + "name": "LI" + }, + { + "deprecationReason": null, + "description": "LK", + "isDeprecated": false, + "name": "LK" + }, + { + "deprecationReason": null, + "description": "LR", + "isDeprecated": false, + "name": "LR" + }, + { + "deprecationReason": null, + "description": "LS", + "isDeprecated": false, + "name": "LS" + }, + { + "deprecationReason": null, + "description": "LT", + "isDeprecated": false, + "name": "LT" + }, + { + "deprecationReason": null, + "description": "LU", + "isDeprecated": false, + "name": "LU" + }, + { + "deprecationReason": null, + "description": "LV", + "isDeprecated": false, + "name": "LV" + }, + { + "deprecationReason": null, + "description": "LY", + "isDeprecated": false, + "name": "LY" + }, + { + "deprecationReason": null, + "description": "MA", + "isDeprecated": false, + "name": "MA" + }, + { + "deprecationReason": null, + "description": "MC", + "isDeprecated": false, + "name": "MC" + }, + { + "deprecationReason": null, + "description": "MD", + "isDeprecated": false, + "name": "MD" + }, + { + "deprecationReason": null, + "description": "ME", + "isDeprecated": false, + "name": "ME" + }, + { + "deprecationReason": null, + "description": "MG", + "isDeprecated": false, + "name": "MG" + }, + { + "deprecationReason": null, + "description": "MH", + "isDeprecated": false, + "name": "MH" + }, + { + "deprecationReason": null, + "description": "MK", + "isDeprecated": false, + "name": "MK" + }, + { + "deprecationReason": null, + "description": "ML", + "isDeprecated": false, + "name": "ML" + }, + { + "deprecationReason": null, + "description": "MM", + "isDeprecated": false, + "name": "MM" + }, + { + "deprecationReason": null, + "description": "MN", + "isDeprecated": false, + "name": "MN" + }, + { + "deprecationReason": null, + "description": "MO", + "isDeprecated": false, + "name": "MO" + }, + { + "deprecationReason": null, + "description": "MP", + "isDeprecated": false, + "name": "MP" + }, + { + "deprecationReason": null, + "description": "MQ", + "isDeprecated": false, + "name": "MQ" + }, + { + "deprecationReason": null, + "description": "MR", + "isDeprecated": false, + "name": "MR" + }, + { + "deprecationReason": null, + "description": "MS", + "isDeprecated": false, + "name": "MS" + }, + { + "deprecationReason": null, + "description": "MT", + "isDeprecated": false, + "name": "MT" + }, + { + "deprecationReason": null, + "description": "MU", + "isDeprecated": false, + "name": "MU" + }, + { + "deprecationReason": null, + "description": "MV", + "isDeprecated": false, + "name": "MV" + }, + { + "deprecationReason": null, + "description": "MW", + "isDeprecated": false, + "name": "MW" + }, + { + "deprecationReason": null, + "description": "MX", + "isDeprecated": false, + "name": "MX" + }, + { + "deprecationReason": null, + "description": "MY", + "isDeprecated": false, + "name": "MY" + }, + { + "deprecationReason": null, + "description": "MZ", + "isDeprecated": false, + "name": "MZ" + }, + { + "deprecationReason": null, + "description": "NA", + "isDeprecated": false, + "name": "NA" + }, + { + "deprecationReason": null, + "description": "NC", + "isDeprecated": false, + "name": "NC" + }, + { + "deprecationReason": null, + "description": "NE", + "isDeprecated": false, + "name": "NE" + }, + { + "deprecationReason": null, + "description": "NG", + "isDeprecated": false, + "name": "NG" + }, + { + "deprecationReason": null, + "description": "NI", + "isDeprecated": false, + "name": "NI" + }, + { + "deprecationReason": null, + "description": "NL", + "isDeprecated": false, + "name": "NL" + }, + { + "deprecationReason": null, + "description": "NO", + "isDeprecated": false, + "name": "NO" + }, + { + "deprecationReason": null, + "description": "NP", + "isDeprecated": false, + "name": "NP" + }, + { + "deprecationReason": null, + "description": "NR", + "isDeprecated": false, + "name": "NR" + }, + { + "deprecationReason": null, + "description": "NU", + "isDeprecated": false, + "name": "NU" + }, + { + "deprecationReason": null, + "description": "NZ", + "isDeprecated": false, + "name": "NZ" + }, + { + "deprecationReason": null, + "description": "OM", + "isDeprecated": false, + "name": "OM" + }, + { + "deprecationReason": null, + "description": "PA", + "isDeprecated": false, + "name": "PA" + }, + { + "deprecationReason": null, + "description": "PE", + "isDeprecated": false, + "name": "PE" + }, + { + "deprecationReason": null, + "description": "PF", + "isDeprecated": false, + "name": "PF" + }, + { + "deprecationReason": null, + "description": "PG", + "isDeprecated": false, + "name": "PG" + }, + { + "deprecationReason": null, + "description": "PH", + "isDeprecated": false, + "name": "PH" + }, + { + "deprecationReason": null, + "description": "PK", + "isDeprecated": false, + "name": "PK" + }, + { + "deprecationReason": null, + "description": "PL", + "isDeprecated": false, + "name": "PL" + }, + { + "deprecationReason": null, + "description": "PR", + "isDeprecated": false, + "name": "PR" + }, + { + "deprecationReason": null, + "description": "PT", + "isDeprecated": false, + "name": "PT" + }, + { + "deprecationReason": null, + "description": "PW", + "isDeprecated": false, + "name": "PW" + }, + { + "deprecationReason": null, + "description": "PY", + "isDeprecated": false, + "name": "PY" + }, + { + "deprecationReason": null, + "description": "QA", + "isDeprecated": false, + "name": "QA" + }, + { + "deprecationReason": null, + "description": "RE", + "isDeprecated": false, + "name": "RE" + }, + { + "deprecationReason": null, + "description": "RO", + "isDeprecated": false, + "name": "RO" + }, + { + "deprecationReason": null, + "description": "RS", + "isDeprecated": false, + "name": "RS" + }, + { + "deprecationReason": null, + "description": "RU", + "isDeprecated": false, + "name": "RU" + }, + { + "deprecationReason": null, + "description": "RW", + "isDeprecated": false, + "name": "RW" + }, + { + "deprecationReason": null, + "description": "SA", + "isDeprecated": false, + "name": "SA" + }, + { + "deprecationReason": null, + "description": "SB", + "isDeprecated": false, + "name": "SB" + }, + { + "deprecationReason": null, + "description": "SC", + "isDeprecated": false, + "name": "SC" + }, + { + "deprecationReason": null, + "description": "SD", + "isDeprecated": false, + "name": "SD" + }, + { + "deprecationReason": null, + "description": "SE", + "isDeprecated": false, + "name": "SE" + }, + { + "deprecationReason": null, + "description": "SG", + "isDeprecated": false, + "name": "SG" + }, + { + "deprecationReason": null, + "description": "SH", + "isDeprecated": false, + "name": "SH" + }, + { + "deprecationReason": null, + "description": "SI", + "isDeprecated": false, + "name": "SI" + }, + { + "deprecationReason": null, + "description": "SK", + "isDeprecated": false, + "name": "SK" + }, + { + "deprecationReason": null, + "description": "SL", + "isDeprecated": false, + "name": "SL" + }, + { + "deprecationReason": null, + "description": "SM", + "isDeprecated": false, + "name": "SM" + }, + { + "deprecationReason": null, + "description": "SN", + "isDeprecated": false, + "name": "SN" + }, + { + "deprecationReason": null, + "description": "SO", + "isDeprecated": false, + "name": "SO" + }, + { + "deprecationReason": null, + "description": "SR", + "isDeprecated": false, + "name": "SR" + }, + { + "deprecationReason": null, + "description": "SS", + "isDeprecated": false, + "name": "SS" + }, + { + "deprecationReason": null, + "description": "ST", + "isDeprecated": false, + "name": "ST" + }, + { + "deprecationReason": null, + "description": "SV", + "isDeprecated": false, + "name": "SV" + }, + { + "deprecationReason": null, + "description": "SY", + "isDeprecated": false, + "name": "SY" + }, + { + "deprecationReason": null, + "description": "SZ", + "isDeprecated": false, + "name": "SZ" + }, + { + "deprecationReason": null, + "description": "TC", + "isDeprecated": false, + "name": "TC" + }, + { + "deprecationReason": null, + "description": "TD", + "isDeprecated": false, + "name": "TD" + }, + { + "deprecationReason": null, + "description": "TG", + "isDeprecated": false, + "name": "TG" + }, + { + "deprecationReason": null, + "description": "TH", + "isDeprecated": false, + "name": "TH" + }, + { + "deprecationReason": null, + "description": "TJ", + "isDeprecated": false, + "name": "TJ" + }, + { + "deprecationReason": null, + "description": "TL", + "isDeprecated": false, + "name": "TL" + }, + { + "deprecationReason": null, + "description": "TN", + "isDeprecated": false, + "name": "TN" + }, + { + "deprecationReason": null, + "description": "TO", + "isDeprecated": false, + "name": "TO" + }, + { + "deprecationReason": null, + "description": "TR", + "isDeprecated": false, + "name": "TR" + }, + { + "deprecationReason": null, + "description": "TT", + "isDeprecated": false, + "name": "TT" + }, + { + "deprecationReason": null, + "description": "TV", + "isDeprecated": false, + "name": "TV" + }, + { + "deprecationReason": null, + "description": "TW", + "isDeprecated": false, + "name": "TW" + }, + { + "deprecationReason": null, + "description": "TZ", + "isDeprecated": false, + "name": "TZ" + }, + { + "deprecationReason": null, + "description": "UA", + "isDeprecated": false, + "name": "UA" + }, + { + "deprecationReason": null, + "description": "UG", + "isDeprecated": false, + "name": "UG" + }, + { + "deprecationReason": null, + "description": "US", + "isDeprecated": false, + "name": "US" + }, + { + "deprecationReason": null, + "description": "UY", + "isDeprecated": false, + "name": "UY" + }, + { + "deprecationReason": null, + "description": "UZ", + "isDeprecated": false, + "name": "UZ" + }, + { + "deprecationReason": null, + "description": "VA", + "isDeprecated": false, + "name": "VA" + }, + { + "deprecationReason": null, + "description": "VC", + "isDeprecated": false, + "name": "VC" + }, + { + "deprecationReason": null, + "description": "VE", + "isDeprecated": false, + "name": "VE" + }, + { + "deprecationReason": null, + "description": "VG", + "isDeprecated": false, + "name": "VG" + }, + { + "deprecationReason": null, + "description": "VI", + "isDeprecated": false, + "name": "VI" + }, + { + "deprecationReason": null, + "description": "VN", + "isDeprecated": false, + "name": "VN" + }, + { + "deprecationReason": null, + "description": "VU", + "isDeprecated": false, + "name": "VU" + }, + { + "deprecationReason": null, + "description": "WS", + "isDeprecated": false, + "name": "WS" + }, + { + "deprecationReason": null, + "description": "XB", + "isDeprecated": false, + "name": "XB" + }, + { + "deprecationReason": null, + "description": "XC", + "isDeprecated": false, + "name": "XC" + }, + { + "deprecationReason": null, + "description": "XE", + "isDeprecated": false, + "name": "XE" + }, + { + "deprecationReason": null, + "description": "XM", + "isDeprecated": false, + "name": "XM" + }, + { + "deprecationReason": null, + "description": "XN", + "isDeprecated": false, + "name": "XN" + }, + { + "deprecationReason": null, + "description": "XS", + "isDeprecated": false, + "name": "XS" + }, + { + "deprecationReason": null, + "description": "XY", + "isDeprecated": false, + "name": "XY" + }, + { + "deprecationReason": null, + "description": "YE", + "isDeprecated": false, + "name": "YE" + }, + { + "deprecationReason": null, + "description": "YT", + "isDeprecated": false, + "name": "YT" + }, + { + "deprecationReason": null, + "description": "ZA", + "isDeprecated": false, + "name": "ZA" + }, + { + "deprecationReason": null, + "description": "ZM", + "isDeprecated": false, + "name": "ZM" + }, + { + "deprecationReason": null, + "description": "ZW", + "isDeprecated": false, + "name": "ZW" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "AddressCountryCode", + "possibleTypes": null + }, + { + "description": "The `GenericScalar` scalar type represents a generic\nGraphQL scalar value that could be:\nString, Boolean, Int, Float, List or Object.", + "enumValues": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "SCALAR", + "name": "GenericScalar", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "created_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "updated_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "created_by", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "OrganizationUserType", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "weight", + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "description", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "quantity", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "sku", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "value_amount", + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "weight_unit", + "type": { + "kind": "ENUM", + "name": "CommodityWeightUnit", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "value_currency", + "type": { + "kind": "ENUM", + "name": "CommodityValueCurrency", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "origin_country", + "type": { + "kind": "ENUM", + "name": "CommodityOriginCountry", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "org", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "OrganizationType", + "ofType": null + } + } + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "CommodityType", + "possibleTypes": null + }, + { + "description": "The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31 - 1) and 2^31 - 1 since represented in JSON as double-precision floating point numbers specifiedby [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point).", "enumValues": null, - "fields": [ + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "SCALAR", + "name": "Int", + "possibleTypes": null + }, + { + "description": "An enumeration.", + "enumValues": [ + { + "deprecationReason": null, + "description": "KG", + "isDeprecated": false, + "name": "KG" + }, + { + "deprecationReason": null, + "description": "LB", + "isDeprecated": false, + "name": "LB" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "CommodityWeightUnit", + "possibleTypes": null + }, + { + "description": "An enumeration.", + "enumValues": [ + { + "deprecationReason": null, + "description": "EUR", + "isDeprecated": false, + "name": "EUR" + }, + { + "deprecationReason": null, + "description": "AED", + "isDeprecated": false, + "name": "AED" + }, + { + "deprecationReason": null, + "description": "USD", + "isDeprecated": false, + "name": "USD" + }, + { + "deprecationReason": null, + "description": "XCD", + "isDeprecated": false, + "name": "XCD" + }, + { + "deprecationReason": null, + "description": "AMD", + "isDeprecated": false, + "name": "AMD" + }, + { + "deprecationReason": null, + "description": "ANG", + "isDeprecated": false, + "name": "ANG" + }, + { + "deprecationReason": null, + "description": "AOA", + "isDeprecated": false, + "name": "AOA" + }, + { + "deprecationReason": null, + "description": "ARS", + "isDeprecated": false, + "name": "ARS" + }, + { + "deprecationReason": null, + "description": "AUD", + "isDeprecated": false, + "name": "AUD" + }, + { + "deprecationReason": null, + "description": "AWG", + "isDeprecated": false, + "name": "AWG" + }, + { + "deprecationReason": null, + "description": "AZN", + "isDeprecated": false, + "name": "AZN" + }, + { + "deprecationReason": null, + "description": "BAM", + "isDeprecated": false, + "name": "BAM" + }, + { + "deprecationReason": null, + "description": "BBD", + "isDeprecated": false, + "name": "BBD" + }, + { + "deprecationReason": null, + "description": "BDT", + "isDeprecated": false, + "name": "BDT" + }, + { + "deprecationReason": null, + "description": "XOF", + "isDeprecated": false, + "name": "XOF" + }, + { + "deprecationReason": null, + "description": "BGN", + "isDeprecated": false, + "name": "BGN" + }, + { + "deprecationReason": null, + "description": "BHD", + "isDeprecated": false, + "name": "BHD" + }, + { + "deprecationReason": null, + "description": "BIF", + "isDeprecated": false, + "name": "BIF" + }, + { + "deprecationReason": null, + "description": "BMD", + "isDeprecated": false, + "name": "BMD" + }, + { + "deprecationReason": null, + "description": "BND", + "isDeprecated": false, + "name": "BND" + }, + { + "deprecationReason": null, + "description": "BOB", + "isDeprecated": false, + "name": "BOB" + }, + { + "deprecationReason": null, + "description": "BRL", + "isDeprecated": false, + "name": "BRL" + }, + { + "deprecationReason": null, + "description": "BSD", + "isDeprecated": false, + "name": "BSD" + }, + { + "deprecationReason": null, + "description": "BTN", + "isDeprecated": false, + "name": "BTN" + }, + { + "deprecationReason": null, + "description": "BWP", + "isDeprecated": false, + "name": "BWP" + }, + { + "deprecationReason": null, + "description": "BYN", + "isDeprecated": false, + "name": "BYN" + }, + { + "deprecationReason": null, + "description": "BZD", + "isDeprecated": false, + "name": "BZD" + }, + { + "deprecationReason": null, + "description": "CAD", + "isDeprecated": false, + "name": "CAD" + }, + { + "deprecationReason": null, + "description": "CDF", + "isDeprecated": false, + "name": "CDF" + }, + { + "deprecationReason": null, + "description": "XAF", + "isDeprecated": false, + "name": "XAF" + }, + { + "deprecationReason": null, + "description": "CHF", + "isDeprecated": false, + "name": "CHF" + }, + { + "deprecationReason": null, + "description": "NZD", + "isDeprecated": false, + "name": "NZD" + }, + { + "deprecationReason": null, + "description": "CLP", + "isDeprecated": false, + "name": "CLP" + }, + { + "deprecationReason": null, + "description": "CNY", + "isDeprecated": false, + "name": "CNY" + }, + { + "deprecationReason": null, + "description": "COP", + "isDeprecated": false, + "name": "COP" + }, + { + "deprecationReason": null, + "description": "CRC", + "isDeprecated": false, + "name": "CRC" + }, + { + "deprecationReason": null, + "description": "CUC", + "isDeprecated": false, + "name": "CUC" + }, + { + "deprecationReason": null, + "description": "CVE", + "isDeprecated": false, + "name": "CVE" + }, + { + "deprecationReason": null, + "description": "CZK", + "isDeprecated": false, + "name": "CZK" + }, + { + "deprecationReason": null, + "description": "DJF", + "isDeprecated": false, + "name": "DJF" + }, + { + "deprecationReason": null, + "description": "DKK", + "isDeprecated": false, + "name": "DKK" + }, + { + "deprecationReason": null, + "description": "DOP", + "isDeprecated": false, + "name": "DOP" + }, + { + "deprecationReason": null, + "description": "DZD", + "isDeprecated": false, + "name": "DZD" + }, + { + "deprecationReason": null, + "description": "EGP", + "isDeprecated": false, + "name": "EGP" + }, + { + "deprecationReason": null, + "description": "ERN", + "isDeprecated": false, + "name": "ERN" + }, + { + "deprecationReason": null, + "description": "ETB", + "isDeprecated": false, + "name": "ETB" + }, + { + "deprecationReason": null, + "description": "FJD", + "isDeprecated": false, + "name": "FJD" + }, + { + "deprecationReason": null, + "description": "GBP", + "isDeprecated": false, + "name": "GBP" + }, + { + "deprecationReason": null, + "description": "GEL", + "isDeprecated": false, + "name": "GEL" + }, + { + "deprecationReason": null, + "description": "GHS", + "isDeprecated": false, + "name": "GHS" + }, + { + "deprecationReason": null, + "description": "GMD", + "isDeprecated": false, + "name": "GMD" + }, + { + "deprecationReason": null, + "description": "GNF", + "isDeprecated": false, + "name": "GNF" + }, + { + "deprecationReason": null, + "description": "GTQ", + "isDeprecated": false, + "name": "GTQ" + }, + { + "deprecationReason": null, + "description": "GYD", + "isDeprecated": false, + "name": "GYD" + }, + { + "deprecationReason": null, + "description": "HKD", + "isDeprecated": false, + "name": "HKD" + }, + { + "deprecationReason": null, + "description": "HNL", + "isDeprecated": false, + "name": "HNL" + }, + { + "deprecationReason": null, + "description": "HRK", + "isDeprecated": false, + "name": "HRK" + }, + { + "deprecationReason": null, + "description": "HTG", + "isDeprecated": false, + "name": "HTG" + }, + { + "deprecationReason": null, + "description": "HUF", + "isDeprecated": false, + "name": "HUF" + }, + { + "deprecationReason": null, + "description": "IDR", + "isDeprecated": false, + "name": "IDR" + }, + { + "deprecationReason": null, + "description": "ILS", + "isDeprecated": false, + "name": "ILS" + }, + { + "deprecationReason": null, + "description": "INR", + "isDeprecated": false, + "name": "INR" + }, + { + "deprecationReason": null, + "description": "IRR", + "isDeprecated": false, + "name": "IRR" + }, + { + "deprecationReason": null, + "description": "ISK", + "isDeprecated": false, + "name": "ISK" + }, + { + "deprecationReason": null, + "description": "JMD", + "isDeprecated": false, + "name": "JMD" + }, + { + "deprecationReason": null, + "description": "JOD", + "isDeprecated": false, + "name": "JOD" + }, + { + "deprecationReason": null, + "description": "JPY", + "isDeprecated": false, + "name": "JPY" + }, + { + "deprecationReason": null, + "description": "KES", + "isDeprecated": false, + "name": "KES" + }, + { + "deprecationReason": null, + "description": "KGS", + "isDeprecated": false, + "name": "KGS" + }, + { + "deprecationReason": null, + "description": "KHR", + "isDeprecated": false, + "name": "KHR" + }, + { + "deprecationReason": null, + "description": "KMF", + "isDeprecated": false, + "name": "KMF" + }, + { + "deprecationReason": null, + "description": "KPW", + "isDeprecated": false, + "name": "KPW" + }, + { + "deprecationReason": null, + "description": "KRW", + "isDeprecated": false, + "name": "KRW" + }, + { + "deprecationReason": null, + "description": "KWD", + "isDeprecated": false, + "name": "KWD" + }, + { + "deprecationReason": null, + "description": "KYD", + "isDeprecated": false, + "name": "KYD" + }, + { + "deprecationReason": null, + "description": "KZT", + "isDeprecated": false, + "name": "KZT" + }, + { + "deprecationReason": null, + "description": "LAK", + "isDeprecated": false, + "name": "LAK" + }, + { + "deprecationReason": null, + "description": "LKR", + "isDeprecated": false, + "name": "LKR" + }, + { + "deprecationReason": null, + "description": "LRD", + "isDeprecated": false, + "name": "LRD" + }, + { + "deprecationReason": null, + "description": "LSL", + "isDeprecated": false, + "name": "LSL" + }, + { + "deprecationReason": null, + "description": "LYD", + "isDeprecated": false, + "name": "LYD" + }, + { + "deprecationReason": null, + "description": "MAD", + "isDeprecated": false, + "name": "MAD" + }, + { + "deprecationReason": null, + "description": "MDL", + "isDeprecated": false, + "name": "MDL" + }, + { + "deprecationReason": null, + "description": "MGA", + "isDeprecated": false, + "name": "MGA" + }, + { + "deprecationReason": null, + "description": "MKD", + "isDeprecated": false, + "name": "MKD" + }, + { + "deprecationReason": null, + "description": "MMK", + "isDeprecated": false, + "name": "MMK" + }, + { + "deprecationReason": null, + "description": "MNT", + "isDeprecated": false, + "name": "MNT" + }, + { + "deprecationReason": null, + "description": "MOP", + "isDeprecated": false, + "name": "MOP" + }, + { + "deprecationReason": null, + "description": "MRO", + "isDeprecated": false, + "name": "MRO" + }, + { + "deprecationReason": null, + "description": "MUR", + "isDeprecated": false, + "name": "MUR" + }, + { + "deprecationReason": null, + "description": "MVR", + "isDeprecated": false, + "name": "MVR" + }, + { + "deprecationReason": null, + "description": "MWK", + "isDeprecated": false, + "name": "MWK" + }, + { + "deprecationReason": null, + "description": "MXN", + "isDeprecated": false, + "name": "MXN" + }, + { + "deprecationReason": null, + "description": "MYR", + "isDeprecated": false, + "name": "MYR" + }, + { + "deprecationReason": null, + "description": "MZN", + "isDeprecated": false, + "name": "MZN" + }, + { + "deprecationReason": null, + "description": "NAD", + "isDeprecated": false, + "name": "NAD" + }, + { + "deprecationReason": null, + "description": "XPF", + "isDeprecated": false, + "name": "XPF" + }, + { + "deprecationReason": null, + "description": "NGN", + "isDeprecated": false, + "name": "NGN" + }, + { + "deprecationReason": null, + "description": "NIO", + "isDeprecated": false, + "name": "NIO" + }, + { + "deprecationReason": null, + "description": "NOK", + "isDeprecated": false, + "name": "NOK" + }, + { + "deprecationReason": null, + "description": "NPR", + "isDeprecated": false, + "name": "NPR" + }, + { + "deprecationReason": null, + "description": "OMR", + "isDeprecated": false, + "name": "OMR" + }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "PEN", "isDeprecated": false, - "name": "last_login", - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } + "name": "PEN" }, { - "args": [], "deprecationReason": null, - "description": "Designates whether the user can log into this admin site.", + "description": "PGK", "isDeprecated": false, - "name": "is_staff", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } + "name": "PGK" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "PHP", "isDeprecated": false, - "name": "date_joined", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "PHP" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "PKR", "isDeprecated": false, - "name": "full_name", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "PKR" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "PLN", "isDeprecated": false, - "name": "email", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "UserType", - "possibleTypes": null - }, - { - "description": "The `DateTime` scalar type represents a DateTime\nvalue as specified by\n[iso8601](https://en.wikipedia.org/wiki/ISO_8601).", - "enumValues": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "kind": "SCALAR", - "name": "DateTime", - "possibleTypes": null - }, - { - "description": "The `Boolean` scalar type represents `true` or `false`.", - "enumValues": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "kind": "SCALAR", - "name": "Boolean", - "possibleTypes": null - }, - { - "description": "The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.", - "enumValues": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "kind": "SCALAR", - "name": "String", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ + "name": "PLN" + }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "PYG", "isDeprecated": false, - "name": "key", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "PYG" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "QAR", "isDeprecated": false, - "name": "created", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "TokenType", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "kind": "UNION", - "name": "ConnectionType", - "possibleTypes": [ + "name": "QAR" + }, { - "kind": "OBJECT", - "name": "AramexSettings", - "ofType": null + "deprecationReason": null, + "description": "RSD", + "isDeprecated": false, + "name": "RSD" }, { - "kind": "OBJECT", - "name": "AustraliaPostSettings", - "ofType": null + "deprecationReason": null, + "description": "RUB", + "isDeprecated": false, + "name": "RUB" }, { - "kind": "OBJECT", - "name": "CanadaPostSettings", - "ofType": null + "deprecationReason": null, + "description": "RWF", + "isDeprecated": false, + "name": "RWF" }, { - "kind": "OBJECT", - "name": "CanparSettings", - "ofType": null + "deprecationReason": null, + "description": "SAR", + "isDeprecated": false, + "name": "SAR" }, { - "kind": "OBJECT", - "name": "DHLExpressSettings", - "ofType": null + "deprecationReason": null, + "description": "SBD", + "isDeprecated": false, + "name": "SBD" }, { - "kind": "OBJECT", - "name": "DHLUniversalSettings", - "ofType": null + "deprecationReason": null, + "description": "SCR", + "isDeprecated": false, + "name": "SCR" }, { - "kind": "OBJECT", - "name": "DicomSettings", - "ofType": null + "deprecationReason": null, + "description": "SDG", + "isDeprecated": false, + "name": "SDG" }, { - "kind": "OBJECT", - "name": "EShipperSettings", - "ofType": null + "deprecationReason": null, + "description": "SEK", + "isDeprecated": false, + "name": "SEK" }, { - "kind": "OBJECT", - "name": "FedexSettings", - "ofType": null + "deprecationReason": null, + "description": "SGD", + "isDeprecated": false, + "name": "SGD" }, { - "kind": "OBJECT", - "name": "FreightcomSettings", - "ofType": null + "deprecationReason": null, + "description": "SHP", + "isDeprecated": false, + "name": "SHP" + }, + { + "deprecationReason": null, + "description": "SLL", + "isDeprecated": false, + "name": "SLL" + }, + { + "deprecationReason": null, + "description": "SOS", + "isDeprecated": false, + "name": "SOS" + }, + { + "deprecationReason": null, + "description": "SRD", + "isDeprecated": false, + "name": "SRD" + }, + { + "deprecationReason": null, + "description": "SSP", + "isDeprecated": false, + "name": "SSP" + }, + { + "deprecationReason": null, + "description": "STD", + "isDeprecated": false, + "name": "STD" }, { - "kind": "OBJECT", - "name": "PurolatorSettings", - "ofType": null + "deprecationReason": null, + "description": "SYP", + "isDeprecated": false, + "name": "SYP" }, { - "kind": "OBJECT", - "name": "RoyalMailSettings", - "ofType": null + "deprecationReason": null, + "description": "SZL", + "isDeprecated": false, + "name": "SZL" }, { - "kind": "OBJECT", - "name": "SendleSettings", - "ofType": null + "deprecationReason": null, + "description": "THB", + "isDeprecated": false, + "name": "THB" }, { - "kind": "OBJECT", - "name": "SFExpressSettings", - "ofType": null + "deprecationReason": null, + "description": "TJS", + "isDeprecated": false, + "name": "TJS" }, { - "kind": "OBJECT", - "name": "TNTSettings", - "ofType": null + "deprecationReason": null, + "description": "TND", + "isDeprecated": false, + "name": "TND" }, { - "kind": "OBJECT", - "name": "UPSSettings", - "ofType": null + "deprecationReason": null, + "description": "TOP", + "isDeprecated": false, + "name": "TOP" }, { - "kind": "OBJECT", - "name": "USPSSettings", - "ofType": null + "deprecationReason": null, + "description": "TRY", + "isDeprecated": false, + "name": "TRY" }, { - "kind": "OBJECT", - "name": "USPSInternationalSettings", - "ofType": null + "deprecationReason": null, + "description": "TTD", + "isDeprecated": false, + "name": "TTD" }, { - "kind": "OBJECT", - "name": "YanwenSettings", - "ofType": null + "deprecationReason": null, + "description": "TWD", + "isDeprecated": false, + "name": "TWD" }, { - "kind": "OBJECT", - "name": "YunExpressSettings", - "ofType": null - } - ] - }, - { - "description": null, - "enumValues": null, - "fields": [ + "deprecationReason": null, + "description": "TZS", + "isDeprecated": false, + "name": "TZS" + }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "UAH", "isDeprecated": false, - "name": "created_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "UAH" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "UYU", "isDeprecated": false, - "name": "updated_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "UYU" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "UZS", "isDeprecated": false, - "name": "id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "UZS" }, { - "args": [], "deprecationReason": null, - "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", + "description": "VEF", "isDeprecated": false, - "name": "carrier_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "VEF" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "VND", "isDeprecated": false, - "name": "test", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } + "name": "VND" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "VUV", "isDeprecated": false, - "name": "active", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } + "name": "VUV" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "WST", "isDeprecated": false, - "name": "capabilities", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - } + "name": "WST" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "YER", "isDeprecated": false, - "name": "created_by", - "type": { - "kind": "OBJECT", - "name": "UserType", - "ofType": null - } + "name": "YER" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "ZAR", "isDeprecated": false, - "name": "username", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "ZAR" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "CommodityValueCurrency", + "possibleTypes": null + }, + { + "description": "An enumeration.", + "enumValues": [ + { + "deprecationReason": null, + "description": "AD", + "isDeprecated": false, + "name": "AD" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "AE", "isDeprecated": false, - "name": "password", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "AE" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "AF", "isDeprecated": false, - "name": "account_pin", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "AF" + }, + { + "deprecationReason": null, + "description": "AG", + "isDeprecated": false, + "name": "AG" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "AI", "isDeprecated": false, - "name": "account_entity", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "AI" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "AL", "isDeprecated": false, - "name": "account_number", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "AL" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "AM", "isDeprecated": false, - "name": "account_country_code", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "AM" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "AN", "isDeprecated": false, - "name": "carrier_name", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "AramexSettings", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ + "name": "AN" + }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "AO", "isDeprecated": false, - "name": "created_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "AO" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "AR", "isDeprecated": false, - "name": "updated_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "AR" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "AS", "isDeprecated": false, - "name": "id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "AS" }, { - "args": [], "deprecationReason": null, - "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", + "description": "AT", "isDeprecated": false, - "name": "carrier_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "AT" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "AU", "isDeprecated": false, - "name": "test", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } + "name": "AU" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "AW", "isDeprecated": false, - "name": "active", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } + "name": "AW" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "AZ", "isDeprecated": false, - "name": "capabilities", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - } + "name": "AZ" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "BA", "isDeprecated": false, - "name": "created_by", - "type": { - "kind": "OBJECT", - "name": "UserType", - "ofType": null - } + "name": "BA" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "BB", "isDeprecated": false, - "name": "api_key", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "BB" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "BD", "isDeprecated": false, - "name": "password", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "BD" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "BE", "isDeprecated": false, - "name": "account_number", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "BE" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "BF", "isDeprecated": false, - "name": "carrier_name", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "AustraliaPostSettings", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ + "name": "BF" + }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "BG", "isDeprecated": false, - "name": "created_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "BG" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "BH", "isDeprecated": false, - "name": "updated_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "BH" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "BI", "isDeprecated": false, - "name": "id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "BI" }, { - "args": [], "deprecationReason": null, - "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", + "description": "BJ", "isDeprecated": false, - "name": "carrier_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "BJ" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "BM", "isDeprecated": false, - "name": "test", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } + "name": "BM" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "BN", "isDeprecated": false, - "name": "active", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } + "name": "BN" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "BO", "isDeprecated": false, - "name": "capabilities", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - } + "name": "BO" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "BR", "isDeprecated": false, - "name": "created_by", - "type": { - "kind": "OBJECT", - "name": "UserType", - "ofType": null - } + "name": "BR" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "BS", "isDeprecated": false, - "name": "username", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "BS" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "BT", "isDeprecated": false, - "name": "password", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "BT" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "BW", "isDeprecated": false, - "name": "customer_number", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "BW" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "BY", "isDeprecated": false, - "name": "contract_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "BY" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "BZ", "isDeprecated": false, - "name": "carrier_name", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "CanadaPostSettings", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ + "name": "BZ" + }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "CA", "isDeprecated": false, - "name": "created_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "CA" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "CD", "isDeprecated": false, - "name": "updated_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "CD" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "CF", "isDeprecated": false, - "name": "id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "CF" }, { - "args": [], "deprecationReason": null, - "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", - "isDeprecated": false, - "name": "carrier_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "description": "CG", + "isDeprecated": false, + "name": "CG" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "CH", "isDeprecated": false, - "name": "test", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } + "name": "CH" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "CI", "isDeprecated": false, - "name": "active", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } + "name": "CI" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "CK", "isDeprecated": false, - "name": "capabilities", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - } + "name": "CK" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "CL", "isDeprecated": false, - "name": "created_by", - "type": { - "kind": "OBJECT", - "name": "UserType", - "ofType": null - } + "name": "CL" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "CM", "isDeprecated": false, - "name": "username", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "CM" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "CN", "isDeprecated": false, - "name": "password", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "CN" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "CO", "isDeprecated": false, - "name": "carrier_name", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "CanparSettings", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ + "name": "CO" + }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "CR", "isDeprecated": false, - "name": "created_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "CR" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "CU", "isDeprecated": false, - "name": "updated_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "CU" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "CV", "isDeprecated": false, - "name": "id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "CV" }, { - "args": [], "deprecationReason": null, - "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", + "description": "CY", "isDeprecated": false, - "name": "carrier_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "CY" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "CZ", "isDeprecated": false, - "name": "test", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } + "name": "CZ" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "DE", "isDeprecated": false, - "name": "active", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } + "name": "DE" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "DJ", "isDeprecated": false, - "name": "capabilities", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - } + "name": "DJ" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "DK", "isDeprecated": false, - "name": "created_by", - "type": { - "kind": "OBJECT", - "name": "UserType", - "ofType": null - } + "name": "DK" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "DM", "isDeprecated": false, - "name": "site_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "DM" + }, + { + "deprecationReason": null, + "description": "DO", + "isDeprecated": false, + "name": "DO" + }, + { + "deprecationReason": null, + "description": "DZ", + "isDeprecated": false, + "name": "DZ" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "EC", "isDeprecated": false, - "name": "password", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "EC" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "EE", "isDeprecated": false, - "name": "account_number", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "EE" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "EG", "isDeprecated": false, - "name": "account_country_code", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "EG" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "ER", "isDeprecated": false, - "name": "carrier_name", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "DHLExpressSettings", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ + "name": "ER" + }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "ES", "isDeprecated": false, - "name": "created_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "ES" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "ET", "isDeprecated": false, - "name": "updated_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "ET" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "FI", "isDeprecated": false, - "name": "id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "FI" }, { - "args": [], "deprecationReason": null, - "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", + "description": "FJ", "isDeprecated": false, - "name": "carrier_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "FJ" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "FK", "isDeprecated": false, - "name": "test", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } + "name": "FK" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "FM", "isDeprecated": false, - "name": "active", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } + "name": "FM" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "FO", "isDeprecated": false, - "name": "capabilities", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - } + "name": "FO" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "FR", "isDeprecated": false, - "name": "created_by", - "type": { - "kind": "OBJECT", - "name": "UserType", - "ofType": null - } + "name": "FR" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "GA", "isDeprecated": false, - "name": "consumer_key", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "GA" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "GB", "isDeprecated": false, - "name": "consumer_secret", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "GB" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "GD", "isDeprecated": false, - "name": "carrier_name", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "DHLUniversalSettings", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ + "name": "GD" + }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "GE", "isDeprecated": false, - "name": "created_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "GE" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "GF", "isDeprecated": false, - "name": "updated_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "GF" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "GG", "isDeprecated": false, - "name": "id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "GG" }, { - "args": [], "deprecationReason": null, - "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", + "description": "GH", "isDeprecated": false, - "name": "carrier_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "GH" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "GI", "isDeprecated": false, - "name": "test", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } + "name": "GI" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "GL", "isDeprecated": false, - "name": "active", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } + "name": "GL" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "GM", "isDeprecated": false, - "name": "capabilities", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - } + "name": "GM" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "GN", "isDeprecated": false, - "name": "created_by", - "type": { - "kind": "OBJECT", - "name": "UserType", - "ofType": null - } + "name": "GN" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "GP", "isDeprecated": false, - "name": "username", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "GP" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "GQ", "isDeprecated": false, - "name": "password", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "GQ" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "GR", "isDeprecated": false, - "name": "billing_account", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "GR" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "GT", "isDeprecated": false, - "name": "carrier_name", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "DicomSettings", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ + "name": "GT" + }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "GU", "isDeprecated": false, - "name": "created_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "GU" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "GW", "isDeprecated": false, - "name": "updated_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "GW" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "GY", "isDeprecated": false, - "name": "id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "GY" }, { - "args": [], "deprecationReason": null, - "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", + "description": "HK", "isDeprecated": false, - "name": "carrier_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "HK" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "HN", "isDeprecated": false, - "name": "test", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } + "name": "HN" }, { - "args": [], "deprecationReason": null, - "description": "", - "isDeprecated": false, - "name": "active", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } + "description": "HR", + "isDeprecated": false, + "name": "HR" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "HT", "isDeprecated": false, - "name": "capabilities", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - } + "name": "HT" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "HU", "isDeprecated": false, - "name": "created_by", - "type": { - "kind": "OBJECT", - "name": "UserType", - "ofType": null - } + "name": "HU" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "IC", "isDeprecated": false, - "name": "username", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "IC" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "ID", "isDeprecated": false, - "name": "password", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "ID" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "IE", "isDeprecated": false, - "name": "carrier_name", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "EShipperSettings", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ + "name": "IE" + }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "IL", "isDeprecated": false, - "name": "created_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "IL" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "IN", "isDeprecated": false, - "name": "updated_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "IN" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "IQ", "isDeprecated": false, - "name": "id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "IQ" }, { - "args": [], "deprecationReason": null, - "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", + "description": "IR", "isDeprecated": false, - "name": "carrier_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "IR" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "IS", "isDeprecated": false, - "name": "test", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } + "name": "IS" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "IT", "isDeprecated": false, - "name": "active", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } + "name": "IT" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "JE", "isDeprecated": false, - "name": "capabilities", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - } + "name": "JE" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "JM", "isDeprecated": false, - "name": "created_by", - "type": { - "kind": "OBJECT", - "name": "UserType", - "ofType": null - } + "name": "JM" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "JO", "isDeprecated": false, - "name": "user_key", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "JO" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "JP", "isDeprecated": false, - "name": "password", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "JP" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "KE", "isDeprecated": false, - "name": "meter_number", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "KE" + }, + { + "deprecationReason": null, + "description": "KG", + "isDeprecated": false, + "name": "KG" + }, + { + "deprecationReason": null, + "description": "KH", + "isDeprecated": false, + "name": "KH" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "KI", "isDeprecated": false, - "name": "account_number", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "KI" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "KM", "isDeprecated": false, - "name": "account_country_code", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "KM" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "KN", "isDeprecated": false, - "name": "carrier_name", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "FedexSettings", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ + "name": "KN" + }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "KP", "isDeprecated": false, - "name": "created_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "KP" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "KR", "isDeprecated": false, - "name": "updated_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "KR" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "KV", "isDeprecated": false, - "name": "id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "KV" }, { - "args": [], "deprecationReason": null, - "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", + "description": "KW", "isDeprecated": false, - "name": "carrier_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "KW" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "KY", "isDeprecated": false, - "name": "test", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } + "name": "KY" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "KZ", "isDeprecated": false, - "name": "active", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } + "name": "KZ" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "LA", "isDeprecated": false, - "name": "capabilities", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - } + "name": "LA" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "LB", "isDeprecated": false, - "name": "created_by", - "type": { - "kind": "OBJECT", - "name": "UserType", - "ofType": null - } + "name": "LB" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "LC", "isDeprecated": false, - "name": "username", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "LC" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "LI", "isDeprecated": false, - "name": "password", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "LI" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "LK", "isDeprecated": false, - "name": "carrier_name", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "FreightcomSettings", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ + "name": "LK" + }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "LR", "isDeprecated": false, - "name": "created_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "LR" }, { - "args": [], "deprecationReason": null, - "description": "", - "isDeprecated": false, - "name": "updated_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "description": "LS", + "isDeprecated": false, + "name": "LS" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "LT", "isDeprecated": false, - "name": "id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "LT" }, { - "args": [], "deprecationReason": null, - "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", + "description": "LU", "isDeprecated": false, - "name": "carrier_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "LU" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "LV", "isDeprecated": false, - "name": "test", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } + "name": "LV" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "LY", "isDeprecated": false, - "name": "active", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } + "name": "LY" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "MA", "isDeprecated": false, - "name": "capabilities", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - } + "name": "MA" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "MC", "isDeprecated": false, - "name": "created_by", - "type": { - "kind": "OBJECT", - "name": "UserType", - "ofType": null - } + "name": "MC" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "MD", "isDeprecated": false, - "name": "username", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "MD" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "ME", "isDeprecated": false, - "name": "password", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "ME" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "MG", "isDeprecated": false, - "name": "account_number", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "MG" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "MH", "isDeprecated": false, - "name": "user_token", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "name": "MH" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "MK", "isDeprecated": false, - "name": "carrier_name", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "PurolatorSettings", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ + "name": "MK" + }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "ML", "isDeprecated": false, - "name": "created_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "ML" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "MM", "isDeprecated": false, - "name": "updated_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "MM" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "MN", "isDeprecated": false, - "name": "id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "MN" }, { - "args": [], "deprecationReason": null, - "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", + "description": "MO", "isDeprecated": false, - "name": "carrier_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "MO" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "MP", "isDeprecated": false, - "name": "test", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } + "name": "MP" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "MQ", "isDeprecated": false, - "name": "active", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } + "name": "MQ" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "MR", "isDeprecated": false, - "name": "capabilities", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - } + "name": "MR" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "MS", "isDeprecated": false, - "name": "created_by", - "type": { - "kind": "OBJECT", - "name": "UserType", - "ofType": null - } + "name": "MS" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "MT", "isDeprecated": false, - "name": "client_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "MT" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "MU", "isDeprecated": false, - "name": "client_secret", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "MU" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "MV", "isDeprecated": false, - "name": "carrier_name", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "RoyalMailSettings", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ + "name": "MV" + }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "MW", "isDeprecated": false, - "name": "created_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "MW" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "MX", "isDeprecated": false, - "name": "updated_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "MX" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "MY", "isDeprecated": false, - "name": "id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "MY" }, { - "args": [], "deprecationReason": null, - "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", + "description": "MZ", "isDeprecated": false, - "name": "carrier_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "MZ" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "NA", "isDeprecated": false, - "name": "test", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } + "name": "NA" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "NC", "isDeprecated": false, - "name": "active", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } + "name": "NC" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "NE", "isDeprecated": false, - "name": "capabilities", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - } + "name": "NE" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "NG", "isDeprecated": false, - "name": "created_by", - "type": { - "kind": "OBJECT", - "name": "UserType", - "ofType": null - } + "name": "NG" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "NI", "isDeprecated": false, - "name": "sendle_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "NI" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "NL", "isDeprecated": false, - "name": "api_key", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "NL" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "NO", "isDeprecated": false, - "name": "carrier_name", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "SendleSettings", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ + "name": "NO" + }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "NP", "isDeprecated": false, - "name": "created_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "NP" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "NR", "isDeprecated": false, - "name": "updated_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "NR" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "NU", "isDeprecated": false, - "name": "id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "NU" }, { - "args": [], "deprecationReason": null, - "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", + "description": "NZ", "isDeprecated": false, - "name": "carrier_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "NZ" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "OM", "isDeprecated": false, - "name": "test", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } + "name": "OM" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "PA", "isDeprecated": false, - "name": "active", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } + "name": "PA" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "PE", "isDeprecated": false, - "name": "capabilities", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - } + "name": "PE" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "PF", "isDeprecated": false, - "name": "created_by", - "type": { - "kind": "OBJECT", - "name": "UserType", - "ofType": null - } + "name": "PF" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "PG", "isDeprecated": false, - "name": "partner_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "PG" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "PH", "isDeprecated": false, - "name": "check_word", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "PH" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "PK", "isDeprecated": false, - "name": "carrier_name", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "SFExpressSettings", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ + "name": "PK" + }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "PL", "isDeprecated": false, - "name": "created_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "PL" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "PR", "isDeprecated": false, - "name": "updated_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "PR" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "PT", "isDeprecated": false, - "name": "id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "PT" }, { - "args": [], "deprecationReason": null, - "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", + "description": "PW", "isDeprecated": false, - "name": "carrier_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "PW" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "PY", "isDeprecated": false, - "name": "test", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } + "name": "PY" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "QA", + "isDeprecated": false, + "name": "QA" + }, + { + "deprecationReason": null, + "description": "RE", + "isDeprecated": false, + "name": "RE" + }, + { + "deprecationReason": null, + "description": "RO", "isDeprecated": false, - "name": "active", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } + "name": "RO" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "RS", "isDeprecated": false, - "name": "capabilities", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - } + "name": "RS" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "RU", "isDeprecated": false, - "name": "created_by", - "type": { - "kind": "OBJECT", - "name": "UserType", - "ofType": null - } + "name": "RU" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "RW", "isDeprecated": false, - "name": "username", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "RW" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "SA", "isDeprecated": false, - "name": "password", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "SA" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "SB", "isDeprecated": false, - "name": "account_number", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "SB" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "SC", "isDeprecated": false, - "name": "account_country_code", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "SC" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "SD", "isDeprecated": false, - "name": "carrier_name", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "TNTSettings", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ + "name": "SD" + }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "SE", "isDeprecated": false, - "name": "created_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "SE" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "SG", "isDeprecated": false, - "name": "updated_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "SG" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "SH", "isDeprecated": false, - "name": "id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "SH" }, { - "args": [], "deprecationReason": null, - "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", + "description": "SI", "isDeprecated": false, - "name": "carrier_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "SI" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "SK", "isDeprecated": false, - "name": "test", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } + "name": "SK" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "SL", "isDeprecated": false, - "name": "active", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } + "name": "SL" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "SM", "isDeprecated": false, - "name": "capabilities", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - } + "name": "SM" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "SN", "isDeprecated": false, - "name": "created_by", - "type": { - "kind": "OBJECT", - "name": "UserType", - "ofType": null - } + "name": "SN" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "SO", "isDeprecated": false, - "name": "username", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "SO" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "SR", "isDeprecated": false, - "name": "password", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "SR" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "SS", "isDeprecated": false, - "name": "access_license_number", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "SS" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "ST", "isDeprecated": false, - "name": "account_number", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "ST" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "SV", "isDeprecated": false, - "name": "account_country_code", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "SV" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "SY", "isDeprecated": false, - "name": "carrier_name", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "UPSSettings", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ + "name": "SY" + }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "SZ", "isDeprecated": false, - "name": "created_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "SZ" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "TC", "isDeprecated": false, - "name": "updated_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "TC" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "TD", "isDeprecated": false, - "name": "id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "TD" }, { - "args": [], "deprecationReason": null, - "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", + "description": "TG", "isDeprecated": false, - "name": "carrier_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "TG" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "TH", "isDeprecated": false, - "name": "test", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } + "name": "TH" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "TJ", "isDeprecated": false, - "name": "active", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } + "name": "TJ" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "TL", "isDeprecated": false, - "name": "capabilities", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - } + "name": "TL" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "TN", "isDeprecated": false, - "name": "created_by", - "type": { - "kind": "OBJECT", - "name": "UserType", - "ofType": null - } + "name": "TN" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "TO", "isDeprecated": false, - "name": "username", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "TO" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "TR", "isDeprecated": false, - "name": "password", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "TR" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "TT", "isDeprecated": false, - "name": "mailer_id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "name": "TT" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "TV", "isDeprecated": false, - "name": "customer_registration_id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "name": "TV" + }, + { + "deprecationReason": null, + "description": "TW", + "isDeprecated": false, + "name": "TW" + }, + { + "deprecationReason": null, + "description": "TZ", + "isDeprecated": false, + "name": "TZ" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "UA", "isDeprecated": false, - "name": "logistics_manager_mailer_id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "name": "UA" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "UG", "isDeprecated": false, - "name": "carrier_name", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "USPSSettings", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ + "name": "UG" + }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "US", "isDeprecated": false, - "name": "created_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "US" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "UY", "isDeprecated": false, - "name": "updated_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "UY" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "UZ", "isDeprecated": false, - "name": "id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "UZ" }, { - "args": [], "deprecationReason": null, - "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", + "description": "VA", "isDeprecated": false, - "name": "carrier_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "VA" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "VC", "isDeprecated": false, - "name": "test", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } + "name": "VC" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "VE", "isDeprecated": false, - "name": "active", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } + "name": "VE" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "VG", "isDeprecated": false, - "name": "capabilities", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - } + "name": "VG" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "VI", "isDeprecated": false, - "name": "created_by", - "type": { - "kind": "OBJECT", - "name": "UserType", - "ofType": null - } + "name": "VI" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "VN", "isDeprecated": false, - "name": "username", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "VN" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "VU", "isDeprecated": false, - "name": "password", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "VU" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "WS", "isDeprecated": false, - "name": "mailer_id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "name": "WS" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "XB", "isDeprecated": false, - "name": "customer_registration_id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "name": "XB" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "XC", "isDeprecated": false, - "name": "logistics_manager_mailer_id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "name": "XC" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "XE", "isDeprecated": false, - "name": "carrier_name", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "USPSInternationalSettings", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ + "name": "XE" + }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "XM", "isDeprecated": false, - "name": "created_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "XM" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "XN", "isDeprecated": false, - "name": "updated_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "XN" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "XS", "isDeprecated": false, - "name": "id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "XS" }, { - "args": [], "deprecationReason": null, - "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", + "description": "XY", "isDeprecated": false, - "name": "carrier_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "XY" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "YE", "isDeprecated": false, - "name": "test", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } + "name": "YE" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "YT", "isDeprecated": false, - "name": "active", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } + "name": "YT" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "ZA", "isDeprecated": false, - "name": "capabilities", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - } + "name": "ZA" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "ZM", "isDeprecated": false, - "name": "created_by", - "type": { - "kind": "OBJECT", - "name": "UserType", - "ofType": null - } + "name": "ZM" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "ZW", "isDeprecated": false, - "name": "customer_number", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, + "name": "ZW" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "CommodityOriginCountry", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { "args": [], "deprecationReason": null, - "description": "", + "description": "Pagination data for this connection.", "isDeprecated": false, - "name": "license_key", + "name": "pageInfo", "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "String", + "kind": "OBJECT", + "name": "PageInfo", "ofType": null } } @@ -5011,16 +7276,20 @@ { "args": [], "deprecationReason": null, - "description": null, + "description": "Contains the nodes in this connection.", "isDeprecated": false, - "name": "carrier_name", + "name": "edges", "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "TrackerTypeEdge", + "ofType": null + } } } } @@ -5028,25 +7297,25 @@ "inputFields": null, "interfaces": [], "kind": "OBJECT", - "name": "YanwenSettings", + "name": "TrackerTypeConnection", "possibleTypes": null }, { - "description": null, + "description": "The Relay compliant `PageInfo` type, containing data necessary to paginate this connection.", "enumValues": null, "fields": [ { "args": [], "deprecationReason": null, - "description": "", + "description": "When paginating forwards, are there more items?", "isDeprecated": false, - "name": "created_at", + "name": "hasNextPage", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "DateTime", + "name": "Boolean", "ofType": null } } @@ -5054,15 +7323,15 @@ { "args": [], "deprecationReason": null, - "description": "", + "description": "When paginating backwards, are there more items?", "isDeprecated": false, - "name": "updated_at", + "name": "hasPreviousPage", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "DateTime", + "name": "Boolean", "ofType": null } } @@ -5070,63 +7339,89 @@ { "args": [], "deprecationReason": null, - "description": "", + "description": "When paginating backwards, the cursor to continue.", "isDeprecated": false, - "name": "id", + "name": "startCursor", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null } }, { "args": [], "deprecationReason": null, - "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", + "description": "When paginating forwards, the cursor to continue.", "isDeprecated": false, - "name": "carrier_id", + "name": "endCursor", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "PageInfo", + "possibleTypes": null + }, + { + "description": "A Relay edge containing a `TrackerType` and its cursor.", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The item at the end of the edge", + "isDeprecated": false, + "name": "node", + "type": { + "kind": "OBJECT", + "name": "TrackerType", + "ofType": null } }, { "args": [], "deprecationReason": null, - "description": "", + "description": "A cursor for use in pagination", "isDeprecated": false, - "name": "test", + "name": "cursor", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Boolean", + "name": "String", "ofType": null } } - }, + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "TrackerTypeEdge", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { "args": [], "deprecationReason": null, "description": "", "isDeprecated": false, - "name": "active", + "name": "created_at", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Boolean", + "name": "DateTime", "ofType": null } } @@ -5136,22 +7431,14 @@ "deprecationReason": null, "description": "", "isDeprecated": false, - "name": "capabilities", + "name": "updated_at", "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "kind": "SCALAR", + "name": "DateTime", + "ofType": null } } }, @@ -5162,23 +7449,27 @@ "isDeprecated": false, "name": "created_by", "type": { - "kind": "OBJECT", - "name": "UserType", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "OrganizationUserType", + "ofType": null + } } }, { "args": [], "deprecationReason": null, - "description": "", + "description": "The ID of the object.", "isDeprecated": false, - "name": "customer_number", + "name": "id", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "String", + "name": "ID", "ofType": null } } @@ -5186,15 +7477,15 @@ { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "api_secret", + "name": "status", "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "String", + "kind": "ENUM", + "name": "TrackerStatus", "ofType": null } } @@ -5202,9 +7493,9 @@ { "args": [], "deprecationReason": null, - "description": null, + "description": "", "isDeprecated": false, - "name": "carrier_name", + "name": "tracking_number", "type": { "kind": "NON_NULL", "name": null, @@ -5214,31 +7505,24 @@ "ofType": null } } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "YunExpressSettings", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ + }, { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "created_at", + "name": "events", "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "TrackingEventType", + "ofType": null + } } } }, @@ -5247,15 +7531,11 @@ "deprecationReason": null, "description": "", "isDeprecated": false, - "name": "updated_at", + "name": "delivered", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } + "kind": "SCALAR", + "name": "Boolean", + "ofType": null } }, { @@ -5263,13 +7543,25 @@ "deprecationReason": null, "description": "", "isDeprecated": false, - "name": "id", + "name": "estimated_delivery", + "type": { + "kind": "SCALAR", + "name": "Date", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "test_mode", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null } } @@ -5277,16 +7569,20 @@ { "args": [], "deprecationReason": null, - "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", + "description": null, "isDeprecated": false, - "name": "carrier_id", + "name": "messages", "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "MessageType", + "ofType": null + } } } }, @@ -5295,13 +7591,13 @@ "deprecationReason": null, "description": "", "isDeprecated": false, - "name": "test", + "name": "tracking_carrier", "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "Boolean", + "kind": "OBJECT", + "name": "SystemConnectionType", "ofType": null } } @@ -5311,15 +7607,11 @@ "deprecationReason": null, "description": "", "isDeprecated": false, - "name": "active", + "name": "shipment", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "kind": "OBJECT", + "name": "ShipmentType", + "ofType": null } }, { @@ -5327,7 +7619,7 @@ "deprecationReason": null, "description": "", "isDeprecated": false, - "name": "capabilities", + "name": "org", "type": { "kind": "NON_NULL", "name": null, @@ -5338,8 +7630,8 @@ "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "String", + "kind": "OBJECT", + "name": "OrganizationType", "ofType": null } } @@ -5351,7 +7643,7 @@ "deprecationReason": null, "description": null, "isDeprecated": false, - "name": "carrier_name", + "name": "carrier_id", "type": { "kind": "NON_NULL", "name": null, @@ -5367,32 +7659,28 @@ "deprecationReason": null, "description": null, "isDeprecated": false, - "name": "enabled", + "name": "carrier_name", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Boolean", + "name": "String", "ofType": null } } } ], "inputFields": null, - "interfaces": [], + "interfaces": [ + { + "kind": "INTERFACE", + "name": "CustomNode", + "ofType": null + } + ], "kind": "OBJECT", - "name": "SystemConnectionType", - "possibleTypes": null - }, - { - "description": "The `GenericScalar` scalar type represents a generic\nGraphQL scalar value that could be:\nString, Boolean, Int, Float, List or Object.", - "enumValues": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "kind": "SCALAR", - "name": "GenericScalar", + "name": "TrackerType", "possibleTypes": null }, { @@ -5402,88 +7690,144 @@ { "args": [], "deprecationReason": null, - "description": "Pagination data for this connection.", + "description": "The ID of the object.", "isDeprecated": false, - "name": "pageInfo", + "name": "id", "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "OBJECT", - "name": "PageInfo", + "kind": "SCALAR", + "name": "ID", "ofType": null } } + } + ], + "inputFields": null, + "interfaces": null, + "kind": "INTERFACE", + "name": "CustomNode", + "possibleTypes": [ + { + "kind": "OBJECT", + "name": "TrackerType", + "ofType": null }, { - "args": [], + "kind": "OBJECT", + "name": "ShipmentType", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "TemplateType", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "WebhookType", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "EventType", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "LogType", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "ServiceLevelType", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "AddressTemplateType", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "CustomsTemplateType", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "ParcelTemplateType", + "ofType": null + } + ] + }, + { + "description": "The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `\"4\"`) or integer (such as `4`) input value will be accepted as an ID.", + "enumValues": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "SCALAR", + "name": "ID", + "possibleTypes": null + }, + { + "description": "An enumeration.", + "enumValues": [ + { "deprecationReason": null, - "description": "Contains the nodes in this connection.", + "description": null, "isDeprecated": false, - "name": "edges", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AddressTemplateTypeEdge", - "ofType": null - } - } - } + "name": "pending" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "in_transit" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "incident" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "delivered" } ], + "fields": null, "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "AddressTemplateTypeConnection", + "interfaces": null, + "kind": "ENUM", + "name": "TrackerStatus", "possibleTypes": null }, { - "description": "The Relay compliant `PageInfo` type, containing data necessary to paginate this connection.", + "description": null, "enumValues": null, "fields": [ { "args": [], "deprecationReason": null, - "description": "When paginating forwards, are there more items?", - "isDeprecated": false, - "name": "hasNextPage", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } - }, - { - "args": [], - "deprecationReason": null, - "description": "When paginating backwards, are there more items?", + "description": null, "isDeprecated": false, - "name": "hasPreviousPage", + "name": "description", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null } }, { "args": [], "deprecationReason": null, - "description": "When paginating backwards, the cursor to continue.", + "description": null, "isDeprecated": false, - "name": "startCursor", + "name": "location", "type": { "kind": "SCALAR", "name": "String", @@ -5493,59 +7837,44 @@ { "args": [], "deprecationReason": null, - "description": "When paginating forwards, the cursor to continue.", + "description": null, "isDeprecated": false, - "name": "endCursor", + "name": "code", "type": { "kind": "SCALAR", "name": "String", "ofType": null } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "PageInfo", - "possibleTypes": null - }, - { - "description": "A Relay edge containing a `AddressTemplateType` and its cursor.", - "enumValues": null, - "fields": [ + }, { "args": [], "deprecationReason": null, - "description": "The item at the end of the edge", + "description": null, "isDeprecated": false, - "name": "node", + "name": "date", "type": { - "kind": "OBJECT", - "name": "AddressTemplateType", + "kind": "SCALAR", + "name": "String", "ofType": null } }, { "args": [], "deprecationReason": null, - "description": "A cursor for use in pagination", + "description": null, "isDeprecated": false, - "name": "cursor", + "name": "time", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null } } ], "inputFields": null, "interfaces": [], "kind": "OBJECT", - "name": "AddressTemplateTypeEdge", + "name": "TrackingEventType", "possibleTypes": null }, { @@ -5555,95 +7884,86 @@ { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "created_at", + "name": "carrier_name", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null } }, { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "updated_at", + "name": "carrier_id", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null } }, { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "created_by", + "name": "message", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "UserType", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null } }, { "args": [], "deprecationReason": null, - "description": "The ID of the object.", + "description": null, "isDeprecated": false, - "name": "id", + "name": "code", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null } }, { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "label", + "name": "details", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "GenericScalar", + "ofType": null } - }, + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "MessageType", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { "args": [], "deprecationReason": null, "description": "", "isDeprecated": false, - "name": "is_default", + "name": "created_at", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Boolean", + "name": "DateTime", "ofType": null } } @@ -5651,121 +7971,47 @@ { "args": [], "deprecationReason": null, - "description": null, + "description": "", "isDeprecated": false, - "name": "address", + "name": "updated_at", "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "OBJECT", - "name": "AddressType", + "kind": "SCALAR", + "name": "DateTime", "ofType": null } } - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "CustomNode", - "ofType": null - } - ], - "kind": "OBJECT", - "name": "AddressTemplateType", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ + }, { "args": [], "deprecationReason": null, - "description": "The ID of the object.", + "description": "", "isDeprecated": false, - "name": "id", + "name": "created_by", "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "ID", + "kind": "OBJECT", + "name": "OrganizationUserType", "ofType": null - } - } - } - ], - "inputFields": null, - "interfaces": null, - "kind": "INTERFACE", - "name": "CustomNode", - "possibleTypes": [ - { - "kind": "OBJECT", - "name": "AddressTemplateType", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "CustomsTemplateType", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ParcelTemplateType", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "LogType", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ShipmentType", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "TrackerType", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "WebhookType", - "ofType": null - } - ] - }, - { - "description": "The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `\"4\"`) or integer (such as `4`) input value will be accepted as an ID.", - "enumValues": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "kind": "SCALAR", - "name": "ID", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ + } + } + }, { "args": [], "deprecationReason": null, - "description": "", + "description": "The ID of the object.", "isDeprecated": false, - "name": "created_at", + "name": "id", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "DateTime", + "name": "ID", "ofType": null } } @@ -5773,15 +8019,15 @@ { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "updated_at", + "name": "status", "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "DateTime", + "kind": "ENUM", + "name": "ShipmentStatus", "ofType": null } } @@ -5789,15 +8035,15 @@ { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "created_by", + "name": "recipient", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "OBJECT", - "name": "UserType", + "name": "AddressType", "ofType": null } } @@ -5805,15 +8051,15 @@ { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "id", + "name": "shipper", "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "String", + "kind": "OBJECT", + "name": "AddressType", "ofType": null } } @@ -5823,7 +8069,7 @@ "deprecationReason": null, "description": "", "isDeprecated": false, - "name": "postal_code", + "name": "label_type", "type": { "kind": "SCALAR", "name": "String", @@ -5835,7 +8081,7 @@ "deprecationReason": null, "description": "", "isDeprecated": false, - "name": "city", + "name": "tracking_number", "type": { "kind": "SCALAR", "name": "String", @@ -5847,7 +8093,7 @@ "deprecationReason": null, "description": "", "isDeprecated": false, - "name": "federal_tax_id", + "name": "shipment_identifier", "type": { "kind": "SCALAR", "name": "String", @@ -5859,7 +8105,7 @@ "deprecationReason": null, "description": "", "isDeprecated": false, - "name": "state_tax_id", + "name": "label", "type": { "kind": "SCALAR", "name": "String", @@ -5871,7 +8117,7 @@ "deprecationReason": null, "description": "", "isDeprecated": false, - "name": "person_name", + "name": "tracking_url", "type": { "kind": "SCALAR", "name": "String", @@ -5883,7 +8129,23 @@ "deprecationReason": null, "description": "", "isDeprecated": false, - "name": "company_name", + "name": "test_mode", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "", + "isDeprecated": false, + "name": "reference", "type": { "kind": "SCALAR", "name": "String", @@ -5893,15 +8155,63 @@ { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "country_code", + "name": "customs", "type": { - "kind": "NON_NULL", + "kind": "OBJECT", + "name": "CustomsType", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "selected_rate", + "type": { + "kind": "OBJECT", + "name": "RateType", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "payment", + "type": { + "kind": "OBJECT", + "name": "PaymentType", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "options", + "type": { + "kind": "SCALAR", + "name": "GenericScalar", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "services", + "type": { + "kind": "LIST", "name": null, "ofType": { - "kind": "ENUM", - "name": "AddressCountryCode", + "kind": "SCALAR", + "name": "String", "ofType": null } } @@ -5909,25 +8219,146 @@ { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "email", + "name": "messages", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "MessageType", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "meta", "type": { "kind": "SCALAR", - "name": "String", + "name": "GenericScalar", "ofType": null } }, { "args": [], "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "rates", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "RateType", + "ofType": null + } + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "parcels", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ParcelType", + "ofType": null + } + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "offset", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "before", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "after", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "first", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "last", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "tracking_carrier", + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + } + ], + "deprecationReason": null, "description": "", "isDeprecated": false, - "name": "phone_number", + "name": "tracker", "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "TrackerTypeConnection", + "ofType": null + } } }, { @@ -5935,19 +8366,31 @@ "deprecationReason": null, "description": "", "isDeprecated": false, - "name": "state_code", + "name": "org", "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "OrganizationType", + "ofType": null + } + } + } } }, { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "suburb", + "name": "carrier_id", "type": { "kind": "SCALAR", "name": "String", @@ -5957,21 +8400,21 @@ { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "residential", + "name": "carrier_name", "type": { "kind": "SCALAR", - "name": "Boolean", + "name": "String", "ofType": null } }, { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "address_line1", + "name": "service", "type": { "kind": "SCALAR", "name": "String", @@ -5981,9 +8424,9 @@ { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "address_line2", + "name": "selected_rate_id", "type": { "kind": "SCALAR", "name": "String", @@ -5993,13 +8436,17 @@ { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "validate_location", + "name": "carrier_ids", "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } } }, { @@ -6007,18 +8454,24 @@ "deprecationReason": null, "description": null, "isDeprecated": false, - "name": "validation", + "name": "tracker_id", "type": { "kind": "SCALAR", - "name": "GenericScalar", + "name": "String", "ofType": null } } ], "inputFields": null, - "interfaces": [], + "interfaces": [ + { + "kind": "INTERFACE", + "name": "CustomNode", + "ofType": null + } + ], "kind": "OBJECT", - "name": "AddressType", + "name": "ShipmentType", "possibleTypes": null }, { @@ -6026,4619 +8479,9898 @@ "enumValues": [ { "deprecationReason": null, - "description": "AD", - "isDeprecated": false, - "name": "AD" - }, - { - "deprecationReason": null, - "description": "AE", + "description": null, "isDeprecated": false, - "name": "AE" + "name": "created" }, { "deprecationReason": null, - "description": "AF", + "description": null, "isDeprecated": false, - "name": "AF" + "name": "purchased" }, { "deprecationReason": null, - "description": "AG", + "description": null, "isDeprecated": false, - "name": "AG" + "name": "cancelled" }, { "deprecationReason": null, - "description": "AI", + "description": null, "isDeprecated": false, - "name": "AI" + "name": "shipped" }, { "deprecationReason": null, - "description": "AL", + "description": null, "isDeprecated": false, - "name": "AL" + "name": "transit" }, { "deprecationReason": null, - "description": "AM", + "description": null, "isDeprecated": false, - "name": "AM" - }, + "name": "delivered" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "ShipmentStatus", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "AN", + "description": null, "isDeprecated": false, - "name": "AN" + "name": "carrier_name", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "AO", + "description": null, "isDeprecated": false, - "name": "AO" + "name": "carrier_id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "AR", + "description": null, "isDeprecated": false, - "name": "AR" + "name": "currency", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "AS", + "description": null, "isDeprecated": false, - "name": "AS" + "name": "transit_days", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "AT", + "description": null, "isDeprecated": false, - "name": "AT" + "name": "service", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "AU", + "description": null, "isDeprecated": false, - "name": "AU" + "name": "discount", + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "AW", + "description": null, "isDeprecated": false, - "name": "AW" + "name": "base_charge", + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "AZ", + "description": null, "isDeprecated": false, - "name": "AZ" + "name": "total_charge", + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "BA", + "description": null, "isDeprecated": false, - "name": "BA" + "name": "duties_and_taxes", + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "BB", + "description": null, "isDeprecated": false, - "name": "BB" + "name": "extra_charges", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ChargeType", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "BD", + "description": null, "isDeprecated": false, - "name": "BD" + "name": "meta", + "type": { + "kind": "SCALAR", + "name": "GenericScalar", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "BE", + "description": null, "isDeprecated": false, - "name": "BE" - }, + "name": "id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "RateType", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "BF", + "description": null, "isDeprecated": false, - "name": "BF" + "name": "name", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "BG", + "description": null, "isDeprecated": false, - "name": "BG" + "name": "amount", + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "BH", + "description": null, "isDeprecated": false, - "name": "BH" - }, + "name": "currency", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "ChargeType", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "BI", + "description": null, "isDeprecated": false, - "name": "BI" + "name": "paid_by", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "BJ", + "description": null, "isDeprecated": false, - "name": "BJ" + "name": "currency", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "BM", + "description": null, "isDeprecated": false, - "name": "BM" + "name": "account_number", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "BN", + "description": null, "isDeprecated": false, - "name": "BN" - }, + "name": "id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "PaymentType", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "BO", + "description": "Pagination data for this connection.", "isDeprecated": false, - "name": "BO" + "name": "pageInfo", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "PageInfo", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "BR", + "description": "Contains the nodes in this connection.", "isDeprecated": false, - "name": "BR" - }, + "name": "edges", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ShipmentTypeEdge", + "ofType": null + } + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "ShipmentTypeConnection", + "possibleTypes": null + }, + { + "description": "A Relay edge containing a `ShipmentType` and its cursor.", + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "BS", + "description": "The item at the end of the edge", "isDeprecated": false, - "name": "BS" + "name": "node", + "type": { + "kind": "OBJECT", + "name": "ShipmentType", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "BT", + "description": "A cursor for use in pagination", "isDeprecated": false, - "name": "BT" - }, + "name": "cursor", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "ShipmentTypeEdge", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "BW", + "description": "Pagination data for this connection.", "isDeprecated": false, - "name": "BW" + "name": "pageInfo", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "PageInfo", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "BY", + "description": "Contains the nodes in this connection.", "isDeprecated": false, - "name": "BY" - }, + "name": "edges", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "TemplateTypeEdge", + "ofType": null + } + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "TemplateTypeConnection", + "possibleTypes": null + }, + { + "description": "A Relay edge containing a `TemplateType` and its cursor.", + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "BZ", + "description": "The item at the end of the edge", "isDeprecated": false, - "name": "BZ" + "name": "node", + "type": { + "kind": "OBJECT", + "name": "TemplateType", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "CA", + "description": "A cursor for use in pagination", "isDeprecated": false, - "name": "CA" - }, + "name": "cursor", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "TemplateTypeEdge", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "CD", + "description": "", "isDeprecated": false, - "name": "CD" + "name": "created_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "CF", + "description": "", "isDeprecated": false, - "name": "CF" + "name": "updated_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "CG", + "description": "", "isDeprecated": false, - "name": "CG" + "name": "created_by", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "OrganizationUserType", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "CH", + "description": "The ID of the object.", "isDeprecated": false, - "name": "CH" + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "CI", + "description": "", "isDeprecated": false, - "name": "CI" + "name": "label", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "CK", + "description": "", "isDeprecated": false, - "name": "CK" + "name": "is_default", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "CL", + "description": null, "isDeprecated": false, - "name": "CL" + "name": "address", + "type": { + "kind": "OBJECT", + "name": "AddressType", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "CM", + "description": "", "isDeprecated": false, - "name": "CM" + "name": "org", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "OrganizationType", + "ofType": null + } + } + } + } }, { + "args": [], "deprecationReason": null, - "description": "CN", + "description": null, "isDeprecated": false, - "name": "CN" + "name": "customs", + "type": { + "kind": "OBJECT", + "name": "CustomsType", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "CO", + "description": null, "isDeprecated": false, - "name": "CO" - }, + "name": "parcel", + "type": { + "kind": "OBJECT", + "name": "ParcelType", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "CustomNode", + "ofType": null + } + ], + "kind": "OBJECT", + "name": "TemplateType", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "CR", + "description": "Pagination data for this connection.", "isDeprecated": false, - "name": "CR" + "name": "pageInfo", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "PageInfo", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "CU", + "description": "Contains the nodes in this connection.", "isDeprecated": false, - "name": "CU" - }, + "name": "edges", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "WebhookTypeEdge", + "ofType": null + } + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "WebhookTypeConnection", + "possibleTypes": null + }, + { + "description": "A Relay edge containing a `WebhookType` and its cursor.", + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "CV", + "description": "The item at the end of the edge", "isDeprecated": false, - "name": "CV" + "name": "node", + "type": { + "kind": "OBJECT", + "name": "WebhookType", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "CY", + "description": "A cursor for use in pagination", "isDeprecated": false, - "name": "CY" - }, + "name": "cursor", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "WebhookTypeEdge", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "CZ", + "description": "", "isDeprecated": false, - "name": "CZ" + "name": "created_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "DE", + "description": "", "isDeprecated": false, - "name": "DE" + "name": "updated_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "DJ", + "description": "", "isDeprecated": false, - "name": "DJ" + "name": "created_by", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "OrganizationUserType", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "DK", + "description": "The ID of the object.", "isDeprecated": false, - "name": "DK" + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "DM", + "description": "", "isDeprecated": false, - "name": "DM" + "name": "enabled_events", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + } }, { + "args": [], "deprecationReason": null, - "description": "DO", + "description": "", "isDeprecated": false, - "name": "DO" + "name": "url", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "DZ", + "description": "", "isDeprecated": false, - "name": "DZ" + "name": "test_mode", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "EC", + "description": "", "isDeprecated": false, - "name": "EC" + "name": "disabled", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "EE", + "description": "", "isDeprecated": false, - "name": "EE" + "name": "description", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "EG", + "description": "", "isDeprecated": false, - "name": "EG" + "name": "last_event_at", + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "ER", + "description": "", "isDeprecated": false, - "name": "ER" - }, + "name": "org", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "OrganizationType", + "ofType": null + } + } + } + } + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "CustomNode", + "ofType": null + } + ], + "kind": "OBJECT", + "name": "WebhookType", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "ES", + "description": "Pagination data for this connection.", "isDeprecated": false, - "name": "ES" + "name": "pageInfo", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "PageInfo", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "ET", + "description": "Contains the nodes in this connection.", "isDeprecated": false, - "name": "ET" - }, + "name": "edges", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "EventTypeEdge", + "ofType": null + } + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "EventTypeConnection", + "possibleTypes": null + }, + { + "description": "A Relay edge containing a `EventType` and its cursor.", + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "FI", + "description": "The item at the end of the edge", "isDeprecated": false, - "name": "FI" + "name": "node", + "type": { + "kind": "OBJECT", + "name": "EventType", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "FJ", + "description": "A cursor for use in pagination", "isDeprecated": false, - "name": "FJ" - }, + "name": "cursor", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "EventTypeEdge", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "FK", + "description": "", "isDeprecated": false, - "name": "FK" + "name": "created_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "FM", + "description": "", "isDeprecated": false, - "name": "FM" + "name": "updated_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "FO", + "description": "", "isDeprecated": false, - "name": "FO" + "name": "created_by", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "OrganizationUserType", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "FR", + "description": "The ID of the object.", "isDeprecated": false, - "name": "FR" + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "GA", + "description": "", "isDeprecated": false, - "name": "GA" + "name": "type", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "GB", + "description": null, "isDeprecated": false, - "name": "GB" + "name": "data", + "type": { + "kind": "SCALAR", + "name": "GenericScalar", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "GD", + "description": "", "isDeprecated": false, - "name": "GD" + "name": "test_mode", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "GE", + "description": "", "isDeprecated": false, - "name": "GE" + "name": "pending_webhooks", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "GF", + "description": "", "isDeprecated": false, - "name": "GF" - }, + "name": "org", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "OrganizationType", + "ofType": null + } + } + } + } + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "CustomNode", + "ofType": null + } + ], + "kind": "OBJECT", + "name": "EventType", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "GG", + "description": "Pagination data for this connection.", "isDeprecated": false, - "name": "GG" + "name": "pageInfo", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "PageInfo", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "GH", + "description": "Contains the nodes in this connection.", "isDeprecated": false, - "name": "GH" - }, + "name": "edges", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "LogTypeEdge", + "ofType": null + } + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "LogTypeConnection", + "possibleTypes": null + }, + { + "description": "A Relay edge containing a `LogType` and its cursor.", + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "GI", + "description": "The item at the end of the edge", "isDeprecated": false, - "name": "GI" + "name": "node", + "type": { + "kind": "OBJECT", + "name": "LogType", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "GL", + "description": "A cursor for use in pagination", "isDeprecated": false, - "name": "GL" - }, + "name": "cursor", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "LogTypeEdge", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "GM", + "description": "The ID of the object.", "isDeprecated": false, - "name": "GM" + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "GN", + "description": "", "isDeprecated": false, - "name": "GN" + "name": "user", + "type": { + "kind": "OBJECT", + "name": "OrganizationUserType", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "GP", + "description": "", "isDeprecated": false, - "name": "GP" + "name": "username_persistent", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "GQ", + "description": "", "isDeprecated": false, - "name": "GQ" + "name": "requested_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "GR", + "description": "", "isDeprecated": false, - "name": "GR" + "name": "response_ms", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "GT", + "description": "url path", "isDeprecated": false, - "name": "GT" + "name": "path", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "GU", + "description": "", "isDeprecated": false, - "name": "GU" + "name": "remote_addr", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "GW", + "description": "", "isDeprecated": false, - "name": "GW" + "name": "host", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "GY", + "description": "", "isDeprecated": false, - "name": "GY" + "name": "method", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "HK", + "description": null, "isDeprecated": false, - "name": "HK" + "name": "query_params", + "type": { + "kind": "SCALAR", + "name": "GenericScalar", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "HN", + "description": null, "isDeprecated": false, - "name": "HN" + "name": "data", + "type": { + "kind": "SCALAR", + "name": "GenericScalar", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "HR", + "description": null, "isDeprecated": false, - "name": "HR" + "name": "response", + "type": { + "kind": "SCALAR", + "name": "GenericScalar", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "HT", + "description": "", "isDeprecated": false, - "name": "HT" + "name": "status_code", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "HU", + "description": "", "isDeprecated": false, - "name": "HU" - }, + "name": "org", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "OrganizationType", + "ofType": null + } + } + } + } + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "CustomNode", + "ofType": null + } + ], + "kind": "OBJECT", + "name": "LogType", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "IC", + "description": "", "isDeprecated": false, - "name": "IC" + "name": "last_login", + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "ID", + "description": "Designates whether the user can log into this admin site.", "isDeprecated": false, - "name": "ID" + "name": "is_staff", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "IE", + "description": "", "isDeprecated": false, - "name": "IE" + "name": "date_joined", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "IL", + "description": "", "isDeprecated": false, - "name": "IL" + "name": "full_name", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "IN", + "description": "", "isDeprecated": false, - "name": "IN" - }, + "name": "email", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "UserType", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "IQ", + "description": "", "isDeprecated": false, - "name": "IQ" + "name": "key", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "IR", + "description": "", "isDeprecated": false, - "name": "IR" + "name": "created", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "IS", + "description": "", "isDeprecated": false, - "name": "IS" + "name": "org", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "OrganizationType", + "ofType": null + } + } + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "TokenType", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "UNION", + "name": "ConnectionType", + "possibleTypes": [ + { + "kind": "OBJECT", + "name": "AramexSettings", + "ofType": null }, { - "deprecationReason": null, - "description": "IT", - "isDeprecated": false, - "name": "IT" + "kind": "OBJECT", + "name": "AustraliaPostSettings", + "ofType": null }, { - "deprecationReason": null, - "description": "JE", - "isDeprecated": false, - "name": "JE" + "kind": "OBJECT", + "name": "CanadaPostSettings", + "ofType": null }, { - "deprecationReason": null, - "description": "JM", - "isDeprecated": false, - "name": "JM" + "kind": "OBJECT", + "name": "CanparSettings", + "ofType": null }, { - "deprecationReason": null, - "description": "JO", - "isDeprecated": false, - "name": "JO" + "kind": "OBJECT", + "name": "DHLExpressSettings", + "ofType": null }, { - "deprecationReason": null, - "description": "JP", - "isDeprecated": false, - "name": "JP" + "kind": "OBJECT", + "name": "DHLPolandSettings", + "ofType": null }, { - "deprecationReason": null, - "description": "KE", - "isDeprecated": false, - "name": "KE" + "kind": "OBJECT", + "name": "DHLUniversalSettings", + "ofType": null }, { - "deprecationReason": null, - "description": "KG", - "isDeprecated": false, - "name": "KG" + "kind": "OBJECT", + "name": "DicomSettings", + "ofType": null }, { - "deprecationReason": null, - "description": "KH", - "isDeprecated": false, - "name": "KH" + "kind": "OBJECT", + "name": "EShipperSettings", + "ofType": null }, { - "deprecationReason": null, - "description": "KI", - "isDeprecated": false, - "name": "KI" + "kind": "OBJECT", + "name": "FedexSettings", + "ofType": null }, { - "deprecationReason": null, - "description": "KM", - "isDeprecated": false, - "name": "KM" + "kind": "OBJECT", + "name": "FreightcomSettings", + "ofType": null }, { - "deprecationReason": null, - "description": "KN", - "isDeprecated": false, - "name": "KN" + "kind": "OBJECT", + "name": "PurolatorSettings", + "ofType": null }, { - "deprecationReason": null, - "description": "KP", - "isDeprecated": false, - "name": "KP" + "kind": "OBJECT", + "name": "RoyalMailSettings", + "ofType": null }, { - "deprecationReason": null, - "description": "KR", - "isDeprecated": false, - "name": "KR" + "kind": "OBJECT", + "name": "SendleSettings", + "ofType": null }, { - "deprecationReason": null, - "description": "KV", - "isDeprecated": false, - "name": "KV" + "kind": "OBJECT", + "name": "SFExpressSettings", + "ofType": null }, { - "deprecationReason": null, - "description": "KW", - "isDeprecated": false, - "name": "KW" + "kind": "OBJECT", + "name": "TNTSettings", + "ofType": null }, { - "deprecationReason": null, - "description": "KY", - "isDeprecated": false, - "name": "KY" + "kind": "OBJECT", + "name": "UPSSettings", + "ofType": null }, { - "deprecationReason": null, - "description": "KZ", - "isDeprecated": false, - "name": "KZ" + "kind": "OBJECT", + "name": "USPSSettings", + "ofType": null }, { - "deprecationReason": null, - "description": "LA", - "isDeprecated": false, - "name": "LA" + "kind": "OBJECT", + "name": "USPSInternationalSettings", + "ofType": null }, { - "deprecationReason": null, - "description": "LB", - "isDeprecated": false, - "name": "LB" + "kind": "OBJECT", + "name": "YanwenSettings", + "ofType": null }, { - "deprecationReason": null, - "description": "LC", - "isDeprecated": false, - "name": "LC" - }, + "kind": "OBJECT", + "name": "YunExpressSettings", + "ofType": null + } + ] + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "LI", + "description": "", "isDeprecated": false, - "name": "LI" + "name": "created_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "LK", + "description": "", "isDeprecated": false, - "name": "LK" + "name": "updated_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "LR", + "description": "", "isDeprecated": false, - "name": "LR" + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "LS", + "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", "isDeprecated": false, - "name": "LS" + "name": "carrier_id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "LT", + "description": "", "isDeprecated": false, - "name": "LT" + "name": "test", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "LU", + "description": "", "isDeprecated": false, - "name": "LU" + "name": "active", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "LV", + "description": "", "isDeprecated": false, - "name": "LV" + "name": "capabilities", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + } }, { + "args": [], "deprecationReason": null, - "description": "LY", + "description": "", "isDeprecated": false, - "name": "LY" + "name": "created_by", + "type": { + "kind": "OBJECT", + "name": "OrganizationUserType", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "MA", + "description": "", "isDeprecated": false, - "name": "MA" + "name": "username", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "MC", + "description": "", "isDeprecated": false, - "name": "MC" + "name": "password", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "MD", + "description": "", "isDeprecated": false, - "name": "MD" + "name": "account_pin", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "ME", + "description": "", "isDeprecated": false, - "name": "ME" + "name": "account_entity", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "MG", + "description": "", "isDeprecated": false, - "name": "MG" + "name": "account_number", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "MH", + "description": null, "isDeprecated": false, - "name": "MH" + "name": "account_country_code", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "MK", + "description": null, "isDeprecated": false, - "name": "MK" - }, + "name": "carrier_name", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "AramexSettings", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "ML", + "description": "", "isDeprecated": false, - "name": "ML" + "name": "created_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "MM", + "description": "", "isDeprecated": false, - "name": "MM" + "name": "updated_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "MN", + "description": "", "isDeprecated": false, - "name": "MN" + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "MO", + "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", "isDeprecated": false, - "name": "MO" + "name": "carrier_id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "MP", + "description": "", "isDeprecated": false, - "name": "MP" + "name": "test", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "MQ", + "description": "", "isDeprecated": false, - "name": "MQ" + "name": "active", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "MR", + "description": "", "isDeprecated": false, - "name": "MR" + "name": "capabilities", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + } }, { + "args": [], "deprecationReason": null, - "description": "MS", + "description": "", "isDeprecated": false, - "name": "MS" + "name": "created_by", + "type": { + "kind": "OBJECT", + "name": "OrganizationUserType", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "MT", + "description": "", "isDeprecated": false, - "name": "MT" + "name": "api_key", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "MU", + "description": "", "isDeprecated": false, - "name": "MU" + "name": "password", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "MV", + "description": "", "isDeprecated": false, - "name": "MV" + "name": "account_number", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "MW", + "description": null, "isDeprecated": false, - "name": "MW" - }, + "name": "carrier_name", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "AustraliaPostSettings", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "MX", + "description": "", "isDeprecated": false, - "name": "MX" + "name": "created_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "MY", + "description": "", "isDeprecated": false, - "name": "MY" + "name": "updated_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "MZ", + "description": "", "isDeprecated": false, - "name": "MZ" + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "NA", + "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", "isDeprecated": false, - "name": "NA" + "name": "carrier_id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "NC", + "description": "", "isDeprecated": false, - "name": "NC" + "name": "test", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "NE", + "description": "", "isDeprecated": false, - "name": "NE" + "name": "active", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "NG", + "description": "", "isDeprecated": false, - "name": "NG" + "name": "capabilities", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + } }, { + "args": [], "deprecationReason": null, - "description": "NI", + "description": "", "isDeprecated": false, - "name": "NI" + "name": "created_by", + "type": { + "kind": "OBJECT", + "name": "OrganizationUserType", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "NL", + "description": "", "isDeprecated": false, - "name": "NL" + "name": "username", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "NO", + "description": "", "isDeprecated": false, - "name": "NO" + "name": "password", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "NP", + "description": "", "isDeprecated": false, - "name": "NP" + "name": "customer_number", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "NR", + "description": "", "isDeprecated": false, - "name": "NR" + "name": "contract_id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "NU", + "description": null, "isDeprecated": false, - "name": "NU" - }, + "name": "carrier_name", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "CanadaPostSettings", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "NZ", + "description": "", "isDeprecated": false, - "name": "NZ" + "name": "created_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "OM", + "description": "", "isDeprecated": false, - "name": "OM" + "name": "updated_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "PA", + "description": "", "isDeprecated": false, - "name": "PA" + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "PE", + "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", "isDeprecated": false, - "name": "PE" + "name": "carrier_id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "PF", + "description": "", "isDeprecated": false, - "name": "PF" + "name": "test", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "PG", + "description": "", "isDeprecated": false, - "name": "PG" + "name": "active", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "PH", + "description": "", "isDeprecated": false, - "name": "PH" + "name": "capabilities", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + } }, { + "args": [], "deprecationReason": null, - "description": "PK", + "description": "", "isDeprecated": false, - "name": "PK" + "name": "created_by", + "type": { + "kind": "OBJECT", + "name": "OrganizationUserType", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "PL", + "description": "", "isDeprecated": false, - "name": "PL" + "name": "username", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "PR", + "description": "", "isDeprecated": false, - "name": "PR" + "name": "password", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "PT", + "description": null, "isDeprecated": false, - "name": "PT" - }, + "name": "carrier_name", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "CanparSettings", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "PW", + "description": "", "isDeprecated": false, - "name": "PW" + "name": "created_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "PY", + "description": "", "isDeprecated": false, - "name": "PY" + "name": "updated_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "QA", + "description": "", "isDeprecated": false, - "name": "QA" + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "RE", + "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", "isDeprecated": false, - "name": "RE" + "name": "carrier_id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "RO", + "description": "", "isDeprecated": false, - "name": "RO" + "name": "test", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "RS", + "description": "", "isDeprecated": false, - "name": "RS" + "name": "active", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "RU", + "description": "", "isDeprecated": false, - "name": "RU" + "name": "capabilities", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + } }, { + "args": [], "deprecationReason": null, - "description": "RW", + "description": "", "isDeprecated": false, - "name": "RW" + "name": "created_by", + "type": { + "kind": "OBJECT", + "name": "OrganizationUserType", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "SA", + "description": "", "isDeprecated": false, - "name": "SA" + "name": "site_id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "SB", + "description": "", "isDeprecated": false, - "name": "SB" + "name": "password", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "SC", + "description": "", "isDeprecated": false, - "name": "SC" + "name": "account_number", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "SD", + "description": null, "isDeprecated": false, - "name": "SD" + "name": "account_country_code", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "SE", + "description": null, "isDeprecated": false, - "name": "SE" - }, + "name": "carrier_name", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "DHLExpressSettings", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "SG", + "description": "", "isDeprecated": false, - "name": "SG" + "name": "created_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "SH", + "description": "", "isDeprecated": false, - "name": "SH" + "name": "updated_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "SI", + "description": "", "isDeprecated": false, - "name": "SI" + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "SK", + "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", "isDeprecated": false, - "name": "SK" + "name": "carrier_id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "SL", + "description": "", "isDeprecated": false, - "name": "SL" + "name": "test", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "SM", + "description": "", "isDeprecated": false, - "name": "SM" + "name": "active", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "SN", + "description": "", "isDeprecated": false, - "name": "SN" + "name": "capabilities", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + } }, { + "args": [], "deprecationReason": null, - "description": "SO", + "description": "", "isDeprecated": false, - "name": "SO" + "name": "created_by", + "type": { + "kind": "OBJECT", + "name": "OrganizationUserType", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "SR", + "description": "", "isDeprecated": false, - "name": "SR" + "name": "username", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "SS", + "description": "", "isDeprecated": false, - "name": "SS" + "name": "password", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "ST", + "description": "", "isDeprecated": false, - "name": "ST" + "name": "account_number", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "SV", + "description": null, "isDeprecated": false, - "name": "SV" + "name": "services", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ServiceLevelType", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "SY", + "description": null, "isDeprecated": false, - "name": "SY" - }, + "name": "carrier_name", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "DHLPolandSettings", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "SZ", + "description": "", "isDeprecated": false, - "name": "SZ" + "name": "created_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "TC", + "description": "", "isDeprecated": false, - "name": "TC" + "name": "updated_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "TD", + "description": "", "isDeprecated": false, - "name": "TD" + "name": "created_by", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "OrganizationUserType", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "TG", + "description": "The ID of the object.", "isDeprecated": false, - "name": "TG" + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "TH", + "description": "", "isDeprecated": false, - "name": "TH" + "name": "service_name", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "TJ", + "description": "", "isDeprecated": false, - "name": "TJ" + "name": "service_code", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "TL", + "description": "", "isDeprecated": false, - "name": "TL" + "name": "description", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "TN", + "description": "", "isDeprecated": false, - "name": "TN" + "name": "active", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "TO", + "description": "", "isDeprecated": false, - "name": "TO" + "name": "cost", + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "TR", + "description": "", "isDeprecated": false, - "name": "TR" + "name": "currency", + "type": { + "kind": "ENUM", + "name": "ServiceLevelCurrency", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "TT", + "description": "", "isDeprecated": false, - "name": "TT" + "name": "estimated_transit_days", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "TV", + "description": "", "isDeprecated": false, - "name": "TV" + "name": "max_weight", + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "TW", + "description": "", "isDeprecated": false, - "name": "TW" + "name": "max_width", + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "TZ", + "description": "", "isDeprecated": false, - "name": "TZ" + "name": "max_height", + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "UA", + "description": "", "isDeprecated": false, - "name": "UA" + "name": "max_length", + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "UG", + "description": "", "isDeprecated": false, - "name": "UG" + "name": "weight_unit", + "type": { + "kind": "ENUM", + "name": "ServiceLevelWeightUnit", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "US", + "description": "", "isDeprecated": false, - "name": "US" + "name": "dimension_unit", + "type": { + "kind": "ENUM", + "name": "ServiceLevelDimensionUnit", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "UY", + "description": "", "isDeprecated": false, - "name": "UY" + "name": "domicile", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "UZ", + "description": "", "isDeprecated": false, - "name": "UZ" - }, + "name": "international", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "CustomNode", + "ofType": null + } + ], + "kind": "OBJECT", + "name": "ServiceLevelType", + "possibleTypes": null + }, + { + "description": "An enumeration.", + "enumValues": [ { "deprecationReason": null, - "description": "VA", + "description": "EUR", "isDeprecated": false, - "name": "VA" + "name": "EUR" }, { "deprecationReason": null, - "description": "VC", + "description": "AED", "isDeprecated": false, - "name": "VC" + "name": "AED" }, { "deprecationReason": null, - "description": "VE", + "description": "USD", "isDeprecated": false, - "name": "VE" + "name": "USD" }, { "deprecationReason": null, - "description": "VG", + "description": "XCD", "isDeprecated": false, - "name": "VG" + "name": "XCD" }, { "deprecationReason": null, - "description": "VI", + "description": "AMD", "isDeprecated": false, - "name": "VI" + "name": "AMD" }, { "deprecationReason": null, - "description": "VN", + "description": "ANG", "isDeprecated": false, - "name": "VN" + "name": "ANG" }, { "deprecationReason": null, - "description": "VU", + "description": "AOA", "isDeprecated": false, - "name": "VU" + "name": "AOA" }, { "deprecationReason": null, - "description": "WS", + "description": "ARS", "isDeprecated": false, - "name": "WS" + "name": "ARS" }, { "deprecationReason": null, - "description": "XB", + "description": "AUD", "isDeprecated": false, - "name": "XB" + "name": "AUD" }, { "deprecationReason": null, - "description": "XC", + "description": "AWG", "isDeprecated": false, - "name": "XC" + "name": "AWG" }, { "deprecationReason": null, - "description": "XE", + "description": "AZN", "isDeprecated": false, - "name": "XE" + "name": "AZN" }, { "deprecationReason": null, - "description": "XM", + "description": "BAM", "isDeprecated": false, - "name": "XM" + "name": "BAM" }, { "deprecationReason": null, - "description": "XN", + "description": "BBD", "isDeprecated": false, - "name": "XN" + "name": "BBD" }, { "deprecationReason": null, - "description": "XS", + "description": "BDT", "isDeprecated": false, - "name": "XS" + "name": "BDT" }, { "deprecationReason": null, - "description": "XY", + "description": "XOF", "isDeprecated": false, - "name": "XY" + "name": "XOF" }, { "deprecationReason": null, - "description": "YE", + "description": "BGN", "isDeprecated": false, - "name": "YE" + "name": "BGN" }, { "deprecationReason": null, - "description": "YT", + "description": "BHD", "isDeprecated": false, - "name": "YT" + "name": "BHD" }, { "deprecationReason": null, - "description": "ZA", + "description": "BIF", "isDeprecated": false, - "name": "ZA" + "name": "BIF" }, { "deprecationReason": null, - "description": "ZM", + "description": "BMD", "isDeprecated": false, - "name": "ZM" + "name": "BMD" }, { "deprecationReason": null, - "description": "ZW", - "isDeprecated": false, - "name": "ZW" - } - ], - "fields": null, - "inputFields": null, - "interfaces": null, - "kind": "ENUM", - "name": "AddressCountryCode", - "possibleTypes": null - }, - { - "description": "The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31 - 1) and 2^31 - 1 since represented in JSON as double-precision floating point numbers specifiedby [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point).", - "enumValues": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "kind": "SCALAR", - "name": "Int", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ - { - "args": [], - "deprecationReason": null, - "description": "Pagination data for this connection.", + "description": "BND", "isDeprecated": false, - "name": "pageInfo", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - } + "name": "BND" }, { - "args": [], - "deprecationReason": null, - "description": "Contains the nodes in this connection.", - "isDeprecated": false, - "name": "edges", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CustomsTemplateTypeEdge", - "ofType": null - } - } - } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "CustomsTemplateTypeConnection", - "possibleTypes": null - }, - { - "description": "A Relay edge containing a `CustomsTemplateType` and its cursor.", - "enumValues": null, - "fields": [ - { - "args": [], "deprecationReason": null, - "description": "The item at the end of the edge", + "description": "BOB", "isDeprecated": false, - "name": "node", - "type": { - "kind": "OBJECT", - "name": "CustomsTemplateType", - "ofType": null - } + "name": "BOB" }, { - "args": [], - "deprecationReason": null, - "description": "A cursor for use in pagination", - "isDeprecated": false, - "name": "cursor", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "CustomsTemplateTypeEdge", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ - { - "args": [], "deprecationReason": null, - "description": "", + "description": "BRL", "isDeprecated": false, - "name": "created_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "BRL" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "BSD", "isDeprecated": false, - "name": "updated_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "BSD" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "BTN", "isDeprecated": false, - "name": "created_by", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "UserType", - "ofType": null - } - } + "name": "BTN" }, { - "args": [], "deprecationReason": null, - "description": "The ID of the object.", + "description": "BWP", "isDeprecated": false, - "name": "id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } + "name": "BWP" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "BYN", "isDeprecated": false, - "name": "label", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "BYN" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "BZD", "isDeprecated": false, - "name": "is_default", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } + "name": "BZD" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "CAD", "isDeprecated": false, - "name": "customs", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CustomsType", - "ofType": null - } - } - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "CustomNode", - "ofType": null - } - ], - "kind": "OBJECT", - "name": "CustomsTemplateType", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ + "name": "CAD" + }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "CDF", "isDeprecated": false, - "name": "created_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "CDF" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "XAF", "isDeprecated": false, - "name": "updated_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "XAF" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "CHF", "isDeprecated": false, - "name": "created_by", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "UserType", - "ofType": null - } - } + "name": "CHF" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "NZD", "isDeprecated": false, - "name": "id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "NZD" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "CLP", "isDeprecated": false, - "name": "aes", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "name": "CLP" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "CNY", "isDeprecated": false, - "name": "eel_pfc", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "name": "CNY" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "COP", "isDeprecated": false, - "name": "certify", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "name": "COP" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "CRC", "isDeprecated": false, - "name": "commercial_invoice", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "name": "CRC" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "CUC", "isDeprecated": false, - "name": "certificate_number", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "name": "CUC" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "CVE", "isDeprecated": false, - "name": "content_type", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "name": "CVE" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "CZK", "isDeprecated": false, - "name": "content_description", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "name": "CZK" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "DJF", "isDeprecated": false, - "name": "incoterm", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "CustomsIncoterm", - "ofType": null - } - } + "name": "DJF" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "DKK", "isDeprecated": false, - "name": "invoice", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "name": "DKK" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "DOP", "isDeprecated": false, - "name": "invoice_date", - "type": { - "kind": "SCALAR", - "name": "Date", - "ofType": null - } + "name": "DOP" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "DZD", "isDeprecated": false, - "name": "signer", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "name": "DZD" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "EGP", "isDeprecated": false, - "name": "duty", - "type": { - "kind": "OBJECT", - "name": "DutyType", - "ofType": null - } + "name": "EGP" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "ERN", "isDeprecated": false, - "name": "commodities", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CommodityType", - "ofType": null - } - } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "CustomsType", - "possibleTypes": null - }, - { - "description": "An enumeration.", - "enumValues": [ + "name": "ERN" + }, { "deprecationReason": null, - "description": "CFR", + "description": "ETB", "isDeprecated": false, - "name": "CFR" + "name": "ETB" }, { "deprecationReason": null, - "description": "CIF", + "description": "FJD", "isDeprecated": false, - "name": "CIF" + "name": "FJD" }, { "deprecationReason": null, - "description": "CIP", + "description": "GBP", "isDeprecated": false, - "name": "CIP" + "name": "GBP" }, { "deprecationReason": null, - "description": "CPT", + "description": "GEL", "isDeprecated": false, - "name": "CPT" + "name": "GEL" }, { "deprecationReason": null, - "description": "DAF", + "description": "GHS", "isDeprecated": false, - "name": "DAF" + "name": "GHS" }, { "deprecationReason": null, - "description": "DDP", + "description": "GMD", "isDeprecated": false, - "name": "DDP" + "name": "GMD" }, { "deprecationReason": null, - "description": "DDU", + "description": "GNF", "isDeprecated": false, - "name": "DDU" + "name": "GNF" }, { "deprecationReason": null, - "description": "DEQ", + "description": "GTQ", "isDeprecated": false, - "name": "DEQ" + "name": "GTQ" }, { "deprecationReason": null, - "description": "DES", + "description": "GYD", "isDeprecated": false, - "name": "DES" + "name": "GYD" }, { "deprecationReason": null, - "description": "EXW", + "description": "HKD", "isDeprecated": false, - "name": "EXW" + "name": "HKD" }, { "deprecationReason": null, - "description": "FAS", + "description": "HNL", "isDeprecated": false, - "name": "FAS" + "name": "HNL" }, { "deprecationReason": null, - "description": "FCA", + "description": "HRK", "isDeprecated": false, - "name": "FCA" + "name": "HRK" }, { "deprecationReason": null, - "description": "FOB", + "description": "HTG", "isDeprecated": false, - "name": "FOB" - } - ], - "fields": null, - "inputFields": null, - "interfaces": null, - "kind": "ENUM", - "name": "CustomsIncoterm", - "possibleTypes": null - }, - { - "description": "The `Date` scalar type represents a Date\nvalue as specified by\n[iso8601](https://en.wikipedia.org/wiki/ISO_8601).", - "enumValues": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "kind": "SCALAR", - "name": "Date", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ + "name": "HTG" + }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "HUF", "isDeprecated": false, - "name": "paid_by", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "name": "HUF" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "IDR", "isDeprecated": false, - "name": "currency", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "name": "IDR" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "ILS", "isDeprecated": false, - "name": "account_number", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "name": "ILS" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "INR", "isDeprecated": false, - "name": "declared_value", - "type": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - } + "name": "INR" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "IRR", "isDeprecated": false, - "name": "bill_to", - "type": { - "kind": "OBJECT", - "name": "AddressType", - "ofType": null - } + "name": "IRR" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "ISK", "isDeprecated": false, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "DutyType", - "possibleTypes": null - }, - { - "description": "The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point). ", - "enumValues": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "kind": "SCALAR", - "name": "Float", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ + "name": "ISK" + }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "JMD", "isDeprecated": false, - "name": "created_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "JMD" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "JOD", "isDeprecated": false, - "name": "updated_at", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - } + "name": "JOD" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "JPY", "isDeprecated": false, - "name": "created_by", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "UserType", - "ofType": null - } - } + "name": "JPY" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "KES", "isDeprecated": false, - "name": "id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "name": "KES" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "KGS", "isDeprecated": false, - "name": "weight", - "type": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - } + "name": "KGS" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "KHR", "isDeprecated": false, - "name": "description", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "name": "KHR" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "KMF", "isDeprecated": false, - "name": "quantity", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } + "name": "KMF" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "KPW", "isDeprecated": false, - "name": "sku", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "name": "KPW" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "KRW", "isDeprecated": false, - "name": "value_amount", - "type": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - } + "name": "KRW" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "KWD", "isDeprecated": false, - "name": "weight_unit", - "type": { - "kind": "ENUM", - "name": "CommodityWeightUnit", - "ofType": null - } + "name": "KWD" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "KYD", "isDeprecated": false, - "name": "value_currency", - "type": { - "kind": "ENUM", - "name": "CommodityValueCurrency", - "ofType": null - } + "name": "KYD" }, { - "args": [], "deprecationReason": null, - "description": "", + "description": "KZT", "isDeprecated": false, - "name": "origin_country", - "type": { - "kind": "ENUM", - "name": "CommodityOriginCountry", - "ofType": null - } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "CommodityType", - "possibleTypes": null - }, - { - "description": "An enumeration.", - "enumValues": [ + "name": "KZT" + }, { "deprecationReason": null, - "description": "KG", + "description": "LAK", "isDeprecated": false, - "name": "KG" + "name": "LAK" }, { "deprecationReason": null, - "description": "LB", + "description": "LKR", "isDeprecated": false, - "name": "LB" - } - ], - "fields": null, - "inputFields": null, - "interfaces": null, - "kind": "ENUM", - "name": "CommodityWeightUnit", - "possibleTypes": null - }, - { - "description": "An enumeration.", - "enumValues": [ + "name": "LKR" + }, { "deprecationReason": null, - "description": "EUR", + "description": "LRD", "isDeprecated": false, - "name": "EUR" + "name": "LRD" }, { "deprecationReason": null, - "description": "AED", + "description": "LSL", "isDeprecated": false, - "name": "AED" + "name": "LSL" }, { "deprecationReason": null, - "description": "USD", + "description": "LYD", "isDeprecated": false, - "name": "USD" + "name": "LYD" }, { "deprecationReason": null, - "description": "XCD", + "description": "MAD", "isDeprecated": false, - "name": "XCD" + "name": "MAD" }, { "deprecationReason": null, - "description": "AMD", + "description": "MDL", "isDeprecated": false, - "name": "AMD" + "name": "MDL" }, { "deprecationReason": null, - "description": "ANG", + "description": "MGA", "isDeprecated": false, - "name": "ANG" + "name": "MGA" }, { "deprecationReason": null, - "description": "AOA", + "description": "MKD", "isDeprecated": false, - "name": "AOA" + "name": "MKD" }, { "deprecationReason": null, - "description": "ARS", + "description": "MMK", "isDeprecated": false, - "name": "ARS" + "name": "MMK" }, { "deprecationReason": null, - "description": "AUD", + "description": "MNT", "isDeprecated": false, - "name": "AUD" + "name": "MNT" }, { "deprecationReason": null, - "description": "AWG", + "description": "MOP", "isDeprecated": false, - "name": "AWG" + "name": "MOP" }, { "deprecationReason": null, - "description": "AZN", + "description": "MRO", "isDeprecated": false, - "name": "AZN" + "name": "MRO" }, { "deprecationReason": null, - "description": "BAM", + "description": "MUR", "isDeprecated": false, - "name": "BAM" + "name": "MUR" }, { "deprecationReason": null, - "description": "BBD", + "description": "MVR", "isDeprecated": false, - "name": "BBD" + "name": "MVR" }, { "deprecationReason": null, - "description": "BDT", + "description": "MWK", "isDeprecated": false, - "name": "BDT" + "name": "MWK" }, { "deprecationReason": null, - "description": "XOF", + "description": "MXN", "isDeprecated": false, - "name": "XOF" + "name": "MXN" }, { "deprecationReason": null, - "description": "BGN", + "description": "MYR", "isDeprecated": false, - "name": "BGN" + "name": "MYR" }, { "deprecationReason": null, - "description": "BHD", + "description": "MZN", "isDeprecated": false, - "name": "BHD" + "name": "MZN" }, { "deprecationReason": null, - "description": "BIF", + "description": "NAD", "isDeprecated": false, - "name": "BIF" + "name": "NAD" }, { "deprecationReason": null, - "description": "BMD", + "description": "XPF", "isDeprecated": false, - "name": "BMD" + "name": "XPF" }, { "deprecationReason": null, - "description": "BND", + "description": "NGN", "isDeprecated": false, - "name": "BND" + "name": "NGN" }, { "deprecationReason": null, - "description": "BOB", + "description": "NIO", "isDeprecated": false, - "name": "BOB" + "name": "NIO" }, { "deprecationReason": null, - "description": "BRL", + "description": "NOK", "isDeprecated": false, - "name": "BRL" + "name": "NOK" }, { "deprecationReason": null, - "description": "BSD", + "description": "NPR", "isDeprecated": false, - "name": "BSD" + "name": "NPR" }, { "deprecationReason": null, - "description": "BTN", + "description": "OMR", "isDeprecated": false, - "name": "BTN" + "name": "OMR" }, { "deprecationReason": null, - "description": "BWP", + "description": "PEN", "isDeprecated": false, - "name": "BWP" + "name": "PEN" }, { "deprecationReason": null, - "description": "BYN", + "description": "PGK", "isDeprecated": false, - "name": "BYN" + "name": "PGK" }, { "deprecationReason": null, - "description": "BZD", + "description": "PHP", "isDeprecated": false, - "name": "BZD" + "name": "PHP" }, { "deprecationReason": null, - "description": "CAD", + "description": "PKR", "isDeprecated": false, - "name": "CAD" + "name": "PKR" }, { "deprecationReason": null, - "description": "CDF", + "description": "PLN", "isDeprecated": false, - "name": "CDF" + "name": "PLN" }, { "deprecationReason": null, - "description": "XAF", + "description": "PYG", "isDeprecated": false, - "name": "XAF" + "name": "PYG" }, { "deprecationReason": null, - "description": "CHF", + "description": "QAR", "isDeprecated": false, - "name": "CHF" + "name": "QAR" }, { "deprecationReason": null, - "description": "NZD", + "description": "RSD", "isDeprecated": false, - "name": "NZD" + "name": "RSD" }, { "deprecationReason": null, - "description": "CLP", + "description": "RUB", "isDeprecated": false, - "name": "CLP" + "name": "RUB" }, { "deprecationReason": null, - "description": "CNY", + "description": "RWF", "isDeprecated": false, - "name": "CNY" + "name": "RWF" }, { "deprecationReason": null, - "description": "COP", + "description": "SAR", "isDeprecated": false, - "name": "COP" + "name": "SAR" }, { "deprecationReason": null, - "description": "CRC", + "description": "SBD", "isDeprecated": false, - "name": "CRC" + "name": "SBD" }, { "deprecationReason": null, - "description": "CUC", + "description": "SCR", "isDeprecated": false, - "name": "CUC" + "name": "SCR" }, { "deprecationReason": null, - "description": "CVE", + "description": "SDG", "isDeprecated": false, - "name": "CVE" + "name": "SDG" }, { "deprecationReason": null, - "description": "CZK", + "description": "SEK", "isDeprecated": false, - "name": "CZK" + "name": "SEK" }, { "deprecationReason": null, - "description": "DJF", + "description": "SGD", "isDeprecated": false, - "name": "DJF" + "name": "SGD" }, { "deprecationReason": null, - "description": "DKK", + "description": "SHP", "isDeprecated": false, - "name": "DKK" + "name": "SHP" }, { "deprecationReason": null, - "description": "DOP", + "description": "SLL", "isDeprecated": false, - "name": "DOP" + "name": "SLL" }, { "deprecationReason": null, - "description": "DZD", + "description": "SOS", "isDeprecated": false, - "name": "DZD" + "name": "SOS" }, { "deprecationReason": null, - "description": "EGP", + "description": "SRD", "isDeprecated": false, - "name": "EGP" + "name": "SRD" }, { "deprecationReason": null, - "description": "ERN", + "description": "SSP", "isDeprecated": false, - "name": "ERN" + "name": "SSP" }, { "deprecationReason": null, - "description": "ETB", + "description": "STD", "isDeprecated": false, - "name": "ETB" + "name": "STD" }, { "deprecationReason": null, - "description": "FJD", + "description": "SYP", "isDeprecated": false, - "name": "FJD" + "name": "SYP" }, { "deprecationReason": null, - "description": "GBP", + "description": "SZL", "isDeprecated": false, - "name": "GBP" + "name": "SZL" }, { "deprecationReason": null, - "description": "GEL", + "description": "THB", "isDeprecated": false, - "name": "GEL" + "name": "THB" }, { "deprecationReason": null, - "description": "GHS", + "description": "TJS", "isDeprecated": false, - "name": "GHS" + "name": "TJS" }, { "deprecationReason": null, - "description": "GMD", + "description": "TND", "isDeprecated": false, - "name": "GMD" + "name": "TND" }, { "deprecationReason": null, - "description": "GNF", + "description": "TOP", "isDeprecated": false, - "name": "GNF" + "name": "TOP" }, { "deprecationReason": null, - "description": "GTQ", + "description": "TRY", "isDeprecated": false, - "name": "GTQ" + "name": "TRY" }, { "deprecationReason": null, - "description": "GYD", + "description": "TTD", "isDeprecated": false, - "name": "GYD" + "name": "TTD" }, { "deprecationReason": null, - "description": "HKD", + "description": "TWD", "isDeprecated": false, - "name": "HKD" + "name": "TWD" }, { "deprecationReason": null, - "description": "HNL", + "description": "TZS", "isDeprecated": false, - "name": "HNL" + "name": "TZS" }, { "deprecationReason": null, - "description": "HRK", + "description": "UAH", "isDeprecated": false, - "name": "HRK" + "name": "UAH" }, { "deprecationReason": null, - "description": "HTG", + "description": "UYU", "isDeprecated": false, - "name": "HTG" + "name": "UYU" }, { "deprecationReason": null, - "description": "HUF", + "description": "UZS", "isDeprecated": false, - "name": "HUF" + "name": "UZS" }, { "deprecationReason": null, - "description": "IDR", + "description": "VEF", "isDeprecated": false, - "name": "IDR" + "name": "VEF" }, { "deprecationReason": null, - "description": "ILS", + "description": "VND", "isDeprecated": false, - "name": "ILS" + "name": "VND" }, { "deprecationReason": null, - "description": "INR", + "description": "VUV", "isDeprecated": false, - "name": "INR" + "name": "VUV" }, { "deprecationReason": null, - "description": "IRR", + "description": "WST", "isDeprecated": false, - "name": "IRR" + "name": "WST" }, { "deprecationReason": null, - "description": "ISK", + "description": "YER", "isDeprecated": false, - "name": "ISK" + "name": "YER" }, { "deprecationReason": null, - "description": "JMD", + "description": "ZAR", "isDeprecated": false, - "name": "JMD" - }, + "name": "ZAR" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "ServiceLevelCurrency", + "possibleTypes": null + }, + { + "description": "An enumeration.", + "enumValues": [ { "deprecationReason": null, - "description": "JOD", + "description": "KG", "isDeprecated": false, - "name": "JOD" + "name": "KG" }, { "deprecationReason": null, - "description": "JPY", + "description": "LB", "isDeprecated": false, - "name": "JPY" - }, + "name": "LB" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "ServiceLevelWeightUnit", + "possibleTypes": null + }, + { + "description": "An enumeration.", + "enumValues": [ { "deprecationReason": null, - "description": "KES", + "description": "CM", "isDeprecated": false, - "name": "KES" + "name": "CM" }, { "deprecationReason": null, - "description": "KGS", + "description": "IN", "isDeprecated": false, - "name": "KGS" - }, + "name": "IN" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "ServiceLevelDimensionUnit", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "KHR", + "description": "", "isDeprecated": false, - "name": "KHR" + "name": "created_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "KMF", + "description": "", "isDeprecated": false, - "name": "KMF" + "name": "updated_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "KPW", + "description": "", "isDeprecated": false, - "name": "KPW" + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "KRW", + "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", "isDeprecated": false, - "name": "KRW" + "name": "carrier_id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "KWD", + "description": "", "isDeprecated": false, - "name": "KWD" + "name": "test", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "KYD", + "description": "", "isDeprecated": false, - "name": "KYD" + "name": "active", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "KZT", + "description": "", "isDeprecated": false, - "name": "KZT" + "name": "capabilities", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + } }, { + "args": [], "deprecationReason": null, - "description": "LAK", + "description": "", "isDeprecated": false, - "name": "LAK" + "name": "created_by", + "type": { + "kind": "OBJECT", + "name": "OrganizationUserType", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "LKR", + "description": "", "isDeprecated": false, - "name": "LKR" + "name": "consumer_key", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "LRD", + "description": "", "isDeprecated": false, - "name": "LRD" + "name": "consumer_secret", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "LSL", + "description": null, "isDeprecated": false, - "name": "LSL" - }, + "name": "carrier_name", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "DHLUniversalSettings", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "LYD", + "description": "", "isDeprecated": false, - "name": "LYD" + "name": "created_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "MAD", + "description": "", "isDeprecated": false, - "name": "MAD" + "name": "updated_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "MDL", + "description": "", "isDeprecated": false, - "name": "MDL" + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "MGA", + "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", "isDeprecated": false, - "name": "MGA" + "name": "carrier_id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "MKD", + "description": "", "isDeprecated": false, - "name": "MKD" + "name": "test", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "MMK", + "description": "", "isDeprecated": false, - "name": "MMK" + "name": "active", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "MNT", + "description": "", "isDeprecated": false, - "name": "MNT" + "name": "capabilities", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + } }, { + "args": [], "deprecationReason": null, - "description": "MOP", + "description": "", "isDeprecated": false, - "name": "MOP" + "name": "created_by", + "type": { + "kind": "OBJECT", + "name": "OrganizationUserType", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "MRO", + "description": "", "isDeprecated": false, - "name": "MRO" + "name": "username", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "MUR", + "description": "", "isDeprecated": false, - "name": "MUR" + "name": "password", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "MVR", + "description": "", "isDeprecated": false, - "name": "MVR" + "name": "billing_account", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "MWK", + "description": null, "isDeprecated": false, - "name": "MWK" - }, + "name": "carrier_name", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "DicomSettings", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "MXN", + "description": "", "isDeprecated": false, - "name": "MXN" + "name": "created_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "MYR", + "description": "", "isDeprecated": false, - "name": "MYR" + "name": "updated_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "MZN", + "description": "", "isDeprecated": false, - "name": "MZN" + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "NAD", + "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", "isDeprecated": false, - "name": "NAD" + "name": "carrier_id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "XPF", + "description": "", "isDeprecated": false, - "name": "XPF" + "name": "test", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "NGN", + "description": "", "isDeprecated": false, - "name": "NGN" + "name": "active", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "NIO", + "description": "", "isDeprecated": false, - "name": "NIO" + "name": "capabilities", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + } }, { + "args": [], "deprecationReason": null, - "description": "NOK", + "description": "", "isDeprecated": false, - "name": "NOK" + "name": "created_by", + "type": { + "kind": "OBJECT", + "name": "OrganizationUserType", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "NPR", + "description": "", "isDeprecated": false, - "name": "NPR" + "name": "username", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "OMR", + "description": "", "isDeprecated": false, - "name": "OMR" + "name": "password", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "PEN", + "description": null, "isDeprecated": false, - "name": "PEN" - }, + "name": "carrier_name", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "EShipperSettings", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "PGK", + "description": "", "isDeprecated": false, - "name": "PGK" + "name": "created_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "PHP", + "description": "", "isDeprecated": false, - "name": "PHP" + "name": "updated_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "PKR", + "description": "", "isDeprecated": false, - "name": "PKR" + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "PLN", + "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", "isDeprecated": false, - "name": "PLN" + "name": "carrier_id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "PYG", + "description": "", "isDeprecated": false, - "name": "PYG" + "name": "test", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "QAR", + "description": "", "isDeprecated": false, - "name": "QAR" + "name": "active", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "RSD", + "description": "", "isDeprecated": false, - "name": "RSD" + "name": "capabilities", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + } }, { + "args": [], "deprecationReason": null, - "description": "RUB", + "description": "", "isDeprecated": false, - "name": "RUB" + "name": "created_by", + "type": { + "kind": "OBJECT", + "name": "OrganizationUserType", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "RWF", + "description": "", "isDeprecated": false, - "name": "RWF" + "name": "password", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "SAR", + "description": "", "isDeprecated": false, - "name": "SAR" + "name": "meter_number", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "SBD", + "description": "", "isDeprecated": false, - "name": "SBD" + "name": "account_number", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "SCR", + "description": "", "isDeprecated": false, - "name": "SCR" + "name": "user_key", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "SDG", + "description": null, "isDeprecated": false, - "name": "SDG" + "name": "account_country_code", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "SEK", + "description": null, "isDeprecated": false, - "name": "SEK" - }, + "name": "carrier_name", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "FedexSettings", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "SGD", + "description": "", "isDeprecated": false, - "name": "SGD" + "name": "created_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "SHP", + "description": "", "isDeprecated": false, - "name": "SHP" + "name": "updated_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "SLL", + "description": "", "isDeprecated": false, - "name": "SLL" + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "SOS", + "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", "isDeprecated": false, - "name": "SOS" + "name": "carrier_id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "SRD", + "description": "", "isDeprecated": false, - "name": "SRD" + "name": "test", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "SSP", + "description": "", "isDeprecated": false, - "name": "SSP" + "name": "active", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "STD", + "description": "", "isDeprecated": false, - "name": "STD" + "name": "capabilities", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + } }, { + "args": [], "deprecationReason": null, - "description": "SYP", + "description": "", "isDeprecated": false, - "name": "SYP" + "name": "created_by", + "type": { + "kind": "OBJECT", + "name": "OrganizationUserType", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "SZL", + "description": "", "isDeprecated": false, - "name": "SZL" + "name": "username", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "THB", + "description": "", "isDeprecated": false, - "name": "THB" + "name": "password", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "TJS", + "description": null, "isDeprecated": false, - "name": "TJS" - }, + "name": "carrier_name", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "FreightcomSettings", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "TND", + "description": "", "isDeprecated": false, - "name": "TND" + "name": "created_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "TOP", + "description": "", "isDeprecated": false, - "name": "TOP" + "name": "updated_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "TRY", + "description": "", "isDeprecated": false, - "name": "TRY" + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "TTD", + "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", "isDeprecated": false, - "name": "TTD" + "name": "carrier_id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "TWD", + "description": "", "isDeprecated": false, - "name": "TWD" + "name": "test", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "TZS", + "description": "", "isDeprecated": false, - "name": "TZS" + "name": "active", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "UAH", + "description": "", "isDeprecated": false, - "name": "UAH" + "name": "capabilities", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + } }, { + "args": [], "deprecationReason": null, - "description": "UYU", + "description": "", "isDeprecated": false, - "name": "UYU" + "name": "created_by", + "type": { + "kind": "OBJECT", + "name": "OrganizationUserType", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "UZS", + "description": "", "isDeprecated": false, - "name": "UZS" + "name": "username", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "VEF", + "description": "", "isDeprecated": false, - "name": "VEF" + "name": "password", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "VND", + "description": "", "isDeprecated": false, - "name": "VND" + "name": "account_number", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "VUV", + "description": "", "isDeprecated": false, - "name": "VUV" + "name": "user_token", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "WST", + "description": null, "isDeprecated": false, - "name": "WST" - }, + "name": "carrier_name", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "PurolatorSettings", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "YER", + "description": "", "isDeprecated": false, - "name": "YER" + "name": "created_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "ZAR", + "description": "", "isDeprecated": false, - "name": "ZAR" - } - ], - "fields": null, - "inputFields": null, - "interfaces": null, - "kind": "ENUM", - "name": "CommodityValueCurrency", - "possibleTypes": null - }, - { - "description": "An enumeration.", - "enumValues": [ + "name": "updated_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } + }, { + "args": [], "deprecationReason": null, - "description": "AD", + "description": "", "isDeprecated": false, - "name": "AD" + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "AE", + "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", "isDeprecated": false, - "name": "AE" + "name": "carrier_id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "AF", + "description": "", "isDeprecated": false, - "name": "AF" + "name": "test", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "AG", + "description": "", "isDeprecated": false, - "name": "AG" + "name": "active", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "AI", + "description": "", "isDeprecated": false, - "name": "AI" + "name": "capabilities", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + } }, { + "args": [], "deprecationReason": null, - "description": "AL", + "description": "", "isDeprecated": false, - "name": "AL" + "name": "created_by", + "type": { + "kind": "OBJECT", + "name": "OrganizationUserType", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "AM", + "description": "", "isDeprecated": false, - "name": "AM" + "name": "client_id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "AN", + "description": "", "isDeprecated": false, - "name": "AN" + "name": "client_secret", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "AO", + "description": null, "isDeprecated": false, - "name": "AO" - }, + "name": "carrier_name", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "RoyalMailSettings", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "AR", + "description": "", "isDeprecated": false, - "name": "AR" + "name": "created_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "AS", + "description": "", "isDeprecated": false, - "name": "AS" + "name": "updated_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "AT", + "description": "", "isDeprecated": false, - "name": "AT" + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "AU", + "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", "isDeprecated": false, - "name": "AU" + "name": "carrier_id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "AW", + "description": "", "isDeprecated": false, - "name": "AW" + "name": "test", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "AZ", + "description": "", "isDeprecated": false, - "name": "AZ" + "name": "active", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "BA", + "description": "", "isDeprecated": false, - "name": "BA" + "name": "capabilities", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + } }, { + "args": [], "deprecationReason": null, - "description": "BB", + "description": "", "isDeprecated": false, - "name": "BB" + "name": "created_by", + "type": { + "kind": "OBJECT", + "name": "OrganizationUserType", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "BD", + "description": "", "isDeprecated": false, - "name": "BD" + "name": "sendle_id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "BE", + "description": "", "isDeprecated": false, - "name": "BE" + "name": "api_key", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "BF", + "description": null, "isDeprecated": false, - "name": "BF" - }, + "name": "carrier_name", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "SendleSettings", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "BG", + "description": "", "isDeprecated": false, - "name": "BG" + "name": "created_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "BH", + "description": "", "isDeprecated": false, - "name": "BH" + "name": "updated_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "BI", + "description": "", "isDeprecated": false, - "name": "BI" + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "BJ", + "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", "isDeprecated": false, - "name": "BJ" + "name": "carrier_id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "BM", + "description": "", "isDeprecated": false, - "name": "BM" + "name": "test", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "BN", + "description": "", "isDeprecated": false, - "name": "BN" + "name": "active", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "BO", + "description": "", "isDeprecated": false, - "name": "BO" + "name": "capabilities", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + } }, { + "args": [], "deprecationReason": null, - "description": "BR", + "description": "", "isDeprecated": false, - "name": "BR" + "name": "created_by", + "type": { + "kind": "OBJECT", + "name": "OrganizationUserType", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "BS", + "description": "", "isDeprecated": false, - "name": "BS" + "name": "partner_id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "BT", + "description": "", "isDeprecated": false, - "name": "BT" + "name": "check_word", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "BW", + "description": null, "isDeprecated": false, - "name": "BW" - }, + "name": "carrier_name", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "SFExpressSettings", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "BY", + "description": "", "isDeprecated": false, - "name": "BY" + "name": "created_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "BZ", + "description": "", "isDeprecated": false, - "name": "BZ" + "name": "updated_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "CA", + "description": "", "isDeprecated": false, - "name": "CA" + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "CD", + "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", "isDeprecated": false, - "name": "CD" + "name": "carrier_id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "CF", + "description": "", "isDeprecated": false, - "name": "CF" + "name": "test", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "CG", + "description": "", "isDeprecated": false, - "name": "CG" + "name": "active", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "CH", + "description": "", "isDeprecated": false, - "name": "CH" + "name": "capabilities", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + } }, { + "args": [], "deprecationReason": null, - "description": "CI", + "description": "", "isDeprecated": false, - "name": "CI" + "name": "created_by", + "type": { + "kind": "OBJECT", + "name": "OrganizationUserType", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "CK", + "description": "", "isDeprecated": false, - "name": "CK" + "name": "username", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "CL", + "description": "", "isDeprecated": false, - "name": "CL" + "name": "password", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "CM", + "description": "", "isDeprecated": false, - "name": "CM" + "name": "account_number", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "CN", + "description": null, "isDeprecated": false, - "name": "CN" + "name": "account_country_code", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "CO", + "description": null, "isDeprecated": false, - "name": "CO" - }, + "name": "carrier_name", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "TNTSettings", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "CR", + "description": "", "isDeprecated": false, - "name": "CR" + "name": "created_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "CU", + "description": "", "isDeprecated": false, - "name": "CU" + "name": "updated_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "CV", + "description": "", "isDeprecated": false, - "name": "CV" + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "CY", + "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", "isDeprecated": false, - "name": "CY" + "name": "carrier_id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "CZ", + "description": "", "isDeprecated": false, - "name": "CZ" + "name": "test", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "DE", + "description": "", "isDeprecated": false, - "name": "DE" + "name": "active", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "DJ", + "description": "", "isDeprecated": false, - "name": "DJ" + "name": "capabilities", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + } }, { + "args": [], "deprecationReason": null, - "description": "DK", + "description": "", "isDeprecated": false, - "name": "DK" + "name": "created_by", + "type": { + "kind": "OBJECT", + "name": "OrganizationUserType", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "DM", + "description": "", "isDeprecated": false, - "name": "DM" + "name": "username", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "DO", + "description": "", "isDeprecated": false, - "name": "DO" + "name": "password", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "DZ", + "description": "", "isDeprecated": false, - "name": "DZ" + "name": "access_license_number", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "EC", + "description": "", "isDeprecated": false, - "name": "EC" + "name": "account_number", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "EE", + "description": null, "isDeprecated": false, - "name": "EE" + "name": "account_country_code", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "EG", + "description": null, "isDeprecated": false, - "name": "EG" - }, + "name": "carrier_name", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "UPSSettings", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "ER", + "description": "", "isDeprecated": false, - "name": "ER" + "name": "created_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "ES", + "description": "", "isDeprecated": false, - "name": "ES" + "name": "updated_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "ET", + "description": "", "isDeprecated": false, - "name": "ET" + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "FI", + "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", "isDeprecated": false, - "name": "FI" + "name": "carrier_id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "FJ", + "description": "", "isDeprecated": false, - "name": "FJ" + "name": "test", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "FK", + "description": "", "isDeprecated": false, - "name": "FK" + "name": "active", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "FM", + "description": "", "isDeprecated": false, - "name": "FM" + "name": "capabilities", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + } }, { + "args": [], "deprecationReason": null, - "description": "FO", + "description": "", "isDeprecated": false, - "name": "FO" + "name": "created_by", + "type": { + "kind": "OBJECT", + "name": "OrganizationUserType", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "FR", + "description": "", "isDeprecated": false, - "name": "FR" + "name": "username", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "GA", + "description": "", "isDeprecated": false, - "name": "GA" + "name": "password", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "GB", + "description": "", "isDeprecated": false, - "name": "GB" + "name": "mailer_id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "GD", + "description": "", "isDeprecated": false, - "name": "GD" + "name": "customer_registration_id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "GE", + "description": "", "isDeprecated": false, - "name": "GE" + "name": "logistics_manager_mailer_id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "GF", + "description": null, "isDeprecated": false, - "name": "GF" - }, + "name": "carrier_name", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "USPSSettings", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "GG", + "description": "", "isDeprecated": false, - "name": "GG" + "name": "created_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "GH", + "description": "", "isDeprecated": false, - "name": "GH" + "name": "updated_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "GI", + "description": "", "isDeprecated": false, - "name": "GI" + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "GL", + "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", "isDeprecated": false, - "name": "GL" + "name": "carrier_id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "GM", + "description": "", "isDeprecated": false, - "name": "GM" + "name": "test", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "GN", + "description": "", "isDeprecated": false, - "name": "GN" + "name": "active", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "GP", + "description": "", "isDeprecated": false, - "name": "GP" + "name": "capabilities", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + } }, { + "args": [], "deprecationReason": null, - "description": "GQ", + "description": "", "isDeprecated": false, - "name": "GQ" + "name": "created_by", + "type": { + "kind": "OBJECT", + "name": "OrganizationUserType", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "GR", + "description": "", "isDeprecated": false, - "name": "GR" + "name": "username", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "GT", + "description": "", "isDeprecated": false, - "name": "GT" + "name": "password", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "GU", + "description": "", "isDeprecated": false, - "name": "GU" + "name": "mailer_id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "GW", + "description": "", "isDeprecated": false, - "name": "GW" + "name": "customer_registration_id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "GY", + "description": "", "isDeprecated": false, - "name": "GY" + "name": "logistics_manager_mailer_id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "HK", + "description": null, "isDeprecated": false, - "name": "HK" - }, + "name": "carrier_name", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "USPSInternationalSettings", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "HN", + "description": "", "isDeprecated": false, - "name": "HN" + "name": "created_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "HR", + "description": "", "isDeprecated": false, - "name": "HR" + "name": "updated_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "HT", + "description": "", "isDeprecated": false, - "name": "HT" + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "HU", + "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", "isDeprecated": false, - "name": "HU" + "name": "carrier_id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "IC", + "description": "", "isDeprecated": false, - "name": "IC" + "name": "test", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "ID", + "description": "", "isDeprecated": false, - "name": "ID" + "name": "active", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "IE", + "description": "", "isDeprecated": false, - "name": "IE" + "name": "capabilities", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + } }, { + "args": [], "deprecationReason": null, - "description": "IL", + "description": "", "isDeprecated": false, - "name": "IL" + "name": "created_by", + "type": { + "kind": "OBJECT", + "name": "OrganizationUserType", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "IN", + "description": "", "isDeprecated": false, - "name": "IN" + "name": "customer_number", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "IQ", + "description": "", "isDeprecated": false, - "name": "IQ" + "name": "license_key", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "IR", + "description": null, "isDeprecated": false, - "name": "IR" - }, + "name": "carrier_name", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "YanwenSettings", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "IS", + "description": "", "isDeprecated": false, - "name": "IS" + "name": "created_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "IT", + "description": "", "isDeprecated": false, - "name": "IT" + "name": "updated_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "JE", + "description": "", "isDeprecated": false, - "name": "JE" + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "JM", + "description": "eg. canadapost, dhl_express, fedex, purolator_courrier, ups...", "isDeprecated": false, - "name": "JM" + "name": "carrier_id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "JO", + "description": "", "isDeprecated": false, - "name": "JO" + "name": "test", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "JP", + "description": "", "isDeprecated": false, - "name": "JP" + "name": "active", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "KE", + "description": "", "isDeprecated": false, - "name": "KE" + "name": "capabilities", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + } }, { + "args": [], "deprecationReason": null, - "description": "KG", + "description": "", "isDeprecated": false, - "name": "KG" + "name": "created_by", + "type": { + "kind": "OBJECT", + "name": "OrganizationUserType", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "KH", + "description": "", "isDeprecated": false, - "name": "KH" + "name": "customer_number", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "KI", + "description": "", "isDeprecated": false, - "name": "KI" + "name": "api_secret", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "KM", + "description": null, "isDeprecated": false, - "name": "KM" - }, + "name": "carrier_name", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "YunExpressSettings", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "KN", + "description": "Pagination data for this connection.", "isDeprecated": false, - "name": "KN" + "name": "pageInfo", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "PageInfo", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "KP", + "description": "Contains the nodes in this connection.", "isDeprecated": false, - "name": "KP" - }, + "name": "edges", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "AddressTemplateTypeEdge", + "ofType": null + } + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "AddressTemplateTypeConnection", + "possibleTypes": null + }, + { + "description": "A Relay edge containing a `AddressTemplateType` and its cursor.", + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "KR", + "description": "The item at the end of the edge", "isDeprecated": false, - "name": "KR" + "name": "node", + "type": { + "kind": "OBJECT", + "name": "AddressTemplateType", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "KV", + "description": "A cursor for use in pagination", "isDeprecated": false, - "name": "KV" - }, + "name": "cursor", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "AddressTemplateTypeEdge", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "KW", + "description": "", "isDeprecated": false, - "name": "KW" + "name": "created_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "KY", + "description": "", "isDeprecated": false, - "name": "KY" + "name": "updated_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "KZ", + "description": "", "isDeprecated": false, - "name": "KZ" + "name": "created_by", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "OrganizationUserType", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "LA", + "description": "The ID of the object.", "isDeprecated": false, - "name": "LA" + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "LB", + "description": "", "isDeprecated": false, - "name": "LB" + "name": "label", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "LC", + "description": "", "isDeprecated": false, - "name": "LC" + "name": "is_default", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "LI", + "description": null, "isDeprecated": false, - "name": "LI" + "name": "address", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "AddressType", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "LK", + "description": "", "isDeprecated": false, - "name": "LK" - }, + "name": "org", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "OrganizationType", + "ofType": null + } + } + } + } + } + ], + "inputFields": null, + "interfaces": [ { - "deprecationReason": null, - "description": "LR", - "isDeprecated": false, - "name": "LR" - }, + "kind": "INTERFACE", + "name": "CustomNode", + "ofType": null + } + ], + "kind": "OBJECT", + "name": "AddressTemplateType", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "LS", + "description": "Pagination data for this connection.", "isDeprecated": false, - "name": "LS" + "name": "pageInfo", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "PageInfo", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "LT", + "description": "Contains the nodes in this connection.", "isDeprecated": false, - "name": "LT" - }, + "name": "edges", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "CustomsTemplateTypeEdge", + "ofType": null + } + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "CustomsTemplateTypeConnection", + "possibleTypes": null + }, + { + "description": "A Relay edge containing a `CustomsTemplateType` and its cursor.", + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "LU", + "description": "The item at the end of the edge", "isDeprecated": false, - "name": "LU" + "name": "node", + "type": { + "kind": "OBJECT", + "name": "CustomsTemplateType", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "LV", + "description": "A cursor for use in pagination", "isDeprecated": false, - "name": "LV" - }, + "name": "cursor", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "CustomsTemplateTypeEdge", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "LY", + "description": "", "isDeprecated": false, - "name": "LY" + "name": "created_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "MA", + "description": "", "isDeprecated": false, - "name": "MA" + "name": "updated_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "MC", + "description": "", "isDeprecated": false, - "name": "MC" + "name": "created_by", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "OrganizationUserType", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "MD", + "description": "The ID of the object.", "isDeprecated": false, - "name": "MD" + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "ME", + "description": "", "isDeprecated": false, - "name": "ME" + "name": "label", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "MG", + "description": "", "isDeprecated": false, - "name": "MG" + "name": "is_default", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "MH", + "description": "", "isDeprecated": false, - "name": "MH" + "name": "org", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "OrganizationType", + "ofType": null + } + } + } + } }, { + "args": [], "deprecationReason": null, - "description": "MK", + "description": null, "isDeprecated": false, - "name": "MK" - }, + "name": "customs", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "CustomsType", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [ { - "deprecationReason": null, - "description": "ML", - "isDeprecated": false, - "name": "ML" - }, + "kind": "INTERFACE", + "name": "CustomNode", + "ofType": null + } + ], + "kind": "OBJECT", + "name": "CustomsTemplateType", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "MM", + "description": "Pagination data for this connection.", "isDeprecated": false, - "name": "MM" + "name": "pageInfo", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "PageInfo", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "MN", + "description": "Contains the nodes in this connection.", "isDeprecated": false, - "name": "MN" - }, + "name": "edges", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ParcelTemplateTypeEdge", + "ofType": null + } + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "ParcelTemplateTypeConnection", + "possibleTypes": null + }, + { + "description": "A Relay edge containing a `ParcelTemplateType` and its cursor.", + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "MO", + "description": "The item at the end of the edge", "isDeprecated": false, - "name": "MO" + "name": "node", + "type": { + "kind": "OBJECT", + "name": "ParcelTemplateType", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "MP", + "description": "A cursor for use in pagination", "isDeprecated": false, - "name": "MP" - }, + "name": "cursor", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "ParcelTemplateTypeEdge", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "MQ", + "description": "", "isDeprecated": false, - "name": "MQ" + "name": "created_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "MR", + "description": "", "isDeprecated": false, - "name": "MR" + "name": "updated_at", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "MS", + "description": "", "isDeprecated": false, - "name": "MS" + "name": "created_by", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "OrganizationUserType", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "MT", + "description": "The ID of the object.", "isDeprecated": false, - "name": "MT" + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "MU", + "description": "", "isDeprecated": false, - "name": "MU" + "name": "label", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "MV", + "description": "", "isDeprecated": false, - "name": "MV" + "name": "is_default", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "MW", + "description": "", "isDeprecated": false, - "name": "MW" + "name": "org", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "OrganizationType", + "ofType": null + } + } + } + } }, { + "args": [], "deprecationReason": null, - "description": "MX", + "description": null, "isDeprecated": false, - "name": "MX" - }, + "name": "parcel", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ParcelType", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [ { - "deprecationReason": null, - "description": "MY", - "isDeprecated": false, - "name": "MY" - }, + "kind": "INTERFACE", + "name": "CustomNode", + "ofType": null + } + ], + "kind": "OBJECT", + "name": "ParcelTemplateType", + "possibleTypes": null + }, + { + "description": "Debugging information for the current query.", + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "MZ", + "description": "Executed SQL queries for this API query.", "isDeprecated": false, - "name": "MZ" - }, + "name": "sql", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "DjangoDebugSQL", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "DjangoDebug", + "possibleTypes": null + }, + { + "description": "Represents a single database query made to a Django managed DB.", + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "NA", + "description": "The type of database being used (e.g. postrgesql, mysql, sqlite).", "isDeprecated": false, - "name": "NA" + "name": "vendor", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "NC", + "description": "The Django database alias (e.g. 'default').", "isDeprecated": false, - "name": "NC" + "name": "alias", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "NE", + "description": "The actual SQL sent to this database.", "isDeprecated": false, - "name": "NE" + "name": "sql", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "NG", + "description": "Duration of this database query in seconds.", "isDeprecated": false, - "name": "NG" + "name": "duration", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "NI", + "description": "The raw SQL of this query, without params.", "isDeprecated": false, - "name": "NI" + "name": "raw_sql", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "NL", + "description": "JSON encoded database query parameters.", "isDeprecated": false, - "name": "NL" + "name": "params", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "NO", + "description": "Start time of this database query.", "isDeprecated": false, - "name": "NO" + "name": "start_time", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "NP", + "description": "Stop time of this database query.", "isDeprecated": false, - "name": "NP" + "name": "stop_time", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "NR", + "description": "Whether this database query took more than 10 seconds.", "isDeprecated": false, - "name": "NR" + "name": "is_slow", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "NU", + "description": "Whether this database query was a SELECT.", "isDeprecated": false, - "name": "NU" + "name": "is_select", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "NZ", + "description": "Postgres transaction ID if available.", "isDeprecated": false, - "name": "NZ" + "name": "trans_id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "OM", + "description": "Postgres transaction status if available.", "isDeprecated": false, - "name": "OM" + "name": "trans_status", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "PA", + "description": "Postgres isolation level if available.", "isDeprecated": false, - "name": "PA" + "name": "iso_level", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "PE", + "description": "Postgres connection encoding if available.", "isDeprecated": false, - "name": "PE" - }, + "name": "encoding", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "DjangoDebugSQL", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "input", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "CreateOrganizationInput", + "ofType": null + } + } + } + ], "deprecationReason": null, - "description": "PF", + "description": null, "isDeprecated": false, - "name": "PF" + "name": "create_organization", + "type": { + "kind": "OBJECT", + "name": "CreateOrganizationPayload", + "ofType": null + } }, { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "input", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "UpdateOrganizationInput", + "ofType": null + } + } + } + ], "deprecationReason": null, - "description": "PG", + "description": null, "isDeprecated": false, - "name": "PG" + "name": "update_organization", + "type": { + "kind": "OBJECT", + "name": "UpdateOrganizationPayload", + "ofType": null + } }, { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "input", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "UpdateUserInput", + "ofType": null + } + } + } + ], "deprecationReason": null, - "description": "PH", + "description": null, "isDeprecated": false, - "name": "PH" + "name": "update_user", + "type": { + "kind": "OBJECT", + "name": "UpdateUserPayload", + "ofType": null + } }, { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "input", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "RegisterUserInput", + "ofType": null + } + } + } + ], "deprecationReason": null, - "description": "PK", + "description": null, "isDeprecated": false, - "name": "PK" + "name": "register_user", + "type": { + "kind": "OBJECT", + "name": "RegisterUserPayload", + "ofType": null + } }, { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "input", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "ConfirmEmailInput", + "ofType": null + } + } + } + ], "deprecationReason": null, - "description": "PL", + "description": null, "isDeprecated": false, - "name": "PL" + "name": "confirm_email", + "type": { + "kind": "OBJECT", + "name": "ConfirmEmailPayload", + "ofType": null + } }, { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "input", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "TokenMutationInput", + "ofType": null + } + } + } + ], "deprecationReason": null, - "description": "PR", + "description": null, "isDeprecated": false, - "name": "PR" + "name": "mutate_token", + "type": { + "kind": "OBJECT", + "name": "TokenMutationPayload", + "ofType": null + } }, { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "input", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "ChangePasswordInput", + "ofType": null + } + } + } + ], "deprecationReason": null, - "description": "PT", + "description": null, "isDeprecated": false, - "name": "PT" + "name": "change_password", + "type": { + "kind": "OBJECT", + "name": "ChangePasswordPayload", + "ofType": null + } }, { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "input", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "RequestPasswordResetInput", + "ofType": null + } + } + } + ], "deprecationReason": null, - "description": "PW", + "description": null, "isDeprecated": false, - "name": "PW" + "name": "request_password_reset", + "type": { + "kind": "OBJECT", + "name": "RequestPasswordResetPayload", + "ofType": null + } }, { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "input", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "ConfirmPasswordResetInput", + "ofType": null + } + } + } + ], "deprecationReason": null, - "description": "PY", + "description": null, "isDeprecated": false, - "name": "PY" + "name": "confirm_password_reset", + "type": { + "kind": "OBJECT", + "name": "ConfirmPasswordResetPayload", + "ofType": null + } }, { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "input", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "DiscardCommodityInput", + "ofType": null + } + } + } + ], "deprecationReason": null, - "description": "QA", + "description": null, "isDeprecated": false, - "name": "QA" + "name": "discard_commodity", + "type": { + "kind": "OBJECT", + "name": "DiscardCommodityPayload", + "ofType": null + } }, { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "input", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "CreateConnectionInput", + "ofType": null + } + } + } + ], "deprecationReason": null, - "description": "RE", + "description": null, "isDeprecated": false, - "name": "RE" + "name": "create_connection", + "type": { + "kind": "OBJECT", + "name": "CreateConnectionPayload", + "ofType": null + } }, { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "input", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "UpdateConnectionInput", + "ofType": null + } + } + } + ], "deprecationReason": null, - "description": "RO", + "description": null, "isDeprecated": false, - "name": "RO" + "name": "update_connection", + "type": { + "kind": "OBJECT", + "name": "UpdateConnectionPayload", + "ofType": null + } }, { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "input", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "DeleteConnectionInput", + "ofType": null + } + } + } + ], "deprecationReason": null, - "description": "RS", + "description": null, "isDeprecated": false, - "name": "RS" + "name": "delete_connection", + "type": { + "kind": "OBJECT", + "name": "DeleteConnectionPayload", + "ofType": null + } }, { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "input", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "SystemCarrierMutationInput", + "ofType": null + } + } + } + ], "deprecationReason": null, - "description": "RU", + "description": null, "isDeprecated": false, - "name": "RU" + "name": "mutate_system_connection", + "type": { + "kind": "OBJECT", + "name": "SystemCarrierMutationPayload", + "ofType": null + } }, { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "input", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "AddressTemplateInput", + "ofType": null + } + } + } + ], "deprecationReason": null, - "description": "RW", + "description": null, "isDeprecated": false, - "name": "RW" + "name": "create_address_template", + "type": { + "kind": "OBJECT", + "name": "AddressTemplatePayload", + "ofType": null + } }, { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "input", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "PartialAddressTemplateInput", + "ofType": null + } + } + } + ], "deprecationReason": null, - "description": "SA", + "description": null, "isDeprecated": false, - "name": "SA" + "name": "update_address_template", + "type": { + "kind": "OBJECT", + "name": "PartialAddressTemplatePayload", + "ofType": null + } }, { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "input", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "CustomsTemplateInput", + "ofType": null + } + } + } + ], "deprecationReason": null, - "description": "SB", + "description": null, "isDeprecated": false, - "name": "SB" + "name": "create_customs_template", + "type": { + "kind": "OBJECT", + "name": "CustomsTemplatePayload", + "ofType": null + } }, { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "input", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "PartialCustomsTemplateInput", + "ofType": null + } + } + } + ], "deprecationReason": null, - "description": "SC", + "description": null, "isDeprecated": false, - "name": "SC" + "name": "update_customs_template", + "type": { + "kind": "OBJECT", + "name": "PartialCustomsTemplatePayload", + "ofType": null + } }, { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "input", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "ParcelTemplateInput", + "ofType": null + } + } + } + ], "deprecationReason": null, - "description": "SD", + "description": null, "isDeprecated": false, - "name": "SD" + "name": "create_parcel_template", + "type": { + "kind": "OBJECT", + "name": "ParcelTemplatePayload", + "ofType": null + } }, { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "input", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "PartialParcelTemplateInput", + "ofType": null + } + } + } + ], "deprecationReason": null, - "description": "SE", + "description": null, "isDeprecated": false, - "name": "SE" + "name": "update_parcel_template", + "type": { + "kind": "OBJECT", + "name": "PartialParcelTemplatePayload", + "ofType": null + } }, { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "input", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "DeleteTemplateInput", + "ofType": null + } + } + } + ], "deprecationReason": null, - "description": "SG", + "description": null, "isDeprecated": false, - "name": "SG" - }, + "name": "delete_template", + "type": { + "kind": "OBJECT", + "name": "DeleteTemplatePayload", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "Mutation", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "SH", + "description": null, "isDeprecated": false, - "name": "SH" + "name": "id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "SI", + "description": "The name of the organization", "isDeprecated": false, - "name": "SI" + "name": "name", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "SK", + "description": "The name in all lowercase, suitable for URL identification", "isDeprecated": false, - "name": "SK" + "name": "slug", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "SL", + "description": "May contain more than one error for same field.", "isDeprecated": false, - "name": "SL" + "name": "errors", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ErrorType", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "SM", + "description": null, "isDeprecated": false, - "name": "SM" - }, + "name": "clientMutationId", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "CreateOrganizationPayload", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "SN", + "description": null, "isDeprecated": false, - "name": "SN" + "name": "field", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "SO", + "description": null, "isDeprecated": false, - "name": "SO" - }, + "name": "messages", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "ErrorType", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ { - "deprecationReason": null, - "description": "SR", - "isDeprecated": false, - "name": "SR" + "defaultValue": null, + "description": null, + "name": "id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "SS", - "isDeprecated": false, - "name": "SS" + "defaultValue": null, + "description": "The name of the organization", + "name": "name", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { - "deprecationReason": null, - "description": "ST", - "isDeprecated": false, - "name": "ST" + "defaultValue": null, + "description": "The name in all lowercase, suitable for URL identification", + "name": "slug", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { - "deprecationReason": null, - "description": "SV", - "isDeprecated": false, - "name": "SV" - }, + "defaultValue": null, + "description": null, + "name": "clientMutationId", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "CreateOrganizationInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "SY", + "description": null, "isDeprecated": false, - "name": "SY" + "name": "id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "SZ", + "description": "The name of the organization", "isDeprecated": false, - "name": "SZ" + "name": "name", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "TC", + "description": "The name in all lowercase, suitable for URL identification", "isDeprecated": false, - "name": "TC" + "name": "slug", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "TD", + "description": "May contain more than one error for same field.", "isDeprecated": false, - "name": "TD" + "name": "errors", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ErrorType", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "TG", + "description": null, "isDeprecated": false, - "name": "TG" + "name": "clientMutationId", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "UpdateOrganizationPayload", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ + { + "defaultValue": null, + "description": null, + "name": "id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "TH", - "isDeprecated": false, - "name": "TH" + "defaultValue": null, + "description": "The name of the organization", + "name": "name", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "TJ", - "isDeprecated": false, - "name": "TJ" + "defaultValue": null, + "description": "The name in all lowercase, suitable for URL identification", + "name": "slug", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { + "defaultValue": null, + "description": null, + "name": "clientMutationId", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "UpdateOrganizationInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], "deprecationReason": null, - "description": "TL", + "description": null, "isDeprecated": false, - "name": "TL" + "name": "email", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "TN", + "description": null, "isDeprecated": false, - "name": "TN" + "name": "full_name", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "TO", + "description": "Designates whether this user should be treated as active. Unselect this instead of deleting accounts.", "isDeprecated": false, - "name": "TO" + "name": "is_active", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "TR", + "description": "Designates whether the user can log into this admin site.", "isDeprecated": false, - "name": "TR" + "name": "is_staff", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "TT", + "description": null, "isDeprecated": false, - "name": "TT" + "name": "last_login", + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "TV", + "description": null, "isDeprecated": false, - "name": "TV" + "name": "date_joined", + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "TW", + "description": "May contain more than one error for same field.", "isDeprecated": false, - "name": "TW" + "name": "errors", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ErrorType", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "TZ", + "description": null, "isDeprecated": false, - "name": "TZ" + "name": "clientMutationId", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "UpdateUserPayload", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ + { + "defaultValue": null, + "description": null, + "name": "email", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "UA", - "isDeprecated": false, - "name": "UA" + "defaultValue": null, + "description": null, + "name": "full_name", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "UG", - "isDeprecated": false, - "name": "UG" + "defaultValue": null, + "description": "Designates whether this user should be treated as active. Unselect this instead of deleting accounts.", + "name": "is_active", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { + "defaultValue": null, + "description": null, + "name": "clientMutationId", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "UpdateUserInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], "deprecationReason": null, - "description": "US", + "description": "", "isDeprecated": false, - "name": "US" + "name": "email", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "UY", + "description": "", "isDeprecated": false, - "name": "UY" + "name": "full_name", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "UZ", + "description": "
  • Your password can\u2019t be too similar to your other personal information.
  • Your password must contain at least 8 characters.
  • Your password can\u2019t be a commonly used password.
  • Your password can\u2019t be entirely numeric.
", "isDeprecated": false, - "name": "UZ" + "name": "password1", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "VA", + "description": "Enter the same password as before, for verification.", "isDeprecated": false, - "name": "VA" + "name": "password2", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "VC", + "description": null, "isDeprecated": false, - "name": "VC" + "name": "errors", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ErrorType", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "VE", + "description": null, "isDeprecated": false, - "name": "VE" + "name": "user", + "type": { + "kind": "OBJECT", + "name": "UserType", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "VG", + "description": null, "isDeprecated": false, - "name": "VG" + "name": "clientMutationId", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "RegisterUserPayload", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ + { + "defaultValue": null, + "description": "", + "name": "email", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { - "deprecationReason": null, - "description": "VI", - "isDeprecated": false, - "name": "VI" + "defaultValue": null, + "description": "", + "name": "full_name", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "
  • Your password can\u2019t be too similar to your other personal information.
  • Your password must contain at least 8 characters.
  • Your password can\u2019t be a commonly used password.
  • Your password can\u2019t be entirely numeric.
", + "name": "password1", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { - "deprecationReason": null, - "description": "VN", - "isDeprecated": false, - "name": "VN" + "defaultValue": null, + "description": "Enter the same password as before, for verification.", + "name": "password2", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { - "deprecationReason": null, - "description": "VU", - "isDeprecated": false, - "name": "VU" - }, + "defaultValue": null, + "description": null, + "name": "clientMutationId", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "RegisterUserInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "WS", + "description": null, "isDeprecated": false, - "name": "WS" + "name": "success", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "XB", + "description": null, "isDeprecated": false, - "name": "XB" - }, + "name": "clientMutationId", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "ConfirmEmailPayload", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ { - "deprecationReason": null, - "description": "XC", - "isDeprecated": false, - "name": "XC" + "defaultValue": null, + "description": null, + "name": "token", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { - "deprecationReason": null, - "description": "XE", - "isDeprecated": false, - "name": "XE" - }, + "defaultValue": null, + "description": null, + "name": "clientMutationId", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "ConfirmEmailInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "XM", + "description": null, "isDeprecated": false, - "name": "XM" + "name": "token", + "type": { + "kind": "OBJECT", + "name": "TokenType", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "XN", + "description": null, "isDeprecated": false, - "name": "XN" - }, + "name": "clientMutationId", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "TokenMutationPayload", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ { - "deprecationReason": null, - "description": "XS", - "isDeprecated": false, - "name": "XS" + "defaultValue": null, + "description": null, + "name": "refresh", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "XY", - "isDeprecated": false, - "name": "XY" - }, + "defaultValue": null, + "description": null, + "name": "clientMutationId", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "TokenMutationInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "YE", + "description": "", "isDeprecated": false, - "name": "YE" + "name": "old_password", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "YT", + "description": "
  • Your password can\u2019t be too similar to your other personal information.
  • Your password must contain at least 8 characters.
  • Your password can\u2019t be a commonly used password.
  • Your password can\u2019t be entirely numeric.
", "isDeprecated": false, - "name": "YT" + "name": "new_password1", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "ZA", + "description": "", "isDeprecated": false, - "name": "ZA" + "name": "new_password2", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "ZM", + "description": null, "isDeprecated": false, - "name": "ZM" + "name": "errors", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ErrorType", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "ZW", + "description": null, "isDeprecated": false, - "name": "ZW" + "name": "clientMutationId", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } } ], - "fields": null, "inputFields": null, - "interfaces": null, - "kind": "ENUM", - "name": "CommodityOriginCountry", + "interfaces": [], + "kind": "OBJECT", + "name": "ChangePasswordPayload", "possibleTypes": null }, { "description": null, "enumValues": null, - "fields": [ + "fields": null, + "inputFields": [ { - "args": [], - "deprecationReason": null, - "description": "Pagination data for this connection.", - "isDeprecated": false, - "name": "pageInfo", + "defaultValue": null, + "description": "", + "name": "old_password", "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "OBJECT", - "name": "PageInfo", + "kind": "SCALAR", + "name": "String", "ofType": null } } }, { - "args": [], - "deprecationReason": null, - "description": "Contains the nodes in this connection.", - "isDeprecated": false, - "name": "edges", + "defaultValue": null, + "description": "
  • Your password can\u2019t be too similar to your other personal information.
  • Your password must contain at least 8 characters.
  • Your password can\u2019t be a commonly used password.
  • Your password can\u2019t be entirely numeric.
", + "name": "new_password1", "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ParcelTemplateTypeEdge", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "", + "name": "new_password2", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null } } + }, + { + "defaultValue": null, + "description": null, + "name": "clientMutationId", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } } ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "ParcelTemplateTypeConnection", + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "ChangePasswordInput", "possibleTypes": null }, { - "description": "A Relay edge containing a `ParcelTemplateType` and its cursor.", + "description": null, "enumValues": null, "fields": [ { "args": [], "deprecationReason": null, - "description": "The item at the end of the edge", + "description": "", "isDeprecated": false, - "name": "node", + "name": "email", "type": { - "kind": "OBJECT", - "name": "ParcelTemplateType", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } } }, { "args": [], "deprecationReason": null, - "description": "A cursor for use in pagination", + "description": "", "isDeprecated": false, - "name": "cursor", + "name": "redirect_url", "type": { "kind": "NON_NULL", "name": null, @@ -10648,62 +18380,107 @@ "ofType": null } } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "errors", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ErrorType", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "clientMutationId", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } } ], "inputFields": null, "interfaces": [], "kind": "OBJECT", - "name": "ParcelTemplateTypeEdge", + "name": "RequestPasswordResetPayload", "possibleTypes": null }, { "description": null, "enumValues": null, - "fields": [ + "fields": null, + "inputFields": [ { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": "", - "isDeprecated": false, - "name": "created_at", + "name": "email", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "DateTime", + "name": "String", "ofType": null } } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": "", - "isDeprecated": false, - "name": "updated_at", + "name": "redirect_url", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "DateTime", + "name": "String", "ofType": null } } }, + { + "defaultValue": null, + "description": null, + "name": "clientMutationId", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "RequestPasswordResetInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { "args": [], "deprecationReason": null, - "description": "", + "description": "
  • Your password can\u2019t be too similar to your other personal information.
  • Your password must contain at least 8 characters.
  • Your password can\u2019t be a commonly used password.
  • Your password can\u2019t be entirely numeric.
", "isDeprecated": false, - "name": "created_by", + "name": "new_password1", "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "OBJECT", - "name": "UserType", + "kind": "SCALAR", + "name": "String", "ofType": null } } @@ -10711,15 +18488,15 @@ { "args": [], "deprecationReason": null, - "description": "The ID of the object.", + "description": "", "isDeprecated": false, - "name": "id", + "name": "new_password2", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "ID", + "name": "String", "ofType": null } } @@ -10729,7 +18506,7 @@ "deprecationReason": null, "description": "", "isDeprecated": false, - "name": "label", + "name": "uid", "type": { "kind": "NON_NULL", "name": null, @@ -10745,13 +18522,13 @@ "deprecationReason": null, "description": "", "isDeprecated": false, - "name": "is_default", + "name": "token", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Boolean", + "name": "String", "ofType": null } } @@ -10761,88 +18538,87 @@ "deprecationReason": null, "description": null, "isDeprecated": false, - "name": "parcel", + "name": "errors", "type": { - "kind": "NON_NULL", + "kind": "LIST", "name": null, "ofType": { "kind": "OBJECT", - "name": "ParcelType", + "name": "ErrorType", "ofType": null } } - } - ], - "inputFields": null, - "interfaces": [ + }, { - "kind": "INTERFACE", - "name": "CustomNode", - "ofType": null + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "clientMutationId", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } } ], + "inputFields": null, + "interfaces": [], "kind": "OBJECT", - "name": "ParcelTemplateType", + "name": "ConfirmPasswordResetPayload", "possibleTypes": null }, { "description": null, "enumValues": null, - "fields": [ + "fields": null, + "inputFields": [ { - "args": [], - "deprecationReason": null, - "description": "", - "isDeprecated": false, - "name": "created_at", + "defaultValue": null, + "description": "
  • Your password can\u2019t be too similar to your other personal information.
  • Your password must contain at least 8 characters.
  • Your password can\u2019t be a commonly used password.
  • Your password can\u2019t be entirely numeric.
", + "name": "new_password1", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "DateTime", + "name": "String", "ofType": null } } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": "", - "isDeprecated": false, - "name": "updated_at", + "name": "new_password2", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "DateTime", + "name": "String", "ofType": null } } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": "", - "isDeprecated": false, - "name": "created_by", + "name": "uid", "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "OBJECT", - "name": "UserType", + "kind": "SCALAR", + "name": "String", "ofType": null } } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": "", - "isDeprecated": false, - "name": "id", + "name": "token", "type": { "kind": "NON_NULL", "name": null, @@ -10854,71 +18630,101 @@ } }, { - "args": [], - "deprecationReason": null, - "description": "", - "isDeprecated": false, - "name": "weight", - "type": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - } - }, - { - "args": [], - "deprecationReason": null, - "description": "", - "isDeprecated": false, - "name": "width", + "defaultValue": null, + "description": null, + "name": "clientMutationId", "type": { "kind": "SCALAR", - "name": "Float", + "name": "String", "ofType": null } - }, + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "ConfirmPasswordResetInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "height", + "name": "id", "type": { "kind": "SCALAR", - "name": "Float", + "name": "String", "ofType": null } }, { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "length", + "name": "clientMutationId", "type": { "kind": "SCALAR", - "name": "Float", + "name": "String", "ofType": null } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "DiscardCommodityPayload", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ + { + "defaultValue": null, + "description": null, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { - "args": [], - "deprecationReason": null, - "description": "", - "isDeprecated": false, - "name": "packaging_type", + "defaultValue": null, + "description": null, + "name": "clientMutationId", "type": { "kind": "SCALAR", "name": "String", "ofType": null } - }, + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "DiscardCommodityInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "package_preset", + "name": "id", "type": { "kind": "SCALAR", "name": "String", @@ -10928,369 +18734,267 @@ { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "description", + "name": "aramexsettings", "type": { - "kind": "SCALAR", - "name": "String", + "kind": "OBJECT", + "name": "AramexSettings", "ofType": null } }, { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "content", + "name": "australiapostsettings", "type": { - "kind": "SCALAR", - "name": "String", + "kind": "OBJECT", + "name": "AustraliaPostSettings", "ofType": null } }, { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "is_document", + "name": "canadapostsettings", "type": { - "kind": "SCALAR", - "name": "Boolean", + "kind": "OBJECT", + "name": "CanadaPostSettings", "ofType": null } }, { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "weight_unit", + "name": "canparsettings", "type": { - "kind": "ENUM", - "name": "ParcelWeightUnit", + "kind": "OBJECT", + "name": "CanparSettings", "ofType": null } }, { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "dimension_unit", + "name": "dhlexpresssettings", "type": { - "kind": "ENUM", - "name": "ParcelDimensionUnit", + "kind": "OBJECT", + "name": "DHLExpressSettings", "ofType": null } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "ParcelType", - "possibleTypes": null - }, - { - "description": "An enumeration.", - "enumValues": [ - { - "deprecationReason": null, - "description": "KG", - "isDeprecated": false, - "name": "KG" - }, - { - "deprecationReason": null, - "description": "LB", - "isDeprecated": false, - "name": "LB" - } - ], - "fields": null, - "inputFields": null, - "interfaces": null, - "kind": "ENUM", - "name": "ParcelWeightUnit", - "possibleTypes": null - }, - { - "description": "An enumeration.", - "enumValues": [ - { - "deprecationReason": null, - "description": "CM", - "isDeprecated": false, - "name": "CM" }, - { - "deprecationReason": null, - "description": "IN", - "isDeprecated": false, - "name": "IN" - } - ], - "fields": null, - "inputFields": null, - "interfaces": null, - "kind": "ENUM", - "name": "ParcelDimensionUnit", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ { "args": [], "deprecationReason": null, - "description": "The ID of the object.", + "description": null, "isDeprecated": false, - "name": "id", + "name": "dhlpolandsettings", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } + "kind": "OBJECT", + "name": "DHLPolandSettings", + "ofType": null } }, { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "user", + "name": "dhluniversalsettings", "type": { "kind": "OBJECT", - "name": "UserType", + "name": "DHLUniversalSettings", "ofType": null } }, { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "username_persistent", + "name": "dicomsettings", "type": { - "kind": "SCALAR", - "name": "String", + "kind": "OBJECT", + "name": "DicomSettings", "ofType": null } }, { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "requested_at", + "name": "eshippersettings", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } + "kind": "OBJECT", + "name": "EShipperSettings", + "ofType": null } }, { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "response_ms", + "name": "fedexsettings", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } + "kind": "OBJECT", + "name": "FedexSettings", + "ofType": null } }, { "args": [], "deprecationReason": null, - "description": "url path", + "description": null, "isDeprecated": false, - "name": "path", + "name": "freightcomsettings", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "OBJECT", + "name": "FreightcomSettings", + "ofType": null } }, { "args": [], "deprecationReason": null, - "description": "method called by this endpoint", + "description": null, "isDeprecated": false, - "name": "view", + "name": "purolatorsettings", "type": { - "kind": "SCALAR", - "name": "String", + "kind": "OBJECT", + "name": "PurolatorSettings", "ofType": null } }, { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "view_method", + "name": "royalmailsettings", "type": { - "kind": "SCALAR", - "name": "String", + "kind": "OBJECT", + "name": "RoyalMailSettings", "ofType": null } }, { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "remote_addr", + "name": "sendlesettings", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "OBJECT", + "name": "SendleSettings", + "ofType": null } }, { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "host", + "name": "sfexpresssettings", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "OBJECT", + "name": "SFExpressSettings", + "ofType": null } }, { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "method", + "name": "tntsettings", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "OBJECT", + "name": "TNTSettings", + "ofType": null } }, { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "query_params", + "name": "upssettings", "type": { - "kind": "SCALAR", - "name": "String", + "kind": "OBJECT", + "name": "UPSSettings", "ofType": null } }, { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "data", + "name": "uspssettings", "type": { - "kind": "SCALAR", - "name": "String", + "kind": "OBJECT", + "name": "USPSSettings", "ofType": null } }, { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "response", + "name": "uspsinternationalsettings", "type": { - "kind": "SCALAR", - "name": "String", + "kind": "OBJECT", + "name": "USPSInternationalSettings", "ofType": null } }, { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "errors", + "name": "yanwensettings", "type": { - "kind": "SCALAR", - "name": "String", + "kind": "OBJECT", + "name": "YanwenSettings", "ofType": null } }, { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "status_code", + "name": "yunexpresssettings", "type": { - "kind": "SCALAR", - "name": "Int", + "kind": "OBJECT", + "name": "YunExpressSettings", "ofType": null } - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "CustomNode", - "ofType": null - } - ], - "kind": "OBJECT", - "name": "LogType", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ + }, { "args": [], "deprecationReason": null, - "description": "Pagination data for this connection.", + "description": "May contain more than one error for same field.", "isDeprecated": false, - "name": "pageInfo", + "name": "errors", "type": { - "kind": "NON_NULL", + "kind": "LIST", "name": null, "ofType": { "kind": "OBJECT", - "name": "PageInfo", + "name": "ErrorType", "ofType": null } } @@ -11298,345 +19002,272 @@ { "args": [], "deprecationReason": null, - "description": "Contains the nodes in this connection.", + "description": null, "isDeprecated": false, - "name": "edges", + "name": "clientMutationId", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "LogTypeEdge", - "ofType": null - } - } + "kind": "SCALAR", + "name": "String", + "ofType": null } } ], "inputFields": null, "interfaces": [], "kind": "OBJECT", - "name": "LogTypeConnection", + "name": "CreateConnectionPayload", "possibleTypes": null }, { - "description": "A Relay edge containing a `LogType` and its cursor.", + "description": null, "enumValues": null, - "fields": [ + "fields": null, + "inputFields": [ { - "args": [], - "deprecationReason": null, - "description": "The item at the end of the edge", - "isDeprecated": false, - "name": "node", + "defaultValue": null, + "description": null, + "name": "id", "type": { - "kind": "OBJECT", - "name": "LogType", + "kind": "SCALAR", + "name": "String", "ofType": null } }, { - "args": [], - "deprecationReason": null, - "description": "A cursor for use in pagination", - "isDeprecated": false, - "name": "cursor", + "defaultValue": null, + "description": null, + "name": "aramexsettings", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "INPUT_OBJECT", + "name": "AramexSettingsInput", + "ofType": null } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "LogTypeEdge", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ + }, { - "args": [], - "deprecationReason": null, - "description": "Pagination data for this connection.", - "isDeprecated": false, - "name": "pageInfo", + "defaultValue": null, + "description": null, + "name": "australiapostsettings", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } + "kind": "INPUT_OBJECT", + "name": "AustraliaPostSettingsInput", + "ofType": null } }, { - "args": [], - "deprecationReason": null, - "description": "Contains the nodes in this connection.", - "isDeprecated": false, - "name": "edges", + "defaultValue": null, + "description": null, + "name": "canadapostsettings", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShipmentTypeEdge", - "ofType": null - } - } + "kind": "INPUT_OBJECT", + "name": "CanadaPostSettingsInput", + "ofType": null } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "ShipmentTypeConnection", - "possibleTypes": null - }, - { - "description": "A Relay edge containing a `ShipmentType` and its cursor.", - "enumValues": null, - "fields": [ + }, + { + "defaultValue": null, + "description": null, + "name": "canparsettings", + "type": { + "kind": "INPUT_OBJECT", + "name": "CanparSettingsInput", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "dhlexpresssettings", + "type": { + "kind": "INPUT_OBJECT", + "name": "DHLExpressSettingsInput", + "ofType": null + } + }, { - "args": [], - "deprecationReason": null, - "description": "The item at the end of the edge", - "isDeprecated": false, - "name": "node", + "defaultValue": null, + "description": null, + "name": "dhlpolandsettings", "type": { - "kind": "OBJECT", - "name": "ShipmentType", + "kind": "INPUT_OBJECT", + "name": "DHLPolandSettingsInput", "ofType": null } }, { - "args": [], - "deprecationReason": null, - "description": "A cursor for use in pagination", - "isDeprecated": false, - "name": "cursor", + "defaultValue": null, + "description": null, + "name": "dhluniversalsettings", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "INPUT_OBJECT", + "name": "DHLUniversalSettingsInput", + "ofType": null } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "ShipmentTypeEdge", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ + }, { - "args": [], - "deprecationReason": null, - "description": "", - "isDeprecated": false, - "name": "created_at", + "defaultValue": null, + "description": null, + "name": "dicomsettings", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } + "kind": "INPUT_OBJECT", + "name": "DicomSettingsInput", + "ofType": null } }, { - "args": [], - "deprecationReason": null, - "description": "", - "isDeprecated": false, - "name": "updated_at", + "defaultValue": null, + "description": null, + "name": "eshippersettings", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } + "kind": "INPUT_OBJECT", + "name": "EShipperSettingsInput", + "ofType": null } }, { - "args": [], - "deprecationReason": null, - "description": "", - "isDeprecated": false, - "name": "created_by", + "defaultValue": null, + "description": null, + "name": "fedexsettings", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "UserType", - "ofType": null - } + "kind": "INPUT_OBJECT", + "name": "FedexSettingsInput", + "ofType": null } }, { - "args": [], - "deprecationReason": null, - "description": "The ID of the object.", - "isDeprecated": false, - "name": "id", + "defaultValue": null, + "description": null, + "name": "freightcomsettings", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } + "kind": "INPUT_OBJECT", + "name": "FreightcomSettingsInput", + "ofType": null } }, { - "args": [], - "deprecationReason": null, - "description": "", - "isDeprecated": false, - "name": "status", + "defaultValue": null, + "description": null, + "name": "purolatorsettings", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "ShipmentStatus", - "ofType": null - } + "kind": "INPUT_OBJECT", + "name": "PurolatorSettingsInput", + "ofType": null } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "recipient", + "name": "royalmailsettings", "type": { - "kind": "OBJECT", - "name": "AddressType", + "kind": "INPUT_OBJECT", + "name": "RoyalMailSettingsInput", "ofType": null } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "shipper", + "name": "sendlesettings", "type": { - "kind": "OBJECT", - "name": "AddressType", + "kind": "INPUT_OBJECT", + "name": "SendleSettingsInput", "ofType": null } }, { - "args": [], - "deprecationReason": null, - "description": "", - "isDeprecated": false, - "name": "label_type", + "defaultValue": null, + "description": null, + "name": "sfexpresssettings", "type": { - "kind": "SCALAR", - "name": "String", + "kind": "INPUT_OBJECT", + "name": "SFExpressSettingsInput", "ofType": null } }, { - "args": [], - "deprecationReason": null, - "description": "", - "isDeprecated": false, - "name": "tracking_number", + "defaultValue": null, + "description": null, + "name": "tntsettings", "type": { - "kind": "SCALAR", - "name": "String", + "kind": "INPUT_OBJECT", + "name": "TNTSettingsInput", "ofType": null } }, { - "args": [], - "deprecationReason": null, - "description": "", - "isDeprecated": false, - "name": "shipment_identifier", + "defaultValue": null, + "description": null, + "name": "upssettings", "type": { - "kind": "SCALAR", - "name": "String", + "kind": "INPUT_OBJECT", + "name": "UPSSettingsInput", "ofType": null } }, { - "args": [], - "deprecationReason": null, - "description": "", - "isDeprecated": false, - "name": "label", + "defaultValue": null, + "description": null, + "name": "uspssettings", "type": { - "kind": "SCALAR", - "name": "String", + "kind": "INPUT_OBJECT", + "name": "USPSSettingsInput", "ofType": null } }, { - "args": [], - "deprecationReason": null, - "description": "", - "isDeprecated": false, - "name": "tracking_url", + "defaultValue": null, + "description": null, + "name": "uspsinternationalsettings", "type": { - "kind": "SCALAR", - "name": "String", + "kind": "INPUT_OBJECT", + "name": "USPSInternationalSettingsInput", "ofType": null } }, { - "args": [], - "deprecationReason": null, - "description": "", - "isDeprecated": false, - "name": "test_mode", + "defaultValue": null, + "description": null, + "name": "yanwensettings", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "kind": "INPUT_OBJECT", + "name": "YanwenSettingsInput", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "yunexpresssettings", + "type": { + "kind": "INPUT_OBJECT", + "name": "YunExpressSettingsInput", + "ofType": null } }, { - "args": [], - "deprecationReason": null, - "description": "", - "isDeprecated": false, - "name": "reference", + "defaultValue": null, + "description": null, + "name": "clientMutationId", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "CreateConnectionInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ + { + "defaultValue": null, + "description": null, + "name": "id", "type": { "kind": "SCALAR", "name": "String", @@ -11644,61 +19275,59 @@ } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "customs", + "name": "account_country_code", "type": { - "kind": "OBJECT", - "name": "CustomsType", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "selected_rate", + "name": "carrier_id", "type": { - "kind": "OBJECT", - "name": "RateType", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "payment", + "name": "test", "type": { - "kind": "OBJECT", - "name": "PaymentType", + "kind": "SCALAR", + "name": "Boolean", "ofType": null } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "options", + "name": "active", "type": { "kind": "SCALAR", - "name": "GenericScalar", + "name": "Boolean", "ofType": null } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "services", + "name": "username", "type": { - "kind": "LIST", + "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", @@ -11708,174 +19337,150 @@ } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "messages", + "name": "password", "type": { - "kind": "LIST", + "kind": "NON_NULL", "name": null, "ofType": { - "kind": "OBJECT", - "name": "MessageType", + "kind": "SCALAR", + "name": "String", "ofType": null } } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "meta", + "name": "account_pin", "type": { - "kind": "SCALAR", - "name": "GenericScalar", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "rates", + "name": "account_entity", "type": { - "kind": "LIST", + "kind": "NON_NULL", "name": null, "ofType": { - "kind": "OBJECT", - "name": "RateType", + "kind": "SCALAR", + "name": "String", "ofType": null } } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "parcels", + "name": "account_number", "type": { - "kind": "LIST", + "kind": "NON_NULL", "name": null, "ofType": { - "kind": "OBJECT", - "name": "ParcelType", + "kind": "SCALAR", + "name": "String", "ofType": null } } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "AramexSettingsInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ + { + "defaultValue": null, + "description": null, + "name": "id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "args": [ - { - "defaultValue": null, - "description": null, - "name": "offset", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - { - "defaultValue": null, - "description": null, - "name": "before", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - { - "defaultValue": null, - "description": null, - "name": "after", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - { - "defaultValue": null, - "description": null, - "name": "first", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - { - "defaultValue": null, - "description": null, - "name": "last", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - { - "defaultValue": null, - "description": null, - "name": "delivered", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } - ], - "deprecationReason": null, - "description": "", - "isDeprecated": false, - "name": "tracker", + "defaultValue": null, + "description": null, + "name": "carrier_id", "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "OBJECT", - "name": "TrackerTypeConnection", + "kind": "SCALAR", + "name": "String", "ofType": null } } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "carrier_id", + "name": "test", "type": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "carrier_name", + "name": "active", "type": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, + "description": null, + "name": "api_key", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": null, + "name": "password", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "carrier_ids", + "name": "account_number", "type": { - "kind": "LIST", + "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", @@ -11885,75 +19490,20 @@ } } ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "CustomNode", - "ofType": null - } - ], - "kind": "OBJECT", - "name": "ShipmentType", - "possibleTypes": null - }, - { - "description": "An enumeration.", - "enumValues": [ - { - "deprecationReason": null, - "description": "created", - "isDeprecated": false, - "name": "CREATED" - }, - { - "deprecationReason": null, - "description": "purchased", - "isDeprecated": false, - "name": "PURCHASED" - }, - { - "deprecationReason": null, - "description": "cancelled", - "isDeprecated": false, - "name": "CANCELLED" - }, - { - "deprecationReason": null, - "description": "shipped", - "isDeprecated": false, - "name": "SHIPPED" - }, - { - "deprecationReason": null, - "description": "in-transit", - "isDeprecated": false, - "name": "IN_TRANSIT" - }, - { - "deprecationReason": null, - "description": "delivered", - "isDeprecated": false, - "name": "DELIVERED" - } - ], - "fields": null, - "inputFields": null, "interfaces": null, - "kind": "ENUM", - "name": "ShipmentStatus", + "kind": "INPUT_OBJECT", + "name": "AustraliaPostSettingsInput", "possibleTypes": null }, { "description": null, "enumValues": null, - "fields": [ + "fields": null, + "inputFields": [ { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "carrier_name", + "name": "id", "type": { "kind": "SCALAR", "name": "String", @@ -11961,158 +19511,185 @@ } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, "name": "carrier_id", "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "currency", + "name": "test", "type": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "transit_days", + "name": "active", "type": { "kind": "SCALAR", - "name": "Int", + "name": "Boolean", "ofType": null } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "service", + "name": "username", "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "discount", + "name": "password", "type": { - "kind": "SCALAR", - "name": "Float", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "base_charge", + "name": "customer_number", "type": { "kind": "SCALAR", - "name": "Float", + "name": "String", "ofType": null } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "total_charge", + "name": "contract_id", "type": { "kind": "SCALAR", - "name": "Float", + "name": "String", "ofType": null } - }, + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "CanadaPostSettingsInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "duties_and_taxes", + "name": "id", "type": { "kind": "SCALAR", - "name": "Float", + "name": "String", "ofType": null } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "extra_charges", + "name": "carrier_id", "type": { - "kind": "LIST", + "kind": "NON_NULL", "name": null, "ofType": { - "kind": "OBJECT", - "name": "ChargeType", + "kind": "SCALAR", + "name": "String", "ofType": null } } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "meta", + "name": "test", "type": { "kind": "SCALAR", - "name": "GenericScalar", + "name": "Boolean", "ofType": null } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "id", + "name": "active", "type": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null } + }, + { + "defaultValue": null, + "description": null, + "name": "username", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": null, + "name": "password", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } } ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "RateType", + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "CanparSettingsInput", "possibleTypes": null }, { "description": null, "enumValues": null, - "fields": [ + "fields": null, + "inputFields": [ { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "name", + "name": "id", "type": { "kind": "SCALAR", "name": "String", @@ -12120,82 +19697,85 @@ } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "amount", + "name": "account_country_code", "type": { - "kind": "SCALAR", - "name": "Float", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": null, + "name": "carrier_id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "currency", + "name": "test", "type": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "ChargeType", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ + }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "paid_by", + "name": "active", "type": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "currency", + "name": "site_id", "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "account_number", + "name": "password", "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "id", + "name": "account_number", "type": { "kind": "SCALAR", "name": "String", @@ -12203,22 +19783,20 @@ } } ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "PaymentType", + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "DHLExpressSettingsInput", "possibleTypes": null }, { "description": null, "enumValues": null, - "fields": [ + "fields": null, + "inputFields": [ { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "carrier_name", + "name": "id", "type": { "kind": "SCALAR", "name": "String", @@ -12226,372 +19804,368 @@ } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "carrier_id", + "name": "services", "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "ServiceLevelModelSerializerInput", + "ofType": null + } } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "message", + "name": "carrier_id", "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "code", + "name": "test", "type": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "details", + "name": "active", "type": { "kind": "SCALAR", - "name": "GenericScalar", + "name": "Boolean", "ofType": null } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "MessageType", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ + }, { - "args": [], - "deprecationReason": null, - "description": "Pagination data for this connection.", - "isDeprecated": false, - "name": "pageInfo", + "defaultValue": null, + "description": null, + "name": "username", "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "OBJECT", - "name": "PageInfo", + "kind": "SCALAR", + "name": "String", "ofType": null } } }, { - "args": [], - "deprecationReason": null, - "description": "Contains the nodes in this connection.", - "isDeprecated": false, - "name": "edges", + "defaultValue": null, + "description": null, + "name": "password", "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TrackerTypeEdge", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null } } + }, + { + "defaultValue": null, + "description": null, + "name": "account_number", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } } ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "TrackerTypeConnection", + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "DHLPolandSettingsInput", "possibleTypes": null }, { - "description": "A Relay edge containing a `TrackerType` and its cursor.", + "description": null, "enumValues": null, - "fields": [ + "fields": null, + "inputFields": [ { - "args": [], - "deprecationReason": null, - "description": "The item at the end of the edge", - "isDeprecated": false, - "name": "node", + "defaultValue": null, + "description": null, + "name": "id", "type": { - "kind": "OBJECT", - "name": "TrackerType", + "kind": "SCALAR", + "name": "String", "ofType": null } }, { - "args": [], - "deprecationReason": null, - "description": "A cursor for use in pagination", - "isDeprecated": false, - "name": "cursor", + "defaultValue": null, + "description": null, + "name": "dimension_unit", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "TrackerTypeEdge", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ + }, + { + "defaultValue": null, + "description": null, + "name": "weight_unit", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, { - "args": [], - "deprecationReason": null, - "description": "", - "isDeprecated": false, - "name": "created_at", + "defaultValue": null, + "description": null, + "name": "currency", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "service_name", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "DateTime", + "name": "String", "ofType": null } } }, { - "args": [], - "deprecationReason": null, - "description": "", - "isDeprecated": false, - "name": "updated_at", + "defaultValue": null, + "description": null, + "name": "service_code", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "DateTime", + "name": "String", "ofType": null } } }, { - "args": [], - "deprecationReason": null, - "description": "", - "isDeprecated": false, - "name": "created_by", + "defaultValue": null, + "description": null, + "name": "description", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "UserType", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null } }, { - "args": [], - "deprecationReason": null, - "description": "The ID of the object.", - "isDeprecated": false, - "name": "id", + "defaultValue": null, + "description": null, + "name": "active", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } + "kind": "SCALAR", + "name": "Boolean", + "ofType": null } }, { - "args": [], - "deprecationReason": null, - "description": "", - "isDeprecated": false, - "name": "status", + "defaultValue": null, + "description": null, + "name": "cost", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "TrackingStatus", - "ofType": null - } + "kind": "SCALAR", + "name": "Float", + "ofType": null } }, { - "args": [], - "deprecationReason": null, - "description": "", - "isDeprecated": false, - "name": "tracking_number", + "defaultValue": null, + "description": null, + "name": "estimated_transit_days", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "Int", + "ofType": null } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "events", + "name": "max_weight", "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TrackingEventType", - "ofType": null - } + "kind": "SCALAR", + "name": "Float", + "ofType": null } }, { - "args": [], - "deprecationReason": null, - "description": "", - "isDeprecated": false, - "name": "delivered", + "defaultValue": null, + "description": null, + "name": "max_width", "type": { "kind": "SCALAR", - "name": "Boolean", + "name": "Float", "ofType": null } }, { - "args": [], - "deprecationReason": null, - "description": "", - "isDeprecated": false, - "name": "test_mode", + "defaultValue": null, + "description": null, + "name": "max_height", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "kind": "SCALAR", + "name": "Float", + "ofType": null } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "tracking_carrier", + "name": "max_length", "type": { - "kind": "OBJECT", - "name": "SystemConnectionType", + "kind": "SCALAR", + "name": "Float", "ofType": null } }, { - "args": [], - "deprecationReason": null, - "description": "", - "isDeprecated": false, - "name": "shipment", + "defaultValue": null, + "description": null, + "name": "domicile", "type": { - "kind": "OBJECT", - "name": "ShipmentType", + "kind": "SCALAR", + "name": "Boolean", "ofType": null } - } - ], - "inputFields": null, - "interfaces": [ + }, { - "kind": "INTERFACE", - "name": "CustomNode", - "ofType": null + "defaultValue": null, + "description": null, + "name": "international", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } } ], - "kind": "OBJECT", - "name": "TrackerType", + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "ServiceLevelModelSerializerInput", "possibleTypes": null }, { - "description": "An enumeration.", - "enumValues": [ + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ { - "deprecationReason": null, - "description": "pending", - "isDeprecated": false, - "name": "PENDING" + "defaultValue": null, + "description": null, + "name": "id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "in-transit", - "isDeprecated": false, - "name": "IN_TRANSIT" + "defaultValue": null, + "description": null, + "name": "carrier_id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { - "deprecationReason": null, - "description": "incident", - "isDeprecated": false, - "name": "INCIDENT" + "defaultValue": null, + "description": null, + "name": "test", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "delivered", - "isDeprecated": false, - "name": "DELIVERED" + "defaultValue": null, + "description": null, + "name": "active", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "consumer_key", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": null, + "name": "consumer_secret", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } } ], - "fields": null, - "inputFields": null, "interfaces": null, - "kind": "ENUM", - "name": "TrackingStatus", + "kind": "INPUT_OBJECT", + "name": "DHLUniversalSettingsInput", "possibleTypes": null }, { "description": null, "enumValues": null, - "fields": [ + "fields": null, + "inputFields": [ { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "description", + "name": "id", "type": { "kind": "SCALAR", "name": "String", @@ -12599,129 +20173,106 @@ } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "location", + "name": "carrier_id", "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "code", + "name": "test", "type": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "date", + "name": "active", "type": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "time", + "name": "username", "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "TrackingEventType", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ + }, { - "args": [], - "deprecationReason": null, - "description": "Pagination data for this connection.", - "isDeprecated": false, - "name": "pageInfo", + "defaultValue": null, + "description": null, + "name": "password", "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "OBJECT", - "name": "PageInfo", + "kind": "SCALAR", + "name": "String", "ofType": null } } }, { - "args": [], - "deprecationReason": null, - "description": "Contains the nodes in this connection.", - "isDeprecated": false, - "name": "edges", + "defaultValue": null, + "description": null, + "name": "billing_account", "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "WebhookTypeEdge", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null } } } ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "WebhookTypeConnection", + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "DicomSettingsInput", "possibleTypes": null }, { - "description": "A Relay edge containing a `WebhookType` and its cursor.", + "description": null, "enumValues": null, - "fields": [ + "fields": null, + "inputFields": [ { - "args": [], - "deprecationReason": null, - "description": "The item at the end of the edge", - "isDeprecated": false, - "name": "node", + "defaultValue": null, + "description": null, + "name": "id", "type": { - "kind": "OBJECT", - "name": "WebhookType", + "kind": "SCALAR", + "name": "String", "ofType": null } }, { - "args": [], - "deprecationReason": null, - "description": "A cursor for use in pagination", - "isDeprecated": false, - "name": "cursor", + "defaultValue": null, + "description": null, + "name": "carrier_id", "type": { "kind": "NON_NULL", "name": null, @@ -12731,112 +20282,142 @@ "ofType": null } } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "WebhookTypeEdge", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ + }, { - "args": [], - "deprecationReason": null, - "description": "", - "isDeprecated": false, - "name": "created_at", + "defaultValue": null, + "description": null, + "name": "test", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "active", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "username", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "DateTime", + "name": "String", "ofType": null } } }, { - "args": [], - "deprecationReason": null, - "description": "", - "isDeprecated": false, - "name": "updated_at", + "defaultValue": null, + "description": null, + "name": "password", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "DateTime", + "name": "String", "ofType": null } } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "EShipperSettingsInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ + { + "defaultValue": null, + "description": null, + "name": "id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "args": [], - "deprecationReason": null, - "description": "", - "isDeprecated": false, - "name": "created_by", + "defaultValue": null, + "description": null, + "name": "account_country_code", "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "OBJECT", - "name": "UserType", + "kind": "SCALAR", + "name": "String", "ofType": null } } }, { - "args": [], - "deprecationReason": null, - "description": "The ID of the object.", - "isDeprecated": false, - "name": "id", + "defaultValue": null, + "description": null, + "name": "carrier_id", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "ID", + "name": "String", "ofType": null } } }, { - "args": [], - "deprecationReason": null, - "description": "", - "isDeprecated": false, - "name": "enabled_events", + "defaultValue": null, + "description": null, + "name": "test", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "active", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "password", "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "kind": "SCALAR", + "name": "String", + "ofType": null } } }, { - "args": [], - "deprecationReason": null, - "description": "", - "isDeprecated": false, - "name": "url", + "defaultValue": null, + "description": null, + "name": "meter_number", "type": { "kind": "NON_NULL", "name": null, @@ -12848,39 +20429,44 @@ } }, { - "args": [], - "deprecationReason": null, - "description": "", - "isDeprecated": false, - "name": "test_mode", + "defaultValue": null, + "description": null, + "name": "account_number", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Boolean", + "name": "String", "ofType": null } } }, { - "args": [], - "deprecationReason": null, - "description": "", - "isDeprecated": false, - "name": "disabled", + "defaultValue": null, + "description": null, + "name": "user_key", "type": { "kind": "SCALAR", - "name": "Boolean", + "name": "String", "ofType": null } - }, + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "FedexSettingsInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ { - "args": [], - "deprecationReason": null, - "description": "", - "isDeprecated": false, - "name": "description", + "defaultValue": null, + "description": null, + "name": "id", "type": { "kind": "SCALAR", "name": "String", @@ -12888,67 +20474,43 @@ } }, { - "args": [], - "deprecationReason": null, - "description": "", - "isDeprecated": false, - "name": "last_event_at", + "defaultValue": null, + "description": null, + "name": "carrier_id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": null, + "name": "test", "type": { "kind": "SCALAR", - "name": "DateTime", + "name": "Boolean", "ofType": null } - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "CustomNode", - "ofType": null - } - ], - "kind": "OBJECT", - "name": "WebhookType", - "possibleTypes": null - }, - { - "description": "Debugging information for the current query.", - "enumValues": null, - "fields": [ + }, { - "args": [], - "deprecationReason": null, - "description": "Executed SQL queries for this API query.", - "isDeprecated": false, - "name": "sql", + "defaultValue": null, + "description": null, + "name": "active", "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "DjangoDebugSQL", - "ofType": null - } + "kind": "SCALAR", + "name": "Boolean", + "ofType": null } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "DjangoDebug", - "possibleTypes": null - }, - { - "description": "Represents a single database query made to a Django managed DB.", - "enumValues": null, - "fields": [ + }, { - "args": [], - "deprecationReason": null, - "description": "The type of database being used (e.g. postrgesql, mysql, sqlite).", - "isDeprecated": false, - "name": "vendor", + "defaultValue": null, + "description": null, + "name": "username", "type": { "kind": "NON_NULL", "name": null, @@ -12960,11 +20522,9 @@ } }, { - "args": [], - "deprecationReason": null, - "description": "The Django database alias (e.g. 'default').", - "isDeprecated": false, - "name": "alias", + "defaultValue": null, + "description": null, + "name": "password", "type": { "kind": "NON_NULL", "name": null, @@ -12974,13 +20534,22 @@ "ofType": null } } - }, + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "FreightcomSettingsInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ { - "args": [], - "deprecationReason": null, - "description": "The actual SQL sent to this database.", - "isDeprecated": false, - "name": "sql", + "defaultValue": null, + "description": null, + "name": "id", "type": { "kind": "SCALAR", "name": "String", @@ -12988,43 +20557,43 @@ } }, { - "args": [], - "deprecationReason": null, - "description": "Duration of this database query in seconds.", - "isDeprecated": false, - "name": "duration", + "defaultValue": null, + "description": null, + "name": "carrier_id", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Float", + "name": "String", "ofType": null } } }, { - "args": [], - "deprecationReason": null, - "description": "The raw SQL of this query, without params.", - "isDeprecated": false, - "name": "raw_sql", + "defaultValue": null, + "description": null, + "name": "test", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "Boolean", + "ofType": null } }, { - "args": [], - "deprecationReason": null, - "description": "JSON encoded database query parameters.", - "isDeprecated": false, - "name": "params", + "defaultValue": null, + "description": null, + "name": "active", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "username", "type": { "kind": "NON_NULL", "name": null, @@ -13036,550 +20605,418 @@ } }, { - "args": [], - "deprecationReason": null, - "description": "Start time of this database query.", - "isDeprecated": false, - "name": "start_time", + "defaultValue": null, + "description": null, + "name": "password", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Float", + "name": "String", "ofType": null } } }, { - "args": [], - "deprecationReason": null, - "description": "Stop time of this database query.", - "isDeprecated": false, - "name": "stop_time", + "defaultValue": null, + "description": null, + "name": "account_number", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Float", + "name": "String", "ofType": null } } }, { - "args": [], - "deprecationReason": null, - "description": "Whether this database query took more than 10 seconds.", - "isDeprecated": false, - "name": "is_slow", + "defaultValue": null, + "description": null, + "name": "user_token", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "PurolatorSettingsInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ + { + "defaultValue": null, + "description": null, + "name": "id", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null } }, { - "args": [], - "deprecationReason": null, - "description": "Whether this database query was a SELECT.", - "isDeprecated": false, - "name": "is_select", + "defaultValue": null, + "description": null, + "name": "carrier_id", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Boolean", + "name": "String", "ofType": null } } }, { - "args": [], - "deprecationReason": null, - "description": "Postgres transaction ID if available.", - "isDeprecated": false, - "name": "trans_id", + "defaultValue": null, + "description": null, + "name": "test", "type": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null } }, { - "args": [], - "deprecationReason": null, - "description": "Postgres transaction status if available.", - "isDeprecated": false, - "name": "trans_status", + "defaultValue": null, + "description": null, + "name": "active", "type": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null } }, { - "args": [], - "deprecationReason": null, - "description": "Postgres isolation level if available.", - "isDeprecated": false, - "name": "iso_level", + "defaultValue": null, + "description": null, + "name": "client_id", "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } } }, { - "args": [], - "deprecationReason": null, - "description": "Postgres connection encoding if available.", - "isDeprecated": false, - "name": "encoding", + "defaultValue": null, + "description": null, + "name": "client_secret", "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } } } ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "DjangoDebugSQL", + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "RoyalMailSettingsInput", "possibleTypes": null }, { "description": null, "enumValues": null, - "fields": [ + "fields": null, + "inputFields": [ { - "args": [ - { - "defaultValue": null, - "description": null, - "name": "input", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "UpdateUserInput", - "ofType": null - } - } - } - ], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "update_user", + "name": "id", "type": { - "kind": "OBJECT", - "name": "UpdateUserPayload", + "kind": "SCALAR", + "name": "String", "ofType": null } }, { - "args": [ - { - "defaultValue": null, - "description": null, - "name": "input", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "RegisterUserInput", - "ofType": null - } - } + "defaultValue": null, + "description": null, + "name": "carrier_id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null } - ], - "deprecationReason": null, + } + }, + { + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "register_user", + "name": "test", "type": { - "kind": "OBJECT", - "name": "RegisterUserPayload", + "kind": "SCALAR", + "name": "Boolean", "ofType": null } }, { - "args": [ - { - "defaultValue": null, - "description": null, - "name": "input", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ConfirmEmailInput", - "ofType": null - } - } - } - ], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "confirm_email", + "name": "active", "type": { - "kind": "OBJECT", - "name": "ConfirmEmailPayload", + "kind": "SCALAR", + "name": "Boolean", "ofType": null } }, { - "args": [ - { - "defaultValue": null, - "description": null, - "name": "input", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "TokenMutationInput", - "ofType": null - } - } - } - ], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "mutate_token", + "name": "sendle_id", "type": { - "kind": "OBJECT", - "name": "TokenMutationPayload", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } } }, { - "args": [ - { - "defaultValue": null, - "description": null, - "name": "input", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ChangePasswordInput", - "ofType": null - } - } + "defaultValue": null, + "description": null, + "name": "api_key", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null } - ], - "deprecationReason": null, + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "SendleSettingsInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ + { + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "change_password", + "name": "id", "type": { - "kind": "OBJECT", - "name": "ChangePasswordPayload", + "kind": "SCALAR", + "name": "String", "ofType": null } }, { - "args": [ - { - "defaultValue": null, - "description": null, - "name": "input", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "RequestPasswordResetInput", - "ofType": null - } - } - } - ], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "request_password_reset", + "name": "carrier_id", "type": { - "kind": "OBJECT", - "name": "RequestPasswordResetPayload", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } } }, { - "args": [ - { - "defaultValue": null, - "description": null, - "name": "input", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ConfirmPasswordResetInput", - "ofType": null - } - } - } - ], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "confirm_password_reset", + "name": "test", "type": { - "kind": "OBJECT", - "name": "ConfirmPasswordResetPayload", + "kind": "SCALAR", + "name": "Boolean", "ofType": null } }, { - "args": [ - { - "defaultValue": null, - "description": null, - "name": "input", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "CreateTemplateInput", - "ofType": null - } - } - } - ], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "create_template", + "name": "active", "type": { - "kind": "OBJECT", - "name": "CreateTemplatePayload", + "kind": "SCALAR", + "name": "Boolean", "ofType": null } }, { - "args": [ - { - "defaultValue": null, - "description": null, - "name": "input", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "UpdateTemplateInput", - "ofType": null - } - } - } - ], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "update_template", + "name": "partner_id", "type": { - "kind": "OBJECT", - "name": "UpdateTemplatePayload", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } } }, { - "args": [ - { - "defaultValue": null, - "description": null, - "name": "input", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "DeleteTemplateInput", - "ofType": null - } - } + "defaultValue": null, + "description": null, + "name": "check_word", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null } - ], - "deprecationReason": null, + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "SFExpressSettingsInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ + { + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "delete_template", + "name": "id", "type": { - "kind": "OBJECT", - "name": "DeleteTemplatePayload", + "kind": "SCALAR", + "name": "String", "ofType": null } }, { - "args": [ - { - "defaultValue": null, - "description": null, - "name": "input", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "DiscardCommodityInput", - "ofType": null - } - } - } - ], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "discard_commodity", + "name": "account_country_code", "type": { - "kind": "OBJECT", - "name": "DiscardCommodityPayload", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } } }, { - "args": [ - { - "defaultValue": null, - "description": null, - "name": "input", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "CreateConnectionInput", - "ofType": null - } - } + "defaultValue": null, + "description": null, + "name": "carrier_id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null } - ], - "deprecationReason": null, + } + }, + { + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "create_connection", + "name": "test", "type": { - "kind": "OBJECT", - "name": "CreateConnectionPayload", + "kind": "SCALAR", + "name": "Boolean", "ofType": null } }, { - "args": [ - { - "defaultValue": null, - "description": null, - "name": "input", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "UpdateConnectionInput", - "ofType": null - } - } - } - ], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "update_connection", - "type": { - "kind": "OBJECT", - "name": "UpdateConnectionPayload", + "name": "active", + "type": { + "kind": "SCALAR", + "name": "Boolean", "ofType": null } }, { - "args": [ - { - "defaultValue": null, - "description": null, - "name": "input", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "DeleteConnectionInput", - "ofType": null - } - } - } - ], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "delete_connection", + "name": "username", "type": { - "kind": "OBJECT", - "name": "DeleteConnectionPayload", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } } }, { - "args": [ - { - "defaultValue": null, - "description": null, - "name": "input", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "SystemCarrierMutationInput", - "ofType": null - } - } + "defaultValue": null, + "description": null, + "name": "password", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null } - ], - "deprecationReason": null, + } + }, + { + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "mutate_system_connection", + "name": "account_number", "type": { - "kind": "OBJECT", - "name": "SystemCarrierMutationPayload", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } } } ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "Mutation", + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "TNTSettingsInput", "possibleTypes": null }, { "description": null, "enumValues": null, - "fields": [ + "fields": null, + "inputFields": [ { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "email", + "name": "id", "type": { "kind": "SCALAR", "name": "String", @@ -13587,23 +21024,37 @@ } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "full_name", + "name": "account_country_code", "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } } }, { - "args": [], - "deprecationReason": null, - "description": "Designates whether this user should be treated as active. Unselect this instead of deleting accounts.", - "isDeprecated": false, - "name": "is_active", + "defaultValue": null, + "description": null, + "name": "carrier_id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": null, + "name": "test", "type": { "kind": "SCALAR", "name": "Boolean", @@ -13611,11 +21062,9 @@ } }, { - "args": [], - "deprecationReason": null, - "description": "Designates whether the user can log into this admin site.", - "isDeprecated": false, - "name": "is_staff", + "defaultValue": null, + "description": null, + "name": "active", "type": { "kind": "SCALAR", "name": "Boolean", @@ -13623,74 +21072,120 @@ } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "last_login", + "name": "username", "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "date_joined", + "name": "password", "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } } }, { - "args": [], - "deprecationReason": null, - "description": "May contain more than one error for same field.", - "isDeprecated": false, - "name": "errors", + "defaultValue": null, + "description": null, + "name": "access_license_number", "type": { - "kind": "LIST", + "kind": "NON_NULL", "name": null, "ofType": { - "kind": "OBJECT", - "name": "ErrorType", + "kind": "SCALAR", + "name": "String", "ofType": null } } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "clientMutationId", + "name": "account_number", "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } } } ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "UpdateUserPayload", + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "UPSSettingsInput", "possibleTypes": null }, { "description": null, "enumValues": null, - "fields": [ + "fields": null, + "inputFields": [ { - "args": [], - "deprecationReason": null, + "defaultValue": null, + "description": null, + "name": "id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "carrier_id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": null, + "name": "test", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "active", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "field", + "name": "username", "type": { "kind": "NON_NULL", "name": null, @@ -13702,45 +21197,23 @@ } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "messages", + "name": "password", "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "kind": "SCALAR", + "name": "String", + "ofType": null } } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "ErrorType", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ + }, { "defaultValue": null, "description": null, - "name": "email", + "name": "mailer_id", "type": { "kind": "SCALAR", "name": "String", @@ -13750,27 +21223,17 @@ { "defaultValue": null, "description": null, - "name": "full_name", + "name": "customer_registration_id", "type": { "kind": "SCALAR", "name": "String", "ofType": null } }, - { - "defaultValue": null, - "description": "Designates whether this user should be treated as active. Unselect this instead of deleting accounts.", - "name": "is_active", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, { "defaultValue": null, "description": null, - "name": "clientMutationId", + "name": "logistics_manager_mailer_id", "type": { "kind": "SCALAR", "name": "String", @@ -13780,19 +21243,28 @@ ], "interfaces": null, "kind": "INPUT_OBJECT", - "name": "UpdateUserInput", + "name": "USPSSettingsInput", "possibleTypes": null }, { "description": null, "enumValues": null, - "fields": [ + "fields": null, + "inputFields": [ { - "args": [], - "deprecationReason": null, - "description": "", - "isDeprecated": false, - "name": "email", + "defaultValue": null, + "description": null, + "name": "id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "carrier_id", "type": { "kind": "NON_NULL", "name": null, @@ -13804,23 +21276,29 @@ } }, { - "args": [], - "deprecationReason": null, - "description": "", - "isDeprecated": false, - "name": "full_name", + "defaultValue": null, + "description": null, + "name": "test", "type": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null } }, { - "args": [], - "deprecationReason": null, - "description": "
  • Your password can\u2019t be too similar to your other personal information.
  • Your password must contain at least 8 characters.
  • Your password can\u2019t be a commonly used password.
  • Your password can\u2019t be entirely numeric.
", - "isDeprecated": false, - "name": "password1", + "defaultValue": null, + "description": null, + "name": "active", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "username", "type": { "kind": "NON_NULL", "name": null, @@ -13832,11 +21310,9 @@ } }, { - "args": [], - "deprecationReason": null, - "description": "Enter the same password as before, for verification.", - "isDeprecated": false, - "name": "password2", + "defaultValue": null, + "description": null, + "name": "password", "type": { "kind": "NON_NULL", "name": null, @@ -13848,39 +21324,29 @@ } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "errors", + "name": "mailer_id", "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ErrorType", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "user", + "name": "customer_registration_id", "type": { - "kind": "OBJECT", - "name": "UserType", + "kind": "SCALAR", + "name": "String", "ofType": null } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "clientMutationId", + "name": "logistics_manager_mailer_id", "type": { "kind": "SCALAR", "name": "String", @@ -13888,10 +21354,9 @@ } } ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "RegisterUserPayload", + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "USPSInternationalSettingsInput", "possibleTypes": null }, { @@ -13901,8 +21366,18 @@ "inputFields": [ { "defaultValue": null, - "description": "", - "name": "email", + "description": null, + "name": "id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "carrier_id", "type": { "kind": "NON_NULL", "name": null, @@ -13915,18 +21390,28 @@ }, { "defaultValue": null, - "description": "", - "name": "full_name", + "description": null, + "name": "test", "type": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null } }, { "defaultValue": null, - "description": "
  • Your password can\u2019t be too similar to your other personal information.
  • Your password must contain at least 8 characters.
  • Your password can\u2019t be a commonly used password.
  • Your password can\u2019t be entirely numeric.
", - "name": "password1", + "description": null, + "name": "active", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "customer_number", "type": { "kind": "NON_NULL", "name": null, @@ -13939,8 +21424,8 @@ }, { "defaultValue": null, - "description": "Enter the same password as before, for verification.", - "name": "password2", + "description": null, + "name": "license_key", "type": { "kind": "NON_NULL", "name": null, @@ -13950,71 +21435,66 @@ "ofType": null } } - }, - { - "defaultValue": null, - "description": null, - "name": "clientMutationId", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } } ], "interfaces": null, "kind": "INPUT_OBJECT", - "name": "RegisterUserInput", + "name": "YanwenSettingsInput", "possibleTypes": null }, { "description": null, "enumValues": null, - "fields": [ + "fields": null, + "inputFields": [ { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "success", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "carrier_id", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Boolean", + "name": "String", "ofType": null } } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "clientMutationId", + "name": "test", "type": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "ConfirmEmailPayload", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ + }, + { + "defaultValue": null, + "description": null, + "name": "active", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, { "defaultValue": null, "description": null, - "name": "token", + "name": "customer_number", "type": { "kind": "NON_NULL", "name": null, @@ -14028,17 +21508,21 @@ { "defaultValue": null, "description": null, - "name": "clientMutationId", + "name": "api_secret", "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } } } ], "interfaces": null, "kind": "INPUT_OBJECT", - "name": "ConfirmEmailInput", + "name": "YunExpressSettingsInput", "possibleTypes": null }, { @@ -14050,10 +21534,10 @@ "deprecationReason": null, "description": null, "isDeprecated": false, - "name": "token", + "name": "id", "type": { - "kind": "OBJECT", - "name": "TokenType", + "kind": "SCALAR", + "name": "String", "ofType": null } }, @@ -14062,101 +21546,71 @@ "deprecationReason": null, "description": null, "isDeprecated": false, - "name": "clientMutationId", + "name": "aramexsettings", "type": { - "kind": "SCALAR", - "name": "String", + "kind": "OBJECT", + "name": "AramexSettings", "ofType": null } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "TokenMutationPayload", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ + }, { - "defaultValue": null, + "args": [], + "deprecationReason": null, "description": null, - "name": "refresh", + "isDeprecated": false, + "name": "australiapostsettings", "type": { - "kind": "SCALAR", - "name": "Boolean", + "kind": "OBJECT", + "name": "AustraliaPostSettings", "ofType": null } }, { - "defaultValue": null, + "args": [], + "deprecationReason": null, "description": null, - "name": "clientMutationId", + "isDeprecated": false, + "name": "canadapostsettings", "type": { - "kind": "SCALAR", - "name": "String", + "kind": "OBJECT", + "name": "CanadaPostSettings", "ofType": null } - } - ], - "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "TokenMutationInput", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ + }, { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "old_password", + "name": "canparsettings", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "OBJECT", + "name": "CanparSettings", + "ofType": null } }, { "args": [], "deprecationReason": null, - "description": "
  • Your password can\u2019t be too similar to your other personal information.
  • Your password must contain at least 8 characters.
  • Your password can\u2019t be a commonly used password.
  • Your password can\u2019t be entirely numeric.
", + "description": null, "isDeprecated": false, - "name": "new_password1", + "name": "dhlexpresssettings", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "OBJECT", + "name": "DHLExpressSettings", + "ofType": null } }, { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "new_password2", + "name": "dhlpolandsettings", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "OBJECT", + "name": "DHLPolandSettings", + "ofType": null } }, { @@ -14164,15 +21618,11 @@ "deprecationReason": null, "description": null, "isDeprecated": false, - "name": "errors", + "name": "dhluniversalsettings", "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ErrorType", - "ofType": null - } + "kind": "OBJECT", + "name": "DHLUniversalSettings", + "ofType": null } }, { @@ -14180,117 +21630,71 @@ "deprecationReason": null, "description": null, "isDeprecated": false, - "name": "clientMutationId", + "name": "dicomsettings", "type": { - "kind": "SCALAR", - "name": "String", + "kind": "OBJECT", + "name": "DicomSettings", "ofType": null } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "ChangePasswordPayload", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ - { - "defaultValue": null, - "description": "", - "name": "old_password", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } }, { - "defaultValue": null, - "description": "
  • Your password can\u2019t be too similar to your other personal information.
  • Your password must contain at least 8 characters.
  • Your password can\u2019t be a commonly used password.
  • Your password can\u2019t be entirely numeric.
", - "name": "new_password1", + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "eshippersettings", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "OBJECT", + "name": "EShipperSettings", + "ofType": null } }, { - "defaultValue": null, - "description": "", - "name": "new_password2", + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "fedexsettings", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "OBJECT", + "name": "FedexSettings", + "ofType": null } }, { - "defaultValue": null, + "args": [], + "deprecationReason": null, "description": null, - "name": "clientMutationId", + "isDeprecated": false, + "name": "freightcomsettings", "type": { - "kind": "SCALAR", - "name": "String", + "kind": "OBJECT", + "name": "FreightcomSettings", "ofType": null } - } - ], - "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "ChangePasswordInput", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ + }, { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "email", + "name": "purolatorsettings", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "OBJECT", + "name": "PurolatorSettings", + "ofType": null } }, { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "redirect_url", + "name": "royalmailsettings", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "OBJECT", + "name": "RoyalMailSettings", + "ofType": null } }, { @@ -14298,15 +21702,11 @@ "deprecationReason": null, "description": null, "isDeprecated": false, - "name": "errors", + "name": "sendlesettings", "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ErrorType", - "ofType": null - } + "kind": "OBJECT", + "name": "SendleSettings", + "ofType": null } }, { @@ -14314,141 +21714,89 @@ "deprecationReason": null, "description": null, "isDeprecated": false, - "name": "clientMutationId", + "name": "sfexpresssettings", "type": { - "kind": "SCALAR", - "name": "String", + "kind": "OBJECT", + "name": "SFExpressSettings", "ofType": null } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "RequestPasswordResetPayload", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ - { - "defaultValue": null, - "description": "", - "name": "email", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } }, { - "defaultValue": null, - "description": "", - "name": "redirect_url", + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "tntsettings", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "OBJECT", + "name": "TNTSettings", + "ofType": null } }, { - "defaultValue": null, + "args": [], + "deprecationReason": null, "description": null, - "name": "clientMutationId", + "isDeprecated": false, + "name": "upssettings", "type": { - "kind": "SCALAR", - "name": "String", + "kind": "OBJECT", + "name": "UPSSettings", "ofType": null } - } - ], - "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "RequestPasswordResetInput", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ + }, { "args": [], "deprecationReason": null, - "description": "
  • Your password can\u2019t be too similar to your other personal information.
  • Your password must contain at least 8 characters.
  • Your password can\u2019t be a commonly used password.
  • Your password can\u2019t be entirely numeric.
", + "description": null, "isDeprecated": false, - "name": "new_password1", + "name": "uspssettings", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "OBJECT", + "name": "USPSSettings", + "ofType": null } }, { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "new_password2", + "name": "uspsinternationalsettings", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "OBJECT", + "name": "USPSInternationalSettings", + "ofType": null } }, { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "uid", + "name": "yanwensettings", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "OBJECT", + "name": "YanwenSettings", + "ofType": null } }, { "args": [], "deprecationReason": null, - "description": "", + "description": null, "isDeprecated": false, - "name": "token", + "name": "yunexpresssettings", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "OBJECT", + "name": "YunExpressSettings", + "ofType": null } }, { "args": [], "deprecationReason": null, - "description": null, + "description": "May contain more than one error for same field.", "isDeprecated": false, "name": "errors", "type": { @@ -14477,7 +21825,7 @@ "inputFields": null, "interfaces": [], "kind": "OBJECT", - "name": "ConfirmPasswordResetPayload", + "name": "UpdateConnectionPayload", "possibleTypes": null }, { @@ -14487,249 +21835,221 @@ "inputFields": [ { "defaultValue": null, - "description": "
  • Your password can\u2019t be too similar to your other personal information.
  • Your password must contain at least 8 characters.
  • Your password can\u2019t be a commonly used password.
  • Your password can\u2019t be entirely numeric.
", - "name": "new_password1", + "description": null, + "name": "id", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null } }, { "defaultValue": null, - "description": "", - "name": "new_password2", + "description": null, + "name": "aramexsettings", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "INPUT_OBJECT", + "name": "PartialAramexSettingsInput", + "ofType": null } }, { "defaultValue": null, - "description": "", - "name": "uid", + "description": null, + "name": "australiapostsettings", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "INPUT_OBJECT", + "name": "PartialAustraliaPostSettingsInput", + "ofType": null } }, { "defaultValue": null, - "description": "", - "name": "token", + "description": null, + "name": "canadapostsettings", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "INPUT_OBJECT", + "name": "PartialCanadaPostSettingsInput", + "ofType": null } }, { "defaultValue": null, "description": null, - "name": "clientMutationId", + "name": "canparsettings", "type": { - "kind": "SCALAR", - "name": "String", + "kind": "INPUT_OBJECT", + "name": "PartialCanparSettingsInput", "ofType": null } - } - ], - "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "ConfirmPasswordResetInput", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ + }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "id", + "name": "dhlexpresssettings", "type": { - "kind": "SCALAR", - "name": "String", + "kind": "INPUT_OBJECT", + "name": "PartialDHLExpressSettingsInput", "ofType": null } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "address", + "name": "dhlpolandsettings", "type": { - "kind": "OBJECT", - "name": "AddressType", + "kind": "INPUT_OBJECT", + "name": "PartialDHLPolandSettingsInput", "ofType": null } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, + "description": null, + "name": "dhluniversalsettings", + "type": { + "kind": "INPUT_OBJECT", + "name": "PartialDHLUniversalSettingsInput", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "dicomsettings", + "type": { + "kind": "INPUT_OBJECT", + "name": "PartialDicomSettingsInput", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "eshippersettings", + "type": { + "kind": "INPUT_OBJECT", + "name": "PartialEShipperSettingsInput", + "ofType": null + } + }, + { + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "customs", + "name": "fedexsettings", "type": { - "kind": "OBJECT", - "name": "CustomsType", + "kind": "INPUT_OBJECT", + "name": "PartialFedexSettingsInput", "ofType": null } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "parcel", + "name": "freightcomsettings", "type": { - "kind": "OBJECT", - "name": "ParcelType", + "kind": "INPUT_OBJECT", + "name": "PartialFreightcomSettingsInput", "ofType": null } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "label", + "name": "purolatorsettings", "type": { - "kind": "SCALAR", - "name": "String", + "kind": "INPUT_OBJECT", + "name": "PartialPurolatorSettingsInput", "ofType": null } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "is_default", + "name": "royalmailsettings", "type": { - "kind": "SCALAR", - "name": "Boolean", + "kind": "INPUT_OBJECT", + "name": "PartialRoyalMailSettingsInput", "ofType": null } }, { - "args": [], - "deprecationReason": null, - "description": "May contain more than one error for same field.", - "isDeprecated": false, - "name": "errors", + "defaultValue": null, + "description": null, + "name": "sendlesettings", "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ErrorType", - "ofType": null - } + "kind": "INPUT_OBJECT", + "name": "PartialSendleSettingsInput", + "ofType": null } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "clientMutationId", + "name": "sfexpresssettings", "type": { - "kind": "SCALAR", - "name": "String", + "kind": "INPUT_OBJECT", + "name": "PartialSFExpressSettingsInput", "ofType": null } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "CreateTemplatePayload", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ + }, { "defaultValue": null, "description": null, - "name": "id", + "name": "tntsettings", "type": { - "kind": "SCALAR", - "name": "String", + "kind": "INPUT_OBJECT", + "name": "PartialTNTSettingsInput", "ofType": null } }, { "defaultValue": null, "description": null, - "name": "address", + "name": "upssettings", "type": { "kind": "INPUT_OBJECT", - "name": "PartialAddressModelSerializerInput", + "name": "PartialUPSSettingsInput", "ofType": null } }, { "defaultValue": null, "description": null, - "name": "customs", + "name": "uspssettings", "type": { "kind": "INPUT_OBJECT", - "name": "PartialCustomsModelSerializerInput", + "name": "PartialUSPSSettingsInput", "ofType": null } }, { "defaultValue": null, "description": null, - "name": "parcel", + "name": "uspsinternationalsettings", "type": { "kind": "INPUT_OBJECT", - "name": "PartialParcelModelSerializerInput", + "name": "PartialUSPSInternationalSettingsInput", "ofType": null } }, { "defaultValue": null, "description": null, - "name": "label", + "name": "yanwensettings", "type": { - "kind": "SCALAR", - "name": "String", + "kind": "INPUT_OBJECT", + "name": "PartialYanwenSettingsInput", "ofType": null } }, { "defaultValue": null, "description": null, - "name": "is_default", + "name": "yunexpresssettings", "type": { - "kind": "SCALAR", - "name": "Boolean", + "kind": "INPUT_OBJECT", + "name": "PartialYunExpressSettingsInput", "ofType": null } }, @@ -14746,7 +22066,7 @@ ], "interfaces": null, "kind": "INPUT_OBJECT", - "name": "CreateTemplateInput", + "name": "UpdateConnectionInput", "possibleTypes": null }, { @@ -14767,7 +22087,7 @@ { "defaultValue": null, "description": null, - "name": "country_code", + "name": "account_country_code", "type": { "kind": "SCALAR", "name": "String", @@ -14777,7 +22097,7 @@ { "defaultValue": null, "description": null, - "name": "postal_code", + "name": "carrier_id", "type": { "kind": "SCALAR", "name": "String", @@ -14787,27 +22107,27 @@ { "defaultValue": null, "description": null, - "name": "city", + "name": "test", "type": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null } }, { "defaultValue": null, "description": null, - "name": "federal_tax_id", + "name": "active", "type": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null } }, { "defaultValue": null, "description": null, - "name": "state_tax_id", + "name": "username", "type": { "kind": "SCALAR", "name": "String", @@ -14817,7 +22137,7 @@ { "defaultValue": null, "description": null, - "name": "person_name", + "name": "password", "type": { "kind": "SCALAR", "name": "String", @@ -14827,7 +22147,7 @@ { "defaultValue": null, "description": null, - "name": "company_name", + "name": "account_pin", "type": { "kind": "SCALAR", "name": "String", @@ -14837,7 +22157,7 @@ { "defaultValue": null, "description": null, - "name": "email", + "name": "account_entity", "type": { "kind": "SCALAR", "name": "String", @@ -14847,17 +22167,28 @@ { "defaultValue": null, "description": null, - "name": "phone_number", + "name": "account_number", "type": { "kind": "SCALAR", "name": "String", "ofType": null } - }, + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "PartialAramexSettingsInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ { "defaultValue": null, "description": null, - "name": "state_code", + "name": "id", "type": { "kind": "SCALAR", "name": "String", @@ -14867,7 +22198,7 @@ { "defaultValue": null, "description": null, - "name": "suburb", + "name": "carrier_id", "type": { "kind": "SCALAR", "name": "String", @@ -14877,7 +22208,7 @@ { "defaultValue": null, "description": null, - "name": "residential", + "name": "test", "type": { "kind": "SCALAR", "name": "Boolean", @@ -14887,17 +22218,17 @@ { "defaultValue": null, "description": null, - "name": "address_line1", + "name": "active", "type": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null } }, { "defaultValue": null, "description": null, - "name": "address_line2", + "name": "api_key", "type": { "kind": "SCALAR", "name": "String", @@ -14907,37 +22238,27 @@ { "defaultValue": null, "description": null, - "name": "validate_location", + "name": "password", "type": { "kind": "SCALAR", - "name": "Boolean", + "name": "String", "ofType": null } }, { "defaultValue": null, "description": null, - "name": "validation", + "name": "account_number", "type": { "kind": "SCALAR", - "name": "JSONString", + "name": "String", "ofType": null } } ], "interfaces": null, "kind": "INPUT_OBJECT", - "name": "PartialAddressModelSerializerInput", - "possibleTypes": null - }, - { - "description": "Allows use of a JSON String for input / output from the GraphQL schema.\n\nUse of this type is *not recommended* as you lose the benefits of having a defined, static\nschema (one of the key benefits of GraphQL).", - "enumValues": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "kind": "SCALAR", - "name": "JSONString", + "name": "PartialAustraliaPostSettingsInput", "possibleTypes": null }, { @@ -14958,61 +22279,57 @@ { "defaultValue": null, "description": null, - "name": "commodities", + "name": "carrier_id", "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "PartialCommodityModelSerializerInput", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null } }, { "defaultValue": null, "description": null, - "name": "aes", + "name": "test", "type": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null } }, { "defaultValue": null, "description": null, - "name": "eel_pfc", + "name": "active", "type": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null } }, { "defaultValue": null, "description": null, - "name": "certify", + "name": "username", "type": { "kind": "SCALAR", - "name": "Boolean", + "name": "String", "ofType": null } }, { "defaultValue": null, "description": null, - "name": "commercial_invoice", + "name": "password", "type": { "kind": "SCALAR", - "name": "Boolean", + "name": "String", "ofType": null } }, { "defaultValue": null, "description": null, - "name": "certificate_number", + "name": "customer_number", "type": { "kind": "SCALAR", "name": "String", @@ -15022,17 +22339,28 @@ { "defaultValue": null, "description": null, - "name": "content_type", + "name": "contract_id", "type": { "kind": "SCALAR", "name": "String", "ofType": null } - }, + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "PartialCanadaPostSettingsInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ { "defaultValue": null, "description": null, - "name": "content_description", + "name": "id", "type": { "kind": "SCALAR", "name": "String", @@ -15042,37 +22370,37 @@ { "defaultValue": null, "description": null, - "name": "incoterm", + "name": "carrier_id", "type": { - "kind": "ENUM", - "name": "incoterm", + "kind": "SCALAR", + "name": "String", "ofType": null } }, { "defaultValue": null, "description": null, - "name": "invoice", + "name": "test", "type": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null } }, { "defaultValue": null, "description": null, - "name": "invoice_date", + "name": "active", "type": { "kind": "SCALAR", - "name": "Date", + "name": "Boolean", "ofType": null } }, { "defaultValue": null, "description": null, - "name": "signer", + "name": "username", "type": { "kind": "SCALAR", "name": "String", @@ -15082,17 +22410,17 @@ { "defaultValue": null, "description": null, - "name": "duty", + "name": "password", "type": { "kind": "SCALAR", - "name": "JSONString", + "name": "String", "ofType": null } } ], "interfaces": null, "kind": "INPUT_OBJECT", - "name": "PartialCustomsModelSerializerInput", + "name": "PartialCanparSettingsInput", "possibleTypes": null }, { @@ -15103,41 +22431,27 @@ { "defaultValue": null, "description": null, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - { - "defaultValue": null, - "description": null, - "name": "weight_unit", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "name": "id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null } }, { "defaultValue": null, "description": null, - "name": "weight", + "name": "account_country_code", "type": { "kind": "SCALAR", - "name": "Float", + "name": "String", "ofType": null } }, { "defaultValue": null, "description": null, - "name": "description", + "name": "carrier_id", "type": { "kind": "SCALAR", "name": "String", @@ -15147,2341 +22461,3503 @@ { "defaultValue": null, "description": null, - "name": "quantity", + "name": "test", "type": { "kind": "SCALAR", - "name": "Int", + "name": "Boolean", "ofType": null } }, { "defaultValue": null, "description": null, - "name": "sku", + "name": "active", "type": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null } }, { "defaultValue": null, "description": null, - "name": "value_amount", + "name": "site_id", "type": { "kind": "SCALAR", - "name": "Float", + "name": "String", "ofType": null } }, { "defaultValue": null, "description": null, - "name": "value_currency", + "name": "password", "type": { - "kind": "ENUM", - "name": "value_currency", + "kind": "SCALAR", + "name": "String", "ofType": null } }, { "defaultValue": null, "description": null, - "name": "origin_country", + "name": "account_number", "type": { - "kind": "ENUM", - "name": "origin_country", + "kind": "SCALAR", + "name": "String", "ofType": null } } ], "interfaces": null, "kind": "INPUT_OBJECT", - "name": "PartialCommodityModelSerializerInput", + "name": "PartialDHLExpressSettingsInput", "possibleTypes": null }, { - "description": "An enumeration.", - "enumValues": [ - { - "deprecationReason": null, - "description": "EUR", - "isDeprecated": false, - "name": "EUR" - }, - { - "deprecationReason": null, - "description": "AED", - "isDeprecated": false, - "name": "AED" - }, - { - "deprecationReason": null, - "description": "USD", - "isDeprecated": false, - "name": "USD" - }, - { - "deprecationReason": null, - "description": "XCD", - "isDeprecated": false, - "name": "XCD" - }, - { - "deprecationReason": null, - "description": "AMD", - "isDeprecated": false, - "name": "AMD" - }, - { - "deprecationReason": null, - "description": "ANG", - "isDeprecated": false, - "name": "ANG" - }, - { - "deprecationReason": null, - "description": "AOA", - "isDeprecated": false, - "name": "AOA" - }, - { - "deprecationReason": null, - "description": "ARS", - "isDeprecated": false, - "name": "ARS" - }, - { - "deprecationReason": null, - "description": "AUD", - "isDeprecated": false, - "name": "AUD" - }, - { - "deprecationReason": null, - "description": "AWG", - "isDeprecated": false, - "name": "AWG" - }, - { - "deprecationReason": null, - "description": "AZN", - "isDeprecated": false, - "name": "AZN" - }, - { - "deprecationReason": null, - "description": "BAM", - "isDeprecated": false, - "name": "BAM" - }, - { - "deprecationReason": null, - "description": "BBD", - "isDeprecated": false, - "name": "BBD" - }, - { - "deprecationReason": null, - "description": "BDT", - "isDeprecated": false, - "name": "BDT" - }, - { - "deprecationReason": null, - "description": "XOF", - "isDeprecated": false, - "name": "XOF" - }, - { - "deprecationReason": null, - "description": "BGN", - "isDeprecated": false, - "name": "BGN" - }, - { - "deprecationReason": null, - "description": "BHD", - "isDeprecated": false, - "name": "BHD" - }, - { - "deprecationReason": null, - "description": "BIF", - "isDeprecated": false, - "name": "BIF" - }, - { - "deprecationReason": null, - "description": "BMD", - "isDeprecated": false, - "name": "BMD" - }, - { - "deprecationReason": null, - "description": "BND", - "isDeprecated": false, - "name": "BND" - }, - { - "deprecationReason": null, - "description": "BOB", - "isDeprecated": false, - "name": "BOB" - }, - { - "deprecationReason": null, - "description": "BRL", - "isDeprecated": false, - "name": "BRL" - }, - { - "deprecationReason": null, - "description": "BSD", - "isDeprecated": false, - "name": "BSD" - }, - { - "deprecationReason": null, - "description": "BTN", - "isDeprecated": false, - "name": "BTN" - }, - { - "deprecationReason": null, - "description": "BWP", - "isDeprecated": false, - "name": "BWP" - }, - { - "deprecationReason": null, - "description": "BYN", - "isDeprecated": false, - "name": "BYN" - }, - { - "deprecationReason": null, - "description": "BZD", - "isDeprecated": false, - "name": "BZD" - }, + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ { - "deprecationReason": null, - "description": "CAD", - "isDeprecated": false, - "name": "CAD" + "defaultValue": null, + "description": null, + "name": "id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "CDF", - "isDeprecated": false, - "name": "CDF" + "defaultValue": null, + "description": null, + "name": "services", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "PartialServiceLevelModelSerializerInput", + "ofType": null + } + } }, { - "deprecationReason": null, - "description": "XAF", - "isDeprecated": false, - "name": "XAF" + "defaultValue": null, + "description": null, + "name": "carrier_id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "CHF", - "isDeprecated": false, - "name": "CHF" + "defaultValue": null, + "description": null, + "name": "test", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "NZD", - "isDeprecated": false, - "name": "NZD" + "defaultValue": null, + "description": null, + "name": "active", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "CLP", - "isDeprecated": false, - "name": "CLP" + "defaultValue": null, + "description": null, + "name": "username", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "CNY", - "isDeprecated": false, - "name": "CNY" + "defaultValue": null, + "description": null, + "name": "password", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "COP", - "isDeprecated": false, - "name": "COP" - }, + "defaultValue": null, + "description": null, + "name": "account_number", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "PartialDHLPolandSettingsInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ { - "deprecationReason": null, - "description": "CRC", - "isDeprecated": false, - "name": "CRC" + "defaultValue": null, + "description": null, + "name": "id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "CUC", - "isDeprecated": false, - "name": "CUC" + "defaultValue": null, + "description": null, + "name": "dimension_unit", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "CVE", - "isDeprecated": false, - "name": "CVE" + "defaultValue": null, + "description": null, + "name": "weight_unit", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "CZK", - "isDeprecated": false, - "name": "CZK" + "defaultValue": null, + "description": null, + "name": "currency", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "DJF", - "isDeprecated": false, - "name": "DJF" + "defaultValue": null, + "description": null, + "name": "service_name", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "DKK", - "isDeprecated": false, - "name": "DKK" + "defaultValue": null, + "description": null, + "name": "service_code", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "DOP", - "isDeprecated": false, - "name": "DOP" + "defaultValue": null, + "description": null, + "name": "description", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "DZD", - "isDeprecated": false, - "name": "DZD" + "defaultValue": null, + "description": null, + "name": "active", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "EGP", - "isDeprecated": false, - "name": "EGP" + "defaultValue": null, + "description": null, + "name": "cost", + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } }, { - "deprecationReason": null, - "description": "ERN", - "isDeprecated": false, - "name": "ERN" + "defaultValue": null, + "description": null, + "name": "estimated_transit_days", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } }, { - "deprecationReason": null, - "description": "ETB", - "isDeprecated": false, - "name": "ETB" + "defaultValue": null, + "description": null, + "name": "max_weight", + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } }, { - "deprecationReason": null, - "description": "FJD", - "isDeprecated": false, - "name": "FJD" + "defaultValue": null, + "description": null, + "name": "max_width", + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } }, { - "deprecationReason": null, - "description": "GBP", - "isDeprecated": false, - "name": "GBP" + "defaultValue": null, + "description": null, + "name": "max_height", + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } }, { - "deprecationReason": null, - "description": "GEL", - "isDeprecated": false, - "name": "GEL" + "defaultValue": null, + "description": null, + "name": "max_length", + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } }, { - "deprecationReason": null, - "description": "GHS", - "isDeprecated": false, - "name": "GHS" + "defaultValue": null, + "description": null, + "name": "domicile", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "GMD", - "isDeprecated": false, - "name": "GMD" + "defaultValue": null, + "description": null, + "name": "international", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "PartialServiceLevelModelSerializerInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ + { + "defaultValue": null, + "description": null, + "name": "id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "GNF", - "isDeprecated": false, - "name": "GNF" + "defaultValue": null, + "description": null, + "name": "carrier_id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "GTQ", - "isDeprecated": false, - "name": "GTQ" + "defaultValue": null, + "description": null, + "name": "test", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "GYD", - "isDeprecated": false, - "name": "GYD" + "defaultValue": null, + "description": null, + "name": "active", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "HKD", - "isDeprecated": false, - "name": "HKD" + "defaultValue": null, + "description": null, + "name": "consumer_key", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "HNL", - "isDeprecated": false, - "name": "HNL" - }, + "defaultValue": null, + "description": null, + "name": "consumer_secret", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "PartialDHLUniversalSettingsInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ { - "deprecationReason": null, - "description": "HRK", - "isDeprecated": false, - "name": "HRK" + "defaultValue": null, + "description": null, + "name": "id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "HTG", - "isDeprecated": false, - "name": "HTG" + "defaultValue": null, + "description": null, + "name": "carrier_id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "HUF", - "isDeprecated": false, - "name": "HUF" + "defaultValue": null, + "description": null, + "name": "test", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "IDR", - "isDeprecated": false, - "name": "IDR" + "defaultValue": null, + "description": null, + "name": "active", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "ILS", - "isDeprecated": false, - "name": "ILS" + "defaultValue": null, + "description": null, + "name": "username", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "INR", - "isDeprecated": false, - "name": "INR" + "defaultValue": null, + "description": null, + "name": "password", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "IRR", - "isDeprecated": false, - "name": "IRR" - }, + "defaultValue": null, + "description": null, + "name": "billing_account", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "PartialDicomSettingsInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ { - "deprecationReason": null, - "description": "ISK", - "isDeprecated": false, - "name": "ISK" + "defaultValue": null, + "description": null, + "name": "id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "JMD", - "isDeprecated": false, - "name": "JMD" + "defaultValue": null, + "description": null, + "name": "carrier_id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "JOD", - "isDeprecated": false, - "name": "JOD" + "defaultValue": null, + "description": null, + "name": "test", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "JPY", - "isDeprecated": false, - "name": "JPY" + "defaultValue": null, + "description": null, + "name": "active", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "KES", - "isDeprecated": false, - "name": "KES" + "defaultValue": null, + "description": null, + "name": "username", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "KGS", - "isDeprecated": false, - "name": "KGS" - }, + "defaultValue": null, + "description": null, + "name": "password", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "PartialEShipperSettingsInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ { - "deprecationReason": null, - "description": "KHR", - "isDeprecated": false, - "name": "KHR" + "defaultValue": null, + "description": null, + "name": "id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "KMF", - "isDeprecated": false, - "name": "KMF" + "defaultValue": null, + "description": null, + "name": "account_country_code", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "KPW", - "isDeprecated": false, - "name": "KPW" + "defaultValue": null, + "description": null, + "name": "carrier_id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "KRW", - "isDeprecated": false, - "name": "KRW" + "defaultValue": null, + "description": null, + "name": "test", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "KWD", - "isDeprecated": false, - "name": "KWD" + "defaultValue": null, + "description": null, + "name": "active", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "KYD", - "isDeprecated": false, - "name": "KYD" + "defaultValue": null, + "description": null, + "name": "password", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "KZT", - "isDeprecated": false, - "name": "KZT" + "defaultValue": null, + "description": null, + "name": "meter_number", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "LAK", - "isDeprecated": false, - "name": "LAK" + "defaultValue": null, + "description": null, + "name": "account_number", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "LKR", - "isDeprecated": false, - "name": "LKR" - }, + "defaultValue": null, + "description": null, + "name": "user_key", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "PartialFedexSettingsInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ { - "deprecationReason": null, - "description": "LRD", - "isDeprecated": false, - "name": "LRD" + "defaultValue": null, + "description": null, + "name": "id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "LSL", - "isDeprecated": false, - "name": "LSL" + "defaultValue": null, + "description": null, + "name": "carrier_id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "LYD", - "isDeprecated": false, - "name": "LYD" + "defaultValue": null, + "description": null, + "name": "test", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "MAD", - "isDeprecated": false, - "name": "MAD" + "defaultValue": null, + "description": null, + "name": "active", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "MDL", - "isDeprecated": false, - "name": "MDL" + "defaultValue": null, + "description": null, + "name": "username", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "MGA", - "isDeprecated": false, - "name": "MGA" - }, + "defaultValue": null, + "description": null, + "name": "password", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "PartialFreightcomSettingsInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ { - "deprecationReason": null, - "description": "MKD", - "isDeprecated": false, - "name": "MKD" + "defaultValue": null, + "description": null, + "name": "id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "MMK", - "isDeprecated": false, - "name": "MMK" + "defaultValue": null, + "description": null, + "name": "carrier_id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "MNT", - "isDeprecated": false, - "name": "MNT" + "defaultValue": null, + "description": null, + "name": "test", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "MOP", - "isDeprecated": false, - "name": "MOP" + "defaultValue": null, + "description": null, + "name": "active", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "MRO", - "isDeprecated": false, - "name": "MRO" + "defaultValue": null, + "description": null, + "name": "username", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "MUR", - "isDeprecated": false, - "name": "MUR" + "defaultValue": null, + "description": null, + "name": "password", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "MVR", - "isDeprecated": false, - "name": "MVR" + "defaultValue": null, + "description": null, + "name": "account_number", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "MWK", - "isDeprecated": false, - "name": "MWK" - }, + "defaultValue": null, + "description": null, + "name": "user_token", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "PartialPurolatorSettingsInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ { - "deprecationReason": null, - "description": "MXN", - "isDeprecated": false, - "name": "MXN" + "defaultValue": null, + "description": null, + "name": "id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "MYR", - "isDeprecated": false, - "name": "MYR" + "defaultValue": null, + "description": null, + "name": "carrier_id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "MZN", - "isDeprecated": false, - "name": "MZN" + "defaultValue": null, + "description": null, + "name": "test", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "NAD", - "isDeprecated": false, - "name": "NAD" + "defaultValue": null, + "description": null, + "name": "active", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "XPF", - "isDeprecated": false, - "name": "XPF" + "defaultValue": null, + "description": null, + "name": "client_id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "NGN", - "isDeprecated": false, - "name": "NGN" - }, + "defaultValue": null, + "description": null, + "name": "client_secret", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "PartialRoyalMailSettingsInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ { - "deprecationReason": null, - "description": "NIO", - "isDeprecated": false, - "name": "NIO" + "defaultValue": null, + "description": null, + "name": "id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "NOK", - "isDeprecated": false, - "name": "NOK" + "defaultValue": null, + "description": null, + "name": "carrier_id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "NPR", - "isDeprecated": false, - "name": "NPR" + "defaultValue": null, + "description": null, + "name": "test", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "OMR", - "isDeprecated": false, - "name": "OMR" + "defaultValue": null, + "description": null, + "name": "active", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "PEN", - "isDeprecated": false, - "name": "PEN" + "defaultValue": null, + "description": null, + "name": "sendle_id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "PGK", - "isDeprecated": false, - "name": "PGK" - }, + "defaultValue": null, + "description": null, + "name": "api_key", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "PartialSendleSettingsInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ { - "deprecationReason": null, - "description": "PHP", - "isDeprecated": false, - "name": "PHP" + "defaultValue": null, + "description": null, + "name": "id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "PKR", - "isDeprecated": false, - "name": "PKR" + "defaultValue": null, + "description": null, + "name": "carrier_id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "PLN", - "isDeprecated": false, - "name": "PLN" + "defaultValue": null, + "description": null, + "name": "test", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "PYG", - "isDeprecated": false, - "name": "PYG" + "defaultValue": null, + "description": null, + "name": "active", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "QAR", - "isDeprecated": false, - "name": "QAR" + "defaultValue": null, + "description": null, + "name": "partner_id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "RSD", - "isDeprecated": false, - "name": "RSD" - }, + "defaultValue": null, + "description": null, + "name": "check_word", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "PartialSFExpressSettingsInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ { - "deprecationReason": null, - "description": "RUB", - "isDeprecated": false, - "name": "RUB" + "defaultValue": null, + "description": null, + "name": "id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "RWF", - "isDeprecated": false, - "name": "RWF" + "defaultValue": null, + "description": null, + "name": "account_country_code", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "SAR", - "isDeprecated": false, - "name": "SAR" + "defaultValue": null, + "description": null, + "name": "carrier_id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "SBD", - "isDeprecated": false, - "name": "SBD" + "defaultValue": null, + "description": null, + "name": "test", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "SCR", - "isDeprecated": false, - "name": "SCR" + "defaultValue": null, + "description": null, + "name": "active", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "SDG", - "isDeprecated": false, - "name": "SDG" + "defaultValue": null, + "description": null, + "name": "username", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "SEK", - "isDeprecated": false, - "name": "SEK" + "defaultValue": null, + "description": null, + "name": "password", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "SGD", - "isDeprecated": false, - "name": "SGD" - }, + "defaultValue": null, + "description": null, + "name": "account_number", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "PartialTNTSettingsInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ { - "deprecationReason": null, - "description": "SHP", - "isDeprecated": false, - "name": "SHP" + "defaultValue": null, + "description": null, + "name": "id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "SLL", - "isDeprecated": false, - "name": "SLL" + "defaultValue": null, + "description": null, + "name": "account_country_code", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "SOS", - "isDeprecated": false, - "name": "SOS" + "defaultValue": null, + "description": null, + "name": "carrier_id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "SRD", - "isDeprecated": false, - "name": "SRD" + "defaultValue": null, + "description": null, + "name": "test", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "SSP", - "isDeprecated": false, - "name": "SSP" + "defaultValue": null, + "description": null, + "name": "active", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "STD", - "isDeprecated": false, - "name": "STD" + "defaultValue": null, + "description": null, + "name": "username", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "SYP", - "isDeprecated": false, - "name": "SYP" + "defaultValue": null, + "description": null, + "name": "password", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "SZL", - "isDeprecated": false, - "name": "SZL" + "defaultValue": null, + "description": null, + "name": "access_license_number", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "THB", - "isDeprecated": false, - "name": "THB" + "defaultValue": null, + "description": null, + "name": "account_number", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "PartialUPSSettingsInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ + { + "defaultValue": null, + "description": null, + "name": "id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "TJS", - "isDeprecated": false, - "name": "TJS" + "defaultValue": null, + "description": null, + "name": "carrier_id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "TND", - "isDeprecated": false, - "name": "TND" + "defaultValue": null, + "description": null, + "name": "test", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "TOP", - "isDeprecated": false, - "name": "TOP" + "defaultValue": null, + "description": null, + "name": "active", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "TRY", - "isDeprecated": false, - "name": "TRY" + "defaultValue": null, + "description": null, + "name": "username", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "TTD", - "isDeprecated": false, - "name": "TTD" + "defaultValue": null, + "description": null, + "name": "password", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "TWD", - "isDeprecated": false, - "name": "TWD" + "defaultValue": null, + "description": null, + "name": "mailer_id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "TZS", - "isDeprecated": false, - "name": "TZS" + "defaultValue": null, + "description": null, + "name": "customer_registration_id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "UAH", - "isDeprecated": false, - "name": "UAH" + "defaultValue": null, + "description": null, + "name": "logistics_manager_mailer_id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "PartialUSPSSettingsInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ + { + "defaultValue": null, + "description": null, + "name": "id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "UYU", - "isDeprecated": false, - "name": "UYU" + "defaultValue": null, + "description": null, + "name": "carrier_id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "UZS", - "isDeprecated": false, - "name": "UZS" + "defaultValue": null, + "description": null, + "name": "test", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "VEF", - "isDeprecated": false, - "name": "VEF" + "defaultValue": null, + "description": null, + "name": "active", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "VND", - "isDeprecated": false, - "name": "VND" + "defaultValue": null, + "description": null, + "name": "username", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "VUV", - "isDeprecated": false, - "name": "VUV" + "defaultValue": null, + "description": null, + "name": "password", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "WST", - "isDeprecated": false, - "name": "WST" + "defaultValue": null, + "description": null, + "name": "mailer_id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "YER", - "isDeprecated": false, - "name": "YER" + "defaultValue": null, + "description": null, + "name": "customer_registration_id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "ZAR", - "isDeprecated": false, - "name": "ZAR" + "defaultValue": null, + "description": null, + "name": "logistics_manager_mailer_id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } } ], - "fields": null, - "inputFields": null, "interfaces": null, - "kind": "ENUM", - "name": "value_currency", + "kind": "INPUT_OBJECT", + "name": "PartialUSPSInternationalSettingsInput", "possibleTypes": null }, { - "description": "An enumeration.", - "enumValues": [ + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ { - "deprecationReason": null, - "description": "AD", - "isDeprecated": false, - "name": "AD" + "defaultValue": null, + "description": null, + "name": "id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "AE", - "isDeprecated": false, - "name": "AE" + "defaultValue": null, + "description": null, + "name": "carrier_id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "AF", - "isDeprecated": false, - "name": "AF" + "defaultValue": null, + "description": null, + "name": "test", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "AG", - "isDeprecated": false, - "name": "AG" + "defaultValue": null, + "description": null, + "name": "active", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "AI", - "isDeprecated": false, - "name": "AI" + "defaultValue": null, + "description": null, + "name": "customer_number", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "AL", - "isDeprecated": false, - "name": "AL" - }, + "defaultValue": null, + "description": null, + "name": "license_key", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "PartialYanwenSettingsInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ { - "deprecationReason": null, - "description": "AM", - "isDeprecated": false, - "name": "AM" + "defaultValue": null, + "description": null, + "name": "id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "AN", - "isDeprecated": false, - "name": "AN" + "defaultValue": null, + "description": null, + "name": "carrier_id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "AO", - "isDeprecated": false, - "name": "AO" + "defaultValue": null, + "description": null, + "name": "test", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "AR", - "isDeprecated": false, - "name": "AR" + "defaultValue": null, + "description": null, + "name": "active", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "AS", - "isDeprecated": false, - "name": "AS" + "defaultValue": null, + "description": null, + "name": "customer_number", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "AT", - "isDeprecated": false, - "name": "AT" - }, + "defaultValue": null, + "description": null, + "name": "api_secret", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "PartialYunExpressSettingsInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "AU", + "description": null, "isDeprecated": false, - "name": "AU" + "name": "id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "AW", + "description": null, "isDeprecated": false, - "name": "AW" - }, + "name": "clientMutationId", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "DeleteConnectionPayload", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ { - "deprecationReason": null, - "description": "AZ", - "isDeprecated": false, - "name": "AZ" + "defaultValue": null, + "description": null, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { - "deprecationReason": null, - "description": "BA", - "isDeprecated": false, - "name": "BA" - }, + "defaultValue": null, + "description": null, + "name": "clientMutationId", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "DeleteConnectionInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "BB", + "description": null, "isDeprecated": false, - "name": "BB" + "name": "carrier", + "type": { + "kind": "OBJECT", + "name": "SystemConnectionType", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "BD", + "description": null, "isDeprecated": false, - "name": "BD" - }, + "name": "clientMutationId", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "SystemCarrierMutationPayload", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ { - "deprecationReason": null, - "description": "BE", - "isDeprecated": false, - "name": "BE" + "defaultValue": null, + "description": null, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { - "deprecationReason": null, - "description": "BF", - "isDeprecated": false, - "name": "BF" + "defaultValue": null, + "description": null, + "name": "enable", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } }, { - "deprecationReason": null, - "description": "BG", - "isDeprecated": false, - "name": "BG" - }, + "defaultValue": null, + "description": null, + "name": "clientMutationId", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "SystemCarrierMutationInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "BH", + "description": null, "isDeprecated": false, - "name": "BH" + "name": "errors", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ErrorType", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "BI", + "description": null, "isDeprecated": false, - "name": "BI" + "name": "template", + "type": { + "kind": "OBJECT", + "name": "AddressTemplateType", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "BJ", + "description": null, "isDeprecated": false, - "name": "BJ" + "name": "clientMutationId", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "AddressTemplatePayload", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ + { + "defaultValue": null, + "description": null, + "name": "address", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "AddressTemplate", + "ofType": null + } + } }, { - "deprecationReason": null, - "description": "BM", - "isDeprecated": false, - "name": "BM" + "defaultValue": null, + "description": null, + "name": "label", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { - "deprecationReason": null, - "description": "BN", - "isDeprecated": false, - "name": "BN" + "defaultValue": null, + "description": null, + "name": "is_default", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "BO", - "isDeprecated": false, - "name": "BO" + "defaultValue": null, + "description": null, + "name": "clientMutationId", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "AddressTemplateInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ + { + "defaultValue": null, + "description": null, + "name": "country_code", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "BR", - "isDeprecated": false, - "name": "BR" + "defaultValue": null, + "description": null, + "name": "postal_code", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "BS", - "isDeprecated": false, - "name": "BS" + "defaultValue": null, + "description": null, + "name": "city", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "BT", - "isDeprecated": false, - "name": "BT" + "defaultValue": null, + "description": null, + "name": "federal_tax_id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "BW", - "isDeprecated": false, - "name": "BW" + "defaultValue": null, + "description": null, + "name": "state_tax_id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "BY", - "isDeprecated": false, - "name": "BY" + "defaultValue": null, + "description": null, + "name": "person_name", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "BZ", - "isDeprecated": false, - "name": "BZ" + "defaultValue": null, + "description": null, + "name": "company_name", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "CA", - "isDeprecated": false, - "name": "CA" + "defaultValue": null, + "description": null, + "name": "email", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "CD", - "isDeprecated": false, - "name": "CD" + "defaultValue": null, + "description": null, + "name": "phone_number", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "CF", - "isDeprecated": false, - "name": "CF" + "defaultValue": null, + "description": null, + "name": "state_code", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "CG", - "isDeprecated": false, - "name": "CG" + "defaultValue": null, + "description": null, + "name": "suburb", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "CH", - "isDeprecated": false, - "name": "CH" + "defaultValue": null, + "description": null, + "name": "residential", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "CI", - "isDeprecated": false, - "name": "CI" + "defaultValue": null, + "description": null, + "name": "address_line1", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "CK", - "isDeprecated": false, - "name": "CK" + "defaultValue": null, + "description": null, + "name": "address_line2", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "CL", - "isDeprecated": false, - "name": "CL" + "defaultValue": null, + "description": null, + "name": "validate_location", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "CM", - "isDeprecated": false, - "name": "CM" - }, + "defaultValue": null, + "description": null, + "name": "validation", + "type": { + "kind": "SCALAR", + "name": "JSONString", + "ofType": null + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "AddressTemplate", + "possibleTypes": null + }, + { + "description": "Allows use of a JSON String for input / output from the GraphQL schema.\n\nUse of this type is *not recommended* as you lose the benefits of having a defined, static\nschema (one of the key benefits of GraphQL).", + "enumValues": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "SCALAR", + "name": "JSONString", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "CN", + "description": null, "isDeprecated": false, - "name": "CN" + "name": "errors", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ErrorType", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "CO", + "description": null, "isDeprecated": false, - "name": "CO" + "name": "template", + "type": { + "kind": "OBJECT", + "name": "AddressTemplateType", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "CR", + "description": null, "isDeprecated": false, - "name": "CR" + "name": "clientMutationId", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "PartialAddressTemplatePayload", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ + { + "defaultValue": null, + "description": null, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { - "deprecationReason": null, - "description": "CU", - "isDeprecated": false, - "name": "CU" + "defaultValue": null, + "description": null, + "name": "address", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "PartialAddressTemplate", + "ofType": null + } + } }, { - "deprecationReason": null, - "description": "CV", - "isDeprecated": false, - "name": "CV" + "defaultValue": null, + "description": null, + "name": "label", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "CY", - "isDeprecated": false, - "name": "CY" + "defaultValue": null, + "description": null, + "name": "is_default", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "CZ", - "isDeprecated": false, - "name": "CZ" + "defaultValue": null, + "description": null, + "name": "clientMutationId", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "PartialAddressTemplateInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ + { + "defaultValue": null, + "description": null, + "name": "country_code", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "DE", - "isDeprecated": false, - "name": "DE" + "defaultValue": null, + "description": null, + "name": "postal_code", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "DJ", - "isDeprecated": false, - "name": "DJ" + "defaultValue": null, + "description": null, + "name": "city", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "DK", - "isDeprecated": false, - "name": "DK" + "defaultValue": null, + "description": null, + "name": "federal_tax_id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "DM", - "isDeprecated": false, - "name": "DM" + "defaultValue": null, + "description": null, + "name": "state_tax_id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "DO", - "isDeprecated": false, - "name": "DO" + "defaultValue": null, + "description": null, + "name": "person_name", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "DZ", - "isDeprecated": false, - "name": "DZ" + "defaultValue": null, + "description": null, + "name": "company_name", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "EC", - "isDeprecated": false, - "name": "EC" + "defaultValue": null, + "description": null, + "name": "email", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "EE", - "isDeprecated": false, - "name": "EE" + "defaultValue": null, + "description": null, + "name": "phone_number", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "EG", - "isDeprecated": false, - "name": "EG" + "defaultValue": null, + "description": null, + "name": "state_code", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "ER", - "isDeprecated": false, - "name": "ER" + "defaultValue": null, + "description": null, + "name": "suburb", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "ES", - "isDeprecated": false, - "name": "ES" + "defaultValue": null, + "description": null, + "name": "residential", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "ET", - "isDeprecated": false, - "name": "ET" + "defaultValue": null, + "description": null, + "name": "address_line1", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "FI", - "isDeprecated": false, - "name": "FI" + "defaultValue": null, + "description": null, + "name": "address_line2", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "FJ", - "isDeprecated": false, - "name": "FJ" + "defaultValue": null, + "description": null, + "name": "validate_location", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "FK", - "isDeprecated": false, - "name": "FK" - }, + "defaultValue": null, + "description": null, + "name": "validation", + "type": { + "kind": "SCALAR", + "name": "JSONString", + "ofType": null + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "PartialAddressTemplate", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ { + "args": [], "deprecationReason": null, - "description": "FM", + "description": null, "isDeprecated": false, - "name": "FM" + "name": "errors", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ErrorType", + "ofType": null + } + } }, { + "args": [], "deprecationReason": null, - "description": "FO", + "description": null, "isDeprecated": false, - "name": "FO" + "name": "template", + "type": { + "kind": "OBJECT", + "name": "CustomsTemplateType", + "ofType": null + } }, { + "args": [], "deprecationReason": null, - "description": "FR", + "description": null, "isDeprecated": false, - "name": "FR" - }, + "name": "clientMutationId", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "CustomsTemplatePayload", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ { - "deprecationReason": null, - "description": "GA", - "isDeprecated": false, - "name": "GA" + "defaultValue": null, + "description": null, + "name": "customs", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "CustomsTemplate", + "ofType": null + } + } }, { - "deprecationReason": null, - "description": "GB", - "isDeprecated": false, - "name": "GB" + "defaultValue": null, + "description": null, + "name": "label", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { - "deprecationReason": null, - "description": "GD", - "isDeprecated": false, - "name": "GD" + "defaultValue": null, + "description": null, + "name": "is_default", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "GE", - "isDeprecated": false, - "name": "GE" - }, + "defaultValue": null, + "description": null, + "name": "clientMutationId", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "CustomsTemplateInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ { - "deprecationReason": null, - "description": "GF", - "isDeprecated": false, - "name": "GF" + "defaultValue": null, + "description": null, + "name": "incoterm", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "GG", - "isDeprecated": false, - "name": "GG" + "defaultValue": null, + "description": null, + "name": "commodities", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "PartialCommodityModelSerializerInput", + "ofType": null + } + } }, { - "deprecationReason": null, - "description": "GH", - "isDeprecated": false, - "name": "GH" + "defaultValue": null, + "description": null, + "name": "certify", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "GI", - "isDeprecated": false, - "name": "GI" + "defaultValue": null, + "description": null, + "name": "commercial_invoice", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, { - "deprecationReason": null, - "description": "GL", - "isDeprecated": false, - "name": "GL" + "defaultValue": null, + "description": null, + "name": "content_type", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "GM", - "isDeprecated": false, - "name": "GM" + "defaultValue": null, + "description": null, + "name": "content_description", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "GN", - "isDeprecated": false, - "name": "GN" + "defaultValue": null, + "description": null, + "name": "invoice", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "GP", - "isDeprecated": false, - "name": "GP" + "defaultValue": null, + "description": null, + "name": "invoice_date", + "type": { + "kind": "SCALAR", + "name": "Date", + "ofType": null + } }, { - "deprecationReason": null, - "description": "GQ", - "isDeprecated": false, - "name": "GQ" + "defaultValue": null, + "description": null, + "name": "signer", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "GR", - "isDeprecated": false, - "name": "GR" + "defaultValue": null, + "description": null, + "name": "duty", + "type": { + "kind": "INPUT_OBJECT", + "name": "DutyInput", + "ofType": null + } }, { - "deprecationReason": null, - "description": "GT", - "isDeprecated": false, - "name": "GT" - }, + "defaultValue": null, + "description": null, + "name": "options", + "type": { + "kind": "SCALAR", + "name": "GenericScalar", + "ofType": null + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "CustomsTemplate", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ { - "deprecationReason": null, - "description": "GU", - "isDeprecated": false, - "name": "GU" + "defaultValue": null, + "description": null, + "name": "id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "GW", - "isDeprecated": false, - "name": "GW" + "defaultValue": null, + "description": null, + "name": "weight_unit", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { - "deprecationReason": null, - "description": "GY", - "isDeprecated": false, - "name": "GY" + "defaultValue": null, + "description": null, + "name": "weight", + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } }, { - "deprecationReason": null, - "description": "HK", - "isDeprecated": false, - "name": "HK" + "defaultValue": null, + "description": null, + "name": "description", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "HN", - "isDeprecated": false, - "name": "HN" + "defaultValue": null, + "description": null, + "name": "quantity", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } }, { - "deprecationReason": null, - "description": "HR", - "isDeprecated": false, - "name": "HR" + "defaultValue": null, + "description": null, + "name": "sku", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, { - "deprecationReason": null, - "description": "HT", - "isDeprecated": false, - "name": "HT" + "defaultValue": null, + "description": null, + "name": "value_amount", + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } }, { - "deprecationReason": null, - "description": "HU", - "isDeprecated": false, - "name": "HU" + "defaultValue": null, + "description": null, + "name": "value_currency", + "type": { + "kind": "ENUM", + "name": "value_currency", + "ofType": null + } }, { - "deprecationReason": null, - "description": "IC", - "isDeprecated": false, - "name": "IC" - }, + "defaultValue": null, + "description": null, + "name": "origin_country", + "type": { + "kind": "ENUM", + "name": "origin_country", + "ofType": null + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "PartialCommodityModelSerializerInput", + "possibleTypes": null + }, + { + "description": "An enumeration.", + "enumValues": [ { "deprecationReason": null, - "description": "ID", + "description": "EUR", "isDeprecated": false, - "name": "ID" + "name": "EUR" }, { "deprecationReason": null, - "description": "IE", + "description": "AED", "isDeprecated": false, - "name": "IE" + "name": "AED" }, { "deprecationReason": null, - "description": "IL", + "description": "USD", "isDeprecated": false, - "name": "IL" + "name": "USD" }, { "deprecationReason": null, - "description": "IN", + "description": "XCD", "isDeprecated": false, - "name": "IN" + "name": "XCD" }, { "deprecationReason": null, - "description": "IQ", + "description": "AMD", "isDeprecated": false, - "name": "IQ" + "name": "AMD" }, { "deprecationReason": null, - "description": "IR", + "description": "ANG", "isDeprecated": false, - "name": "IR" + "name": "ANG" }, { "deprecationReason": null, - "description": "IS", + "description": "AOA", "isDeprecated": false, - "name": "IS" + "name": "AOA" }, { "deprecationReason": null, - "description": "IT", + "description": "ARS", "isDeprecated": false, - "name": "IT" + "name": "ARS" }, { "deprecationReason": null, - "description": "JE", + "description": "AUD", "isDeprecated": false, - "name": "JE" + "name": "AUD" }, { "deprecationReason": null, - "description": "JM", + "description": "AWG", "isDeprecated": false, - "name": "JM" + "name": "AWG" }, { "deprecationReason": null, - "description": "JO", + "description": "AZN", "isDeprecated": false, - "name": "JO" + "name": "AZN" }, { "deprecationReason": null, - "description": "JP", + "description": "BAM", "isDeprecated": false, - "name": "JP" + "name": "BAM" }, { "deprecationReason": null, - "description": "KE", + "description": "BBD", "isDeprecated": false, - "name": "KE" + "name": "BBD" }, { "deprecationReason": null, - "description": "KG", + "description": "BDT", "isDeprecated": false, - "name": "KG" + "name": "BDT" }, { "deprecationReason": null, - "description": "KH", + "description": "XOF", "isDeprecated": false, - "name": "KH" + "name": "XOF" }, { "deprecationReason": null, - "description": "KI", + "description": "BGN", "isDeprecated": false, - "name": "KI" + "name": "BGN" }, { "deprecationReason": null, - "description": "KM", + "description": "BHD", "isDeprecated": false, - "name": "KM" + "name": "BHD" }, { "deprecationReason": null, - "description": "KN", + "description": "BIF", "isDeprecated": false, - "name": "KN" + "name": "BIF" }, { "deprecationReason": null, - "description": "KP", + "description": "BMD", "isDeprecated": false, - "name": "KP" + "name": "BMD" }, { "deprecationReason": null, - "description": "KR", + "description": "BND", "isDeprecated": false, - "name": "KR" + "name": "BND" }, { "deprecationReason": null, - "description": "KV", + "description": "BOB", "isDeprecated": false, - "name": "KV" + "name": "BOB" }, { "deprecationReason": null, - "description": "KW", + "description": "BRL", "isDeprecated": false, - "name": "KW" + "name": "BRL" }, { "deprecationReason": null, - "description": "KY", + "description": "BSD", "isDeprecated": false, - "name": "KY" + "name": "BSD" }, { "deprecationReason": null, - "description": "KZ", + "description": "BTN", "isDeprecated": false, - "name": "KZ" + "name": "BTN" }, { "deprecationReason": null, - "description": "LA", + "description": "BWP", "isDeprecated": false, - "name": "LA" + "name": "BWP" }, { "deprecationReason": null, - "description": "LB", + "description": "BYN", "isDeprecated": false, - "name": "LB" + "name": "BYN" }, { "deprecationReason": null, - "description": "LC", + "description": "BZD", "isDeprecated": false, - "name": "LC" + "name": "BZD" }, { "deprecationReason": null, - "description": "LI", + "description": "CAD", "isDeprecated": false, - "name": "LI" + "name": "CAD" }, { "deprecationReason": null, - "description": "LK", + "description": "CDF", "isDeprecated": false, - "name": "LK" + "name": "CDF" }, { "deprecationReason": null, - "description": "LR", + "description": "XAF", "isDeprecated": false, - "name": "LR" + "name": "XAF" }, { "deprecationReason": null, - "description": "LS", + "description": "CHF", "isDeprecated": false, - "name": "LS" + "name": "CHF" }, { "deprecationReason": null, - "description": "LT", + "description": "NZD", "isDeprecated": false, - "name": "LT" + "name": "NZD" }, { "deprecationReason": null, - "description": "LU", + "description": "CLP", "isDeprecated": false, - "name": "LU" + "name": "CLP" }, { "deprecationReason": null, - "description": "LV", + "description": "CNY", "isDeprecated": false, - "name": "LV" + "name": "CNY" }, { "deprecationReason": null, - "description": "LY", + "description": "COP", "isDeprecated": false, - "name": "LY" + "name": "COP" }, { "deprecationReason": null, - "description": "MA", + "description": "CRC", "isDeprecated": false, - "name": "MA" + "name": "CRC" }, { "deprecationReason": null, - "description": "MC", + "description": "CUC", "isDeprecated": false, - "name": "MC" + "name": "CUC" }, { "deprecationReason": null, - "description": "MD", + "description": "CVE", "isDeprecated": false, - "name": "MD" + "name": "CVE" }, { "deprecationReason": null, - "description": "ME", + "description": "CZK", "isDeprecated": false, - "name": "ME" + "name": "CZK" }, { "deprecationReason": null, - "description": "MG", + "description": "DJF", "isDeprecated": false, - "name": "MG" + "name": "DJF" }, { "deprecationReason": null, - "description": "MH", + "description": "DKK", "isDeprecated": false, - "name": "MH" + "name": "DKK" }, { "deprecationReason": null, - "description": "MK", + "description": "DOP", "isDeprecated": false, - "name": "MK" + "name": "DOP" }, { "deprecationReason": null, - "description": "ML", + "description": "DZD", "isDeprecated": false, - "name": "ML" + "name": "DZD" }, { "deprecationReason": null, - "description": "MM", + "description": "EGP", "isDeprecated": false, - "name": "MM" + "name": "EGP" }, { "deprecationReason": null, - "description": "MN", + "description": "ERN", "isDeprecated": false, - "name": "MN" + "name": "ERN" }, { "deprecationReason": null, - "description": "MO", + "description": "ETB", "isDeprecated": false, - "name": "MO" + "name": "ETB" }, { "deprecationReason": null, - "description": "MP", + "description": "FJD", "isDeprecated": false, - "name": "MP" + "name": "FJD" }, { "deprecationReason": null, - "description": "MQ", + "description": "GBP", "isDeprecated": false, - "name": "MQ" + "name": "GBP" }, { "deprecationReason": null, - "description": "MR", + "description": "GEL", "isDeprecated": false, - "name": "MR" + "name": "GEL" }, { "deprecationReason": null, - "description": "MS", + "description": "GHS", "isDeprecated": false, - "name": "MS" + "name": "GHS" }, { "deprecationReason": null, - "description": "MT", + "description": "GMD", "isDeprecated": false, - "name": "MT" + "name": "GMD" }, { "deprecationReason": null, - "description": "MU", + "description": "GNF", "isDeprecated": false, - "name": "MU" + "name": "GNF" }, { "deprecationReason": null, - "description": "MV", + "description": "GTQ", "isDeprecated": false, - "name": "MV" + "name": "GTQ" }, { "deprecationReason": null, - "description": "MW", + "description": "GYD", "isDeprecated": false, - "name": "MW" + "name": "GYD" }, { "deprecationReason": null, - "description": "MX", + "description": "HKD", "isDeprecated": false, - "name": "MX" + "name": "HKD" }, { "deprecationReason": null, - "description": "MY", + "description": "HNL", "isDeprecated": false, - "name": "MY" + "name": "HNL" }, { "deprecationReason": null, - "description": "MZ", + "description": "HRK", "isDeprecated": false, - "name": "MZ" + "name": "HRK" }, { "deprecationReason": null, - "description": "NA", + "description": "HTG", "isDeprecated": false, - "name": "NA" + "name": "HTG" }, { "deprecationReason": null, - "description": "NC", + "description": "HUF", "isDeprecated": false, - "name": "NC" + "name": "HUF" }, { "deprecationReason": null, - "description": "NE", + "description": "IDR", "isDeprecated": false, - "name": "NE" + "name": "IDR" }, { "deprecationReason": null, - "description": "NG", + "description": "ILS", "isDeprecated": false, - "name": "NG" + "name": "ILS" }, { "deprecationReason": null, - "description": "NI", + "description": "INR", "isDeprecated": false, - "name": "NI" + "name": "INR" }, { "deprecationReason": null, - "description": "NL", + "description": "IRR", "isDeprecated": false, - "name": "NL" + "name": "IRR" }, { "deprecationReason": null, - "description": "NO", + "description": "ISK", "isDeprecated": false, - "name": "NO" + "name": "ISK" }, { "deprecationReason": null, - "description": "NP", + "description": "JMD", "isDeprecated": false, - "name": "NP" + "name": "JMD" }, { "deprecationReason": null, - "description": "NR", + "description": "JOD", "isDeprecated": false, - "name": "NR" + "name": "JOD" }, { "deprecationReason": null, - "description": "NU", + "description": "JPY", "isDeprecated": false, - "name": "NU" + "name": "JPY" }, { "deprecationReason": null, - "description": "NZ", + "description": "KES", "isDeprecated": false, - "name": "NZ" + "name": "KES" }, { "deprecationReason": null, - "description": "OM", + "description": "KGS", "isDeprecated": false, - "name": "OM" + "name": "KGS" }, { "deprecationReason": null, - "description": "PA", + "description": "KHR", "isDeprecated": false, - "name": "PA" + "name": "KHR" }, { "deprecationReason": null, - "description": "PE", + "description": "KMF", "isDeprecated": false, - "name": "PE" + "name": "KMF" }, { "deprecationReason": null, - "description": "PF", + "description": "KPW", "isDeprecated": false, - "name": "PF" + "name": "KPW" }, { "deprecationReason": null, - "description": "PG", + "description": "KRW", "isDeprecated": false, - "name": "PG" + "name": "KRW" }, { "deprecationReason": null, - "description": "PH", + "description": "KWD", "isDeprecated": false, - "name": "PH" + "name": "KWD" }, { "deprecationReason": null, - "description": "PK", + "description": "KYD", "isDeprecated": false, - "name": "PK" + "name": "KYD" }, { "deprecationReason": null, - "description": "PL", + "description": "KZT", "isDeprecated": false, - "name": "PL" + "name": "KZT" }, { "deprecationReason": null, - "description": "PR", + "description": "LAK", "isDeprecated": false, - "name": "PR" + "name": "LAK" }, { "deprecationReason": null, - "description": "PT", + "description": "LKR", "isDeprecated": false, - "name": "PT" + "name": "LKR" }, { "deprecationReason": null, - "description": "PW", + "description": "LRD", "isDeprecated": false, - "name": "PW" + "name": "LRD" }, { "deprecationReason": null, - "description": "PY", + "description": "LSL", "isDeprecated": false, - "name": "PY" + "name": "LSL" }, { "deprecationReason": null, - "description": "QA", + "description": "LYD", "isDeprecated": false, - "name": "QA" + "name": "LYD" }, { "deprecationReason": null, - "description": "RE", + "description": "MAD", "isDeprecated": false, - "name": "RE" + "name": "MAD" }, { "deprecationReason": null, - "description": "RO", + "description": "MDL", "isDeprecated": false, - "name": "RO" + "name": "MDL" }, { "deprecationReason": null, - "description": "RS", + "description": "MGA", "isDeprecated": false, - "name": "RS" + "name": "MGA" }, { "deprecationReason": null, - "description": "RU", + "description": "MKD", "isDeprecated": false, - "name": "RU" + "name": "MKD" }, { "deprecationReason": null, - "description": "RW", + "description": "MMK", "isDeprecated": false, - "name": "RW" + "name": "MMK" }, { "deprecationReason": null, - "description": "SA", + "description": "MNT", "isDeprecated": false, - "name": "SA" + "name": "MNT" }, { "deprecationReason": null, - "description": "SB", + "description": "MOP", "isDeprecated": false, - "name": "SB" + "name": "MOP" }, { "deprecationReason": null, - "description": "SC", + "description": "MRO", "isDeprecated": false, - "name": "SC" + "name": "MRO" }, { "deprecationReason": null, - "description": "SD", + "description": "MUR", "isDeprecated": false, - "name": "SD" + "name": "MUR" }, { "deprecationReason": null, - "description": "SE", + "description": "MVR", "isDeprecated": false, - "name": "SE" + "name": "MVR" }, { "deprecationReason": null, - "description": "SG", + "description": "MWK", "isDeprecated": false, - "name": "SG" + "name": "MWK" }, { "deprecationReason": null, - "description": "SH", + "description": "MXN", "isDeprecated": false, - "name": "SH" + "name": "MXN" }, { "deprecationReason": null, - "description": "SI", + "description": "MYR", "isDeprecated": false, - "name": "SI" + "name": "MYR" }, { "deprecationReason": null, - "description": "SK", + "description": "MZN", "isDeprecated": false, - "name": "SK" + "name": "MZN" }, { "deprecationReason": null, - "description": "SL", + "description": "NAD", "isDeprecated": false, - "name": "SL" + "name": "NAD" }, { "deprecationReason": null, - "description": "SM", + "description": "XPF", "isDeprecated": false, - "name": "SM" + "name": "XPF" }, { "deprecationReason": null, - "description": "SN", + "description": "NGN", "isDeprecated": false, - "name": "SN" + "name": "NGN" }, { "deprecationReason": null, - "description": "SO", + "description": "NIO", "isDeprecated": false, - "name": "SO" + "name": "NIO" }, { "deprecationReason": null, - "description": "SR", + "description": "NOK", "isDeprecated": false, - "name": "SR" + "name": "NOK" }, { "deprecationReason": null, - "description": "SS", + "description": "NPR", "isDeprecated": false, - "name": "SS" + "name": "NPR" }, { "deprecationReason": null, - "description": "ST", + "description": "OMR", "isDeprecated": false, - "name": "ST" + "name": "OMR" }, { "deprecationReason": null, - "description": "SV", + "description": "PEN", "isDeprecated": false, - "name": "SV" + "name": "PEN" }, { "deprecationReason": null, - "description": "SY", + "description": "PGK", "isDeprecated": false, - "name": "SY" + "name": "PGK" }, { "deprecationReason": null, - "description": "SZ", + "description": "PHP", "isDeprecated": false, - "name": "SZ" + "name": "PHP" }, { "deprecationReason": null, - "description": "TC", + "description": "PKR", "isDeprecated": false, - "name": "TC" + "name": "PKR" }, { "deprecationReason": null, - "description": "TD", + "description": "PLN", "isDeprecated": false, - "name": "TD" + "name": "PLN" }, { "deprecationReason": null, - "description": "TG", + "description": "PYG", "isDeprecated": false, - "name": "TG" + "name": "PYG" }, { "deprecationReason": null, - "description": "TH", + "description": "QAR", "isDeprecated": false, - "name": "TH" + "name": "QAR" }, { "deprecationReason": null, - "description": "TJ", + "description": "RSD", "isDeprecated": false, - "name": "TJ" + "name": "RSD" }, { "deprecationReason": null, - "description": "TL", + "description": "RUB", "isDeprecated": false, - "name": "TL" + "name": "RUB" }, { "deprecationReason": null, - "description": "TN", + "description": "RWF", "isDeprecated": false, - "name": "TN" + "name": "RWF" }, { "deprecationReason": null, - "description": "TO", + "description": "SAR", "isDeprecated": false, - "name": "TO" + "name": "SAR" }, { "deprecationReason": null, - "description": "TR", + "description": "SBD", "isDeprecated": false, - "name": "TR" + "name": "SBD" }, { "deprecationReason": null, - "description": "TT", + "description": "SCR", "isDeprecated": false, - "name": "TT" + "name": "SCR" }, { "deprecationReason": null, - "description": "TV", + "description": "SDG", "isDeprecated": false, - "name": "TV" + "name": "SDG" }, { "deprecationReason": null, - "description": "TW", + "description": "SEK", "isDeprecated": false, - "name": "TW" + "name": "SEK" }, { "deprecationReason": null, - "description": "TZ", + "description": "SGD", "isDeprecated": false, - "name": "TZ" + "name": "SGD" }, { "deprecationReason": null, - "description": "UA", + "description": "SHP", "isDeprecated": false, - "name": "UA" + "name": "SHP" }, { "deprecationReason": null, - "description": "UG", + "description": "SLL", "isDeprecated": false, - "name": "UG" + "name": "SLL" }, { "deprecationReason": null, - "description": "US", + "description": "SOS", "isDeprecated": false, - "name": "US" + "name": "SOS" }, { "deprecationReason": null, - "description": "UY", + "description": "SRD", "isDeprecated": false, - "name": "UY" + "name": "SRD" }, { "deprecationReason": null, - "description": "UZ", + "description": "SSP", "isDeprecated": false, - "name": "UZ" + "name": "SSP" }, { "deprecationReason": null, - "description": "VA", + "description": "STD", "isDeprecated": false, - "name": "VA" + "name": "STD" }, { "deprecationReason": null, - "description": "VC", + "description": "SYP", "isDeprecated": false, - "name": "VC" + "name": "SYP" }, { "deprecationReason": null, - "description": "VE", + "description": "SZL", "isDeprecated": false, - "name": "VE" + "name": "SZL" }, { "deprecationReason": null, - "description": "VG", + "description": "THB", "isDeprecated": false, - "name": "VG" + "name": "THB" }, { "deprecationReason": null, - "description": "VI", + "description": "TJS", "isDeprecated": false, - "name": "VI" + "name": "TJS" }, { "deprecationReason": null, - "description": "VN", + "description": "TND", "isDeprecated": false, - "name": "VN" + "name": "TND" }, { "deprecationReason": null, - "description": "VU", + "description": "TOP", "isDeprecated": false, - "name": "VU" + "name": "TOP" }, { "deprecationReason": null, - "description": "WS", + "description": "TRY", "isDeprecated": false, - "name": "WS" + "name": "TRY" }, { "deprecationReason": null, - "description": "XB", + "description": "TTD", "isDeprecated": false, - "name": "XB" + "name": "TTD" }, { "deprecationReason": null, - "description": "XC", + "description": "TWD", "isDeprecated": false, - "name": "XC" + "name": "TWD" }, { "deprecationReason": null, - "description": "XE", + "description": "TZS", "isDeprecated": false, - "name": "XE" + "name": "TZS" }, { "deprecationReason": null, - "description": "XM", + "description": "UAH", "isDeprecated": false, - "name": "XM" + "name": "UAH" }, { "deprecationReason": null, - "description": "XN", + "description": "UYU", "isDeprecated": false, - "name": "XN" + "name": "UYU" }, { "deprecationReason": null, - "description": "XS", + "description": "UZS", "isDeprecated": false, - "name": "XS" + "name": "UZS" }, { "deprecationReason": null, - "description": "XY", + "description": "VEF", "isDeprecated": false, - "name": "XY" + "name": "VEF" }, { "deprecationReason": null, - "description": "YE", + "description": "VND", "isDeprecated": false, - "name": "YE" + "name": "VND" }, { "deprecationReason": null, - "description": "YT", + "description": "VUV", "isDeprecated": false, - "name": "YT" + "name": "VUV" }, { "deprecationReason": null, - "description": "ZA", + "description": "WST", "isDeprecated": false, - "name": "ZA" + "name": "WST" }, { "deprecationReason": null, - "description": "ZM", + "description": "YER", "isDeprecated": false, - "name": "ZM" + "name": "YER" }, { "deprecationReason": null, - "description": "ZW", + "description": "ZAR", "isDeprecated": false, - "name": "ZW" + "name": "ZAR" } ], "fields": null, "inputFields": null, "interfaces": null, "kind": "ENUM", - "name": "origin_country", + "name": "value_currency", "possibleTypes": null }, { @@ -17489,2937 +25965,1414 @@ "enumValues": [ { "deprecationReason": null, - "description": "CFR", + "description": "AD", "isDeprecated": false, - "name": "CFR" + "name": "AD" }, { "deprecationReason": null, - "description": "CIF", + "description": "AE", "isDeprecated": false, - "name": "CIF" + "name": "AE" }, { "deprecationReason": null, - "description": "CIP", + "description": "AF", "isDeprecated": false, - "name": "CIP" + "name": "AF" }, { "deprecationReason": null, - "description": "CPT", + "description": "AG", "isDeprecated": false, - "name": "CPT" + "name": "AG" }, { "deprecationReason": null, - "description": "DAF", + "description": "AI", "isDeprecated": false, - "name": "DAF" + "name": "AI" }, { "deprecationReason": null, - "description": "DDP", + "description": "AL", "isDeprecated": false, - "name": "DDP" + "name": "AL" }, { "deprecationReason": null, - "description": "DDU", + "description": "AM", "isDeprecated": false, - "name": "DDU" + "name": "AM" }, { "deprecationReason": null, - "description": "DEQ", + "description": "AN", "isDeprecated": false, - "name": "DEQ" + "name": "AN" }, { "deprecationReason": null, - "description": "DES", + "description": "AO", "isDeprecated": false, - "name": "DES" + "name": "AO" }, { "deprecationReason": null, - "description": "EXW", + "description": "AR", "isDeprecated": false, - "name": "EXW" + "name": "AR" }, { "deprecationReason": null, - "description": "FAS", + "description": "AS", "isDeprecated": false, - "name": "FAS" + "name": "AS" }, { "deprecationReason": null, - "description": "FCA", + "description": "AT", "isDeprecated": false, - "name": "FCA" + "name": "AT" }, { "deprecationReason": null, - "description": "FOB", + "description": "AU", "isDeprecated": false, - "name": "FOB" - } - ], - "fields": null, - "inputFields": null, - "interfaces": null, - "kind": "ENUM", - "name": "incoterm", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ + "name": "AU" + }, { - "defaultValue": null, - "description": null, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "AW", + "isDeprecated": false, + "name": "AW" }, { - "defaultValue": null, - "description": null, - "name": "weight", - "type": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - } + "deprecationReason": null, + "description": "AZ", + "isDeprecated": false, + "name": "AZ" }, { - "defaultValue": null, - "description": null, - "name": "width", - "type": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - } + "deprecationReason": null, + "description": "BA", + "isDeprecated": false, + "name": "BA" + }, + { + "deprecationReason": null, + "description": "BB", + "isDeprecated": false, + "name": "BB" }, { - "defaultValue": null, - "description": null, - "name": "height", - "type": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - } + "deprecationReason": null, + "description": "BD", + "isDeprecated": false, + "name": "BD" }, { - "defaultValue": null, - "description": null, - "name": "length", - "type": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - } + "deprecationReason": null, + "description": "BE", + "isDeprecated": false, + "name": "BE" }, { - "defaultValue": null, - "description": null, - "name": "packaging_type", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "BF", + "isDeprecated": false, + "name": "BF" }, { - "defaultValue": null, - "description": null, - "name": "package_preset", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "BG", + "isDeprecated": false, + "name": "BG" }, { - "defaultValue": null, - "description": null, - "name": "description", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "BH", + "isDeprecated": false, + "name": "BH" }, { - "defaultValue": null, - "description": null, - "name": "content", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "BI", + "isDeprecated": false, + "name": "BI" }, { - "defaultValue": null, - "description": null, - "name": "is_document", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "BJ", + "isDeprecated": false, + "name": "BJ" }, { - "defaultValue": null, - "description": null, - "name": "weight_unit", - "type": { - "kind": "ENUM", - "name": "weight_unit", - "ofType": null - } + "deprecationReason": null, + "description": "BM", + "isDeprecated": false, + "name": "BM" }, { - "defaultValue": null, - "description": null, - "name": "dimension_unit", - "type": { - "kind": "ENUM", - "name": "dimension_unit", - "ofType": null - } - } - ], - "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "PartialParcelModelSerializerInput", - "possibleTypes": null - }, - { - "description": "An enumeration.", - "enumValues": [ + "deprecationReason": null, + "description": "BN", + "isDeprecated": false, + "name": "BN" + }, { "deprecationReason": null, - "description": "KG", + "description": "BO", "isDeprecated": false, - "name": "KG" + "name": "BO" }, { "deprecationReason": null, - "description": "LB", + "description": "BR", "isDeprecated": false, - "name": "LB" - } - ], - "fields": null, - "inputFields": null, - "interfaces": null, - "kind": "ENUM", - "name": "weight_unit", - "possibleTypes": null - }, - { - "description": "An enumeration.", - "enumValues": [ + "name": "BR" + }, { "deprecationReason": null, - "description": "CM", + "description": "BS", "isDeprecated": false, - "name": "CM" + "name": "BS" }, { "deprecationReason": null, - "description": "IN", + "description": "BT", "isDeprecated": false, - "name": "IN" - } - ], - "fields": null, - "inputFields": null, - "interfaces": null, - "kind": "ENUM", - "name": "dimension_unit", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ + "name": "BT" + }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "BW", "isDeprecated": false, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "name": "BW" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "BY", "isDeprecated": false, - "name": "address", - "type": { - "kind": "OBJECT", - "name": "AddressType", - "ofType": null - } + "name": "BY" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "BZ", "isDeprecated": false, - "name": "customs", - "type": { - "kind": "OBJECT", - "name": "CustomsType", - "ofType": null - } + "name": "BZ" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "CA", "isDeprecated": false, - "name": "parcel", - "type": { - "kind": "OBJECT", - "name": "ParcelType", - "ofType": null - } + "name": "CA" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "CD", "isDeprecated": false, - "name": "label", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "name": "CD" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "CF", "isDeprecated": false, - "name": "is_default", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "name": "CF" }, { - "args": [], "deprecationReason": null, - "description": "May contain more than one error for same field.", + "description": "CG", "isDeprecated": false, - "name": "errors", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ErrorType", - "ofType": null - } - } + "name": "CG" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "CH", "isDeprecated": false, - "name": "clientMutationId", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "UpdateTemplatePayload", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ + "name": "CH" + }, { - "defaultValue": null, - "description": null, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "CI", + "isDeprecated": false, + "name": "CI" }, { - "defaultValue": null, - "description": null, - "name": "address", - "type": { - "kind": "INPUT_OBJECT", - "name": "PartialAddressModelSerializerInput", - "ofType": null - } + "deprecationReason": null, + "description": "CK", + "isDeprecated": false, + "name": "CK" }, { - "defaultValue": null, - "description": null, - "name": "customs", - "type": { - "kind": "INPUT_OBJECT", - "name": "PartialCustomsModelSerializerInput", - "ofType": null - } + "deprecationReason": null, + "description": "CL", + "isDeprecated": false, + "name": "CL" }, { - "defaultValue": null, - "description": null, - "name": "parcel", - "type": { - "kind": "INPUT_OBJECT", - "name": "PartialParcelModelSerializerInput", - "ofType": null - } + "deprecationReason": null, + "description": "CM", + "isDeprecated": false, + "name": "CM" }, { - "defaultValue": null, - "description": null, - "name": "label", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "CN", + "isDeprecated": false, + "name": "CN" }, { - "defaultValue": null, - "description": null, - "name": "is_default", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "CO", + "isDeprecated": false, + "name": "CO" }, { - "defaultValue": null, - "description": null, - "name": "clientMutationId", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - ], - "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "UpdateTemplateInput", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ + "deprecationReason": null, + "description": "CR", + "isDeprecated": false, + "name": "CR" + }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "CU", "isDeprecated": false, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "name": "CU" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "CV", "isDeprecated": false, - "name": "clientMutationId", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "DeleteTemplatePayload", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ + "name": "CV" + }, { - "defaultValue": null, - "description": null, - "name": "id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "CY", + "isDeprecated": false, + "name": "CY" }, { - "defaultValue": null, - "description": null, - "name": "clientMutationId", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - ], - "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "DeleteTemplateInput", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ + "deprecationReason": null, + "description": "CZ", + "isDeprecated": false, + "name": "CZ" + }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "DE", "isDeprecated": false, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "name": "DE" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "DJ", "isDeprecated": false, - "name": "clientMutationId", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "DiscardCommodityPayload", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ + "name": "DJ" + }, { - "defaultValue": null, - "description": null, - "name": "id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "DK", + "isDeprecated": false, + "name": "DK" }, { - "defaultValue": null, - "description": null, - "name": "clientMutationId", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - ], - "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "DiscardCommodityInput", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ + "deprecationReason": null, + "description": "DM", + "isDeprecated": false, + "name": "DM" + }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "DO", "isDeprecated": false, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "name": "DO" + }, + { + "deprecationReason": null, + "description": "DZ", + "isDeprecated": false, + "name": "DZ" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "EC", "isDeprecated": false, - "name": "aramexsettings", - "type": { - "kind": "OBJECT", - "name": "AramexSettings", - "ofType": null - } + "name": "EC" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "EE", "isDeprecated": false, - "name": "australiapostsettings", - "type": { - "kind": "OBJECT", - "name": "AustraliaPostSettings", - "ofType": null - } + "name": "EE" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "EG", "isDeprecated": false, - "name": "canadapostsettings", - "type": { - "kind": "OBJECT", - "name": "CanadaPostSettings", - "ofType": null - } + "name": "EG" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "ER", "isDeprecated": false, - "name": "canparsettings", - "type": { - "kind": "OBJECT", - "name": "CanparSettings", - "ofType": null - } + "name": "ER" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "ES", "isDeprecated": false, - "name": "dhlexpresssettings", - "type": { - "kind": "OBJECT", - "name": "DHLExpressSettings", - "ofType": null - } + "name": "ES" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "ET", "isDeprecated": false, - "name": "dhluniversalsettings", - "type": { - "kind": "OBJECT", - "name": "DHLUniversalSettings", - "ofType": null - } + "name": "ET" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "FI", "isDeprecated": false, - "name": "dicomsettings", - "type": { - "kind": "OBJECT", - "name": "DicomSettings", - "ofType": null - } + "name": "FI" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "FJ", "isDeprecated": false, - "name": "eshippersettings", - "type": { - "kind": "OBJECT", - "name": "EShipperSettings", - "ofType": null - } + "name": "FJ" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "FK", "isDeprecated": false, - "name": "fedexsettings", - "type": { - "kind": "OBJECT", - "name": "FedexSettings", - "ofType": null - } + "name": "FK" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "FM", "isDeprecated": false, - "name": "freightcomsettings", - "type": { - "kind": "OBJECT", - "name": "FreightcomSettings", - "ofType": null - } + "name": "FM" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "FO", "isDeprecated": false, - "name": "purolatorsettings", - "type": { - "kind": "OBJECT", - "name": "PurolatorSettings", - "ofType": null - } + "name": "FO" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "FR", "isDeprecated": false, - "name": "royalmailsettings", - "type": { - "kind": "OBJECT", - "name": "RoyalMailSettings", - "ofType": null - } + "name": "FR" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "GA", "isDeprecated": false, - "name": "sendlesettings", - "type": { - "kind": "OBJECT", - "name": "SendleSettings", - "ofType": null - } + "name": "GA" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "GB", "isDeprecated": false, - "name": "sfexpresssettings", - "type": { - "kind": "OBJECT", - "name": "SFExpressSettings", - "ofType": null - } + "name": "GB" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "GD", "isDeprecated": false, - "name": "tntsettings", - "type": { - "kind": "OBJECT", - "name": "TNTSettings", - "ofType": null - } + "name": "GD" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "GE", "isDeprecated": false, - "name": "upssettings", - "type": { - "kind": "OBJECT", - "name": "UPSSettings", - "ofType": null - } + "name": "GE" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "GF", "isDeprecated": false, - "name": "uspssettings", - "type": { - "kind": "OBJECT", - "name": "USPSSettings", - "ofType": null - } + "name": "GF" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "GG", "isDeprecated": false, - "name": "uspsinternationalsettings", - "type": { - "kind": "OBJECT", - "name": "USPSInternationalSettings", - "ofType": null - } + "name": "GG" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "GH", "isDeprecated": false, - "name": "yanwensettings", - "type": { - "kind": "OBJECT", - "name": "YanwenSettings", - "ofType": null - } + "name": "GH" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "GI", "isDeprecated": false, - "name": "yunexpresssettings", - "type": { - "kind": "OBJECT", - "name": "YunExpressSettings", - "ofType": null - } + "name": "GI" }, { - "args": [], "deprecationReason": null, - "description": "May contain more than one error for same field.", + "description": "GL", "isDeprecated": false, - "name": "errors", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ErrorType", - "ofType": null - } - } + "name": "GL" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "GM", "isDeprecated": false, - "name": "clientMutationId", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "CreateConnectionPayload", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ - { - "defaultValue": null, - "description": null, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "name": "GM" }, { - "defaultValue": null, - "description": null, - "name": "aramexsettings", - "type": { - "kind": "INPUT_OBJECT", - "name": "AramexSettingsInput", - "ofType": null - } + "deprecationReason": null, + "description": "GN", + "isDeprecated": false, + "name": "GN" }, { - "defaultValue": null, - "description": null, - "name": "australiapostsettings", - "type": { - "kind": "INPUT_OBJECT", - "name": "AustraliaPostSettingsInput", - "ofType": null - } + "deprecationReason": null, + "description": "GP", + "isDeprecated": false, + "name": "GP" }, { - "defaultValue": null, - "description": null, - "name": "canadapostsettings", - "type": { - "kind": "INPUT_OBJECT", - "name": "CanadaPostSettingsInput", - "ofType": null - } + "deprecationReason": null, + "description": "GQ", + "isDeprecated": false, + "name": "GQ" }, { - "defaultValue": null, - "description": null, - "name": "canparsettings", - "type": { - "kind": "INPUT_OBJECT", - "name": "CanparSettingsInput", - "ofType": null - } + "deprecationReason": null, + "description": "GR", + "isDeprecated": false, + "name": "GR" }, { - "defaultValue": null, - "description": null, - "name": "dhlexpresssettings", - "type": { - "kind": "INPUT_OBJECT", - "name": "DHLExpressSettingsInput", - "ofType": null - } + "deprecationReason": null, + "description": "GT", + "isDeprecated": false, + "name": "GT" }, { - "defaultValue": null, - "description": null, - "name": "dhluniversalsettings", - "type": { - "kind": "INPUT_OBJECT", - "name": "DHLUniversalSettingsInput", - "ofType": null - } + "deprecationReason": null, + "description": "GU", + "isDeprecated": false, + "name": "GU" }, { - "defaultValue": null, - "description": null, - "name": "dicomsettings", - "type": { - "kind": "INPUT_OBJECT", - "name": "DicomSettingsInput", - "ofType": null - } + "deprecationReason": null, + "description": "GW", + "isDeprecated": false, + "name": "GW" }, { - "defaultValue": null, - "description": null, - "name": "eshippersettings", - "type": { - "kind": "INPUT_OBJECT", - "name": "EShipperSettingsInput", - "ofType": null - } + "deprecationReason": null, + "description": "GY", + "isDeprecated": false, + "name": "GY" }, { - "defaultValue": null, - "description": null, - "name": "fedexsettings", - "type": { - "kind": "INPUT_OBJECT", - "name": "FedexSettingsInput", - "ofType": null - } + "deprecationReason": null, + "description": "HK", + "isDeprecated": false, + "name": "HK" }, { - "defaultValue": null, - "description": null, - "name": "freightcomsettings", - "type": { - "kind": "INPUT_OBJECT", - "name": "FreightcomSettingsInput", - "ofType": null - } + "deprecationReason": null, + "description": "HN", + "isDeprecated": false, + "name": "HN" }, { - "defaultValue": null, - "description": null, - "name": "purolatorsettings", - "type": { - "kind": "INPUT_OBJECT", - "name": "PurolatorSettingsInput", - "ofType": null - } + "deprecationReason": null, + "description": "HR", + "isDeprecated": false, + "name": "HR" }, { - "defaultValue": null, - "description": null, - "name": "royalmailsettings", - "type": { - "kind": "INPUT_OBJECT", - "name": "RoyalMailSettingsInput", - "ofType": null - } + "deprecationReason": null, + "description": "HT", + "isDeprecated": false, + "name": "HT" }, { - "defaultValue": null, - "description": null, - "name": "sendlesettings", - "type": { - "kind": "INPUT_OBJECT", - "name": "SendleSettingsInput", - "ofType": null - } + "deprecationReason": null, + "description": "HU", + "isDeprecated": false, + "name": "HU" }, { - "defaultValue": null, - "description": null, - "name": "sfexpresssettings", - "type": { - "kind": "INPUT_OBJECT", - "name": "SFExpressSettingsInput", - "ofType": null - } + "deprecationReason": null, + "description": "IC", + "isDeprecated": false, + "name": "IC" }, { - "defaultValue": null, - "description": null, - "name": "tntsettings", - "type": { - "kind": "INPUT_OBJECT", - "name": "TNTSettingsInput", - "ofType": null - } + "deprecationReason": null, + "description": "ID", + "isDeprecated": false, + "name": "ID" }, { - "defaultValue": null, - "description": null, - "name": "upssettings", - "type": { - "kind": "INPUT_OBJECT", - "name": "UPSSettingsInput", - "ofType": null - } + "deprecationReason": null, + "description": "IE", + "isDeprecated": false, + "name": "IE" }, { - "defaultValue": null, - "description": null, - "name": "uspssettings", - "type": { - "kind": "INPUT_OBJECT", - "name": "USPSSettingsInput", - "ofType": null - } + "deprecationReason": null, + "description": "IL", + "isDeprecated": false, + "name": "IL" }, { - "defaultValue": null, - "description": null, - "name": "uspsinternationalsettings", - "type": { - "kind": "INPUT_OBJECT", - "name": "USPSInternationalSettingsInput", - "ofType": null - } + "deprecationReason": null, + "description": "IN", + "isDeprecated": false, + "name": "IN" }, { - "defaultValue": null, - "description": null, - "name": "yanwensettings", - "type": { - "kind": "INPUT_OBJECT", - "name": "YanwenSettingsInput", - "ofType": null - } + "deprecationReason": null, + "description": "IQ", + "isDeprecated": false, + "name": "IQ" }, { - "defaultValue": null, - "description": null, - "name": "yunexpresssettings", - "type": { - "kind": "INPUT_OBJECT", - "name": "YunExpressSettingsInput", - "ofType": null - } + "deprecationReason": null, + "description": "IR", + "isDeprecated": false, + "name": "IR" }, { - "defaultValue": null, - "description": null, - "name": "clientMutationId", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - ], - "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "CreateConnectionInput", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ + "deprecationReason": null, + "description": "IS", + "isDeprecated": false, + "name": "IS" + }, + { + "deprecationReason": null, + "description": "IT", + "isDeprecated": false, + "name": "IT" + }, { - "defaultValue": null, - "description": null, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "JE", + "isDeprecated": false, + "name": "JE" }, { - "defaultValue": null, - "description": null, - "name": "account_country_code", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "JM", + "isDeprecated": false, + "name": "JM" }, { - "defaultValue": null, - "description": null, - "name": "carrier_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "JO", + "isDeprecated": false, + "name": "JO" }, { - "defaultValue": null, - "description": null, - "name": "test", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "JP", + "isDeprecated": false, + "name": "JP" }, { - "defaultValue": null, - "description": null, - "name": "active", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "KE", + "isDeprecated": false, + "name": "KE" }, { - "defaultValue": null, - "description": null, - "name": "username", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "KG", + "isDeprecated": false, + "name": "KG" }, { - "defaultValue": null, - "description": null, - "name": "password", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "KH", + "isDeprecated": false, + "name": "KH" }, { - "defaultValue": null, - "description": null, - "name": "account_pin", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "KI", + "isDeprecated": false, + "name": "KI" }, { - "defaultValue": null, - "description": null, - "name": "account_entity", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "KM", + "isDeprecated": false, + "name": "KM" }, { - "defaultValue": null, - "description": null, - "name": "account_number", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - ], - "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "AramexSettingsInput", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ + "deprecationReason": null, + "description": "KN", + "isDeprecated": false, + "name": "KN" + }, { - "defaultValue": null, - "description": null, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "KP", + "isDeprecated": false, + "name": "KP" }, { - "defaultValue": null, - "description": null, - "name": "carrier_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "KR", + "isDeprecated": false, + "name": "KR" }, { - "defaultValue": null, - "description": null, - "name": "test", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "KV", + "isDeprecated": false, + "name": "KV" }, { - "defaultValue": null, - "description": null, - "name": "active", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "KW", + "isDeprecated": false, + "name": "KW" }, { - "defaultValue": null, - "description": null, - "name": "api_key", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "KY", + "isDeprecated": false, + "name": "KY" }, { - "defaultValue": null, - "description": null, - "name": "password", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "KZ", + "isDeprecated": false, + "name": "KZ" + }, + { + "deprecationReason": null, + "description": "LA", + "isDeprecated": false, + "name": "LA" }, { - "defaultValue": null, - "description": null, - "name": "account_number", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - ], - "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "AustraliaPostSettingsInput", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ + "deprecationReason": null, + "description": "LB", + "isDeprecated": false, + "name": "LB" + }, { - "defaultValue": null, - "description": null, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "LC", + "isDeprecated": false, + "name": "LC" }, { - "defaultValue": null, - "description": null, - "name": "carrier_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "LI", + "isDeprecated": false, + "name": "LI" }, { - "defaultValue": null, - "description": null, - "name": "test", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "LK", + "isDeprecated": false, + "name": "LK" }, { - "defaultValue": null, - "description": null, - "name": "active", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "LR", + "isDeprecated": false, + "name": "LR" }, { - "defaultValue": null, - "description": null, - "name": "username", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "LS", + "isDeprecated": false, + "name": "LS" }, { - "defaultValue": null, - "description": null, - "name": "password", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "LT", + "isDeprecated": false, + "name": "LT" }, { - "defaultValue": null, - "description": null, - "name": "customer_number", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "LU", + "isDeprecated": false, + "name": "LU" }, { - "defaultValue": null, - "description": null, - "name": "contract_id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - ], - "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "CanadaPostSettingsInput", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ + "deprecationReason": null, + "description": "LV", + "isDeprecated": false, + "name": "LV" + }, { - "defaultValue": null, - "description": null, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "LY", + "isDeprecated": false, + "name": "LY" }, { - "defaultValue": null, - "description": null, - "name": "carrier_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "MA", + "isDeprecated": false, + "name": "MA" }, { - "defaultValue": null, - "description": null, - "name": "test", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "MC", + "isDeprecated": false, + "name": "MC" }, { - "defaultValue": null, - "description": null, - "name": "active", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "MD", + "isDeprecated": false, + "name": "MD" }, { - "defaultValue": null, - "description": null, - "name": "username", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "ME", + "isDeprecated": false, + "name": "ME" }, { - "defaultValue": null, - "description": null, - "name": "password", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - ], - "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "CanparSettingsInput", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ + "deprecationReason": null, + "description": "MG", + "isDeprecated": false, + "name": "MG" + }, { - "defaultValue": null, - "description": null, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "MH", + "isDeprecated": false, + "name": "MH" }, { - "defaultValue": null, - "description": null, - "name": "account_country_code", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "MK", + "isDeprecated": false, + "name": "MK" }, { - "defaultValue": null, - "description": null, - "name": "carrier_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "ML", + "isDeprecated": false, + "name": "ML" }, { - "defaultValue": null, - "description": null, - "name": "test", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "MM", + "isDeprecated": false, + "name": "MM" }, { - "defaultValue": null, - "description": null, - "name": "active", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "MN", + "isDeprecated": false, + "name": "MN" }, { - "defaultValue": null, - "description": null, - "name": "site_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "MO", + "isDeprecated": false, + "name": "MO" }, { - "defaultValue": null, - "description": null, - "name": "password", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "MP", + "isDeprecated": false, + "name": "MP" }, { - "defaultValue": null, - "description": null, - "name": "account_number", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - ], - "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "DHLExpressSettingsInput", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ + "deprecationReason": null, + "description": "MQ", + "isDeprecated": false, + "name": "MQ" + }, { - "defaultValue": null, - "description": null, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "MR", + "isDeprecated": false, + "name": "MR" }, { - "defaultValue": null, - "description": null, - "name": "carrier_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "MS", + "isDeprecated": false, + "name": "MS" }, { - "defaultValue": null, - "description": null, - "name": "test", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "MT", + "isDeprecated": false, + "name": "MT" }, { - "defaultValue": null, - "description": null, - "name": "active", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "MU", + "isDeprecated": false, + "name": "MU" }, { - "defaultValue": null, - "description": null, - "name": "consumer_key", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "MV", + "isDeprecated": false, + "name": "MV" }, { - "defaultValue": null, - "description": null, - "name": "consumer_secret", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - ], - "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "DHLUniversalSettingsInput", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ + "deprecationReason": null, + "description": "MW", + "isDeprecated": false, + "name": "MW" + }, { - "defaultValue": null, - "description": null, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "MX", + "isDeprecated": false, + "name": "MX" }, { - "defaultValue": null, - "description": null, - "name": "carrier_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "MY", + "isDeprecated": false, + "name": "MY" }, { - "defaultValue": null, - "description": null, - "name": "test", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "MZ", + "isDeprecated": false, + "name": "MZ" + }, + { + "deprecationReason": null, + "description": "NA", + "isDeprecated": false, + "name": "NA" }, { - "defaultValue": null, - "description": null, - "name": "active", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "NC", + "isDeprecated": false, + "name": "NC" }, { - "defaultValue": null, - "description": null, - "name": "username", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "NE", + "isDeprecated": false, + "name": "NE" }, { - "defaultValue": null, - "description": null, - "name": "password", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "NG", + "isDeprecated": false, + "name": "NG" }, { - "defaultValue": null, - "description": null, - "name": "billing_account", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - ], - "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "DicomSettingsInput", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ + "deprecationReason": null, + "description": "NI", + "isDeprecated": false, + "name": "NI" + }, { - "defaultValue": null, - "description": null, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "NL", + "isDeprecated": false, + "name": "NL" }, { - "defaultValue": null, - "description": null, - "name": "carrier_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "NO", + "isDeprecated": false, + "name": "NO" }, { - "defaultValue": null, - "description": null, - "name": "test", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "NP", + "isDeprecated": false, + "name": "NP" }, { - "defaultValue": null, - "description": null, - "name": "active", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "NR", + "isDeprecated": false, + "name": "NR" }, { - "defaultValue": null, - "description": null, - "name": "username", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "NU", + "isDeprecated": false, + "name": "NU" }, { - "defaultValue": null, - "description": null, - "name": "password", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - ], - "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "EShipperSettingsInput", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ + "deprecationReason": null, + "description": "NZ", + "isDeprecated": false, + "name": "NZ" + }, { - "defaultValue": null, - "description": null, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "OM", + "isDeprecated": false, + "name": "OM" }, { - "defaultValue": null, - "description": null, - "name": "account_country_code", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "PA", + "isDeprecated": false, + "name": "PA" }, { - "defaultValue": null, - "description": null, - "name": "carrier_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "PE", + "isDeprecated": false, + "name": "PE" }, { - "defaultValue": null, - "description": null, - "name": "test", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "PF", + "isDeprecated": false, + "name": "PF" }, { - "defaultValue": null, - "description": null, - "name": "active", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "PG", + "isDeprecated": false, + "name": "PG" }, { - "defaultValue": null, - "description": null, - "name": "user_key", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "PH", + "isDeprecated": false, + "name": "PH" }, { - "defaultValue": null, - "description": null, - "name": "password", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "PK", + "isDeprecated": false, + "name": "PK" }, { - "defaultValue": null, - "description": null, - "name": "meter_number", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "PL", + "isDeprecated": false, + "name": "PL" }, { - "defaultValue": null, - "description": null, - "name": "account_number", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - ], - "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "FedexSettingsInput", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ + "deprecationReason": null, + "description": "PR", + "isDeprecated": false, + "name": "PR" + }, { - "defaultValue": null, - "description": null, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "PT", + "isDeprecated": false, + "name": "PT" }, { - "defaultValue": null, - "description": null, - "name": "carrier_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "PW", + "isDeprecated": false, + "name": "PW" }, { - "defaultValue": null, - "description": null, - "name": "test", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "PY", + "isDeprecated": false, + "name": "PY" }, { - "defaultValue": null, - "description": null, - "name": "active", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "QA", + "isDeprecated": false, + "name": "QA" }, { - "defaultValue": null, - "description": null, - "name": "username", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "RE", + "isDeprecated": false, + "name": "RE" }, { - "defaultValue": null, - "description": null, - "name": "password", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - ], - "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "FreightcomSettingsInput", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ + "deprecationReason": null, + "description": "RO", + "isDeprecated": false, + "name": "RO" + }, { - "defaultValue": null, - "description": null, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "RS", + "isDeprecated": false, + "name": "RS" }, { - "defaultValue": null, - "description": null, - "name": "carrier_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "RU", + "isDeprecated": false, + "name": "RU" }, { - "defaultValue": null, - "description": null, - "name": "test", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "RW", + "isDeprecated": false, + "name": "RW" }, { - "defaultValue": null, - "description": null, - "name": "active", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "SA", + "isDeprecated": false, + "name": "SA" }, { - "defaultValue": null, - "description": null, - "name": "username", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "SB", + "isDeprecated": false, + "name": "SB" }, { - "defaultValue": null, - "description": null, - "name": "password", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "SC", + "isDeprecated": false, + "name": "SC" }, { - "defaultValue": null, - "description": null, - "name": "account_number", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "SD", + "isDeprecated": false, + "name": "SD" }, { - "defaultValue": null, - "description": null, - "name": "user_token", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - ], - "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "PurolatorSettingsInput", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ - { - "defaultValue": null, - "description": null, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "SE", + "isDeprecated": false, + "name": "SE" }, { - "defaultValue": null, - "description": null, - "name": "carrier_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "SG", + "isDeprecated": false, + "name": "SG" }, { - "defaultValue": null, - "description": null, - "name": "test", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "SH", + "isDeprecated": false, + "name": "SH" }, { - "defaultValue": null, - "description": null, - "name": "active", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "SI", + "isDeprecated": false, + "name": "SI" }, { - "defaultValue": null, - "description": null, - "name": "client_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "SK", + "isDeprecated": false, + "name": "SK" }, { - "defaultValue": null, - "description": null, - "name": "client_secret", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - ], - "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "RoyalMailSettingsInput", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ + "deprecationReason": null, + "description": "SL", + "isDeprecated": false, + "name": "SL" + }, { - "defaultValue": null, - "description": null, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "SM", + "isDeprecated": false, + "name": "SM" }, { - "defaultValue": null, - "description": null, - "name": "carrier_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "SN", + "isDeprecated": false, + "name": "SN" }, { - "defaultValue": null, - "description": null, - "name": "test", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "SO", + "isDeprecated": false, + "name": "SO" }, { - "defaultValue": null, - "description": null, - "name": "active", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "SR", + "isDeprecated": false, + "name": "SR" }, { - "defaultValue": null, - "description": null, - "name": "sendle_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "SS", + "isDeprecated": false, + "name": "SS" }, { - "defaultValue": null, - "description": null, - "name": "api_key", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - ], - "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "SendleSettingsInput", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ + "deprecationReason": null, + "description": "ST", + "isDeprecated": false, + "name": "ST" + }, { - "defaultValue": null, - "description": null, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "SV", + "isDeprecated": false, + "name": "SV" }, { - "defaultValue": null, - "description": null, - "name": "carrier_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "SY", + "isDeprecated": false, + "name": "SY" }, { - "defaultValue": null, - "description": null, - "name": "test", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "SZ", + "isDeprecated": false, + "name": "SZ" }, { - "defaultValue": null, - "description": null, - "name": "active", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "TC", + "isDeprecated": false, + "name": "TC" }, { - "defaultValue": null, - "description": null, - "name": "partner_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "TD", + "isDeprecated": false, + "name": "TD" }, { - "defaultValue": null, - "description": null, - "name": "check_word", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - ], - "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "SFExpressSettingsInput", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ + "deprecationReason": null, + "description": "TG", + "isDeprecated": false, + "name": "TG" + }, { - "defaultValue": null, - "description": null, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "TH", + "isDeprecated": false, + "name": "TH" }, { - "defaultValue": null, - "description": null, - "name": "account_country_code", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "TJ", + "isDeprecated": false, + "name": "TJ" }, { - "defaultValue": null, - "description": null, - "name": "carrier_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "TL", + "isDeprecated": false, + "name": "TL" }, { - "defaultValue": null, - "description": null, - "name": "test", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "TN", + "isDeprecated": false, + "name": "TN" }, { - "defaultValue": null, - "description": null, - "name": "active", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "TO", + "isDeprecated": false, + "name": "TO" }, { - "defaultValue": null, - "description": null, - "name": "username", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "TR", + "isDeprecated": false, + "name": "TR" }, { - "defaultValue": null, - "description": null, - "name": "password", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "TT", + "isDeprecated": false, + "name": "TT" }, { - "defaultValue": null, - "description": null, - "name": "account_number", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - ], - "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "TNTSettingsInput", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ + "deprecationReason": null, + "description": "TV", + "isDeprecated": false, + "name": "TV" + }, { - "defaultValue": null, - "description": null, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "TW", + "isDeprecated": false, + "name": "TW" }, { - "defaultValue": null, - "description": null, - "name": "account_country_code", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "TZ", + "isDeprecated": false, + "name": "TZ" }, { - "defaultValue": null, - "description": null, - "name": "carrier_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "UA", + "isDeprecated": false, + "name": "UA" }, { - "defaultValue": null, - "description": null, - "name": "test", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "UG", + "isDeprecated": false, + "name": "UG" }, { - "defaultValue": null, - "description": null, - "name": "active", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "US", + "isDeprecated": false, + "name": "US" }, { - "defaultValue": null, - "description": null, - "name": "username", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "UY", + "isDeprecated": false, + "name": "UY" }, { - "defaultValue": null, - "description": null, - "name": "password", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "UZ", + "isDeprecated": false, + "name": "UZ" }, { - "defaultValue": null, - "description": null, - "name": "access_license_number", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "VA", + "isDeprecated": false, + "name": "VA" }, { - "defaultValue": null, - "description": null, - "name": "account_number", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - ], - "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "UPSSettingsInput", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ - { - "defaultValue": null, - "description": null, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "VC", + "isDeprecated": false, + "name": "VC" }, { - "defaultValue": null, - "description": null, - "name": "carrier_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "VE", + "isDeprecated": false, + "name": "VE" }, { - "defaultValue": null, - "description": null, - "name": "test", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "VG", + "isDeprecated": false, + "name": "VG" }, { - "defaultValue": null, - "description": null, - "name": "active", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "VI", + "isDeprecated": false, + "name": "VI" }, { - "defaultValue": null, - "description": null, - "name": "username", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "VN", + "isDeprecated": false, + "name": "VN" }, { - "defaultValue": null, - "description": null, - "name": "password", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "VU", + "isDeprecated": false, + "name": "VU" }, { - "defaultValue": null, - "description": null, - "name": "mailer_id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "WS", + "isDeprecated": false, + "name": "WS" }, { - "defaultValue": null, - "description": null, - "name": "customer_registration_id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "XB", + "isDeprecated": false, + "name": "XB" }, { - "defaultValue": null, - "description": null, - "name": "logistics_manager_mailer_id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - ], - "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "USPSSettingsInput", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ + "deprecationReason": null, + "description": "XC", + "isDeprecated": false, + "name": "XC" + }, { - "defaultValue": null, - "description": null, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "XE", + "isDeprecated": false, + "name": "XE" }, { - "defaultValue": null, - "description": null, - "name": "carrier_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "XM", + "isDeprecated": false, + "name": "XM" }, { - "defaultValue": null, - "description": null, - "name": "test", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "XN", + "isDeprecated": false, + "name": "XN" }, { - "defaultValue": null, - "description": null, - "name": "active", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "XS", + "isDeprecated": false, + "name": "XS" }, { - "defaultValue": null, - "description": null, - "name": "username", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "XY", + "isDeprecated": false, + "name": "XY" }, { - "defaultValue": null, - "description": null, - "name": "password", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "YE", + "isDeprecated": false, + "name": "YE" }, { - "defaultValue": null, - "description": null, - "name": "mailer_id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "YT", + "isDeprecated": false, + "name": "YT" }, { - "defaultValue": null, - "description": null, - "name": "customer_registration_id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "ZA", + "isDeprecated": false, + "name": "ZA" }, { - "defaultValue": null, - "description": null, - "name": "logistics_manager_mailer_id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "ZM", + "isDeprecated": false, + "name": "ZM" + }, + { + "deprecationReason": null, + "description": "ZW", + "isDeprecated": false, + "name": "ZW" } ], + "fields": null, + "inputFields": null, "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "USPSInternationalSettingsInput", + "kind": "ENUM", + "name": "origin_country", "possibleTypes": null }, { @@ -20429,1748 +27382,996 @@ "inputFields": [ { "defaultValue": null, - "description": null, - "name": "id", + "description": "The duty payer", + "name": "paid_by", "type": { - "kind": "SCALAR", - "name": "String", + "kind": "ENUM", + "name": "paid_by", "ofType": null } }, { "defaultValue": null, - "description": null, - "name": "carrier_id", + "description": "The declared value currency", + "name": "currency", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "ENUM", + "name": "currency", + "ofType": null } }, { "defaultValue": null, - "description": null, - "name": "test", + "description": "The package declared value", + "name": "declared_value", "type": { "kind": "SCALAR", - "name": "Boolean", + "name": "Float", "ofType": null } }, { "defaultValue": null, - "description": null, - "name": "active", + "description": "The duty payment account number", + "name": "account_number", "type": { "kind": "SCALAR", - "name": "Boolean", + "name": "String", "ofType": null } }, { "defaultValue": null, - "description": null, - "name": "customer_number", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - { - "defaultValue": null, - "description": null, - "name": "license_key", + "description": "The duty billing address", + "name": "bill_to", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null } } ], "interfaces": null, "kind": "INPUT_OBJECT", - "name": "YanwenSettingsInput", + "name": "DutyInput", "possibleTypes": null }, { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ - { - "defaultValue": null, - "description": null, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - { - "defaultValue": null, - "description": null, - "name": "carrier_id", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - { - "defaultValue": null, - "description": null, - "name": "test", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, + "description": "An enumeration.", + "enumValues": [ { - "defaultValue": null, - "description": null, - "name": "active", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "sender", + "isDeprecated": false, + "name": "SENDER" }, { - "defaultValue": null, - "description": null, - "name": "customer_number", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "recipient", + "isDeprecated": false, + "name": "RECIPIENT" }, { - "defaultValue": null, - "description": null, - "name": "api_secret", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "deprecationReason": null, + "description": "third_party", + "isDeprecated": false, + "name": "THIRD_PARTY" } ], + "fields": null, + "inputFields": null, "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "YunExpressSettingsInput", + "kind": "ENUM", + "name": "paid_by", "possibleTypes": null }, { - "description": null, - "enumValues": null, - "fields": [ + "description": "An enumeration.", + "enumValues": [ + { + "deprecationReason": null, + "description": "EUR", + "isDeprecated": false, + "name": "EUR" + }, + { + "deprecationReason": null, + "description": "AED", + "isDeprecated": false, + "name": "AED" + }, + { + "deprecationReason": null, + "description": "USD", + "isDeprecated": false, + "name": "USD" + }, + { + "deprecationReason": null, + "description": "XCD", + "isDeprecated": false, + "name": "XCD" + }, + { + "deprecationReason": null, + "description": "AMD", + "isDeprecated": false, + "name": "AMD" + }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "ANG", "isDeprecated": false, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "name": "ANG" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "AOA", "isDeprecated": false, - "name": "aramexsettings", - "type": { - "kind": "OBJECT", - "name": "AramexSettings", - "ofType": null - } + "name": "AOA" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "ARS", "isDeprecated": false, - "name": "australiapostsettings", - "type": { - "kind": "OBJECT", - "name": "AustraliaPostSettings", - "ofType": null - } + "name": "ARS" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "AUD", "isDeprecated": false, - "name": "canadapostsettings", - "type": { - "kind": "OBJECT", - "name": "CanadaPostSettings", - "ofType": null - } + "name": "AUD" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "AWG", "isDeprecated": false, - "name": "canparsettings", - "type": { - "kind": "OBJECT", - "name": "CanparSettings", - "ofType": null - } + "name": "AWG" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "AZN", "isDeprecated": false, - "name": "dhlexpresssettings", - "type": { - "kind": "OBJECT", - "name": "DHLExpressSettings", - "ofType": null - } + "name": "AZN" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "BAM", "isDeprecated": false, - "name": "dhluniversalsettings", - "type": { - "kind": "OBJECT", - "name": "DHLUniversalSettings", - "ofType": null - } + "name": "BAM" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "BBD", "isDeprecated": false, - "name": "dicomsettings", - "type": { - "kind": "OBJECT", - "name": "DicomSettings", - "ofType": null - } + "name": "BBD" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "BDT", "isDeprecated": false, - "name": "eshippersettings", - "type": { - "kind": "OBJECT", - "name": "EShipperSettings", - "ofType": null - } + "name": "BDT" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "XOF", "isDeprecated": false, - "name": "fedexsettings", - "type": { - "kind": "OBJECT", - "name": "FedexSettings", - "ofType": null - } + "name": "XOF" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "BGN", "isDeprecated": false, - "name": "freightcomsettings", - "type": { - "kind": "OBJECT", - "name": "FreightcomSettings", - "ofType": null - } + "name": "BGN" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "BHD", "isDeprecated": false, - "name": "purolatorsettings", - "type": { - "kind": "OBJECT", - "name": "PurolatorSettings", - "ofType": null - } + "name": "BHD" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "BIF", "isDeprecated": false, - "name": "royalmailsettings", - "type": { - "kind": "OBJECT", - "name": "RoyalMailSettings", - "ofType": null - } + "name": "BIF" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "BMD", "isDeprecated": false, - "name": "sendlesettings", - "type": { - "kind": "OBJECT", - "name": "SendleSettings", - "ofType": null - } + "name": "BMD" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "BND", "isDeprecated": false, - "name": "sfexpresssettings", - "type": { - "kind": "OBJECT", - "name": "SFExpressSettings", - "ofType": null - } + "name": "BND" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "BOB", "isDeprecated": false, - "name": "tntsettings", - "type": { - "kind": "OBJECT", - "name": "TNTSettings", - "ofType": null - } + "name": "BOB" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "BRL", "isDeprecated": false, - "name": "upssettings", - "type": { - "kind": "OBJECT", - "name": "UPSSettings", - "ofType": null - } + "name": "BRL" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "BSD", "isDeprecated": false, - "name": "uspssettings", - "type": { - "kind": "OBJECT", - "name": "USPSSettings", - "ofType": null - } + "name": "BSD" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "BTN", "isDeprecated": false, - "name": "uspsinternationalsettings", - "type": { - "kind": "OBJECT", - "name": "USPSInternationalSettings", - "ofType": null - } + "name": "BTN" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "BWP", "isDeprecated": false, - "name": "yanwensettings", - "type": { - "kind": "OBJECT", - "name": "YanwenSettings", - "ofType": null - } + "name": "BWP" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "BYN", "isDeprecated": false, - "name": "yunexpresssettings", - "type": { - "kind": "OBJECT", - "name": "YunExpressSettings", - "ofType": null - } + "name": "BYN" }, { - "args": [], "deprecationReason": null, - "description": "May contain more than one error for same field.", + "description": "BZD", "isDeprecated": false, - "name": "errors", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ErrorType", - "ofType": null - } - } + "name": "BZD" }, { - "args": [], "deprecationReason": null, - "description": null, + "description": "CAD", "isDeprecated": false, - "name": "clientMutationId", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "UpdateConnectionPayload", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ + "name": "CAD" + }, + { + "deprecationReason": null, + "description": "CDF", + "isDeprecated": false, + "name": "CDF" + }, + { + "deprecationReason": null, + "description": "XAF", + "isDeprecated": false, + "name": "XAF" + }, { - "defaultValue": null, - "description": null, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "CHF", + "isDeprecated": false, + "name": "CHF" }, { - "defaultValue": null, - "description": null, - "name": "aramexsettings", - "type": { - "kind": "INPUT_OBJECT", - "name": "PartialAramexSettingsInput", - "ofType": null - } + "deprecationReason": null, + "description": "NZD", + "isDeprecated": false, + "name": "NZD" }, { - "defaultValue": null, - "description": null, - "name": "australiapostsettings", - "type": { - "kind": "INPUT_OBJECT", - "name": "PartialAustraliaPostSettingsInput", - "ofType": null - } + "deprecationReason": null, + "description": "CLP", + "isDeprecated": false, + "name": "CLP" }, { - "defaultValue": null, - "description": null, - "name": "canadapostsettings", - "type": { - "kind": "INPUT_OBJECT", - "name": "PartialCanadaPostSettingsInput", - "ofType": null - } + "deprecationReason": null, + "description": "CNY", + "isDeprecated": false, + "name": "CNY" }, { - "defaultValue": null, - "description": null, - "name": "canparsettings", - "type": { - "kind": "INPUT_OBJECT", - "name": "PartialCanparSettingsInput", - "ofType": null - } + "deprecationReason": null, + "description": "COP", + "isDeprecated": false, + "name": "COP" }, { - "defaultValue": null, - "description": null, - "name": "dhlexpresssettings", - "type": { - "kind": "INPUT_OBJECT", - "name": "PartialDHLExpressSettingsInput", - "ofType": null - } + "deprecationReason": null, + "description": "CRC", + "isDeprecated": false, + "name": "CRC" }, { - "defaultValue": null, - "description": null, - "name": "dhluniversalsettings", - "type": { - "kind": "INPUT_OBJECT", - "name": "PartialDHLUniversalSettingsInput", - "ofType": null - } + "deprecationReason": null, + "description": "CUC", + "isDeprecated": false, + "name": "CUC" }, { - "defaultValue": null, - "description": null, - "name": "dicomsettings", - "type": { - "kind": "INPUT_OBJECT", - "name": "PartialDicomSettingsInput", - "ofType": null - } + "deprecationReason": null, + "description": "CVE", + "isDeprecated": false, + "name": "CVE" }, { - "defaultValue": null, - "description": null, - "name": "eshippersettings", - "type": { - "kind": "INPUT_OBJECT", - "name": "PartialEShipperSettingsInput", - "ofType": null - } + "deprecationReason": null, + "description": "CZK", + "isDeprecated": false, + "name": "CZK" }, { - "defaultValue": null, - "description": null, - "name": "fedexsettings", - "type": { - "kind": "INPUT_OBJECT", - "name": "PartialFedexSettingsInput", - "ofType": null - } + "deprecationReason": null, + "description": "DJF", + "isDeprecated": false, + "name": "DJF" }, { - "defaultValue": null, - "description": null, - "name": "freightcomsettings", - "type": { - "kind": "INPUT_OBJECT", - "name": "PartialFreightcomSettingsInput", - "ofType": null - } + "deprecationReason": null, + "description": "DKK", + "isDeprecated": false, + "name": "DKK" }, { - "defaultValue": null, - "description": null, - "name": "purolatorsettings", - "type": { - "kind": "INPUT_OBJECT", - "name": "PartialPurolatorSettingsInput", - "ofType": null - } + "deprecationReason": null, + "description": "DOP", + "isDeprecated": false, + "name": "DOP" }, { - "defaultValue": null, - "description": null, - "name": "royalmailsettings", - "type": { - "kind": "INPUT_OBJECT", - "name": "PartialRoyalMailSettingsInput", - "ofType": null - } + "deprecationReason": null, + "description": "DZD", + "isDeprecated": false, + "name": "DZD" }, { - "defaultValue": null, - "description": null, - "name": "sendlesettings", - "type": { - "kind": "INPUT_OBJECT", - "name": "PartialSendleSettingsInput", - "ofType": null - } + "deprecationReason": null, + "description": "EGP", + "isDeprecated": false, + "name": "EGP" }, { - "defaultValue": null, - "description": null, - "name": "sfexpresssettings", - "type": { - "kind": "INPUT_OBJECT", - "name": "PartialSFExpressSettingsInput", - "ofType": null - } + "deprecationReason": null, + "description": "ERN", + "isDeprecated": false, + "name": "ERN" }, { - "defaultValue": null, - "description": null, - "name": "tntsettings", - "type": { - "kind": "INPUT_OBJECT", - "name": "PartialTNTSettingsInput", - "ofType": null - } + "deprecationReason": null, + "description": "ETB", + "isDeprecated": false, + "name": "ETB" }, { - "defaultValue": null, - "description": null, - "name": "upssettings", - "type": { - "kind": "INPUT_OBJECT", - "name": "PartialUPSSettingsInput", - "ofType": null - } + "deprecationReason": null, + "description": "FJD", + "isDeprecated": false, + "name": "FJD" }, { - "defaultValue": null, - "description": null, - "name": "uspssettings", - "type": { - "kind": "INPUT_OBJECT", - "name": "PartialUSPSSettingsInput", - "ofType": null - } + "deprecationReason": null, + "description": "GBP", + "isDeprecated": false, + "name": "GBP" }, { - "defaultValue": null, - "description": null, - "name": "uspsinternationalsettings", - "type": { - "kind": "INPUT_OBJECT", - "name": "PartialUSPSInternationalSettingsInput", - "ofType": null - } + "deprecationReason": null, + "description": "GEL", + "isDeprecated": false, + "name": "GEL" }, { - "defaultValue": null, - "description": null, - "name": "yanwensettings", - "type": { - "kind": "INPUT_OBJECT", - "name": "PartialYanwenSettingsInput", - "ofType": null - } + "deprecationReason": null, + "description": "GHS", + "isDeprecated": false, + "name": "GHS" }, { - "defaultValue": null, - "description": null, - "name": "yunexpresssettings", - "type": { - "kind": "INPUT_OBJECT", - "name": "PartialYunExpressSettingsInput", - "ofType": null - } + "deprecationReason": null, + "description": "GMD", + "isDeprecated": false, + "name": "GMD" }, { - "defaultValue": null, - "description": null, - "name": "clientMutationId", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - ], - "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "UpdateConnectionInput", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ + "deprecationReason": null, + "description": "GNF", + "isDeprecated": false, + "name": "GNF" + }, { - "defaultValue": null, - "description": null, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "GTQ", + "isDeprecated": false, + "name": "GTQ" }, { - "defaultValue": null, - "description": null, - "name": "account_country_code", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "GYD", + "isDeprecated": false, + "name": "GYD" }, { - "defaultValue": null, - "description": null, - "name": "carrier_id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "HKD", + "isDeprecated": false, + "name": "HKD" }, { - "defaultValue": null, - "description": null, - "name": "test", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "HNL", + "isDeprecated": false, + "name": "HNL" }, { - "defaultValue": null, - "description": null, - "name": "active", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "HRK", + "isDeprecated": false, + "name": "HRK" }, { - "defaultValue": null, - "description": null, - "name": "username", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "HTG", + "isDeprecated": false, + "name": "HTG" }, { - "defaultValue": null, - "description": null, - "name": "password", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "HUF", + "isDeprecated": false, + "name": "HUF" }, { - "defaultValue": null, - "description": null, - "name": "account_pin", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "IDR", + "isDeprecated": false, + "name": "IDR" }, { - "defaultValue": null, - "description": null, - "name": "account_entity", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "ILS", + "isDeprecated": false, + "name": "ILS" }, { - "defaultValue": null, - "description": null, - "name": "account_number", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - ], - "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "PartialAramexSettingsInput", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ + "deprecationReason": null, + "description": "INR", + "isDeprecated": false, + "name": "INR" + }, { - "defaultValue": null, - "description": null, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "IRR", + "isDeprecated": false, + "name": "IRR" }, { - "defaultValue": null, - "description": null, - "name": "carrier_id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "ISK", + "isDeprecated": false, + "name": "ISK" }, { - "defaultValue": null, - "description": null, - "name": "test", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "JMD", + "isDeprecated": false, + "name": "JMD" }, { - "defaultValue": null, - "description": null, - "name": "active", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "JOD", + "isDeprecated": false, + "name": "JOD" }, { - "defaultValue": null, - "description": null, - "name": "api_key", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "JPY", + "isDeprecated": false, + "name": "JPY" }, { - "defaultValue": null, - "description": null, - "name": "password", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "KES", + "isDeprecated": false, + "name": "KES" }, { - "defaultValue": null, - "description": null, - "name": "account_number", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - ], - "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "PartialAustraliaPostSettingsInput", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ + "deprecationReason": null, + "description": "KGS", + "isDeprecated": false, + "name": "KGS" + }, + { + "deprecationReason": null, + "description": "KHR", + "isDeprecated": false, + "name": "KHR" + }, { - "defaultValue": null, - "description": null, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "KMF", + "isDeprecated": false, + "name": "KMF" }, { - "defaultValue": null, - "description": null, - "name": "carrier_id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "KPW", + "isDeprecated": false, + "name": "KPW" }, { - "defaultValue": null, - "description": null, - "name": "test", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "KRW", + "isDeprecated": false, + "name": "KRW" }, { - "defaultValue": null, - "description": null, - "name": "active", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "KWD", + "isDeprecated": false, + "name": "KWD" }, { - "defaultValue": null, - "description": null, - "name": "username", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "KYD", + "isDeprecated": false, + "name": "KYD" }, { - "defaultValue": null, - "description": null, - "name": "password", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "KZT", + "isDeprecated": false, + "name": "KZT" }, { - "defaultValue": null, - "description": null, - "name": "customer_number", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "LAK", + "isDeprecated": false, + "name": "LAK" }, { - "defaultValue": null, - "description": null, - "name": "contract_id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - ], - "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "PartialCanadaPostSettingsInput", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ + "deprecationReason": null, + "description": "LKR", + "isDeprecated": false, + "name": "LKR" + }, { - "defaultValue": null, - "description": null, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "LRD", + "isDeprecated": false, + "name": "LRD" }, { - "defaultValue": null, - "description": null, - "name": "carrier_id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "LSL", + "isDeprecated": false, + "name": "LSL" }, { - "defaultValue": null, - "description": null, - "name": "test", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "LYD", + "isDeprecated": false, + "name": "LYD" }, { - "defaultValue": null, - "description": null, - "name": "active", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "MAD", + "isDeprecated": false, + "name": "MAD" }, { - "defaultValue": null, - "description": null, - "name": "username", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "MDL", + "isDeprecated": false, + "name": "MDL" }, { - "defaultValue": null, - "description": null, - "name": "password", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - ], - "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "PartialCanparSettingsInput", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ + "deprecationReason": null, + "description": "MGA", + "isDeprecated": false, + "name": "MGA" + }, { - "defaultValue": null, - "description": null, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "MKD", + "isDeprecated": false, + "name": "MKD" }, { - "defaultValue": null, - "description": null, - "name": "account_country_code", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "MMK", + "isDeprecated": false, + "name": "MMK" }, { - "defaultValue": null, - "description": null, - "name": "carrier_id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "MNT", + "isDeprecated": false, + "name": "MNT" }, { - "defaultValue": null, - "description": null, - "name": "test", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "MOP", + "isDeprecated": false, + "name": "MOP" + }, + { + "deprecationReason": null, + "description": "MRO", + "isDeprecated": false, + "name": "MRO" + }, + { + "deprecationReason": null, + "description": "MUR", + "isDeprecated": false, + "name": "MUR" }, { - "defaultValue": null, - "description": null, - "name": "active", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "MVR", + "isDeprecated": false, + "name": "MVR" }, { - "defaultValue": null, - "description": null, - "name": "site_id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "MWK", + "isDeprecated": false, + "name": "MWK" }, { - "defaultValue": null, - "description": null, - "name": "password", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "MXN", + "isDeprecated": false, + "name": "MXN" }, { - "defaultValue": null, - "description": null, - "name": "account_number", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - ], - "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "PartialDHLExpressSettingsInput", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ + "deprecationReason": null, + "description": "MYR", + "isDeprecated": false, + "name": "MYR" + }, { - "defaultValue": null, - "description": null, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "MZN", + "isDeprecated": false, + "name": "MZN" }, { - "defaultValue": null, - "description": null, - "name": "carrier_id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "NAD", + "isDeprecated": false, + "name": "NAD" }, { - "defaultValue": null, - "description": null, - "name": "test", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "XPF", + "isDeprecated": false, + "name": "XPF" }, { - "defaultValue": null, - "description": null, - "name": "active", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "NGN", + "isDeprecated": false, + "name": "NGN" }, { - "defaultValue": null, - "description": null, - "name": "consumer_key", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "NIO", + "isDeprecated": false, + "name": "NIO" }, { - "defaultValue": null, - "description": null, - "name": "consumer_secret", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - ], - "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "PartialDHLUniversalSettingsInput", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ + "deprecationReason": null, + "description": "NOK", + "isDeprecated": false, + "name": "NOK" + }, { - "defaultValue": null, - "description": null, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "NPR", + "isDeprecated": false, + "name": "NPR" }, { - "defaultValue": null, - "description": null, - "name": "carrier_id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "OMR", + "isDeprecated": false, + "name": "OMR" }, { - "defaultValue": null, - "description": null, - "name": "test", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "PEN", + "isDeprecated": false, + "name": "PEN" }, { - "defaultValue": null, - "description": null, - "name": "active", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "PGK", + "isDeprecated": false, + "name": "PGK" }, { - "defaultValue": null, - "description": null, - "name": "username", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "PHP", + "isDeprecated": false, + "name": "PHP" }, { - "defaultValue": null, - "description": null, - "name": "password", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "PKR", + "isDeprecated": false, + "name": "PKR" }, { - "defaultValue": null, - "description": null, - "name": "billing_account", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - ], - "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "PartialDicomSettingsInput", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ + "deprecationReason": null, + "description": "PLN", + "isDeprecated": false, + "name": "PLN" + }, { - "defaultValue": null, - "description": null, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "PYG", + "isDeprecated": false, + "name": "PYG" }, { - "defaultValue": null, - "description": null, - "name": "carrier_id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "QAR", + "isDeprecated": false, + "name": "QAR" }, { - "defaultValue": null, - "description": null, - "name": "test", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "RSD", + "isDeprecated": false, + "name": "RSD" }, { - "defaultValue": null, - "description": null, - "name": "active", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "RUB", + "isDeprecated": false, + "name": "RUB" }, { - "defaultValue": null, - "description": null, - "name": "username", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "RWF", + "isDeprecated": false, + "name": "RWF" }, { - "defaultValue": null, - "description": null, - "name": "password", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - ], - "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "PartialEShipperSettingsInput", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ + "deprecationReason": null, + "description": "SAR", + "isDeprecated": false, + "name": "SAR" + }, { - "defaultValue": null, - "description": null, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "SBD", + "isDeprecated": false, + "name": "SBD" }, { - "defaultValue": null, - "description": null, - "name": "account_country_code", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "SCR", + "isDeprecated": false, + "name": "SCR" }, { - "defaultValue": null, - "description": null, - "name": "carrier_id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "SDG", + "isDeprecated": false, + "name": "SDG" }, { - "defaultValue": null, - "description": null, - "name": "test", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "SEK", + "isDeprecated": false, + "name": "SEK" }, { - "defaultValue": null, - "description": null, - "name": "active", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "SGD", + "isDeprecated": false, + "name": "SGD" }, { - "defaultValue": null, - "description": null, - "name": "user_key", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "SHP", + "isDeprecated": false, + "name": "SHP" }, { - "defaultValue": null, - "description": null, - "name": "password", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "SLL", + "isDeprecated": false, + "name": "SLL" }, { - "defaultValue": null, - "description": null, - "name": "meter_number", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "SOS", + "isDeprecated": false, + "name": "SOS" }, { - "defaultValue": null, - "description": null, - "name": "account_number", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - ], - "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "PartialFedexSettingsInput", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ + "deprecationReason": null, + "description": "SRD", + "isDeprecated": false, + "name": "SRD" + }, { - "defaultValue": null, - "description": null, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "SSP", + "isDeprecated": false, + "name": "SSP" }, { - "defaultValue": null, - "description": null, - "name": "carrier_id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "STD", + "isDeprecated": false, + "name": "STD" }, { - "defaultValue": null, - "description": null, - "name": "test", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "SYP", + "isDeprecated": false, + "name": "SYP" }, { - "defaultValue": null, - "description": null, - "name": "active", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "SZL", + "isDeprecated": false, + "name": "SZL" }, { - "defaultValue": null, - "description": null, - "name": "username", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "THB", + "isDeprecated": false, + "name": "THB" }, { - "defaultValue": null, - "description": null, - "name": "password", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - ], - "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "PartialFreightcomSettingsInput", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ + "deprecationReason": null, + "description": "TJS", + "isDeprecated": false, + "name": "TJS" + }, { - "defaultValue": null, - "description": null, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "TND", + "isDeprecated": false, + "name": "TND" }, { - "defaultValue": null, - "description": null, - "name": "carrier_id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "TOP", + "isDeprecated": false, + "name": "TOP" }, { - "defaultValue": null, - "description": null, - "name": "test", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "TRY", + "isDeprecated": false, + "name": "TRY" }, { - "defaultValue": null, - "description": null, - "name": "active", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "TTD", + "isDeprecated": false, + "name": "TTD" }, { - "defaultValue": null, - "description": null, - "name": "username", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "TWD", + "isDeprecated": false, + "name": "TWD" }, { - "defaultValue": null, - "description": null, - "name": "password", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "TZS", + "isDeprecated": false, + "name": "TZS" }, { - "defaultValue": null, - "description": null, - "name": "account_number", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "UAH", + "isDeprecated": false, + "name": "UAH" }, { - "defaultValue": null, - "description": null, - "name": "user_token", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - ], - "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "PartialPurolatorSettingsInput", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ + "deprecationReason": null, + "description": "UYU", + "isDeprecated": false, + "name": "UYU" + }, { - "defaultValue": null, - "description": null, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "UZS", + "isDeprecated": false, + "name": "UZS" }, { - "defaultValue": null, - "description": null, - "name": "carrier_id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "VEF", + "isDeprecated": false, + "name": "VEF" }, { - "defaultValue": null, - "description": null, - "name": "test", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "VND", + "isDeprecated": false, + "name": "VND" }, { - "defaultValue": null, - "description": null, - "name": "active", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "deprecationReason": null, + "description": "VUV", + "isDeprecated": false, + "name": "VUV" }, { - "defaultValue": null, - "description": null, - "name": "client_id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "WST", + "isDeprecated": false, + "name": "WST" }, { - "defaultValue": null, - "description": null, - "name": "client_secret", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "deprecationReason": null, + "description": "YER", + "isDeprecated": false, + "name": "YER" + }, + { + "deprecationReason": null, + "description": "ZAR", + "isDeprecated": false, + "name": "ZAR" } ], + "fields": null, + "inputFields": null, "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "PartialRoyalMailSettingsInput", + "kind": "ENUM", + "name": "currency", "possibleTypes": null }, { "description": null, "enumValues": null, - "fields": null, - "inputFields": [ - { - "defaultValue": null, - "description": null, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - { - "defaultValue": null, - "description": null, - "name": "carrier_id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - { - "defaultValue": null, - "description": null, - "name": "test", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, + "fields": [ { - "defaultValue": null, + "args": [], + "deprecationReason": null, "description": null, - "name": "active", + "isDeprecated": false, + "name": "errors", "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ErrorType", + "ofType": null + } } }, { - "defaultValue": null, + "args": [], + "deprecationReason": null, "description": null, - "name": "sendle_id", + "isDeprecated": false, + "name": "template", "type": { - "kind": "SCALAR", - "name": "String", + "kind": "OBJECT", + "name": "CustomsTemplateType", "ofType": null } }, { - "defaultValue": null, + "args": [], + "deprecationReason": null, "description": null, - "name": "api_key", + "isDeprecated": false, + "name": "clientMutationId", "type": { "kind": "SCALAR", "name": "String", @@ -22178,9 +28379,10 @@ } } ], - "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "PartialSendleSettingsInput", + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "PartialCustomsTemplatePayload", "possibleTypes": null }, { @@ -22193,35 +28395,43 @@ "description": null, "name": "id", "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } } }, { "defaultValue": null, "description": null, - "name": "carrier_id", + "name": "customs", "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "PartialCustomsTemplate", + "ofType": null + } } }, { "defaultValue": null, "description": null, - "name": "test", + "name": "label", "type": { "kind": "SCALAR", - "name": "Boolean", + "name": "String", "ofType": null } }, { "defaultValue": null, "description": null, - "name": "active", + "name": "is_default", "type": { "kind": "SCALAR", "name": "Boolean", @@ -22231,17 +28441,7 @@ { "defaultValue": null, "description": null, - "name": "partner_id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - { - "defaultValue": null, - "description": null, - "name": "check_word", + "name": "clientMutationId", "type": { "kind": "SCALAR", "name": "String", @@ -22251,7 +28451,7 @@ ], "interfaces": null, "kind": "INPUT_OBJECT", - "name": "PartialSFExpressSettingsInput", + "name": "PartialCustomsTemplateInput", "possibleTypes": null }, { @@ -22262,17 +28462,7 @@ { "defaultValue": null, "description": null, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - { - "defaultValue": null, - "description": null, - "name": "account_country_code", + "name": "incoterm", "type": { "kind": "SCALAR", "name": "String", @@ -22282,17 +28472,21 @@ { "defaultValue": null, "description": null, - "name": "carrier_id", + "name": "commodities", "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "PartialCommodityModelSerializerInput", + "ofType": null + } } }, { "defaultValue": null, "description": null, - "name": "test", + "name": "certify", "type": { "kind": "SCALAR", "name": "Boolean", @@ -22302,7 +28496,7 @@ { "defaultValue": null, "description": null, - "name": "active", + "name": "commercial_invoice", "type": { "kind": "SCALAR", "name": "Boolean", @@ -22312,48 +28506,7 @@ { "defaultValue": null, "description": null, - "name": "username", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - { - "defaultValue": null, - "description": null, - "name": "password", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - { - "defaultValue": null, - "description": null, - "name": "account_number", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - ], - "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "PartialTNTSettingsInput", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ - { - "defaultValue": null, - "description": null, - "name": "id", + "name": "content_type", "type": { "kind": "SCALAR", "name": "String", @@ -22363,7 +28516,7 @@ { "defaultValue": null, "description": null, - "name": "account_country_code", + "name": "content_description", "type": { "kind": "SCALAR", "name": "String", @@ -22373,7 +28526,7 @@ { "defaultValue": null, "description": null, - "name": "carrier_id", + "name": "invoice", "type": { "kind": "SCALAR", "name": "String", @@ -22383,37 +28536,17 @@ { "defaultValue": null, "description": null, - "name": "test", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - { - "defaultValue": null, - "description": null, - "name": "active", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - { - "defaultValue": null, - "description": null, - "name": "username", + "name": "invoice_date", "type": { "kind": "SCALAR", - "name": "String", + "name": "Date", "ofType": null } }, { "defaultValue": null, "description": null, - "name": "password", + "name": "signer", "type": { "kind": "SCALAR", "name": "String", @@ -22423,118 +28556,127 @@ { "defaultValue": null, "description": null, - "name": "access_license_number", + "name": "duty", "type": { - "kind": "SCALAR", - "name": "String", + "kind": "INPUT_OBJECT", + "name": "DutyInput", "ofType": null } }, { "defaultValue": null, "description": null, - "name": "account_number", + "name": "options", "type": { "kind": "SCALAR", - "name": "String", + "name": "GenericScalar", "ofType": null } } ], "interfaces": null, "kind": "INPUT_OBJECT", - "name": "PartialUPSSettingsInput", + "name": "PartialCustomsTemplate", "possibleTypes": null }, { "description": null, "enumValues": null, - "fields": null, - "inputFields": [ - { - "defaultValue": null, - "description": null, - "name": "id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - { - "defaultValue": null, - "description": null, - "name": "carrier_id", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, + "fields": [ { - "defaultValue": null, + "args": [], + "deprecationReason": null, "description": null, - "name": "test", + "isDeprecated": false, + "name": "errors", "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ErrorType", + "ofType": null + } } }, { - "defaultValue": null, + "args": [], + "deprecationReason": null, "description": null, - "name": "active", + "isDeprecated": false, + "name": "template", "type": { - "kind": "SCALAR", - "name": "Boolean", + "kind": "OBJECT", + "name": "ParcelTemplateType", "ofType": null } }, { - "defaultValue": null, + "args": [], + "deprecationReason": null, "description": null, - "name": "username", + "isDeprecated": false, + "name": "clientMutationId", "type": { "kind": "SCALAR", "name": "String", "ofType": null } - }, + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "ParcelTemplatePayload", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ { "defaultValue": null, "description": null, - "name": "password", + "name": "parcel", "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "ParcelTemplate", + "ofType": null + } } }, { "defaultValue": null, "description": null, - "name": "mailer_id", + "name": "label", "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } } }, { "defaultValue": null, "description": null, - "name": "customer_registration_id", + "name": "is_default", "type": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null } }, { "defaultValue": null, "description": null, - "name": "logistics_manager_mailer_id", + "name": "clientMutationId", "type": { "kind": "SCALAR", "name": "String", @@ -22544,7 +28686,7 @@ ], "interfaces": null, "kind": "INPUT_OBJECT", - "name": "PartialUSPSSettingsInput", + "name": "ParcelTemplateInput", "possibleTypes": null }, { @@ -22555,7 +28697,7 @@ { "defaultValue": null, "description": null, - "name": "id", + "name": "weight_unit", "type": { "kind": "SCALAR", "name": "String", @@ -22565,7 +28707,7 @@ { "defaultValue": null, "description": null, - "name": "carrier_id", + "name": "dimension_unit", "type": { "kind": "SCALAR", "name": "String", @@ -22575,37 +28717,47 @@ { "defaultValue": null, "description": null, - "name": "test", + "name": "weight", "type": { "kind": "SCALAR", - "name": "Boolean", + "name": "Float", "ofType": null } }, { "defaultValue": null, "description": null, - "name": "active", + "name": "width", "type": { "kind": "SCALAR", - "name": "Boolean", + "name": "Float", "ofType": null } }, { "defaultValue": null, "description": null, - "name": "username", + "name": "height", "type": { "kind": "SCALAR", - "name": "String", + "name": "Float", "ofType": null } }, { "defaultValue": null, "description": null, - "name": "password", + "name": "length", + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "packaging_type", "type": { "kind": "SCALAR", "name": "String", @@ -22615,7 +28767,7 @@ { "defaultValue": null, "description": null, - "name": "mailer_id", + "name": "package_preset", "type": { "kind": "SCALAR", "name": "String", @@ -22625,7 +28777,7 @@ { "defaultValue": null, "description": null, - "name": "customer_registration_id", + "name": "description", "type": { "kind": "SCALAR", "name": "String", @@ -22635,78 +28787,137 @@ { "defaultValue": null, "description": null, - "name": "logistics_manager_mailer_id", + "name": "content", "type": { "kind": "SCALAR", "name": "String", "ofType": null } + }, + { + "defaultValue": null, + "description": null, + "name": "is_document", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } } ], "interfaces": null, "kind": "INPUT_OBJECT", - "name": "PartialUSPSInternationalSettingsInput", + "name": "ParcelTemplate", "possibleTypes": null }, { "description": null, "enumValues": null, - "fields": null, - "inputFields": [ + "fields": [ { - "defaultValue": null, + "args": [], + "deprecationReason": null, "description": null, - "name": "id", + "isDeprecated": false, + "name": "errors", "type": { - "kind": "SCALAR", - "name": "String", + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ErrorType", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "template", + "type": { + "kind": "OBJECT", + "name": "ParcelTemplateType", "ofType": null } }, { - "defaultValue": null, + "args": [], + "deprecationReason": null, "description": null, - "name": "carrier_id", + "isDeprecated": false, + "name": "clientMutationId", "type": { "kind": "SCALAR", "name": "String", "ofType": null } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "PartialParcelTemplatePayload", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ + { + "defaultValue": null, + "description": null, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, { "defaultValue": null, "description": null, - "name": "test", + "name": "parcel", "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "PartialParcelTemplate", + "ofType": null + } } }, { "defaultValue": null, "description": null, - "name": "active", + "name": "label", "type": { "kind": "SCALAR", - "name": "Boolean", + "name": "String", "ofType": null } }, { "defaultValue": null, "description": null, - "name": "customer_number", + "name": "is_default", "type": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null } }, { "defaultValue": null, "description": null, - "name": "license_key", + "name": "clientMutationId", "type": { "kind": "SCALAR", "name": "String", @@ -22716,7 +28927,7 @@ ], "interfaces": null, "kind": "INPUT_OBJECT", - "name": "PartialYanwenSettingsInput", + "name": "PartialParcelTemplateInput", "possibleTypes": null }, { @@ -22727,7 +28938,7 @@ { "defaultValue": null, "description": null, - "name": "id", + "name": "weight_unit", "type": { "kind": "SCALAR", "name": "String", @@ -22737,7 +28948,7 @@ { "defaultValue": null, "description": null, - "name": "carrier_id", + "name": "dimension_unit", "type": { "kind": "SCALAR", "name": "String", @@ -22747,59 +28958,47 @@ { "defaultValue": null, "description": null, - "name": "test", + "name": "weight", "type": { "kind": "SCALAR", - "name": "Boolean", + "name": "Float", "ofType": null } }, { "defaultValue": null, "description": null, - "name": "active", + "name": "width", "type": { "kind": "SCALAR", - "name": "Boolean", + "name": "Float", "ofType": null } }, { "defaultValue": null, "description": null, - "name": "customer_number", + "name": "height", "type": { "kind": "SCALAR", - "name": "String", + "name": "Float", "ofType": null } }, { "defaultValue": null, "description": null, - "name": "api_secret", + "name": "length", "type": { "kind": "SCALAR", - "name": "String", + "name": "Float", "ofType": null } - } - ], - "interfaces": null, - "kind": "INPUT_OBJECT", - "name": "PartialYunExpressSettingsInput", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": [ + }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "id", + "name": "packaging_type", "type": { "kind": "SCALAR", "name": "String", @@ -22807,57 +29006,49 @@ } }, { - "args": [], - "deprecationReason": null, + "defaultValue": null, "description": null, - "isDeprecated": false, - "name": "clientMutationId", + "name": "package_preset", "type": { "kind": "SCALAR", "name": "String", "ofType": null } - } - ], - "inputFields": null, - "interfaces": [], - "kind": "OBJECT", - "name": "DeleteConnectionPayload", - "possibleTypes": null - }, - { - "description": null, - "enumValues": null, - "fields": null, - "inputFields": [ + }, { "defaultValue": null, "description": null, - "name": "id", + "name": "description", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null } }, { "defaultValue": null, "description": null, - "name": "clientMutationId", + "name": "content", "type": { "kind": "SCALAR", "name": "String", "ofType": null } + }, + { + "defaultValue": null, + "description": null, + "name": "is_document", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } } ], "interfaces": null, "kind": "INPUT_OBJECT", - "name": "DeleteConnectionInput", + "name": "PartialParcelTemplate", "possibleTypes": null }, { @@ -22869,10 +29060,10 @@ "deprecationReason": null, "description": null, "isDeprecated": false, - "name": "carrier", + "name": "id", "type": { - "kind": "OBJECT", - "name": "SystemConnectionType", + "kind": "SCALAR", + "name": "String", "ofType": null } }, @@ -22892,7 +29083,7 @@ "inputFields": null, "interfaces": [], "kind": "OBJECT", - "name": "SystemCarrierMutationPayload", + "name": "DeleteTemplatePayload", "possibleTypes": null }, { @@ -22914,20 +29105,6 @@ } } }, - { - "defaultValue": null, - "description": null, - "name": "enable", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } - }, { "defaultValue": null, "description": null, @@ -22941,7 +29118,7 @@ ], "interfaces": null, "kind": "INPUT_OBJECT", - "name": "SystemCarrierMutationInput", + "name": "DeleteTemplateInput", "possibleTypes": null }, { diff --git a/server/schemas/openapi.json b/server/schemas/openapi.json index 620be5f399..0295057fa4 100644 --- a/server/schemas/openapi.json +++ b/server/schemas/openapi.json @@ -2,11 +2,11 @@ "openapi": "3.0.1", "info": { "title": "Purplship API", - "description": "\n## API Reference\n\nPurplship is an open source multi-carrier shipping API that simplifies the integration of logistic carrier services.\n\nThe Purplship API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded \nrequest bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.\n\nThe Purplship API differs for every account as we release new versions.\nThese docs are customized to your version of the API.\n\n\n## Versioning\n\nWhen backwards-incompatible changes are made to the API, a new, dated version is released. \nThe current version is `2021.10`. \n\nRead our API changelog and to learn more about backwards compatibility.\n\nAs a precaution, use API versioning to check a new API version before committing to an upgrade.\n\n\n## Pagination\n\nAll top-level API resources have support for bulk fetches via \"list\" API methods. For instance, you can list addresses, \nlist shipments, and list trackers. These list API methods share a common structure, taking at least these \ntwo parameters: limit, and offset.\n\nPurplship utilizes offset-based pagination via the offset and limit parameters.\nBoth parameters take a number as value (see below) and return objects in reverse chronological order. \nThe offset parameter returns objects listed after an index. \nThe limit parameter take a limit on the number of objects to be returned from 1 to 100.\n\n\n```json\n{\n \"next\": \"/v1/shipments?limit=25&offset=25\",\n \"previous\": \"/v1/shipments?limit=25&offset=25\",\n \"results\": [\n ]\n}\n```\n\n## Environments\n\nThe Purplship API offer the possibility to create and retrieve certain objects in `test_mode`.\nIn development, it is therefore possible to add carrier connections, get live rates, \nbuy labels, create trackers and schedule pickups in `test_mode`.\n\n", + "description": "\n## API Reference\n\nPurplship is an open source multi-carrier shipping API that simplifies the integration of logistic carrier services.\n\nThe Purplship API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded \nrequest bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.\n\nThe Purplship API differs for every account as we release new versions.\nThese docs are customized to your version of the API.\n\n\n## Versioning\n\nWhen backwards-incompatible changes are made to the API, a new, dated version is released. \nThe current version is `2021.11`. \n\nRead our API changelog and to learn more about backwards compatibility.\n\nAs a precaution, use API versioning to check a new API version before committing to an upgrade.\n\n\n## Pagination\n\nAll top-level API resources have support for bulk fetches via \"list\" API methods. For instance, you can list addresses, \nlist shipments, and list trackers. These list API methods share a common structure, taking at least these \ntwo parameters: limit, and offset.\n\nPurplship utilizes offset-based pagination via the offset and limit parameters.\nBoth parameters take a number as value (see below) and return objects in reverse chronological order. \nThe offset parameter returns objects listed after an index. \nThe limit parameter take a limit on the number of objects to be returned from 1 to 100.\n\n\n```json\n{\n \"next\": \"/v1/shipments?limit=25&offset=25\",\n \"previous\": \"/v1/shipments?limit=25&offset=25\",\n \"results\": [\n ]\n}\n```\n\n## Environments\n\nThe Purplship API offer the possibility to create and retrieve certain objects in `test_mode`.\nIn development, it is therefore possible to add carrier connections, get live rates, \nbuy labels, create trackers and schedule pickups in `test_mode`.\n\n", "contact": { "email": "hello@purplship.com" }, - "version": "2021.10" + "version": "2021.11" }, "servers": [ { @@ -19,6 +19,27 @@ } ], "paths": { + "/": { + "get": { + "tags": [ + "API" + ], + "summary": "Instance Metadata", + "operationId": "&&ping", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Metadata" + } + } + } + } + } + } + }, "/api/token": { "post": { "tags": [ @@ -412,6 +433,7 @@ "canadapost", "canpar", "dhl_express", + "dhl_poland", "dhl_universal", "dicom", "eshipper", @@ -1439,6 +1461,7 @@ "canadapost", "canpar", "dhl_express", + "dhl_poland", "dhl_universal", "dicom", "eshipper", @@ -1522,6 +1545,7 @@ "canadapost", "canpar", "dhl_express", + "dhl_poland", "dhl_universal", "dicom", "eshipper", @@ -1607,6 +1631,7 @@ "canadapost", "canpar", "dhl_express", + "dhl_poland", "dhl_universal", "dicom", "eshipper", @@ -1790,6 +1815,7 @@ "canadapost", "canpar", "dhl_express", + "dhl_poland", "dhl_universal", "dicom", "eshipper", @@ -1883,6 +1909,7 @@ "canadapost", "canpar", "dhl_express", + "dhl_poland", "dhl_universal", "dicom", "eshipper", @@ -1979,19 +2006,21 @@ } }, { - "name": "created_start", + "name": "created_after", "in": "query", + "description": "DateTime in format `YYYY-MM-DD H:M:S.fz`", "schema": { "type": "string", - "format": "date" + "format": "date-time" } }, { - "name": "created_end", + "name": "created_before", "in": "query", + "description": "DateTime in format `YYYY-MM-DD H:M:S.fz`", "schema": { "type": "string", - "format": "date" + "format": "date-time" } }, { @@ -2042,6 +2071,7 @@ "canadapost", "canpar", "dhl_express", + "dhl_poland", "dhl_universal", "dicom", "eshipper", @@ -2514,6 +2544,24 @@ ] } }, + { + "name": "created_after", + "in": "query", + "description": "DateTime in format `YYYY-MM-DD H:M:S.fz`", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "created_before", + "in": "query", + "description": "DateTime in format `YYYY-MM-DD H:M:S.fz`", + "schema": { + "type": "string", + "format": "date-time" + } + }, { "name": "carrier_id", "in": "query", @@ -2548,6 +2596,7 @@ "canadapost", "canpar", "dhl_express", + "dhl_poland", "dhl_universal", "dicom", "eshipper", @@ -2630,6 +2679,7 @@ "canadapost", "canpar", "dhl_express", + "dhl_poland", "dhl_universal", "dicom", "eshipper", @@ -3044,6 +3094,54 @@ }, "components": { "schemas": { + "Metadata": { + "required": [ + "ADMIN", + "APP_NAME", + "APP_VERSION", + "APP_WEBSITE", + "GRAPHQL", + "MULTI_ORGANIZATIONS", + "OPENAPI" + ], + "type": "object", + "properties": { + "APP_NAME": { + "title": "App name", + "minLength": 1, + "type": "string" + }, + "APP_VERSION": { + "title": "App version", + "minLength": 1, + "type": "string" + }, + "APP_WEBSITE": { + "title": "App website", + "minLength": 1, + "type": "string" + }, + "MULTI_ORGANIZATIONS": { + "title": "Multi organizations", + "type": "boolean" + }, + "ADMIN": { + "title": "Admin", + "minLength": 1, + "type": "string" + }, + "OPENAPI": { + "title": "Openapi", + "minLength": 1, + "type": "string" + }, + "GRAPHQL": { + "title": "Graphql", + "minLength": 1, + "type": "string" + } + } + }, "TokenObtainPair": { "required": [ "email", @@ -3951,6 +4049,7 @@ "canadapost", "canpar", "dhl_express", + "dhl_poland", "dhl_universal", "dicom", "eshipper", @@ -4076,9 +4175,7 @@ "nullable": true } }, - "description": "The parcel content items", - "nullable": true, - "x-nullable": true + "description": "The parcel content items" }, "Duty": { "type": "object", @@ -4266,6 +4363,9 @@ "x-nullable": true }, "Customs": { + "required": [ + "commodities" + ], "type": "object", "properties": { "id": { @@ -4274,15 +4374,15 @@ "type": "string", "description": "A unique identifier" }, - "aes": { - "title": "Aes", - "type": "string", - "nullable": true + "commodities": { + "type": "array", + "description": "The parcel content items", + "items": { + "$ref": "#/components/schemas/Commodity" + } }, - "eel_pfc": { - "title": "Eel pfc", - "type": "string", - "nullable": true + "duty": { + "$ref": "#/components/schemas/Duty" }, "content_type": { "title": "Content type", @@ -4323,17 +4423,6 @@ "FOB" ] }, - "commodities": { - "type": "array", - "description": "The parcel content items", - "nullable": true, - "items": { - "$ref": "#/components/schemas/Commodity" - } - }, - "duty": { - "$ref": "#/components/schemas/Duty" - }, "invoice": { "title": "Invoice", "type": "string", @@ -4363,15 +4452,11 @@ "type": "string", "nullable": true }, - "certificate_number": { - "title": "Certificate number", - "type": "string", - "nullable": true - }, "options": { "title": "Options", "type": "object", "properties": {}, + "description": "\n
\nCustoms identification options.\n\n```\n{\n \"aes\": \"5218487281\",\n \"eel_pfc\": \"5218487281\",\n \"license_number\": \"5218487281\",\n \"certificate_number\": \"5218487281\",\n \"nip_number\": \"5218487281\",\n \"eori_number\": \"5218487281\",\n \"vat_registration_number\": \"5218487281\",\n}\n```\n\nPlease check the docs for carrier specific options.\n
\n", "nullable": true } } @@ -4403,17 +4488,20 @@ } }, "CustomsData": { + "required": [ + "commodities" + ], "type": "object", "properties": { - "aes": { - "title": "Aes", - "type": "string", - "nullable": true + "commodities": { + "type": "array", + "description": "The parcel content items", + "items": { + "$ref": "#/components/schemas/Commodity" + } }, - "eel_pfc": { - "title": "Eel pfc", - "type": "string", - "nullable": true + "duty": { + "$ref": "#/components/schemas/Duty" }, "content_type": { "title": "Content type", @@ -4454,17 +4542,6 @@ "FOB" ] }, - "commodities": { - "type": "array", - "description": "The parcel content items", - "nullable": true, - "items": { - "$ref": "#/components/schemas/Commodity" - } - }, - "duty": { - "$ref": "#/components/schemas/Duty" - }, "invoice": { "title": "Invoice", "type": "string", @@ -4494,15 +4571,11 @@ "type": "string", "nullable": true }, - "certificate_number": { - "title": "Certificate number", - "type": "string", - "nullable": true - }, "options": { "title": "Options", "type": "object", "properties": {}, + "description": "\n
\nCustoms identification options.\n\n```\n{\n \"aes\": \"5218487281\",\n \"eel_pfc\": \"5218487281\",\n \"license_number\": \"5218487281\",\n \"certificate_number\": \"5218487281\",\n \"nip_number\": \"5218487281\",\n \"eori_number\": \"5218487281\",\n \"vat_registration_number\": \"5218487281\",\n}\n```\n\nPlease check the docs for carrier specific options.\n
\n", "nullable": true } } @@ -5297,7 +5370,7 @@ "title": "Options", "type": "object", "properties": {}, - "description": "\nThe options available for the shipment.\n\nPlease consult [the reference](#operation/references) for additional specific carriers options.\n", + "description": "\n
\nThe options available for the shipment.\n\n```\n{\n \"currency\": \"USD\",\n \"insurance\": 100.00,\n \"cash_on_delivery\": 30.00,\n \"shipment_date\": \"2020-01-01\",\n \"dangerous_good\": true,\n \"declared_value\": 150.00,\n \"email_notification\": true,\n \"email_notification_to\": shipper@mail.com,\n \"signature_confirmation\": true,\n}\n```\n\nPlease check the docs for carrier specific options.\n
\n", "nullable": true }, "reference": { @@ -5635,7 +5708,7 @@ "title": "Options", "type": "object", "properties": {}, - "description": "\nThe options available for the shipment.
\nPlease consult [the reference](#operation/references) for additional specific carriers options.\n", + "description": "\n
\nThe options available for the shipment.\n\n```\n{\n \"currency\": \"USD\",\n \"insurance\": 100.00,\n \"cash_on_delivery\": 30.00,\n \"shipment_date\": \"2020-01-01\",\n \"dangerous_good\": true,\n \"declared_value\": 150.00,\n \"email_notification\": true,\n \"email_notification_to\": shipper@mail.com,\n \"signature_confirmation\": true,\n}\n```\n\nPlease check the docs for carrier specific options.\n
\n", "nullable": true }, "payment": { @@ -5790,7 +5863,7 @@ "title": "Options", "type": "object", "properties": {}, - "description": "\nThe options available for the shipment.
\nPlease consult [the reference](#operation/references) for additional specific carriers options.\n", + "description": "\n
\nThe options available for the shipment.\n\n```\n{\n \"currency\": \"USD\",\n \"insurance\": 100.00,\n \"cash_on_delivery\": 30.00,\n \"shipment_date\": \"2020-01-01\",\n \"dangerous_good\": true,\n \"declared_value\": 150.00,\n \"email_notification\": true,\n \"email_notification_to\": shipper@mail.com,\n \"signature_confirmation\": true,\n}\n```\n\nPlease check the docs for carrier specific options.\n
\n", "nullable": true }, "payment": { @@ -5984,6 +6057,19 @@ "incident", "delivered" ] + }, + "estimated_delivery": { + "title": "Estimated delivery", + "minLength": 1, + "type": "string", + "description": "The delivery estimated date" + }, + "messages": { + "type": "array", + "description": "The list of note or warning messages", + "items": { + "$ref": "#/components/schemas/Message" + } } }, "description": "The tracking details retrieved" @@ -6006,10 +6092,13 @@ "References": { "required": [ "ADDRESS_AUTO_COMPLETE", + "ADMIN", "APP_NAME", "APP_VERSION", "APP_WEBSITE", + "GRAPHQL", "MULTI_ORGANIZATIONS", + "OPENAPI", "carrier_capabilities", "carriers", "countries", @@ -6021,6 +6110,7 @@ "package_presets", "packaging_types", "payment_types", + "service_levels", "service_names", "services", "states" @@ -6046,6 +6136,21 @@ "title": "Multi organizations", "type": "boolean" }, + "ADMIN": { + "title": "Admin", + "minLength": 1, + "type": "string" + }, + "OPENAPI": { + "title": "Openapi", + "minLength": 1, + "type": "string" + }, + "GRAPHQL": { + "title": "Graphql", + "minLength": 1, + "type": "string" + }, "ADDRESS_AUTO_COMPLETE": { "title": "Address auto complete", "type": "object", @@ -6120,6 +6225,11 @@ "title": "Carrier capabilities", "type": "object", "properties": {} + }, + "service_levels": { + "title": "Service levels", + "type": "object", + "properties": {} } } }, @@ -6174,7 +6284,7 @@ "title": "Options", "type": "object", "properties": {}, - "description": "\nThe options available for the shipment.
\nPlease consult [the reference](#operation/references) for additional specific carriers options.\n", + "description": "\n
\nThe options available for the shipment.\n\n```\n{\n \"currency\": \"USD\",\n \"insurance\": 100.00,\n \"cash_on_delivery\": 30.00,\n \"shipment_date\": \"2020-01-01\",\n \"dangerous_good\": true,\n \"declared_value\": 150.00,\n \"email_notification\": true,\n \"email_notification_to\": shipper@mail.com,\n \"signature_confirmation\": true,\n}\n```\n\nPlease check the docs for carrier specific options.\n
\n", "nullable": true }, "payment": { diff --git a/server/schemas/swagger.json b/server/schemas/swagger.json index 119e798ef5..995525fe79 100644 --- a/server/schemas/swagger.json +++ b/server/schemas/swagger.json @@ -2,11 +2,11 @@ "swagger": "2.0", "info": { "title": "Purplship API", - "description": "\n## API Reference\n\nPurplship is an open source multi-carrier shipping API that simplifies the integration of logistic carrier services.\n\nThe Purplship API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded \nrequest bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.\n\nThe Purplship API differs for every account as we release new versions.\nThese docs are customized to your version of the API.\n\n\n## Versioning\n\nWhen backwards-incompatible changes are made to the API, a new, dated version is released. \nThe current version is `2021.10`. \n\nRead our API changelog and to learn more about backwards compatibility.\n\nAs a precaution, use API versioning to check a new API version before committing to an upgrade.\n\n\n## Pagination\n\nAll top-level API resources have support for bulk fetches via \"list\" API methods. For instance, you can list addresses, \nlist shipments, and list trackers. These list API methods share a common structure, taking at least these \ntwo parameters: limit, and offset.\n\nPurplship utilizes offset-based pagination via the offset and limit parameters.\nBoth parameters take a number as value (see below) and return objects in reverse chronological order. \nThe offset parameter returns objects listed after an index. \nThe limit parameter take a limit on the number of objects to be returned from 1 to 100.\n\n\n```json\n{\n \"next\": \"/v1/shipments?limit=25&offset=25\",\n \"previous\": \"/v1/shipments?limit=25&offset=25\",\n \"results\": [\n ]\n}\n```\n\n## Environments\n\nThe Purplship API offer the possibility to create and retrieve certain objects in `test_mode`.\nIn development, it is therefore possible to add carrier connections, get live rates, \nbuy labels, create trackers and schedule pickups in `test_mode`.\n\n", + "description": "\n## API Reference\n\nPurplship is an open source multi-carrier shipping API that simplifies the integration of logistic carrier services.\n\nThe Purplship API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded \nrequest bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.\n\nThe Purplship API differs for every account as we release new versions.\nThese docs are customized to your version of the API.\n\n\n## Versioning\n\nWhen backwards-incompatible changes are made to the API, a new, dated version is released. \nThe current version is `2021.11`. \n\nRead our API changelog and to learn more about backwards compatibility.\n\nAs a precaution, use API versioning to check a new API version before committing to an upgrade.\n\n\n## Pagination\n\nAll top-level API resources have support for bulk fetches via \"list\" API methods. For instance, you can list addresses, \nlist shipments, and list trackers. These list API methods share a common structure, taking at least these \ntwo parameters: limit, and offset.\n\nPurplship utilizes offset-based pagination via the offset and limit parameters.\nBoth parameters take a number as value (see below) and return objects in reverse chronological order. \nThe offset parameter returns objects listed after an index. \nThe limit parameter take a limit on the number of objects to be returned from 1 to 100.\n\n\n```json\n{\n \"next\": \"/v1/shipments?limit=25&offset=25\",\n \"previous\": \"/v1/shipments?limit=25&offset=25\",\n \"results\": [\n ]\n}\n```\n\n## Environments\n\nThe Purplship API offer the possibility to create and retrieve certain objects in `test_mode`.\nIn development, it is therefore possible to add carrier connections, get live rates, \nbuy labels, create trackers and schedule pickups in `test_mode`.\n\n", "contact": { "email": "hello@purplship.com" }, - "version": "2021.10" + "version": "2021.11" }, "host": "app.purplship.com", "schemes": [ @@ -33,6 +33,26 @@ } ], "paths": { + "/": { + "get": { + "operationId": "&&ping", + "summary": "Instance Metadata", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Metadata" + } + } + }, + "tags": [ + "API" + ] + }, + "parameters": [] + }, "/api/token": { "post": { "operationId": "&&authenticate", @@ -344,6 +364,7 @@ "canadapost", "canpar", "dhl_express", + "dhl_poland", "dhl_universal", "dicom", "eshipper", @@ -1155,6 +1176,7 @@ "canadapost", "canpar", "dhl_express", + "dhl_poland", "dhl_universal", "dicom", "eshipper", @@ -1224,6 +1246,7 @@ "canadapost", "canpar", "dhl_express", + "dhl_poland", "dhl_universal", "dicom", "eshipper", @@ -1303,6 +1326,7 @@ "canadapost", "canpar", "dhl_express", + "dhl_poland", "dhl_universal", "dicom", "eshipper", @@ -1461,6 +1485,7 @@ "canadapost", "canpar", "dhl_express", + "dhl_poland", "dhl_universal", "dicom", "eshipper", @@ -1532,6 +1557,7 @@ "canadapost", "canpar", "dhl_express", + "dhl_poland", "dhl_universal", "dicom", "eshipper", @@ -1629,16 +1655,18 @@ ] }, { - "name": "created_start", + "name": "created_after", "in": "query", + "description": "DateTime in format `YYYY-MM-DD H:M:S.fz`", "type": "string", - "format": "date" + "format": "date-time" }, { - "name": "created_end", + "name": "created_before", "in": "query", + "description": "DateTime in format `YYYY-MM-DD H:M:S.fz`", "type": "string", - "format": "date" + "format": "date-time" }, { "name": "carrier_id", @@ -1679,6 +1707,7 @@ "canadapost", "canpar", "dhl_express", + "dhl_poland", "dhl_universal", "dicom", "eshipper", @@ -2047,6 +2076,20 @@ "delivered" ] }, + { + "name": "created_after", + "in": "query", + "description": "DateTime in format `YYYY-MM-DD H:M:S.fz`", + "type": "string", + "format": "date-time" + }, + { + "name": "created_before", + "in": "query", + "description": "DateTime in format `YYYY-MM-DD H:M:S.fz`", + "type": "string", + "format": "date-time" + }, { "name": "carrier_id", "in": "query", @@ -2076,6 +2119,7 @@ "canadapost", "canpar", "dhl_express", + "dhl_poland", "dhl_universal", "dicom", "eshipper", @@ -2139,6 +2183,7 @@ "canadapost", "canpar", "dhl_express", + "dhl_poland", "dhl_universal", "dicom", "eshipper", @@ -2460,6 +2505,54 @@ } }, "definitions": { + "Metadata": { + "required": [ + "APP_NAME", + "APP_VERSION", + "APP_WEBSITE", + "MULTI_ORGANIZATIONS", + "ADMIN", + "OPENAPI", + "GRAPHQL" + ], + "type": "object", + "properties": { + "APP_NAME": { + "title": "App name", + "type": "string", + "minLength": 1 + }, + "APP_VERSION": { + "title": "App version", + "type": "string", + "minLength": 1 + }, + "APP_WEBSITE": { + "title": "App website", + "type": "string", + "minLength": 1 + }, + "MULTI_ORGANIZATIONS": { + "title": "Multi organizations", + "type": "boolean" + }, + "ADMIN": { + "title": "Admin", + "type": "string", + "minLength": 1 + }, + "OPENAPI": { + "title": "Openapi", + "type": "string", + "minLength": 1 + }, + "GRAPHQL": { + "title": "Graphql", + "type": "string", + "minLength": 1 + } + } + }, "TokenObtainPair": { "required": [ "email", @@ -3366,6 +3459,7 @@ "canadapost", "canpar", "dhl_express", + "dhl_poland", "dhl_universal", "dicom", "eshipper", @@ -3491,8 +3585,7 @@ "type": "string", "x-nullable": true } - }, - "x-nullable": true + } }, "Duty": { "description": "\nThe payment details.
\nNote that this is required for a Dutiable parcel shipped internationally.\n", @@ -3679,6 +3772,9 @@ "x-nullable": true }, "Customs": { + "required": [ + "commodities" + ], "type": "object", "properties": { "id": { @@ -3687,15 +3783,15 @@ "type": "string", "minLength": 1 }, - "aes": { - "title": "Aes", - "type": "string", - "x-nullable": true + "commodities": { + "description": "The parcel content items", + "type": "array", + "items": { + "$ref": "#/definitions/Commodity" + } }, - "eel_pfc": { - "title": "Eel pfc", - "type": "string", - "x-nullable": true + "duty": { + "$ref": "#/definitions/Duty" }, "content_type": { "title": "Content type", @@ -3736,17 +3832,6 @@ ], "x-nullable": true }, - "commodities": { - "description": "The parcel content items", - "type": "array", - "items": { - "$ref": "#/definitions/Commodity" - }, - "x-nullable": true - }, - "duty": { - "$ref": "#/definitions/Duty" - }, "invoice": { "title": "Invoice", "description": "The invoice reference number", @@ -3776,13 +3861,9 @@ "type": "string", "x-nullable": true }, - "certificate_number": { - "title": "Certificate number", - "type": "string", - "x-nullable": true - }, "options": { "title": "Options", + "description": "\n
\nCustoms identification options.\n\n```\n{\n \"aes\": \"5218487281\",\n \"eel_pfc\": \"5218487281\",\n \"license_number\": \"5218487281\",\n \"certificate_number\": \"5218487281\",\n \"nip_number\": \"5218487281\",\n \"eori_number\": \"5218487281\",\n \"vat_registration_number\": \"5218487281\",\n}\n```\n\nPlease check the docs for carrier specific options.\n
\n", "type": "object", "additionalProperties": true, "x-nullable": true @@ -3816,17 +3897,20 @@ } }, "CustomsData": { + "required": [ + "commodities" + ], "type": "object", "properties": { - "aes": { - "title": "Aes", - "type": "string", - "x-nullable": true + "commodities": { + "description": "The parcel content items", + "type": "array", + "items": { + "$ref": "#/definitions/Commodity" + } }, - "eel_pfc": { - "title": "Eel pfc", - "type": "string", - "x-nullable": true + "duty": { + "$ref": "#/definitions/Duty" }, "content_type": { "title": "Content type", @@ -3867,17 +3951,6 @@ ], "x-nullable": true }, - "commodities": { - "description": "The parcel content items", - "type": "array", - "items": { - "$ref": "#/definitions/Commodity" - }, - "x-nullable": true - }, - "duty": { - "$ref": "#/definitions/Duty" - }, "invoice": { "title": "Invoice", "description": "The invoice reference number", @@ -3907,13 +3980,9 @@ "type": "string", "x-nullable": true }, - "certificate_number": { - "title": "Certificate number", - "type": "string", - "x-nullable": true - }, "options": { "title": "Options", + "description": "\n
\nCustoms identification options.\n\n```\n{\n \"aes\": \"5218487281\",\n \"eel_pfc\": \"5218487281\",\n \"license_number\": \"5218487281\",\n \"certificate_number\": \"5218487281\",\n \"nip_number\": \"5218487281\",\n \"eori_number\": \"5218487281\",\n \"vat_registration_number\": \"5218487281\",\n}\n```\n\nPlease check the docs for carrier specific options.\n
\n", "type": "object", "additionalProperties": true, "x-nullable": true @@ -4707,7 +4776,7 @@ }, "options": { "title": "Options", - "description": "\nThe options available for the shipment.\n\nPlease consult [the reference](#operation/references) for additional specific carriers options.\n", + "description": "\n
\nThe options available for the shipment.\n\n```\n{\n \"currency\": \"USD\",\n \"insurance\": 100.00,\n \"cash_on_delivery\": 30.00,\n \"shipment_date\": \"2020-01-01\",\n \"dangerous_good\": true,\n \"declared_value\": 150.00,\n \"email_notification\": true,\n \"email_notification_to\": shipper@mail.com,\n \"signature_confirmation\": true,\n}\n```\n\nPlease check the docs for carrier specific options.\n
\n", "type": "object", "additionalProperties": true, "x-nullable": true @@ -5048,7 +5117,7 @@ }, "options": { "title": "Options", - "description": "\nThe options available for the shipment.
\nPlease consult [the reference](#operation/references) for additional specific carriers options.\n", + "description": "\n
\nThe options available for the shipment.\n\n```\n{\n \"currency\": \"USD\",\n \"insurance\": 100.00,\n \"cash_on_delivery\": 30.00,\n \"shipment_date\": \"2020-01-01\",\n \"dangerous_good\": true,\n \"declared_value\": 150.00,\n \"email_notification\": true,\n \"email_notification_to\": shipper@mail.com,\n \"signature_confirmation\": true,\n}\n```\n\nPlease check the docs for carrier specific options.\n
\n", "type": "object", "additionalProperties": true, "x-nullable": true @@ -5205,7 +5274,7 @@ }, "options": { "title": "Options", - "description": "\nThe options available for the shipment.
\nPlease consult [the reference](#operation/references) for additional specific carriers options.\n", + "description": "\n
\nThe options available for the shipment.\n\n```\n{\n \"currency\": \"USD\",\n \"insurance\": 100.00,\n \"cash_on_delivery\": 30.00,\n \"shipment_date\": \"2020-01-01\",\n \"dangerous_good\": true,\n \"declared_value\": 150.00,\n \"email_notification\": true,\n \"email_notification_to\": shipper@mail.com,\n \"signature_confirmation\": true,\n}\n```\n\nPlease check the docs for carrier specific options.\n
\n", "type": "object", "additionalProperties": true, "x-nullable": true @@ -5403,6 +5472,20 @@ "delivered" ], "default": "pending" + }, + "estimated_delivery": { + "title": "Estimated delivery", + "description": "The delivery estimated date", + "type": "string", + "minLength": 1 + }, + "messages": { + "description": "The list of note or warning messages", + "type": "array", + "items": { + "$ref": "#/definitions/Message" + }, + "default": [] } } }, @@ -5427,6 +5510,9 @@ "APP_VERSION", "APP_WEBSITE", "MULTI_ORGANIZATIONS", + "ADMIN", + "OPENAPI", + "GRAPHQL", "ADDRESS_AUTO_COMPLETE", "countries", "currencies", @@ -5441,7 +5527,8 @@ "package_presets", "packaging_types", "payment_types", - "carrier_capabilities" + "carrier_capabilities", + "service_levels" ], "type": "object", "properties": { @@ -5464,6 +5551,21 @@ "title": "Multi organizations", "type": "boolean" }, + "ADMIN": { + "title": "Admin", + "type": "string", + "minLength": 1 + }, + "OPENAPI": { + "title": "Openapi", + "type": "string", + "minLength": 1 + }, + "GRAPHQL": { + "title": "Graphql", + "type": "string", + "minLength": 1 + }, "ADDRESS_AUTO_COMPLETE": { "title": "Address auto complete", "type": "object", @@ -5538,6 +5640,11 @@ "title": "Carrier capabilities", "type": "object", "additionalProperties": true + }, + "service_levels": { + "title": "Service levels", + "type": "object", + "additionalProperties": true } } }, @@ -5590,7 +5697,7 @@ }, "options": { "title": "Options", - "description": "\nThe options available for the shipment.
\nPlease consult [the reference](#operation/references) for additional specific carriers options.\n", + "description": "\n
\nThe options available for the shipment.\n\n```\n{\n \"currency\": \"USD\",\n \"insurance\": 100.00,\n \"cash_on_delivery\": 30.00,\n \"shipment_date\": \"2020-01-01\",\n \"dangerous_good\": true,\n \"declared_value\": 150.00,\n \"email_notification\": true,\n \"email_notification_to\": shipper@mail.com,\n \"signature_confirmation\": true,\n}\n```\n\nPlease check the docs for carrier specific options.\n
\n", "type": "object", "additionalProperties": true, "x-nullable": true