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
@@ -114,7 +114,7 @@ module AvalaraSdk::A1099::V2
114
114
  attr_accessor :zip
115
115
 
116
116
  # Recipient email address
117
- attr_accessor :recipient_email
117
+ attr_accessor :email
118
118
 
119
119
  # Account number
120
120
  attr_accessor :account_number
@@ -123,7 +123,7 @@ module AvalaraSdk::A1099::V2
123
123
  attr_accessor :office_code
124
124
 
125
125
  # Foreign province
126
- attr_accessor :recipient_non_us_province
126
+ attr_accessor :non_us_province
127
127
 
128
128
  # Country code, as defined at https://www.irs.gov/e-file-providers/country-codes
129
129
  attr_accessor :country_code
@@ -140,6 +140,12 @@ module AvalaraSdk::A1099::V2
140
140
  # Boolean indicating that TIN Matching should be scheduled for this form
141
141
  attr_accessor :tin_match
142
142
 
143
+ # Indicates whether the recipient has no TIN
144
+ attr_accessor :no_tin
145
+
146
+ # Second TIN notice in three years
147
+ attr_accessor :second_tin_notice
148
+
143
149
  # Boolean indicating that address verification should be scheduled for this form
144
150
  attr_accessor :address_verification
145
151
 
@@ -205,15 +211,17 @@ module AvalaraSdk::A1099::V2
205
211
  :'city' => :'city',
206
212
  :'state' => :'state',
207
213
  :'zip' => :'zip',
208
- :'recipient_email' => :'recipientEmail',
214
+ :'email' => :'email',
209
215
  :'account_number' => :'accountNumber',
210
216
  :'office_code' => :'officeCode',
211
- :'recipient_non_us_province' => :'recipientNonUsProvince',
217
+ :'non_us_province' => :'nonUsProvince',
212
218
  :'country_code' => :'countryCode',
213
219
  :'federal_e_file' => :'federalEFile',
214
220
  :'postal_mail' => :'postalMail',
215
221
  :'state_e_file' => :'stateEFile',
216
222
  :'tin_match' => :'tinMatch',
223
+ :'no_tin' => :'noTin',
224
+ :'second_tin_notice' => :'secondTinNotice',
217
225
  :'address_verification' => :'addressVerification',
218
226
  :'state_and_local_withholding' => :'stateAndLocalWithholding'
219
227
  }
@@ -261,15 +269,17 @@ module AvalaraSdk::A1099::V2
261
269
  :'city' => :'String',
262
270
  :'state' => :'String',
263
271
  :'zip' => :'String',
264
- :'recipient_email' => :'String',
272
+ :'email' => :'String',
265
273
  :'account_number' => :'String',
266
274
  :'office_code' => :'String',
267
- :'recipient_non_us_province' => :'String',
275
+ :'non_us_province' => :'String',
268
276
  :'country_code' => :'String',
269
277
  :'federal_e_file' => :'Boolean',
270
278
  :'postal_mail' => :'Boolean',
271
279
  :'state_e_file' => :'Boolean',
272
280
  :'tin_match' => :'Boolean',
281
+ :'no_tin' => :'Boolean',
282
+ :'second_tin_notice' => :'Boolean',
273
283
  :'address_verification' => :'Boolean',
274
284
  :'state_and_local_withholding' => :'StateAndLocalWithholdingRequest'
275
285
  }
@@ -279,14 +289,25 @@ module AvalaraSdk::A1099::V2
279
289
  def self.openapi_nullable
280
290
  Set.new([
281
291
  :'second_distribution_code',
292
+ :'issuer_reference_id',
293
+ :'issuer_tin',
282
294
  :'issuer_id',
283
295
  :'reference_id',
296
+ :'recipient_tin',
297
+ :'recipient_name',
284
298
  :'recipient_second_name',
299
+ :'address',
285
300
  :'address2',
286
- :'recipient_email',
301
+ :'city',
302
+ :'state',
303
+ :'zip',
304
+ :'email',
287
305
  :'account_number',
288
306
  :'office_code',
289
- :'recipient_non_us_province',
307
+ :'non_us_province',
308
+ :'country_code',
309
+ :'second_tin_notice',
310
+ :'state_and_local_withholding'
290
311
  ])
291
312
  end
292
313
 
