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
@@ -107,7 +107,7 @@ module AvalaraSdk::A1099::V2
107
107
  attr_accessor :zip
108
108
 
109
109
  # Recipient email address
110
- attr_accessor :recipient_email
110
+ attr_accessor :email
111
111
 
112
112
  # Account number
113
113
  attr_accessor :account_number
@@ -116,7 +116,7 @@ module AvalaraSdk::A1099::V2
116
116
  attr_accessor :office_code
117
117
 
118
118
  # Foreign province
119
- attr_accessor :recipient_non_us_province
119
+ attr_accessor :non_us_province
120
120
 
121
121
  # Country code, as defined at https://www.irs.gov/e-file-providers/country-codes
122
122
  attr_accessor :country_code
@@ -133,6 +133,12 @@ module AvalaraSdk::A1099::V2
133
133
  # Boolean indicating that TIN Matching should be scheduled for this form
134
134
  attr_accessor :tin_match
135
135
 
136
+ # Indicates whether the recipient has no TIN
137
+ attr_accessor :no_tin
138
+
139
+ # Second TIN notice in three years
140
+ attr_accessor :second_tin_notice
141
+
136
142
  # Boolean indicating that address verification should be scheduled for this form
137
143
  attr_accessor :address_verification
138
144
 
@@ -196,15 +202,17 @@ module AvalaraSdk::A1099::V2
196
202
  :'city' => :'city',
197
203
  :'state' => :'state',
198
204
  :'zip' => :'zip',
199
- :'recipient_email' => :'recipientEmail',
205
+ :'email' => :'email',
200
206
  :'account_number' => :'accountNumber',
201
207
  :'office_code' => :'officeCode',
202
- :'recipient_non_us_province' => :'recipientNonUsProvince',
208
+ :'non_us_province' => :'nonUsProvince',
203
209
  :'country_code' => :'countryCode',
204
210
  :'federal_e_file' => :'federalEFile',
205
211
  :'postal_mail' => :'postalMail',
206
212
  :'state_e_file' => :'stateEFile',
207
213
  :'tin_match' => :'tinMatch',
214
+ :'no_tin' => :'noTin',
215
+ :'second_tin_notice' => :'secondTinNotice',
208
216
  :'address_verification' => :'addressVerification',
209
217
  :'state_and_local_withholding' => :'stateAndLocalWithholding'
210
218
  }
@@ -250,15 +258,17 @@ module AvalaraSdk::A1099::V2
250
258
  :'city' => :'String',
251
259
  :'state' => :'String',
252
260
  :'zip' => :'String',
253
- :'recipient_email' => :'String',
261
+ :'email' => :'String',
254
262
  :'account_number' => :'String',
255
263
  :'office_code' => :'String',
256
- :'recipient_non_us_province' => :'String',
264
+ :'non_us_province' => :'String',
257
265
  :'country_code' => :'String',
258
266
  :'federal_e_file' => :'Boolean',
259
267
  :'postal_mail' => :'Boolean',
260
268
  :'state_e_file' => :'Boolean',
261
269
  :'tin_match' => :'Boolean',
270
+ :'no_tin' => :'Boolean',
271
+ :'second_tin_notice' => :'Boolean',
262
272
  :'address_verification' => :'Boolean',
263
273
  :'state_and_local_withholding' => :'StateAndLocalWithholdingRequest'
264
274
  }
@@ -269,12 +279,21 @@ module AvalaraSdk::A1099::V2
269
279
  Set.new([
270
280
  :'issuer_id',
271
281
  :'reference_id',
282
+ :'recipient_tin',
283
+ :'recipient_name',
272
284
  :'recipient_second_name',
285
+ :'address',
273
286
  :'address2',
274
- :'recipient_email',
287
+ :'city',
288
+ :'state',
289
+ :'zip',
290
+ :'email',
275
291
  :'account_number',
276
292
  :'office_code',
277
- :'recipient_non_us_province',
293
+ :'non_us_province',
294
+ :'country_code',
295
+ :'second_tin_notice',
296
+ :'state_and_local_withholding'
278
297
  ])
279
298
  end
280
299
 
@@ -398,8 +417,6 @@ module AvalaraSdk::A1099::V2
398
417
 
399
418
  if attributes.key?(:'recipient_name')
400
419
  self.recipient_name = attributes[:'recipient_name']
