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,133 +10,217 @@ require 'date'
10
10
  require 'time'
11
11
 
12
12
  module AvalaraSdk::A1099::V2
13
- class Form1095B
13
+ # Form 1095-B: Health Coverage
14
+ class Form1095B
15
+ # Employee's first name
16
+ attr_accessor :employee_first_name
17
+
18
+ # Employee's middle name
19
+ attr_accessor :employee_middle_name
20
+
21
+ # Employee's last name
22
+ attr_accessor :employee_last_name
23
+
24
+ # Employee's name suffix
25
+ attr_accessor :employee_name_suffix
26
+
27
+ # Employee's date of birth
28
+ attr_accessor :employee_date_of_birth
29
+
30
+ # Origin of health coverage code Available values: - A: Small Business Health Options Program (SHOP) - B: Employer-sponsored coverage - C: Government-sponsored program - D: Individual market insurance - E: Multiemployer plan - F: Other designated minimum essential coverage - G: Employer-sponsored coverage that is an individual coverage HRA (valid for tax years 2020 and later)
14
31
  attr_accessor :origin_of_health_coverage_code
15
32
 
33
+ # Covered individuals information - At least one month of coverage must be entered if it's not a correction.
16
34
  attr_accessor :covered_individuals
17
35
 
18
- attr_accessor :id
19
-
36
+ # Form type
20
37
  attr_accessor :type
21
38
 
39
+ # Form ID. Unique identifier set when the record is created.
40
+ attr_accessor :id
41
+
42
+ # Issuer ID - only required when creating forms
22
43
  attr_accessor :issuer_id
23
44
 
45
+ # Issuer Reference ID - only required when creating forms
24
46
  attr_accessor :issuer_reference_id
25
47
 
48
+ # Issuer TIN - readonly
26
49
  attr_accessor :issuer_tin
27
50
 
51
+ # Tax Year - only required when creating forms
28
52
  attr_accessor :tax_year
29
53
 
30
- attr_accessor :federal_efile
54
+ # Internal reference ID. Never shown to any agency or recipient.
55
+ attr_accessor :reference_id
31
56
 
32
- attr_accessor :federal_efile_status
57
+ # Recipient's Federal Tax Identification Number (TIN).
58
+ attr_accessor :tin
33
59
 
34
- attr_accessor :state_efile
60
+ # Recipient name
61
+ attr_accessor :recipient_name
35
62
 
36
- attr_accessor :state_efile_status
63
+ # Type of TIN (Tax ID Number)
64
+ attr_accessor :tin_type
37
65
 
38
- attr_accessor :postal_mail
66
+ # Recipient second name
67
+ attr_accessor :recipient_second_name
39
68
 
40
- attr_accessor :postal_mail_status
69
+ # Address.
70
+ attr_accessor :address
41
71
 
42
- attr_accessor :tin_match
72
+ # Address line 2.
73
+ attr_accessor :address2
43
74
 
44
- attr_accessor :tin_match_status
75
+ # City.
76
+ attr_accessor :city
45
77
 
46
- attr_accessor :address_verification
78
+ # Two-letter US state or Canadian province code (required for US/CA addresses).
79
+ attr_accessor :state
47
80
 
48
- attr_accessor :address_verification_status
81
+ # ZIP/postal code.
82
+ attr_accessor :zip
49
83
 
50
- attr_accessor :e_delivery_status
84
+ # Recipient's Contact email address.
85
+ attr_accessor :email
51
86
 
52
- attr_accessor :reference_id
87
+ # Account number
88
+ attr_accessor :account_number
53
89
 
54
- attr_accessor :email
90
+ # Office code
91
+ attr_accessor :office_code
55
92
 
56
- attr_accessor :tin_type
93
+ # Province or region for non-US/CA addresses.
94
+ attr_accessor :non_us_province
57
95
 
58
- attr_accessor :fatca_filing_requirement
96
+ # Two-letter IRS country code (e.g., 'US', 'CA'), as defined at https://www.irs.gov/e-file-providers/country-codes.
97
+ attr_accessor :country_code
59
98
 
60
- attr_accessor :tin
99
+ # Date when federal e-filing should be scheduled for this form
100
+ attr_accessor :federal_efile_date
61
101
 
62
- attr_accessor :no_tin
102
+ # Boolean indicating that postal mailing to the recipient should be scheduled for this form
103
+ attr_accessor :postal_mail
63
104
 
