avalara_sdk 25.8.2 → 25.8.3

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 (200) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +18 -79
  4. data/docs/A1099/V2/CompaniesW9Api.md +18 -18
  5. data/docs/A1099/V2/CompanyCreateUpdateRequestModel.md +18 -18
  6. data/docs/A1099/V2/CompanyResponse.md +37 -37
  7. data/docs/A1099/V2/CoveredIndividual.md +56 -0
  8. data/docs/A1099/V2/CreateAndSendW9FormEmailRequest.md +55 -0
  9. data/docs/A1099/V2/CreateCompanyRequest.md +49 -0
  10. data/docs/A1099/V2/CreateIssuerRequest.md +49 -0
  11. data/docs/A1099/V2/EntryStatusResponse.md +20 -0
  12. data/docs/A1099/V2/Form1042S.md +83 -83
  13. data/docs/A1099/V2/Form1095B.md +72 -62
  14. data/docs/A1099/V2/Form1095C.md +112 -0
  15. data/docs/A1099/V2/Form1099Base.md +60 -60
  16. data/docs/A1099/V2/Form1099Div.md +79 -77
  17. data/docs/A1099/V2/Form1099Int.md +76 -74
  18. data/docs/A1099/V2/Form1099K.md +83 -83
  19. data/docs/A1099/V2/Form1099ListRequest.md +20 -0
  20. data/docs/A1099/V2/Form1099Misc.md +79 -77
  21. data/docs/A1099/V2/Form1099Nec.md +64 -64
  22. data/docs/A1099/V2/Form1099R.md +95 -93
  23. data/docs/A1099/V2/Forms1099Api.md +45 -41
  24. data/docs/A1099/V2/FormsW9Api.md +98 -14
  25. data/docs/A1099/V2/Get1099Form200Response.md +19 -19
  26. data/docs/A1099/V2/IntermediaryOrFlowThrough.md +11 -11
  27. data/docs/A1099/V2/IssuerCommand.md +16 -16
  28. data/docs/A1099/V2/IssuerResponse.md +35 -35
  29. data/docs/A1099/V2/Issuers1099Api.md +10 -10
  30. data/docs/A1099/V2/JobResponse.md +56 -0
  31. data/docs/A1099/V2/JobsApi.md +91 -0
  32. data/docs/A1099/V2/OfferAndCoverage.md +28 -0
  33. data/docs/A1099/V2/PaginatedQueryResultModelForm1099Base.md +22 -0
  34. data/docs/A1099/V2/PrimaryWithholdingAgent.md +4 -4
  35. data/docs/A1099/V2/StateAndLocalWithholding.md +8 -8
  36. data/docs/A1099/V2/ValidationError.md +2 -2
  37. data/docs/A1099/V2/W4FormMinimalRequest.md +30 -0
  38. data/docs/A1099/V2/W4FormRequest.md +6 -6
  39. data/docs/A1099/V2/W8BenEFormMinimalRequest.md +28 -0
  40. data/docs/A1099/V2/W8BenEFormRequest.md +6 -6
  41. data/docs/A1099/V2/W8BenFormMinimalRequest.md +28 -0
  42. data/docs/A1099/V2/W8BenFormRequest.md +6 -6
  43. data/docs/A1099/V2/W8ImyFormMinimalRequest.md +28 -0
  44. data/docs/A1099/V2/W8ImyFormRequest.md +6 -6
  45. data/docs/A1099/V2/W9FormBaseMinimalRequest.md +24 -0
  46. data/docs/A1099/V2/W9FormBaseRequest.md +6 -6
  47. data/docs/A1099/V2/W9FormBaseResponse.md +3 -3
  48. data/docs/A1099/V2/W9FormMinimalRequest.md +28 -0
  49. data/docs/A1099/V2/W9FormRequest.md +6 -6
  50. data/lib/avalara_sdk/api/A1099/V2/companies_w9_api.rb +27 -27
  51. data/lib/avalara_sdk/api/A1099/V2/forms1099_api.rb +89 -57
  52. data/lib/avalara_sdk/api/A1099/V2/forms_w9_api.rb +144 -6
  53. data/lib/avalara_sdk/api/A1099/V2/issuers1099_api.rb +21 -21
  54. data/lib/avalara_sdk/api/A1099/V2/{jobs1099_api.rb → jobs_api.rb} +9 -9
  55. data/lib/avalara_sdk/api/EInvoicing/V1/data_input_fields_api.rb +1 -1
  56. data/lib/avalara_sdk/api/EInvoicing/V1/documents_api.rb +1 -1
  57. data/lib/avalara_sdk/api/EInvoicing/V1/interop_api.rb +1 -1
  58. data/lib/avalara_sdk/api/EInvoicing/V1/mandates_api.rb +1 -1
  59. data/lib/avalara_sdk/api/EInvoicing/V1/subscriptions_api.rb +1 -1
  60. data/lib/avalara_sdk/api/EInvoicing/V1/tax_identifiers_api.rb +1 -1
  61. data/lib/avalara_sdk/api/EInvoicing/V1/trading_partners_api.rb +1 -1
  62. data/lib/avalara_sdk/models/A1099/V2/company_create_update_request_model.rb +58 -17
  63. data/lib/avalara_sdk/models/A1099/V2/company_response.rb +110 -69
  64. data/lib/avalara_sdk/models/A1099/V2/{covered_individual_request.rb → covered_individual.rb} +36 -7
  65. data/lib/avalara_sdk/models/A1099/V2/{i_create_form1099_request.rb → create_and_send_w9_form_email_request.rb} +6 -5
  66. data/lib/avalara_sdk/models/A1099/V2/{error_response_errors_inner.rb → create_company_request.rb} +3 -3
  67. data/lib/avalara_sdk/models/A1099/V2/{i_update_form1099_request.rb → create_issuer_request.rb} +3 -5
  68. data/lib/avalara_sdk/models/A1099/V2/{status_detail.rb → entry_status_response.rb} +20 -18
  69. data/lib/avalara_sdk/models/A1099/V2/form1042_s.rb +424 -179
  70. data/lib/avalara_sdk/models/A1099/V2/form1095_b.rb +365 -179
  71. data/lib/avalara_sdk/models/A1099/V2/{form1095_b_response.rb → form1095_c.rb} +259 -111
  72. data/lib/avalara_sdk/models/A1099/V2/form1099_base.rb +286 -177
  73. data/lib/avalara_sdk/models/A1099/V2/form1099_div.rb +310 -171
  74. data/lib/avalara_sdk/models/A1099/V2/form1099_int.rb +308 -174
  75. data/lib/avalara_sdk/models/A1099/V2/form1099_k.rb +298 -186
  76. data/lib/avalara_sdk/models/A1099/V2/{form1099_div_list.rb → form1099_list_request.rb} +49 -22
  77. data/lib/avalara_sdk/models/A1099/V2/form1099_misc.rb +337 -201
  78. data/lib/avalara_sdk/models/A1099/V2/form1099_nec.rb +298 -183
  79. data/lib/avalara_sdk/models/A1099/V2/form1099_r.rb +414 -274
  80. data/lib/avalara_sdk/models/A1099/V2/get1099_form200_response.rb +9 -9
  81. data/lib/avalara_sdk/models/A1099/V2/intermediary_or_flow_through.rb +13 -1
  82. data/lib/avalara_sdk/models/A1099/V2/issuer_command.rb +42 -23
  83. data/lib/avalara_sdk/models/A1099/V2/issuer_response.rb +77 -46
  84. data/lib/avalara_sdk/models/A1099/V2/{job_result.rb → job_response.rb} +108 -42
  85. data/lib/avalara_sdk/models/A1099/V2/{offer_and_coverage_request.rb → offer_and_coverage.rb} +79 -9
  86. data/lib/avalara_sdk/models/A1099/V2/{paginated_query_result_model.rb → paginated_query_result_model_form1099_base.rb} +4 -4
  87. data/lib/avalara_sdk/models/A1099/V2/primary_withholding_agent.rb +23 -16
  88. data/lib/avalara_sdk/models/A1099/V2/state_and_local_withholding.rb +8 -0
  89. data/lib/avalara_sdk/models/A1099/V2/validation_error.rb +2 -0
  90. data/lib/avalara_sdk/models/A1099/V2/w4_form_minimal_request.rb +418 -0
  91. data/lib/avalara_sdk/models/A1099/V2/w4_form_request.rb +53 -27
  92. data/lib/avalara_sdk/models/A1099/V2/{company_model.rb → w8_ben_e_form_minimal_request.rb} +139 -170
  93. data/lib/avalara_sdk/models/A1099/V2/w8_ben_e_form_request.rb +53 -27
  94. data/lib/avalara_sdk/models/A1099/V2/{base_company_model.rb → w8_ben_form_minimal_request.rb} +148 -122
  95. data/lib/avalara_sdk/models/A1099/V2/w8_ben_form_request.rb +53 -27
  96. data/lib/avalara_sdk/models/A1099/V2/{attribute.rb → w8_imy_form_minimal_request.rb} +135 -132
  97. data/lib/avalara_sdk/models/A1099/V2/w8_imy_form_request.rb +53 -27
  98. data/lib/avalara_sdk/models/A1099/V2/{http_validation_problem_details.rb → w9_form_base_minimal_request.rb} +87 -53
  99. data/lib/avalara_sdk/models/A1099/V2/w9_form_base_request.rb +60 -27
  100. data/lib/avalara_sdk/models/A1099/V2/w9_form_base_response.rb +14 -14
  101. data/lib/avalara_sdk/models/A1099/V2/{company_response_model.rb → w9_form_minimal_request.rb} +140 -148
  102. data/lib/avalara_sdk/models/A1099/V2/w9_form_request.rb +53 -27
  103. data/lib/avalara_sdk/version.rb +1 -1
  104. data/lib/avalara_sdk.rb +22 -105
  105. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/byebug-11.1.3/gem_make.out +5 -5
  106. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/date-3.4.1/gem_make.out +5 -5
  107. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debase-0.2.9/gem_make.out +5 -5
  108. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debug-1.10.0/gem_make.out +5 -5
  109. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/erb-5.0.1/gem_make.out +5 -5
  110. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/io-console-0.8.0/gem_make.out +5 -5
  111. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/json-2.12.2/gem_make.out +5 -5
  112. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/prism-1.4.0/gem_make.out +5 -5
  113. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/psych-5.2.6/gem_make.out +5 -5
  114. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/racc-1.8.1/gem_make.out +5 -5
  115. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/stringio-3.1.7/gem_make.out +5 -5
  116. metadata +37 -103
  117. data/lib/avalara_sdk/models/A1099/V2/base_form_list_request.rb +0 -210
  118. data/lib/avalara_sdk/models/A1099/V2/bulk_upsert1099_forms_request.rb +0 -108
  119. data/lib/avalara_sdk/models/A1099/V2/covered_individual_reference.rb +0 -403
  120. data/lib/avalara_sdk/models/A1099/V2/covered_individual_reference_response.rb +0 -407
  121. data/lib/avalara_sdk/models/A1099/V2/create1099_form201_response.rb +0 -108
  122. data/lib/avalara_sdk/models/A1099/V2/data.rb +0 -237
  123. data/lib/avalara_sdk/models/A1099/V2/form1042_s_list.rb +0 -238
  124. data/lib/avalara_sdk/models/A1099/V2/form1042_s_list_item.rb +0 -816
  125. data/lib/avalara_sdk/models/A1099/V2/form1042_s_list_item_response.rb +0 -980
  126. data/lib/avalara_sdk/models/A1099/V2/form1042_s_request.rb +0 -778
  127. data/lib/avalara_sdk/models/A1099/V2/form1042_s_response.rb +0 -619
  128. data/lib/avalara_sdk/models/A1099/V2/form1095_b_list.rb +0 -238
  129. data/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item.rb +0 -606
  130. data/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item_response.rb +0 -765
  131. data/lib/avalara_sdk/models/A1099/V2/form1095_b_request.rb +0 -627
  132. data/lib/avalara_sdk/models/A1099/V2/form1095_c_list.rb +0 -238
  133. data/lib/avalara_sdk/models/A1099/V2/form1095_c_list_item.rb +0 -662
  134. data/lib/avalara_sdk/models/A1099/V2/form1099_base_response.rb +0 -726
  135. data/lib/avalara_sdk/models/A1099/V2/form1099_div_list_item.rb +0 -747
  136. data/lib/avalara_sdk/models/A1099/V2/form1099_div_list_item_response.rb +0 -931
  137. data/lib/avalara_sdk/models/A1099/V2/form1099_div_request.rb +0 -729
  138. data/lib/avalara_sdk/models/A1099/V2/form1099_div_response.rb +0 -790
  139. data/lib/avalara_sdk/models/A1099/V2/form1099_int_list.rb +0 -238
  140. data/lib/avalara_sdk/models/A1099/V2/form1099_int_list_item.rb +0 -702
  141. data/lib/avalara_sdk/models/A1099/V2/form1099_int_list_item_response.rb +0 -887
  142. data/lib/avalara_sdk/models/A1099/V2/form1099_int_request.rb +0 -684
  143. data/lib/avalara_sdk/models/A1099/V2/form1099_int_response.rb +0 -773
  144. data/lib/avalara_sdk/models/A1099/V2/form1099_k_list.rb +0 -238
  145. data/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item.rb +0 -788
  146. data/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item_response.rb +0 -995
  147. data/lib/avalara_sdk/models/A1099/V2/form1099_k_request.rb +0 -770
  148. data/lib/avalara_sdk/models/A1099/V2/form1099_k_response.rb +0 -839
  149. data/lib/avalara_sdk/models/A1099/V2/form1099_list.rb +0 -219
  150. data/lib/avalara_sdk/models/A1099/V2/form1099_list_data_inner.rb +0 -55
  151. data/lib/avalara_sdk/models/A1099/V2/form1099_list_response.rb +0 -220
  152. data/lib/avalara_sdk/models/A1099/V2/form1099_list_response_value_inner.rb +0 -108
  153. data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list.rb +0 -238
  154. data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item.rb +0 -688
  155. data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item_response.rb +0 -886
  156. data/lib/avalara_sdk/models/A1099/V2/form1099_misc_request.rb +0 -670
  157. data/lib/avalara_sdk/models/A1099/V2/form1099_misc_response.rb +0 -754
  158. data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list.rb +0 -238
  159. data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item.rb +0 -586
  160. data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item_response.rb +0 -765
  161. data/lib/avalara_sdk/models/A1099/V2/form1099_nec_request.rb +0 -567
  162. data/lib/avalara_sdk/models/A1099/V2/form1099_nec_response.rb +0 -646
  163. data/lib/avalara_sdk/models/A1099/V2/form1099_proccess_result.rb +0 -228
  164. data/lib/avalara_sdk/models/A1099/V2/form1099_proccess_result_processed_forms_inner.rb +0 -107
  165. data/lib/avalara_sdk/models/A1099/V2/form1099_r_list.rb +0 -238
  166. data/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item.rb +0 -763
  167. data/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item_response.rb +0 -942
  168. data/lib/avalara_sdk/models/A1099/V2/form1099_r_request.rb +0 -720
  169. data/lib/avalara_sdk/models/A1099/V2/form1099_r_response.rb +0 -839
  170. data/lib/avalara_sdk/models/A1099/V2/form1099_status_detail_response.rb +0 -223
  171. data/lib/avalara_sdk/models/A1099/V2/form_request_base.rb +0 -502
  172. data/lib/avalara_sdk/models/A1099/V2/form_request_csv_base.rb +0 -475
  173. data/lib/avalara_sdk/models/A1099/V2/form_request_list_item_base.rb +0 -548
  174. data/lib/avalara_sdk/models/A1099/V2/form_request_model.rb +0 -345
  175. data/lib/avalara_sdk/models/A1099/V2/form_response_base.rb +0 -612
  176. data/lib/avalara_sdk/models/A1099/V2/form_single_request_base.rb +0 -530
  177. data/lib/avalara_sdk/models/A1099/V2/included_base.rb +0 -219
  178. data/lib/avalara_sdk/models/A1099/V2/intermediary_or_flow_through_request.rb +0 -311
  179. data/lib/avalara_sdk/models/A1099/V2/intermediary_or_flow_through_response.rb +0 -311
  180. data/lib/avalara_sdk/models/A1099/V2/link.rb +0 -210
  181. data/lib/avalara_sdk/models/A1099/V2/paginated_w9_forms_model.rb +0 -231
  182. data/lib/avalara_sdk/models/A1099/V2/primary_withholding_agent_request.rb +0 -221
  183. data/lib/avalara_sdk/models/A1099/V2/primary_withholding_agent_response.rb +0 -221
  184. data/lib/avalara_sdk/models/A1099/V2/problem_details.rb +0 -251
  185. data/lib/avalara_sdk/models/A1099/V2/state_and_local_withholding_request.rb +0 -278
  186. data/lib/avalara_sdk/models/A1099/V2/state_and_local_withholding_response.rb +0 -282
  187. data/lib/avalara_sdk/models/A1099/V2/state_efile_status_detail_app.rb +0 -231
  188. data/lib/avalara_sdk/models/A1099/V2/state_efile_status_detail_response.rb +0 -231
  189. data/lib/avalara_sdk/models/A1099/V2/update1099_form200_response.rb +0 -108
  190. data/lib/avalara_sdk/models/A1099/V2/validation_error_app.rb +0 -229
  191. data/lib/avalara_sdk/models/A1099/V2/validation_error_response.rb +0 -231
  192. data/lib/avalara_sdk/models/EInvoicing/V1/directory_search_response.rb +0 -233
  193. data/lib/avalara_sdk/models/EInvoicing/V1/directory_search_response_value_inner.rb +0 -274
  194. data/lib/avalara_sdk/models/EInvoicing/V1/directory_search_response_value_inner_addresses_inner.rb +0 -251
  195. data/lib/avalara_sdk/models/EInvoicing/V1/directory_search_response_value_inner_identifiers_inner.rb +0 -221
  196. data/lib/avalara_sdk/models/EInvoicing/V1/directory_search_response_value_inner_supported_document_types_inner.rb +0 -241
  197. data/lib/avalara_sdk/models/EInvoicing/V1/document_fetch_request.rb +0 -224
  198. data/lib/avalara_sdk/models/EInvoicing/V1/document_fetch_request_data_inner.rb +0 -237
  199. data/lib/avalara_sdk/models/EInvoicing/V1/document_fetch_request_metadata.rb +0 -288
  200. data/lib/avalara_sdk/models/EInvoicing/V1/submit_document_data.rb +0 -216
