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
@@ -11,9 +11,6 @@ require 'time'
11
11
 
12
12
  module AvalaraSdk::A1099::V2
13
13
  class Form1099MiscRequest
14
- # Second TIN notice
15
- attr_accessor :second_tin_notice
16
-
17
14
  # Rents
18
15
  attr_accessor :rents
19
16
 
@@ -30,7 +27,7 @@ module AvalaraSdk::A1099::V2
30
27
  attr_accessor :fishing_boat_proceeds
31
28
 
32
29
  # Medical and health care payments
33
- attr_accessor :medical_health_care_payments
30
+ attr_accessor :medical_and_health_care_payments
34
31
 
35
32
  # Payer made direct sales totaling $5,000 or more of consumer products to recipient for resale
36
33
  attr_accessor :direct_sales_indicator
@@ -95,7 +92,7 @@ module AvalaraSdk::A1099::V2
95
92
  attr_accessor :zip
96
93
 
97
94
  # Recipient email address
98
- attr_accessor :recipient_email
95
+ attr_accessor :email
99
96
 
100
97
  # Account number
101
98
  attr_accessor :account_number
@@ -104,7 +101,7 @@ module AvalaraSdk::A1099::V2
104
101
  attr_accessor :office_code
105
102
 
106
103
  # Foreign province
107
- attr_accessor :recipient_non_us_province
104
+ attr_accessor :non_us_province
108
105
 
109
106
  # Country code, as defined at https://www.irs.gov/e-file-providers/country-codes
110
107
  attr_accessor :country_code
@@ -121,6 +118,12 @@ module AvalaraSdk::A1099::V2
121
118
  # Boolean indicating that TIN Matching should be scheduled for this form
122
119
  attr_accessor :tin_match
123
120
 
121
+ # Indicates whether the recipient has no TIN
122
+ attr_accessor :no_tin
123
+
124
+ # Second TIN notice in three years
125
+ attr_accessor :second_tin_notice
126
+
124
127
  # Boolean indicating that address verification should be scheduled for this form
125
128
  attr_accessor :address_verification
126
129
 
@@ -152,13 +155,12 @@ module AvalaraSdk::A1099::V2
152
155
  # Attribute mapping from ruby-style variable name to JSON key.
153
156
  def self.attribute_map
154
157
  {
155
- :'second_tin_notice' => :'secondTinNotice',
156
158
  :'rents' => :'rents',
157
159
  :'royalties' => :'royalties',
158
160
  :'other_income' => :'otherIncome',
159
161
  :'fed_income_tax_withheld' => :'fedIncomeTaxWithheld',
160
162
  :'fishing_boat_proceeds' => :'fishingBoatProceeds',
161
- :'medical_health_care_payments' => :'medicalHealthCarePayments',
163
+ :'medical_and_health_care_payments' => :'medicalAndHealthCarePayments',
162
164
  :'direct_sales_indicator' => :'directSalesIndicator',
163
165
  :'substitute_payments' => :'substitutePayments',
164
166
  :'crop_insurance_proceeds' => :'cropInsuranceProceeds',
@@ -180,15 +182,17 @@ module AvalaraSdk::A1099::V2
180
182
  :'city' => :'city',
181
183
  :'state' => :'state',
182
184
  :'zip' => :'zip',
183
- :'recipient_email' => :'recipientEmail',
185
+ :'email' => :'email',
184
186
  :'account_number' => :'accountNumber',
185
187
  :'office_code' => :'officeCode',
186
- :'recipient_non_us_province' => :'recipientNonUsProvince',
188
+ :'non_us_province' => :'nonUsProvince',
187
189
  :'country_code' => :'countryCode',
188
190
  :'federal_e_file' => :'federalEFile',
189
191
  :'postal_mail' => :'postalMail',
190
192
  :'state_e_file' => :'stateEFile',
191
193
  :'tin_match' => :'tinMatch',
194
+ :'no_tin' => :'noTin',
195
+ :'second_tin_notice' => :'secondTinNotice',
192
196
  :'address_verification' => :'addressVerification',
193
197
  :'state_and_local_withholding' => :'stateAndLocalWithholding'
194
198
  }
@@ -202,13 +206,12 @@ module AvalaraSdk::A1099::V2
202
206
  # Attribute type mapping.
203
207
  def self.openapi_types
