avalara_sdk 25.8.2 → 25.9.0

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 (220) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +20 -91
  4. data/docs/A1099/V2/CompaniesW9Api.md +18 -18
  5. data/docs/A1099/V2/CompanyBase.md +50 -0
  6. data/docs/A1099/V2/CompanyCreateUpdateRequestModel.md +18 -18
  7. data/docs/A1099/V2/CompanyRequest.md +50 -0
  8. data/docs/A1099/V2/CompanyResponse.md +37 -37
  9. data/docs/A1099/V2/CoveredIndividual.md +56 -0
  10. data/docs/A1099/V2/CreateAndSendW9FormEmailRequest.md +55 -0
  11. data/docs/A1099/V2/CreateCompanyRequest.md +49 -0
  12. data/docs/A1099/V2/CreateIssuerRequest.md +49 -0
  13. data/docs/A1099/V2/EntryStatusResponse.md +20 -0
  14. data/docs/A1099/V2/Form1042S.md +83 -83
  15. data/docs/A1099/V2/Form1095B.md +72 -62
  16. data/docs/A1099/V2/Form1095C.md +112 -0
  17. data/docs/A1099/V2/Form1099Base.md +60 -60
  18. data/docs/A1099/V2/Form1099Div.md +79 -77
  19. data/docs/A1099/V2/Form1099Int.md +76 -74
  20. data/docs/A1099/V2/Form1099K.md +83 -83
  21. data/docs/A1099/V2/Form1099ListRequest.md +20 -0
  22. data/docs/A1099/V2/Form1099Misc.md +79 -77
  23. data/docs/A1099/V2/Form1099Nec.md +64 -64
  24. data/docs/A1099/V2/Form1099R.md +95 -93
  25. data/docs/A1099/V2/Forms1099Api.md +47 -43
  26. data/docs/A1099/V2/FormsW9Api.md +104 -20
  27. data/docs/A1099/V2/Get1099Form200Response.md +19 -19
  28. data/docs/A1099/V2/IntermediaryOrFlowThrough.md +11 -11
  29. data/docs/A1099/V2/IssuerBase.md +46 -0
  30. data/docs/A1099/V2/IssuerCommand.md +16 -16
  31. data/docs/A1099/V2/IssuerRequest.md +46 -0
  32. data/docs/A1099/V2/IssuerResponse.md +35 -35
  33. data/docs/A1099/V2/Issuers1099Api.md +10 -10
  34. data/docs/A1099/V2/JobResponse.md +56 -0
  35. data/docs/A1099/V2/JobsApi.md +91 -0
  36. data/docs/A1099/V2/OfferAndCoverage.md +28 -0
  37. data/docs/A1099/V2/PaginatedQueryResultModelForm1099Base.md +22 -0
  38. data/docs/A1099/V2/PrimaryWithholdingAgent.md +4 -4
  39. data/docs/A1099/V2/StateAndLocalWithholding.md +8 -8
  40. data/docs/A1099/V2/TinMatchStatusResponse.md +1 -1
  41. data/docs/A1099/V2/ValidationError.md +2 -2
  42. data/docs/A1099/V2/W4FormMinimalRequest.md +30 -0
  43. data/docs/A1099/V2/W4FormRequest.md +16 -16
  44. data/docs/A1099/V2/W4FormResponse.md +48 -20
  45. data/docs/A1099/V2/W8BenEFormMinimalRequest.md +28 -0
  46. data/docs/A1099/V2/W8BenEFormRequest.md +15 -15
  47. data/docs/A1099/V2/W8BenEFormResponse.md +96 -68
  48. data/docs/A1099/V2/W8BenFormMinimalRequest.md +28 -0
  49. data/docs/A1099/V2/W8BenFormRequest.md +11 -11
  50. data/docs/A1099/V2/W8BenFormResponse.md +55 -27
  51. data/docs/A1099/V2/W8ImyFormMinimalRequest.md +28 -0
  52. data/docs/A1099/V2/W8ImyFormRequest.md +15 -15
  53. data/docs/A1099/V2/W8ImyFormResponse.md +118 -90
  54. data/docs/A1099/V2/W9FormBaseMinimalRequest.md +24 -0
  55. data/docs/A1099/V2/W9FormBaseRequest.md +7 -7
  56. data/docs/A1099/V2/W9FormBaseResponse.md +6 -6
  57. data/docs/A1099/V2/W9FormMinimalRequest.md +28 -0
  58. data/docs/A1099/V2/W9FormRequest.md +15 -15
  59. data/docs/A1099/V2/W9FormResponse.md +44 -16
  60. data/lib/avalara_sdk/api/A1099/V2/companies_w9_api.rb +27 -27
  61. data/lib/avalara_sdk/api/A1099/V2/forms1099_api.rb +93 -61
  62. data/lib/avalara_sdk/api/A1099/V2/forms_w9_api.rb +157 -19
  63. data/lib/avalara_sdk/api/A1099/V2/issuers1099_api.rb +21 -21
  64. data/lib/avalara_sdk/api/A1099/V2/{jobs1099_api.rb → jobs_api.rb} +9 -9
  65. data/lib/avalara_sdk/api/EInvoicing/V1/data_input_fields_api.rb +1 -1
  66. data/lib/avalara_sdk/api/EInvoicing/V1/documents_api.rb +1 -1
  67. data/lib/avalara_sdk/api/EInvoicing/V1/interop_api.rb +1 -1
  68. data/lib/avalara_sdk/api/EInvoicing/V1/mandates_api.rb +1 -1
  69. data/lib/avalara_sdk/api/EInvoicing/V1/subscriptions_api.rb +1 -1
  70. data/lib/avalara_sdk/api/EInvoicing/V1/tax_identifiers_api.rb +1 -1
  71. data/lib/avalara_sdk/api/EInvoicing/V1/trading_partners_api.rb +1 -1
  72. data/lib/avalara_sdk/api_client.rb +10 -2
  73. data/lib/avalara_sdk/models/A1099/V2/{base_company_model.rb → company_base.rb} +61 -13
  74. data/lib/avalara_sdk/models/A1099/V2/company_create_update_request_model.rb +58 -17
  75. data/lib/avalara_sdk/models/A1099/V2/{company_model.rb → company_request.rb} +62 -64
  76. data/lib/avalara_sdk/models/A1099/V2/company_response.rb +110 -69
  77. data/lib/avalara_sdk/models/A1099/V2/{covered_individual_request.rb → covered_individual.rb} +36 -7
  78. data/lib/avalara_sdk/models/A1099/V2/{i_create_form1099_request.rb → create_and_send_w9_form_email_request.rb} +6 -5
  79. data/lib/avalara_sdk/models/A1099/V2/{error_response_errors_inner.rb → create_company_request.rb} +3 -3
  80. data/lib/avalara_sdk/models/A1099/V2/{i_update_form1099_request.rb → create_issuer_request.rb} +3 -5
  81. data/lib/avalara_sdk/models/A1099/V2/{status_detail.rb → entry_status_response.rb} +20 -18
  82. data/lib/avalara_sdk/models/A1099/V2/error_response.rb +0 -6
  83. data/lib/avalara_sdk/models/A1099/V2/form1042_s.rb +422 -187
  84. data/lib/avalara_sdk/models/A1099/V2/form1095_b.rb +359 -194
  85. data/lib/avalara_sdk/models/A1099/V2/{form1095_b_response.rb → form1095_c.rb} +250 -133
  86. data/lib/avalara_sdk/models/A1099/V2/form1099_base.rb +283 -185
  87. data/lib/avalara_sdk/models/A1099/V2/form1099_div.rb +307 -179
  88. data/lib/avalara_sdk/models/A1099/V2/form1099_int.rb +307 -183
  89. data/lib/avalara_sdk/models/A1099/V2/form1099_k.rb +307 -198
  90. data/lib/avalara_sdk/models/A1099/V2/{http_validation_problem_details.rb → form1099_list_request.rb} +45 -59
  91. data/lib/avalara_sdk/models/A1099/V2/form1099_misc.rb +334 -209
  92. data/lib/avalara_sdk/models/A1099/V2/form1099_nec.rb +297 -192
  93. data/lib/avalara_sdk/models/A1099/V2/form1099_r.rb +437 -282
  94. data/lib/avalara_sdk/models/A1099/V2/get1099_form200_response.rb +9 -9
  95. data/lib/avalara_sdk/models/A1099/V2/intermediary_or_flow_through.rb +59 -1
  96. data/lib/avalara_sdk/models/A1099/V2/{intermediary_or_flow_through_request.rb → issuer_base.rb} +119 -46
  97. data/lib/avalara_sdk/models/A1099/V2/issuer_command.rb +42 -23
  98. data/lib/avalara_sdk/models/A1099/V2/{company_response_model.rb → issuer_request.rb} +113 -112
  99. data/lib/avalara_sdk/models/A1099/V2/issuer_response.rb +77 -46
  100. data/lib/avalara_sdk/models/A1099/V2/{job_result.rb → job_response.rb} +102 -42
  101. data/lib/avalara_sdk/models/A1099/V2/{offer_and_coverage_request.rb → offer_and_coverage.rb} +79 -9
  102. data/lib/avalara_sdk/models/A1099/V2/{paginated_query_result_model.rb → paginated_query_result_model_form1099_base.rb} +4 -4
  103. data/lib/avalara_sdk/models/A1099/V2/primary_withholding_agent.rb +23 -16
  104. data/lib/avalara_sdk/models/A1099/V2/state_and_local_withholding.rb +8 -0
  105. data/lib/avalara_sdk/models/A1099/V2/validation_error.rb +2 -6
  106. data/lib/avalara_sdk/models/A1099/V2/{attribute.rb → w4_form_minimal_request.rb} +142 -129
  107. data/lib/avalara_sdk/models/A1099/V2/w4_form_request.rb +62 -34
  108. data/lib/avalara_sdk/models/A1099/V2/w4_form_response.rb +191 -15
  109. data/lib/avalara_sdk/models/A1099/V2/w8_ben_e_form_minimal_request.rb +356 -0
  110. data/lib/avalara_sdk/models/A1099/V2/w8_ben_e_form_request.rb +68 -33
  111. data/lib/avalara_sdk/models/A1099/V2/w8_ben_e_form_response.rb +190 -14
  112. data/lib/avalara_sdk/models/A1099/V2/w8_ben_form_minimal_request.rb +356 -0
  113. data/lib/avalara_sdk/models/A1099/V2/w8_ben_form_request.rb +51 -28
  114. data/lib/avalara_sdk/models/A1099/V2/w8_ben_form_response.rb +191 -15
  115. data/lib/avalara_sdk/models/A1099/V2/w8_imy_form_minimal_request.rb +356 -0
  116. data/lib/avalara_sdk/models/A1099/V2/w8_imy_form_request.rb +61 -33
  117. data/lib/avalara_sdk/models/A1099/V2/w8_imy_form_response.rb +191 -15
  118. data/lib/avalara_sdk/models/A1099/V2/{problem_details.rb → w9_form_base_minimal_request.rb} +61 -35
  119. data/lib/avalara_sdk/models/A1099/V2/w9_form_base_request.rb +35 -28
  120. data/lib/avalara_sdk/models/A1099/V2/w9_form_base_response.rb +60 -31
  121. data/lib/avalara_sdk/models/A1099/V2/w9_form_minimal_request.rb +356 -0
  122. data/lib/avalara_sdk/models/A1099/V2/w9_form_request.rb +71 -30
  123. data/lib/avalara_sdk/models/A1099/V2/w9_form_response.rb +190 -14
  124. data/lib/avalara_sdk/version.rb +1 -1
  125. data/lib/avalara_sdk.rb +22 -101
  126. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/byebug-11.1.3/gem_make.out +5 -5
  127. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/date-3.4.1/gem_make.out +5 -5
  128. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debase-0.2.9/gem_make.out +5 -5
  129. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debug-1.10.0/gem_make.out +5 -5
  130. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/erb-5.0.1/gem_make.out +5 -5
  131. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/io-console-0.8.0/gem_make.out +5 -5
  132. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/json-2.12.2/gem_make.out +5 -5
  133. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/prism-1.4.0/gem_make.out +5 -5
  134. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/psych-5.2.6/gem_make.out +5 -5
  135. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/racc-1.8.1/gem_make.out +5 -5
  136. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/stringio-3.1.7/gem_make.out +5 -5
  137. metadata +45 -103
  138. data/lib/avalara_sdk/models/A1099/V2/base_form_list_request.rb +0 -210
  139. data/lib/avalara_sdk/models/A1099/V2/bulk_upsert1099_forms_request.rb +0 -108
  140. data/lib/avalara_sdk/models/A1099/V2/covered_individual_reference.rb +0 -403
  141. data/lib/avalara_sdk/models/A1099/V2/covered_individual_reference_response.rb +0 -407
  142. data/lib/avalara_sdk/models/A1099/V2/create1099_form201_response.rb +0 -108
  143. data/lib/avalara_sdk/models/A1099/V2/data.rb +0 -237
  144. data/lib/avalara_sdk/models/A1099/V2/form1042_s_list.rb +0 -238
  145. data/lib/avalara_sdk/models/A1099/V2/form1042_s_list_item.rb +0 -816
  146. data/lib/avalara_sdk/models/A1099/V2/form1042_s_list_item_response.rb +0 -980
  147. data/lib/avalara_sdk/models/A1099/V2/form1042_s_request.rb +0 -778
  148. data/lib/avalara_sdk/models/A1099/V2/form1042_s_response.rb +0 -619
  149. data/lib/avalara_sdk/models/A1099/V2/form1095_b_list.rb +0 -238
  150. data/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item.rb +0 -606
  151. data/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item_response.rb +0 -765
  152. data/lib/avalara_sdk/models/A1099/V2/form1095_b_request.rb +0 -627
  153. data/lib/avalara_sdk/models/A1099/V2/form1095_c_list.rb +0 -238
  154. data/lib/avalara_sdk/models/A1099/V2/form1095_c_list_item.rb +0 -662
  155. data/lib/avalara_sdk/models/A1099/V2/form1099_base_response.rb +0 -726
  156. data/lib/avalara_sdk/models/A1099/V2/form1099_div_list.rb +0 -238
  157. data/lib/avalara_sdk/models/A1099/V2/form1099_div_list_item.rb +0 -747
  158. data/lib/avalara_sdk/models/A1099/V2/form1099_div_list_item_response.rb +0 -931
  159. data/lib/avalara_sdk/models/A1099/V2/form1099_div_request.rb +0 -729
  160. data/lib/avalara_sdk/models/A1099/V2/form1099_div_response.rb +0 -790
  161. data/lib/avalara_sdk/models/A1099/V2/form1099_int_list.rb +0 -238
  162. data/lib/avalara_sdk/models/A1099/V2/form1099_int_list_item.rb +0 -702
  163. data/lib/avalara_sdk/models/A1099/V2/form1099_int_list_item_response.rb +0 -887
  164. data/lib/avalara_sdk/models/A1099/V2/form1099_int_request.rb +0 -684
  165. data/lib/avalara_sdk/models/A1099/V2/form1099_int_response.rb +0 -773
  166. data/lib/avalara_sdk/models/A1099/V2/form1099_k_list.rb +0 -238
  167. data/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item.rb +0 -788
  168. data/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item_response.rb +0 -995
  169. data/lib/avalara_sdk/models/A1099/V2/form1099_k_request.rb +0 -770
  170. data/lib/avalara_sdk/models/A1099/V2/form1099_k_response.rb +0 -839
  171. data/lib/avalara_sdk/models/A1099/V2/form1099_list.rb +0 -219
  172. data/lib/avalara_sdk/models/A1099/V2/form1099_list_data_inner.rb +0 -55
  173. data/lib/avalara_sdk/models/A1099/V2/form1099_list_response.rb +0 -220
  174. data/lib/avalara_sdk/models/A1099/V2/form1099_list_response_value_inner.rb +0 -108
  175. data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list.rb +0 -238
  176. data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item.rb +0 -688
  177. data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item_response.rb +0 -886
  178. data/lib/avalara_sdk/models/A1099/V2/form1099_misc_request.rb +0 -670
  179. data/lib/avalara_sdk/models/A1099/V2/form1099_misc_response.rb +0 -754
  180. data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list.rb +0 -238
  181. data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item.rb +0 -586
  182. data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item_response.rb +0 -765
  183. data/lib/avalara_sdk/models/A1099/V2/form1099_nec_request.rb +0 -567
  184. data/lib/avalara_sdk/models/A1099/V2/form1099_nec_response.rb +0 -646
  185. data/lib/avalara_sdk/models/A1099/V2/form1099_proccess_result.rb +0 -228
  186. data/lib/avalara_sdk/models/A1099/V2/form1099_proccess_result_processed_forms_inner.rb +0 -107
  187. data/lib/avalara_sdk/models/A1099/V2/form1099_r_list.rb +0 -238
  188. data/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item.rb +0 -763
  189. data/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item_response.rb +0 -942
  190. data/lib/avalara_sdk/models/A1099/V2/form1099_r_request.rb +0 -720
  191. data/lib/avalara_sdk/models/A1099/V2/form1099_r_response.rb +0 -839
  192. data/lib/avalara_sdk/models/A1099/V2/form1099_status_detail_response.rb +0 -223
  193. data/lib/avalara_sdk/models/A1099/V2/form_request_base.rb +0 -502
  194. data/lib/avalara_sdk/models/A1099/V2/form_request_csv_base.rb +0 -475
  195. data/lib/avalara_sdk/models/A1099/V2/form_request_list_item_base.rb +0 -548
  196. data/lib/avalara_sdk/models/A1099/V2/form_request_model.rb +0 -345
  197. data/lib/avalara_sdk/models/A1099/V2/form_response_base.rb +0 -612
  198. data/lib/avalara_sdk/models/A1099/V2/form_single_request_base.rb +0 -530
  199. data/lib/avalara_sdk/models/A1099/V2/included_base.rb +0 -219
  200. data/lib/avalara_sdk/models/A1099/V2/intermediary_or_flow_through_response.rb +0 -311
  201. data/lib/avalara_sdk/models/A1099/V2/link.rb +0 -210
  202. data/lib/avalara_sdk/models/A1099/V2/paginated_w9_forms_model.rb +0 -231
  203. data/lib/avalara_sdk/models/A1099/V2/primary_withholding_agent_request.rb +0 -221
  204. data/lib/avalara_sdk/models/A1099/V2/primary_withholding_agent_response.rb +0 -221
  205. data/lib/avalara_sdk/models/A1099/V2/state_and_local_withholding_request.rb +0 -278
  206. data/lib/avalara_sdk/models/A1099/V2/state_and_local_withholding_response.rb +0 -282
  207. data/lib/avalara_sdk/models/A1099/V2/state_efile_status_detail_app.rb +0 -231
  208. data/lib/avalara_sdk/models/A1099/V2/state_efile_status_detail_response.rb +0 -231
  209. data/lib/avalara_sdk/models/A1099/V2/update1099_form200_response.rb +0 -108
  210. data/lib/avalara_sdk/models/A1099/V2/validation_error_app.rb +0 -229
  211. data/lib/avalara_sdk/models/A1099/V2/validation_error_response.rb +0 -231
  212. data/lib/avalara_sdk/models/EInvoicing/V1/directory_search_response.rb +0 -233
  213. data/lib/avalara_sdk/models/EInvoicing/V1/directory_search_response_value_inner.rb +0 -274
  214. data/lib/avalara_sdk/models/EInvoicing/V1/directory_search_response_value_inner_addresses_inner.rb +0 -251
  215. data/lib/avalara_sdk/models/EInvoicing/V1/directory_search_response_value_inner_identifiers_inner.rb +0 -221
  216. data/lib/avalara_sdk/models/EInvoicing/V1/directory_search_response_value_inner_supported_document_types_inner.rb +0 -241
  217. data/lib/avalara_sdk/models/EInvoicing/V1/document_fetch_request.rb +0 -224
  218. data/lib/avalara_sdk/models/EInvoicing/V1/document_fetch_request_data_inner.rb +0 -237
  219. data/lib/avalara_sdk/models/EInvoicing/V1/document_fetch_request_metadata.rb +0 -288
  220. data/lib/avalara_sdk/models/EInvoicing/V1/submit_document_data.rb +0 -216