401
- else
402
- self.recipient_name = nil
403
420
  end
404
421
 
405
422
  if attributes.key?(:'tin_type')
@@ -412,8 +429,6 @@ module AvalaraSdk::A1099::V2
412
429
 
413
430
  if attributes.key?(:'address')
414
431
  self.address = attributes[:'address']
415
- else
416
- self.address = nil
417
432
  end
418
433
 
419
434
  if attributes.key?(:'address2')
@@ -422,8 +437,6 @@ module AvalaraSdk::A1099::V2
422
437
 
423
438
  if attributes.key?(:'city')
424
439
  self.city = attributes[:'city']
425
- else
426
- self.city = nil
427
440
  end
428
441
 
429
442
  if attributes.key?(:'state')
@@ -434,8 +447,8 @@ module AvalaraSdk::A1099::V2
434
447
  self.zip = attributes[:'zip']
435
448
  end
436
449
 
437
- if attributes.key?(:'recipient_email')
438
- self.recipient_email = attributes[:'recipient_email']
450
+ if attributes.key?(:'email')
451
+ self.email = attributes[:'email']
439
452
  end
440
453
 
441
454
  if attributes.key?(:'account_number')
@@ -446,14 +459,12 @@ module AvalaraSdk::A1099::V2
446
459
  self.office_code = attributes[:'office_code']
447
460
  end
448
461
 
449
- if attributes.key?(:'recipient_non_us_province')
450
- self.recipient_non_us_province = attributes[:'recipient_non_us_province']
462
+ if attributes.key?(:'non_us_province')
463
+ self.non_us_province = attributes[:'non_us_province']
451
464
  end
452
465
 
453
466
  if attributes.key?(:'country_code')
454
467
  self.country_code = attributes[:'country_code']
455
- else
456
- self.country_code = nil
457
468
  end
458
469
 
459
470
  if attributes.key?(:'federal_e_file')
@@ -472,6 +483,14 @@ module AvalaraSdk::A1099::V2
472
483
  self.tin_match = attributes[:'tin_match']
473
484
  end
474
485
 
486
+ if attributes.key?(:'no_tin')
487
+ self.no_tin = attributes[:'no_tin']
488
+ end
489
+
490
+ if attributes.key?(:'second_tin_notice')
491
+ self.second_tin_notice = attributes[:'second_tin_notice']
492
+ end
493
+
475
494
  if attributes.key?(:'address_verification')
476
495
  self.address_verification = attributes[:'address_verification']
477
496
  end
@@ -486,38 +505,6 @@ module AvalaraSdk::A1099::V2
486
505
  def list_invalid_properties
487
506
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
488
507
  invalid_properties = Array.new
489
- if @recipient_name.nil?
490
- invalid_properties.push('invalid value for "recipient_name", recipient_name cannot be nil.')
491
- end
492
-
493
- if @recipient_name.to_s.length < 1
494
- invalid_properties.push('invalid value for "recipient_name", the character length must be great than or equal to 1.')
495
- end
496
-
497
- if @address.nil?
498
- invalid_properties.push('invalid value for "address", address cannot be nil.')
499
- end
500
-
501
- if @address.to_s.length < 1
502
- invalid_properties.push('invalid value for "address", the character length must be great than or equal to 1.')
503
- end
504
-
505
- if @city.nil?
506
- invalid_properties.push('invalid value for "city", city cannot be nil.')
507
- end
508
-
509
- if @city.to_s.length < 1
510
- invalid_properties.push('invalid value for "city", the character length must be great than or equal to 1.')
511
- end
512
-
513
- if @country_code.nil?
514
- invalid_properties.push('invalid value for "country_code", country_code cannot be nil.')
515
- end
516
-
517
- if @country_code.to_s.length < 1
518
- invalid_properties.push('invalid value for "country_code", the character length must be great than or equal to 1.')
519
- end
520
-
521
508
  invalid_properties
522
509
  end
523
510
 
@@ -525,45 +512,23 @@ module AvalaraSdk::A1099::V2
525
512
  # @return true if the model is valid
526
513
  def valid?
527
514
  warn '[DEPRECATED] the `valid?` method is obsolete'
528
- type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"])
515
+ type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
529
516
  return false unless type_validator.valid?(@type)
