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 Form1099NecRequest
14
- # Second TIN notice
15
- attr_accessor :second_tin_notice
16
-
17
14
  # Nonemployee compensation
18
15
  attr_accessor :nonemployee_compensation
19
16
 
@@ -59,7 +56,7 @@ module AvalaraSdk::A1099::V2
59
56
  attr_accessor :zip
60
57
 
61
58
  # Recipient email address
62
- attr_accessor :recipient_email
59
+ attr_accessor :email
63
60
 
64
61
  # Account number
65
62
  attr_accessor :account_number
@@ -68,7 +65,7 @@ module AvalaraSdk::A1099::V2
68
65
  attr_accessor :office_code
69
66
 
70
67
  # Foreign province
71
- attr_accessor :recipient_non_us_province
68
+ attr_accessor :non_us_province
72
69
 
73
70
  # Country code, as defined at https://www.irs.gov/e-file-providers/country-codes
74
71
  attr_accessor :country_code
@@ -85,6 +82,15 @@ module AvalaraSdk::A1099::V2
85
82
  # Boolean indicating that TIN Matching should be scheduled for this form
86
83
  attr_accessor :tin_match
87
84
 
85
+ # Indicates whether the recipient has no TIN
86
+ attr_accessor :no_tin
87
+
88
+ # Second TIN notice in three years
89
+ attr_accessor :second_tin_notice
90
+
91
+ # Fatca filing requirement
92
+ attr_accessor :fatca_filing_requirement
93
+
88
94
  # Boolean indicating that address verification should be scheduled for this form
89
95
  attr_accessor :address_verification
90
96
 
@@ -116,7 +122,6 @@ module AvalaraSdk::A1099::V2
116
122
  # Attribute mapping from ruby-style variable name to JSON key.
117
123
  def self.attribute_map
118
124
  {
119
- :'second_tin_notice' => :'secondTinNotice',
120
125
  :'nonemployee_compensation' => :'nonemployeeCompensation',
121
126
  :'direct_sales_indicator' => :'directSalesIndicator',
122
127
  :'federal_income_tax_withheld' => :'federalIncomeTaxWithheld',
@@ -132,15 +137,18 @@ module AvalaraSdk::A1099::V2
132
137
  :'city' => :'city',
133
138
  :'state' => :'state',
134
139
  :'zip' => :'zip',
135
- :'recipient_email' => :'recipientEmail',
140
+ :'email' => :'email',
136
141
  :'account_number' => :'accountNumber',
137
142
  :'office_code' => :'officeCode',
138
- :'recipient_non_us_province' => :'recipientNonUsProvince',
143
+ :'non_us_province' => :'nonUsProvince',
139
144
  :'country_code' => :'countryCode',
140
145
  :'federal_e_file' => :'federalEFile',
141
146
  :'postal_mail' => :'postalMail',
142
147
  :'state_e_file' => :'stateEFile',
143
148
  :'tin_match' => :'tinMatch',
149
+ :'no_tin' => :'noTin',
150
+ :'second_tin_notice' => :'secondTinNotice',
151
+ :'fatca_filing_requirement' => :'fatcaFilingRequirement',
144
152
  :'address_verification' => :'addressVerification',
145
153
  :'state_and_local_withholding' => :'stateAndLocalWithholding'
146
154
  }
@@ -154,7 +162,6 @@ module AvalaraSdk::A1099::V2
154
162
  # Attribute type mapping.
155
163
  def self.openapi_types
