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
@@ -14,9 +14,6 @@ module AvalaraSdk::A1099::V2
14
14
  # Unique form identifier
15
15
  attr_accessor :unique_form_id
16
16
 
17
- # No TIN indicator
18
- attr_accessor :no_tin
19
-
20
17
  # Recipient's date of birth
21
18
  attr_accessor :recipient_date_of_birth
22
19
 
@@ -122,7 +119,7 @@ module AvalaraSdk::A1099::V2
122
119
  attr_accessor :zip
123
120
 
124
121
  # Recipient email address
125
- attr_accessor :recipient_email
122
+ attr_accessor :email
126
123
 
127
124
  # Account number
128
125
  attr_accessor :account_number
@@ -131,7 +128,7 @@ module AvalaraSdk::A1099::V2
131
128
  attr_accessor :office_code
132
129
 
133
130
  # Foreign province
134
- attr_accessor :recipient_non_us_province
131
+ attr_accessor :non_us_province
135
132
 
136
133
  # Country code, as defined at https://www.irs.gov/e-file-providers/country-codes
137
134
  attr_accessor :country_code
@@ -148,6 +145,15 @@ module AvalaraSdk::A1099::V2
148
145
  # Boolean indicating that TIN Matching should be scheduled for this form
149
146
  attr_accessor :tin_match
150
147
 
148
+ # Indicates whether the recipient has no TIN
149
+ attr_accessor :no_tin
150
+
151
+ # Second TIN notice in three years
152
+ attr_accessor :second_tin_notice
153
+
154
+ # Fatca filing requirement
155
+ attr_accessor :fatca_filing_requirement
156
+
151
157
  # Boolean indicating that address verification should be scheduled for this form
152
158
  attr_accessor :address_verification
153
159
 
@@ -177,7 +183,6 @@ module AvalaraSdk::A1099::V2
177
183
  def self.attribute_map
178
184
  {
179
185
  :'unique_form_id' => :'uniqueFormId',
180
- :'no_tin' => :'noTin',
181
186
  :'recipient_date_of_birth' => :'recipientDateOfBirth',
182
187
  :'recipient_giin' => :'recipientGiin',
183
188
  :'recipient_foreign_tin' => :'recipientForeignTin',
@@ -213,15 +218,18 @@ module AvalaraSdk::A1099::V2
213
218
  :'city' => :'city',
214
219
  :'state' => :'state',
215
220
  :'zip' => :'zip',
216
- :'recipient_email' => :'recipientEmail',
221
+ :'email' => :'email',
217
222
  :'account_number' => :'accountNumber',
218
223
  :'office_code' => :'officeCode',
219
- :'recipient_non_us_province' => :'recipientNonUsProvince',
224
+ :'non_us_province' => :'nonUsProvince',
220
225
  :'country_code' => :'countryCode',
221
226
  :'federal_e_file' => :'federalEFile',
222
227
  :'postal_mail' => :'postalMail',
223
228
  :'state_e_file' => :'stateEFile',
224
229
  :'tin_match' => :'tinMatch',
230
+ :'no_tin' => :'noTin',
231
+ :'second_tin_notice' => :'secondTinNotice',
232
+ :'fatca_filing_requirement' => :'fatcaFilingRequirement',
225
233
  :'address_verification' => :'addressVerification'
226
234
  }
227
235
  end
@@ -235,7 +243,6 @@ module AvalaraSdk::A1099::V2
235
243
  def self.openapi_types
