avalara_sdk 25.9.0 → 25.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +1 -0
  4. data/docs/A1099/V2/CompaniesW9Api.md +5 -5
  5. data/docs/A1099/V2/ErrorResponse.md +2 -2
  6. data/docs/A1099/V2/ErrorResponseItem.md +2 -2
  7. data/docs/A1099/V2/Forms1099Api.md +7 -7
  8. data/docs/A1099/V2/FormsW9Api.md +91 -8
  9. data/docs/A1099/V2/Issuers1099Api.md +5 -5
  10. data/docs/A1099/V2/JobsApi.md +1 -1
  11. data/docs/A1099/V2/W8BenEFormRequest.md +4 -4
  12. data/docs/A1099/V2/W8BenFormRequest.md +7 -7
  13. data/docs/A1099/V2/W8ImyFormRequest.md +2 -2
  14. data/docs/A1099/V2/W9FormRequest.md +2 -2
  15. data/lib/avalara_sdk/api/A1099/V2/companies_w9_api.rb +1 -1
  16. data/lib/avalara_sdk/api/A1099/V2/forms1099_api.rb +1 -1
  17. data/lib/avalara_sdk/api/A1099/V2/forms_w9_api.rb +138 -1
  18. data/lib/avalara_sdk/api/A1099/V2/issuers1099_api.rb +1 -1
  19. data/lib/avalara_sdk/api/A1099/V2/jobs_api.rb +1 -1
  20. data/lib/avalara_sdk/api/EInvoicing/V1/data_input_fields_api.rb +1 -1
  21. data/lib/avalara_sdk/api/EInvoicing/V1/documents_api.rb +1 -1
  22. data/lib/avalara_sdk/api/EInvoicing/V1/interop_api.rb +1 -1
  23. data/lib/avalara_sdk/api/EInvoicing/V1/mandates_api.rb +1 -1
  24. data/lib/avalara_sdk/api/EInvoicing/V1/subscriptions_api.rb +1 -1
  25. data/lib/avalara_sdk/api/EInvoicing/V1/tax_identifiers_api.rb +1 -1
  26. data/lib/avalara_sdk/api/EInvoicing/V1/trading_partners_api.rb +1 -1
  27. data/lib/avalara_sdk/models/A1099/V2/error_response.rb +2 -0
  28. data/lib/avalara_sdk/models/A1099/V2/error_response_item.rb +2 -0
  29. data/lib/avalara_sdk/models/A1099/V2/w4_form_request.rb +24 -0
  30. data/lib/avalara_sdk/models/A1099/V2/w8_ben_e_form_request.rb +100 -4
  31. data/lib/avalara_sdk/models/A1099/V2/w8_ben_form_request.rb +91 -7
  32. data/lib/avalara_sdk/models/A1099/V2/w8_imy_form_request.rb +50 -2
  33. data/lib/avalara_sdk/models/A1099/V2/w9_form_request.rb +26 -2
  34. data/lib/avalara_sdk/version.rb +1 -1
  35. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/byebug-11.1.3/gem_make.out +5 -5
  36. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/date-3.4.1/gem_make.out +5 -5
  37. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debase-0.2.9/gem_make.out +5 -5
  38. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debug-1.10.0/gem_make.out +5 -5
  39. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/erb-5.0.1/gem_make.out +5 -5
  40. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/io-console-0.8.0/gem_make.out +5 -5
  41. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/json-2.12.2/gem_make.out +5 -5
  42. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/prism-1.4.0/gem_make.out +5 -5
  43. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/psych-5.2.6/gem_make.out +5 -5
  44. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/racc-1.8.1/gem_make.out +5 -5
  45. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/stringio-3.1.7/gem_make.out +5 -5
  46. metadata +2 -2
@@ -17,7 +17,7 @@ module AvalaraSdk::A1099::V2
17
17
  # The name of the individual or entity associated with the form.
18
18
  attr_accessor :name
19
19
 
20
- # The country of citizenship.
20
+ # The country of citizenship.. Allowed values: US, AF, AX, AL, AG, AQ, AN, AO, AV, AY (and 248 more)
21
21
  attr_accessor :citizenship_country
22
22
 
23
23
  # The residential address of the individual or entity.
@@ -26,13 +26,13 @@ module AvalaraSdk::A1099::V2
26
26
  # The city of residence.
27
27
  attr_accessor :residence_city
28
28
 
29
- # The state of residence.
29
+ # The state of residence. Required for US and Canada.. Allowed values: AA, AE, AK, AL, AP, AR, AS, AZ, CA, CO (and 65 more)
30
30
  attr_accessor :residence_state
31
31
 
32
32
  # The ZIP code of the residence.
33
33
  attr_accessor :residence_zip
34
34
 
35
- # The country of residence.
35
+ # The country of residence.. Allowed values: US, AF, AX, AL, AG, AQ, AN, AO, AV, AY (and 248 more)
36
36
  attr_accessor :residence_country
37
37
 
38
38
  # Indicates whether the residence address is the mailing address.
@@ -44,13 +44,13 @@ module AvalaraSdk::A1099::V2
44
44
  # The city of the mailing address.
45
45
  attr_accessor :mailing_city
46
46
 
47
- # The state of the mailing address.
47
+ # The state of the mailing address. Required for US and Canada.. Allowed values: AA, AE, AK, AL, AP, AR, AS, AZ, CA, CO (and 65 more)
48
48
  attr_accessor :mailing_state
49
49
 
50
50
  # The ZIP code of the mailing address.
51
51
  attr_accessor :mailing_zip
52
52
 
53
- # The country of the mailing address.
53
+ # The country of the mailing address.. Allowed values: US, AF, AX, AL, AG, AQ, AN, AO, AV, AY (and 248 more)
54
54
  attr_accessor :mailing_country
55
55
 
56
56
  # The taxpayer identification number (TIN).
@@ -68,7 +68,7 @@ module AvalaraSdk::A1099::V2
68
68
  # The birthday of the individual associated with the form.
69
69
  attr_accessor :birthday
70
70
 
71
- # The country for which the treaty applies.
71
+ # The country for which the treaty applies.. Allowed values: US, AF, AX, AL, AG, AQ, AN, AO, AV, AY (and 248 more)
72
72
  attr_accessor :treaty_country
73
73
 
74
74
  # The specific article of the treaty being claimed.
@@ -77,7 +77,7 @@ module AvalaraSdk::A1099::V2
77
77
  # The reasons for claiming treaty benefits.
78
78
  attr_accessor :treaty_reasons
79
79
 
80
- # The withholding rate applied as per the treaty.
80
+ # The withholding rate applied as per the treaty. Must be a percentage with up to two decimals (e.g., 12.50, 0).. Allowed values: 0, 0.0, 0.00, 5, 5.5, 10, 12.50, 15, 20, 25 (and 1 more)
81
81
  attr_accessor :withholding_rate
82
82
 
83
83
  # The type of income covered by the treaty.
@@ -404,7 +404,21 @@ module AvalaraSdk::A1099::V2
404
404
  return false unless type_validator.valid?(@type)
405
405
  return false if @name.nil?
406
406
  return false if @citizenship_country.nil?
407
+ citizenship_country_validator = EnumAttributeValidator.new('String', ["US", "AF", "AX", "AL", "AG", "AQ", "AN", "AO", "AV", "AY", "AC", "AR", "AM", "AA", "AT", "AS", "AU", "AJ", "BF", "BA", "FQ", "BG", "BB", "BO", "BE", "BH", "BN", "BD", "BT", "BL", "BK", "BC", "BV", "BR", "IO", "VI", "BX", "BU", "UV", "BM", "BY", "CB", "CM", "CA", "CV", "CJ", "CT", "CD", "CI", "CH", "KT", "IP", "CK", "CO", "CN", "CF", "CG", "CW", "CR", "CS", "IV", "HR", "CU", "UC", "CY", "EZ", "DA", "DX", "DJ", "DO", "DR", "TT", "EC", "EG", "ES", "EK", "ER", "EN", "ET", "FK", "FO", "FM", "FJ", "FI", "FR", "FP", "FS", "GB", "GA", "GG", "GM", "GH", "GI", "GR", "GL", "GJ", "GQ", "GT", "GK", "GV", "PU", "GY", "HA", "HM", "VT", "HO", "HK", "HQ", "HU", "IC", "IN", "ID", "IR", "IZ", "EI", "IS", "IT", "JM", "JN", "JA", "DQ", "JE", "JQ", "JO", "KZ", "KE", "KQ", "KR", "KN", "KS", "KV", "KU", "KG", "LA", "LG", "LE", "LT", "LI", "LY", "LS", "LH", "LU", "MC", "MK", "MA", "MI", "MY", "MV", "ML", "MT", "IM", "RM", "MR", "MP", "MX", "MQ", "MD", "MN", "MG", "MJ", "MH", "MO", "MZ", "WA", "NR", "BQ", "NP", "NL", "NC", "NZ", "NU", "NG", "NI", "NE", "NF", "CQ", "NO", "MU", "OC", "PK", "PS", "LQ", "PM", "PP", "PF", "PA", "PE", "RP", "PC", "PL", "PO", "RQ", "QA", "RO", "RS", "RW", "TB", "RN", "WS", "SM", "TP", "SA", "SG", "RI", "SE", "SL", "SN", "NN", "LO", "SI", "BP", "SO", "SF", "SX", "SP", "PG", "CE", "SH", "SC", "ST", "SB", "VC", "SU", "NS", "SV", "WZ", "SW", "SZ", "SY", "TW", "TI", "TZ", "TH", "TO", "TL", "TN", "TD", "TS", "TU", "TX", "TK", "TV", "UG", "UP", "AE", "UK", "UY", "UZ", "NH", "VE", "VM", "VQ", "WQ", "WF", "WI", "YM", "ZA", "ZI"])
408
+ return false unless citizenship_country_validator.valid?(@citizenship_country)
409
+ residence_state_validator = EnumAttributeValidator.new('String', ["AA", "AE", "AK", "AL", "AP", "AR", "AS", "AZ", "CA", "CO", "CT", "DC", "DE", "FL", "FM", "GA", "GU", "HI", "IA", "ID", "IL", "IN", "KS", "KY", "LA", "MA", "MD", "ME", "MH", "MI", "MN", "MO", "MP", "MS", "MT", "NC", "ND", "NE", "NH", "NJ", "NM", "NV", "NY", "OH", "OK", "OR", "PA", "PR", "PW", "RI", "SC", "SD", "TN", "TX", "UT", "VA", "VI", "VT", "WA", "WI", "WV", "WY", "AB", "BC", "MB", "NB", "NL", "NS", "NT", "NU", "ON", "PE", "QC", "SK", "YT"])
410
+ return false unless residence_state_validator.valid?(@residence_state)
407
411
  return false if @residence_country.nil?