@@ -10,112 +10,191 @@ require 'date'
10
10
  require 'time'
11
11
 
12
12
  module AvalaraSdk::A1099::V2
13
- class Form1099Misc
13
+ # Form 1099-MISC: Miscellaneous Income
14
+ class Form1099Misc
15
+ # Rents
14
16
  attr_accessor :rents
15
17
 
18
+ # Royalties
16
19
  attr_accessor :royalties
17
20
 
21
+ # Other income
18
22
  attr_accessor :other_income
19
23
 
20
- attr_accessor :fed_income_tax_withheld
24
+ # Federal income tax withheld
25
+ attr_accessor :federal_income_tax_withheld
21
26
 
27
+ # Fishing boat proceeds
22
28
  attr_accessor :fishing_boat_proceeds
23
29
 
30
+ # Medical and health care payments
24
31
  attr_accessor :medical_and_health_care_payments
25
32
 
26
- attr_accessor :substitute_payments
27
-
33
+ # Payer made direct sales totaling $5,000 or more of consumer products to recipient for resale
28
34
  attr_accessor :direct_sales_indicator
29
35
 
30
- attr_accessor :crop_insurance_proceeds
36
+ # Substitute payments in lieu of dividends or interest
37
+ attr_accessor :substitute_payments
31
38
 