530
- return false if @recipient_name.nil?
531
- return false if @recipient_name.to_s.length < 1
532
517
  tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
533
518
  return false unless tin_type_validator.valid?(@tin_type)
534
- return false if @address.nil?
535
- return false if @address.to_s.length < 1
536
- return false if @city.nil?
537
- return false if @city.to_s.length < 1
538
- return false if @country_code.nil?
539
- return false if @country_code.to_s.length < 1
540
519
  true
541
520
  end
542
521
 
543
522
  # Custom attribute writer method checking allowed values (enum).
544
523
  # @param [Object] type Object to be assigned
545
524
  def type=(type)
546
- validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"])
525
+ validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
547
526
  unless validator.valid?(type)
548
527
  fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
549
528
  end
550
529
  @type = type
551
530
  end
552
531
 
553
- # Custom attribute writer method with validation
554
- # @param [Object] recipient_name Value to be assigned
555
- def recipient_name=(recipient_name)
556
- if recipient_name.nil?
557
- fail ArgumentError, 'recipient_name cannot be nil'
558
- end
559
-
560
- if recipient_name.to_s.length < 1
561
- fail ArgumentError, 'invalid value for "recipient_name", the character length must be great than or equal to 1.'
562
- end
563
-
564
- @recipient_name = recipient_name
565
- end
566
-
567
532
  # Custom attribute writer method checking allowed values (enum).
568
533
  # @param [Object] tin_type Object to be assigned
569
534
  def tin_type=(tin_type)
@@ -574,48 +539,6 @@ module AvalaraSdk::A1099::V2
574
539
  @tin_type = tin_type
575
540
  end
576
541
 
577
- # Custom attribute writer method with validation
578
- # @param [Object] address Value to be assigned
579
- def address=(address)
580
- if address.nil?
581
- fail ArgumentError, 'address cannot be nil'
582
- end
583
-
584
- if address.to_s.length < 1
585
- fail ArgumentError, 'invalid value for "address", the character length must be great than or equal to 1.'
586
- end
587
-
588
- @address = address
589
- end
590
-
591
- # Custom attribute writer method with validation
592
- # @param [Object] city Value to be assigned
593
- def city=(city)
594
- if city.nil?
595
- fail ArgumentError, 'city cannot be nil'
596
- end
597
-
598
- if city.to_s.length < 1
599
- fail ArgumentError, 'invalid value for "city", the character length must be great than or equal to 1.'
600
- end
601
-
602
- @city = city
603
- end
604
-
605
- # Custom attribute writer method with validation
606
- # @param [Object] country_code Value to be assigned
607
- def country_code=(country_code)
608
- if country_code.nil?
609
- fail ArgumentError, 'country_code cannot be nil'
610
- end
611
-
612
- if country_code.to_s.length < 1
613
- fail ArgumentError, 'invalid value for "country_code", the character length must be great than or equal to 1.'
614
- end
615
-
616
- @country_code = country_code
617
- end
618
-
619
542
  # Checks equality by comparing each attribute.
620
543
  # @param [Object] Object to be compared
621
544
  def ==(o)
@@ -653,15 +576,17 @@ module AvalaraSdk::A1099::V2
653
576
  city == o.city &&
654
577
  state == o.state &&
655
578
  zip == o.zip &&
656
- recipient_email == o.recipient_email &&
579
+ email == o.email &&
657
580
  account_number == o.account_number &&
658
581
  office_code == o.office_code &&
659
- recipient_non_us_province == o.recipient_non_us_province &&
582
+ non_us_province == o.non_us_province &&
660
583
  country_code == o.country_code &&
661
584
  federal_e_file == o.federal_e_file &&
662
585
  postal_mail == o.postal_mail &&
663
586
  state_e_file == o.state_e_file &&
664
587
  tin_match == o.tin_match &&
588
+ no_tin == o.no_tin &&
589
+ second_tin_notice == o.second_tin_notice &&
665
590
  address_verification == o.address_verification &&
666
591
  state_and_local_withholding == o.state_and_local_withholding
667
592
  end
@@ -675,7 +600,7 @@ module AvalaraSdk::A1099::V2
675
600
  # Calculates hash code according to all attributes.
676
601
  # @return [Integer] Hash code
677
602
  def hash
678
- [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, 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
603
+ [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, 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
679
604
  end
680
605
 
681
606
  # Builds the object from hash