64
- attr_accessor :second_tin_notice
105
+ # Date when state e-filing should be scheduled for this form
106
+ attr_accessor :state_efile_date
65
107
 
66
- attr_accessor :recipient_name
108
+ # Date when recipient e-delivery should be scheduled for this form
109
+ attr_accessor :recipient_edelivery_date
67
110
 
68
- attr_accessor :recipient_second_name
111
+ # Boolean indicating that TIN Matching should be scheduled for this form
112
+ attr_accessor :tin_match
69
113
 
70
- attr_accessor :address
114
+ # No TIN indicator
115
+ attr_accessor :no_tin
71
116
 
72
- attr_accessor :address2
117
+ # Boolean indicating that address verification should be scheduled for this form
118
+ attr_accessor :address_verification
73
119
 
74
- attr_accessor :city
120
+ # State and local withholding information
121
+ attr_accessor :state_and_local_withholding
75
122
 
76
- attr_accessor :state
123
+ # Second TIN notice
124
+ attr_accessor :second_tin_notice
77
125
 
78
- attr_accessor :zip
126
+ # Federal e-file status
127
+ attr_accessor :federal_efile_status
79
128
 
80
- attr_accessor :non_us_province
129
+ # State e-file status
130
+ attr_accessor :state_efile_status
81
131
 
82
- attr_accessor :country_code
132
+ # Postal mail to recipient status
133
+ attr_accessor :postal_mail_status
83
134
 
84
- attr_accessor :account_number
135
+ # TIN Match status
136
+ attr_accessor :tin_match_status
85
137
 
86
- attr_accessor :office_code
138
+ # Address verification status
139
+ attr_accessor :address_verification_status
87
140
 
141
+ # EDelivery status
142
+ attr_accessor :e_delivery_status
143
+
144
+ # Validation errors
88
145
  attr_accessor :validation_errors
89
146
 
147
+ # Date time when the record was created.
90
148
  attr_accessor :created_at
91
149
 
150
+ # Date time when the record was last updated.
92
151
  attr_accessor :updated_at
93
152
 
94
- attr_accessor :state_and_local_withholding
153
+ class EnumAttributeValidator
154
+ attr_reader :datatype
155
+ attr_reader :allowable_values
156
+
157
+ def initialize(datatype, allowable_values)
158
+ @allowable_values = allowable_values.map do |value|
159
+ case datatype.to_s
160
+ when /Integer/i
161
+ value.to_i
162
+ when /Float/i
163
+ value.to_f
164
+ else
165
+ value
166
+ end
167
+ end
168
+ end
169
+
170
+ def valid?(value)
171
+ !value || allowable_values.include?(value)
172
+ end
173
+ end
95
174
 
96
175
  # Attribute mapping from ruby-style variable name to JSON key.
97
176
  def self.attribute_map
