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 Form1099MiscListItem
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
@@ -102,7 +99,7 @@ module AvalaraSdk::A1099::V2
102
99
  attr_accessor :zip
103
100
 
104
101
  # Recipient email address
105
- attr_accessor :recipient_email
102
+ attr_accessor :email
106
103
 
107
104
  # Account number
108
105
  attr_accessor :account_number
@@ -111,7 +108,7 @@ module AvalaraSdk::A1099::V2
111
108
  attr_accessor :office_code
112
109
 
113
110
  # Foreign province
114
- attr_accessor :recipient_non_us_province
111
+ attr_accessor :non_us_province
115
112
 
116
113
  # Country code, as defined at https://www.irs.gov/e-file-providers/country-codes
117
114
  attr_accessor :country_code
@@ -128,6 +125,12 @@ module AvalaraSdk::A1099::V2
128
125
  # Boolean indicating that TIN Matching should be scheduled for this form
129
126
  attr_accessor :tin_match
130
127
 
128
+ # Indicates whether the recipient has no TIN
129
+ attr_accessor :no_tin
130
+
131
+ # Second TIN notice in three years
132
+ attr_accessor :second_tin_notice
133
+
131
134
  # Boolean indicating that address verification should be scheduled for this form
132
135
  attr_accessor :address_verification
133
136
 
@@ -159,13 +162,12 @@ module AvalaraSdk::A1099::V2
159
162
  # Attribute mapping from ruby-style variable name to JSON key.
160
163
  def self.attribute_map
161
164
  {
162
- :'second_tin_notice' => :'secondTinNotice',
163
165
  :'rents' => :'rents',
164
166
  :'royalties' => :'royalties',
165
167
  :'other_income' => :'otherIncome',
166
168
  :'fed_income_tax_withheld' => :'fedIncomeTaxWithheld',
167
169
  :'fishing_boat_proceeds' => :'fishingBoatProceeds',
168
- :'medical_health_care_payments' => :'medicalHealthCarePayments',
170
+ :'medical_and_health_care_payments' => :'medicalAndHealthCarePayments',
169
171
  :'direct_sales_indicator' => :'directSalesIndicator',
170
172
  :'substitute_payments' => :'substitutePayments',
171
173
  :'crop_insurance_proceeds' => :'cropInsuranceProceeds',
@@ -189,15 +191,17 @@ module AvalaraSdk::A1099::V2
189
191
  :'city' => :'city',
190
192
  :'state' => :'state',
191
193
  :'zip' => :'zip',
192
- :'recipient_email' => :'recipientEmail',
194
+ :'email' => :'email',
193
195
  :'account_number' => :'accountNumber',
194
196
  :'office_code' => :'officeCode',
195
- :'recipient_non_us_province' => :'recipientNonUsProvince',
197
+ :'non_us_province' => :'nonUsProvince',
196
198
  :'country_code' => :'countryCode',
197
199
  :'federal_e_file' => :'federalEFile',
198
200
  :'postal_mail' => :'postalMail',
199
201
  :'state_e_file' => :'stateEFile',
200
202
  :'tin_match' => :'tinMatch',
203
+ :'no_tin' => :'noTin',
204
+ :'second_tin_notice' => :'secondTinNotice',
201
205
  :'address_verification' => :'addressVerification',
202
206
  :'state_and_local_withholding' => :'stateAndLocalWithholding'
203
207
  }
@@ -211,13 +215,12 @@ module AvalaraSdk::A1099::V2
211
215
  # Attribute type mapping.
212
216
  def self.openapi_types