156
164
  {
157
- :'second_tin_notice' => :'Boolean',
158
165
  :'nonemployee_compensation' => :'Float',
159
166
  :'direct_sales_indicator' => :'Boolean',
160
167
  :'federal_income_tax_withheld' => :'Float',
@@ -170,15 +177,18 @@ module AvalaraSdk::A1099::V2
170
177
  :'city' => :'String',
171
178
  :'state' => :'String',
172
179
  :'zip' => :'String',
173
- :'recipient_email' => :'String',
180
+ :'email' => :'String',
174
181
  :'account_number' => :'String',
175
182
  :'office_code' => :'String',
176
- :'recipient_non_us_province' => :'String',
183
+ :'non_us_province' => :'String',
177
184
  :'country_code' => :'String',
178
185
  :'federal_e_file' => :'Boolean',
179
186
  :'postal_mail' => :'Boolean',
180
187
  :'state_e_file' => :'Boolean',
181
188
  :'tin_match' => :'Boolean',
189
+ :'no_tin' => :'Boolean',
190
+ :'second_tin_notice' => :'Boolean',
191
+ :'fatca_filing_requirement' => :'Boolean',
182
192
  :'address_verification' => :'Boolean',
183
193
  :'state_and_local_withholding' => :'StateAndLocalWithholdingRequest'
184
194
  }
@@ -189,12 +199,21 @@ module AvalaraSdk::A1099::V2
189
199
  Set.new([
190
200
  :'issuer_id',
191
201
  :'reference_id',
202
+ :'recipient_tin',
203
+ :'recipient_name',
192
204
  :'recipient_second_name',
205
+ :'address',
193
206
  :'address2',
194
- :'recipient_email',
207
+ :'city',
208
+ :'state',
209
+ :'zip',
210
+ :'email',
195
211
  :'account_number',
196
212
  :'office_code',
197
- :'recipient_non_us_province',
213
+ :'non_us_province',
214
+ :'country_code',
215
+ :'second_tin_notice',
216
+ :'state_and_local_withholding'
198
217
  ])
199
218
  end
200
219
 
@@ -220,10 +239,6 @@ module AvalaraSdk::A1099::V2
220
239
  h[k.to_sym] = v
221
240
  }
222
241
 
223
- if attributes.key?(:'second_tin_notice')
224
- self.second_tin_notice = attributes[:'second_tin_notice']
225
- end
226
-
227
242
  if attributes.key?(:'nonemployee_compensation')
228
243
  self.nonemployee_compensation = attributes[:'nonemployee_compensation']
229
244
  else
@@ -256,8 +271,6 @@ module AvalaraSdk::A1099::V2
256
271
 
257
272
  if attributes.key?(:'recipient_name')
258
273
  self.recipient_name = attributes[:'recipient_name']
259
- else
260
- self.recipient_name = nil
261
274
  end
262
275
 
263
276
  if attributes.key?(:'tin_type')
@@ -270,8 +283,6 @@ module AvalaraSdk::A1099::V2
270
283
 
271
284
  if attributes.key?(:'address')
272
285
  self.address = attributes[:'address']
273
- else
274
- self.address = nil
275
286
  end
276
287
 
277
288
  if attributes.key?(:'address2')
@@ -280,8 +291,6 @@ module AvalaraSdk::A1099::V2
280
291
 
281
292
  if attributes.key?(:'city')
282
293
  self.city = attributes[:'city']
283
- else
284
- self.city = nil
285
294
  end
286
295
 
287
296
  if attributes.key?(:'state')
@@ -292,8 +301,8 @@ module AvalaraSdk::A1099::V2
292
301
  self.zip = attributes[:'zip']
293
302
  end
294
303
 
295
- if attributes.key?(:'recipient_email')
296
- self.recipient_email = attributes[:'recipient_email']
304
+ if attributes.key?(:'email')
305
+ self.email = attributes[:'email']
297
306
  end
298
307
 
299
308
  if attributes.key?(:'account_number')
@@ -304,14 +313,12 @@ module AvalaraSdk::A1099::V2
304
313
  self.office_code = attributes[:'office_code']
305
314
  end
306
315
 
307
- if attributes.key?(:'recipient_non_us_province')
308
- self.recipient_non_us_province = attributes[:'recipient_non_us_province']
316
+ if attributes.key?(:'non_us_province')
317
+ self.non_us_province = attributes[:'non_us_province']
309
318
  end
310
319
 
311
320
  if attributes.key?(:'country_code')
312
321
  self.country_code = attributes[:'country_code']
313
- else
314
- self.country_code = nil
315
322
  end
316
323
 