98
177
  {
178
+ :'employee_first_name' => :'employeeFirstName',
179
+ :'employee_middle_name' => :'employeeMiddleName',
180
+ :'employee_last_name' => :'employeeLastName',
181
+ :'employee_name_suffix' => :'employeeNameSuffix',
182
+ :'employee_date_of_birth' => :'employeeDateOfBirth',
99
183
  :'origin_of_health_coverage_code' => :'originOfHealthCoverageCode',
100
184
  :'covered_individuals' => :'coveredIndividuals',
101
- :'id' => :'id',
102
185
  :'type' => :'type',
186
+ :'id' => :'id',
103
187
  :'issuer_id' => :'issuerId',
104
188
  :'issuer_reference_id' => :'issuerReferenceId',
105
189
  :'issuer_tin' => :'issuerTin',
106
190
  :'tax_year' => :'taxYear',
107
- :'federal_efile' => :'federalEfile',
108
- :'federal_efile_status' => :'federalEfileStatus',
109
- :'state_efile' => :'stateEfile',
110
- :'state_efile_status' => :'stateEfileStatus',
111
- :'postal_mail' => :'postalMail',
112
- :'postal_mail_status' => :'postalMailStatus',
113
- :'tin_match' => :'tinMatch',
114
- :'tin_match_status' => :'tinMatchStatus',
115
- :'address_verification' => :'addressVerification',
116
- :'address_verification_status' => :'addressVerificationStatus',
117
- :'e_delivery_status' => :'eDeliveryStatus',
118
191
  :'reference_id' => :'referenceId',
119
- :'email' => :'email',
120
- :'tin_type' => :'tinType',
121
- :'fatca_filing_requirement' => :'fatcaFilingRequirement',
122
192
  :'tin' => :'tin',
123
- :'no_tin' => :'noTin',
124
- :'second_tin_notice' => :'secondTinNotice',
125
193
  :'recipient_name' => :'recipientName',
194
+ :'tin_type' => :'tinType',
126
195
  :'recipient_second_name' => :'recipientSecondName',
127
196
  :'address' => :'address',
128
197
  :'address2' => :'address2',
129
198
  :'city' => :'city',
130
199
  :'state' => :'state',
131
200
  :'zip' => :'zip',
132
- :'non_us_province' => :'nonUsProvince',
133
- :'country_code' => :'countryCode',
201
+ :'email' => :'email',
134
202
  :'account_number' => :'accountNumber',
135
203
  :'office_code' => :'officeCode',
204
+ :'non_us_province' => :'nonUsProvince',
205
+ :'country_code' => :'countryCode',
206
+ :'federal_efile_date' => :'federalEfileDate',
207
+ :'postal_mail' => :'postalMail',
208
+ :'state_efile_date' => :'stateEfileDate',
209
+ :'recipient_edelivery_date' => :'recipientEdeliveryDate',
210
+ :'tin_match' => :'tinMatch',
211
+ :'no_tin' => :'noTin',
212
+ :'address_verification' => :'addressVerification',
213
+ :'state_and_local_withholding' => :'stateAndLocalWithholding',
214
+ :'second_tin_notice' => :'secondTinNotice',
215
+ :'federal_efile_status' => :'federalEfileStatus',
216
+ :'state_efile_status' => :'stateEfileStatus',
217
+ :'postal_mail_status' => :'postalMailStatus',
218
+ :'tin_match_status' => :'tinMatchStatus',
219
+ :'address_verification_status' => :'addressVerificationStatus',
220
+ :'e_delivery_status' => :'eDeliveryStatus',
136
221
  :'validation_errors' => :'validationErrors',
137
222
  :'created_at' => :'createdAt',
138
- :'updated_at' => :'updatedAt',
139
- :'state_and_local_withholding' => :'stateAndLocalWithholding'
223
+ :'updated_at' => :'updatedAt'
140
224
  }
141
225
  end
142
226
 
@@ -148,79 +232,99 @@ module AvalaraSdk::A1099::V2
148
232
  # Attribute type mapping.
149
233
  def self.openapi_types