@@ -420,8 +441,6 @@ module AvalaraSdk::A1099::V2
420
441
 
421
442
  if attributes.key?(:'recipient_name')
422
443
  self.recipient_name = attributes[:'recipient_name']
423
- else
424
- self.recipient_name = nil
425
444
  end
426
445
 
427
446
  if attributes.key?(:'tin_type')
@@ -434,8 +453,6 @@ module AvalaraSdk::A1099::V2
434
453
 
435
454
  if attributes.key?(:'address')
436
455
  self.address = attributes[:'address']
437
- else
438
- self.address = nil
439
456
  end
440
457
 
441
458
  if attributes.key?(:'address2')
@@ -444,8 +461,6 @@ module AvalaraSdk::A1099::V2
444
461
 
445
462
  if attributes.key?(:'city')
446
463
  self.city = attributes[:'city']
447
- else
448
- self.city = nil
449
464
  end
450
465
 
451
466
  if attributes.key?(:'state')
@@ -456,8 +471,8 @@ module AvalaraSdk::A1099::V2
456
471
  self.zip = attributes[:'zip']
457
472
  end
458
473
 
459
- if attributes.key?(:'recipient_email')
460
- self.recipient_email = attributes[:'recipient_email']
474
+ if attributes.key?(:'email')
475
+ self.email = attributes[:'email']
461
476
  end
462
477
 
463
478
  if attributes.key?(:'account_number')
@@ -468,14 +483,12 @@ module AvalaraSdk::A1099::V2
468
483
  self.office_code = attributes[:'office_code']
469
484
  end
470
485
 
471
- if attributes.key?(:'recipient_non_us_province')
472
- self.recipient_non_us_province = attributes[:'recipient_non_us_province']
486
+ if attributes.key?(:'non_us_province')
487
+ self.non_us_province = attributes[:'non_us_province']
473
488
  end
474
489
 
475
490
  if attributes.key?(:'country_code')
476
491
  self.country_code = attributes[:'country_code']
477
- else
478
- self.country_code = nil
479
492
  end
480
493
 
481
494
  if attributes.key?(:'federal_e_file')
@@ -494,6 +507,14 @@ module AvalaraSdk::A1099::V2
494
507
  self.tin_match = attributes[:'tin_match']
495
508
  end
496
509
 
510
+ if attributes.key?(:'no_tin')
511
+ self.no_tin = attributes[:'no_tin']
512
+ end
513
+
514
+ if attributes.key?(:'second_tin_notice')
515
+ self.second_tin_notice = attributes[:'second_tin_notice']
516
+ end
517
+
497
518
  if attributes.key?(:'address_verification')
498
519
  self.address_verification = attributes[:'address_verification']
499
520
  end
@@ -512,38 +533,6 @@ module AvalaraSdk::A1099::V2
512
533
  invalid_properties.push('invalid value for "tax_year", tax_year cannot be nil.')
513
534
  end
514
535
 
515
- if @recipient_name.nil?
516
- invalid_properties.push('invalid value for "recipient_name", recipient_name cannot be nil.')
517
- end
518
-
519
- if @recipient_name.to_s.length < 1
520
- invalid_properties.push('invalid value for "recipient_name", the character length must be great than or equal to 1.')
521
- end
522
-
523
- if @address.nil?
524
- invalid_properties.push('invalid value for "address", address cannot be nil.')
525
- end
526
-
527
- if @address.to_s.length < 1
528
- invalid_properties.push('invalid value for "address", the character length must be great than or equal to 1.')
529
- end
530
-
531
- if @city.nil?
532
- invalid_properties.push('invalid value for "city", city cannot be nil.')
533
- end
534
-
535
- if @city.to_s.length < 1
536
- invalid_properties.push('invalid value for "city", the character length must be great than or equal to 1.')
537
- end
538
-
539
- if @country_code.nil?
540
- invalid_properties.push('invalid value for "country_code", country_code cannot be nil.')
541
- end
542
-
543
- if @country_code.to_s.length < 1
544
- invalid_properties.push('invalid value for "country_code", the character length must be great than or equal to 1.')
545
- end
546
-
547
536
  invalid_properties
548
537
  end
549
538
 