204
208
  {
205
- :'second_tin_notice' => :'Boolean',
206
209
  :'rents' => :'Float',
207
210
  :'royalties' => :'Float',
208
211
  :'other_income' => :'Float',
209
212
  :'fed_income_tax_withheld' => :'Float',
210
213
  :'fishing_boat_proceeds' => :'Float',
211
- :'medical_health_care_payments' => :'Float',
214
+ :'medical_and_health_care_payments' => :'Float',
212
215
  :'direct_sales_indicator' => :'Boolean',
213
216
  :'substitute_payments' => :'Float',
214
217
  :'crop_insurance_proceeds' => :'Float',
@@ -230,15 +233,17 @@ module AvalaraSdk::A1099::V2
230
233
  :'city' => :'String',
231
234
  :'state' => :'String',
232
235
  :'zip' => :'String',
233
- :'recipient_email' => :'String',
236
+ :'email' => :'String',
234
237
  :'account_number' => :'String',
235
238
  :'office_code' => :'String',
236
- :'recipient_non_us_province' => :'String',
239
+ :'non_us_province' => :'String',
237
240
  :'country_code' => :'String',
238
241
  :'federal_e_file' => :'Boolean',
239
242
  :'postal_mail' => :'Boolean',
240
243
  :'state_e_file' => :'Boolean',
241
244
  :'tin_match' => :'Boolean',
245
+ :'no_tin' => :'Boolean',
246
+ :'second_tin_notice' => :'Boolean',
242
247
  :'address_verification' => :'Boolean',
243
248
  :'state_and_local_withholding' => :'StateAndLocalWithholdingRequest'
244
249
  }
@@ -249,12 +254,21 @@ module AvalaraSdk::A1099::V2
249
254
  Set.new([
250
255
  :'issuer_id',
251
256
  :'reference_id',
257
+ :'recipient_tin',
258
+ :'recipient_name',
252
259
  :'recipient_second_name',
260
+ :'address',
253
261
  :'address2',
254
- :'recipient_email',
262
+ :'city',
263
+ :'state',
264
+ :'zip',
265
+ :'email',
255
266
  :'account_number',
256
267
  :'office_code',
257
- :'recipient_non_us_province',
268
+ :'non_us_province',
269
+ :'country_code',
270
+ :'second_tin_notice',
271
+ :'state_and_local_withholding'
258
272
  ])
259
273
  end
260
274
 
@@ -280,10 +294,6 @@ module AvalaraSdk::A1099::V2
280
294
  h[k.to_sym] = v
281
295
  }
282
296
 
283
- if attributes.key?(:'second_tin_notice')
284
- self.second_tin_notice = attributes[:'second_tin_notice']
285
- end
286
-
287
297
  if attributes.key?(:'rents')
288
298
  self.rents = attributes[:'rents']
289
299
  end
@@ -304,8 +314,8 @@ module AvalaraSdk::A1099::V2
304
314
  self.fishing_boat_proceeds = attributes[:'fishing_boat_proceeds']
305
315
  end
306
316
 
307
- if attributes.key?(:'medical_health_care_payments')
308
- self.medical_health_care_payments = attributes[:'medical_health_care_payments']
317
+ if attributes.key?(:'medical_and_health_care_payments')
318
+ self.medical_and_health_care_payments = attributes[:'medical_and_health_care_payments']
309
319
  end
310
320
 
311
321
  if attributes.key?(:'direct_sales_indicator')
@@ -362,8 +372,6 @@ module AvalaraSdk::A1099::V2
362
372
 
363
373
  if attributes.key?(:'recipient_name')
364
374
  self.recipient_name = attributes[:'recipient_name']
365
- else
366
- self.recipient_name = nil
367
375
  end
368
376
 
369
377
  if attributes.key?(:'tin_type')
@@ -376,8 +384,6 @@ module AvalaraSdk::A1099::V2
376
384
 
377
385
  if attributes.key?(:'address')
378
386
  self.address = attributes[:'address']
379
- else
380
- self.address = nil
381
387
  end
382
388
 
383
389
  if attributes.key?(:'address2')
@@ -386,8 +392,6 @@ module AvalaraSdk::A1099::V2
386
392
 
387
393
  if attributes.key?(:'city')
388
394
  self.city = attributes[:'city']
389
- else
390
- self.city = nil
391
395
  end
392
396
 
393
397
  if attributes.key?(:'state')
@@ -398,8 +402,8 @@ module AvalaraSdk::A1099::V2
398
402
  self.zip = attributes[:'zip']
399
403
  end
400
404
 
401
- if attributes.key?(:'recipient_email')
402
- self.recipient_email = attributes[:'recipient_email']
405
+ if attributes.key?(:'email')
406
+ self.email = attributes[:'email']
403
407
  end