236
244
  {
237
245
  :'unique_form_id' => :'String',
238
- :'no_tin' => :'Boolean',
239
246
  :'recipient_date_of_birth' => :'Time',
240
247
  :'recipient_giin' => :'String',
241
248
  :'recipient_foreign_tin' => :'String',
@@ -271,15 +278,18 @@ module AvalaraSdk::A1099::V2
271
278
  :'city' => :'String',
272
279
  :'state' => :'String',
273
280
  :'zip' => :'String',
274
- :'recipient_email' => :'String',
281
+ :'email' => :'String',
275
282
  :'account_number' => :'String',
276
283
  :'office_code' => :'String',
277
- :'recipient_non_us_province' => :'String',
284
+ :'non_us_province' => :'String',
278
285
  :'country_code' => :'String',
279
286
  :'federal_e_file' => :'Boolean',
280
287
  :'postal_mail' => :'Boolean',
281
288
  :'state_e_file' => :'Boolean',
282
289
  :'tin_match' => :'Boolean',
290
+ :'no_tin' => :'Boolean',
291
+ :'second_tin_notice' => :'Boolean',
292
+ :'fatca_filing_requirement' => :'Boolean',
283
293
  :'address_verification' => :'Boolean'
284
294
  }
285
295
  end
@@ -287,7 +297,6 @@ module AvalaraSdk::A1099::V2
287
297
  # List of attributes with nullable: true
288
298
  def self.openapi_nullable
289
299
  Set.new([
290
- :'no_tin',
291
300
  :'recipient_date_of_birth',
292
301
  :'recipient_giin',
293
302
  :'recipient_foreign_tin',
@@ -309,12 +318,20 @@ module AvalaraSdk::A1099::V2
309
318
  :'chap4_status_code',
310
319
  :'issuer_id',
311
320
  :'reference_id',
321
+ :'recipient_tin',
322
+ :'recipient_name',
312
323
  :'recipient_second_name',
324
+ :'address',
313
325
  :'address2',
314
- :'recipient_email',
326
+ :'city',
327
+ :'state',
328
+ :'zip',
329
+ :'email',
315
330
  :'account_number',
316
331
  :'office_code',
317
- :'recipient_non_us_province',
332
+ :'non_us_province',
333
+ :'country_code',
334
+ :'second_tin_notice',
318
335
  ])
319
336
  end
320
337
 
@@ -344,10 +361,6 @@ module AvalaraSdk::A1099::V2
344
361
  self.unique_form_id = attributes[:'unique_form_id']
345
362
  end
346
363
 
347
- if attributes.key?(:'no_tin')
348
- self.no_tin = attributes[:'no_tin']
349
- end
350
-
351
364
  if attributes.key?(:'recipient_date_of_birth')
352
365
  self.recipient_date_of_birth = attributes[:'recipient_date_of_birth']
353
366
  end
@@ -458,8 +471,6 @@ module AvalaraSdk::A1099::V2
458
471
 
459
472
  if attributes.key?(:'recipient_name')
460
473
  self.recipient_name = attributes[:'recipient_name']
461
- else
462
- self.recipient_name = nil
463
474
  end
464
475
 
465
476
  if attributes.key?(:'tin_type')
@@ -472,8 +483,6 @@ module AvalaraSdk::A1099::V2
472
483
 
473
484
  if attributes.key?(:'address')
474
485
  self.address = attributes[:'address']
475
- else
476
- self.address = nil
477
486
  end
478
487
 
479
488
  if attributes.key?(:'address2')
@@ -482,8 +491,6 @@ module AvalaraSdk::A1099::V2
482
491
 
483
492
  if attributes.key?(:'city')
484
493
  self.city = attributes[:'city']
485
- else
486
- self.city = nil
487
494
  end
488
495
 
489
496
  if attributes.key?(:'state')
@@ -494,8 +501,8 @@ module AvalaraSdk::A1099::V2
494
501
  self.zip = attributes[:'zip']
495
502
  end
496
503
 
497
- if attributes.key?(:'recipient_email')
498
- self.recipient_email = attributes[:'recipient_email']
504
+ if attributes.key?(:'email')
505
+ self.email = attributes[:'email']
499
506
  end
500
507
 
501
508
  if attributes.key?(:'account_number')
@@ -506,14 +513,12 @@ module AvalaraSdk::A1099::V2
506
513
  self.office_code = attributes[:'office_code']
507
514
  end
508
515
 