@@ -556,16 +545,8 @@ module AvalaraSdk::A1099::V2
556
545
  second_distribution_code_validator = EnumAttributeValidator.new('String', ["EarlyDistributionNoException", "EarlyDistributionWithException", "Disability", "Death", "ProhibitedTransaction", "Section1035Exchange", "NormalDistribution", "ExcessContributionsCurrentYear", "CurrentLifeInsuranceProtectionCost", "TenYearTaxOption", "DesignatedRothDistribution", "ReportableDeathBenefits", "NonqualifiedAnnuityPayments", "EPCRSDistribution", "CharitableGiftAnnuity", "DirectRollover", "RothAccountToIRADirectRollover", "EarlyRothIRADistribution", "IRAAssetsNoFMV", "LoansDeemedDistributions", "QualifiedPlanLoanOffsets", "RecharacterizedIRANextYear", "ExcessContributionsPreviousYear", "QualifiedRothIRADistribution", "RecharacterizedIRAPreviousYear", "EarlySimpleIRADistribution", "RothIRADistributionException", "ESOPDistribution", "LongTermCareInsurance"])
557
546
  return false unless second_distribution_code_validator.valid?(@second_distribution_code)
558
547
  return false if @tax_year.nil?
559
- return false if @recipient_name.nil?
560
- return false if @recipient_name.to_s.length < 1
561
548
  tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
562
549
  return false unless tin_type_validator.valid?(@tin_type)
563
- return false if @address.nil?
564
- return false if @address.to_s.length < 1
565
- return false if @city.nil?
566
- return false if @city.to_s.length < 1
567
- return false if @country_code.nil?
568
- return false if @country_code.to_s.length < 1
569
550
  true
570
551
  end
571
552
 
@@ -589,20 +570,6 @@ module AvalaraSdk::A1099::V2
589
570
  @second_distribution_code = second_distribution_code
590
571
  end
591
572
 
592
- # Custom attribute writer method with validation
593
- # @param [Object] recipient_name Value to be assigned
594
- def recipient_name=(recipient_name)
595
- if recipient_name.nil?
596
- fail ArgumentError, 'recipient_name cannot be nil'
597
- end
598
-
599
- if recipient_name.to_s.length < 1
600
- fail ArgumentError, 'invalid value for "recipient_name", the character length must be great than or equal to 1.'
601
- end
602
-
603
- @recipient_name = recipient_name
604
- end
605
-
606
573
  # Custom attribute writer method checking allowed values (enum).
607
574
  # @param [Object] tin_type Object to be assigned
608
575
  def tin_type=(tin_type)
@@ -613,48 +580,6 @@ module AvalaraSdk::A1099::V2
613
580
  @tin_type = tin_type
614
581
  end
615
582
 
616
- # Custom attribute writer method with validation
617
- # @param [Object] address Value to be assigned
618
- def address=(address)
619
- if address.nil?
620
- fail ArgumentError, 'address cannot be nil'
621
- end
622
-
623
- if address.to_s.length < 1
624
- fail ArgumentError, 'invalid value for "address", the character length must be great than or equal to 1.'
625
- end
626
-
627
- @address = address
628
- end
629
-
630
- # Custom attribute writer method with validation
631
- # @param [Object] city Value to be assigned
632
- def city=(city)
633
- if city.nil?
634
- fail ArgumentError, 'city cannot be nil'
635
- end
636
-
637
- if city.to_s.length < 1
638
- fail ArgumentError, 'invalid value for "city", the character length must be great than or equal to 1.'
639
- end
640
-
641
- @city = city
642
- end
643
-
644
- # Custom attribute writer method with validation
645
- # @param [Object] country_code Value to be assigned
646
- def country_code=(country_code)
647
- if country_code.nil?
648
- fail ArgumentError, 'country_code cannot be nil'
649
- end
650
-
651
- if country_code.to_s.length < 1
652
- fail ArgumentError, 'invalid value for "country_code", the character length must be great than or equal to 1.'
653
- end
654
-
655
- @country_code = country_code
656
- end
657
-
658
583
  # Checks equality by comparing each attribute.
659
584
  # @param [Object] Object to be compared
660
585
  def ==(o)
@@ -694,15 +619,17 @@ module AvalaraSdk::A1099::V2
694
619
  city == o.city &&
695
620
  state == o.state &&
696
621
  zip == o.zip &&