@@ -10,38 +10,27 @@ require 'date'
10
10
  require 'time'
11
11
 
12
12
  module AvalaraSdk::A1099::V2
13
- class Attribute
14
- attr_accessor :dry_run
13
+ class W4FormMinimalRequest
14
+ # The form type (always \"w4\" for this model).
15
+ attr_accessor :type
15
16
 
16
- attr_accessor :upsert
17
+ # The email address of the individual associated with the form.
18
+ attr_accessor :email
17
19
 
18
- attr_accessor :status
20
+ # The first name of the employee.
21
+ attr_accessor :employee_first_name
19
22
 
20
- attr_accessor :error_message
23
+ # The last name of the employee.
24
+ attr_accessor :employee_last_name
21
25
 
22
- attr_accessor :total_processed
26
+ # The office code associated with the form.
27
+ attr_accessor :office_code
23
28
 
24
- attr_accessor :total_rows
29
+ # The ID of the associated company. Required when creating a form.
30
+ attr_accessor :company_id
25
31
 
26
- attr_accessor :updated_valid
27
-
28
- attr_accessor :updated_no_email
29
-
30
- attr_accessor :updated_invalid
31
-
32
- attr_accessor :skipped_duplicate
33
-
34
- attr_accessor :skipped_invalid
35
-
36
- attr_accessor :skipped_multiple_matches
37
-
38
- attr_accessor :not_found
39
-
40
- attr_accessor :created_invalid
41
-
42
- attr_accessor :created_no_email
43
-
44
- attr_accessor :created_valid
32
+ # A reference identifier for the form.
33
+ attr_accessor :reference_id
45
34
 