213
217
  {
214
- :'second_tin_notice' => :'Boolean',
215
218
  :'rents' => :'Float',
216
219
  :'royalties' => :'Float',
217
220
  :'other_income' => :'Float',
218
221
  :'fed_income_tax_withheld' => :'Float',
219
222
  :'fishing_boat_proceeds' => :'Float',
220
- :'medical_health_care_payments' => :'Float',
223
+ :'medical_and_health_care_payments' => :'Float',
221
224
  :'direct_sales_indicator' => :'Boolean',
222
225
  :'substitute_payments' => :'Float',
223
226
  :'crop_insurance_proceeds' => :'Float',
@@ -241,15 +244,17 @@ module AvalaraSdk::A1099::V2
241
244
  :'city' => :'String',
242
245
  :'state' => :'String',
243
246
  :'zip' => :'String',
244
- :'recipient_email' => :'String',
247
+ :'email' => :'String',
245
248
  :'account_number' => :'String',
246
249
  :'office_code' => :'String',
247
- :'recipient_non_us_province' => :'String',
250
+ :'non_us_province' => :'String',
248
251
  :'country_code' => :'String',
249
252
  :'federal_e_file' => :'Boolean',
250
253
  :'postal_mail' => :'Boolean',
251
254
  :'state_e_file' => :'Boolean',
252
255
  :'tin_match' => :'Boolean',
256
+ :'no_tin' => :'Boolean',
257
+ :'second_tin_notice' => :'Boolean',
253
258
  :'address_verification' => :'Boolean',
254
259
  :'state_and_local_withholding' => :'StateAndLocalWithholdingRequest'
255
260
  }
@@ -258,14 +263,25 @@ module AvalaraSdk::A1099::V2
258
263
  # List of attributes with nullable: true
259
264
  def self.openapi_nullable
260
265
  Set.new([
266
+ :'issuer_reference_id',
267
+ :'issuer_tin',
261
268
  :'issuer_id',
262
269
  :'reference_id',
270
+ :'recipient_tin',
271
+ :'recipient_name',
263
272
  :'recipient_second_name',
273
+ :'address',
264
274
  :'address2',
265
- :'recipient_email',
275
+ :'city',
276
+ :'state',
277
+ :'zip',
278
+ :'email',
266
279
  :'account_number',
267
280
  :'office_code',
268
- :'recipient_non_us_province',
281
+ :'non_us_province',
282
+ :'country_code',
283
+ :'second_tin_notice',
284
+ :'state_and_local_withholding'
269
285
  ])
270
286
  end
271
287
 
@@ -291,10 +307,6 @@ module AvalaraSdk::A1099::V2
291
307
  h[k.to_sym] = v
292
308
  }
293
309
 
294
- if attributes.key?(:'second_tin_notice')
295
- self.second_tin_notice = attributes[:'second_tin_notice']
296
- end
297
-
298
310
  if attributes.key?(:'rents')
299
311
  self.rents = attributes[:'rents']
300
312
  end
@@ -315,8 +327,8 @@ module AvalaraSdk::A1099::V2
315
327
  self.fishing_boat_proceeds = attributes[:'fishing_boat_proceeds']
316
328
  end
317
329
 
318
- if attributes.key?(:'medical_health_care_payments')
319
- self.medical_health_care_payments = attributes[:'medical_health_care_payments']
330
+ if attributes.key?(:'medical_and_health_care_payments')
331
+ self.medical_and_health_care_payments = attributes[:'medical_and_health_care_payments']
320
332
  end
321
333
 
322
334
  if attributes.key?(:'direct_sales_indicator')
@@ -383,8 +395,6 @@ module AvalaraSdk::A1099::V2
383
395
 
384
396
  if attributes.key?(:'recipient_name')
385
397
  self.recipient_name = attributes[:'recipient_name']
386
- else
387
- self.recipient_name = nil
388
398
  end
389
399
 
390
400
  if attributes.key?(:'tin_type')
@@ -397,8 +407,6 @@ module AvalaraSdk::A1099::V2
397
407
 
398
408
  if attributes.key?(:'address')
399
409
  self.address = attributes[:'address']
400
- else
401
- self.address = nil
402
410
  end
403
411
 
404
412
  if attributes.key?(:'address2')
@@ -407,8 +415,6 @@ module AvalaraSdk::A1099::V2
407
415
 
408
416
  if attributes.key?(:'city')
409
417
  self.city = attributes[:'city']
410
- else
411
- self.city = nil
412
418
  end
413
419
 
414
420
  if attributes.key?(:'state')
@@ -419,8 +425,8 @@ module AvalaraSdk::A1099::V2
419
425
  self.zip = attributes[:'zip']
420
426
  end
421
427
 
