avalara_sdk 25.8.0 → 25.8.2

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 (185) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +32 -6
  4. data/docs/A1099/V2/BulkUpsert1099FormsRequest.md +4 -0
  5. data/docs/A1099/V2/CompaniesW9Api.md +6 -6
  6. data/docs/A1099/V2/CoveredIndividualRequest.md +26 -26
  7. data/docs/A1099/V2/Create1099Form201Response.md +4 -0
  8. data/docs/A1099/V2/ErrorResponse.md +1 -1
  9. data/docs/A1099/V2/ErrorResponseItem.md +20 -0
  10. data/docs/A1099/V2/Form1042S.md +140 -0
  11. data/docs/A1099/V2/Form1042SListItem.md +12 -8
  12. data/docs/A1099/V2/Form1042SListItemResponse.md +19 -9
  13. data/docs/A1099/V2/Form1042SRequest.md +14 -10
  14. data/docs/A1099/V2/Form1042SResponse.md +10 -6
  15. data/docs/A1099/V2/Form1095B.md +14 -2
  16. data/docs/A1099/V2/Form1095BListItem.md +14 -8
  17. data/docs/A1099/V2/Form1095BListItemResponse.md +20 -8
  18. data/docs/A1099/V2/Form1095BRequest.md +14 -8
  19. data/docs/A1099/V2/Form1095BResponse.md +106 -0
  20. data/docs/A1099/V2/Form1095CList.md +20 -0
  21. data/docs/A1099/V2/Form1095CListItem.md +90 -0
  22. data/docs/A1099/V2/Form1099Base.md +14 -2
  23. data/docs/A1099/V2/Form1099BaseResponse.md +20 -8
  24. data/docs/A1099/V2/Form1099Div.md +130 -0
  25. data/docs/A1099/V2/Form1099DivListItem.md +32 -28
  26. data/docs/A1099/V2/Form1099DivListItemResponse.md +130 -0
  27. data/docs/A1099/V2/Form1099DivRequest.md +32 -28
  28. data/docs/A1099/V2/Form1099DivResponse.md +48 -6
  29. data/docs/A1099/V2/Form1099Int.md +122 -0
  30. data/docs/A1099/V2/Form1099IntList.md +20 -0
  31. data/docs/A1099/V2/Form1099IntListItem.md +100 -0
  32. data/docs/A1099/V2/Form1099IntListItemResponse.md +122 -0
  33. data/docs/A1099/V2/Form1099IntRequest.md +96 -0
  34. data/docs/A1099/V2/Form1099IntResponse.md +120 -0
  35. data/docs/A1099/V2/Form1099K.md +14 -2
  36. data/docs/A1099/V2/Form1099KListItem.md +14 -8
  37. data/docs/A1099/V2/Form1099KListItemResponse.md +20 -8
  38. data/docs/A1099/V2/Form1099KRequest.md +18 -12
  39. data/docs/A1099/V2/Form1099KResponse.md +132 -0
  40. data/docs/A1099/V2/Form1099ListResponseValueInner.md +4 -0
  41. data/docs/A1099/V2/Form1099Misc.md +24 -12
  42. data/docs/A1099/V2/Form1099MiscListItem.md +14 -12
  43. data/docs/A1099/V2/Form1099MiscListItemResponse.md +30 -16
  44. data/docs/A1099/V2/Form1099MiscRequest.md +14 -12
  45. data/docs/A1099/V2/Form1099MiscResponse.md +12 -10
  46. data/docs/A1099/V2/Form1099Nec.md +14 -2
  47. data/docs/A1099/V2/Form1099NecListItem.md +14 -10
  48. data/docs/A1099/V2/Form1099NecListItemResponse.md +20 -8
  49. data/docs/A1099/V2/Form1099NecRequest.md +14 -10
  50. data/docs/A1099/V2/Form1099NecResponse.md +10 -8
  51. data/docs/A1099/V2/Form1099ProccessResult.md +3 -1
  52. data/docs/A1099/V2/Form1099ProccessResultProcessedFormsInner.md +61 -0
  53. data/docs/A1099/V2/Form1099R.md +14 -4
  54. data/docs/A1099/V2/Form1099RListItem.md +12 -8
  55. data/docs/A1099/V2/Form1099RListItemResponse.md +20 -10
  56. data/docs/A1099/V2/Form1099RRequest.md +12 -8
  57. data/docs/A1099/V2/Form1099RResponse.md +132 -0
  58. data/docs/A1099/V2/FormRequestBase.md +14 -8
  59. data/docs/A1099/V2/FormRequestListItemBase.md +14 -8
  60. data/docs/A1099/V2/FormResponseBase.md +10 -6
  61. data/docs/A1099/V2/FormSingleRequestBase.md +14 -8
  62. data/docs/A1099/V2/Forms1099Api.md +11 -11
  63. data/docs/A1099/V2/FormsW9Api.md +21 -19
  64. data/docs/A1099/V2/Get1099Form200Response.md +4 -0
  65. data/docs/A1099/V2/ICreateForm1099Request.md +2 -0
  66. data/docs/A1099/V2/IUpdateForm1099Request.md +2 -0
  67. data/docs/A1099/V2/IrsResponse.md +20 -0
  68. data/docs/A1099/V2/Issuers1099Api.md +6 -6
  69. data/docs/A1099/V2/Jobs1099Api.md +1 -1
  70. data/docs/A1099/V2/OfferAndCoverageRequest.md +26 -0
  71. data/docs/A1099/V2/PaginatedQueryResultModelCompanyResponse.md +1 -1
  72. data/docs/A1099/V2/PaginatedQueryResultModelIssuerResponse.md +1 -1
  73. data/docs/A1099/V2/PaginatedQueryResultModelW9FormBaseResponse.md +22 -0
  74. data/docs/A1099/V2/TinMatchStatusResponse.md +22 -0
  75. data/docs/A1099/V2/Update1099Form200Response.md +8 -0
  76. data/docs/A1099/V2/W4FormResponse.md +1 -29
  77. data/docs/A1099/V2/W8BenEFormResponse.md +1 -29
  78. data/docs/A1099/V2/W8BenFormResponse.md +1 -29
  79. data/docs/A1099/V2/W8ImyFormResponse.md +1 -29
  80. data/docs/A1099/V2/W9FormBaseResponse.md +3 -3
  81. data/docs/A1099/V2/W9FormResponse.md +2 -28
  82. data/lib/avalara_sdk/api/A1099/V2/companies_w9_api.rb +1 -1
  83. data/lib/avalara_sdk/api/A1099/V2/forms1099_api.rb +3 -3
  84. data/lib/avalara_sdk/api/A1099/V2/forms_w9_api.rb +30 -14
  85. data/lib/avalara_sdk/api/A1099/V2/issuers1099_api.rb +1 -1
  86. data/lib/avalara_sdk/api/A1099/V2/jobs1099_api.rb +1 -1
  87. data/lib/avalara_sdk/api/EInvoicing/V1/data_input_fields_api.rb +1 -1
  88. data/lib/avalara_sdk/api/EInvoicing/V1/documents_api.rb +1 -1
  89. data/lib/avalara_sdk/api/EInvoicing/V1/interop_api.rb +1 -1
  90. data/lib/avalara_sdk/api/EInvoicing/V1/mandates_api.rb +1 -1
  91. data/lib/avalara_sdk/api/EInvoicing/V1/subscriptions_api.rb +1 -1
  92. data/lib/avalara_sdk/api/EInvoicing/V1/tax_identifiers_api.rb +1 -1
  93. data/lib/avalara_sdk/api/EInvoicing/V1/trading_partners_api.rb +1 -1
  94. data/lib/avalara_sdk/models/A1099/V2/bulk_upsert1099_forms_request.rb +2 -0
  95. data/lib/avalara_sdk/models/A1099/V2/covered_individual_reference.rb +1 -1
  96. data/lib/avalara_sdk/models/A1099/V2/covered_individual_request.rb +79 -79
  97. data/lib/avalara_sdk/models/A1099/V2/create1099_form201_response.rb +2 -0
  98. data/lib/avalara_sdk/models/A1099/V2/error_response.rb +1 -1
  99. data/lib/avalara_sdk/models/A1099/V2/error_response_item.rb +221 -0
  100. data/lib/avalara_sdk/models/A1099/V2/form1042_s.rb +824 -0
  101. data/lib/avalara_sdk/models/A1099/V2/form1042_s_list_item.rb +44 -119
  102. data/lib/avalara_sdk/models/A1099/V2/form1042_s_list_item_response.rb +67 -12
  103. data/lib/avalara_sdk/models/A1099/V2/form1042_s_request.rb +55 -132
  104. data/lib/avalara_sdk/models/A1099/V2/form1042_s_response.rb +43 -24
  105. data/lib/avalara_sdk/models/A1099/V2/form1095_b.rb +68 -9
  106. data/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item.rb +54 -119
  107. data/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item_response.rb +77 -12
  108. data/lib/avalara_sdk/models/A1099/V2/form1095_b_request.rb +56 -121
  109. data/lib/avalara_sdk/models/A1099/V2/form1095_b_response.rb +709 -0
  110. data/lib/avalara_sdk/models/A1099/V2/form1095_c_list.rb +238 -0
  111. data/lib/avalara_sdk/models/A1099/V2/form1095_c_list_item.rb +662 -0
  112. data/lib/avalara_sdk/models/A1099/V2/form1099_base.rb +68 -9
  113. data/lib/avalara_sdk/models/A1099/V2/form1099_base_response.rb +77 -12
  114. data/lib/avalara_sdk/models/A1099/V2/form1099_div.rb +781 -0
  115. data/lib/avalara_sdk/models/A1099/V2/form1099_div_list_item.rb +93 -147
  116. data/lib/avalara_sdk/models/A1099/V2/form1099_div_list_item_response.rb +931 -0
  117. data/lib/avalara_sdk/models/A1099/V2/form1099_div_request.rb +93 -149
  118. data/lib/avalara_sdk/models/A1099/V2/form1099_div_response.rb +214 -24
  119. data/lib/avalara_sdk/models/A1099/V2/form1099_int.rb +741 -0
  120. data/lib/avalara_sdk/models/A1099/V2/form1099_int_list.rb +238 -0
  121. data/lib/avalara_sdk/models/A1099/V2/form1099_int_list_item.rb +702 -0
  122. data/lib/avalara_sdk/models/A1099/V2/form1099_int_list_item_response.rb +887 -0
  123. data/lib/avalara_sdk/models/A1099/V2/form1099_int_request.rb +684 -0
  124. data/lib/avalara_sdk/models/A1099/V2/form1099_int_response.rb +773 -0
  125. data/lib/avalara_sdk/models/A1099/V2/form1099_k.rb +68 -9
  126. data/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item.rb +56 -119
  127. data/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item_response.rb +77 -12
  128. data/lib/avalara_sdk/models/A1099/V2/form1099_k_request.rb +82 -123
  129. data/lib/avalara_sdk/models/A1099/V2/form1099_k_response.rb +839 -0
  130. data/lib/avalara_sdk/models/A1099/V2/form1099_list_response_value_inner.rb +2 -0
  131. data/lib/avalara_sdk/models/A1099/V2/form1099_misc.rb +106 -47
  132. data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item.rb +52 -135
  133. data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item_response.rb +116 -40
  134. data/lib/avalara_sdk/models/A1099/V2/form1099_misc_request.rb +52 -137
  135. data/lib/avalara_sdk/models/A1099/V2/form1099_misc_response.rb +49 -39
  136. data/lib/avalara_sdk/models/A1099/V2/form1099_nec.rb +68 -9
  137. data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item.rb +56 -129
  138. data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item_response.rb +77 -12
  139. data/lib/avalara_sdk/models/A1099/V2/form1099_nec_request.rb +56 -131
  140. data/lib/avalara_sdk/models/A1099/V2/form1099_nec_response.rb +43 -33
  141. data/lib/avalara_sdk/models/A1099/V2/form1099_proccess_result.rb +22 -4
  142. data/lib/avalara_sdk/models/A1099/V2/form1099_proccess_result_processed_forms_inner.rb +107 -0
  143. data/lib/avalara_sdk/models/A1099/V2/form1099_r.rb +68 -19
  144. data/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item.rb +46 -119
  145. data/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item_response.rb +77 -23
  146. data/lib/avalara_sdk/models/A1099/V2/form1099_r_request.rb +46 -121
  147. data/lib/avalara_sdk/models/A1099/V2/form1099_r_response.rb +839 -0
  148. data/lib/avalara_sdk/models/A1099/V2/form1099_status_detail.rb +1 -1
  149. data/lib/avalara_sdk/models/A1099/V2/form_request_base.rb +54 -119
  150. data/lib/avalara_sdk/models/A1099/V2/form_request_list_item_base.rb +56 -119
  151. data/lib/avalara_sdk/models/A1099/V2/form_response_base.rb +43 -24
  152. data/lib/avalara_sdk/models/A1099/V2/form_single_request_base.rb +56 -121
  153. data/lib/avalara_sdk/models/A1099/V2/get1099_form200_response.rb +2 -0
  154. data/lib/avalara_sdk/models/A1099/V2/i_create_form1099_request.rb +1 -0
  155. data/lib/avalara_sdk/models/A1099/V2/i_update_form1099_request.rb +1 -0
  156. data/lib/avalara_sdk/models/A1099/V2/included_base.rb +1 -1
  157. data/lib/avalara_sdk/models/A1099/V2/irs_response.rb +221 -0
  158. data/lib/avalara_sdk/models/A1099/V2/issuer_command.rb +1 -0
  159. data/lib/avalara_sdk/models/A1099/V2/offer_and_coverage_request.rb +256 -0
  160. data/lib/avalara_sdk/models/A1099/V2/paginated_query_result_model_w9_form_base_response.rb +234 -0
  161. data/lib/avalara_sdk/models/A1099/V2/state_and_local_withholding.rb +1 -1
  162. data/lib/avalara_sdk/models/A1099/V2/state_efile_status_detail.rb +1 -1
  163. data/lib/avalara_sdk/models/A1099/V2/tin_match_status_response.rb +267 -0
  164. data/lib/avalara_sdk/models/A1099/V2/update1099_form200_response.rb +4 -0
  165. data/lib/avalara_sdk/models/A1099/V2/validation_error.rb +1 -1
  166. data/lib/avalara_sdk/models/A1099/V2/w4_form_response.rb +15 -157
  167. data/lib/avalara_sdk/models/A1099/V2/w8_ben_e_form_response.rb +14 -156
  168. data/lib/avalara_sdk/models/A1099/V2/w8_ben_form_response.rb +15 -157
  169. data/lib/avalara_sdk/models/A1099/V2/w8_imy_form_response.rb +15 -157
  170. data/lib/avalara_sdk/models/A1099/V2/w9_form_base_response.rb +19 -14
  171. data/lib/avalara_sdk/models/A1099/V2/w9_form_response.rb +18 -150
  172. data/lib/avalara_sdk/version.rb +1 -1
  173. data/lib/avalara_sdk.rb +21 -1
  174. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/byebug-11.1.3/gem_make.out +5 -5
  175. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/date-3.4.1/gem_make.out +5 -5
  176. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debase-0.2.9/gem_make.out +5 -5
  177. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debug-1.10.0/gem_make.out +5 -5
  178. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/erb-5.0.1/gem_make.out +5 -5
  179. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/io-console-0.8.0/gem_make.out +5 -5
  180. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/json-2.12.2/gem_make.out +5 -5
  181. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/prism-1.4.0/gem_make.out +5 -5
  182. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/psych-5.2.6/gem_make.out +5 -5
  183. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/racc-1.8.1/gem_make.out +5 -5
  184. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/stringio-3.1.7/gem_make.out +5 -5
  185. metadata +42 -2