46
35
  class EnumAttributeValidator
47
36
  attr_reader :datatype
@@ -68,22 +57,13 @@ module AvalaraSdk::A1099::V2
68
57
  # Attribute mapping from ruby-style variable name to JSON key.
69
58
  def self.attribute_map
70
59
  {
71
- :'dry_run' => :'dryRun',
72
- :'upsert' => :'upsert',
73
- :'status' => :'status',
74
- :'error_message' => :'errorMessage',
75
- :'total_processed' => :'totalProcessed',
76
- :'total_rows' => :'totalRows',
77
- :'updated_valid' => :'updatedValid',
78
- :'updated_no_email' => :'updatedNoEmail',
79
- :'updated_invalid' => :'updatedInvalid',
80
- :'skipped_duplicate' => :'skippedDuplicate',
81
- :'skipped_invalid' => :'skippedInvalid',
82
- :'skipped_multiple_matches' => :'skippedMultipleMatches',
83
- :'not_found' => :'notFound',
84
- :'created_invalid' => :'createdInvalid',
85
- :'created_no_email' => :'createdNoEmail',
86
- :'created_valid' => :'createdValid'
60
+ :'type' => :'type',
61
+ :'email' => :'email',
62
+ :'employee_first_name' => :'employeeFirstName',
63
+ :'employee_last_name' => :'employeeLastName',
64
+ :'office_code' => :'officeCode',
65
+ :'company_id' => :'companyId',
66
+ :'reference_id' => :'referenceId'
87
67
  }