697
- recipient_email == o.recipient_email &&
622
+ email == o.email &&
698
623
  account_number == o.account_number &&
699
624
  office_code == o.office_code &&
700
- recipient_non_us_province == o.recipient_non_us_province &&
625
+ non_us_province == o.non_us_province &&
701
626
  country_code == o.country_code &&
702
627
  federal_e_file == o.federal_e_file &&
703
628
  postal_mail == o.postal_mail &&
704
629
  state_e_file == o.state_e_file &&
705
630
  tin_match == o.tin_match &&
631
+ no_tin == o.no_tin &&
632
+ second_tin_notice == o.second_tin_notice &&
706
633
  address_verification == o.address_verification &&
707
634
  state_and_local_withholding == o.state_and_local_withholding
708
635
  end
@@ -716,7 +643,7 @@ module AvalaraSdk::A1099::V2
716
643
  # Calculates hash code according to all attributes.
717
644
  # @return [Integer] Hash code
718
645
  def hash
719
- [gross_distribution, taxable_amount, taxable_amount_not_determined, total_distribution_determined, capital_gain, federal_income_tax_withheld, employee_contributions_or_designated_roth_or_insurance_premiums, net_unrealized_appreciation_in_employer_securities, distribution_code, second_distribution_code, ira_sep_simple, traditional_ira_sep_simple_or_roth_conversion_amount, other_amount, other_percentage, total_distribution_percentage, total_employee_contributions, amount_allocable_to_irr_within5_years, first_year_of_designated_roth_contribution, fatca_filing_requirement, date_of_payment, 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
646
+ [gross_distribution, taxable_amount, taxable_amount_not_determined, total_distribution_determined, capital_gain, federal_income_tax_withheld, employee_contributions_or_designated_roth_or_insurance_premiums, net_unrealized_appreciation_in_employer_securities, distribution_code, second_distribution_code, ira_sep_simple, traditional_ira_sep_simple_or_roth_conversion_amount, other_amount, other_percentage, total_distribution_percentage, total_employee_contributions, amount_allocable_to_irr_within5_years, first_year_of_designated_roth_contribution, fatca_filing_requirement, date_of_payment, 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
720
647
  end
721
648
 
722
649
  # Builds the object from hash
@@ -65,9 +65,6 @@ module AvalaraSdk::A1099::V2
65
65
  # First year of designated Roth contribution
66
66
  attr_accessor :first_year_designated_roth_contrib
67
67
 
68
- # FATCA filing requirement
69
- attr_accessor :fatca_requirement_indicator
70
-
71
68
  # Date of payment
72
69
  attr_accessor :date_of_payment
73
70
 
@@ -119,6 +116,9 @@ module AvalaraSdk::A1099::V2
119
116
  # Address verification status
120
117
  attr_accessor :address_verification_status
121
118
 
119
+ # EDelivery status
120
+ attr_accessor :e_delivery_status
121
+
122
122
  # Reference ID
123
123
  attr_accessor :reference_id
124
124
 
@@ -131,6 +131,12 @@ module AvalaraSdk::A1099::V2
131
131
  # Recipient Tax ID Number
132
132
  attr_accessor :tin
133
133
 
134
+ # Indicates whether the recipient has no TIN
135
+ attr_accessor :no_tin
136
+
137
+ # Second Tin Notice
138
+ attr_accessor :second_tin_notice
139
+
134
140
  # Recipient name
135
141
  attr_accessor :recipient_name
136
142
 
@@ -153,11 +159,20 @@ module AvalaraSdk::A1099::V2
153
159
  attr_accessor :zip
154
160
 
155
161
  # Foreign province
156
- attr_accessor :foreign_province
162
+ attr_accessor :non_us_province
157
163
 
158
164
  # Country code, as defined at https://www.irs.gov/e-file-providers/country-codes
159
165
  attr_accessor :country_code
160
166
 
167
+ # Account Number
168
+ attr_accessor :account_number
169
+
170
+ # Office Code
171
+ attr_accessor :office_code
172
+
173
+ # FATCA filing requirement
174
+ attr_accessor :fatca_filing_requirement
175
+
161
176
  # Validation errors
162
177
  attr_accessor :validation_errors
163
178
 
@@ -190,7 +205,6 @@ module AvalaraSdk::A1099::V2
190
205
  :'total_employee_contributions' => :'totalEmployeeContributions',
191
206
  :'amount_allocable_to_irr' => :'amountAllocableToIrr',
192
207
  :'first_year_designated_roth_contrib' => :'firstYearDesignatedRothContrib',
193
- :'fatca_requirement_indicator' => :'fatcaRequirementIndicator',
194
208
  :'date_of_payment' => :'dateOfPayment',
195
209
  :'id' => :'id',
196
210
  :'type' => :'type',
@@ -208,10 +222,13 @@ module AvalaraSdk::A1099::V2
208
222
  :'tin_match_status' => :'tinMatchStatus',
209
223
  :'address_verification' => :'addressVerification',
210
224
  :'address_verification_status' => :'addressVerificationStatus',
225
+ :'e_delivery_status' => :'eDeliveryStatus',
211
226
  :'reference_id' => :'referenceId',
212
227
  :'email' => :'email',
213
228
  :'tin_type' => :'tinType',
214
229
  :'tin' => :'tin',
230
+ :'no_tin' => :'noTin',
231
+ :'second_tin_notice' => :'secondTinNotice',
215
232
  :'recipient_name' => :'recipientName',
216
233
  :'recipient_second_name' => :'recipientSecondName',
217
234
  :'address' => :'address',
@@ -219,8 +236,11 @@ module AvalaraSdk::A1099::V2
219
236
  :'city' => :'city',
220
237
  :'state' => :'state',
221
238
  :'zip' => :'zip',
222
- :'foreign_province' => :'foreignProvince',
239
+ :'non_us_province' => :'nonUsProvince',
223
240
  :'country_code' => :'countryCode',
241
+ :'account_number' => :'accountNumber',
242
+ :'office_code' => :'officeCode',
243
+ :'fatca_filing_requirement' => :'fatcaFilingRequirement',
224
244
  :'validation_errors' => :'validationErrors',
225
245
  :'created_at' => :'createdAt',
226
246
  :'updated_at' => :'updatedAt',
@@ -254,7 +274,6 @@ module AvalaraSdk::A1099::V2
254
274
  :'total_employee_contributions' => :'Float',
255
275
  :'amount_allocable_to_irr' => :'Float',
256
276
  :'first_year_designated_roth_contrib' => :'String',
257
- :'fatca_requirement_indicator' => :'Boolean',
258
277
  :'date_of_payment' => :'String',
259
278
  :'id' => :'String',
260
279
  :'type' => :'String',
@@ -263,19 +282,22 @@ module AvalaraSdk::A1099::V2
263
282
  :'issuer_tin' => :'String',
264
283
  :'tax_year' => :'Integer',
265
284
  :'federal_efile' => :'Boolean',
266
- :'federal_efile_status' => :'Form1099StatusDetailResponse',
285
+ :'federal_efile_status' => :'StatusDetail',
267
286
  :'state_efile' => :'Boolean',
268
287
  :'state_efile_status' => :'Array<StateEfileStatusDetailResponse>',
269
288
  :'postal_mail' => :'Boolean',
270
- :'postal_mail_status' => :'Form1099StatusDetailResponse',
289
+ :'postal_mail_status' => :'StatusDetail',
271
290
  :'tin_match' => :'Boolean',
272
- :'tin_match_status' => :'Form1099StatusDetailResponse',
291
+ :'tin_match_status' => :'StatusDetail',
273
292
  :'address_verification' => :'Boolean',
274
- :'address_verification_status' => :'Form1099StatusDetailResponse',
293
+ :'address_verification_status' => :'StatusDetail',
294
+ :'e_delivery_status' => :'StatusDetail',
275
295
  :'reference_id' => :'String',
276
296
  :'email' => :'String',
277
297
  :'tin_type' => :'String',
278
298
  :'tin' => :'String',
299
+ :'no_tin' => :'Boolean',
300
+ :'second_tin_notice' => :'Boolean',
279
301
  :'recipient_name' => :'String',
280
302
  :'recipient_second_name' => :'String',
281
303
  :'address' => :'String',
@@ -283,8 +305,11 @@ module AvalaraSdk::A1099::V2
283
305
  :'city' => :'String',
284
306
  :'state' => :'String',
285
307
  :'zip' => :'String',
286
- :'foreign_province' => :'String',
308
+ :'non_us_province' => :'String',
287
309
  :'country_code' => :'String',
310
+ :'account_number' => :'String',
311
+ :'office_code' => :'String',
312
+ :'fatca_filing_requirement' => :'Boolean',
288
313
  :'validation_errors' => :'Array<ValidationErrorResponse>',
289
314
  :'created_at' => :'Time',
290
315
  :'updated_at' => :'Time',
@@ -313,7 +338,6 @@ module AvalaraSdk::A1099::V2
313
338
  :'total_employee_contributions',
314
339
  :'amount_allocable_to_irr',
315
340
  :'first_year_designated_roth_contrib',
316
- :'fatca_requirement_indicator',
317
341
  :'date_of_payment',
318
342
  :'issuer_reference_id',
319
343
  :'issuer_tin',
@@ -321,10 +345,12 @@ module AvalaraSdk::A1099::V2
321
345
  :'postal_mail_status',
322
346
  :'tin_match_status',
323
347
  :'address_verification_status',
348
+ :'e_delivery_status',
324
349
  :'reference_id',
325
350
  :'email',
326
351
  :'tin_type',
327
352
  :'tin',
353
+ :'second_tin_notice',
328
354
  :'recipient_name',
329
355
  :'recipient_second_name',
330
356
  :'address',
@@ -332,8 +358,11 @@ module AvalaraSdk::A1099::V2
332
358
  :'city',
333
359
  :'state',
334
360
  :'zip',
335
- :'foreign_province',
361
+ :'non_us_province',
336
362
  :'country_code',
363
+ :'account_number',
364
+ :'office_code',
365
+ :'fatca_filing_requirement',
337
366
  :'validation_errors',
338
367
  :'state_and_local_withholding'
339
368
  ])