@@ -18,10 +18,10 @@ module AvalaraSdk::A1099::V2
18
18
  attr_accessor :qualified_dividends
19
19
 
20
20
  # Total capital gain distributions
21
- attr_accessor :total_capital_gain_distr
21
+ attr_accessor :total_capital_gain_distributions
22
22
 
23
23
  # Unrecaptured Section 1250 gain
24
- attr_accessor :unrecap_sec1250_gain
24
+ attr_accessor :unrecaptured_section1250_gain
25
25
 
26
26
  # Section 1202 gain
27
27
  attr_accessor :section1202_gain
@@ -111,7 +111,7 @@ module AvalaraSdk::A1099::V2
111
111
  attr_accessor :zip
112
112
 
113
113
  # Recipient email address
114
- attr_accessor :recipient_email
114
+ attr_accessor :email
115
115
 
116
116
  # Account number
117
117
  attr_accessor :account_number
@@ -120,7 +120,7 @@ module AvalaraSdk::A1099::V2
120
120
  attr_accessor :office_code
121
121
 
122
122
  # Foreign province
123
- attr_accessor :recipient_non_us_province
123
+ attr_accessor :non_us_province
124
124
 
125
125
  # Country code, as defined at https://www.irs.gov/e-file-providers/country-codes
126
126
  attr_accessor :country_code