32
- attr_accessor :excess_golden_parachute_payments
39
+ # Crop insurance proceeds
40
+ attr_accessor :crop_insurance_proceeds
33
41
 
42
+ # Gross proceeds paid to an attorney
34
43
  attr_accessor :gross_proceeds_paid_to_attorney
35
44
 
45
+ # Fish purchased for resale
36
46
  attr_accessor :fish_purchased_for_resale
37
47
 
48
+ # Section 409A deferrals
38
49
  attr_accessor :section409_a_deferrals
39
50
 
51
+ # (Legacy field) Excess golden parachute payments
52
+ attr_accessor :excess_golden_parachute_payments
53
+
54
+ # Nonqualified deferred compensation
40
55
  attr_accessor :nonqualified_deferred_compensation
41
56
 
42
- attr_accessor :id
57
+ # FATCA filing requirement
58
+ attr_accessor :fatca_filing_requirement
43
59
 
60
+ # Form type
44
61
  attr_accessor :type
45
62
 
63
+ # Form ID. Unique identifier set when the record is created.
64
+ attr_accessor :id
65
+
66
+ # Issuer ID - only required when creating forms
46
67
  attr_accessor :issuer_id
47
68
 
69
+ # Issuer Reference ID - only required when creating forms
48
70
  attr_accessor :issuer_reference_id
49
71
 
72
+ # Issuer TIN - readonly
50
73
  attr_accessor :issuer_tin
51
74
 
75
+ # Tax Year - only required when creating forms
52
76
  attr_accessor :tax_year
53
77
 
54
- attr_accessor :federal_efile
78
+ # Internal reference ID. Never shown to any agency or recipient.
79
+ attr_accessor :reference_id
55
80
 