317
324
  if attributes.key?(:'federal_e_file')
@@ -330,6 +337,18 @@ module AvalaraSdk::A1099::V2
330
337
  self.tin_match = attributes[:'tin_match']
331
338
  end
332
339
 
340
+ if attributes.key?(:'no_tin')
341
+ self.no_tin = attributes[:'no_tin']
342
+ end
343
+
344
+ if attributes.key?(:'second_tin_notice')
345
+ self.second_tin_notice = attributes[:'second_tin_notice']
346
+ end
347
+
348
+ if attributes.key?(:'fatca_filing_requirement')
349
+ self.fatca_filing_requirement = attributes[:'fatca_filing_requirement']
350
+ end
351
+
333
352
  if attributes.key?(:'address_verification')
334
353
  self.address_verification = attributes[:'address_verification']
335
354
  end
@@ -348,38 +367,6 @@ module AvalaraSdk::A1099::V2
348
367
  invalid_properties.push('invalid value for "nonemployee_compensation", nonemployee_compensation cannot be nil.')
349
368
  end
350
369
 
351
- if @recipient_name.nil?
352
- invalid_properties.push('invalid value for "recipient_name", recipient_name cannot be nil.')
353
- end
354
-
355
- if @recipient_name.to_s.length < 1
356
- invalid_properties.push('invalid value for "recipient_name", the character length must be great than or equal to 1.')
357
- end
358
-
359
- if @address.nil?
360
- invalid_properties.push('invalid value for "address", address cannot be nil.')
361
- end
362
-
363
- if @address.to_s.length < 1
364
- invalid_properties.push('invalid value for "address", the character length must be great than or equal to 1.')
365
- end
366
-
367
- if @city.nil?
368
- invalid_properties.push('invalid value for "city", city cannot be nil.')
369
- end
370
-
371
- if @city.to_s.length < 1
372
- invalid_properties.push('invalid value for "city", the character length must be great than or equal to 1.')
373
- end
374
-
375
- if @country_code.nil?
376
- invalid_properties.push('invalid value for "country_code", country_code cannot be nil.')
377
- end
378
-
379
- if @country_code.to_s.length < 1
380
- invalid_properties.push('invalid value for "country_code", the character length must be great than or equal to 1.')
381
- end
382
-
383
370
  invalid_properties
384
371
  end
385
372
 
@@ -388,45 +375,23 @@ module AvalaraSdk::A1099::V2
388
375
  def valid?
389
376
  warn '[DEPRECATED] the `valid?` method is obsolete'
390
377
  return false if @nonemployee_compensation.nil?
391
- type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"])
378
+ type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
392
379
  return false unless type_validator.valid?(@type)
393
- return false if @recipient_name.nil?
394
- return false if @recipient_name.to_s.length < 1
395
380
  tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
396
381
  return false unless tin_type_validator.valid?(@tin_type)
397
- return false if @address.nil?
398
- return false if @address.to_s.length < 1
399
- return false if @city.nil?
400
- return false if @city.to_s.length < 1
401
- return false if @country_code.nil?
402
- return false if @country_code.to_s.length < 1
403
382
  true
404
383
  end
405
384
 
406
385
  # Custom attribute writer method checking allowed values (enum).
407
386
  # @param [Object] type Object to be assigned
408
387
  def type=(type)
409
- validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"])
388
+ validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
410
389
  unless validator.valid?(type)
411
390
  fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
412
391
  end
413
392
  @type = type
414
393
  end
415
394
 
416
- # Custom attribute writer method with validation
417
- # @param [Object] recipient_name Value to be assigned
418
- def recipient_name=(recipient_name)
419
- if recipient_name.nil?
420
- fail ArgumentError, 'recipient_name cannot be nil'
421
- end
422
-
423
- if recipient_name.to_s.length < 1
424
- fail ArgumentError, 'invalid value for "recipient_name", the character length must be great than or equal to 1.'
425
- end
426
-
427
- @recipient_name = recipient_name
428
- end
429
-
430
395
  # Custom attribute writer method checking allowed values (enum).