88
68
  end
89
69
 
@@ -95,116 +75,110 @@ module AvalaraSdk::A1099::V2
95
75
  # Attribute type mapping.
96
76
  def self.openapi_types
97
77
  {
98
- :'dry_run' => :'Boolean',
99
- :'upsert' => :'Boolean',
100
- :'status' => :'String',
101
- :'error_message' => :'String',
102
- :'total_processed' => :'Integer',
103
- :'total_rows' => :'Integer',
104
- :'updated_valid' => :'Integer',
105
- :'updated_no_email' => :'Integer',
106
- :'updated_invalid' => :'Integer',
107
- :'skipped_duplicate' => :'Integer',
108
- :'skipped_invalid' => :'Integer',
109
- :'skipped_multiple_matches' => :'Integer',
110
- :'not_found' => :'Integer',
111
- :'created_invalid' => :'Integer',
112
- :'created_no_email' => :'Integer',
113
- :'created_valid' => :'Integer'
78
+ :'type' => :'String',
79
+ :'email' => :'String',
80
+ :'employee_first_name' => :'String',
81
+ :'employee_last_name' => :'String',
82
+ :'office_code' => :'String',
83
+ :'company_id' => :'String',
84
+ :'reference_id' => :'String'
114
85
  }
115
86
  end