412
+ residence_country_validator = EnumAttributeValidator.new('String', ["US", "AF", "AX", "AL", "AG", "AQ", "AN", "AO", "AV", "AY", "AC", "AR", "AM", "AA", "AT", "AS", "AU", "AJ", "BF", "BA", "FQ", "BG", "BB", "BO", "BE", "BH", "BN", "BD", "BT", "BL", "BK", "BC", "BV", "BR", "IO", "VI", "BX", "BU", "UV", "BM", "BY", "CB", "CM", "CA", "CV", "CJ", "CT", "CD", "CI", "CH", "KT", "IP", "CK", "CO", "CN", "CF", "CG", "CW", "CR", "CS", "IV", "HR", "CU", "UC", "CY", "EZ", "DA", "DX", "DJ", "DO", "DR", "TT", "EC", "EG", "ES", "EK", "ER", "EN", "ET", "FK", "FO", "FM", "FJ", "FI", "FR", "FP", "FS", "GB", "GA", "GG", "GM", "GH", "GI", "GR", "GL", "GJ", "GQ", "GT", "GK", "GV", "PU", "GY", "HA", "HM", "VT", "HO", "HK", "HQ", "HU", "IC", "IN", "ID", "IR", "IZ", "EI", "IS", "IT", "JM", "JN", "JA", "DQ", "JE", "JQ", "JO", "KZ", "KE", "KQ", "KR", "KN", "KS", "KV", "KU", "KG", "LA", "LG", "LE", "LT", "LI", "LY", "LS", "LH", "LU", "MC", "MK", "MA", "MI", "MY", "MV", "ML", "MT", "IM", "RM", "MR", "MP", "MX", "MQ", "MD", "MN", "MG", "MJ", "MH", "MO", "MZ", "WA", "NR", "BQ", "NP", "NL", "NC", "NZ", "NU", "NG", "NI", "NE", "NF", "CQ", "NO", "MU", "OC", "PK", "PS", "LQ", "PM", "PP", "PF", "PA", "PE", "RP", "PC", "PL", "PO", "RQ", "QA", "RO", "RS", "RW", "TB", "RN", "WS", "SM", "TP", "SA", "SG", "RI", "SE", "SL", "SN", "NN", "LO", "SI", "BP", "SO", "SF", "SX", "SP", "PG", "CE", "SH", "SC", "ST", "SB", "VC", "SU", "NS", "SV", "WZ", "SW", "SZ", "SY", "TW", "TI", "TZ", "TH", "TO", "TL", "TN", "TD", "TS", "TU", "TX", "TK", "TV", "UG", "UP", "AE", "UK", "UY", "UZ", "NH", "VE", "VM", "VQ", "WQ", "WF", "WI", "YM", "ZA", "ZI"])
413
+ return false unless residence_country_validator.valid?(@residence_country)
414
+ mailing_state_validator = EnumAttributeValidator.new('String', ["AA", "AE", "AK", "AL", "AP", "AR", "AS", "AZ", "CA", "CO", "CT", "DC", "DE", "FL", "FM", "GA", "GU", "HI", "IA", "ID", "IL", "IN", "KS", "KY", "LA", "MA", "MD", "ME", "MH", "MI", "MN", "MO", "MP", "MS", "MT", "NC", "ND", "NE", "NH", "NJ", "NM", "NV", "NY", "OH", "OK", "OR", "PA", "PR", "PW", "RI", "SC", "SD", "TN", "TX", "UT", "VA", "VI", "VT", "WA", "WI", "WV", "WY", "AB", "BC", "MB", "NB", "NL", "NS", "NT", "NU", "ON", "PE", "QC", "SK", "YT"])
415
+ return false unless mailing_state_validator.valid?(@mailing_state)
416
+ mailing_country_validator = EnumAttributeValidator.new('String', ["US", "AF", "AX", "AL", "AG", "AQ", "AN", "AO", "AV", "AY", "AC", "AR", "AM", "AA", "AT", "AS", "AU", "AJ", "BF", "BA", "FQ", "BG", "BB", "BO", "BE", "BH", "BN", "BD", "BT", "BL", "BK", "BC", "BV", "BR", "IO", "VI", "BX", "BU", "UV", "BM", "BY", "CB", "CM", "CA", "CV", "CJ", "CT", "CD", "CI", "CH", "KT", "IP", "CK", "CO", "CN", "CF", "CG", "CW", "CR", "CS", "IV", "HR", "CU", "UC", "CY", "EZ", "DA", "DX", "DJ", "DO", "DR", "TT", "EC", "EG", "ES", "EK", "ER", "EN", "ET", "FK", "FO", "FM", "FJ", "FI", "FR", "FP", "FS", "GB", "GA", "GG", "GM", "GH", "GI", "GR", "GL", "GJ", "GQ", "GT", "GK", "GV", "PU", "GY", "HA", "HM", "VT", "HO", "HK", "HQ", "HU", "IC", "IN", "ID", "IR", "IZ", "EI", "IS", "IT", "JM", "JN", "JA", "DQ", "JE", "JQ", "JO", "KZ", "KE", "KQ", "KR", "KN", "KS", "KV", "KU", "KG", "LA", "LG", "LE", "LT", "LI", "LY", "LS", "LH", "LU", "MC", "MK", "MA", "MI", "MY", "MV", "ML", "MT", "IM", "RM", "MR", "MP", "MX", "MQ", "MD", "MN", "MG", "MJ", "MH", "MO", "MZ", "WA", "NR", "BQ", "NP", "NL", "NC", "NZ", "NU", "NG", "NI", "NE", "NF", "CQ", "NO", "MU", "OC", "PK", "PS", "LQ", "PM", "PP", "PF", "PA", "PE", "RP", "PC", "PL", "PO", "RQ", "QA", "RO", "RS", "RW", "TB", "RN", "WS", "SM", "TP", "SA", "SG", "RI", "SE", "SL", "SN", "NN", "LO", "SI", "BP", "SO", "SF", "SX", "SP", "PG", "CE", "SH", "SC", "ST", "SB", "VC", "SU", "NS", "SV", "WZ", "SW", "SZ", "SY", "TW", "TI", "TZ", "TH", "TO", "TL", "TN", "TD", "TS", "TU", "TX", "TK", "TV", "UG", "UP", "AE", "UK", "UY", "UZ", "NH", "VE", "VM", "VQ", "WQ", "WF", "WI", "YM", "ZA", "ZI"])
417
+ return false unless mailing_country_validator.valid?(@mailing_country)
418
+ treaty_country_validator = EnumAttributeValidator.new('String', ["US", "AF", "AX", "AL", "AG", "AQ", "AN", "AO", "AV", "AY", "AC", "AR", "AM", "AA", "AT", "AS", "AU", "AJ", "BF", "BA", "FQ", "BG", "BB", "BO", "BE", "BH", "BN", "BD", "BT", "BL", "BK", "BC", "BV", "BR", "IO", "VI", "BX", "BU", "UV", "BM", "BY", "CB", "CM", "CA", "CV", "CJ", "CT", "CD", "CI", "CH", "KT", "IP", "CK", "CO", "CN", "CF", "CG", "CW", "CR", "CS", "IV", "HR", "CU", "UC", "CY", "EZ", "DA", "DX", "DJ", "DO", "DR", "TT", "EC", "EG", "ES", "EK", "ER", "EN", "ET", "FK", "FO", "FM", "FJ", "FI", "FR", "FP", "FS", "GB", "GA", "GG", "GM", "GH", "GI", "GR", "GL", "GJ", "GQ", "GT", "GK", "GV", "PU", "GY", "HA", "HM", "VT", "HO", "HK", "HQ", "HU", "IC", "IN", "ID", "IR", "IZ", "EI", "IS", "IT", "JM", "JN", "JA", "DQ", "JE", "JQ", "JO", "KZ", "KE", "KQ", "KR", "KN", "KS", "KV", "KU", "KG", "LA", "LG", "LE", "LT", "LI", "LY", "LS", "LH", "LU", "MC", "MK", "MA", "MI", "MY", "MV", "ML", "MT", "IM", "RM", "MR", "MP", "MX", "MQ", "MD", "MN", "MG", "MJ", "MH", "MO", "MZ", "WA", "NR", "BQ", "NP", "NL", "NC", "NZ", "NU", "NG", "NI", "NE", "NF", "CQ", "NO", "MU", "OC", "PK", "PS", "LQ", "PM", "PP", "PF", "PA", "PE", "RP", "PC", "PL", "PO", "RQ", "QA", "RO", "RS", "RW", "TB", "RN", "WS", "SM", "TP", "SA", "SG", "RI", "SE", "SL", "SN", "NN", "LO", "SI", "BP", "SO", "SF", "SX", "SP", "PG", "CE", "SH", "SC", "ST", "SB", "VC", "SU", "NS", "SV", "WZ", "SW", "SZ", "SY", "TW", "TI", "TZ", "TH", "TO", "TL", "TN", "TD", "TS", "TU", "TX", "TK", "TV", "UG", "UP", "AE", "UK", "UY", "UZ", "NH", "VE", "VM", "VQ", "WQ", "WF", "WI", "YM", "ZA", "ZI"])
419
+ return false unless treaty_country_validator.valid?(@treaty_country)
420
+ withholding_rate_validator = EnumAttributeValidator.new('String', ["0", "0.0", "0.00", "5", "5.5", "10", "12.50", "15", "20", "25", "30"])
421
+ return false unless withholding_rate_validator.valid?(@withholding_rate)
408
422
  true