@@ -433,10 +462,6 @@ module AvalaraSdk::A1099::V2
433
462
  self.first_year_designated_roth_contrib = attributes[:'first_year_designated_roth_contrib']
434
463
  end
435
464
 
436
- if attributes.key?(:'fatca_requirement_indicator')
437
- self.fatca_requirement_indicator = attributes[:'fatca_requirement_indicator']
438
- end
439
-
440
465
  if attributes.key?(:'date_of_payment')
441
466
  self.date_of_payment = attributes[:'date_of_payment']
442
467
  end
@@ -523,6 +548,10 @@ module AvalaraSdk::A1099::V2
523
548
  self.address_verification_status = attributes[:'address_verification_status']
524
549
  end
525
550
 
551
+ if attributes.key?(:'e_delivery_status')
552
+ self.e_delivery_status = attributes[:'e_delivery_status']
553
+ end
554
+
526
555
  if attributes.key?(:'reference_id')
527
556
  self.reference_id = attributes[:'reference_id']
528
557
  end
@@ -539,6 +568,14 @@ module AvalaraSdk::A1099::V2
539
568
  self.tin = attributes[:'tin']
540
569
  end
541
570
 
571
+ if attributes.key?(:'no_tin')
572
+ self.no_tin = attributes[:'no_tin']
573
+ end
574
+
575
+ if attributes.key?(:'second_tin_notice')
576
+ self.second_tin_notice = attributes[:'second_tin_notice']
577
+ end
578
+
542
579
  if attributes.key?(:'recipient_name')