116
87
 
117
88
  # List of attributes with nullable: true
118
89
  def self.openapi_nullable
119
90
  Set.new([
91
+ :'office_code',
92
+ :'reference_id'
120
93
  ])
121
94
  end
122
95
 
96
+ # List of class defined in allOf (OpenAPI v3)
97
+ def self.openapi_all_of
98
+ [
99
+ :'W9FormBaseMinimalRequest'
100
+ ]
101
+ end
102
+
123
103
  # Initializes the object
124
104
  # @param [Hash] attributes Model attributes in the form of hash
125
105
  def initialize(attributes = {})
126
106
  if (!attributes.is_a?(Hash))
127
- fail ArgumentError, "The input argument (attributes) must be a hash in `AvalaraSdk::A1099::V2::Attribute` initialize method"
107
+ fail ArgumentError, "The input argument (attributes) must be a hash in `AvalaraSdk::A1099::V2::W4FormMinimalRequest` initialize method"
128
108
  end
129
109
 
130
110
  # check to see if the attribute exists and convert string to symbol for hash key
131
111
  attributes = attributes.each_with_object({}) { |(k, v), h|
132
112
  if (!self.class.attribute_map.key?(k.to_sym))
133
- fail ArgumentError, "`#{k}` is not a valid attribute in `AvalaraSdk::A1099::V2::Attribute`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
113
+ fail ArgumentError, "`#{k}` is not a valid attribute in `AvalaraSdk::A1099::V2::W4FormMinimalRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
134
114
  end
135
115
  h[k.to_sym] = v
136
116
  }
137
117
 
138
- if attributes.key?(:'dry_run')
139
- self.dry_run = attributes[:'dry_run']
140
- end
141
-
142
- if attributes.key?(:'upsert')
143
- self.upsert = attributes[:'upsert']
118
+ if attributes.key?(:'type')
119
+ self.type = attributes[:'type']
144
120
  end
145
121
 
146
- if attributes.key?(:'status')
147
- self.status = attributes[:'status']
148
- end
149
-
150
- if attributes.key?(:'error_message')
151
- self.error_message = attributes[:'error_message']
152
- end
153
-
154
- if attributes.key?(:'total_processed')
155
- self.total_processed = attributes[:'total_processed']
122
+ if attributes.key?(:'email')
123
+ self.email = attributes[:'email']
124
+ else
125
+ self.email = nil
156
126
  end
157
127
 
158
- if attributes.key?(:'total_rows')
159
- self.total_rows = attributes[:'total_rows']
128
+ if attributes.key?(:'employee_first_name')
129
+ self.employee_first_name = attributes[:'employee_first_name']
130
+ else
131
+ self.employee_first_name = nil
160
132
  end
161
133
 
162
- if attributes.key?(:'updated_valid')
163
- self.updated_valid = attributes[:'updated_valid']
134
+ if attributes.key?(:'employee_last_name')
135
+ self.employee_last_name = attributes[:'employee_last_name']
136
+ else
137
+ self.employee_last_name = nil
164
138
  end
165
139
 
166
- if attributes.key?(:'updated_no_email')
167
- self.updated_no_email = attributes[:'updated_no_email']
140
+ if attributes.key?(:'office_code')
141
+ self.office_code = attributes[:'office_code']
168
142
  end
169
143
 
170
- if attributes.key?(:'updated_invalid')
171
- self.updated_invalid = attributes[:'updated_invalid']
144
+ if attributes.key?(:'company_id')
145
+ self.company_id = attributes[:'company_id']
172
146
  end
173
147
 
