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
@@ -11,44 +11,62 @@ require 'time'
11
11
 
12
12
  module AvalaraSdk::A1099::V2
13
13
  class CompanyCreateUpdateRequestModel
14
+ # Legal name. Not the DBA name.
14
15
  attr_accessor :name
15
16
 
17
+ # Doing Business As (DBA) name or continuation of a long legal name.
18
+ attr_accessor :dba_name
19
+
20
+ # Contact email address. For inquiries by vendors/employees.
16
21
  attr_accessor :email
17
22
 
23
+ # Address.
18
24
  attr_accessor :address
19
25
 
26
+ # City.
20
27
  attr_accessor :city
21
28
 
29
+ # Two-letter US state or Canadian province code (required for US/CA addresses).
22
30
  attr_accessor :state
23
31
 
32
+ # ZIP/postal code.
24
33
  attr_accessor :zip
25
34
 
35
+ # Contact phone number (must contain at least 10 digits, max 15 characters).
26
36
  attr_accessor :telephone
27
37
 
38
+ # Federal Tax Identification Number (TIN). EIN/Tax ID (required for US companies).
28
39
  attr_accessor :tin
29
40
 
30
- attr_accessor :dba_name
31
-
41
+ # Internal reference ID. Never shown to any agency or recipient.
32
42
  attr_accessor :reference_id
33
43
 
44
+ # Indicates whether the company authorizes IRS TIN matching.
34
45
  attr_accessor :do_tin_match
35
46
 
47
+ # Group name for organizing companies (creates or finds group by name).
36
48
  attr_accessor :group_name
37
49
 
50
+ # Province or region for non-US/CA addresses.
38
51
  attr_accessor :foreign_province
39
52
 
53
+ # Two-letter IRS country code (e.g., 'US', 'CA'), as defined at https://www.irs.gov/e-file-providers/country-codes.
40
54
  attr_accessor :country_code
41
55
 
56
+ # Boolean to enable automatic reminder emails (default: false).
42
57
  attr_accessor :resend_requests
43
58
 
59
+ # Days between reminder emails (7-365, required if resendRequests is true).
44
60
  attr_accessor :resend_interval_days
45
61
 
62
+ # Maximum number of reminder attempts (1-52, required if resendRequests is true).
46
63
  attr_accessor :max_reminder_attempts
47
64
 
48
65
  # Attribute mapping from ruby-style variable name to JSON key.
49
66
  def self.attribute_map