409
423
  end
410
424
 
@@ -418,6 +432,76 @@ module AvalaraSdk::A1099::V2
418
432
  @type = type
419
433
  end
420
434
 
435
+ # Custom attribute writer method checking allowed values (enum).
436
+ # @param [Object] citizenship_country Object to be assigned
437
+ def citizenship_country=(citizenship_country)
438
+ validator = EnumAttributeValidator.new('String', ["US", "AF", "AX", "AL", "AG", "AQ", "AN", "AO", "AV", "AY", "AC", "AR", "AM", "AA", "AT", "AS", "AU", "AJ", "BF", "BA", "FQ", "BG", "BB", "BO", "BE", "BH", "BN", "BD", "BT", "BL", "BK", "BC", "BV", "BR", "IO", "VI", "BX", "BU", "UV", "BM", "BY", "CB", "CM", "CA", "CV", "CJ", "CT", "CD", "CI", "CH", "KT", "IP", "CK", "CO", "CN", "CF", "CG", "CW", "CR", "CS", "IV", "HR", "CU", "UC", "CY", "EZ", "DA", "DX", "DJ", "DO", "DR", "TT", "EC", "EG", "ES", "EK", "ER", "EN", "ET", "FK", "FO", "FM", "FJ", "FI", "FR", "FP", "FS", "GB", "GA", "GG", "GM", "GH", "GI", "GR", "GL", "GJ", "GQ", "GT", "GK", "GV", "PU", "GY", "HA", "HM", "VT", "HO", "HK", "HQ", "HU", "IC", "IN", "ID", "IR", "IZ", "EI", "IS", "IT", "JM", "JN", "JA", "DQ", "JE", "JQ", "JO", "KZ", "KE", "KQ", "KR", "KN", "KS", "KV", "KU", "KG", "LA", "LG", "LE", "LT", "LI", "LY", "LS", "LH", "LU", "MC", "MK", "MA", "MI", "MY", "MV", "ML", "MT", "IM", "RM", "MR", "MP", "MX", "MQ", "MD", "MN", "MG", "MJ", "MH", "MO", "MZ", "WA", "NR", "BQ", "NP", "NL", "NC", "NZ", "NU", "NG", "NI", "NE", "NF", "CQ", "NO", "MU", "OC", "PK", "PS", "LQ", "PM", "PP", "PF", "PA", "PE", "RP", "PC", "PL", "PO", "RQ", "QA", "RO", "RS", "RW", "TB", "RN", "WS", "SM", "TP", "SA", "SG", "RI", "SE", "SL", "SN", "NN", "LO", "SI", "BP", "SO", "SF", "SX", "SP", "PG", "CE", "SH", "SC", "ST", "SB", "VC", "SU", "NS", "SV", "WZ", "SW", "SZ", "SY", "TW", "TI", "TZ", "TH", "TO", "TL", "TN", "TD", "TS", "TU", "TX", "TK", "TV", "UG", "UP", "AE", "UK", "UY", "UZ", "NH", "VE", "VM", "VQ", "WQ", "WF", "WI", "YM", "ZA", "ZI"])
439
+ unless validator.valid?(citizenship_country)
440
+ fail ArgumentError, "invalid value for \"citizenship_country\", must be one of #{validator.allowable_values}."
441
+ end
442
+ @citizenship_country = citizenship_country
443
+ end
444
+
445
+ # Custom attribute writer method checking allowed values (enum).
446
+ # @param [Object] residence_state Object to be assigned
447
+ def residence_state=(residence_state)
448
+ validator = EnumAttributeValidator.new('String', ["AA", "AE", "AK", "AL", "AP", "AR", "AS", "AZ", "CA", "CO", "CT", "DC", "DE", "FL", "FM", "GA", "GU", "HI", "IA", "ID", "IL", "IN", "KS", "KY", "LA", "MA", "MD", "ME", "MH", "MI", "MN", "MO", "MP", "MS", "MT", "NC", "ND", "NE", "NH", "NJ", "NM", "NV", "NY", "OH", "OK", "OR", "PA", "PR", "PW", "RI", "SC", "SD", "TN", "TX", "UT", "VA", "VI", "VT", "WA", "WI", "WV", "WY", "AB", "BC", "MB", "NB", "NL", "NS", "NT", "NU", "ON", "PE", "QC", "SK", "YT"])
449
+ unless validator.valid?(residence_state)
450
+ fail ArgumentError, "invalid value for \"residence_state\", must be one of #{validator.allowable_values}."
451
+ end
452
+ @residence_state = residence_state
453
+ end
454
+
455
+ # Custom attribute writer method checking allowed values (enum).
456
+ # @param [Object] residence_country Object to be assigned
457
+ def residence_country=(residence_country)
458
+ validator = EnumAttributeValidator.new('String', ["US", "AF", "AX", "AL", "AG", "AQ", "AN", "AO", "AV", "AY", "AC", "AR", "AM", "AA", "AT", "AS", "AU", "AJ", "BF", "BA", "FQ", "BG", "BB", "BO", "BE", "BH", "BN", "BD", "BT", "BL", "BK", "BC", "BV", "BR", "IO", "VI", "BX", "BU", "UV", "BM", "BY", "CB", "CM", "CA", "CV", "CJ", "CT", "CD", "CI", "CH", "KT", "IP", "CK", "CO", "CN", "CF", "CG", "CW", "CR", "CS", "IV", "HR", "CU", "UC", "CY", "EZ", "DA", "DX", "DJ", "DO", "DR", "TT", "EC", "EG", "ES", "EK", "ER", "EN", "ET", "FK", "FO", "FM", "FJ", "FI", "FR", "FP", "FS", "GB", "GA", "GG", "GM", "GH", "GI", "GR", "GL", "GJ", "GQ", "GT", "GK", "GV", "PU", "GY", "HA", "HM", "VT", "HO", "HK", "HQ", "HU", "IC", "IN", "ID", "IR", "IZ", "EI", "IS", "IT", "JM", "JN", "JA", "DQ", "JE", "JQ", "JO", "KZ", "KE", "KQ", "KR", "KN", "KS", "KV", "KU", "KG", "LA", "LG", "LE", "LT", "LI", "LY", "LS", "LH", "LU", "MC", "MK", "MA", "MI", "MY", "MV", "ML", "MT", "IM", "RM", "MR", "MP", "MX", "MQ", "MD", "MN", "MG", "MJ", "MH", "MO", "MZ", "WA", "NR", "BQ", "NP", "NL", "NC", "NZ", "NU", "NG", "NI", "NE", "NF", "CQ", "NO", "MU", "OC", "PK", "PS", "LQ", "PM", "PP", "PF", "PA", "PE", "RP", "PC", "PL", "PO", "RQ", "QA", "RO", "RS", "RW", "TB", "RN", "WS", "SM", "TP", "SA", "SG", "RI", "SE", "SL", "SN", "NN", "LO", "SI", "BP", "SO", "SF", "SX", "SP", "PG", "CE", "SH", "SC", "ST", "SB", "VC", "SU", "NS", "SV", "WZ", "SW", "SZ", "SY", "TW", "TI", "TZ", "TH", "TO", "TL", "TN", "TD", "TS", "TU", "TX", "TK", "TV", "UG", "UP", "AE", "UK", "UY", "UZ", "NH", "VE", "VM", "VQ", "WQ", "WF", "WI", "YM", "ZA", "ZI"])
459
+ unless validator.valid?(residence_country)
460
+ fail ArgumentError, "invalid value for \"residence_country\", must be one of #{validator.allowable_values}."
461
+ end
462
+ @residence_country = residence_country
463
+ end
464
+
465
+ # Custom attribute writer method checking allowed values (enum).
466
+ # @param [Object] mailing_state Object to be assigned
467
+ def mailing_state=(mailing_state)
468
+ validator = EnumAttributeValidator.new('String', ["AA", "AE", "AK", "AL", "AP", "AR", "AS", "AZ", "CA", "CO", "CT", "DC", "DE", "FL", "FM", "GA", "GU", "HI", "IA", "ID", "IL", "IN", "KS", "KY", "LA", "MA", "MD", "ME", "MH", "MI", "MN", "MO", "MP", "MS", "MT", "NC", "ND", "NE", "NH", "NJ", "NM", "NV", "NY", "OH", "OK", "OR", "PA", "PR", "PW", "RI", "SC", "SD", "TN", "TX", "UT", "VA", "VI", "VT", "WA", "WI", "WV", "WY", "AB", "BC", "MB", "NB", "NL", "NS", "NT", "NU", "ON", "PE", "QC", "SK", "YT"])
469
+ unless validator.valid?(mailing_state)
470
+ fail ArgumentError, "invalid value for \"mailing_state\", must be one of #{validator.allowable_values}."
471
+ end
472
+ @mailing_state = mailing_state
473
+ end
474
+
475
+ # Custom attribute writer method checking allowed values (enum).
476
+ # @param [Object] mailing_country Object to be assigned
477
+ def mailing_country=(mailing_country)
478
+ validator = EnumAttributeValidator.new('String', ["US", "AF", "AX", "AL", "AG", "AQ", "AN", "AO", "AV", "AY", "AC", "AR", "AM", "AA", "AT", "AS", "AU", "AJ", "BF", "BA", "FQ", "BG", "BB", "BO", "BE", "BH", "BN", "BD", "BT", "BL", "BK", "BC", "BV", "BR", "IO", "VI", "BX", "BU", "UV", "BM", "BY", "CB", "CM", "CA", "CV", "CJ", "CT", "CD", "CI", "CH", "KT", "IP", "CK", "CO", "CN", "CF", "CG", "CW", "CR", "CS", "IV", "HR", "CU", "UC", "CY", "EZ", "DA", "DX", "DJ", "DO", "DR", "TT", "EC", "EG", "ES", "EK", "ER", "EN", "ET", "FK", "FO", "FM", "FJ", "FI", "FR", "FP", "FS", "GB", "GA", "GG", "GM", "GH", "GI", "GR", "GL", "GJ", "GQ", "GT", "GK", "GV", "PU", "GY", "HA", "HM", "VT", "HO", "HK", "HQ", "HU", "IC", "IN", "ID", "IR", "IZ", "EI", "IS", "IT", "JM", "JN", "JA", "DQ", "JE", "JQ", "JO", "KZ", "KE", "KQ", "KR", "KN", "KS", "KV", "KU", "KG", "LA", "LG", "LE", "LT", "LI", "LY", "LS", "LH", "LU", "MC", "MK", "MA", "MI", "MY", "MV", "ML", "MT", "IM", "RM", "MR", "MP", "MX", "MQ", "MD", "MN", "MG", "MJ", "MH", "MO", "MZ", "WA", "NR", "BQ", "NP", "NL", "NC", "NZ", "NU", "NG", "NI", "NE", "NF", "CQ", "NO", "MU", "OC", "PK", "PS", "LQ", "PM", "PP", "PF", "PA", "PE", "RP", "PC", "PL", "PO", "RQ", "QA", "RO", "RS", "RW", "TB", "RN", "WS", "SM", "TP", "SA", "SG", "RI", "SE", "SL", "SN", "NN", "LO", "SI", "BP", "SO", "SF", "SX", "SP", "PG", "CE", "SH", "SC", "ST", "SB", "VC", "SU", "NS", "SV", "WZ", "SW", "SZ", "SY", "TW", "TI", "TZ", "TH", "TO", "TL", "TN", "TD", "TS", "TU", "TX", "TK", "TV", "UG", "UP", "AE", "UK", "UY", "UZ", "NH", "VE", "VM", "VQ", "WQ", "WF", "WI", "YM", "ZA", "ZI"])
479
+ unless validator.valid?(mailing_country)
480
+ fail ArgumentError, "invalid value for \"mailing_country\", must be one of #{validator.allowable_values}."
481
+ end
482
+ @mailing_country = mailing_country
483
+ end
484
+
485
+ # Custom attribute writer method checking allowed values (enum).
486
+ # @param [Object] treaty_country Object to be assigned
487
+ def treaty_country=(treaty_country)
488
+ validator = EnumAttributeValidator.new('String', ["US", "AF", "AX", "AL", "AG", "AQ", "AN", "AO", "AV", "AY", "AC", "AR", "AM", "AA", "AT", "AS", "AU", "AJ", "BF", "BA", "FQ", "BG", "BB", "BO", "BE", "BH", "BN", "BD", "BT", "BL", "BK", "BC", "BV", "BR", "IO", "VI", "BX", "BU", "UV", "BM", "BY", "CB", "CM", "CA", "CV", "CJ", "CT", "CD", "CI", "CH", "KT", "IP", "CK", "CO", "CN", "CF", "CG", "CW", "CR", "CS", "IV", "HR", "CU", "UC", "CY", "EZ", "DA", "DX", "DJ", "DO", "DR", "TT", "EC", "EG", "ES", "EK", "ER", "EN", "ET", "FK", "FO", "FM", "FJ", "FI", "FR", "FP", "FS", "GB", "GA", "GG", "GM", "GH", "GI", "GR", "GL", "GJ", "GQ", "GT", "GK", "GV", "PU", "GY", "HA", "HM", "VT", "HO", "HK", "HQ", "HU", "IC", "IN", "ID", "IR", "IZ", "EI", "IS", "IT", "JM", "JN", "JA", "DQ", "JE", "JQ", "JO", "KZ", "KE", "KQ", "KR", "KN", "KS", "KV", "KU", "KG", "LA", "LG", "LE", "LT", "LI", "LY", "LS", "LH", "LU", "MC", "MK", "MA", "MI", "MY", "MV", "ML", "MT", "IM", "RM", "MR", "MP", "MX", "MQ", "MD", "MN", "MG", "MJ", "MH", "MO", "MZ", "WA", "NR", "BQ", "NP", "NL", "NC", "NZ", "NU", "NG", "NI", "NE", "NF", "CQ", "NO", "MU", "OC", "PK", "PS", "LQ", "PM", "PP", "PF", "PA", "PE", "RP", "PC", "PL", "PO", "RQ", "QA", "RO", "RS", "RW", "TB", "RN", "WS", "SM", "TP", "SA", "SG", "RI", "SE", "SL", "SN", "NN", "LO", "SI", "BP", "SO", "SF", "SX", "SP", "PG", "CE", "SH", "SC", "ST", "SB", "VC", "SU", "NS", "SV", "WZ", "SW", "SZ", "SY", "TW", "TI", "TZ", "TH", "TO", "TL", "TN", "TD", "TS", "TU", "TX", "TK", "TV", "UG", "UP", "AE", "UK", "UY", "UZ", "NH", "VE", "VM", "VQ", "WQ", "WF", "WI", "YM", "ZA", "ZI"])
489
+ unless validator.valid?(treaty_country)
490
+ fail ArgumentError, "invalid value for \"treaty_country\", must be one of #{validator.allowable_values}."
491
+ end
492
+ @treaty_country = treaty_country
493
+ end
494
+
495
+ # Custom attribute writer method checking allowed values (enum).
496
+ # @param [Object] withholding_rate Object to be assigned
497
+ def withholding_rate=(withholding_rate)
498
+ validator = EnumAttributeValidator.new('String', ["0", "0.0", "0.00", "5", "5.5", "10", "12.50", "15", "20", "25", "30"])
499
+ unless validator.valid?(withholding_rate)
500
+ fail ArgumentError, "invalid value for \"withholding_rate\", must be one of #{validator.allowable_values}."
501
+ end
502
+ @withholding_rate = withholding_rate
503
+ end
504
+
421
505
  # Checks equality by comparing each attribute.