543
580
  self.recipient_name = attributes[:'recipient_name']
544
581
  end
@@ -567,14 +604,26 @@ module AvalaraSdk::A1099::V2
567
604
  self.zip = attributes[:'zip']
568
605
  end
569
606
 
570
- if attributes.key?(:'foreign_province')
571
- self.foreign_province = attributes[:'foreign_province']
607
+ if attributes.key?(:'non_us_province')
608
+ self.non_us_province = attributes[:'non_us_province']
572
609
  end
573
610
 
574
611
  if attributes.key?(:'country_code')
575
612
  self.country_code = attributes[:'country_code']
576
613
  end
577
614
 
615
+ if attributes.key?(:'account_number')
616
+ self.account_number = attributes[:'account_number']
617
+ end
618
+
619
+ if attributes.key?(:'office_code')
620
+ self.office_code = attributes[:'office_code']
621
+ end
622
+
623
+ if attributes.key?(:'fatca_filing_requirement')
624
+ self.fatca_filing_requirement = attributes[:'fatca_filing_requirement']
625
+ end
626
+
578
627
  if attributes.key?(:'validation_errors')
579
628
  if (value = attributes[:'validation_errors']).is_a?(Array)
580
629
  self.validation_errors = value
@@ -722,7 +771,6 @@ module AvalaraSdk::A1099::V2
722
771
  total_employee_contributions == o.total_employee_contributions &&
