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
@@ -104,7 +104,7 @@ module AvalaraSdk::A1099::V2
104
104
  attr_accessor :zip
105
105
 
106
106
  # Recipient email address
107
- attr_accessor :recipient_email
107
+ attr_accessor :email
108
108
 
109
109
  # Account number
110
110
  attr_accessor :account_number
@@ -113,7 +113,7 @@ module AvalaraSdk::A1099::V2
113
113
  attr_accessor :office_code
114
114
 
115
115
  # Foreign province
116
- attr_accessor :recipient_non_us_province
116
+ attr_accessor :non_us_province
117
117
 
118
118
  # Country code, as defined at https://www.irs.gov/e-file-providers/country-codes
119
119
  attr_accessor :country_code
@@ -130,6 +130,12 @@ module AvalaraSdk::A1099::V2
130
130
  # Boolean indicating that TIN Matching should be scheduled for this form
131
131
  attr_accessor :tin_match
132
132
 
133
+ # Indicates whether the recipient has no TIN
134
+ attr_accessor :no_tin
135
+
136
+ # Second TIN notice in three years
137
+ attr_accessor :second_tin_notice
138
+
133
139
  # Boolean indicating that address verification should be scheduled for this form
134
140
  attr_accessor :address_verification
135
141
 
@@ -163,8 +169,8 @@ module AvalaraSdk::A1099::V2
163
169
  {
164
170
  :'total_ordinary_dividends' => :'totalOrdinaryDividends',
165
171
  :'qualified_dividends' => :'qualifiedDividends',
166
- :'total_capital_gain_distr' => :'totalCapitalGainDistr',
167
- :'unrecap_sec1250_gain' => :'unrecapSec1250Gain',
172
+ :'total_capital_gain_distributions' => :'totalCapitalGainDistributions',
173
+ :'unrecaptured_section1250_gain' => :'unrecapturedSection1250Gain',
168
174
  :'section1202_gain' => :'section1202Gain',
169
175
  :'collectibles_gain' => :'collectiblesGain',
170
176
  :'section897_ordinary_dividends' => :'section897OrdinaryDividends',
@@ -192,15 +198,17 @@ module AvalaraSdk::A1099::V2
192
198
  :'city' => :'city',
193
199
  :'state' => :'state',
194
200
  :'zip' => :'zip',
195
- :'recipient_email' => :'recipientEmail',
201
+ :'email' => :'email',
196
202
  :'account_number' => :'accountNumber',
197
203
  :'office_code' => :'officeCode',
198
- :'recipient_non_us_province' => :'recipientNonUsProvince',
204
+ :'non_us_province' => :'nonUsProvince',
199
205
  :'country_code' => :'countryCode',
200
206
  :'federal_e_file' => :'federalEFile',
201
207
  :'postal_mail' => :'postalMail',
202
208
  :'state_e_file' => :'stateEFile',
203
209
  :'tin_match' => :'tinMatch',
210
+ :'no_tin' => :'noTin',
211
+ :'second_tin_notice' => :'secondTinNotice',
204
212
  :'address_verification' => :'addressVerification',
205
213
  :'state_and_local_withholding' => :'stateAndLocalWithholding'
206
214
  }
@@ -214,25 +222,25 @@ module AvalaraSdk::A1099::V2
214
222
  # Attribute type mapping.
215
223
  def self.openapi_types