150
234
  {
235
+ :'employee_first_name' => :'String',
236
+ :'employee_middle_name' => :'String',
237
+ :'employee_last_name' => :'String',
238
+ :'employee_name_suffix' => :'String',
239
+ :'employee_date_of_birth' => :'Date',
151
240
  :'origin_of_health_coverage_code' => :'String',
152
- :'covered_individuals' => :'Array<CoveredIndividualReference>',
153
- :'id' => :'String',
241
+ :'covered_individuals' => :'Array<CoveredIndividual>',
154
242
  :'type' => :'String',
155
- :'issuer_id' => :'Integer',
243
+ :'id' => :'String',
244
+ :'issuer_id' => :'String',
156
245
  :'issuer_reference_id' => :'String',
157
246
  :'issuer_tin' => :'String',
158
247
  :'tax_year' => :'Integer',
159
- :'federal_efile' => :'Boolean',
160
- :'federal_efile_status' => :'Form1099StatusDetail',
161
- :'state_efile' => :'Boolean',
162
- :'state_efile_status' => :'Array<StateEfileStatusDetail>',
163
- :'postal_mail' => :'Boolean',
164
- :'postal_mail_status' => :'Form1099StatusDetail',
165
- :'tin_match' => :'Boolean',
166
- :'tin_match_status' => :'Form1099StatusDetail',
167
- :'address_verification' => :'Boolean',
168
- :'address_verification_status' => :'Form1099StatusDetail',
169
- :'e_delivery_status' => :'Form1099StatusDetail',
170
248
  :'reference_id' => :'String',
171
- :'email' => :'String',
172
- :'tin_type' => :'String',
173
- :'fatca_filing_requirement' => :'Boolean',
174
249
  :'tin' => :'String',
175
- :'no_tin' => :'Boolean',
176
- :'second_tin_notice' => :'Boolean',
177
250
  :'recipient_name' => :'String',
251
+ :'tin_type' => :'String',
178
252
  :'recipient_second_name' => :'String',
179
253
  :'address' => :'String',
180
254
  :'address2' => :'String',
181
255
  :'city' => :'String',
182
256
  :'state' => :'String',
183
257
  :'zip' => :'String',
184
- :'non_us_province' => :'String',
185
- :'country_code' => :'String',
258
+ :'email' => :'String',
186
259
  :'account_number' => :'String',
187
260
  :'office_code' => :'String',
261
+ :'non_us_province' => :'String',
262
+ :'country_code' => :'String',
263
+ :'federal_efile_date' => :'Date',
264
+ :'postal_mail' => :'Boolean',
265
+ :'state_efile_date' => :'Date',
266
+ :'recipient_edelivery_date' => :'Date',
267
+ :'tin_match' => :'Boolean',
268
+ :'no_tin' => :'Boolean',
269
+ :'address_verification' => :'Boolean',
270
+ :'state_and_local_withholding' => :'StateAndLocalWithholding',
271
+ :'second_tin_notice' => :'Boolean',
272
+ :'federal_efile_status' => :'Form1099StatusDetail',
273
+ :'state_efile_status' => :'Array<StateEfileStatusDetail>',
274
+ :'postal_mail_status' => :'Form1099StatusDetail',
275
+ :'tin_match_status' => :'Form1099StatusDetail',
276
+ :'address_verification_status' => :'Form1099StatusDetail',
277
+ :'e_delivery_status' => :'Form1099StatusDetail',
188
278
  :'validation_errors' => :'Array<ValidationError>',
189
279
  :'created_at' => :'Time',
190
- :'updated_at' => :'Time',
191
- :'state_and_local_withholding' => :'StateAndLocalWithholding'
280
+ :'updated_at' => :'Time'
192
281
  }
193
282
  end
194
283
 
195
284
  # List of attributes with nullable: true
196
285
  def self.openapi_nullable
197
286
  Set.new([
287
+ :'employee_first_name',
288
+ :'employee_middle_name',
289
+ :'employee_last_name',
290
+ :'employee_name_suffix',
291
+ :'employee_date_of_birth',
292
+ :'origin_of_health_coverage_code',
293
+ :'id',
294
+ :'issuer_id',
198
295
  :'issuer_reference_id',
199
296
  :'issuer_tin',
200
- :'state_efile_status',
201
- :'postal_mail_status',
202
- :'tin_match_status',
203
- :'address_verification_status',
204
- :'e_delivery_status',
297
+ :'tax_year',
205
298
  :'reference_id',
206
- :'email',
207
- :'tin_type',
208
- :'fatca_filing_requirement',
209
299
  :'tin',
210
- :'second_tin_notice',
211
300
  :'recipient_name',
301
+ :'tin_type',
212
302
  :'recipient_second_name',
213
303
  :'address',
214
304
  :'address2',
215
305
  :'city',
216
306
  :'state',
217
307
  :'zip',
218
- :'non_us_province',
219
- :'country_code',
308
+ :'email',
220
309
  :'account_number',
221
310
  :'office_code',
311
+ :'non_us_province',
312
+ :'country_code',
313
+ :'federal_efile_date',
314
+ :'postal_mail',
315
+ :'state_efile_date',
316
+ :'recipient_edelivery_date',
317
+ :'tin_match',
318
+ :'no_tin',
319
+ :'address_verification',
320
+ :'state_and_local_withholding',
321
+ :'federal_efile_status',
322
+ :'state_efile_status',
323
+ :'postal_mail_status',
324
+ :'tin_match_status',
325
+ :'address_verification_status',
326
+ :'e_delivery_status',
222
327
  :'validation_errors',
223
- :'state_and_local_withholding'
224
328
  ])
225
329
  end
226
330
 
@@ -246,8 +350,34 @@ module AvalaraSdk::A1099::V2
246
350
  h[k.to_sym] = v
247
351
  }
248
352
 