@@ -137,6 +137,12 @@ module AvalaraSdk::A1099::V2
137
137
  # Boolean indicating that TIN Matching should be scheduled for this form
138
138
  attr_accessor :tin_match
139
139
 
140
+ # Indicates whether the recipient has no TIN
141
+ attr_accessor :no_tin
142
+
143
+ # Second TIN notice in three years
144
+ attr_accessor :second_tin_notice
145
+
140
146
  # Boolean indicating that address verification should be scheduled for this form
141
147
  attr_accessor :address_verification
142
148
 
@@ -170,8 +176,8 @@ module AvalaraSdk::A1099::V2
170
176
  {
171
177
  :'total_ordinary_dividends' => :'totalOrdinaryDividends',
172
178
  :'qualified_dividends' => :'qualifiedDividends',
173
- :'total_capital_gain_distr' => :'totalCapitalGainDistr',
174
- :'unrecap_sec1250_gain' => :'unrecapSec1250Gain',
179
+ :'total_capital_gain_distributions' => :'totalCapitalGainDistributions',
180
+ :'unrecaptured_section1250_gain' => :'unrecapturedSection1250Gain',
175
181
  :'section1202_gain' => :'section1202Gain',
176
182
  :'collectibles_gain' => :'collectiblesGain',
177
183
  :'section897_ordinary_dividends' => :'section897OrdinaryDividends',
@@ -201,15 +207,17 @@ module AvalaraSdk::A1099::V2
201
207
  :'city' => :'city',
202
208
  :'state' => :'state',
203
209
  :'zip' => :'zip',
204
- :'recipient_email' => :'recipientEmail',
210
+ :'email' => :'email',
205
211
  :'account_number' => :'accountNumber',
206
212
  :'office_code' => :'officeCode',
207
- :'recipient_non_us_province' => :'recipientNonUsProvince',
213
+ :'non_us_province' => :'nonUsProvince',
208
214
  :'country_code' => :'countryCode',
209
215
  :'federal_e_file' => :'federalEFile',
210
216
  :'postal_mail' => :'postalMail',
211
217
  :'state_e_file' => :'stateEFile',
212
218
  :'tin_match' => :'tinMatch',
219
+ :'no_tin' => :'noTin',
220
+ :'second_tin_notice' => :'secondTinNotice',
213
221
  :'address_verification' => :'addressVerification',
214
222
  :'state_and_local_withholding' => :'stateAndLocalWithholding'
215
223
  }