404
408
 
405
409
  if attributes.key?(:'account_number')
@@ -410,14 +414,12 @@ module AvalaraSdk::A1099::V2
410
414
  self.office_code = attributes[:'office_code']
411
415
  end
412
416
 
413
- if attributes.key?(:'recipient_non_us_province')
414
- self.recipient_non_us_province = attributes[:'recipient_non_us_province']
417
+ if attributes.key?(:'non_us_province')
418
+ self.non_us_province = attributes[:'non_us_province']
415
419
  end
416
420
 
417
421
  if attributes.key?(:'country_code')
418
422
  self.country_code = attributes[:'country_code']
419
- else
420
- self.country_code = nil
421
423
  end
422
424
 
423
425
  if attributes.key?(:'federal_e_file')
@@ -436,6 +438,14 @@ module AvalaraSdk::A1099::V2
436
438
  self.tin_match = attributes[:'tin_match']
437
439
  end
438
440
 
441
+ if attributes.key?(:'no_tin')
442
+ self.no_tin = attributes[:'no_tin']
443
+ end
444
+
445
+ if attributes.key?(:'second_tin_notice')
446
+ self.second_tin_notice = attributes[:'second_tin_notice']
447
+ end
448
+
439
449
  if attributes.key?(:'address_verification')
440
450
  self.address_verification = attributes[:'address_verification']
441
451
  end
@@ -450,38 +460,6 @@ module AvalaraSdk::A1099::V2
450
460
  def list_invalid_properties
451
461
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
452
462
  invalid_properties = Array.new
453
- if @recipient_name.nil?
454
- invalid_properties.push('invalid value for "recipient_name", recipient_name cannot be nil.')
455
- end
456
-
457
- if @recipient_name.to_s.length < 1
458
- invalid_properties.push('invalid value for "recipient_name", the character length must be great than or equal to 1.')
459
- end
460
-
461
- if @address.nil?
462
- invalid_properties.push('invalid value for "address", address cannot be nil.')
463
- end
464
-
465
- if @address.to_s.length < 1
466
- invalid_properties.push('invalid value for "address", the character length must be great than or equal to 1.')
467
- end
468
-
469
- if @city.nil?
470
- invalid_properties.push('invalid value for "city", city cannot be nil.')
471
- end
472
-
473
- if @city.to_s.length < 1
474
- invalid_properties.push('invalid value for "city", the character length must be great than or equal to 1.')
475
- end
476
-
477
- if @country_code.nil?
478
- invalid_properties.push('invalid value for "country_code", country_code cannot be nil.')
479
- end
480
-
481
- if @country_code.to_s.length < 1
482
- invalid_properties.push('invalid value for "country_code", the character length must be great than or equal to 1.')
483
- end
484
-
485
463
  invalid_properties
486
464
  end
487
465
 
@@ -489,45 +467,23 @@ module AvalaraSdk::A1099::V2
489
467
  # @return true if the model is valid
490
468
  def valid?
491
469
  warn '[DEPRECATED] the `valid?` method is obsolete'
492
- type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"])
470
+ type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
493
471
  return false unless type_validator.valid?(@type)
494
- return false if @recipient_name.nil?
495
- return false if @recipient_name.to_s.length < 1
496
472
  tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
497
473
  return false unless tin_type_validator.valid?(@tin_type)
498
- return false if @address.nil?
499
- return false if @address.to_s.length < 1
500
- return false if @city.nil?
501
- return false if @city.to_s.length < 1
502
- return false if @country_code.nil?
503
- return false if @country_code.to_s.length < 1
504
474
  true
505
475
  end
506
476
 
507
477
  # Custom attribute writer method checking allowed values (enum).
508
478
  # @param [Object] type Object to be assigned
509
479
  def type=(type)
510
- validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"])
480
+ validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
511
481
  unless validator.valid?(type)
512
482
  fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
513
483
  end
514
484
  @type = type
515
485
  end
516
486
 
517
- # Custom attribute writer method with validation
518
- # @param [Object] recipient_name Value to be assigned
519
- def recipient_name=(recipient_name)
520
- if recipient_name.nil?
521
- fail ArgumentError, 'recipient_name cannot be nil'
522
- end
523
-
524
- if recipient_name.to_s.length < 1
525
- fail ArgumentError, 'invalid value for "recipient_name", the character length must be great than or equal to 1.'
526
- end
527
-
528
- @recipient_name = recipient_name
529
- end
530
-
531
487
  # Custom attribute writer method checking allowed values (enum).