56
- attr_accessor :federal_efile_status
81
+ # Recipient's Federal Tax Identification Number (TIN).
82
+ attr_accessor :tin
57
83
 
58
- attr_accessor :state_efile
84
+ # Recipient name
85
+ attr_accessor :recipient_name
59
86
 
60
- attr_accessor :state_efile_status
87
+ # Type of TIN (Tax ID Number)
88
+ attr_accessor :tin_type
61
89
 
62
- attr_accessor :postal_mail
90
+ # Recipient second name
91
+ attr_accessor :recipient_second_name
63
92
 
64
- attr_accessor :postal_mail_status
93
+ # Address.
94
+ attr_accessor :address
65
95
 
66
- attr_accessor :tin_match
96
+ # Address line 2.
97
+ attr_accessor :address2
67
98
 
68
- attr_accessor :tin_match_status
99
+ # City.
100
+ attr_accessor :city
69
101
 
70
- attr_accessor :address_verification
102
+ # Two-letter US state or Canadian province code (required for US/CA addresses).
103
+ attr_accessor :state
71
104
 
72
- attr_accessor :address_verification_status
105
+ # ZIP/postal code.
106
+ attr_accessor :zip
73
107
 
74
- attr_accessor :e_delivery_status
108
+ # Recipient's Contact email address.
109
+ attr_accessor :email
75
110
 
76
- attr_accessor :reference_id
111
+ # Account number
112
+ attr_accessor :account_number
77
113
 
78
- attr_accessor :email
114
+ # Office code
115
+ attr_accessor :office_code
79
116
 
80
- attr_accessor :tin_type
117
+ # Province or region for non-US/CA addresses.
118
+ attr_accessor :non_us_province
81
119
 
82
- attr_accessor :fatca_filing_requirement
120
+ # Two-letter IRS country code (e.g., 'US', 'CA'), as defined at https://www.irs.gov/e-file-providers/country-codes.
121
+ attr_accessor :country_code
83
122
 
84
- attr_accessor :tin
123
+ # Date when federal e-filing should be scheduled for this form
124
+ attr_accessor :federal_efile_date
85
125
 
86
- attr_accessor :no_tin
126
+ # Boolean indicating that postal mailing to the recipient should be scheduled for this form
127
+ attr_accessor :postal_mail
87
128
 
88
- attr_accessor :second_tin_notice
129
+ # Date when state e-filing should be scheduled for this form
130
+ attr_accessor :state_efile_date
89
131
 
90
- attr_accessor :recipient_name
132
+ # Date when recipient e-delivery should be scheduled for this form
133
+ attr_accessor :recipient_edelivery_date
91
134
 
92
- attr_accessor :recipient_second_name
135
+ # Boolean indicating that TIN Matching should be scheduled for this form
136
+ attr_accessor :tin_match
93
137
 
94
- attr_accessor :address
138
+ # No TIN indicator
139
+ attr_accessor :no_tin
95
140
 
96
- attr_accessor :address2
141
+ # Boolean indicating that address verification should be scheduled for this form
142
+ attr_accessor :address_verification
97
143
 
98
- attr_accessor :city
144
+ # State and local withholding information
145
+ attr_accessor :state_and_local_withholding
99
146
 
100
- attr_accessor :state
147
+ # Second TIN notice
148
+ attr_accessor :second_tin_notice
101
149
 
102
- attr_accessor :zip
150
+ # Federal e-file status
151
+ attr_accessor :federal_efile_status
103
152
 
104
- attr_accessor :non_us_province
153
+ # State e-file status
154
+ attr_accessor :state_efile_status
105
155
 
106
- attr_accessor :country_code
156
+ # Postal mail to recipient status
157
+ attr_accessor :postal_mail_status
107
158
 
108
- attr_accessor :account_number
159
+ # TIN Match status
160
+ attr_accessor :tin_match_status
109
161
 
110
- attr_accessor :office_code
162
+ # Address verification status
163
+ attr_accessor :address_verification_status
164
+
165
+ # EDelivery status
166
+ attr_accessor :e_delivery_status
111
167
 
168
+ # Validation errors
112
169
  attr_accessor :validation_errors
113
170
 
171
+ # Date time when the record was created.
114
172
  attr_accessor :created_at
115
173
 
174
+ # Date time when the record was last updated.
116
175
  attr_accessor :updated_at
117
176
 
118
- attr_accessor :state_and_local_withholding
177
+ class EnumAttributeValidator
178
+ attr_reader :datatype
179
+ attr_reader :allowable_values
180
+
181
+ def initialize(datatype, allowable_values)
182
+ @allowable_values = allowable_values.map do |value|
183
+ case datatype.to_s
184
+ when /Integer/i
185
+ value.to_i
186
+ when /Float/i
187
+ value.to_f
188
+ else
189
+ value
190
+ end
191
+ end
192
+ end
193
+
194
+ def valid?(value)
195
+ !value || allowable_values.include?(value)
196
+ end
197
+ end
119
198
 
120
199
  # Attribute mapping from ruby-style variable name to JSON key.
121
200
  def self.attribute_map
@@ -123,56 +202,57 @@ module AvalaraSdk::A1099::V2
123
202
  :'rents' => :'rents',
124
203
  :'royalties' => :'royalties',
125
204
  :'other_income' => :'otherIncome',
126
- :'fed_income_tax_withheld' => :'fedIncomeTaxWithheld',
205
+ :'federal_income_tax_withheld' => :'federalIncomeTaxWithheld',
127
206
  :'fishing_boat_proceeds' => :'fishingBoatProceeds',
128
207
  :'medical_and_health_care_payments' => :'medicalAndHealthCarePayments',
129
- :'substitute_payments' => :'substitutePayments',
130
208
  :'direct_sales_indicator' => :'directSalesIndicator',
209
+ :'substitute_payments' => :'substitutePayments',
131
210
  :'crop_insurance_proceeds' => :'cropInsuranceProceeds',
132
- :'excess_golden_parachute_payments' => :'excessGoldenParachutePayments',
133
211
  :'gross_proceeds_paid_to_attorney' => :'grossProceedsPaidToAttorney',
134
212
  :'fish_purchased_for_resale' => :'fishPurchasedForResale',
135
213
  :'section409_a_deferrals' => :'section409ADeferrals',
214
+ :'excess_golden_parachute_payments' => :'excessGoldenParachutePayments',
136
215
  :'nonqualified_deferred_compensation' => :'nonqualifiedDeferredCompensation',
137
- :'id' => :'id',
216
+ :'fatca_filing_requirement' => :'fatcaFilingRequirement',
138
217
  :'type' => :'type',
218
+ :'id' => :'id',
139
219
  :'issuer_id' => :'issuerId',
140
220
  :'issuer_reference_id' => :'issuerReferenceId',
141
221
  :'issuer_tin' => :'issuerTin',
142
222
  :'tax_year' => :'taxYear',
143
- :'federal_efile' => :'federalEfile',
144
- :'federal_efile_status' => :'federalEfileStatus',
145
- :'state_efile' => :'stateEfile',
146
- :'state_efile_status' => :'stateEfileStatus',
147
- :'postal_mail' => :'postalMail',
148
- :'postal_mail_status' => :'postalMailStatus',
149
- :'tin_match' => :'tinMatch',
150
- :'tin_match_status' => :'tinMatchStatus',
151
- :'address_verification' => :'addressVerification',
152
- :'address_verification_status' => :'addressVerificationStatus',
153
- :'e_delivery_status' => :'eDeliveryStatus',
154
223
  :'reference_id' => :'referenceId',