@@ -223,25 +231,25 @@ module AvalaraSdk::A1099::V2
223
231
  # Attribute type mapping.
224
232
  def self.openapi_types
225
233
  {
226
- :'total_ordinary_dividends' => :'String',
227
- :'qualified_dividends' => :'String',
228
- :'total_capital_gain_distr' => :'String',
229
- :'unrecap_sec1250_gain' => :'String',
230
- :'section1202_gain' => :'String',
231
- :'collectibles_gain' => :'String',
232
- :'section897_ordinary_dividends' => :'String',
233
- :'section897_capital_gain' => :'String',
234
- :'nondividend_distributions' => :'String',
235
- :'federal_income_tax_withheld' => :'String',
236
- :'section199_a_dividends' => :'String',
237
- :'investment_expenses' => :'String',
238
- :'foreign_tax_paid' => :'String',
234
+ :'total_ordinary_dividends' => :'Float',
235
+ :'qualified_dividends' => :'Float',
236
+ :'total_capital_gain_distributions' => :'Float',
237
+ :'unrecaptured_section1250_gain' => :'Float',
238
+ :'section1202_gain' => :'Float',
239
+ :'collectibles_gain' => :'Float',
240
+ :'section897_ordinary_dividends' => :'Float',
241
+ :'section897_capital_gain' => :'Float',
242
+ :'nondividend_distributions' => :'Float',
243
+ :'federal_income_tax_withheld' => :'Float',
244
+ :'section199_a_dividends' => :'Float',
245
+ :'investment_expenses' => :'Float',
246
+ :'foreign_tax_paid' => :'Float',
239
247
  :'foreign_country_or_us_possession' => :'String',
240
- :'cash_liquidation_distributions' => :'String',
241
- :'noncash_liquidation_distributions' => :'String',
242
- :'exempt_interest_dividends' => :'String',
243
- :'specified_private_activity_bond_interest_dividends' => :'String',
244
- :'fatca_filing_requirement' => :'String',
248
+ :'cash_liquidation_distributions' => :'Float',
249
+ :'noncash_liquidation_distributions' => :'Float',
250
+ :'exempt_interest_dividends' => :'Float',
251
+ :'specified_private_activity_bond_interest_dividends' => :'Float',
252
+ :'fatca_filing_requirement' => :'Boolean',
245
253
  :'issuer_reference_id' => :'String',
246
254
  :'issuer_tin' => :'String',
247
255
  :'tax_year' => :'Integer',
@@ -256,15 +264,17 @@ module AvalaraSdk::A1099::V2
256
264
  :'city' => :'String',
257
265
  :'state' => :'String',
258
266
  :'zip' => :'String',
259
- :'recipient_email' => :'String',
267
+ :'email' => :'String',
260
268
  :'account_number' => :'String',
261
269
  :'office_code' => :'String',
262
- :'recipient_non_us_province' => :'String',
270
+ :'non_us_province' => :'String',
263
271
  :'country_code' => :'String',
264
272
  :'federal_e_file' => :'Boolean',
265
273
  :'postal_mail' => :'Boolean',
266
274
  :'state_e_file' => :'Boolean',
267
275
  :'tin_match' => :'Boolean',
276
+ :'no_tin' => :'Boolean',
277
+ :'second_tin_notice' => :'Boolean',
268
278
  :'address_verification' => :'Boolean',
269
279
  :'state_and_local_withholding' => :'StateAndLocalWithholdingRequest'
270
280
  }