509
- if attributes.key?(:'recipient_non_us_province')
510
- self.recipient_non_us_province = attributes[:'recipient_non_us_province']
516
+ if attributes.key?(:'non_us_province')
517
+ self.non_us_province = attributes[:'non_us_province']
511
518
  end
512
519
 
513
520
  if attributes.key?(:'country_code')
514
521
  self.country_code = attributes[:'country_code']
515
- else
516
- self.country_code = nil
517
522
  end
518
523
 
519
524
  if attributes.key?(:'federal_e_file')
@@ -532,6 +537,18 @@ module AvalaraSdk::A1099::V2
532
537
  self.tin_match = attributes[:'tin_match']
533
538
  end
534
539
 
540
+ if attributes.key?(:'no_tin')
541
+ self.no_tin = attributes[:'no_tin']
542
+ end
543
+
544
+ if attributes.key?(:'second_tin_notice')
545
+ self.second_tin_notice = attributes[:'second_tin_notice']
546
+ end
547
+
548
+ if attributes.key?(:'fatca_filing_requirement')
549
+ self.fatca_filing_requirement = attributes[:'fatca_filing_requirement']
550
+ end
551
+
535
552
  if attributes.key?(:'address_verification')
536
553
  self.address_verification = attributes[:'address_verification']
537
554
  end
@@ -542,38 +559,6 @@ module AvalaraSdk::A1099::V2
542
559
  def list_invalid_properties
543
560
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
544
561
  invalid_properties = Array.new
545
- if @recipient_name.nil?
546
- invalid_properties.push('invalid value for "recipient_name", recipient_name cannot be nil.')
547
- end
548
-
549
- if @recipient_name.to_s.length < 1
550
- invalid_properties.push('invalid value for "recipient_name", the character length must be great than or equal to 1.')
551
- end
552
-
553
- if @address.nil?
554
- invalid_properties.push('invalid value for "address", address cannot be nil.')
555
- end
556
-
557
- if @address.to_s.length < 1
558
- invalid_properties.push('invalid value for "address", the character length must be great than or equal to 1.')
559
- end
560
-
561
- if @city.nil?
562
- invalid_properties.push('invalid value for "city", city cannot be nil.')
563
- end
564
-
565
- if @city.to_s.length < 1
566
- invalid_properties.push('invalid value for "city", the character length must be great than or equal to 1.')
567
- end
568
-
569
- if @country_code.nil?
570
- invalid_properties.push('invalid value for "country_code", country_code cannot be nil.')
571
- end
572
-
573
- if @country_code.to_s.length < 1
574
- invalid_properties.push('invalid value for "country_code", the character length must be great than or equal to 1.')
575
- end
576
-
577
562
  invalid_properties
578
563
  end
579
564
 
@@ -581,45 +566,23 @@ module AvalaraSdk::A1099::V2
581
566
  # @return true if the model is valid
582
567
  def valid?
583
568
  warn '[DEPRECATED] the `valid?` method is obsolete'
584
- type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"])
569
+ type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
585
570
  return false unless type_validator.valid?(@type)
586
- return false if @recipient_name.nil?
587
- return false if @recipient_name.to_s.length < 1
588
571
  tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
589
572
  return false unless tin_type_validator.valid?(@tin_type)
590
- return false if @address.nil?
591
- return false if @address.to_s.length < 1
592
- return false if @city.nil?
593
- return false if @city.to_s.length < 1
594
- return false if @country_code.nil?
595
- return false if @country_code.to_s.length < 1
596
573
  true
597
574
  end
598
575
 
599
576
  # Custom attribute writer method checking allowed values (enum).
600
577
  # @param [Object] type Object to be assigned
601
578
  def type=(type)
602
- validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"])
579
+ validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
603
580
  unless validator.valid?(type)
604
581
  fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
605
582
  end
606
583
  @type = type
607
584
  end
608
585
 