353
+ if attributes.key?(:'employee_first_name')
354
+ self.employee_first_name = attributes[:'employee_first_name']
355
+ else
356
+ self.employee_first_name = nil
357
+ end
358
+
359
+ if attributes.key?(:'employee_middle_name')
360
+ self.employee_middle_name = attributes[:'employee_middle_name']
361
+ end
362
+
363
+ if attributes.key?(:'employee_last_name')
364
+ self.employee_last_name = attributes[:'employee_last_name']
365
+ else
366
+ self.employee_last_name = nil
367
+ end
368
+
369
+ if attributes.key?(:'employee_name_suffix')
370
+ self.employee_name_suffix = attributes[:'employee_name_suffix']
371
+ end
372
+
373
+ if attributes.key?(:'employee_date_of_birth')
374
+ self.employee_date_of_birth = attributes[:'employee_date_of_birth']
375
+ end
376
+
249
377
  if attributes.key?(:'origin_of_health_coverage_code')
250
378
  self.origin_of_health_coverage_code = attributes[:'origin_of_health_coverage_code']
379
+ else
380
+ self.origin_of_health_coverage_code = nil
251
381
  end
252
382
 
253
383
  if attributes.key?(:'covered_individuals')
@@ -256,12 +386,14 @@ module AvalaraSdk::A1099::V2
256
386
  end
257
387
  end
258
388
 
259
- if attributes.key?(:'id')
260
- self.id = attributes[:'id']
261
- end
262
-
263
389
  if attributes.key?(:'type')
264
390
  self.type = attributes[:'type']
391
+ else
392
+ self.type = nil
393
+ end
394
+
395
+ if attributes.key?(:'id')
396
+ self.id = attributes[:'id']
265
397
  end
266
398
 
267
399
  if attributes.key?(:'issuer_id')
@@ -280,122 +412,134 @@ module AvalaraSdk::A1099::V2
280
412
  self.tax_year = attributes[:'tax_year']
281
413
  end
282
414
 
283
- if attributes.key?(:'federal_efile')
284
- self.federal_efile = attributes[:'federal_efile']
415
+ if attributes.key?(:'reference_id')
416
+ self.reference_id = attributes[:'reference_id']
285
417
  end
286
418
 
287
- if attributes.key?(:'federal_efile_status')
288
- self.federal_efile_status = attributes[:'federal_efile_status']
419
+ if attributes.key?(:'tin')
420
+ self.tin = attributes[:'tin']
289
421
  end
290
422
 
291
- if attributes.key?(:'state_efile')
292
- self.state_efile = attributes[:'state_efile']
423
+ if attributes.key?(:'recipient_name')
424
+ self.recipient_name = attributes[:'recipient_name']
425
+ else
426
+ self.recipient_name = nil
293
427
  end
294
428
 
295
- if attributes.key?(:'state_efile_status')
296
- if (value = attributes[:'state_efile_status']).is_a?(Array)
297
- self.state_efile_status = value
298
- end
429
+ if attributes.key?(:'tin_type')
430
+ self.tin_type = attributes[:'tin_type']
299
431
  end
300
432
 
301
- if attributes.key?(:'postal_mail')
302
- self.postal_mail = attributes[:'postal_mail']
433
+ if attributes.key?(:'recipient_second_name')
434
+ self.recipient_second_name = attributes[:'recipient_second_name']
303
435
  end
304
436
 
305
- if attributes.key?(:'postal_mail_status')
306
- self.postal_mail_status = attributes[:'postal_mail_status']
437
+ if attributes.key?(:'address')
438
+ self.address = attributes[:'address']
439
+ else
440
+ self.address = nil
307
441
  end
308
442
 
309
- if attributes.key?(:'tin_match')
310
- self.tin_match = attributes[:'tin_match']
443
+ if attributes.key?(:'address2')
444
+ self.address2 = attributes[:'address2']
311
445
  end
312
446
 
313
- if attributes.key?(:'tin_match_status')
314
- self.tin_match_status = attributes[:'tin_match_status']
447
+ if attributes.key?(:'city')
448
+ self.city = attributes[:'city']
449
+ else
450
+ self.city = nil
315
451
  end
316
452
 
317
- if attributes.key?(:'address_verification')
318
- self.address_verification = attributes[:'address_verification']
453
+ if attributes.key?(:'state')
454
+ self.state = attributes[:'state']
319
455
  end
320
456
 
321
- if attributes.key?(:'address_verification_status')
322
- self.address_verification_status = attributes[:'address_verification_status']
457
+ if attributes.key?(:'zip')
458
+ self.zip = attributes[:'zip']
323
459
  end