155
- :'email' => :'email',
156
- :'tin_type' => :'tinType',
157
- :'fatca_filing_requirement' => :'fatcaFilingRequirement',
158
224
  :'tin' => :'tin',
159
- :'no_tin' => :'noTin',
160
- :'second_tin_notice' => :'secondTinNotice',
161
225
  :'recipient_name' => :'recipientName',
226
+ :'tin_type' => :'tinType',
162
227
  :'recipient_second_name' => :'recipientSecondName',
163
228
  :'address' => :'address',
164
229
  :'address2' => :'address2',
165
230
  :'city' => :'city',
166
231
  :'state' => :'state',
167
232
  :'zip' => :'zip',
168
- :'non_us_province' => :'nonUsProvince',
169
- :'country_code' => :'countryCode',
233
+ :'email' => :'email',
170
234
  :'account_number' => :'accountNumber',
171
235
  :'office_code' => :'officeCode',
236
+ :'non_us_province' => :'nonUsProvince',
237
+ :'country_code' => :'countryCode',
238
+ :'federal_efile_date' => :'federalEfileDate',
239
+ :'postal_mail' => :'postalMail',
240
+ :'state_efile_date' => :'stateEfileDate',
241
+ :'recipient_edelivery_date' => :'recipientEdeliveryDate',
242
+ :'tin_match' => :'tinMatch',
243
+ :'no_tin' => :'noTin',
244
+ :'address_verification' => :'addressVerification',
245
+ :'state_and_local_withholding' => :'stateAndLocalWithholding',
246
+ :'second_tin_notice' => :'secondTinNotice',
247
+ :'federal_efile_status' => :'federalEfileStatus',
248
+ :'state_efile_status' => :'stateEfileStatus',
249
+ :'postal_mail_status' => :'postalMailStatus',
250
+ :'tin_match_status' => :'tinMatchStatus',
251
+ :'address_verification_status' => :'addressVerificationStatus',
252
+ :'e_delivery_status' => :'eDeliveryStatus',
172
253
  :'validation_errors' => :'validationErrors',
173
254
  :'created_at' => :'createdAt',
174
- :'updated_at' => :'updatedAt',
175
- :'state_and_local_withholding' => :'stateAndLocalWithholding'
255
+ :'updated_at' => :'updatedAt'
176
256
  }
177
257
  end
178
258
 
@@ -187,56 +267,57 @@ module AvalaraSdk::A1099::V2
187
267
  :'rents' => :'Float',
188
268
  :'royalties' => :'Float',
189
269
  :'other_income' => :'Float',
190
- :'fed_income_tax_withheld' => :'Float',
270
+ :'federal_income_tax_withheld' => :'Float',
191
271
  :'fishing_boat_proceeds' => :'Float',
192
272
  :'medical_and_health_care_payments' => :'Float',
193
- :'substitute_payments' => :'Float',
194
273
  :'direct_sales_indicator' => :'Boolean',
274
+ :'substitute_payments' => :'Float',
195
275
  :'crop_insurance_proceeds' => :'Float',
196
- :'excess_golden_parachute_payments' => :'Float',
197
276
  :'gross_proceeds_paid_to_attorney' => :'Float',
198
277
  :'fish_purchased_for_resale' => :'Float',
199
278
  :'section409_a_deferrals' => :'Float',
279
+ :'excess_golden_parachute_payments' => :'Float',
200
280
  :'nonqualified_deferred_compensation' => :'Float',
201
- :'id' => :'String',
281
+ :'fatca_filing_requirement' => :'Boolean',
202
282
  :'type' => :'String',
203
- :'issuer_id' => :'Integer',
283
+ :'id' => :'String',
284
+ :'issuer_id' => :'String',
204
285
  :'issuer_reference_id' => :'String',
205
286
  :'issuer_tin' => :'String',
206
287
  :'tax_year' => :'Integer',
207
- :'federal_efile' => :'Boolean',
208
- :'federal_efile_status' => :'Form1099StatusDetail',
209
- :'state_efile' => :'Boolean',
210
- :'state_efile_status' => :'Array<StateEfileStatusDetail>',
211
- :'postal_mail' => :'Boolean',
212
- :'postal_mail_status' => :'Form1099StatusDetail',
213
- :'tin_match' => :'Boolean',
214
- :'tin_match_status' => :'Form1099StatusDetail',
215
- :'address_verification' => :'Boolean',
216
- :'address_verification_status' => :'Form1099StatusDetail',
217
- :'e_delivery_status' => :'Form1099StatusDetail',
218
288
  :'reference_id' => :'String',
219
- :'email' => :'String',
220
- :'tin_type' => :'String',
221
- :'fatca_filing_requirement' => :'Boolean',
222
289
  :'tin' => :'String',
223
- :'no_tin' => :'Boolean',
224
- :'second_tin_notice' => :'Boolean',
225
290
  :'recipient_name' => :'String',
291
+ :'tin_type' => :'String',
226
292
  :'recipient_second_name' => :'String',
227
293
  :'address' => :'String',
228
294
  :'address2' => :'String',
229
295
  :'city' => :'String',
230
296
  :'state' => :'String',
231
297
  :'zip' => :'String',
232
- :'non_us_province' => :'String',
233
- :'country_code' => :'String',
298
+ :'email' => :'String',
234
299
  :'account_number' => :'String',
235
300
  :'office_code' => :'String',
301
+ :'non_us_province' => :'String',
302
+ :'country_code' => :'String',
303
+ :'federal_efile_date' => :'Date',
304
+ :'postal_mail' => :'Boolean',
305
+ :'state_efile_date' => :'Date',
306
+ :'recipient_edelivery_date' => :'Date',
307
+ :'tin_match' => :'Boolean',
308
+ :'no_tin' => :'Boolean',
309
+ :'address_verification' => :'Boolean',
310
+ :'state_and_local_withholding' => :'StateAndLocalWithholding',
311
+ :'second_tin_notice' => :'Boolean',
312
+ :'federal_efile_status' => :'Form1099StatusDetail',
313
+ :'state_efile_status' => :'Array<StateEfileStatusDetail>',
314
+ :'postal_mail_status' => :'Form1099StatusDetail',
315
+ :'tin_match_status' => :'Form1099StatusDetail',
316
+ :'address_verification_status' => :'Form1099StatusDetail',
317
+ :'e_delivery_status' => :'Form1099StatusDetail',
236
318
  :'validation_errors' => :'Array<ValidationError>',
237
319
  :'created_at' => :'Time',
238
- :'updated_at' => :'Time',
239
- :'state_and_local_withholding' => :'StateAndLocalWithholding'
320
+ :'updated_at' => :'Time'
240
321
  }
241
322
  end
242
323
 
@@ -246,42 +327,53 @@ module AvalaraSdk::A1099::V2
246
327
  :'rents',
247
328
  :'royalties',
248
329
  :'other_income',
249
- :'fed_income_tax_withheld',
330
+ :'federal_income_tax_withheld',
250
331
  :'fishing_boat_proceeds',