431
396
  # @param [Object] tin_type Object to be assigned
432
397
  def tin_type=(tin_type)
@@ -437,54 +402,11 @@ module AvalaraSdk::A1099::V2
437
402
  @tin_type = tin_type
438
403
  end
439
404
 
440
- # Custom attribute writer method with validation
441
- # @param [Object] address Value to be assigned
442
- def address=(address)
443
- if address.nil?
444
- fail ArgumentError, 'address cannot be nil'
445
- end
446
-
447
- if address.to_s.length < 1
448
- fail ArgumentError, 'invalid value for "address", the character length must be great than or equal to 1.'
449
- end
450
-
451
- @address = address
452
- end
453
-
454
- # Custom attribute writer method with validation
455
- # @param [Object] city Value to be assigned
456
- def city=(city)
457
- if city.nil?
458
- fail ArgumentError, 'city cannot be nil'
459
- end
460
-
461
- if city.to_s.length < 1
462
- fail ArgumentError, 'invalid value for "city", the character length must be great than or equal to 1.'
463
- end
464
-
465
- @city = city
466
- end
467
-
468
- # Custom attribute writer method with validation
469
- # @param [Object] country_code Value to be assigned
470
- def country_code=(country_code)
471
- if country_code.nil?
472
- fail ArgumentError, 'country_code cannot be nil'
473
- end
474
-
475
- if country_code.to_s.length < 1
476
- fail ArgumentError, 'invalid value for "country_code", the character length must be great than or equal to 1.'
477
- end
478
-
479
- @country_code = country_code
480
- end
481
-
482
405
  # Checks equality by comparing each attribute.
483
406
  # @param [Object] Object to be compared
484
407
  def ==(o)
485
408
  return true if self.equal?(o)
486
409
  self.class == o.class &&
487
- second_tin_notice == o.second_tin_notice &&
488
410
  nonemployee_compensation == o.nonemployee_compensation &&
489
411
  direct_sales_indicator == o.direct_sales_indicator &&
490
412
  federal_income_tax_withheld == o.federal_income_tax_withheld &&
@@ -500,15 +422,18 @@ module AvalaraSdk::A1099::V2
500
422
  city == o.city &&
501
423
  state == o.state &&
502
424
  zip == o.zip &&
503
- recipient_email == o.recipient_email &&
425
+ email == o.email &&
504
426
  account_number == o.account_number &&
505
427
  office_code == o.office_code &&
506
- recipient_non_us_province == o.recipient_non_us_province &&
428
+ non_us_province == o.non_us_province &&
507
429
  country_code == o.country_code &&
508
430
  federal_e_file == o.federal_e_file &&
509
431
  postal_mail == o.postal_mail &&
510
432
  state_e_file == o.state_e_file &&
511
433
  tin_match == o.tin_match &&
434
+ no_tin == o.no_tin &&
435
+ second_tin_notice == o.second_tin_notice &&
436
+ fatca_filing_requirement == o.fatca_filing_requirement &&
512
437
  address_verification == o.address_verification &&
513
438
  state_and_local_withholding == o.state_and_local_withholding
514
439
  end
@@ -522,7 +447,7 @@ module AvalaraSdk::A1099::V2
522
447
  # Calculates hash code according to all attributes.
523
448
  # @return [Integer] Hash code
524
449
  def hash