324
460
 
325
- if attributes.key?(:'e_delivery_status')
326
- self.e_delivery_status = attributes[:'e_delivery_status']
461
+ if attributes.key?(:'email')
462
+ self.email = attributes[:'email']
327
463
  end
328
464
 
329
- if attributes.key?(:'reference_id')
330
- self.reference_id = attributes[:'reference_id']
465
+ if attributes.key?(:'account_number')
466
+ self.account_number = attributes[:'account_number']
331
467
  end
332
468
 
333
- if attributes.key?(:'email')
334
- self.email = attributes[:'email']
469
+ if attributes.key?(:'office_code')
470
+ self.office_code = attributes[:'office_code']
335
471
  end
336
472
 
337
- if attributes.key?(:'tin_type')
338
- self.tin_type = attributes[:'tin_type']
473
+ if attributes.key?(:'non_us_province')
474
+ self.non_us_province = attributes[:'non_us_province']
339
475
  end
340
476
 
341
- if attributes.key?(:'fatca_filing_requirement')
342
- self.fatca_filing_requirement = attributes[:'fatca_filing_requirement']
477
+ if attributes.key?(:'country_code')
478
+ self.country_code = attributes[:'country_code']
479
+ else
480
+ self.country_code = nil
343
481
  end
344
482
 
345
- if attributes.key?(:'tin')
346
- self.tin = attributes[:'tin']
483
+ if attributes.key?(:'federal_efile_date')
484
+ self.federal_efile_date = attributes[:'federal_efile_date']
347
485
  end
348
486
 
349
- if attributes.key?(:'no_tin')
350
- self.no_tin = attributes[:'no_tin']
487
+ if attributes.key?(:'postal_mail')
488
+ self.postal_mail = attributes[:'postal_mail']
351
489
  end
352
490
 
353
- if attributes.key?(:'second_tin_notice')
354
- self.second_tin_notice = attributes[:'second_tin_notice']
491
+ if attributes.key?(:'state_efile_date')
492
+ self.state_efile_date = attributes[:'state_efile_date']
355
493
  end
356
494
 
357
- if attributes.key?(:'recipient_name')
358
- self.recipient_name = attributes[:'recipient_name']
495
+ if attributes.key?(:'recipient_edelivery_date')
496
+ self.recipient_edelivery_date = attributes[:'recipient_edelivery_date']
359
497
  end
360
498
 
361
- if attributes.key?(:'recipient_second_name')
362
- self.recipient_second_name = attributes[:'recipient_second_name']
499
+ if attributes.key?(:'tin_match')
500
+ self.tin_match = attributes[:'tin_match']
363
501
  end
364
502
 
365
- if attributes.key?(:'address')
366
- self.address = attributes[:'address']
503
+ if attributes.key?(:'no_tin')
504
+ self.no_tin = attributes[:'no_tin']
367
505
  end
368
506
 
369
- if attributes.key?(:'address2')
370
- self.address2 = attributes[:'address2']
507
+ if attributes.key?(:'address_verification')
508
+ self.address_verification = attributes[:'address_verification']
371
509
  end
372
510
 
373
- if attributes.key?(:'city')
374
- self.city = attributes[:'city']
511
+ if attributes.key?(:'state_and_local_withholding')
512
+ self.state_and_local_withholding = attributes[:'state_and_local_withholding']
375
513
  end
376
514
 
377
- if attributes.key?(:'state')
378
- self.state = attributes[:'state']
515
+ if attributes.key?(:'second_tin_notice')
516
+ self.second_tin_notice = attributes[:'second_tin_notice']
379
517
  end
380
518
 
381
- if attributes.key?(:'zip')
382
- self.zip = attributes[:'zip']
519
+ if attributes.key?(:'federal_efile_status')
520
+ self.federal_efile_status = attributes[:'federal_efile_status']
383
521
  end
384
522
 
385
- if attributes.key?(:'non_us_province')
386
- self.non_us_province = attributes[:'non_us_province']
523
+ if attributes.key?(:'state_efile_status')
524
+ if (value = attributes[:'state_efile_status']).is_a?(Array)
525
+ self.state_efile_status = value
526
+ end
387
527
  end
388
528
 