174
- if attributes.key?(:'skipped_duplicate')
175
- self.skipped_duplicate = attributes[:'skipped_duplicate']
148
+ if attributes.key?(:'reference_id')
149
+ self.reference_id = attributes[:'reference_id']
176
150
  end
151
+ end
177
152
 
178
- if attributes.key?(:'skipped_invalid')
179
- self.skipped_invalid = attributes[:'skipped_invalid']
153
+ # Show invalid properties with the reasons. Usually used together with valid?
154
+ # @return Array for valid properties with the reasons
155
+ def list_invalid_properties
156
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
157
+ invalid_properties = Array.new
158
+ if @email.nil?
159
+ invalid_properties.push('invalid value for "email", email cannot be nil.')
180
160
  end
181
161
 
182
- if attributes.key?(:'skipped_multiple_matches')
183
- self.skipped_multiple_matches = attributes[:'skipped_multiple_matches']
162
+ if @email.to_s.length < 1
163
+ invalid_properties.push('invalid value for "email", the character length must be great than or equal to 1.')
184
164
  end
185
165
 
186
- if attributes.key?(:'not_found')
187
- self.not_found = attributes[:'not_found']
166
+ if @employee_first_name.nil?
167
+ invalid_properties.push('invalid value for "employee_first_name", employee_first_name cannot be nil.')
188
168
  end
189
169
 
190
- if attributes.key?(:'created_invalid')
191
- self.created_invalid = attributes[:'created_invalid']
170
+ if @employee_first_name.to_s.length < 1
171
+ invalid_properties.push('invalid value for "employee_first_name", the character length must be great than or equal to 1.')
192
172
  end
193
173
 
194
- if attributes.key?(:'created_no_email')
195
- self.created_no_email = attributes[:'created_no_email']
174
+ if @employee_last_name.nil?
175
+ invalid_properties.push('invalid value for "employee_last_name", employee_last_name cannot be nil.')
196
176
  end
197
177
 
198
- if attributes.key?(:'created_valid')
199
- self.created_valid = attributes[:'created_valid']
178
+ if @employee_last_name.to_s.length < 1
179
+ invalid_properties.push('invalid value for "employee_last_name", the character length must be great than or equal to 1.')
200
180
  end
201
- end
202
181
 
203
- # Show invalid properties with the reasons. Usually used together with valid?
204
- # @return Array for valid properties with the reasons
205
- def list_invalid_properties
206
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
207
- invalid_properties = Array.new
208
182
  invalid_properties
209
183
  end
210
184
 
@@ -212,19 +186,67 @@ module AvalaraSdk::A1099::V2
212
186
  # @return true if the model is valid
213
187
  def valid?
214
188
  warn '[DEPRECATED] the `valid?` method is obsolete'
215
- status_validator = EnumAttributeValidator.new('String', ["InProgress", "Success", "Failed"])
216
- return false unless status_validator.valid?(@status)
189
+ type_validator = EnumAttributeValidator.new('String', ["W4", "W8Ben", "W8BenE", "W8Imy", "W9"])
190
+ return false unless type_validator.valid?(@type)
191
+ return false if @email.nil?
192
+ return false if @email.to_s.length < 1
193
+ return false if @employee_first_name.nil?
194
+ return false if @employee_first_name.to_s.length < 1
195
+ return false if @employee_last_name.nil?
196
+ return false if @employee_last_name.to_s.length < 1
217
197
  true
218
198
  end
219
199
 
220
200
  # Custom attribute writer method checking allowed values (enum).
221
- # @param [Object] status Object to be assigned
222
- def status=(status)
223
- validator = EnumAttributeValidator.new('String', ["InProgress", "Success", "Failed"])
224
- unless validator.valid?(status)
225
- fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
201
+ # @param [Object] type Object to be assigned
202
+ def type=(type)
203
+ validator = EnumAttributeValidator.new('String', ["W4", "W8Ben", "W8BenE", "W8Imy", "W9"])
204
+ unless validator.valid?(type)
205
+ fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
226
206
  end
227
- @status = status
207
+ @type = type
208
+ end
209
+
210
+ # Custom attribute writer method with validation
211
+ # @param [Object] email Value to be assigned
212
+ def email=(email)
213
+ if email.nil?
214
+ fail ArgumentError, 'email cannot be nil'
215
+ end
216
+
217
+ if email.to_s.length < 1
218
+ fail ArgumentError, 'invalid value for "email", the character length must be great than or equal to 1.'
219
+ end
220
+
221
+ @email = email
222
+ end
223
+
224
+ # Custom attribute writer method with validation
225
+ # @param [Object] employee_first_name Value to be assigned
226
+ def employee_first_name=(employee_first_name)
227
+ if employee_first_name.nil?
228
+ fail ArgumentError, 'employee_first_name cannot be nil'
229
+ end
230
+
231
+ if employee_first_name.to_s.length < 1
232
+ fail ArgumentError, 'invalid value for "employee_first_name", the character length must be great than or equal to 1.'
233
+ end
234
+
235
+ @employee_first_name = employee_first_name
236
+ end
237
+
238
+ # Custom attribute writer method with validation
239
+ # @param [Object] employee_last_name Value to be assigned
240
+ def employee_last_name=(employee_last_name)
241
+ if employee_last_name.nil?
242
+ fail ArgumentError, 'employee_last_name cannot be nil'
243
+ end
244
+
245
+ if employee_last_name.to_s.length < 1
246
+ fail ArgumentError, 'invalid value for "employee_last_name", the character length must be great than or equal to 1.'
247
+ end
248
+
249
+ @employee_last_name = employee_last_name
228
250
  end
229
251
 
230
252
  # Checks equality by comparing each attribute.
@@ -232,22 +254,13 @@ module AvalaraSdk::A1099::V2
232
254
  def ==(o)
233
255
  return true if self.equal?(o)
234
256
  self.class == o.class &&
