Skip to content

fix: accept API tax number type values - #389

Open
miachillgood wants to merge 1 commit into
XeroAPI:masterfrom
miachillgood:codex/issue-351-tax-number-type
Open

fix: accept API tax number type values#389
miachillgood wants to merge 1 commit into
XeroAPI:masterfrom
miachillgood:codex/issue-351-tax-number-type

Conversation

@miachillgood

Copy link
Copy Markdown

Summary

Closes #351.

The Contact model currently rejects tax number type values returned by the Accounting API, such as TAXNUMBERTYPE/EIN. This expands validation to accept both the existing unprefixed values and the API-prefixed variants, including NONE, while continuing to reject unsupported values.

Validation

  • bundle exec rspec (3,200 examples, 0 failures)
  • bundle exec rubocop lib/xero-ruby/models/accounting/contact.rb spec/accounting/models/contact_spec.rb (0 offenses)

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.

TaxNumberType introduces various issues

1 participant