609
- # Custom attribute writer method with validation
610
- # @param [Object] recipient_name Value to be assigned
611
- def recipient_name=(recipient_name)
612
- if recipient_name.nil?
613
- fail ArgumentError, 'recipient_name cannot be nil'
614
- end
615
-
616
- if recipient_name.to_s.length < 1
617
- fail ArgumentError, 'invalid value for "recipient_name", the character length must be great than or equal to 1.'
618
- end
619
-
620
- @recipient_name = recipient_name
621
- end
622
-
623
586
  # Custom attribute writer method checking allowed values (enum).
624
587
  # @param [Object] tin_type Object to be assigned
625
588
  def tin_type=(tin_type)
@@ -630,55 +593,12 @@ module AvalaraSdk::A1099::V2
630
593
  @tin_type = tin_type
631
594
  end
632
595
 
633
- # Custom attribute writer method with validation
634
- # @param [Object] address Value to be assigned
635
- def address=(address)
636
- if address.nil?
637
- fail ArgumentError, 'address cannot be nil'
638
- end
639
-
640
- if address.to_s.length < 1
641
- fail ArgumentError, 'invalid value for "address", the character length must be great than or equal to 1.'
642
- end
643
-
644
- @address = address
645
- end
646
-
647
- # Custom attribute writer method with validation
648
- # @param [Object] city Value to be assigned
649
- def city=(city)
650
- if city.nil?
651
- fail ArgumentError, 'city cannot be nil'
652
- end
653
-
654
- if city.to_s.length < 1
655
- fail ArgumentError, 'invalid value for "city", the character length must be great than or equal to 1.'
656
- end
657
-
658
- @city = city
659
- end
660
-
661
- # Custom attribute writer method with validation
662
- # @param [Object] country_code Value to be assigned
663
- def country_code=(country_code)
664
- if country_code.nil?
665
- fail ArgumentError, 'country_code cannot be nil'
666
- end
667
-
668
- if country_code.to_s.length < 1
669
- fail ArgumentError, 'invalid value for "country_code", the character length must be great than or equal to 1.'
670
- end
671
-
672
- @country_code = country_code
673
- end
674
-
675
596
  # Checks equality by comparing each attribute.
676
597
  # @param [Object] Object to be compared
677
598
  def ==(o)
678
599
  return true if self.equal?(o)
679
600
  self.class == o.class &&
680
601
  unique_form_id == o.unique_form_id &&
681
- no_tin == o.no_tin &&
682
602
  recipient_date_of_birth == o.recipient_date_of_birth &&
683
603
  recipient_giin == o.recipient_giin &&
684
604
  recipient_foreign_tin == o.recipient_foreign_tin &&
@@ -714,15 +634,18 @@ module AvalaraSdk::A1099::V2
714
634
  city == o.city &&
715
635
  state == o.state &&
716
636
  zip == o.zip &&
717
- recipient_email == o.recipient_email &&
637
+ email == o.email &&
718
638
  account_number == o.account_number &&
719
639
  office_code == o.office_code &&
720
- recipient_non_us_province == o.recipient_non_us_province &&
640
+ non_us_province == o.non_us_province &&
721
641
  country_code == o.country_code &&
722
642
  federal_e_file == o.federal_e_file &&
723
643
  postal_mail == o.postal_mail &&
724
644
  state_e_file == o.state_e_file &&
725
645
  tin_match == o.tin_match &&
646
+ no_tin == o.no_tin &&
647
+ second_tin_notice == o.second_tin_notice &&
648
+ fatca_filing_requirement == o.fatca_filing_requirement &&
726
649
  address_verification == o.address_verification
727
650
  end
728
651
 
@@ -735,7 +658,7 @@ module AvalaraSdk::A1099::V2
735
658
  # Calculates hash code according to all attributes.
736
659
  # @return [Integer] Hash code
737
660
  def hash