235
- dry_run == o.dry_run &&
236
- upsert == o.upsert &&
237
- status == o.status &&
238
- error_message == o.error_message &&
239
- total_processed == o.total_processed &&
240
- total_rows == o.total_rows &&
241
- updated_valid == o.updated_valid &&
242
- updated_no_email == o.updated_no_email &&
243
- updated_invalid == o.updated_invalid &&
244
- skipped_duplicate == o.skipped_duplicate &&
245
- skipped_invalid == o.skipped_invalid &&
246
- skipped_multiple_matches == o.skipped_multiple_matches &&
247
- not_found == o.not_found &&
248
- created_invalid == o.created_invalid &&
249
- created_no_email == o.created_no_email &&
250
- created_valid == o.created_valid
257
+ type == o.type &&
258
+ email == o.email &&
259
+ employee_first_name == o.employee_first_name &&
260
+ employee_last_name == o.employee_last_name &&
261
+ office_code == o.office_code &&
262
+ company_id == o.company_id &&
263
+ reference_id == o.reference_id
251
264
  end
252
265
 
253
266
  # @see the `==` method
@@ -259,7 +272,7 @@ module AvalaraSdk::A1099::V2
259
272
  # Calculates hash code according to all attributes.
260
273
  # @return [Integer] Hash code
261
274
  def hash
262
- [dry_run, upsert, status, error_message, total_processed, total_rows, updated_valid, updated_no_email, updated_invalid, skipped_duplicate, skipped_invalid, skipped_multiple_matches, not_found, created_invalid, created_no_email, created_valid].hash
275
+ [type, email, employee_first_name, employee_last_name, office_code, company_id, reference_id].hash
263
276
  end
264
277
 
265
278
  # Builds the object from hash
@@ -26,25 +26,25 @@ module AvalaraSdk::A1099::V2
26
26
  # The name suffix of the employee.
27
27
  attr_accessor :employee_name_suffix
28
28
 
29
- # The type of TIN provided.
29
+ # Tax Identification Number (TIN) type.
30
30
  attr_accessor :tin_type
31
31
 
32
32
  # The taxpayer identification number (TIN).
33
33
  attr_accessor :tin
34
34
 
35
- # The address of the employee.
35
+ # The address of the employee. Required unless exempt.
36
36
  attr_accessor :address
37
37
 
38
- # The city of residence of the employee.
38
+ # The city of residence of the employee. Required unless exempt.
39
39
  attr_accessor :city
40
40
 
41
- # The state of residence of the employee.
41
+ # The state of residence of the employee. Required unless exempt.
42
42
  attr_accessor :state
43
43
 
44
- # The ZIP code of residence of the employee.
44
+ # The ZIP code of residence of the employee. Required unless exempt.
45
45
  attr_accessor :zip
46
46
 
47
- # The marital status of the employee.
47
+ # The marital status of the employee. Required unless exempt. Available values: - Single: Single or Married filing separately - Married: Married filing jointly or qualifying surviving spouse - MarriedBut: Head of household. Check only if you're unmarried and pay more than half the costs of keeping up a home for yourself and a qualifying individual.
48
48
  attr_accessor :marital_status
49
49
 
50
50
  # Indicates whether the last name differs from prior records.
@@ -71,7 +71,13 @@ module AvalaraSdk::A1099::V2
71
71
  # The office code associated with the form.
72
72
  attr_accessor :office_code
73
73
 
74
- # The ID of the associated company.
74
+ # The date when e-delivery was consented.
75
+ attr_accessor :e_delivery_consented_at
76
+
77
+ # The signature of the form.
78
+ attr_accessor :signature
79
+
80
+ # The ID of the associated company. Required when creating a form.
75
81
  attr_accessor :company_id
76
82
 
77
83
  # A reference identifier for the form.
@@ -80,12 +86,6 @@ module AvalaraSdk::A1099::V2
80
86
  # The email address of the individual associated with the form.
81
87
  attr_accessor :email
82
88
 
83
- # The date when e-delivery was consented.
84
- attr_accessor :e_delivery_consented_at
85
-
86
- # The signature of the form.
87
- attr_accessor :signature
88
-
89
89
  class EnumAttributeValidator
90
90
  attr_reader :datatype
91
91
  attr_reader :allowable_values
@@ -131,11 +131,11 @@ module AvalaraSdk::A1099::V2
131
131
  :'additional_withheld' => :'additionalWithheld',
132
132
  :'exempt_from_withholding' => :'exemptFromWithholding',
133
133
  :'office_code' => :'officeCode',
134
+ :'e_delivery_consented_at' => :'eDeliveryConsentedAt',
135
+ :'signature' => :'signature',
134
136
  :'company_id' => :'companyId',
135
137
  :'reference_id' => :'referenceId',
136
- :'email' => :'email',
137
- :'e_delivery_consented_at' => :'eDeliveryConsentedAt',
138
- :'signature' => :'signature'
138
+ :'email' => :'email'
139
139
  }
140
140
  end
141
141
 
@@ -167,11 +167,11 @@ module AvalaraSdk::A1099::V2
167
167
  :'additional_withheld' => :'Float',
168
168
  :'exempt_from_withholding' => :'Boolean',
169
169
  :'office_code' => :'String',
170
+ :'e_delivery_consented_at' => :'Time',
171
+ :'signature' => :'String',
170
172
  :'company_id' => :'String',
171
173
  :'reference_id' => :'String',
172
- :'email' => :'String',
173
- :'e_delivery_consented_at' => :'Time',
174
- :'signature' => :'String'
174
+ :'email' => :'String'
175
175
  }
176
176
  end
177
177
 
@@ -191,10 +191,10 @@ module AvalaraSdk::A1099::V2
191
191
  :'deductions',