422
506
  # @param [Object] Object to be compared
423
507
  def ==(o)
@@ -23,10 +23,10 @@ module AvalaraSdk::A1099::V2
23
23
  # The name of the disregarded entity receiving the payment (if applicable).
24
24
  attr_accessor :disregarded_entity
25
25
 
26
- # The entity type. Available values: - 1: QI (including a QDD). Complete Part III. - 2: Nonqualified intermediary. Complete Part IV. - 3: Territory financial institution. Complete Part V. - 4: U.S. branch. Complete Part VI. - 5: Withholding foreign partnership. Complete Part VII. - 6: Withholding foreign trust. Complete Part VII. - 7: Nonwithholding foreign partnership. Complete Part VIII. - 8: Nonwithholding foreign simple trust. Complete Part VIII. - 9: Nonwithholding foreign grantor trust. Complete Part VIII.
26
+ # Represents the entity type for W-8IMY tax forms. W-8IMY forms only accept entity types 1-9, which is a subset of the full EntityType enum.
27
27
  attr_accessor :entity_type
28
28
 
29
- # The FATCA status. Available values: - 1: Nonparticipating foreign financial institution (FFI) (including an FFI related to a Reporting IGA FFI other than a deemed-compliant FFI, participating FFI, or exempt beneficial owner). Complete Part IX (if applicable). - 2: Participating FFI. - 3: Reporting Model 1 FFI. - 4: Reporting Model 2 FFI. - 5: Registered deemed-compliant FFI (other than a reporting Model 1 FFI, sponsored FFI, or nonreporting IGA FFI covered in Part XIX). - 6: Territory financial institution. Complete Part V. - 7: Sponsored FFI (other than a certified deemed-compliant sponsored, closely held investment vehicle). Complete Part X. - 8: Certified deemed-compliant nonregistering local bank. Complete Part XII. - 9: Certified deemed-compliant FFI with only low-value accounts. Complete Part XIII. - 10: Certified deemed-compliant sponsored, closely held investment vehicle. Complete Part XIV. - 11: Certified deemed-compliant limited life debt investment entity. Complete Part XV. - 12: Certain investment entities that do not maintain financial accounts. Complete Part XVI. - 13: Owner-documented FFI. Complete Part XI. - 14: Restricted distributor. Complete Part XVII. - 15: Foreign central bank of issue. Complete Part XVIII. - 16: Nonreporting IGA FFI. Complete Part XIX. - 17: Exempt retirement plans. Complete Part XX. - 18: Excepted nonfinancial group entity. Complete Part XXI. - 19: Excepted nonfinancial start-up company. Complete Part XXII. - 20: Excepted nonfinancial entity in liquidation or bankruptcy. Complete Part XXIII. - 21: Publicly traded NFFE or NFFE affiliate of a publicly traded corporation. Complete Part XXIV. - 22: Excepted territory NFFE. Complete Part XXV. - 23: Active NFFE. Complete Part XXVI. - 24: Passive NFFE. Complete Part XXVII. - 25: Direct reporting NFFE. - 26: Sponsored direct reporting NFFE. Complete Part XXVIII.
29
+ # Represents the FATCA status types specifically for W8-IMY forms. This is a subset of the full FatcaStatus enum, restricted to values 1-26 for W8-IMY forms.
30
30
  attr_accessor :fatca_status