@@ -273,14 +283,44 @@ module AvalaraSdk::A1099::V2
273
283
  # List of attributes with nullable: true
274
284
  def self.openapi_nullable
275
285
  Set.new([
286
+ :'total_ordinary_dividends',
287
+ :'qualified_dividends',
288
+ :'total_capital_gain_distributions',
289
+ :'unrecaptured_section1250_gain',
290
+ :'section1202_gain',
291
+ :'collectibles_gain',
292
+ :'section897_ordinary_dividends',
293
+ :'section897_capital_gain',
294
+ :'nondividend_distributions',
295
+ :'federal_income_tax_withheld',
296
+ :'section199_a_dividends',
297
+ :'investment_expenses',
298
+ :'foreign_tax_paid',
299
+ :'foreign_country_or_us_possession',
300
+ :'cash_liquidation_distributions',
301
+ :'noncash_liquidation_distributions',
302
+ :'exempt_interest_dividends',
303
+ :'specified_private_activity_bond_interest_dividends',
304
+ :'fatca_filing_requirement',
305
+ :'issuer_reference_id',
306
+ :'issuer_tin',
276
307
  :'issuer_id',
277
308
  :'reference_id',
309
+ :'recipient_tin',
310
+ :'recipient_name',
278
311
  :'recipient_second_name',
312
+ :'address',
279
313
  :'address2',
280
- :'recipient_email',
314
+ :'city',
315
+ :'state',
316
+ :'zip',
317
+ :'email',
281
318
  :'account_number',
282
319
  :'office_code',
283
- :'recipient_non_us_province',
320
+ :'non_us_province',
321
+ :'country_code',
322
+ :'second_tin_notice',
323
+ :'state_and_local_withholding'
284
324
  ])