738
- [unique_form_id, no_tin, recipient_date_of_birth, recipient_giin, recipient_foreign_tin, lob_code, income_code, gross_income, withholding_indicator, tax_country_code, exemption_code_chap3, exemption_code_chap4, tax_rate_chap3, withholding_allowance, federal_tax_withheld, tax_not_deposited_indicator, academic_indicator, tax_withheld_other_agents, amount_repaid, tax_paid_agent, chap3_status_code, chap4_status_code, primary_withholding_agent, intermediary_or_flow_through, state_and_local_withholding, 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].hash
661
+ [unique_form_id, recipient_date_of_birth, recipient_giin, recipient_foreign_tin, lob_code, income_code, gross_income, withholding_indicator, tax_country_code, exemption_code_chap3, exemption_code_chap4, tax_rate_chap3, withholding_allowance, federal_tax_withheld, tax_not_deposited_indicator, academic_indicator, tax_withheld_other_agents, amount_repaid, tax_paid_agent, chap3_status_code, chap4_status_code, primary_withholding_agent, intermediary_or_flow_through, state_and_local_withholding, 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, fatca_filing_requirement, address_verification].hash
739
662
  end
740
663
 
741
664
  # Builds the object from hash
@@ -17,8 +17,6 @@ module AvalaraSdk::A1099::V2
17
17
 
18
18
  attr_accessor :updated_at
19
19
 
20
- attr_accessor :user_id
21
-
22
20
  attr_accessor :state_and_local_withholding
23
21
 
24
22
  attr_accessor :tin_type
@@ -51,13 +49,13 @@ module AvalaraSdk::A1099::V2
51
49
 
52
50
  attr_accessor :zip
53
51
 
54
- attr_accessor :recipient_email
52
+ attr_accessor :email
55
53
 
56
54
  attr_accessor :account_number
57
55
 
58
56
  attr_accessor :office_code
59
57
 
60
- attr_accessor :recipient_non_us_province
58
+ attr_accessor :non_us_province
61
59
 
62
60
  attr_accessor :country_code
63
61
 
@@ -69,10 +67,16 @@ module AvalaraSdk::A1099::V2
69
67
 
70
68
  attr_accessor :tin_match
71
69
 
70
+ attr_accessor :no_tin
71
+
72
+ attr_accessor :second_tin_notice
73
+
72
74
  attr_accessor :address_verification
73
75
 
74
76
  attr_accessor :federal_efile_status
75
77
 
78
+ attr_accessor :e_delivery_status
79
+
76
80
  attr_accessor :state_efile_status
77
81
 
78
82
  attr_accessor :postal_mail_status
@@ -111,7 +115,6 @@ module AvalaraSdk::A1099::V2
111
115
  :'type' => :'type',
112
116
  :'created_at' => :'createdAt',
113
117
  :'updated_at' => :'updatedAt',
114
- :'user_id' => :'userId',
115
118
  :'state_and_local_withholding' => :'stateAndLocalWithholding',
116
119
  :'tin_type' => :'tinType',
117
120
  :'id' => :'id',
@@ -128,17 +131,20 @@ module AvalaraSdk::A1099::V2
128
131
  :'city' => :'city',
129
132
  :'state' => :'state',
130
133
  :'zip' => :'zip',
131
- :'recipient_email' => :'recipientEmail',
134
+ :'email' => :'email',
132
135
  :'account_number' => :'accountNumber',
133
136
  :'office_code' => :'officeCode',
134
- :'recipient_non_us_province' => :'recipientNonUsProvince',
137
+ :'non_us_province' => :'nonUsProvince',
135
138
  :'country_code' => :'countryCode',
136
139
  :'federal_e_file' => :'federalEFile',
137
140
  :'postal_mail' => :'postalMail',
138
141
  :'state_e_file' => :'stateEFile',
139
142
  :'tin_match' => :'tinMatch',
143
+ :'no_tin' => :'noTin',
144
+ :'second_tin_notice' => :'secondTinNotice',
140
145
  :'address_verification' => :'addressVerification',
141
146
  :'federal_efile_status' => :'federalEfileStatus',
147
+ :'e_delivery_status' => :'eDeliveryStatus',
142
148
  :'state_efile_status' => :'stateEfileStatus',