723
772
  amount_allocable_to_irr == o.amount_allocable_to_irr &&
724
773
  first_year_designated_roth_contrib == o.first_year_designated_roth_contrib &&
725
- fatca_requirement_indicator == o.fatca_requirement_indicator &&
726
774
  date_of_payment == o.date_of_payment &&
727
775
  id == o.id &&
728
776
  type == o.type &&
@@ -740,10 +788,13 @@ module AvalaraSdk::A1099::V2
740
788
  tin_match_status == o.tin_match_status &&
741
789
  address_verification == o.address_verification &&
742
790
  address_verification_status == o.address_verification_status &&
791
+ e_delivery_status == o.e_delivery_status &&
743
792
  reference_id == o.reference_id &&
744
793
  email == o.email &&
745
794
  tin_type == o.tin_type &&
746
795
  tin == o.tin &&
796
+ no_tin == o.no_tin &&
797
+ second_tin_notice == o.second_tin_notice &&
747
798
  recipient_name == o.recipient_name &&
748
799
  recipient_second_name == o.recipient_second_name &&
749
800
  address == o.address &&
@@ -751,8 +802,11 @@ module AvalaraSdk::A1099::V2
751
802
  city == o.city &&
752
803
  state == o.state &&
753
804
  zip == o.zip &&
754
- foreign_province == o.foreign_province &&
805
+ non_us_province == o.non_us_province &&
755
806
  country_code == o.country_code &&
807
+ account_number == o.account_number &&
808
+ office_code == o.office_code &&
809
+ fatca_filing_requirement == o.fatca_filing_requirement &&
756
810
  validation_errors == o.validation_errors &&
757
811
  created_at == o.created_at &&
758
812
  updated_at == o.updated_at &&
@@ -768,7 +822,7 @@ module AvalaraSdk::A1099::V2
768
822
  # Calculates hash code according to all attributes.
769
823
  # @return [Integer] Hash code
770
824
  def hash
771
- [gross_distributions, taxable_amount, taxable_amount_not_determined, total_distribution_indicator, capital_gain, fed_income_tax_withheld, employee_contributions, net_unrealized_appreciation, distribution_code_required, distribution_code_optional, ira_sep_simple_indicator, total_ira_sep_simple_distribution, other, other_percent, percentage_total_distribution, total_employee_contributions, amount_allocable_to_irr, first_year_designated_roth_contrib, fatca_requirement_indicator, date_of_payment, id, type, issuer_id, issuer_reference_id, issuer_tin, tax_year, federal_efile, federal_efile_status, state_efile, state_efile_status, postal_mail, postal_mail_status, tin_match, tin_match_status, address_verification, address_verification_status, reference_id, email, tin_type, tin, recipient_name, recipient_second_name, address, address2, city, state, zip, foreign_province, country_code, validation_errors, created_at, updated_at, state_and_local_withholding].hash
825
+ [gross_distributions, taxable_amount, taxable_amount_not_determined, total_distribution_indicator, capital_gain, fed_income_tax_withheld, employee_contributions, net_unrealized_appreciation, distribution_code_required, distribution_code_optional, ira_sep_simple_indicator, total_ira_sep_simple_distribution, other, other_percent, percentage_total_distribution, total_employee_contributions, amount_allocable_to_irr, first_year_designated_roth_contrib, date_of_payment, id, type, issuer_id, issuer_reference_id, issuer_tin, tax_year, federal_efile, federal_efile_status, state_efile, state_efile_status, postal_mail, postal_mail_status, tin_match, tin_match_status, address_verification, address_verification_status, e_delivery_status, reference_id, email, tin_type, tin, no_tin, second_tin_notice, recipient_name, recipient_second_name, address, address2, city, state, zip, non_us_province, country_code, account_number, office_code, fatca_filing_requirement, validation_errors, created_at, updated_at, state_and_local_withholding].hash
772
826
  end
773
827
 
774
828
  # Builds the object from hash