285
325
  end
286
326
 
@@ -314,12 +354,12 @@ module AvalaraSdk::A1099::V2
314
354
  self.qualified_dividends = attributes[:'qualified_dividends']
315
355
  end
316
356
 
317
- if attributes.key?(:'total_capital_gain_distr')
318
- self.total_capital_gain_distr = attributes[:'total_capital_gain_distr']
357
+ if attributes.key?(:'total_capital_gain_distributions')
358
+ self.total_capital_gain_distributions = attributes[:'total_capital_gain_distributions']
319
359
  end
320
360
 
321
- if attributes.key?(:'unrecap_sec1250_gain')
322
- self.unrecap_sec1250_gain = attributes[:'unrecap_sec1250_gain']
361
+ if attributes.key?(:'unrecaptured_section1250_gain')
362
+ self.unrecaptured_section1250_gain = attributes[:'unrecaptured_section1250_gain']
323
363
  end
324
364
 
325
365
  if attributes.key?(:'section1202_gain')
@@ -410,8 +450,6 @@ module AvalaraSdk::A1099::V2
410
450
 
411
451
  if attributes.key?(:'recipient_name')
412
452
  self.recipient_name = attributes[:'recipient_name']
413
- else
414
- self.recipient_name = nil
415
453
  end
416
454
 
417
455
  if attributes.key?(:'tin_type')
@@ -424,8 +462,6 @@ module AvalaraSdk::A1099::V2
424
462
 
425
463
  if attributes.key?(:'address')
426
464
  self.address = attributes[:'address']
427
- else
428
- self.address = nil
429
465
  end
430
466
 
431
467
  if attributes.key?(:'address2')
@@ -434,8 +470,6 @@ module AvalaraSdk::A1099::V2
434
470
 
435
471
  if attributes.key?(:'city')
436
472
  self.city = attributes[:'city']
437
- else
438
- self.city = nil
439
473
  end
440
474
 
441
475
  if attributes.key?(:'state')
@@ -446,8 +480,8 @@ module AvalaraSdk::A1099::V2
446
480
  self.zip = attributes[:'zip']
447
481
  end
448
482
 
449
- if attributes.key?(:'recipient_email')
450
- self.recipient_email = attributes[:'recipient_email']
483
+ if attributes.key?(:'email')
484
+ self.email = attributes[:'email']
451
485
  end
452
486
 
453
487
  if attributes.key?(:'account_number')