216
224
  {
217
- :'total_ordinary_dividends' => :'String',
218
- :'qualified_dividends' => :'String',
219
- :'total_capital_gain_distr' => :'String',
220
- :'unrecap_sec1250_gain' => :'String',
221
- :'section1202_gain' => :'String',
222
- :'collectibles_gain' => :'String',
223
- :'section897_ordinary_dividends' => :'String',
224
- :'section897_capital_gain' => :'String',
225
- :'nondividend_distributions' => :'String',
226
- :'federal_income_tax_withheld' => :'String',
227
- :'section199_a_dividends' => :'String',
228
- :'investment_expenses' => :'String',
229
- :'foreign_tax_paid' => :'String',
225
+ :'total_ordinary_dividends' => :'Float',
226
+ :'qualified_dividends' => :'Float',
227
+ :'total_capital_gain_distributions' => :'Float',
228
+ :'unrecaptured_section1250_gain' => :'Float',
229
+ :'section1202_gain' => :'Float',
230
+ :'collectibles_gain' => :'Float',
231
+ :'section897_ordinary_dividends' => :'Float',
232
+ :'section897_capital_gain' => :'Float',
233
+ :'nondividend_distributions' => :'Float',
234
+ :'federal_income_tax_withheld' => :'Float',
235
+ :'section199_a_dividends' => :'Float',
236
+ :'investment_expenses' => :'Float',
237
+ :'foreign_tax_paid' => :'Float',
230
238
  :'foreign_country_or_us_possession' => :'String',
231
- :'cash_liquidation_distributions' => :'String',
232
- :'noncash_liquidation_distributions' => :'String',
233
- :'exempt_interest_dividends' => :'String',
234
- :'specified_private_activity_bond_interest_dividends' => :'String',
235
- :'fatca_filing_requirement' => :'String',
239
+ :'cash_liquidation_distributions' => :'Float',
240
+ :'noncash_liquidation_distributions' => :'Float',
241
+ :'exempt_interest_dividends' => :'Float',
242
+ :'specified_private_activity_bond_interest_dividends' => :'Float',
243
+ :'fatca_filing_requirement' => :'Boolean',
236
244
  :'type' => :'String',
237
245
  :'issuer_id' => :'String',
238
246
  :'reference_id' => :'String',
@@ -245,15 +253,17 @@ module AvalaraSdk::A1099::V2
245
253
  :'city' => :'String',
246
254
  :'state' => :'String',
247
255
  :'zip' => :'String',
248
- :'recipient_email' => :'String',
256
+ :'email' => :'String',
249
257
  :'account_number' => :'String',
250
258
  :'office_code' => :'String',
251
- :'recipient_non_us_province' => :'String',
259
+ :'non_us_province' => :'String',
252
260
  :'country_code' => :'String',
253
261
  :'federal_e_file' => :'Boolean',
254
262
  :'postal_mail' => :'Boolean',
255
263
  :'state_e_file' => :'Boolean',
256
264
  :'tin_match' => :'Boolean',
265
+ :'no_tin' => :'Boolean',
266
+ :'second_tin_notice' => :'Boolean',
257
267
  :'address_verification' => :'Boolean',
258
268
  :'state_and_local_withholding' => :'StateAndLocalWithholdingRequest'
259
269
  }
@@ -262,14 +272,42 @@ module AvalaraSdk::A1099::V2
262
272
  # List of attributes with nullable: true
263
273
  def self.openapi_nullable
264
274
  Set.new([
275
+ :'total_ordinary_dividends',
276
+ :'qualified_dividends',
277
+ :'total_capital_gain_distributions',
278
+ :'unrecaptured_section1250_gain',
279
+ :'section1202_gain',
280
+ :'collectibles_gain',
281
+ :'section897_ordinary_dividends',
282
+ :'section897_capital_gain',
283
+ :'nondividend_distributions',
284
+ :'federal_income_tax_withheld',
285
+ :'section199_a_dividends',
286
+ :'investment_expenses',
287
+ :'foreign_tax_paid',
288
+ :'foreign_country_or_us_possession',
289
+ :'cash_liquidation_distributions',
290
+ :'noncash_liquidation_distributions',
291
+ :'exempt_interest_dividends',
292
+ :'specified_private_activity_bond_interest_dividends',
293
+ :'fatca_filing_requirement',
265
294
  :'issuer_id',
266
295
  :'reference_id',
296
+ :'recipient_tin',
297
+ :'recipient_name',
267
298
  :'recipient_second_name',
299
+ :'address',
268
300
  :'address2',
269
- :'recipient_email',
301
+ :'city',
302
+ :'state',
303
+ :'zip',
304
+ :'email',
270
305
  :'account_number',
271
306
  :'office_code',
272
- :'recipient_non_us_province',
307
+ :'non_us_province',
308
+ :'country_code',
309
+ :'second_tin_notice',
310
+ :'state_and_local_withholding'
273
311
  ])
274
312
  end
275
313
 
@@ -303,12 +341,12 @@ module AvalaraSdk::A1099::V2
303
341
  self.qualified_dividends = attributes[:'qualified_dividends']
304
342
  end
305
343
 
306
- if attributes.key?(:'total_capital_gain_distr')
307
- self.total_capital_gain_distr = attributes[:'total_capital_gain_distr']
344
+ if attributes.key?(:'total_capital_gain_distributions')
345
+ self.total_capital_gain_distributions = attributes[:'total_capital_gain_distributions']
308
346
  end
309
347
 
310
- if attributes.key?(:'unrecap_sec1250_gain')
311
- self.unrecap_sec1250_gain = attributes[:'unrecap_sec1250_gain']
348
+ if attributes.key?(:'unrecaptured_section1250_gain')
349
+ self.unrecaptured_section1250_gain = attributes[:'unrecaptured_section1250_gain']
312
350
  end
313
351
 
314
352
  if attributes.key?(:'section1202_gain')
@@ -389,8 +427,6 @@ module AvalaraSdk::A1099::V2
389
427
 
390
428
  if attributes.key?(:'recipient_name')