251
332
  :'medical_and_health_care_payments',
333
+ :'direct_sales_indicator',
252
334
  :'substitute_payments',
253
335
  :'crop_insurance_proceeds',
254
- :'excess_golden_parachute_payments',
255
336
  :'gross_proceeds_paid_to_attorney',
256
337
  :'fish_purchased_for_resale',
257
338
  :'section409_a_deferrals',
339
+ :'excess_golden_parachute_payments',
258
340
  :'nonqualified_deferred_compensation',
341
+ :'fatca_filing_requirement',
342
+ :'id',
343
+ :'issuer_id',
259
344
  :'issuer_reference_id',
260
345
  :'issuer_tin',
261
- :'state_efile_status',
262
- :'postal_mail_status',
263
- :'tin_match_status',
264
- :'address_verification_status',
265
- :'e_delivery_status',
346
+ :'tax_year',
266
347
  :'reference_id',
267
- :'email',
268
- :'tin_type',
269
- :'fatca_filing_requirement',
270
348
  :'tin',
271
- :'second_tin_notice',
272
349
  :'recipient_name',
350
+ :'tin_type',
273
351
  :'recipient_second_name',
274
352
  :'address',
275
353
  :'address2',
276
354
  :'city',
277
355
  :'state',
278
356
  :'zip',
279
- :'non_us_province',
280
- :'country_code',
357
+ :'email',
281
358
  :'account_number',
282
359
  :'office_code',
360
+ :'non_us_province',
361
+ :'country_code',
362
+ :'federal_efile_date',
363
+ :'postal_mail',
364
+ :'state_efile_date',
365
+ :'recipient_edelivery_date',
366
+ :'tin_match',
367
+ :'no_tin',
368
+ :'address_verification',
369
+ :'state_and_local_withholding',
370
+ :'federal_efile_status',
371
+ :'state_efile_status',
372
+ :'postal_mail_status',
373
+ :'tin_match_status',
374
+ :'address_verification_status',
375
+ :'e_delivery_status',
283
376
  :'validation_errors',
284
- :'state_and_local_withholding'
285
377
  ])
286
378
  end
287
379
 
@@ -319,8 +411,8 @@ module AvalaraSdk::A1099::V2
319
411
  self.other_income = attributes[:'other_income']
320
412
  end
321
413
 
322
- if attributes.key?(:'fed_income_tax_withheld')
323
- self.fed_income_tax_withheld = attributes[:'fed_income_tax_withheld']
414
+ if attributes.key?(:'federal_income_tax_withheld')
415
+ self.federal_income_tax_withheld = attributes[:'federal_income_tax_withheld']
324
416
  end
325
417
 
326
418
  if attributes.key?(:'fishing_boat_proceeds')
@@ -331,20 +423,16 @@ module AvalaraSdk::A1099::V2
331
423
  self.medical_and_health_care_payments = attributes[:'medical_and_health_care_payments']
332
424
  end
333
425
 
334
- if attributes.key?(:'substitute_payments')
335
- self.substitute_payments = attributes[:'substitute_payments']
336
- end
337
-
338
426
  if attributes.key?(:'direct_sales_indicator')
339
427
  self.direct_sales_indicator = attributes[:'direct_sales_indicator']
340
428
  end
341
429
 
342
- if attributes.key?(:'crop_insurance_proceeds')
343
- self.crop_insurance_proceeds = attributes[:'crop_insurance_proceeds']
430
+ if attributes.key?(:'substitute_payments')
431
+ self.substitute_payments = attributes[:'substitute_payments']
344
432
  end
345
433
 
346
- if attributes.key?(:'excess_golden_parachute_payments')
347
- self.excess_golden_parachute_payments = attributes[:'excess_golden_parachute_payments']
434
+ if attributes.key?(:'crop_insurance_proceeds')
435
+ self.crop_insurance_proceeds = attributes[:'crop_insurance_proceeds']
348
436
  end
349
437
 
350
438
  if attributes.key?(:'gross_proceeds_paid_to_attorney')
@@ -359,16 +447,26 @@ module AvalaraSdk::A1099::V2
359
447
  self.section409_a_deferrals = attributes[:'section409_a_deferrals']
360
448
  end
361
449
 
450
+ if attributes.key?(:'excess_golden_parachute_payments')
451
+ self.excess_golden_parachute_payments = attributes[:'excess_golden_parachute_payments']
452
+ end
453
+
362
454
  if attributes.key?(:'nonqualified_deferred_compensation')
363
455
  self.nonqualified_deferred_compensation = attributes[:'nonqualified_deferred_compensation']
364
456
  end
365
457
 
366
- if attributes.key?(:'id')
367
- self.id = attributes[:'id']
458
+ if attributes.key?(:'fatca_filing_requirement')
459
+ self.fatca_filing_requirement = attributes[:'fatca_filing_requirement']
368
460
  end
369
461
 
370
462
  if attributes.key?(:'type')
371
463
  self.type = attributes[:'type']
464
+ else
465
+ self.type = nil
466
+ end
467
+
468
+ if attributes.key?(:'id')
469
+ self.id = attributes[:'id']
372
470
  end
373
471
 
374
472
  if attributes.key?(:'issuer_id')
@@ -387,122 +485,134 @@ module AvalaraSdk::A1099::V2
387
485
  self.tax_year = attributes[:'tax_year']
388
486
  end
389
487
 
390
- if attributes.key?(:'federal_efile')
391
- self.federal_efile = attributes[:'federal_efile']
488
+ if attributes.key?(:'reference_id')
489
+ self.reference_id = attributes[:'reference_id']
392
490
  end
393
491
 
394
- if attributes.key?(:'federal_efile_status')
395
- self.federal_efile_status = attributes[:'federal_efile_status']
492
+ if attributes.key?(:'tin')
493
+ self.tin = attributes[:'tin']
396
494
  end
397
495
 
398
- if attributes.key?(:'state_efile')
399
- self.state_efile = attributes[:'state_efile']
496
+ if attributes.key?(:'recipient_name')
497
+ self.recipient_name = attributes[:'recipient_name']
498
+ else
499
+ self.recipient_name = nil
400
500
  end
401
501
 
402
- if attributes.key?(:'state_efile_status')
403
- if (value = attributes[:'state_efile_status']).is_a?(Array)
404
- self.state_efile_status = value
405
- end
502
+ if attributes.key?(:'tin_type')
503
+ self.tin_type = attributes[:'tin_type']
406
504
  end
407
505
 
408
- if attributes.key?(:'postal_mail')
409
- self.postal_mail = attributes[:'postal_mail']
506
+ if attributes.key?(:'recipient_second_name')
507
+ self.recipient_second_name = attributes[:'recipient_second_name']
410
508
  end
411
509
 
412
- if attributes.key?(:'postal_mail_status')
413
- self.postal_mail_status = attributes[:'postal_mail_status']
510
+ if attributes.key?(:'address')
511
+ self.address = attributes[:'address']
512
+ else
513
+ self.address = nil
414
514
  end
415
515
 
416
- if attributes.key?(:'tin_match')
417
- self.tin_match = attributes[:'tin_match']
516
+ if attributes.key?(:'address2')
517
+ self.address2 = attributes[:'address2']
418
518
  end
419
519
 