422
- if attributes.key?(:'recipient_email')
423
- self.recipient_email = attributes[:'recipient_email']
428
+ if attributes.key?(:'email')
429
+ self.email = attributes[:'email']
424
430
  end
425
431
 
426
432
  if attributes.key?(:'account_number')
@@ -431,14 +437,12 @@ module AvalaraSdk::A1099::V2
431
437
  self.office_code = attributes[:'office_code']
432
438
  end
433
439
 
434
- if attributes.key?(:'recipient_non_us_province')
435
- self.recipient_non_us_province = attributes[:'recipient_non_us_province']
440
+ if attributes.key?(:'non_us_province')
441
+ self.non_us_province = attributes[:'non_us_province']
436
442
  end
437
443
 
438
444
  if attributes.key?(:'country_code')
439
445
  self.country_code = attributes[:'country_code']
440
- else
441
- self.country_code = nil
442
446
  end
443
447
 
444
448
  if attributes.key?(:'federal_e_file')
@@ -457,6 +461,14 @@ module AvalaraSdk::A1099::V2
457
461
  self.tin_match = attributes[:'tin_match']
458
462
  end
459
463
 
464
+ if attributes.key?(:'no_tin')
465
+ self.no_tin = attributes[:'no_tin']
466
+ end
467
+
468
+ if attributes.key?(:'second_tin_notice')
469
+ self.second_tin_notice = attributes[:'second_tin_notice']
470
+ end
471
+
460
472
  if attributes.key?(:'address_verification')
461
473
  self.address_verification = attributes[:'address_verification']
462
474
  end
@@ -475,38 +487,6 @@ module AvalaraSdk::A1099::V2
475
487
  invalid_properties.push('invalid value for "tax_year", tax_year cannot be nil.')
476
488
  end
477
489
 
478
- if @recipient_name.nil?
479
- invalid_properties.push('invalid value for "recipient_name", recipient_name cannot be nil.')
480
- end
481
-
482
- if @recipient_name.to_s.length < 1
483
- invalid_properties.push('invalid value for "recipient_name", the character length must be great than or equal to 1.')
484
- end
485
-
486
- if @address.nil?
487
- invalid_properties.push('invalid value for "address", address cannot be nil.')
488
- end
489
-
490
- if @address.to_s.length < 1
491
- invalid_properties.push('invalid value for "address", the character length must be great than or equal to 1.')
492
- end
493
-
494
- if @city.nil?
495
- invalid_properties.push('invalid value for "city", city cannot be nil.')
496
- end
497
-
498
- if @city.to_s.length < 1
499
- invalid_properties.push('invalid value for "city", the character length must be great than or equal to 1.')
500
- end
501
-
502
- if @country_code.nil?
503
- invalid_properties.push('invalid value for "country_code", country_code cannot be nil.')
504
- end
505
-
506
- if @country_code.to_s.length < 1
507
- invalid_properties.push('invalid value for "country_code", the character length must be great than or equal to 1.')
508
- end
509
-
510
490
  invalid_properties
511
491
  end
512
492
 
@@ -515,33 +495,11 @@ module AvalaraSdk::A1099::V2
515
495
  def valid?
516
496
  warn '[DEPRECATED] the `valid?` method is obsolete'
517
497
  return false if @tax_year.nil?
518
- return false if @recipient_name.nil?
519
- return false if @recipient_name.to_s.length < 1
520
498
  tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
521
499
  return false unless tin_type_validator.valid?(@tin_type)
522
- return false if @address.nil?
523
- return false if @address.to_s.length < 1
524
- return false if @city.nil?
525
- return false if @city.to_s.length < 1
526
- return false if @country_code.nil?
527
- return false if @country_code.to_s.length < 1
528
500
  true
529
501
  end
530
502
 
531
- # Custom attribute writer method with validation
532
- # @param [Object] recipient_name Value to be assigned
533
- def recipient_name=(recipient_name)
534
- if recipient_name.nil?
535
- fail ArgumentError, 'recipient_name cannot be nil'
536
- end
537
-
538
- if recipient_name.to_s.length < 1
539
- fail ArgumentError, 'invalid value for "recipient_name", the character length must be great than or equal to 1.'
540
- end
541
-
542
- @recipient_name = recipient_name
543
- end
544
-
545
503
  # Custom attribute writer method checking allowed values (enum).