@@ -458,14 +492,12 @@ module AvalaraSdk::A1099::V2
458
492
  self.office_code = attributes[:'office_code']
459
493
  end
460
494
 
461
- if attributes.key?(:'recipient_non_us_province')
462
- self.recipient_non_us_province = attributes[:'recipient_non_us_province']
495
+ if attributes.key?(:'non_us_province')
496
+ self.non_us_province = attributes[:'non_us_province']
463
497
  end
464
498
 
465
499
  if attributes.key?(:'country_code')
466
500
  self.country_code = attributes[:'country_code']
467
- else
468
- self.country_code = nil
469
501
  end
470
502
 
471
503
  if attributes.key?(:'federal_e_file')
@@ -484,6 +516,14 @@ module AvalaraSdk::A1099::V2
484
516
  self.tin_match = attributes[:'tin_match']
485
517
  end
486
518
 
519
+ if attributes.key?(:'no_tin')
520
+ self.no_tin = attributes[:'no_tin']
521
+ end
522
+
523
+ if attributes.key?(:'second_tin_notice')
524
+ self.second_tin_notice = attributes[:'second_tin_notice']
525
+ end
526
+
487
527
  if attributes.key?(:'address_verification')
488
528
  self.address_verification = attributes[:'address_verification']
489
529
  end
@@ -502,38 +542,6 @@ module AvalaraSdk::A1099::V2
502
542
  invalid_properties.push('invalid value for "tax_year", tax_year cannot be nil.')
503
543
  end
504
544
 
505
- if @recipient_name.nil?
506
- invalid_properties.push('invalid value for "recipient_name", recipient_name cannot be nil.')
507
- end
508
-
509
- if @recipient_name.to_s.length < 1
510
- invalid_properties.push('invalid value for "recipient_name", the character length must be great than or equal to 1.')
511
- end
512
-
513
- if @address.nil?
514
- invalid_properties.push('invalid value for "address", address cannot be nil.')
515
- end
516
-
517
- if @address.to_s.length < 1
518
- invalid_properties.push('invalid value for "address", the character length must be great than or equal to 1.')
519
- end
520
-
521
- if @city.nil?
522
- invalid_properties.push('invalid value for "city", city cannot be nil.')
523
- end
524
-
525
- if @city.to_s.length < 1
526
- invalid_properties.push('invalid value for "city", the character length must be great than or equal to 1.')
527
- end
528
-
529
- if @country_code.nil?
530
- invalid_properties.push('invalid value for "country_code", country_code cannot be nil.')
531
- end
532
-
533
- if @country_code.to_s.length < 1
534
- invalid_properties.push('invalid value for "country_code", the character length must be great than or equal to 1.')
535
- end
536
-
537
545
  invalid_properties
538
546
  end
539
547
 
@@ -542,33 +550,11 @@ module AvalaraSdk::A1099::V2
542
550
  def valid?
543
551
  warn '[DEPRECATED] the `valid?` method is obsolete'
544
552
  return false if @tax_year.nil?
545
- return false if @recipient_name.nil?
546
- return false if @recipient_name.to_s.length < 1
547
553
  tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
548
554
  return false unless tin_type_validator.valid?(@tin_type)
549
- return false if @address.nil?
550
- return false if @address.to_s.length < 1
551
- return false if @city.nil?
552
- return false if @city.to_s.length < 1
553
- return false if @country_code.nil?
554
- return false if @country_code.to_s.length < 1
555
555
  true
556
556
  end
557
557
 
558
- # Custom attribute writer method with validation
559
- # @param [Object] recipient_name Value to be assigned
560
- def recipient_name=(recipient_name)
561
- if recipient_name.nil?
562
- fail ArgumentError, 'recipient_name cannot be nil'
563
- end
564
-
565
- if recipient_name.to_s.length < 1
566
- fail ArgumentError, 'invalid value for "recipient_name", the character length must be great than or equal to 1.'
567
- end
568
-
569
- @recipient_name = recipient_name
570
- end
571
-
572
558
  # Custom attribute writer method checking allowed values (enum).
573
559
  # @param [Object] tin_type Object to be assigned
574
560
  def tin_type=(tin_type)
@@ -579,48 +565,6 @@ module AvalaraSdk::A1099::V2
579
565
  @tin_type = tin_type
580
566
  end
581
567
 