420
- if attributes.key?(:'tin_match_status')
421
- self.tin_match_status = attributes[:'tin_match_status']
520
+ if attributes.key?(:'city')
521
+ self.city = attributes[:'city']
522
+ else
523
+ self.city = nil
422
524
  end
423
525
 
424
- if attributes.key?(:'address_verification')
425
- self.address_verification = attributes[:'address_verification']
526
+ if attributes.key?(:'state')
527
+ self.state = attributes[:'state']
426
528
  end
427
529
 
428
- if attributes.key?(:'address_verification_status')
429
- self.address_verification_status = attributes[:'address_verification_status']
530
+ if attributes.key?(:'zip')
531
+ self.zip = attributes[:'zip']
430
532
  end
431
533
 
432
- if attributes.key?(:'e_delivery_status')
433
- self.e_delivery_status = attributes[:'e_delivery_status']
534
+ if attributes.key?(:'email')
535
+ self.email = attributes[:'email']
434
536
  end
435
537
 
436
- if attributes.key?(:'reference_id')
437
- self.reference_id = attributes[:'reference_id']
538
+ if attributes.key?(:'account_number')
539
+ self.account_number = attributes[:'account_number']
438
540
  end
439
541
 
440
- if attributes.key?(:'email')
441
- self.email = attributes[:'email']
542
+ if attributes.key?(:'office_code')
543
+ self.office_code = attributes[:'office_code']
442
544
  end
443
545
 
444
- if attributes.key?(:'tin_type')
445
- self.tin_type = attributes[:'tin_type']
546
+ if attributes.key?(:'non_us_province')
547
+ self.non_us_province = attributes[:'non_us_province']
446
548
  end
447
549
 
448
- if attributes.key?(:'fatca_filing_requirement')
449
- self.fatca_filing_requirement = attributes[:'fatca_filing_requirement']
550
+ if attributes.key?(:'country_code')
551
+ self.country_code = attributes[:'country_code']
552
+ else
553
+ self.country_code = nil
450
554
  end
451
555
 
452
- if attributes.key?(:'tin')
453
- self.tin = attributes[:'tin']
556
+ if attributes.key?(:'federal_efile_date')
557
+ self.federal_efile_date = attributes[:'federal_efile_date']
454
558
  end
455
559
 
456
- if attributes.key?(:'no_tin')
457
- self.no_tin = attributes[:'no_tin']
560
+ if attributes.key?(:'postal_mail')
561
+ self.postal_mail = attributes[:'postal_mail']
458
562
  end
459
563
 
460
- if attributes.key?(:'second_tin_notice')
461
- self.second_tin_notice = attributes[:'second_tin_notice']
564
+ if attributes.key?(:'state_efile_date')
565
+ self.state_efile_date = attributes[:'state_efile_date']
462
566
  end
463
567
 
464
- if attributes.key?(:'recipient_name')
465
- self.recipient_name = attributes[:'recipient_name']
568
+ if attributes.key?(:'recipient_edelivery_date')
569
+ self.recipient_edelivery_date = attributes[:'recipient_edelivery_date']
466
570
  end
467
571
 
468
- if attributes.key?(:'recipient_second_name')
469
- self.recipient_second_name = attributes[:'recipient_second_name']
572
+ if attributes.key?(:'tin_match')
573
+ self.tin_match = attributes[:'tin_match']
470
574
  end
471
575
 
472
- if attributes.key?(:'address')
473
- self.address = attributes[:'address']
576
+ if attributes.key?(:'no_tin')
577
+ self.no_tin = attributes[:'no_tin']
474
578
  end
475
579
 
476
- if attributes.key?(:'address2')
477
- self.address2 = attributes[:'address2']
580
+ if attributes.key?(:'address_verification')
581
+ self.address_verification = attributes[:'address_verification']
478
582
  end
479
583
 
480
- if attributes.key?(:'city')
481
- self.city = attributes[:'city']
584
+ if attributes.key?(:'state_and_local_withholding')
585
+ self.state_and_local_withholding = attributes[:'state_and_local_withholding']
482
586
  end
483
587
 
484
- if attributes.key?(:'state')
485
- self.state = attributes[:'state']
588
+ if attributes.key?(:'second_tin_notice')
589
+ self.second_tin_notice = attributes[:'second_tin_notice']
486
590
  end
487
591
 
488
- if attributes.key?(:'zip')
489
- self.zip = attributes[:'zip']
592
+ if attributes.key?(:'federal_efile_status')
593
+ self.federal_efile_status = attributes[:'federal_efile_status']
490
594
  end
491
595
 
492
- if attributes.key?(:'non_us_province')
493
- self.non_us_province = attributes[:'non_us_province']
596
+ if attributes.key?(:'state_efile_status')
597
+ if (value = attributes[:'state_efile_status']).is_a?(Array)
598
+ self.state_efile_status = value
599
+ end
494
600
  end
495
601
 
496
- if attributes.key?(:'country_code')
497
- self.country_code = attributes[:'country_code']
602
+ if attributes.key?(:'postal_mail_status')
603
+ self.postal_mail_status = attributes[:'postal_mail_status']
498
604
  end
499
605
 
500
- if attributes.key?(:'account_number')
501
- self.account_number = attributes[:'account_number']
606
+ if attributes.key?(:'tin_match_status')
607
+ self.tin_match_status = attributes[:'tin_match_status']
502
608
  end
503
609
 
504
- if attributes.key?(:'office_code')
505
- self.office_code = attributes[:'office_code']
610
+ if attributes.key?(:'address_verification_status')
611
+ self.address_verification_status = attributes[:'address_verification_status']
612
+ end
613
+
614
+ if attributes.key?(:'e_delivery_status')
615
+ self.e_delivery_status = attributes[:'e_delivery_status']
506
616
  end
507
617
 
508
618
  if attributes.key?(:'validation_errors')
@@ -518,10 +628,6 @@ module AvalaraSdk::A1099::V2
518
628
  if attributes.key?(:'updated_at')
519
629
  self.updated_at = attributes[:'updated_at']
520
630
  end
521
-
522
- if attributes.key?(:'state_and_local_withholding')
523
- self.state_and_local_withholding = attributes[:'state_and_local_withholding']
524
- end
525
631
  end
526
632
 
527
633
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -529,6 +635,10 @@ module AvalaraSdk::A1099::V2
529
635
  def list_invalid_properties
530
636
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
531
637
  invalid_properties = Array.new
638
+ if @type.nil?
639
+ invalid_properties.push('invalid value for "type", type cannot be nil.')
640
+ end
641
+
532
642
  invalid_properties
533
643
  end
534
644
 
@@ -536,9 +646,34 @@ module AvalaraSdk::A1099::V2
536
646
  # @return true if the model is valid
537
647
  def valid?
538
648
  warn '[DEPRECATED] the `valid?` method is obsolete'
649
+ return false if @type.nil?
650
+ type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
651
+ return false unless type_validator.valid?(@type)
652
+ tin_type_validator = EnumAttributeValidator.new('String', ["Empty", "EIN", "SSN", "ITIN", "ATIN"])
653
+ return false unless tin_type_validator.valid?(@tin_type)
539
654
  true
540
655
  end
541
656
 