546
504
  # @param [Object] tin_type Object to be assigned
547
505
  def tin_type=(tin_type)
@@ -552,60 +510,17 @@ module AvalaraSdk::A1099::V2
552
510
  @tin_type = tin_type
553
511
  end
554
512
 
555
- # Custom attribute writer method with validation
556
- # @param [Object] address Value to be assigned
557
- def address=(address)
558
- if address.nil?
559
- fail ArgumentError, 'address cannot be nil'
560
- end
561
-
562
- if address.to_s.length < 1
563
- fail ArgumentError, 'invalid value for "address", the character length must be great than or equal to 1.'
564
- end
565
-
566
- @address = address
567
- end
568
-
569
- # Custom attribute writer method with validation
570
- # @param [Object] city Value to be assigned
571
- def city=(city)
572
- if city.nil?
573
- fail ArgumentError, 'city cannot be nil'
574
- end
575
-
576
- if city.to_s.length < 1
577
- fail ArgumentError, 'invalid value for "city", the character length must be great than or equal to 1.'
578
- end
579
-
580
- @city = city
581
- end
582
-
583
- # Custom attribute writer method with validation
584
- # @param [Object] country_code Value to be assigned
585
- def country_code=(country_code)
586
- if country_code.nil?
587
- fail ArgumentError, 'country_code cannot be nil'
588
- end
589
-
590
- if country_code.to_s.length < 1
591
- fail ArgumentError, 'invalid value for "country_code", the character length must be great than or equal to 1.'
592
- end
593
-
594
- @country_code = country_code
595
- end
596
-
597
513
  # Checks equality by comparing each attribute.
598
514
  # @param [Object] Object to be compared
599
515
  def ==(o)
600
516
  return true if self.equal?(o)
601
517
  self.class == o.class &&
602
- second_tin_notice == o.second_tin_notice &&
603
518
  rents == o.rents &&
604
519
  royalties == o.royalties &&
605
520
  other_income == o.other_income &&
606
521
  fed_income_tax_withheld == o.fed_income_tax_withheld &&
607
522
  fishing_boat_proceeds == o.fishing_boat_proceeds &&
608
- medical_health_care_payments == o.medical_health_care_payments &&
523
+ medical_and_health_care_payments == o.medical_and_health_care_payments &&
609
524
  direct_sales_indicator == o.direct_sales_indicator &&
610
525
  substitute_payments == o.substitute_payments &&
611
526
  crop_insurance_proceeds == o.crop_insurance_proceeds &&
@@ -629,15 +544,17 @@ module AvalaraSdk::A1099::V2
629
544
  city == o.city &&
630
545
  state == o.state &&
631
546
  zip == o.zip &&
632
- recipient_email == o.recipient_email &&
547
+ email == o.email &&
633
548
  account_number == o.account_number &&
634
549
  office_code == o.office_code &&
635
- recipient_non_us_province == o.recipient_non_us_province &&
550
+ non_us_province == o.non_us_province &&
636
551
  country_code == o.country_code &&
637
552
  federal_e_file == o.federal_e_file &&
638
553
  postal_mail == o.postal_mail &&
639
554
  state_e_file == o.state_e_file &&
640
555
  tin_match == o.tin_match &&
556
+ no_tin == o.no_tin &&
557
+ second_tin_notice == o.second_tin_notice &&
641
558
  address_verification == o.address_verification &&
642
559
  state_and_local_withholding == o.state_and_local_withholding
643
560
  end
@@ -651,7 +568,7 @@ module AvalaraSdk::A1099::V2
651
568
  # Calculates hash code according to all attributes.
652
569
  # @return [Integer] Hash code
653
570
  def hash
654
- [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, issuer_reference_id, issuer_tin, tax_year, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, recipient_email, account_number, office_code, recipient_non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, address_verification, state_and_local_withholding].hash
571
+ [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, issuer_reference_id, issuer_tin, tax_year, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, email, account_number, office_code, non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, no_tin, second_tin_notice, address_verification, state_and_local_withholding].hash
655
572
  end
656
573
 
657
574
  # Builds the object from hash