582
- # Custom attribute writer method with validation
583
- # @param [Object] address Value to be assigned
584
- def address=(address)
585
- if address.nil?
586
- fail ArgumentError, 'address cannot be nil'
587
- end
588
-
589
- if address.to_s.length < 1
590
- fail ArgumentError, 'invalid value for "address", the character length must be great than or equal to 1.'
591
- end
592
-
593
- @address = address
594
- end
595
-
596
- # Custom attribute writer method with validation
597
- # @param [Object] city Value to be assigned
598
- def city=(city)
599
- if city.nil?
600
- fail ArgumentError, 'city cannot be nil'
601
- end
602
-
603
- if city.to_s.length < 1
604
- fail ArgumentError, 'invalid value for "city", the character length must be great than or equal to 1.'
605
- end
606
-
607
- @city = city
608
- end
609
-
610
- # Custom attribute writer method with validation
611
- # @param [Object] country_code Value to be assigned
612
- def country_code=(country_code)
613
- if country_code.nil?
614
- fail ArgumentError, 'country_code cannot be nil'
615
- end
616
-
617
- if country_code.to_s.length < 1
618
- fail ArgumentError, 'invalid value for "country_code", the character length must be great than or equal to 1.'
619
- end
620
-
621
- @country_code = country_code
622
- end
623
-
624
568
  # Checks equality by comparing each attribute.
625
569
  # @param [Object] Object to be compared
626
570
  def ==(o)
@@ -628,8 +572,8 @@ module AvalaraSdk::A1099::V2
628
572
  self.class == o.class &&
629
573
  total_ordinary_dividends == o.total_ordinary_dividends &&
630
574
  qualified_dividends == o.qualified_dividends &&
631
- total_capital_gain_distr == o.total_capital_gain_distr &&
632
- unrecap_sec1250_gain == o.unrecap_sec1250_gain &&
575
+ total_capital_gain_distributions == o.total_capital_gain_distributions &&
576
+ unrecaptured_section1250_gain == o.unrecaptured_section1250_gain &&
633
577
  section1202_gain == o.section1202_gain &&
634
578
  collectibles_gain == o.collectibles_gain &&
635
579
  section897_ordinary_dividends == o.section897_ordinary_dividends &&
@@ -659,15 +603,17 @@ module AvalaraSdk::A1099::V2
659
603
  city == o.city &&
660
604
  state == o.state &&
661
605
  zip == o.zip &&
662
- recipient_email == o.recipient_email &&
606
+ email == o.email &&
663
607
  account_number == o.account_number &&
664
608
  office_code == o.office_code &&
665
- recipient_non_us_province == o.recipient_non_us_province &&
609
+ non_us_province == o.non_us_province &&
666
610
  country_code == o.country_code &&
667
611
  federal_e_file == o.federal_e_file &&
668
612
  postal_mail == o.postal_mail &&
669
613
  state_e_file == o.state_e_file &&
670
614
  tin_match == o.tin_match &&
615
+ no_tin == o.no_tin &&
616
+ second_tin_notice == o.second_tin_notice &&
671
617
  address_verification == o.address_verification &&
672
618
  state_and_local_withholding == o.state_and_local_withholding
673
619
  end
@@ -681,7 +627,7 @@ module AvalaraSdk::A1099::V2
681
627
  # Calculates hash code according to all attributes.
682
628
  # @return [Integer] Hash code
683
629
  def hash
684
- [total_ordinary_dividends, qualified_dividends, total_capital_gain_distr, unrecap_sec1250_gain, section1202_gain, collectibles_gain, section897_ordinary_dividends, section897_capital_gain, nondividend_distributions, federal_income_tax_withheld, section199_a_dividends, investment_expenses, foreign_tax_paid, foreign_country_or_us_possession, cash_liquidation_distributions, noncash_liquidation_distributions, exempt_interest_dividends, specified_private_activity_bond_interest_dividends, fatca_filing_requirement, issuer_reference_id, issuer_tin, tax_year, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, recipient_email, account_number, office_code, recipient_non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, address_verification, state_and_local_withholding].hash
630
+ [total_ordinary_dividends, qualified_dividends, total_capital_gain_distributions, unrecaptured_section1250_gain, section1202_gain, collectibles_gain, section897_ordinary_dividends, section897_capital_gain, nondividend_distributions, federal_income_tax_withheld, section199_a_dividends, investment_expenses, foreign_tax_paid, foreign_country_or_us_possession, cash_liquidation_distributions, noncash_liquidation_distributions, exempt_interest_dividends, specified_private_activity_bond_interest_dividends, fatca_filing_requirement, issuer_reference_id, issuer_tin, tax_year, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, email, account_number, office_code, non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, no_tin, second_tin_notice, address_verification, state_and_local_withholding].hash
685
631
  end
686
632
 
687
633
  # Builds the object from hash