143
149
  :'postal_mail_status' => :'postalMailStatus',
144
150
  :'tin_match_status' => :'tinMatchStatus',
@@ -158,7 +164,6 @@ module AvalaraSdk::A1099::V2
158
164
  :'type' => :'String',
159
165
  :'created_at' => :'Time',
160
166
  :'updated_at' => :'Time',
161
- :'user_id' => :'String',
162
167
  :'state_and_local_withholding' => :'StateAndLocalWithholdingResponse',
163
168
  :'tin_type' => :'String',
164
169
  :'id' => :'String',
@@ -175,17 +180,20 @@ module AvalaraSdk::A1099::V2
175
180
  :'city' => :'String',
176
181
  :'state' => :'String',
177
182
  :'zip' => :'String',
178
- :'recipient_email' => :'String',
183
+ :'email' => :'String',
179
184
  :'account_number' => :'String',
180
185
  :'office_code' => :'String',
181
- :'recipient_non_us_province' => :'String',
186
+ :'non_us_province' => :'String',
182
187
  :'country_code' => :'String',
183
188
  :'federal_e_file' => :'Boolean',
184
189
  :'postal_mail' => :'Boolean',
185
190
  :'state_e_file' => :'Boolean',
186
191
  :'tin_match' => :'Boolean',
192
+ :'no_tin' => :'Boolean',
193
+ :'second_tin_notice' => :'Boolean',
187
194
  :'address_verification' => :'Boolean',
188
195
  :'federal_efile_status' => :'StatusDetail',
196
+ :'e_delivery_status' => :'StatusDetail',
189
197
  :'state_efile_status' => :'Array<StateEfileStatusDetailResponse>',
190
198
  :'postal_mail_status' => :'StatusDetail',
191
199
  :'tin_match_status' => :'StatusDetail',
@@ -198,6 +206,7 @@ module AvalaraSdk::A1099::V2
198
206
  def self.openapi_nullable