50
67
  {
51
68
  :'name' => :'name',
69
+ :'dba_name' => :'dbaName',
52
70
  :'email' => :'email',
53
71
  :'address' => :'address',
54
72
  :'city' => :'city',
@@ -56,7 +74,6 @@ module AvalaraSdk::A1099::V2
56
74
  :'zip' => :'zip',
57
75
  :'telephone' => :'telephone',
58
76
  :'tin' => :'tin',
59
- :'dba_name' => :'dbaName',
60
77
  :'reference_id' => :'referenceId',
61
78
  :'do_tin_match' => :'doTinMatch',
62
79
  :'group_name' => :'groupName',
@@ -77,6 +94,7 @@ module AvalaraSdk::A1099::V2
77
94
  def self.openapi_types
78
95
  {
79
96
  :'name' => :'String',
97
+ :'dba_name' => :'String',
80
98
  :'email' => :'String',
81
99
  :'address' => :'String',
82
100
  :'city' => :'String',
@@ -84,7 +102,6 @@ module AvalaraSdk::A1099::V2
84
102
  :'zip' => :'String',
85
103
  :'telephone' => :'String',
86
104
  :'tin' => :'String',
87
- :'dba_name' => :'String',
88
105
  :'reference_id' => :'String',
89
106
  :'do_tin_match' => :'Boolean',
90
107
  :'group_name' => :'String',
@@ -99,18 +116,26 @@ module AvalaraSdk::A1099::V2
99
116
  # List of attributes with nullable: true
100
117
  def self.openapi_nullable
101
118
  Set.new([
119
+ :'name',
120
+ :'dba_name',
121
+ :'email',
122
+ :'address',
123
+ :'city',
124
+ :'state',
125
+ :'zip',
126
+ :'telephone',
127
+ :'tin',
128
+ :'reference_id',
129
+ :'do_tin_match',
130
+ :'group_name',
131
+ :'foreign_province',
132
+ :'country_code',
133
+ :'resend_requests',
102
134
  :'resend_interval_days',
103
135
  :'max_reminder_attempts'
104
136
  ])
105
137
  end
106
138
 
107
- # List of class defined in allOf (OpenAPI v3)
108
- def self.openapi_all_of
109
- [
110
- :'BaseCompanyModel'
111
- ]
112
- end
113
-
114
139
  # Initializes the object
115
140
  # @param [Hash] attributes Model attributes in the form of hash
116
141
  def initialize(attributes = {})
@@ -128,18 +153,30 @@ module AvalaraSdk::A1099::V2
128
153
 
129
154
  if attributes.key?(:'name')
130
155
  self.name = attributes[:'name']
156
+ else
157
+ self.name = nil
158
+ end
159
+
160
+ if attributes.key?(:'dba_name')
161
+ self.dba_name = attributes[:'dba_name']
131
162
  end
132
163
 
133
164
  if attributes.key?(:'email')
134
165
  self.email = attributes[:'email']
166
+ else
167
+ self.email = nil
135
168
  end
136
169
 
137
170
  if attributes.key?(:'address')
138
171
  self.address = attributes[:'address']
172
+ else
173
+ self.address = nil
139
174
  end
140
175
 
141
176
  if attributes.key?(:'city')
142
177
  self.city = attributes[:'city']
178
+ else
179
+ self.city = nil
143
180
  end
144
181
 
145
182
  if attributes.key?(:'state')
@@ -148,18 +185,20 @@ module AvalaraSdk::A1099::V2
148
185
 
149
186
  if attributes.key?(:'zip')
150
187
  self.zip = attributes[:'zip']
188
+ else
189
+ self.zip = nil
151
190
  end
152
191
 
153
192
  if attributes.key?(:'telephone')
154
193
  self.telephone = attributes[:'telephone']
194
+ else
195
+ self.telephone = nil
155
196
  end
156
197
 
157
198
  if attributes.key?(:'tin')
158
199
  self.tin = attributes[:'tin']
159
- end
160
-
161
- if attributes.key?(:'dba_name')
162
- self.dba_name = attributes[:'dba_name']
200
+ else
201
+ self.tin = nil
163
202
  end
164
203
 
165
204
  if attributes.key?(:'reference_id')
@@ -180,6 +219,8 @@ module AvalaraSdk::A1099::V2
180
219
 
181
220
  if attributes.key?(:'country_code')
182
221
  self.country_code = attributes[:'country_code']
222
+ else
223
+ self.country_code = nil
183
224
  end
184
225
 
185
226
  if attributes.key?(:'resend_requests')
@@ -216,6 +257,7 @@ module AvalaraSdk::A1099::V2
216
257
  return true if self.equal?(o)
217
258
  self.class == o.class &&
218
259
  name == o.name &&
260
+ dba_name == o.dba_name &&
219
261
  email == o.email &&
220
262
  address == o.address &&
221
263
  city == o.city &&
@@ -223,7 +265,6 @@ module AvalaraSdk::A1099::V2
223
265
  zip == o.zip &&
224
266
  telephone == o.telephone &&
225
267
  tin == o.tin &&
226
- dba_name == o.dba_name &&
227
268
  reference_id == o.reference_id &&
228
269
  do_tin_match == o.do_tin_match &&
229
270
  group_name == o.group_name &&
@@ -243,7 +284,7 @@ module AvalaraSdk::A1099::V2
243
284
  # Calculates hash code according to all attributes.
244
285
  # @return [Integer] Hash code
245
286
  def hash
246
- [name, email, address, city, state, zip, telephone, tin, dba_name, reference_id, do_tin_match, group_name, foreign_province, country_code, resend_requests, resend_interval_days, max_reminder_attempts].hash
287
+ [name, dba_name, email, address, city, state, zip, telephone, tin, reference_id, do_tin_match, group_name, foreign_province, country_code, resend_requests, resend_interval_days, max_reminder_attempts].hash
247
288
  end
248
289
 
249
290
  # Builds the object from hash
@@ -11,69 +11,89 @@ require 'time'
11
11
 
12
12
  module AvalaraSdk::A1099::V2
13
13
  class CompanyResponse
14
+ # Unique identifier set when the record is created.
14
15
  attr_accessor :id
15
16
 
16
- attr_accessor :reference_id
17
+ # Date time when the record was created.
18
+ attr_accessor :created_at
17
19
 
18
- attr_accessor :group_name
20
+ # Date time when the record was last updated.
21
+ attr_accessor :updated_at
19
22
 
23
+ # Legal name. Not the DBA name.
20
24
  attr_accessor :name
21
25
 
26
+ # Doing Business As (DBA) name or continuation of a long legal name.
22
27
  attr_accessor :dba_name
23
28
 
29
+ # Contact email address. For inquiries by vendors/employees.
30
+ attr_accessor :email
31
+
32
+ # Address.
24
33
  attr_accessor :address
25
34
 
35
+ # City.
26
36
  attr_accessor :city
27
37
 
38
+ # Two-letter US state or Canadian province code (required for US/CA addresses).
28
39
  attr_accessor :state
29
40
 
30
- attr_accessor :foreign_province
31
-
41
+ # ZIP/postal code.
32
42
  attr_accessor :zip
33
43
 
34
- attr_accessor :country_code
35
-
36
- attr_accessor :email
37
-
44
+ # Contact phone number (must contain at least 10 digits, max 15 characters).
38
45
  attr_accessor :telephone
39
46
 
47
+ # Federal Tax Identification Number (TIN). EIN/Tax ID (required for US companies).
40
48
  attr_accessor :tin
41
49
 
50
+ # Internal reference ID. Never shown to any agency or recipient.
51
+ attr_accessor :reference_id
52
+
53
+ # Indicates whether the company authorizes IRS TIN matching.
42
54
  attr_accessor :do_tin_match
43
55
 
56
+ # Group name for organizing companies (creates or finds group by name).
57
+ attr_accessor :group_name
58
+
59
+ # Province or region for non-US/CA addresses.
60
+ attr_accessor :foreign_province
61
+
62
+ # Two-letter IRS country code (e.g., 'US', 'CA'), as defined at https://www.irs.gov/e-file-providers/country-codes.
63
+ attr_accessor :country_code
64
+
65
+ # Boolean to enable automatic reminder emails (default: false).
44
66
  attr_accessor :resend_requests
45
67
 
68
+ # Days between reminder emails (7-365, required if resendRequests is true).
46
69
  attr_accessor :resend_interval_days
47
70
 
71
+ # Maximum number of reminder attempts (1-52, required if resendRequests is true).
48
72
  attr_accessor :max_reminder_attempts
49
73
 
50
- attr_accessor :created_at
51
-
52
- attr_accessor :updated_at
53
-
54
74
  # Attribute mapping from ruby-style variable name to JSON key.
55
75
  def self.attribute_map
56
76
  {
57
77
  :'id' => :'id',
58
- :'reference_id' => :'referenceId',
59
- :'group_name' => :'groupName',
78
+ :'created_at' => :'createdAt',
79
+ :'updated_at' => :'updatedAt',
60
80
  :'name' => :'name',
61
81
  :'dba_name' => :'dbaName',
82
+ :'email' => :'email',
62
83
  :'address' => :'address',
63
84
  :'city' => :'city',
64
85
  :'state' => :'state',
65
- :'foreign_province' => :'foreignProvince',
66
86
  :'zip' => :'zip',
67
- :'country_code' => :'countryCode',
68
- :'email' => :'email',
69
87
  :'telephone' => :'telephone',
70
88
  :'tin' => :'tin',
89
+ :'reference_id' => :'referenceId',
71
90
  :'do_tin_match' => :'doTinMatch',
91
+ :'group_name' => :'groupName',
92
+ :'foreign_province' => :'foreignProvince',
93
+ :'country_code' => :'countryCode',
72
94
  :'resend_requests' => :'resendRequests',
73
95
  :'resend_interval_days' => :'resendIntervalDays',
74
- :'max_reminder_attempts' => :'maxReminderAttempts',
75
- :'created_at' => :'createdAt',
76
- :'updated_at' => :'updatedAt'
96
+ :'max_reminder_attempts' => :'maxReminderAttempts'
77
97
  }
78
98
  end
79
99
 
@@ -86,53 +106,58 @@ module AvalaraSdk::A1099::V2
86
106
  def self.openapi_types
87
107
  {
88
108
  :'id' => :'String',
89
- :'reference_id' => :'String',
90
- :'group_name' => :'String',
109
+ :'created_at' => :'Time',
110
+ :'updated_at' => :'Time',
91
111
  :'name' => :'String',
92
112
  :'dba_name' => :'String',
113
+ :'email' => :'String',
93
114
  :'address' => :'String',
94
115
  :'city' => :'String',
95
116
  :'state' => :'String',
96
- :'foreign_province' => :'String',
97
117
  :'zip' => :'String',
98
- :'country_code' => :'String',
99
- :'email' => :'String',
100
118
  :'telephone' => :'String',
101
119
  :'tin' => :'String',
120
+ :'reference_id' => :'String',
102
121
  :'do_tin_match' => :'Boolean',
122
+ :'group_name' => :'String',
123
+ :'foreign_province' => :'String',
124
+ :'country_code' => :'String',
103
125
  :'resend_requests' => :'Boolean',
104
126
  :'resend_interval_days' => :'Integer',
105
- :'max_reminder_attempts' => :'Integer',
106
- :'created_at' => :'Time',
107
- :'updated_at' => :'Time'
127
+ :'max_reminder_attempts' => :'Integer'
108
128
  }
109
129
  end
110
130
 
111
131
  # List of attributes with nullable: true
112
132
  def self.openapi_nullable
113
133
  Set.new([
114
- :'reference_id',
115
- :'group_name',
116
134
  :'name',
117
135
  :'dba_name',
136
+ :'email',
118
137
  :'address',
119
138
  :'city',
120
139
  :'state',
121
- :'foreign_province',
122
140
  :'zip',
123
- :'country_code',
124
- :'email',
125
141
  :'telephone',
126
142
  :'tin',
143
+ :'reference_id',
127
144
  :'do_tin_match',
145
+ :'group_name',
146
+ :'foreign_province',
147
+ :'country_code',
128
148
  :'resend_requests',
129
149
  :'resend_interval_days',
130
- :'max_reminder_attempts',
131
- :'created_at',
132
- :'updated_at'
150
+ :'max_reminder_attempts'
133
151
  ])
134
152
  end
135
153
 
154
+ # List of class defined in allOf (OpenAPI v3)
155
+ def self.openapi_all_of
156
+ [
157
+ :'CompanyCreateUpdateRequestModel'
158
+ ]
159
+ end
160
+
136
161
  # Initializes the object
137
162
  # @param [Hash] attributes Model attributes in the form of hash
138
163
  def initialize(attributes = {})
@@ -152,62 +177,86 @@ module AvalaraSdk::A1099::V2
152
177
  self.id = attributes[:'id']
153
178
  end
154
179
 
155
- if attributes.key?(:'reference_id')
156
- self.reference_id = attributes[:'reference_id']
180
+ if attributes.key?(:'created_at')
181
+ self.created_at = attributes[:'created_at']
157
182
  end
158
183
 
159
- if attributes.key?(:'group_name')
160
- self.group_name = attributes[:'group_name']
184
+ if attributes.key?(:'updated_at')
185
+ self.updated_at = attributes[:'updated_at']
161
186
  end
162
187
 
163
188
  if attributes.key?(:'name')
164
189
  self.name = attributes[:'name']
190
+ else
191
+ self.name = nil
165
192
  end
166
193
 
167
194
  if attributes.key?(:'dba_name')
168
195
  self.dba_name = attributes[:'dba_name']
169
196
  end
170
197
 
198
+ if attributes.key?(:'email')
199
+ self.email = attributes[:'email']
200
+ else
201
+ self.email = nil
202
+ end
203
+
171
204
  if attributes.key?(:'address')
172
205
  self.address = attributes[:'address']
206
+ else
207
+ self.address = nil
173
208
  end
174
209
 
175
210
  if attributes.key?(:'city')
176
211
  self.city = attributes[:'city']
212
+ else
213
+ self.city = nil
177
214
  end
178
215
 
179
216
  if attributes.key?(:'state')
180
217
  self.state = attributes[:'state']
181
218
  end
182
219
 
183
- if attributes.key?(:'foreign_province')
184
- self.foreign_province = attributes[:'foreign_province']
185
- end
186
-
187
220
  if attributes.key?(:'zip')
188
221
  self.zip = attributes[:'zip']
189
- end
190
-
191
- if attributes.key?(:'country_code')
192
- self.country_code = attributes[:'country_code']
193
- end
194
-
195
- if attributes.key?(:'email')
196
- self.email = attributes[:'email']
222
+ else
223
+ self.zip = nil
197
224
  end
198
225
 
199
226
  if attributes.key?(:'telephone')
200
227
  self.telephone = attributes[:'telephone']
228
+ else
229
+ self.telephone = nil
201
230
  end
202
231
 
203
232
  if attributes.key?(:'tin')
204
233
  self.tin = attributes[:'tin']
234
+ else
235
+ self.tin = nil
236
+ end
237
+
238
+ if attributes.key?(:'reference_id')
239
+ self.reference_id = attributes[:'reference_id']
205
240
  end
206
241
 
207
242
  if attributes.key?(:'do_tin_match')
208
243
  self.do_tin_match = attributes[:'do_tin_match']
209
244
  end
210
245
 
246
+ if attributes.key?(:'group_name')
247
+ self.group_name = attributes[:'group_name']
248
+ end
249
+
250
+ if attributes.key?(:'foreign_province')
251
+ self.foreign_province = attributes[:'foreign_province']
252
+ end
253
+
254
+ if attributes.key?(:'country_code')
255
+ self.country_code = attributes[:'country_code']
256
+ else
257
+ self.country_code = nil
258
+ end
259
+
211
260
  if attributes.key?(:'resend_requests')
212
261
  self.resend_requests = attributes[:'resend_requests']
213
262
  end
@@ -219,14 +268,6 @@ module AvalaraSdk::A1099::V2
219
268
  if attributes.key?(:'max_reminder_attempts')
220
269
  self.max_reminder_attempts = attributes[:'max_reminder_attempts']
221
270
  end
222
-
223
- if attributes.key?(:'created_at')
224
- self.created_at = attributes[:'created_at']
225
- end
226
-
227
- if attributes.key?(:'updated_at')
228
- self.updated_at = attributes[:'updated_at']
229
- end
230
271
  end
231
272
 
232
273
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -250,25 +291,25 @@ module AvalaraSdk::A1099::V2
250
291
  return true if self.equal?(o)
251
292
  self.class == o.class &&
252
293
  id == o.id &&
253
- reference_id == o.reference_id &&
254
- group_name == o.group_name &&
294
+ created_at == o.created_at &&
295
+ updated_at == o.updated_at &&
255
296
  name == o.name &&
256
297
  dba_name == o.dba_name &&
298
+ email == o.email &&
257
299
  address == o.address &&
258
300
  city == o.city &&
259
301
  state == o.state &&
260
- foreign_province == o.foreign_province &&
261
302
  zip == o.zip &&
262
- country_code == o.country_code &&
263
- email == o.email &&
264
303
  telephone == o.telephone &&
265
304
  tin == o.tin &&
305
+ reference_id == o.reference_id &&
266
306
  do_tin_match == o.do_tin_match &&
307
+ group_name == o.group_name &&
308
+ foreign_province == o.foreign_province &&
309
+ country_code == o.country_code &&
267
310
  resend_requests == o.resend_requests &&
268
311
  resend_interval_days == o.resend_interval_days &&
269
- max_reminder_attempts == o.max_reminder_attempts &&
270
- created_at == o.created_at &&
271
- updated_at == o.updated_at
312
+ max_reminder_attempts == o.max_reminder_attempts
272
313
  end
273
314
 
274
315
  # @see the `==` method
@@ -280,7 +321,7 @@ module AvalaraSdk::A1099::V2
280
321
  # Calculates hash code according to all attributes.
281
322
  # @return [Integer] Hash code
282
323
  def hash
283
- [id, reference_id, group_name, name, dba_name, address, city, state, foreign_province, zip, country_code, email, telephone, tin, do_tin_match, resend_requests, resend_interval_days, max_reminder_attempts, created_at, updated_at].hash
324
+ [id, created_at, updated_at, name, dba_name, email, address, city, state, zip, telephone, tin, reference_id, do_tin_match, group_name, foreign_province, country_code, resend_requests, resend_interval_days, max_reminder_attempts].hash
284
325
  end
285
326
 
286
327
  # Builds the object from hash
@@ -10,7 +10,11 @@ require 'date'
10
10
  require 'time'
11
11
 
12
12
  module AvalaraSdk::A1099::V2
13
- class CoveredIndividualRequest
13
+ # Covered individual information for health coverage forms
14
+ class CoveredIndividual
15
+ # Covered individual's ID
16
+ attr_accessor :id
17
+
14
18
  # Covered individual's first name
15
19
  attr_accessor :first_name
16
20
 
@@ -23,10 +27,10 @@ module AvalaraSdk::A1099::V2
23
27
  # Covered individual's name suffix
24
28
  attr_accessor :name_suffix
25
29
 
26
- # Covered individual's TIN (SSN or ITIN)
30
+ # Covered individual's Federal Tax Identification Number (TIN).. SSN or ITIN. Required unless unavailable.
27
31
  attr_accessor :tin
28
32
 
29
- # Covered individual's date of birth
33
+ # Covered individual's date of birth - Required when SSN is missing.
30
34
  attr_accessor :birth_date
31
35
 
32
36
  # Coverage indicator for all 12 months
@@ -71,6 +75,7 @@ module AvalaraSdk::A1099::V2
71
75
  # Attribute mapping from ruby-style variable name to JSON key.
72
76
  def self.attribute_map
73
77
  {
78
+ :'id' => :'id',
74
79
  :'first_name' => :'firstName',
75
80
  :'middle_name' => :'middleName',
76
81
  :'last_name' => :'lastName',
@@ -101,12 +106,13 @@ module AvalaraSdk::A1099::V2
101
106
  # Attribute type mapping.
102
107
  def self.openapi_types
103
108
  {
109
+ :'id' => :'String',
104
110
  :'first_name' => :'String',
105
111
  :'middle_name' => :'String',
106
112
  :'last_name' => :'String',
107
113
  :'name_suffix' => :'String',
108
114
  :'tin' => :'String',
109
- :'birth_date' => :'Time',
115
+ :'birth_date' => :'Date',
110
116
  :'covered_all_months' => :'Boolean',
111
117
  :'covered_january' => :'Boolean',
112
118
  :'covered_february' => :'Boolean',
@@ -126,12 +132,26 @@ module AvalaraSdk::A1099::V2
126
132
  # List of attributes with nullable: true
127
133
  def self.openapi_nullable
128
134
  Set.new([
135
+ :'id',
129
136
  :'first_name',
130
137
  :'middle_name',
131
138
  :'last_name',
132
139
  :'name_suffix',
133
140
  :'tin',
134
141
  :'birth_date',
142
+ :'covered_all_months',
143
+ :'covered_january',
144
+ :'covered_february',
145
+ :'covered_march',
146
+ :'covered_april',
147
+ :'covered_may',
148
+ :'covered_june',
149
+ :'covered_july',
150
+ :'covered_august',
151
+ :'covered_september',
152
+ :'covered_october',
153
+ :'covered_november',
154
+ :'covered_december'
135
155
  ])
136
156
  end
137
157
 
@@ -139,19 +159,25 @@ module AvalaraSdk::A1099::V2
139
159
  # @param [Hash] attributes Model attributes in the form of hash
140
160
  def initialize(attributes = {})
141
161
  if (!attributes.is_a?(Hash))
142
- fail ArgumentError, "The input argument (attributes) must be a hash in `AvalaraSdk::A1099::V2::CoveredIndividualRequest` initialize method"
162
+ fail ArgumentError, "The input argument (attributes) must be a hash in `AvalaraSdk::A1099::V2::CoveredIndividual` initialize method"
143
163
  end
144
164
 
145
165
  # check to see if the attribute exists and convert string to symbol for hash key
146
166
  attributes = attributes.each_with_object({}) { |(k, v), h|
147
167
  if (!self.class.attribute_map.key?(k.to_sym))
148
- fail ArgumentError, "`#{k}` is not a valid attribute in `AvalaraSdk::A1099::V2::CoveredIndividualRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
168
+ fail ArgumentError, "`#{k}` is not a valid attribute in `AvalaraSdk::A1099::V2::CoveredIndividual`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
149
169
  end
150
170
  h[k.to_sym] = v
151
171
  }
152
172
 
173
+ if attributes.key?(:'id')
174
+ self.id = attributes[:'id']
175
+ end
176
+
153
177
  if attributes.key?(:'first_name')
154
178
  self.first_name = attributes[:'first_name']
179
+ else
180
+ self.first_name = nil
155
181
  end
156
182
 
157
183
  if attributes.key?(:'middle_name')
@@ -160,6 +186,8 @@ module AvalaraSdk::A1099::V2
160
186
 
161
187
  if attributes.key?(:'last_name')
162
188
  self.last_name = attributes[:'last_name']
189
+ else
190
+ self.last_name = nil
163
191
  end
164
192
 
165
193
  if attributes.key?(:'name_suffix')
@@ -247,6 +275,7 @@ module AvalaraSdk::A1099::V2
247
275
  def ==(o)
248
276
  return true if self.equal?(o)
249
277
  self.class == o.class &&
278
+ id == o.id &&
250
279
  first_name == o.first_name &&
251
280
  middle_name == o.middle_name &&
252
281
  last_name == o.last_name &&
@@ -277,7 +306,7 @@ module AvalaraSdk::A1099::V2
277
306
  # Calculates hash code according to all attributes.
278
307
  # @return [Integer] Hash code
279
308
  def hash
280
- [first_name, middle_name, last_name, name_suffix, tin, birth_date, covered_all_months, covered_january, covered_february, covered_march, covered_april, covered_may, covered_june, covered_july, covered_august, covered_september, covered_october, covered_november, covered_december].hash
309
+ [id, first_name, middle_name, last_name, name_suffix, tin, birth_date, covered_all_months, covered_january, covered_february, covered_march, covered_april, covered_may, covered_june, covered_july, covered_august, covered_september, covered_october, covered_november, covered_december].hash
281
310
  end
282
311
 
283
312
  # Builds the object from hash