389
- if attributes.key?(:'country_code')
390
- self.country_code = attributes[:'country_code']
529
+ if attributes.key?(:'postal_mail_status')
530
+ self.postal_mail_status = attributes[:'postal_mail_status']
391
531
  end
392
532
 
393
- if attributes.key?(:'account_number')
394
- self.account_number = attributes[:'account_number']
533
+ if attributes.key?(:'tin_match_status')
534
+ self.tin_match_status = attributes[:'tin_match_status']
395
535
  end
396
536
 
397
- if attributes.key?(:'office_code')
398
- self.office_code = attributes[:'office_code']
537
+ if attributes.key?(:'address_verification_status')
538
+ self.address_verification_status = attributes[:'address_verification_status']
539
+ end
540
+
541
+ if attributes.key?(:'e_delivery_status')
542
+ self.e_delivery_status = attributes[:'e_delivery_status']
399
543
  end
400
544
 
401
545
  if attributes.key?(:'validation_errors')
@@ -411,10 +555,6 @@ module AvalaraSdk::A1099::V2
411
555
  if attributes.key?(:'updated_at')
412
556
  self.updated_at = attributes[:'updated_at']
413
557
  end
414
-
415
- if attributes.key?(:'state_and_local_withholding')
416
- self.state_and_local_withholding = attributes[:'state_and_local_withholding']
417
- end
418
558
  end
419
559
 
420
560
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -422,6 +562,10 @@ module AvalaraSdk::A1099::V2
422
562
  def list_invalid_properties
423
563
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
424
564
  invalid_properties = Array.new
565
+ if @type.nil?
566
+ invalid_properties.push('invalid value for "type", type cannot be nil.')
567
+ end
568
+
425
569
  invalid_properties
426
570
  end
427
571
 
@@ -429,9 +573,26 @@ module AvalaraSdk::A1099::V2
429
573
  # @return true if the model is valid
430
574
  def valid?
431
575
  warn '[DEPRECATED] the `valid?` method is obsolete'
576
+ origin_of_health_coverage_code_validator = EnumAttributeValidator.new('String', ["A", "B", "C", "D", "E", "F", "G"])
577
+ return false unless origin_of_health_coverage_code_validator.valid?(@origin_of_health_coverage_code)
578
+ return false if @type.nil?
579
+ type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
580
+ return false unless type_validator.valid?(@type)
581
+ tin_type_validator = EnumAttributeValidator.new('String', ["Empty", "EIN", "SSN", "ITIN", "ATIN"])
582
+ return false unless tin_type_validator.valid?(@tin_type)
432
583
  true
433
584
  end
434
585
 
586
+ # Custom attribute writer method checking allowed values (enum).
587
+ # @param [Object] origin_of_health_coverage_code Object to be assigned
588
+ def origin_of_health_coverage_code=(origin_of_health_coverage_code)
589
+ validator = EnumAttributeValidator.new('String', ["A", "B", "C", "D", "E", "F", "G"])
590
+ unless validator.valid?(origin_of_health_coverage_code)
591
+ fail ArgumentError, "invalid value for \"origin_of_health_coverage_code\", must be one of #{validator.allowable_values}."
592
+ end
593
+ @origin_of_health_coverage_code = origin_of_health_coverage_code
594
+ end
595
+
435
596
  # Custom attribute writer method with validation
436
597
  # @param [Object] covered_individuals Value to be assigned
437
598
  def covered_individuals=(covered_individuals)
@@ -442,6 +603,26 @@ module AvalaraSdk::A1099::V2
442
603
  @covered_individuals = covered_individuals
443
604
  end
444
605
 
606
+ # Custom attribute writer method checking allowed values (enum).
607
+ # @param [Object] type Object to be assigned
608
+ def type=(type)
609
+ validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
610
+ unless validator.valid?(type)
611
+ fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
612
+ end
613
+ @type = type
614
+ end
615
+
616
+ # Custom attribute writer method checking allowed values (enum).
617
+ # @param [Object] tin_type Object to be assigned
618
+ def tin_type=(tin_type)
619
+ validator = EnumAttributeValidator.new('String', ["Empty", "EIN", "SSN", "ITIN", "ATIN"])
620
+ unless validator.valid?(tin_type)
621
+ fail ArgumentError, "invalid value for \"tin_type\", must be one of #{validator.allowable_values}."
622
+ end
623
+ @tin_type = tin_type
624
+ end
625
+
445
626
  # Custom attribute writer method with validation