199
207
  Set.new([
200
208
  :'federal_efile_status',
209
+ :'e_delivery_status',
201
210
  :'state_efile_status',
202
211
  :'postal_mail_status',
203
212
  :'tin_match_status',
@@ -240,10 +249,6 @@ module AvalaraSdk::A1099::V2
240
249
  self.updated_at = attributes[:'updated_at']
241
250
  end
242
251
 
243
- if attributes.key?(:'user_id')
244
- self.user_id = attributes[:'user_id']
245
- end
246
-
247
252
  if attributes.key?(:'state_and_local_withholding')
248
253
  self.state_and_local_withholding = attributes[:'state_and_local_withholding']
249
254
  end
@@ -308,8 +313,8 @@ module AvalaraSdk::A1099::V2
308
313
  self.zip = attributes[:'zip']
309
314
  end
310
315
 
311
- if attributes.key?(:'recipient_email')
312
- self.recipient_email = attributes[:'recipient_email']
316
+ if attributes.key?(:'email')
317
+ self.email = attributes[:'email']
313
318
  end
314
319
 
315
320
  if attributes.key?(:'account_number')
@@ -320,8 +325,8 @@ module AvalaraSdk::A1099::V2
320
325
  self.office_code = attributes[:'office_code']
321
326
  end
322
327
 
323
- if attributes.key?(:'recipient_non_us_province')
324
- self.recipient_non_us_province = attributes[:'recipient_non_us_province']
328
+ if attributes.key?(:'non_us_province')
329
+ self.non_us_province = attributes[:'non_us_province']
325
330
  end
326
331
 
327
332
  if attributes.key?(:'country_code')
@@ -344,6 +349,14 @@ module AvalaraSdk::A1099::V2
344
349
  self.tin_match = attributes[:'tin_match']
345
350
  end
346
351
 
352
+ if attributes.key?(:'no_tin')
353
+ self.no_tin = attributes[:'no_tin']
354
+ end
355
+
356
+ if attributes.key?(:'second_tin_notice')
357
+ self.second_tin_notice = attributes[:'second_tin_notice']
358
+ end
359
+
347
360
  if attributes.key?(:'address_verification')
348
361
  self.address_verification = attributes[:'address_verification']
349
362
  end
@@ -352,6 +365,10 @@ module AvalaraSdk::A1099::V2
352
365
  self.federal_efile_status = attributes[:'federal_efile_status']
353
366
  end
354
367
 
368
+ if attributes.key?(:'e_delivery_status')
369
+ self.e_delivery_status = attributes[:'e_delivery_status']
370
+ end
371
+
355
372
  if attributes.key?(:'state_efile_status')
356
373
  if (value = attributes[:'state_efile_status']).is_a?(Array)
357
374
  self.state_efile_status = value
@@ -389,7 +406,7 @@ module AvalaraSdk::A1099::V2
389
406
  # @return true if the model is valid
390
407
  def valid?
391
408
  warn '[DEPRECATED] the `valid?` method is obsolete'
392
- type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"])
409
+ type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
393
410
  return false unless type_validator.valid?(@type)
394
411
  tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
395
412
  return false unless tin_type_validator.valid?(@tin_type)
@@ -399,7 +416,7 @@ module AvalaraSdk::A1099::V2
399
416
  # Custom attribute writer method checking allowed values (enum).
400
417
  # @param [Object] type Object to be assigned
401
418
  def type=(type)
402
- validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"])
419
+ validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
403
420
  unless validator.valid?(type)
404
421
  fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
405
422
  end
@@ -436,7 +453,6 @@ module AvalaraSdk::A1099::V2
436
453
  type == o.type &&
437
454
  created_at == o.created_at &&
438
455
  updated_at == o.updated_at &&
439
- user_id == o.user_id &&
440
456
  state_and_local_withholding == o.state_and_local_withholding &&
441
457
  tin_type == o.tin_type &&
442
458
  id == o.id &&
@@ -453,17 +469,20 @@ module AvalaraSdk::A1099::V2
453
469
  city == o.city &&
454
470
  state == o.state &&
455
471
  zip == o.zip &&
456
- recipient_email == o.recipient_email &&
472
+ email == o.email &&
457
473
  account_number == o.account_number &&
458
474
  office_code == o.office_code &&
459
- recipient_non_us_province == o.recipient_non_us_province &&
475
+ non_us_province == o.non_us_province &&
460
476
  country_code == o.country_code &&
461
477
  federal_e_file == o.federal_e_file &&
462
478
  postal_mail == o.postal_mail &&
463
479
  state_e_file == o.state_e_file &&
464
480
  tin_match == o.tin_match &&
481
+ no_tin == o.no_tin &&
482
+ second_tin_notice == o.second_tin_notice &&
465
483
  address_verification == o.address_verification &&
466
484
  federal_efile_status == o.federal_efile_status &&
485
+ e_delivery_status == o.e_delivery_status &&
467
486
  state_efile_status == o.state_efile_status &&
468
487
  postal_mail_status == o.postal_mail_status &&
469
488
  tin_match_status == o.tin_match_status &&
@@ -480,7 +499,7 @@ module AvalaraSdk::A1099::V2
480
499
  # Calculates hash code according to all attributes.
481
500
  # @return [Integer] Hash code
482
501
  def hash
483
- [type, created_at, updated_at, user_id, state_and_local_withholding, tin_type, id, issuer_id, issuer_reference_id, issuer_tin, tax_year, reference_id, recipient_name, recipient_tin, 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, federal_efile_status, state_efile_status, postal_mail_status, tin_match_status, address_verification_status, validation_errors].hash
502
+ [type, created_at, updated_at, state_and_local_withholding, tin_type, id, issuer_id, issuer_reference_id, issuer_tin, tax_year, reference_id, recipient_name, recipient_tin, 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, federal_efile_status, e_delivery_status, state_efile_status, postal_mail_status, tin_match_status, address_verification_status, validation_errors].hash
484
503
  end
485
504
 
486
505
  # Builds the object from hash