31
31
 
32
32
  # The residential address of the individual or entity.
@@ -1279,7 +1279,15 @@ module AvalaraSdk::A1099::V2
1279
1279
  return false if @name.nil?
1280
1280
  return false if @citizenship_country.nil?
1281
1281
  return false if @entity_type.nil?
1282
+ entity_type_validator = EnumAttributeValidator.new('String', ["QI", "NonqualifiedIntermediary", "TerritoryFinancialInstitution", "USBranch", "WithholdingForeignPartnership", "WithholdingForeignTrust", "NonwithholdingForeignPartnership", "NonwithholdingForeignSimpleTrust", "NonwithholdingForeignGrantorTrust"])
1283
+ return false unless entity_type_validator.valid?(@entity_type)
1284
+ fatca_status_validator = EnumAttributeValidator.new('String', ["NonparticipatingFFI", "ParticipatingFFI", "ReportingModel1FFI", "ReportingModel2FFI", "RegisteredDeemedCompliantFFI", "TerritoryFinancialInstitution", "SponsoredFFI", "CertifiedDeemedCompliantNonregisteringLocalBank", "CertifiedDeemedCompliantFFIWithLowValueAccounts", "CertifiedDeemedCompliantSponsoredCloselyHeldInvestmentVehicle", "CertifiedDeemedCompliantLimitedLifeDebtInvestmentEntity", "CertainInvestmentEntitiesWithoutFinancialAccounts", "OwnerDocumentedFFI", "RestrictedDistributor", "ForeignCentralBankOfIssue", "NonreportingIGAFFI", "ExemptRetirementPlans", "ExceptedNonfinancialGroupEntity", "ExceptedNonfinancialStartUpCompany", "ExceptedNonfinancialEntityInLiquidationOrBankruptcy", "PubliclyTradedNFFEOrAffiliateOfPubliclyTradedCorporation", "ExceptedTerritoryNFFE", "ActiveNFFE", "PassiveNFFE", "DirectReportingNFFE", "SponsoredDirectReportingNFFE"])
1285
+ return false unless fatca_status_validator.valid?(@fatca_status)
1282
1286
  return false if @residence_country.nil?
1287
+ disregarded_entity_fatca_status_validator = EnumAttributeValidator.new('String', ["1", "2", "3", "4", "5"])
1288
+ return false unless disregarded_entity_fatca_status_validator.valid?(@disregarded_entity_fatca_status)
1289
+ iga_model_validator = EnumAttributeValidator.new('String', ["1", "2"])
1290
+ return false unless iga_model_validator.valid?(@iga_model)
1283
1291
  true
1284
1292
  end
1285
1293
 
@@ -1293,6 +1301,46 @@ module AvalaraSdk::A1099::V2
1293
1301
  @type = type
1294
1302
  end
1295
1303
 
1304
+ # Custom attribute writer method checking allowed values (enum).
1305
+ # @param [Object] entity_type Object to be assigned
1306
+ def entity_type=(entity_type)
1307
+ validator = EnumAttributeValidator.new('String', ["QI", "NonqualifiedIntermediary", "TerritoryFinancialInstitution", "USBranch", "WithholdingForeignPartnership", "WithholdingForeignTrust", "NonwithholdingForeignPartnership", "NonwithholdingForeignSimpleTrust", "NonwithholdingForeignGrantorTrust"])
1308
+ unless validator.valid?(entity_type)
1309
+ fail ArgumentError, "invalid value for \"entity_type\", must be one of #{validator.allowable_values}."
1310
+ end
1311
+ @entity_type = entity_type
1312
+ end
1313
+
1314
+ # Custom attribute writer method checking allowed values (enum).
1315
+ # @param [Object] fatca_status Object to be assigned
1316
+ def fatca_status=(fatca_status)
1317
+ validator = EnumAttributeValidator.new('String', ["NonparticipatingFFI", "ParticipatingFFI", "ReportingModel1FFI", "ReportingModel2FFI", "RegisteredDeemedCompliantFFI", "TerritoryFinancialInstitution", "SponsoredFFI", "CertifiedDeemedCompliantNonregisteringLocalBank", "CertifiedDeemedCompliantFFIWithLowValueAccounts", "CertifiedDeemedCompliantSponsoredCloselyHeldInvestmentVehicle", "CertifiedDeemedCompliantLimitedLifeDebtInvestmentEntity", "CertainInvestmentEntitiesWithoutFinancialAccounts", "OwnerDocumentedFFI", "RestrictedDistributor", "ForeignCentralBankOfIssue", "NonreportingIGAFFI", "ExemptRetirementPlans", "ExceptedNonfinancialGroupEntity", "ExceptedNonfinancialStartUpCompany", "ExceptedNonfinancialEntityInLiquidationOrBankruptcy", "PubliclyTradedNFFEOrAffiliateOfPubliclyTradedCorporation", "ExceptedTerritoryNFFE", "ActiveNFFE", "PassiveNFFE", "DirectReportingNFFE", "SponsoredDirectReportingNFFE"])
1318
+ unless validator.valid?(fatca_status)
1319
+ fail ArgumentError, "invalid value for \"fatca_status\", must be one of #{validator.allowable_values}."
1320
+ end
1321
+ @fatca_status = fatca_status
1322
+ end
1323
+
1324
+ # Custom attribute writer method checking allowed values (enum).
1325
+ # @param [Object] disregarded_entity_fatca_status Object to be assigned
1326
+ def disregarded_entity_fatca_status=(disregarded_entity_fatca_status)
1327
+ validator = EnumAttributeValidator.new('String', ["1", "2", "3", "4", "5"])
1328
+ unless validator.valid?(disregarded_entity_fatca_status)
1329
+ fail ArgumentError, "invalid value for \"disregarded_entity_fatca_status\", must be one of #{validator.allowable_values}."
1330
+ end
1331
+ @disregarded_entity_fatca_status = disregarded_entity_fatca_status
1332
+ end
1333
+
1334
+ # Custom attribute writer method checking allowed values (enum).
1335
+ # @param [Object] iga_model Object to be assigned
1336
+ def iga_model=(iga_model)
1337
+ validator = EnumAttributeValidator.new('String', ["1", "2"])
1338
+ unless validator.valid?(iga_model)
1339
+ fail ArgumentError, "invalid value for \"iga_model\", must be one of #{validator.allowable_values}."
1340
+ end
1341
+ @iga_model = iga_model
1342
+ end
1343
+
1296
1344
  # Checks equality by comparing each attribute.