446
627
  # @param [Object] state_efile_status Value to be assigned
447
628
  def state_efile_status=(state_efile_status)
@@ -459,47 +640,52 @@ module AvalaraSdk::A1099::V2
459
640
  def ==(o)
460
641
  return true if self.equal?(o)
461
642
  self.class == o.class &&
643
+ employee_first_name == o.employee_first_name &&
644
+ employee_middle_name == o.employee_middle_name &&
645
+ employee_last_name == o.employee_last_name &&
646
+ employee_name_suffix == o.employee_name_suffix &&
647
+ employee_date_of_birth == o.employee_date_of_birth &&
462
648
  origin_of_health_coverage_code == o.origin_of_health_coverage_code &&
463
649
  covered_individuals == o.covered_individuals &&
464
- id == o.id &&
465
650
  type == o.type &&
651
+ id == o.id &&
466
652
  issuer_id == o.issuer_id &&
467
653
  issuer_reference_id == o.issuer_reference_id &&
468
654
  issuer_tin == o.issuer_tin &&
469
655
  tax_year == o.tax_year &&
470
- federal_efile == o.federal_efile &&
471
- federal_efile_status == o.federal_efile_status &&
472
- state_efile == o.state_efile &&
473
- state_efile_status == o.state_efile_status &&
474
- postal_mail == o.postal_mail &&
475
- postal_mail_status == o.postal_mail_status &&
476
- tin_match == o.tin_match &&
477
- tin_match_status == o.tin_match_status &&
478
- address_verification == o.address_verification &&
479
- address_verification_status == o.address_verification_status &&
480
- e_delivery_status == o.e_delivery_status &&
481
656
  reference_id == o.reference_id &&
482
- email == o.email &&
483
- tin_type == o.tin_type &&
484
- fatca_filing_requirement == o.fatca_filing_requirement &&
485
657
  tin == o.tin &&
486
- no_tin == o.no_tin &&
487
- second_tin_notice == o.second_tin_notice &&
488
658
  recipient_name == o.recipient_name &&
659
+ tin_type == o.tin_type &&
489
660
  recipient_second_name == o.recipient_second_name &&
490
661
  address == o.address &&
491
662
  address2 == o.address2 &&
492
663
  city == o.city &&
493
664
  state == o.state &&
494
665
  zip == o.zip &&
495
- non_us_province == o.non_us_province &&
496
- country_code == o.country_code &&
666
+ email == o.email &&
497
667
  account_number == o.account_number &&
498
668
  office_code == o.office_code &&
669
+ non_us_province == o.non_us_province &&
670
+ country_code == o.country_code &&
671
+ federal_efile_date == o.federal_efile_date &&
672
+ postal_mail == o.postal_mail &&
673
+ state_efile_date == o.state_efile_date &&
674
+ recipient_edelivery_date == o.recipient_edelivery_date &&
675
+ tin_match == o.tin_match &&
676
+ no_tin == o.no_tin &&
677
+ address_verification == o.address_verification &&
678
+ state_and_local_withholding == o.state_and_local_withholding &&
679
+ second_tin_notice == o.second_tin_notice &&
680
+ federal_efile_status == o.federal_efile_status &&
681
+ state_efile_status == o.state_efile_status &&
682
+ postal_mail_status == o.postal_mail_status &&
683
+ tin_match_status == o.tin_match_status &&
684
+ address_verification_status == o.address_verification_status &&
685
+ e_delivery_status == o.e_delivery_status &&
499
686
  validation_errors == o.validation_errors &&
500
687
  created_at == o.created_at &&
501
- updated_at == o.updated_at &&
502
- state_and_local_withholding == o.state_and_local_withholding
688
+ updated_at == o.updated_at
503
689
  end
504
690
 
505
691
  # @see the `==` method
@@ -511,7 +697,7 @@ module AvalaraSdk::A1099::V2
511
697
  # Calculates hash code according to all attributes.
512
698
  # @return [Integer] Hash code
513
699
  def hash
514
- [origin_of_health_coverage_code, covered_individuals, 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
700
+ [employee_first_name, employee_middle_name, employee_last_name, employee_name_suffix, employee_date_of_birth, origin_of_health_coverage_code, covered_individuals, 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
515
701
  end
516
702
 
517
703
  # Builds the object from hash