657
+ # Custom attribute writer method checking allowed values (enum).
658
+ # @param [Object] type Object to be assigned
659
+ def type=(type)
660
+ validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
661
+ unless validator.valid?(type)
662
+ fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
663
+ end
664
+ @type = type
665
+ end
666
+
667
+ # Custom attribute writer method checking allowed values (enum).
668
+ # @param [Object] tin_type Object to be assigned
669
+ def tin_type=(tin_type)
670
+ validator = EnumAttributeValidator.new('String', ["Empty", "EIN", "SSN", "ITIN", "ATIN"])
671
+ unless validator.valid?(tin_type)
672
+ fail ArgumentError, "invalid value for \"tin_type\", must be one of #{validator.allowable_values}."
673
+ end
674
+ @tin_type = tin_type
675
+ end
676
+
542
677
  # Custom attribute writer method with validation
543
678
  # @param [Object] state_efile_status Value to be assigned
544
679
  def state_efile_status=(state_efile_status)
@@ -559,56 +694,57 @@ module AvalaraSdk::A1099::V2
559
694
  rents == o.rents &&
560
695
  royalties == o.royalties &&
561
696
  other_income == o.other_income &&
562
- fed_income_tax_withheld == o.fed_income_tax_withheld &&
697
+ federal_income_tax_withheld == o.federal_income_tax_withheld &&
563
698
  fishing_boat_proceeds == o.fishing_boat_proceeds &&
564
699
  medical_and_health_care_payments == o.medical_and_health_care_payments &&
565
- substitute_payments == o.substitute_payments &&
566
700
  direct_sales_indicator == o.direct_sales_indicator &&
701
+ substitute_payments == o.substitute_payments &&
567
702
  crop_insurance_proceeds == o.crop_insurance_proceeds &&
568
- excess_golden_parachute_payments == o.excess_golden_parachute_payments &&
569
703
  gross_proceeds_paid_to_attorney == o.gross_proceeds_paid_to_attorney &&
570
704
  fish_purchased_for_resale == o.fish_purchased_for_resale &&
571
705
  section409_a_deferrals == o.section409_a_deferrals &&
706
+ excess_golden_parachute_payments == o.excess_golden_parachute_payments &&
572
707
  nonqualified_deferred_compensation == o.nonqualified_deferred_compensation &&
573
- id == o.id &&
708
+ fatca_filing_requirement == o.fatca_filing_requirement &&
574
709
  type == o.type &&
710
+ id == o.id &&
575
711
  issuer_id == o.issuer_id &&
576
712
  issuer_reference_id == o.issuer_reference_id &&
577
713
  issuer_tin == o.issuer_tin &&
578
714
  tax_year == o.tax_year &&
579
- federal_efile == o.federal_efile &&
580
- federal_efile_status == o.federal_efile_status &&
581
- state_efile == o.state_efile &&
582
- state_efile_status == o.state_efile_status &&
583
- postal_mail == o.postal_mail &&
584
- postal_mail_status == o.postal_mail_status &&
585
- tin_match == o.tin_match &&
586
- tin_match_status == o.tin_match_status &&
587
- address_verification == o.address_verification &&
588
- address_verification_status == o.address_verification_status &&
589
- e_delivery_status == o.e_delivery_status &&
590
715
  reference_id == o.reference_id &&
591
- email == o.email &&
592
- tin_type == o.tin_type &&
593
- fatca_filing_requirement == o.fatca_filing_requirement &&
594
716
  tin == o.tin &&
595
- no_tin == o.no_tin &&
596
- second_tin_notice == o.second_tin_notice &&
597
717
  recipient_name == o.recipient_name &&
718
+ tin_type == o.tin_type &&
598
719
  recipient_second_name == o.recipient_second_name &&
599
720
  address == o.address &&
600
721
  address2 == o.address2 &&
601
722
  city == o.city &&
602
723
  state == o.state &&
603
724
  zip == o.zip &&
604
- non_us_province == o.non_us_province &&
605
- country_code == o.country_code &&
725
+ email == o.email &&
606
726
  account_number == o.account_number &&
607
727
  office_code == o.office_code &&
728
+ non_us_province == o.non_us_province &&
729
+ country_code == o.country_code &&
730
+ federal_efile_date == o.federal_efile_date &&
731
+ postal_mail == o.postal_mail &&
732
+ state_efile_date == o.state_efile_date &&
733
+ recipient_edelivery_date == o.recipient_edelivery_date &&
734
+ tin_match == o.tin_match &&
735
+ no_tin == o.no_tin &&
736
+ address_verification == o.address_verification &&
737
+ state_and_local_withholding == o.state_and_local_withholding &&
738
+ second_tin_notice == o.second_tin_notice &&
739
+ federal_efile_status == o.federal_efile_status &&
740
+ state_efile_status == o.state_efile_status &&
741
+ postal_mail_status == o.postal_mail_status &&
742
+ tin_match_status == o.tin_match_status &&
743
+ address_verification_status == o.address_verification_status &&
744
+ e_delivery_status == o.e_delivery_status &&
608
745
  validation_errors == o.validation_errors &&
609
746
  created_at == o.created_at &&
610
- updated_at == o.updated_at &&
611
- state_and_local_withholding == o.state_and_local_withholding
747
+ updated_at == o.updated_at
612
748
  end
613
749
 
614
750
  # @see the `==` method
@@ -620,7 +756,7 @@ module AvalaraSdk::A1099::V2
620
756
  # Calculates hash code according to all attributes.
621
757
  # @return [Integer] Hash code
622
758
  def hash
623
- [rents, royalties, other_income, fed_income_tax_withheld, fishing_boat_proceeds, medical_and_health_care_payments, substitute_payments, direct_sales_indicator, crop_insurance_proceeds, excess_golden_parachute_payments, gross_proceeds_paid_to_attorney, fish_purchased_for_resale, section409_a_deferrals, nonqualified_deferred_compensation, id, type, issuer_id, issuer_reference_id, issuer_tin, tax_year, federal_efile, federal_efile_status, state_efile, state_efile_status, postal_mail, postal_mail_status, tin_match, tin_match_status, address_verification, address_verification_status, e_delivery_status, reference_id, email, tin_type, fatca_filing_requirement, tin, no_tin, second_tin_notice, recipient_name, recipient_second_name, address, address2, city, state, zip, non_us_province, country_code, account_number, office_code, validation_errors, created_at, updated_at, state_and_local_withholding].hash
759
+ [rents, royalties, other_income, federal_income_tax_withheld, fishing_boat_proceeds, medical_and_health_care_payments, direct_sales_indicator, substitute_payments, crop_insurance_proceeds, gross_proceeds_paid_to_attorney, fish_purchased_for_resale, section409_a_deferrals, excess_golden_parachute_payments, nonqualified_deferred_compensation, fatca_filing_requirement, type, id, issuer_id, issuer_reference_id, issuer_tin, tax_year, reference_id, tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, email, account_number, office_code, non_us_province, country_code, federal_efile_date, postal_mail, state_efile_date, recipient_edelivery_date, tin_match, no_tin, address_verification, state_and_local_withholding, second_tin_notice, federal_efile_status, state_efile_status, postal_mail_status, tin_match_status, address_verification_status, e_delivery_status, validation_errors, created_at, updated_at].hash
624
760
  end
625
761
 
626
762
  # Builds the object from hash