1297
1345
  # @param [Object] Object to be compared
1298
1346
  def ==(o)
@@ -29,10 +29,10 @@ module AvalaraSdk::A1099::V2
29
29
  # Indicates whether the individual is a foreign partner, owner, or beneficiary.
30
30
  attr_accessor :foreign_partner_owner_or_beneficiary
31
31
 
32
- # The exempt payee code.
32
+ # The exempt payee code. Allowed values (1–13): - 1 — Organization exempt under §501(a) or IRA; custodial account under §403(b)(7) - 2 — U.S. government or its agencies/instrumentalities - 3 — U.S. state, DC, U.S. territory/possession, or their political subdivisions/agencies/instrumentalities - 4 — Foreign government or its political subdivisions/agencies/instrumentalities - 5 — Corporation - 6 — Dealer in securities or commodities required to register in the U.S., DC, or U.S. territory/possession - 7 — Futures commission merchant registered with the CFTC - 8 — Real estate investment trust (REIT) - 9 — Entity registered at all times during the tax year under the Investment Company Act of 1940 - 10 — Common trust fund operated by a bank under §584(a) - 11 — Financial institution (see §581) - 12 — Broker (nominee/custodian) - 13 — Trust exempt under §664 or described in §4947
33
33
  attr_accessor :exempt_payee_code
34
34
 
35
- # The exemption from FATCA reporting code.
35
+ # The exemption from FATCA reporting code. Allowed values (A–M): - A — Tax‑exempt organization under §501(a) or IRA (§7701(a)(37)) - B — U.S. government or any of its agencies/instrumentalities - C — U.S. state, DC, territory/possession, or their political subdivisions/instrumentalities - D — Corporation whose stock is regularly traded on an established securities market - E — Corporation that is a member of the same expanded affiliated group as a D corporation - F — Registered dealer in securities/commodities/derivatives - G — REIT (Real Estate Investment Trust) - H — Regulated investment company (§851) or entity registered all year under the Investment Company Act of 1940 - I — Common trust fund (§584(a)) - J — Bank (§581) - K — Broker - L — Charitable remainder trust (§664) or trust described in §4947(a)(1) - M — Trust under §403(b) plan or §457(g) plan
36
36
  attr_accessor :exempt_fatca_code
37
37
 
38
38
  # Indicates whether the individual or entity is in a foreign country.
@@ -360,7 +360,11 @@ module AvalaraSdk::A1099::V2
360
360
  return false unless type_validator.valid?(@type)
361
361
  return false if @name.nil?
362
362
  return false if @business_classification.nil?
363
+ business_classification_validator = EnumAttributeValidator.new('String', ["Individual", "CCorporation", "SCorporation", "Partnership", "TrustEstate", "LlcC", "LlcS", "LlcP", "Other"])
364
+ return false unless business_classification_validator.valid?(@business_classification)
363
365
  return false if @address.nil?
366
+ state_validator = EnumAttributeValidator.new('String', ["AA", "AE", "AK", "AL", "AP", "AR", "AS", "AZ", "CA", "CO", "CT", "DC", "DE", "FL", "FM", "GA", "GU", "HI", "IA", "ID", "IL", "IN", "KS", "KY", "LA", "MA", "MD", "ME", "MH", "MI", "MN", "MO", "MP", "MS", "MT", "NC", "ND", "NE", "NH", "NJ", "NM", "NV", "NY", "OH", "OK", "OR", "PA", "PR", "PW", "RI", "SC", "SD", "TN", "TX", "UT", "VA", "VI", "VT", "WA", "WI", "WV", "WY"])
367
+ return false unless state_validator.valid?(@state)
364
368
  return false if @tin_type.nil?
365
369
  return false if @tin.nil?
366
370
  true
@@ -376,6 +380,26 @@ module AvalaraSdk::A1099::V2
376
380
  @type = type
377
381
  end
378
382
 
383
+ # Custom attribute writer method checking allowed values (enum).
384
+ # @param [Object] business_classification Object to be assigned
385
+ def business_classification=(business_classification)
386
+ validator = EnumAttributeValidator.new('String', ["Individual", "CCorporation", "SCorporation", "Partnership", "TrustEstate", "LlcC", "LlcS", "LlcP", "Other"])
387
+ unless validator.valid?(business_classification)
388
+ fail ArgumentError, "invalid value for \"business_classification\", must be one of #{validator.allowable_values}."
389
+ end
390
+ @business_classification = business_classification
391
+ end
392
+
393
+ # Custom attribute writer method checking allowed values (enum).
394
+ # @param [Object] state Object to be assigned
395
+ def state=(state)
396
+ validator = EnumAttributeValidator.new('String', ["AA", "AE", "AK", "AL", "AP", "AR", "AS", "AZ", "CA", "CO", "CT", "DC", "DE", "FL", "FM", "GA", "GU", "HI", "IA", "ID", "IL", "IN", "KS", "KY", "LA", "MA", "MD", "ME", "MH", "MI", "MN", "MO", "MP", "MS", "MT", "NC", "ND", "NE", "NH", "NJ", "NM", "NV", "NY", "OH", "OK", "OR", "PA", "PR", "PW", "RI", "SC", "SD", "TN", "TX", "UT", "VA", "VI", "VT", "WA", "WI", "WV", "WY"])
397
+ unless validator.valid?(state)
398
+ fail ArgumentError, "invalid value for \"state\", must be one of #{validator.allowable_values}."
399
+ end
400
+ @state = state
401
+ end
402
+
379
403
  # Checks equality by comparing each attribute.
380
404
  # @param [Object] Object to be compared
381
405
  def ==(o)
@@ -9,5 +9,5 @@ SDK Version : 0.0.1
9
9
  =end
10
10
 
11
11
  module AvalaraSdk
12
- VERSION = '25.9.0'
12
+ VERSION = '25.10.1'
13
13
  end
@@ -3,10 +3,10 @@ current directory: /home/runner/work/Avalara-SDK-Ruby/Avalara-SDK-Ruby/vendor/bu
3
3
  creating Makefile
4
4
 
5
5
  current directory: /home/runner/work/Avalara-SDK-Ruby/Avalara-SDK-Ruby/vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/ext/byebug
6
- make DESTDIR\= sitearchdir\=./.gem.20250919-2084-skunpi sitelibdir\=./.gem.20250919-2084-skunpi clean
6
+ make DESTDIR\= sitearchdir\=./.gem.20251022-2081-6eq9k8 sitelibdir\=./.gem.20251022-2081-6eq9k8 clean
7
7
 
8
8
  current directory: /home/runner/work/Avalara-SDK-Ruby/Avalara-SDK-Ruby/vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/ext/byebug
9
- make DESTDIR\= sitearchdir\=./.gem.20250919-2084-skunpi sitelibdir\=./.gem.20250919-2084-skunpi
9
+ make DESTDIR\= sitearchdir\=./.gem.20251022-2081-6eq9k8 sitelibdir\=./.gem.20251022-2081-6eq9k8
10
10
  compiling breakpoint.c
11
11
  compiling byebug.c
12
12
  byebug.c: In function ‘check_started’:
@@ -35,8 +35,8 @@ compiling threads.c
35
35
  linking shared-object byebug/byebug.so
36
36
 
37
37
  current directory: /home/runner/work/Avalara-SDK-Ruby/Avalara-SDK-Ruby/vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/ext/byebug
38
- make DESTDIR\= sitearchdir\=./.gem.20250919-2084-skunpi sitelibdir\=./.gem.20250919-2084-skunpi install
39
- /usr/bin/install -c -m 0755 byebug.so ./.gem.20250919-2084-skunpi/byebug
38
+ make DESTDIR\= sitearchdir\=./.gem.20251022-2081-6eq9k8 sitelibdir\=./.gem.20251022-2081-6eq9k8 install
39
+ /usr/bin/install -c -m 0755 byebug.so ./.gem.20251022-2081-6eq9k8/byebug
40
40
 
41
41
  current directory: /home/runner/work/Avalara-SDK-Ruby/Avalara-SDK-Ruby/vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/ext/byebug
42
- make DESTDIR\= sitearchdir\=./.gem.20250919-2084-skunpi sitelibdir\=./.gem.20250919-2084-skunpi clean
42
+ make DESTDIR\= sitearchdir\=./.gem.20251022-2081-6eq9k8 sitelibdir\=./.gem.20251022-2081-6eq9k8 clean
@@ -6,10 +6,10 @@ checking for altzone in time.h with -Werror... no
6
6
  creating Makefile
7
7
 
8
8
  current directory: /home/runner/work/Avalara-SDK-Ruby/Avalara-SDK-Ruby/vendor/bundle/ruby/3.3.0/gems/date-3.4.1/ext/date