192
192
  :'additional_withheld',
193
193
  :'office_code',
194
- :'reference_id',
195
- :'email',
196
194
  :'e_delivery_consented_at',
197
- :'signature'
195
+ :'signature',
196
+ :'reference_id',
197
+ :'email'
198
198
  ])
199
199
  end
200
200
 
@@ -226,6 +226,8 @@ module AvalaraSdk::A1099::V2
226
226
 
227
227
  if attributes.key?(:'employee_first_name')
228
228
  self.employee_first_name = attributes[:'employee_first_name']
229
+ else
230
+ self.employee_first_name = nil
229
231
  end
230
232
 
231
233
  if attributes.key?(:'employee_middle_name')
@@ -234,6 +236,8 @@ module AvalaraSdk::A1099::V2
234
236
 
235
237
  if attributes.key?(:'employee_last_name')
236
238
  self.employee_last_name = attributes[:'employee_last_name']
239
+ else
240
+ self.employee_last_name = nil
237
241
  end
238
242
 
239
243
  if attributes.key?(:'employee_name_suffix')
@@ -242,10 +246,14 @@ module AvalaraSdk::A1099::V2
242
246
 
243
247
  if attributes.key?(:'tin_type')
244
248
  self.tin_type = attributes[:'tin_type']
249
+ else
250
+ self.tin_type = nil
245
251
  end
246
252
 
247
253
  if attributes.key?(:'tin')
248
254
  self.tin = attributes[:'tin']
255
+ else
256
+ self.tin = nil
249
257
  end
250
258
 
251
259
  if attributes.key?(:'address')
@@ -300,6 +308,14 @@ module AvalaraSdk::A1099::V2
300
308
  self.office_code = attributes[:'office_code']
301
309
  end
302
310
 
311
+ if attributes.key?(:'e_delivery_consented_at')
312
+ self.e_delivery_consented_at = attributes[:'e_delivery_consented_at']
313
+ end
314
+
315
+ if attributes.key?(:'signature')
316
+ self.signature = attributes[:'signature']
317
+ end
318
+
303
319
  if attributes.key?(:'company_id')
304
320
  self.company_id = attributes[:'company_id']
305
321
  end
@@ -311,14 +327,6 @@ module AvalaraSdk::A1099::V2
311
327
  if attributes.key?(:'email')
312
328
  self.email = attributes[:'email']
313
329
  end
314
-
315
- if attributes.key?(:'e_delivery_consented_at')
316
- self.e_delivery_consented_at = attributes[:'e_delivery_consented_at']
317
- end
318
-
319
- if attributes.key?(:'signature')
320
- self.signature = attributes[:'signature']
321
- end
322
330
  end
323
331
 
324
332
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -326,6 +334,22 @@ module AvalaraSdk::A1099::V2
326
334
  def list_invalid_properties
327
335
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
328
336
  invalid_properties = Array.new
337
+ if @employee_first_name.nil?
338
+ invalid_properties.push('invalid value for "employee_first_name", employee_first_name cannot be nil.')
339
+ end
340
+
341
+ if @employee_last_name.nil?
342
+ invalid_properties.push('invalid value for "employee_last_name", employee_last_name cannot be nil.')
343
+ end
344
+
345
+ if @tin_type.nil?
346
+ invalid_properties.push('invalid value for "tin_type", tin_type cannot be nil.')
347
+ end
348
+
349
+ if @tin.nil?
350
+ invalid_properties.push('invalid value for "tin", tin cannot be nil.')
351
+ end
352
+
329
353
  invalid_properties
330
354
  end
331
355
 
@@ -335,6 +359,10 @@ module AvalaraSdk::A1099::V2
335
359
  warn '[DEPRECATED] the `valid?` method is obsolete'
336
360
  type_validator = EnumAttributeValidator.new('String', ["W4", "W8Ben", "W8BenE", "W8Imy", "W9"])
337
361
  return false unless type_validator.valid?(@type)
362
+ return false if @employee_first_name.nil?
363
+ return false if @employee_last_name.nil?
364
+ return false if @tin_type.nil?
365
+ return false if @tin.nil?
338
366
  true
339
367
  end
340
368
 
@@ -373,11 +401,11 @@ module AvalaraSdk::A1099::V2
373
401
  additional_withheld == o.additional_withheld &&
374
402
  exempt_from_withholding == o.exempt_from_withholding &&
375
403
  office_code == o.office_code &&
404
+ e_delivery_consented_at == o.e_delivery_consented_at &&
405
+ signature == o.signature &&
376
406
  company_id == o.company_id &&
377
407
  reference_id == o.reference_id &&
378
- email == o.email &&
379
- e_delivery_consented_at == o.e_delivery_consented_at &&
380
- signature == o.signature
408
+ email == o.email
381
409
  end
382
410
 
383
411
  # @see the `==` method
@@ -389,7 +417,7 @@ module AvalaraSdk::A1099::V2
389
417
  # Calculates hash code according to all attributes.
390
418
  # @return [Integer] Hash code
391
419
  def hash
392
- [type, employee_first_name, employee_middle_name, employee_last_name, employee_name_suffix, tin_type, tin, address, city, state, zip, marital_status, last_name_differs, num_allowances, other_dependents, non_job_income, deductions, additional_withheld, exempt_from_withholding, office_code, company_id, reference_id, email, e_delivery_consented_at, signature].hash
420
+ [type, employee_first_name, employee_middle_name, employee_last_name, employee_name_suffix, tin_type, tin, address, city, state, zip, marital_status, last_name_differs, num_allowances, other_dependents, non_job_income, deductions, additional_withheld, exempt_from_withholding, office_code, e_delivery_consented_at, signature, company_id, reference_id, email].hash
393
421
  end
394
422
 
395
423
  # Builds the object from hash