525
- [second_tin_notice, nonemployee_compensation, direct_sales_indicator, federal_income_tax_withheld, 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
450
+ [nonemployee_compensation, direct_sales_indicator, federal_income_tax_withheld, 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, state_and_local_withholding].hash
526
451
  end
527
452
 
528
453
  # Builds the object from hash
@@ -11,8 +11,6 @@ require 'time'
11
11
 
12
12
  module AvalaraSdk::A1099::V2
13
13
  class Form1099NecResponse
14
- attr_accessor :second_tin_notice
15
-
16
14
  attr_accessor :nonemployee_compensation
17
15
 
18
16
  attr_accessor :direct_sales_indicator
@@ -25,8 +23,6 @@ module AvalaraSdk::A1099::V2
25
23
 
26
24
  attr_accessor :updated_at
27
25
 
28
- attr_accessor :user_id
29
-
30
26
  attr_accessor :state_and_local_withholding
31
27
 
32
28
  attr_accessor :tin_type
@@ -59,13 +55,13 @@ module AvalaraSdk::A1099::V2
59
55
 
60
56
  attr_accessor :zip
61
57
 
62
- attr_accessor :recipient_email
58
+ attr_accessor :email
63
59
 
64
60
  attr_accessor :account_number
65
61
 
66
62
  attr_accessor :office_code
67
63
 
68
- attr_accessor :recipient_non_us_province
64
+ attr_accessor :non_us_province
69
65
 
70
66
  attr_accessor :country_code
71
67
 
@@ -77,10 +73,16 @@ module AvalaraSdk::A1099::V2
77
73
 
78
74
  attr_accessor :tin_match
79
75
 
76
+ attr_accessor :no_tin
77
+
78
+ attr_accessor :second_tin_notice
79
+
80
80
  attr_accessor :address_verification
81
81
 
82
82
  attr_accessor :federal_efile_status
83
83
 
84
+ attr_accessor :e_delivery_status
85
+
84
86
  attr_accessor :state_efile_status
85
87
 
86
88
  attr_accessor :postal_mail_status
@@ -116,14 +118,12 @@ module AvalaraSdk::A1099::V2
116
118
  # Attribute mapping from ruby-style variable name to JSON key.
117
119
  def self.attribute_map
118
120
  {
119
- :'second_tin_notice' => :'secondTinNotice',
120
121
  :'nonemployee_compensation' => :'nonemployeeCompensation',
121
122
  :'direct_sales_indicator' => :'directSalesIndicator',
122
123
  :'federal_income_tax_withheld' => :'federalIncomeTaxWithheld',
123
124
  :'type' => :'type',
124
125
  :'created_at' => :'createdAt',
125
126
  :'updated_at' => :'updatedAt',
126
- :'user_id' => :'userId',
127
127
  :'state_and_local_withholding' => :'stateAndLocalWithholding',
128
128
  :'tin_type' => :'tinType',
129
129
  :'id' => :'id',
@@ -140,17 +140,20 @@ module AvalaraSdk::A1099::V2
140
140
  :'city' => :'city',
141
141
  :'state' => :'state',
142
142
  :'zip' => :'zip',
143
- :'recipient_email' => :'recipientEmail',
143
+ :'email' => :'email',
144
144
  :'account_number' => :'accountNumber',
145
145
  :'office_code' => :'officeCode',
146
- :'recipient_non_us_province' => :'recipientNonUsProvince',
146
+ :'non_us_province' => :'nonUsProvince',
147
147
  :'country_code' => :'countryCode',
148
148
  :'federal_e_file' => :'federalEFile',
149
149
  :'postal_mail' => :'postalMail',
150
150
  :'state_e_file' => :'stateEFile',
151
151
  :'tin_match' => :'tinMatch',
152
+ :'no_tin' => :'noTin',
153
+ :'second_tin_notice' => :'secondTinNotice',
152
154
  :'address_verification' => :'addressVerification',
153
155
  :'federal_efile_status' => :'federalEfileStatus',
156
+ :'e_delivery_status' => :'eDeliveryStatus',
154
157
  :'state_efile_status' => :'stateEfileStatus',
155
158
  :'postal_mail_status' => :'postalMailStatus',
156
159
  :'tin_match_status' => :'tinMatchStatus',
@@ -167,14 +170,12 @@ module AvalaraSdk::A1099::V2
167
170
  # Attribute type mapping.
168
171
  def self.openapi_types
169
172
  {
170
- :'second_tin_notice' => :'Boolean',
171
173
  :'nonemployee_compensation' => :'Float',
172
174
  :'direct_sales_indicator' => :'Boolean',
173
175
  :'federal_income_tax_withheld' => :'Float',
174
176
  :'type' => :'String',
175
177
  :'created_at' => :'Time',
176
178
  :'updated_at' => :'Time',
177
- :'user_id' => :'String',
178
179
  :'state_and_local_withholding' => :'StateAndLocalWithholdingResponse',
179
180
  :'tin_type' => :'String',
180
181
  :'id' => :'String',
@@ -191,17 +192,20 @@ module AvalaraSdk::A1099::V2
191
192
  :'city' => :'String',
192
193
  :'state' => :'String',
193
194
  :'zip' => :'String',
194
- :'recipient_email' => :'String',
195
+ :'email' => :'String',
195
196
  :'account_number' => :'String',
196
197
  :'office_code' => :'String',
197
- :'recipient_non_us_province' => :'String',
198
+ :'non_us_province' => :'String',
198
199
  :'country_code' => :'String',
199
200
  :'federal_e_file' => :'Boolean',
200
201
  :'postal_mail' => :'Boolean',
201
202
  :'state_e_file' => :'Boolean',
202
203
  :'tin_match' => :'Boolean',
204
+ :'no_tin' => :'Boolean',
205
+ :'second_tin_notice' => :'Boolean',
203
206
  :'address_verification' => :'Boolean',
204
207
  :'federal_efile_status' => :'StatusDetail',
208
+ :'e_delivery_status' => :'StatusDetail',
205
209
  :'state_efile_status' => :'Array<StateEfileStatusDetailResponse>',
206
210
  :'postal_mail_status' => :'StatusDetail',
207
211
  :'tin_match_status' => :'StatusDetail',
@@ -214,6 +218,7 @@ module AvalaraSdk::A1099::V2
214
218
  def self.openapi_nullable
215
219
  Set.new([
216
220
  :'federal_efile_status',
221
+ :'e_delivery_status',
217
222
  :'state_efile_status',
218
223
  :'postal_mail_status',
219
224
  :'tin_match_status',
@@ -244,10 +249,6 @@ module AvalaraSdk::A1099::V2
244
249
  h[k.to_sym] = v
245
250
  }
246
251
 
247
- if attributes.key?(:'second_tin_notice')
248
- self.second_tin_notice = attributes[:'second_tin_notice']
249
- end
250
-
251
252
  if attributes.key?(:'nonemployee_compensation')
252
253
  self.nonemployee_compensation = attributes[:'nonemployee_compensation']
253
254
  end
@@ -272,10 +273,6 @@ module AvalaraSdk::A1099::V2
272
273
  self.updated_at = attributes[:'updated_at']
273
274
  end
274
275
 
275
- if attributes.key?(:'user_id')
276
- self.user_id = attributes[:'user_id']
277
- end
278
-
279
276
  if attributes.key?(:'state_and_local_withholding')
280
277
  self.state_and_local_withholding = attributes[:'state_and_local_withholding']
281
278
  end
@@ -340,8 +337,8 @@ module AvalaraSdk::A1099::V2
340
337
  self.zip = attributes[:'zip']
341
338
  end
342
339
 
343
- if attributes.key?(:'recipient_email')
344
- self.recipient_email = attributes[:'recipient_email']
340
+ if attributes.key?(:'email')
341
+ self.email = attributes[:'email']
345
342
  end
346
343
 
347
344
  if attributes.key?(:'account_number')
@@ -352,8 +349,8 @@ module AvalaraSdk::A1099::V2
352
349
  self.office_code = attributes[:'office_code']
353
350
  end
354
351
 
355
- if attributes.key?(:'recipient_non_us_province')
356
- self.recipient_non_us_province = attributes[:'recipient_non_us_province']
352
+ if attributes.key?(:'non_us_province')
353
+ self.non_us_province = attributes[:'non_us_province']
357
354
  end
358
355
 
359
356
  if attributes.key?(:'country_code')
@@ -376,6 +373,14 @@ module AvalaraSdk::A1099::V2
376
373
  self.tin_match = attributes[:'tin_match']
377
374
  end
378
375
 
376
+ if attributes.key?(:'no_tin')
377
+ self.no_tin = attributes[:'no_tin']
378
+ end
379
+
380
+ if attributes.key?(:'second_tin_notice')
381
+ self.second_tin_notice = attributes[:'second_tin_notice']
382
+ end
383
+
379
384
  if attributes.key?(:'address_verification')
380
385
  self.address_verification = attributes[:'address_verification']
381
386
  end
@@ -384,6 +389,10 @@ module AvalaraSdk::A1099::V2
384
389
  self.federal_efile_status = attributes[:'federal_efile_status']
385
390
  end
386
391
 
392
+ if attributes.key?(:'e_delivery_status')
393
+ self.e_delivery_status = attributes[:'e_delivery_status']
394
+ end
395
+
387
396
  if attributes.key?(:'state_efile_status')
388
397
  if (value = attributes[:'state_efile_status']).is_a?(Array)
389
398
  self.state_efile_status = value
@@ -421,7 +430,7 @@ module AvalaraSdk::A1099::V2
421
430
  # @return true if the model is valid
422
431
  def valid?
423
432
  warn '[DEPRECATED] the `valid?` method is obsolete'
424
- type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"])
433
+ type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
425
434
  return false unless type_validator.valid?(@type)
426
435
  tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
427
436
  return false unless tin_type_validator.valid?(@tin_type)
@@ -431,7 +440,7 @@ module AvalaraSdk::A1099::V2
431
440
  # Custom attribute writer method checking allowed values (enum).
432
441
  # @param [Object] type Object to be assigned
433
442
  def type=(type)
434
- validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"])
443
+ validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
435
444
  unless validator.valid?(type)
436
445
  fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
437
446
  end
@@ -465,14 +474,12 @@ module AvalaraSdk::A1099::V2
465
474
  def ==(o)
466
475
  return true if self.equal?(o)
467
476
  self.class == o.class &&
468
- second_tin_notice == o.second_tin_notice &&
469
477
  nonemployee_compensation == o.nonemployee_compensation &&
470
478
  direct_sales_indicator == o.direct_sales_indicator &&
471
479
  federal_income_tax_withheld == o.federal_income_tax_withheld &&
472
480
  type == o.type &&
473
481
  created_at == o.created_at &&
474
482
  updated_at == o.updated_at &&
475
- user_id == o.user_id &&
476
483
  state_and_local_withholding == o.state_and_local_withholding &&
477
484
  tin_type == o.tin_type &&
478
485
  id == o.id &&
@@ -489,17 +496,20 @@ module AvalaraSdk::A1099::V2
489
496
  city == o.city &&
490
497
  state == o.state &&
491
498
  zip == o.zip &&
492
- recipient_email == o.recipient_email &&
499
+ email == o.email &&
493
500
  account_number == o.account_number &&
494
501
  office_code == o.office_code &&
495
- recipient_non_us_province == o.recipient_non_us_province &&
502
+ non_us_province == o.non_us_province &&
496
503
  country_code == o.country_code &&
497
504
  federal_e_file == o.federal_e_file &&
498
505
  postal_mail == o.postal_mail &&
499
506
  state_e_file == o.state_e_file &&
500
507
  tin_match == o.tin_match &&
508
+ no_tin == o.no_tin &&
509
+ second_tin_notice == o.second_tin_notice &&
501
510
  address_verification == o.address_verification &&
502
511
  federal_efile_status == o.federal_efile_status &&
512
+ e_delivery_status == o.e_delivery_status &&
503
513
  state_efile_status == o.state_efile_status &&
504
514
  postal_mail_status == o.postal_mail_status &&
505
515
  tin_match_status == o.tin_match_status &&
@@ -516,7 +526,7 @@ module AvalaraSdk::A1099::V2
516
526
  # Calculates hash code according to all attributes.
517
527
  # @return [Integer] Hash code
518
528
  def hash
519
- [second_tin_notice, nonemployee_compensation, direct_sales_indicator, federal_income_tax_withheld, 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
529
+ [nonemployee_compensation, direct_sales_indicator, federal_income_tax_withheld, 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
520
530
  end
521
531
 
522
532
  # Builds the object from hash