9
- make DESTDIR\= sitearchdir\=./.gem.20250919-2084-we0pp0 sitelibdir\=./.gem.20250919-2084-we0pp0 clean
9
+ make DESTDIR\= sitearchdir\=./.gem.20251022-2081-r8kzu5 sitelibdir\=./.gem.20251022-2081-r8kzu5 clean
10
10
 
11
11
  current directory: /home/runner/work/Avalara-SDK-Ruby/Avalara-SDK-Ruby/vendor/bundle/ruby/3.3.0/gems/date-3.4.1/ext/date
12
- make DESTDIR\= sitearchdir\=./.gem.20250919-2084-we0pp0 sitelibdir\=./.gem.20250919-2084-we0pp0
12
+ make DESTDIR\= sitearchdir\=./.gem.20251022-2081-r8kzu5 sitelibdir\=./.gem.20251022-2081-r8kzu5
13
13
  compiling date_core.c
14
14
  compiling date_parse.c
15
15
  compiling date_strftime.c
@@ -17,8 +17,8 @@ compiling date_strptime.c
17
17
  linking shared-object date_core.so
18
18
 
19
19
  current directory: /home/runner/work/Avalara-SDK-Ruby/Avalara-SDK-Ruby/vendor/bundle/ruby/3.3.0/gems/date-3.4.1/ext/date
20
- make DESTDIR\= sitearchdir\=./.gem.20250919-2084-we0pp0 sitelibdir\=./.gem.20250919-2084-we0pp0 install
21
- /usr/bin/install -c -m 0755 date_core.so ./.gem.20250919-2084-we0pp0
20
+ make DESTDIR\= sitearchdir\=./.gem.20251022-2081-r8kzu5 sitelibdir\=./.gem.20251022-2081-r8kzu5 install
21
+ /usr/bin/install -c -m 0755 date_core.so ./.gem.20251022-2081-r8kzu5
22
22
 
23
23
  current directory: /home/runner/work/Avalara-SDK-Ruby/Avalara-SDK-Ruby/vendor/bundle/ruby/3.3.0/gems/date-3.4.1/ext/date
24
- make DESTDIR\= sitearchdir\=./.gem.20250919-2084-we0pp0 sitelibdir\=./.gem.20250919-2084-we0pp0 clean
24
+ make DESTDIR\= sitearchdir\=./.gem.20251022-2081-r8kzu5 sitelibdir\=./.gem.20251022-2081-r8kzu5 clean
@@ -12,10 +12,10 @@ checking for version.h... yes
12
12
  creating Makefile
13
13
 
14
14
  current directory: /home/runner/work/Avalara-SDK-Ruby/Avalara-SDK-Ruby/vendor/bundle/ruby/3.3.0/gems/debase-0.2.9/ext/attach
15
- make DESTDIR\= sitearchdir\=./.gem.20250919-2476-58tknh sitelibdir\=./.gem.20250919-2476-58tknh clean
15
+ make DESTDIR\= sitearchdir\=./.gem.20251022-2477-1dgp4a sitelibdir\=./.gem.20251022-2477-1dgp4a clean
16
16
 
17
17
  current directory: /home/runner/work/Avalara-SDK-Ruby/Avalara-SDK-Ruby/vendor/bundle/ruby/3.3.0/gems/debase-0.2.9/ext/attach
18
- make DESTDIR\= sitearchdir\=./.gem.20250919-2476-58tknh sitelibdir\=./.gem.20250919-2476-58tknh
18
+ make DESTDIR\= sitearchdir\=./.gem.20251022-2477-1dgp4a sitelibdir\=./.gem.20251022-2477-1dgp4a
19
19
  compiling attach.c
20
20
  attach.c: In function ‘__func_to_set_breakpoint_at’:
21
21
  attach.c:19:1: warning: old-style function definition [-Wold-style-definition]
@@ -36,8 +36,8 @@ cc1: note: unrecognized command-line option ‘-Wno-constant-logical-operand’
36
36
  linking shared-object attach.so
37
37
 
38
38
  current directory: /home/runner/work/Avalara-SDK-Ruby/Avalara-SDK-Ruby/vendor/bundle/ruby/3.3.0/gems/debase-0.2.9/ext/attach
39
- make DESTDIR\= sitearchdir\=./.gem.20250919-2476-58tknh sitelibdir\=./.gem.20250919-2476-58tknh install
40
- /usr/bin/install -c -m 0755 attach.so ./.gem.20250919-2476-58tknh
39
+ make DESTDIR\= sitearchdir\=./.gem.20251022-2477-1dgp4a sitelibdir\=./.gem.20251022-2477-1dgp4a install
40
+ /usr/bin/install -c -m 0755 attach.so ./.gem.20251022-2477-1dgp4a
41
41
 
42
42
  current directory: /home/runner/work/Avalara-SDK-Ruby/Avalara-SDK-Ruby/vendor/bundle/ruby/3.3.0/gems/debase-0.2.9/ext/attach
43
- make DESTDIR\= sitearchdir\=./.gem.20250919-2476-58tknh sitelibdir\=./.gem.20250919-2476-58tknh clean
43
+ make DESTDIR\= sitearchdir\=./.gem.20251022-2477-1dgp4a sitelibdir\=./.gem.20251022-2477-1dgp4a clean
@@ -3,17 +3,17 @@ current directory: /home/runner/work/Avalara-SDK-Ruby/Avalara-SDK-Ruby/vendor/bu
3
3
  creating Makefile
4
4
 
5
5
  current directory: /home/runner/work/Avalara-SDK-Ruby/Avalara-SDK-Ruby/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/ext/debug
6
- make DESTDIR\= sitearchdir\=./.gem.20250919-2084-uv5i24 sitelibdir\=./.gem.20250919-2084-uv5i24 clean
6
+ make DESTDIR\= sitearchdir\=./.gem.20251022-2081-1y35d2 sitelibdir\=./.gem.20251022-2081-1y35d2 clean
7
7
 
8
8
  current directory: /home/runner/work/Avalara-SDK-Ruby/Avalara-SDK-Ruby/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/ext/debug
9
- make DESTDIR\= sitearchdir\=./.gem.20250919-2084-uv5i24 sitelibdir\=./.gem.20250919-2084-uv5i24
9
+ make DESTDIR\= sitearchdir\=./.gem.20251022-2081-1y35d2 sitelibdir\=./.gem.20251022-2081-1y35d2
10
10
  compiling debug.c
11
11
  compiling iseq_collector.c
12
12
  linking shared-object debug/debug.so
13
13
 
14
14
  current directory: /home/runner/work/Avalara-SDK-Ruby/Avalara-SDK-Ruby/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/ext/debug
15
- make DESTDIR\= sitearchdir\=./.gem.20250919-2084-uv5i24 sitelibdir\=./.gem.20250919-2084-uv5i24 install
16
- /usr/bin/install -c -m 0755 debug.so ./.gem.20250919-2084-uv5i24/debug
15
+ make DESTDIR\= sitearchdir\=./.gem.20251022-2081-1y35d2 sitelibdir\=./.gem.20251022-2081-1y35d2 install
16
+ /usr/bin/install -c -m 0755 debug.so ./.gem.20251022-2081-1y35d2/debug
17
17
 
18
18
  current directory: /home/runner/work/Avalara-SDK-Ruby/Avalara-SDK-Ruby/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/ext/debug
19
- make DESTDIR\= sitearchdir\=./.gem.20250919-2084-uv5i24 sitelibdir\=./.gem.20250919-2084-uv5i24 clean
19
+ make DESTDIR\= sitearchdir\=./.gem.20251022-2081-1y35d2 sitelibdir\=./.gem.20251022-2081-1y35d2 clean
@@ -3,16 +3,16 @@ current directory: /home/runner/work/Avalara-SDK-Ruby/Avalara-SDK-Ruby/vendor/bu
3
3
  creating Makefile
4
4
 
5
5
  current directory: /home/runner/work/Avalara-SDK-Ruby/Avalara-SDK-Ruby/vendor/bundle/ruby/3.3.0/gems/erb-5.0.1/ext/erb/escape
6
- make DESTDIR\= sitearchdir\=./.gem.20250919-2084-ne95wx sitelibdir\=./.gem.20250919-2084-ne95wx clean
6
+ make DESTDIR\= sitearchdir\=./.gem.20251022-2081-rcgk8b sitelibdir\=./.gem.20251022-2081-rcgk8b clean
7
7
 
8
8
  current directory: /home/runner/work/Avalara-SDK-Ruby/Avalara-SDK-Ruby/vendor/bundle/ruby/3.3.0/gems/erb-5.0.1/ext/erb/escape
9
- make DESTDIR\= sitearchdir\=./.gem.20250919-2084-ne95wx sitelibdir\=./.gem.20250919-2084-ne95wx
9
+ make DESTDIR\= sitearchdir\=./.gem.20251022-2081-rcgk8b sitelibdir\=./.gem.20251022-2081-rcgk8b
10
10
  compiling escape.c
11
11
  linking shared-object erb/escape.so
12
12
 
13
13
  current directory: /home/runner/work/Avalara-SDK-Ruby/Avalara-SDK-Ruby/vendor/bundle/ruby/3.3.0/gems/erb-5.0.1/ext/erb/escape