532
488
  # @param [Object] tin_type Object to be assigned
533
489
  def tin_type=(tin_type)
@@ -538,60 +494,17 @@ module AvalaraSdk::A1099::V2
538
494
  @tin_type = tin_type
539
495
  end
540
496
 
541
- # Custom attribute writer method with validation
542
- # @param [Object] address Value to be assigned
543
- def address=(address)
544
- if address.nil?
545
- fail ArgumentError, 'address cannot be nil'
546
- end
547
-
548
- if address.to_s.length < 1
549
- fail ArgumentError, 'invalid value for "address", the character length must be great than or equal to 1.'
550
- end
551
-
552
- @address = address
553
- end
554
-
555
- # Custom attribute writer method with validation
556
- # @param [Object] city Value to be assigned
557
- def city=(city)
558
- if city.nil?
559
- fail ArgumentError, 'city cannot be nil'
560
- end
561
-
562
- if city.to_s.length < 1
563
- fail ArgumentError, 'invalid value for "city", the character length must be great than or equal to 1.'
564
- end
565
-
566
- @city = city
567
- end
568
-
569
- # Custom attribute writer method with validation
570
- # @param [Object] country_code Value to be assigned
571
- def country_code=(country_code)
572
- if country_code.nil?
573
- fail ArgumentError, 'country_code cannot be nil'
574
- end
575
-
576
- if country_code.to_s.length < 1
577
- fail ArgumentError, 'invalid value for "country_code", the character length must be great than or equal to 1.'
578
- end
579
-
580
- @country_code = country_code
581
- end
582
-
583
497
  # Checks equality by comparing each attribute.
584
498
  # @param [Object] Object to be compared
585
499
  def ==(o)
586
500
  return true if self.equal?(o)
587
501
  self.class == o.class &&
588
- second_tin_notice == o.second_tin_notice &&
589
502
  rents == o.rents &&
590
503
  royalties == o.royalties &&
591
504
  other_income == o.other_income &&
592
505
  fed_income_tax_withheld == o.fed_income_tax_withheld &&
593
506
  fishing_boat_proceeds == o.fishing_boat_proceeds &&
594
- medical_health_care_payments == o.medical_health_care_payments &&
507
+ medical_and_health_care_payments == o.medical_and_health_care_payments &&
595
508
  direct_sales_indicator == o.direct_sales_indicator &&
596
509
  substitute_payments == o.substitute_payments &&
597
510
  crop_insurance_proceeds == o.crop_insurance_proceeds &&
@@ -613,15 +526,17 @@ module AvalaraSdk::A1099::V2
613
526
  city == o.city &&
614
527
  state == o.state &&
615
528
  zip == o.zip &&
616
- recipient_email == o.recipient_email &&
529
+ email == o.email &&
617
530
  account_number == o.account_number &&
618
531
  office_code == o.office_code &&
619
- recipient_non_us_province == o.recipient_non_us_province &&
532
+ non_us_province == o.non_us_province &&
620
533
  country_code == o.country_code &&
621
534
  federal_e_file == o.federal_e_file &&
622
535
  postal_mail == o.postal_mail &&
623
536
  state_e_file == o.state_e_file &&
624
537
  tin_match == o.tin_match &&
538
+ no_tin == o.no_tin &&
539
+ second_tin_notice == o.second_tin_notice &&
625
540
  address_verification == o.address_verification &&
626
541
  state_and_local_withholding == o.state_and_local_withholding
627
542
  end
@@ -635,7 +550,7 @@ module AvalaraSdk::A1099::V2
635
550
  # Calculates hash code according to all attributes.
636
551
  # @return [Integer] Hash code
637
552
  def hash
638
- [second_tin_notice, rents, royalties, other_income, fed_income_tax_withheld, fishing_boat_proceeds, medical_health_care_payments, direct_sales_indicator, substitute_payments, crop_insurance_proceeds, gross_proceeds_paid_to_attorney, fish_purchased_for_resale, section409_a_deferrals, fatca_filing_requirement, excess_golden_parachute_payments, nonqualified_deferred_compensation, 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
553
+ [rents, royalties, other_income, fed_income_tax_withheld, fishing_boat_proceeds, medical_and_health_care_payments, direct_sales_indicator, substitute_payments, crop_insurance_proceeds, gross_proceeds_paid_to_attorney, fish_purchased_for_resale, section409_a_deferrals, fatca_filing_requirement, excess_golden_parachute_payments, nonqualified_deferred_compensation, 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
639
554
  end
640
555
 
641
556
  # Builds the object from hash