391
429
  self.recipient_name = attributes[:'recipient_name']
392
- else
393
- self.recipient_name = nil
394
430
  end
395
431
 
396
432
  if attributes.key?(:'tin_type')
@@ -403,8 +439,6 @@ module AvalaraSdk::A1099::V2
403
439
 
404
440
  if attributes.key?(:'address')
405
441
  self.address = attributes[:'address']
406
- else
407
- self.address = nil
408
442
  end
409
443
 
410
444
  if attributes.key?(:'address2')
@@ -413,8 +447,6 @@ module AvalaraSdk::A1099::V2
413
447
 
414
448
  if attributes.key?(:'city')
415
449
  self.city = attributes[:'city']
416
- else
417
- self.city = nil
418
450
  end
419
451
 
420
452
  if attributes.key?(:'state')
@@ -425,8 +457,8 @@ module AvalaraSdk::A1099::V2
425
457
  self.zip = attributes[:'zip']
426
458
  end
427
459
 
428
- if attributes.key?(:'recipient_email')
429
- self.recipient_email = attributes[:'recipient_email']
460
+ if attributes.key?(:'email')
461
+ self.email = attributes[:'email']
430
462
  end
431
463
 
432
464
  if attributes.key?(:'account_number')
@@ -437,14 +469,12 @@ module AvalaraSdk::A1099::V2
437
469
  self.office_code = attributes[:'office_code']
438
470
  end
439
471
 
440
- if attributes.key?(:'recipient_non_us_province')
441
- self.recipient_non_us_province = attributes[:'recipient_non_us_province']
472
+ if attributes.key?(:'non_us_province')
473
+ self.non_us_province = attributes[:'non_us_province']
442
474
  end
443
475
 
444
476
  if attributes.key?(:'country_code')
445
477
  self.country_code = attributes[:'country_code']
446
- else
447
- self.country_code = nil
448
478
  end
449
479
 
450
480
  if attributes.key?(:'federal_e_file')
@@ -463,6 +493,14 @@ module AvalaraSdk::A1099::V2
463
493
  self.tin_match = attributes[:'tin_match']
464
494
  end
465
495
 
496
+ if attributes.key?(:'no_tin')
497
+ self.no_tin = attributes[:'no_tin']
498
+ end
499
+
500
+ if attributes.key?(:'second_tin_notice')
501
+ self.second_tin_notice = attributes[:'second_tin_notice']
502
+ end
503
+
466
504
  if attributes.key?(:'address_verification')
467
505
  self.address_verification = attributes[:'address_verification']
468
506
  end
@@ -477,38 +515,6 @@ module AvalaraSdk::A1099::V2
477
515
  def list_invalid_properties
478
516
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
479
517
  invalid_properties = Array.new
480
- if @recipient_name.nil?
481
- invalid_properties.push('invalid value for "recipient_name", recipient_name cannot be nil.')
482
- end
483
-
484
- if @recipient_name.to_s.length < 1
485
- invalid_properties.push('invalid value for "recipient_name", the character length must be great than or equal to 1.')
486
- end
487
-
488
- if @address.nil?
489
- invalid_properties.push('invalid value for "address", address cannot be nil.')
490
- end
491
-
492
- if @address.to_s.length < 1
493
- invalid_properties.push('invalid value for "address", the character length must be great than or equal to 1.')
494
- end
495
-
496
- if @city.nil?
497
- invalid_properties.push('invalid value for "city", city cannot be nil.')
498
- end
499
-
500
- if @city.to_s.length < 1
501
- invalid_properties.push('invalid value for "city", the character length must be great than or equal to 1.')
502
- end
503
-
504
- if @country_code.nil?
505
- invalid_properties.push('invalid value for "country_code", country_code cannot be nil.')
506
- end
507
-
508
- if @country_code.to_s.length < 1
509
- invalid_properties.push('invalid value for "country_code", the character length must be great than or equal to 1.')
510
- end
511
-
512
518
  invalid_properties
513
519
  end
514
520
 
@@ -516,45 +522,23 @@ module AvalaraSdk::A1099::V2
516
522
  # @return true if the model is valid
517
523
  def valid?
518
524
  warn '[DEPRECATED] the `valid?` method is obsolete'
519
- type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"])
525
+ type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
520
526
  return false unless type_validator.valid?(@type)
521
- return false if @recipient_name.nil?
522
- return false if @recipient_name.to_s.length < 1
523
527
  tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
524
528
  return false unless tin_type_validator.valid?(@tin_type)
525
- return false if @address.nil?
526
- return false if @address.to_s.length < 1
527
- return false if @city.nil?
528
- return false if @city.to_s.length < 1
529
- return false if @country_code.nil?
530
- return false if @country_code.to_s.length < 1
531
529
  true