14
- make DESTDIR\= sitearchdir\=./.gem.20250919-2084-ne95wx sitelibdir\=./.gem.20250919-2084-ne95wx install
15
- /usr/bin/install -c -m 0755 escape.so ./.gem.20250919-2084-ne95wx/erb
14
+ make DESTDIR\= sitearchdir\=./.gem.20251022-2081-rcgk8b sitelibdir\=./.gem.20251022-2081-rcgk8b install
15
+ /usr/bin/install -c -m 0755 escape.so ./.gem.20251022-2081-rcgk8b/erb
16
16
 
17
17
  current directory: /home/runner/work/Avalara-SDK-Ruby/Avalara-SDK-Ruby/vendor/bundle/ruby/3.3.0/gems/erb-5.0.1/ext/erb/escape
18
- make DESTDIR\= sitearchdir\=./.gem.20250919-2084-ne95wx sitelibdir\=./.gem.20250919-2084-ne95wx clean
18
+ make DESTDIR\= sitearchdir\=./.gem.20251022-2081-rcgk8b sitelibdir\=./.gem.20251022-2081-rcgk8b clean
@@ -16,16 +16,16 @@ checking for ttyname_r()... yes
16
16
  creating Makefile
17
17
 
18
18
  current directory: /home/runner/work/Avalara-SDK-Ruby/Avalara-SDK-Ruby/vendor/bundle/ruby/3.3.0/gems/io-console-0.8.0/ext/io/console
19
- make DESTDIR\= sitearchdir\=./.gem.20250919-2084-62r0fh sitelibdir\=./.gem.20250919-2084-62r0fh clean
19
+ make DESTDIR\= sitearchdir\=./.gem.20251022-2081-slhicz sitelibdir\=./.gem.20251022-2081-slhicz clean
20
20
 
21
21
  current directory: /home/runner/work/Avalara-SDK-Ruby/Avalara-SDK-Ruby/vendor/bundle/ruby/3.3.0/gems/io-console-0.8.0/ext/io/console
22
- make DESTDIR\= sitearchdir\=./.gem.20250919-2084-62r0fh sitelibdir\=./.gem.20250919-2084-62r0fh
22
+ make DESTDIR\= sitearchdir\=./.gem.20251022-2081-slhicz sitelibdir\=./.gem.20251022-2081-slhicz
23
23
  compiling console.c
24
24
  linking shared-object io/console.so
25
25
 
26
26
  current directory: /home/runner/work/Avalara-SDK-Ruby/Avalara-SDK-Ruby/vendor/bundle/ruby/3.3.0/gems/io-console-0.8.0/ext/io/console
27
- make DESTDIR\= sitearchdir\=./.gem.20250919-2084-62r0fh sitelibdir\=./.gem.20250919-2084-62r0fh install
28
- /usr/bin/install -c -m 0755 console.so ./.gem.20250919-2084-62r0fh/io
27
+ make DESTDIR\= sitearchdir\=./.gem.20251022-2081-slhicz sitelibdir\=./.gem.20251022-2081-slhicz install
28
+ /usr/bin/install -c -m 0755 console.so ./.gem.20251022-2081-slhicz/io
29
29
 
30
30
  current directory: /home/runner/work/Avalara-SDK-Ruby/Avalara-SDK-Ruby/vendor/bundle/ruby/3.3.0/gems/io-console-0.8.0/ext/io/console
31
- make DESTDIR\= sitearchdir\=./.gem.20250919-2084-62r0fh sitelibdir\=./.gem.20250919-2084-62r0fh clean
31
+ make DESTDIR\= sitearchdir\=./.gem.20251022-2081-slhicz sitelibdir\=./.gem.20251022-2081-slhicz clean
@@ -8,16 +8,16 @@ checking for whether -std=c99 is accepted as CFLAGS... yes
8
8
  creating Makefile
9
9
 
10
10
  current directory: /home/runner/work/Avalara-SDK-Ruby/Avalara-SDK-Ruby/vendor/bundle/ruby/3.3.0/gems/json-2.12.2/ext/json/ext/parser
11
- make DESTDIR\= sitearchdir\=./.gem.20250919-2084-8j1ycu sitelibdir\=./.gem.20250919-2084-8j1ycu clean
11
+ make DESTDIR\= sitearchdir\=./.gem.20251022-2081-9xiczq sitelibdir\=./.gem.20251022-2081-9xiczq clean
12
12
 
13
13
  current directory: /home/runner/work/Avalara-SDK-Ruby/Avalara-SDK-Ruby/vendor/bundle/ruby/3.3.0/gems/json-2.12.2/ext/json/ext/parser
14
- make DESTDIR\= sitearchdir\=./.gem.20250919-2084-8j1ycu sitelibdir\=./.gem.20250919-2084-8j1ycu
14
+ make DESTDIR\= sitearchdir\=./.gem.20251022-2081-9xiczq sitelibdir\=./.gem.20251022-2081-9xiczq
15
15
  compiling parser.c
16
16
  linking shared-object json/ext/parser.so
17
17
 
18
18
  current directory: /home/runner/work/Avalara-SDK-Ruby/Avalara-SDK-Ruby/vendor/bundle/ruby/3.3.0/gems/json-2.12.2/ext/json/ext/parser
19
- make DESTDIR\= sitearchdir\=./.gem.20250919-2084-8j1ycu sitelibdir\=./.gem.20250919-2084-8j1ycu install
20
- /usr/bin/install -c -m 0755 parser.so ./.gem.20250919-2084-8j1ycu/json/ext
19
+ make DESTDIR\= sitearchdir\=./.gem.20251022-2081-9xiczq sitelibdir\=./.gem.20251022-2081-9xiczq install
20
+ /usr/bin/install -c -m 0755 parser.so ./.gem.20251022-2081-9xiczq/json/ext
21
21
 
22
22
  current directory: /home/runner/work/Avalara-SDK-Ruby/Avalara-SDK-Ruby/vendor/bundle/ruby/3.3.0/gems/json-2.12.2/ext/json/ext/parser
23
- make DESTDIR\= sitearchdir\=./.gem.20250919-2084-8j1ycu sitelibdir\=./.gem.20250919-2084-8j1ycu clean
23
+ make DESTDIR\= sitearchdir\=./.gem.20251022-2081-9xiczq sitelibdir\=./.gem.20251022-2081-9xiczq clean
@@ -6,10 +6,10 @@ checking for whether -fvisibility=hidden is accepted as CFLAGS... yes
6
6
  creating Makefile
7
7
 
8
8
  current directory: /home/runner/work/Avalara-SDK-Ruby/Avalara-SDK-Ruby/vendor/bundle/ruby/3.3.0/gems/prism-1.4.0/ext/prism
9
- make DESTDIR\= sitearchdir\=./.gem.20250919-2084-hv5sdg sitelibdir\=./.gem.20250919-2084-hv5sdg clean
9
+ make DESTDIR\= sitearchdir\=./.gem.20251022-2081-snmt8n sitelibdir\=./.gem.20251022-2081-snmt8n clean
10
10
 
11
11
  current directory: /home/runner/work/Avalara-SDK-Ruby/Avalara-SDK-Ruby/vendor/bundle/ruby/3.3.0/gems/prism-1.4.0/ext/prism
12
- make DESTDIR\= sitearchdir\=./.gem.20250919-2084-hv5sdg sitelibdir\=./.gem.20250919-2084-hv5sdg
12
+ make DESTDIR\= sitearchdir\=./.gem.20251022-2081-snmt8n sitelibdir\=./.gem.20251022-2081-snmt8n
13
13
  compiling api_node.c
14
14
  compiling api_pack.c
15
15
  compiling extension.c
@@ -37,8 +37,8 @@ compiling ./../../src/util/pm_strpbrk.c
37
37
  linking shared-object prism/prism.so
38
38
 
39
39
  current directory: /home/runner/work/Avalara-SDK-Ruby/Avalara-SDK-Ruby/vendor/bundle/ruby/3.3.0/gems/prism-1.4.0/ext/prism
40
- make DESTDIR\= sitearchdir\=./.gem.20250919-2084-hv5sdg sitelibdir\=./.gem.20250919-2084-hv5sdg install
41
- /usr/bin/install -c -m 0755 prism.so ./.gem.20250919-2084-hv5sdg/prism
40
+ make DESTDIR\= sitearchdir\=./.gem.20251022-2081-snmt8n sitelibdir\=./.gem.20251022-2081-snmt8n install
41
+ /usr/bin/install -c -m 0755 prism.so ./.gem.20251022-2081-snmt8n/prism
42
42
 
43
43
  current directory: /home/runner/work/Avalara-SDK-Ruby/Avalara-SDK-Ruby/vendor/bundle/ruby/3.3.0/gems/prism-1.4.0/ext/prism
44
- make DESTDIR\= sitearchdir\=./.gem.20250919-2084-hv5sdg sitelibdir\=./.gem.20250919-2084-hv5sdg clean
44
+ make DESTDIR\= sitearchdir\=./.gem.20251022-2081-snmt8n sitelibdir\=./.gem.20251022-2081-snmt8n clean