Skip to content

fix(accounting): accept delivery contact addresses - #842

Open
miachillgood wants to merge 1 commit into
XeroAPI:masterfrom
miachillgood:codex/issue-666-contact-delivery-address
Open

fix(accounting): accept delivery contact addresses#842
miachillgood wants to merge 1 commit into
XeroAPI:masterfrom
miachillgood:codex/issue-666-contact-delivery-address

Conversation

@miachillgood

Copy link
Copy Markdown

Description

The live Accounting API can return DELIVERY in Contact.Addresses[].AddressType, while the reusable Address schema only permits POBOX and STREET. Generated SDKs with closed enums therefore fail to deserialize the entire contact.

AddressForOrganisation already includes DELIVERY; this aligns the contact address schema with the observed response and prevents the generated client failure reported in XeroAPI/Xero-NetStandard#666.

Fixes XeroAPI/Xero-NetStandard#666.

Validation

  • parsed xero_accounting.yaml successfully with PyYAML
  • scripts/api-diff/api-diff.test.sh: 9/9 passed
  • git diff --check

The change is an additive enum value; repository CI will run the official API-diff and code-generation validation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Contact.Addresses[].AddressType fails to deserialize "DELIVERY"

1 participant