532
530
  end
533
531
 
534
532
  # Custom attribute writer method checking allowed values (enum).
535
533
  # @param [Object] type Object to be assigned
536
534
  def type=(type)
537
- validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"])
535
+ validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
538
536
  unless validator.valid?(type)
539
537
  fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
540
538
  end
541
539
  @type = type
542
540
  end
543
541
 
544
- # Custom attribute writer method with validation
545
- # @param [Object] recipient_name Value to be assigned
546
- def recipient_name=(recipient_name)
547
- if recipient_name.nil?
548
- fail ArgumentError, 'recipient_name cannot be nil'
549
- end
550
-
551
- if recipient_name.to_s.length < 1
552
- fail ArgumentError, 'invalid value for "recipient_name", the character length must be great than or equal to 1.'
553
- end
554
-
555
- @recipient_name = recipient_name
556
- end
557
-
558
542
  # Custom attribute writer method checking allowed values (enum).
559
543
  # @param [Object] tin_type Object to be assigned
560
544
  def tin_type=(tin_type)
@@ -565,48 +549,6 @@ module AvalaraSdk::A1099::V2
565
549
  @tin_type = tin_type
566
550
  end
567
551
 
568
- # Custom attribute writer method with validation
569
- # @param [Object] address Value to be assigned
570
- def address=(address)
571
- if address.nil?
572
- fail ArgumentError, 'address cannot be nil'
573
- end
574
-
575
- if address.to_s.length < 1
576
- fail ArgumentError, 'invalid value for "address", the character length must be great than or equal to 1.'
577
- end
578
-
579
- @address = address
580
- end
581
-
582
- # Custom attribute writer method with validation
583
- # @param [Object] city Value to be assigned
584
- def city=(city)
585
- if city.nil?
586
- fail ArgumentError, 'city cannot be nil'
587
- end
588
-
589
- if city.to_s.length < 1
590
- fail ArgumentError, 'invalid value for "city", the character length must be great than or equal to 1.'
591
- end
592
-
593
- @city = city
594
- end
595
-
596
- # Custom attribute writer method with validation
597
- # @param [Object] country_code Value to be assigned
598
- def country_code=(country_code)
599
- if country_code.nil?
600
- fail ArgumentError, 'country_code cannot be nil'
601
- end
602
-
603
- if country_code.to_s.length < 1
604
- fail ArgumentError, 'invalid value for "country_code", the character length must be great than or equal to 1.'
605
- end
606
-
607
- @country_code = country_code
608
- end
609
-
610
552
  # Checks equality by comparing each attribute.
611
553
  # @param [Object] Object to be compared
612
554
  def ==(o)
@@ -614,8 +556,8 @@ module AvalaraSdk::A1099::V2
614
556
  self.class == o.class &&
615
557
  total_ordinary_dividends == o.total_ordinary_dividends &&
616
558
  qualified_dividends == o.qualified_dividends &&
617
- total_capital_gain_distr == o.total_capital_gain_distr &&
618
- unrecap_sec1250_gain == o.unrecap_sec1250_gain &&
559
+ total_capital_gain_distributions == o.total_capital_gain_distributions &&
560
+ unrecaptured_section1250_gain == o.unrecaptured_section1250_gain &&
619
561
  section1202_gain == o.section1202_gain &&
620
562
  collectibles_gain == o.collectibles_gain &&
621
563
  section897_ordinary_dividends == o.section897_ordinary_dividends &&
@@ -643,15 +585,17 @@ module AvalaraSdk::A1099::V2
643
585
  city == o.city &&
644
586
  state == o.state &&
645
587
  zip == o.zip &&
646
- recipient_email == o.recipient_email &&
588
+ email == o.email &&
647
589
  account_number == o.account_number &&
648
590
  office_code == o.office_code &&
649
- recipient_non_us_province == o.recipient_non_us_province &&
591
+ non_us_province == o.non_us_province &&
650
592
  country_code == o.country_code &&
651
593
  federal_e_file == o.federal_e_file &&
652
594
  postal_mail == o.postal_mail &&
653
595
  state_e_file == o.state_e_file &&
654
596
  tin_match == o.tin_match &&
597
+ no_tin == o.no_tin &&
598
+ second_tin_notice == o.second_tin_notice &&
655
599
  address_verification == o.address_verification &&
656
600
  state_and_local_withholding == o.state_and_local_withholding
657
601
  end
@@ -665,7 +609,7 @@ module AvalaraSdk::A1099::V2
665
609
  # Calculates hash code according to all attributes.
666
610
  # @return [Integer] Hash code
667
611
  def hash
668
- [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, type, 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
612
+ [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, type, 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
669
613
  end
670
614
 
671
615
  # Builds the object from hash