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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +32 -6
- data/docs/A1099/V2/BulkUpsert1099FormsRequest.md +4 -0
- data/docs/A1099/V2/CompaniesW9Api.md +6 -6
- data/docs/A1099/V2/CoveredIndividualRequest.md +26 -26
- data/docs/A1099/V2/Create1099Form201Response.md +4 -0
- data/docs/A1099/V2/ErrorResponse.md +1 -1
- data/docs/A1099/V2/ErrorResponseItem.md +20 -0
- data/docs/A1099/V2/Form1042S.md +140 -0
- data/docs/A1099/V2/Form1042SListItem.md +12 -8
- data/docs/A1099/V2/Form1042SListItemResponse.md +19 -9
- data/docs/A1099/V2/Form1042SRequest.md +14 -10
- data/docs/A1099/V2/Form1042SResponse.md +10 -6
- data/docs/A1099/V2/Form1095B.md +14 -2
- data/docs/A1099/V2/Form1095BListItem.md +14 -8
- data/docs/A1099/V2/Form1095BListItemResponse.md +20 -8
- data/docs/A1099/V2/Form1095BRequest.md +14 -8
- data/docs/A1099/V2/Form1095BResponse.md +106 -0
- data/docs/A1099/V2/Form1095CList.md +20 -0
- data/docs/A1099/V2/Form1095CListItem.md +90 -0
- data/docs/A1099/V2/Form1099Base.md +14 -2
- data/docs/A1099/V2/Form1099BaseResponse.md +20 -8
- data/docs/A1099/V2/Form1099Div.md +130 -0
- data/docs/A1099/V2/Form1099DivListItem.md +32 -28
- data/docs/A1099/V2/Form1099DivListItemResponse.md +130 -0
- data/docs/A1099/V2/Form1099DivRequest.md +32 -28
- data/docs/A1099/V2/Form1099DivResponse.md +48 -6
- data/docs/A1099/V2/Form1099Int.md +122 -0
- data/docs/A1099/V2/Form1099IntList.md +20 -0
- data/docs/A1099/V2/Form1099IntListItem.md +100 -0
- data/docs/A1099/V2/Form1099IntListItemResponse.md +122 -0
- data/docs/A1099/V2/Form1099IntRequest.md +96 -0
- data/docs/A1099/V2/Form1099IntResponse.md +120 -0
- data/docs/A1099/V2/Form1099K.md +14 -2
- data/docs/A1099/V2/Form1099KListItem.md +14 -8
- data/docs/A1099/V2/Form1099KListItemResponse.md +20 -8
- data/docs/A1099/V2/Form1099KRequest.md +18 -12
- data/docs/A1099/V2/Form1099KResponse.md +132 -0
- data/docs/A1099/V2/Form1099ListResponseValueInner.md +4 -0
- data/docs/A1099/V2/Form1099Misc.md +24 -12
- data/docs/A1099/V2/Form1099MiscListItem.md +14 -12
- data/docs/A1099/V2/Form1099MiscListItemResponse.md +30 -16
- data/docs/A1099/V2/Form1099MiscRequest.md +14 -12
- data/docs/A1099/V2/Form1099MiscResponse.md +12 -10
- data/docs/A1099/V2/Form1099Nec.md +14 -2
- data/docs/A1099/V2/Form1099NecListItem.md +14 -10
- data/docs/A1099/V2/Form1099NecListItemResponse.md +20 -8
- data/docs/A1099/V2/Form1099NecRequest.md +14 -10
- data/docs/A1099/V2/Form1099NecResponse.md +10 -8
- data/docs/A1099/V2/Form1099ProccessResult.md +3 -1
- data/docs/A1099/V2/Form1099ProccessResultProcessedFormsInner.md +61 -0
- data/docs/A1099/V2/Form1099R.md +14 -4
- data/docs/A1099/V2/Form1099RListItem.md +12 -8
- data/docs/A1099/V2/Form1099RListItemResponse.md +20 -10
- data/docs/A1099/V2/Form1099RRequest.md +12 -8
- data/docs/A1099/V2/Form1099RResponse.md +132 -0
- data/docs/A1099/V2/FormRequestBase.md +14 -8
- data/docs/A1099/V2/FormRequestListItemBase.md +14 -8
- data/docs/A1099/V2/FormResponseBase.md +10 -6
- data/docs/A1099/V2/FormSingleRequestBase.md +14 -8
- data/docs/A1099/V2/Forms1099Api.md +11 -11
- data/docs/A1099/V2/FormsW9Api.md +21 -19
- data/docs/A1099/V2/Get1099Form200Response.md +4 -0
- data/docs/A1099/V2/ICreateForm1099Request.md +2 -0
- data/docs/A1099/V2/IUpdateForm1099Request.md +2 -0
- data/docs/A1099/V2/IrsResponse.md +20 -0
- data/docs/A1099/V2/Issuers1099Api.md +6 -6
- data/docs/A1099/V2/Jobs1099Api.md +1 -1
- data/docs/A1099/V2/OfferAndCoverageRequest.md +26 -0
- data/docs/A1099/V2/PaginatedQueryResultModelCompanyResponse.md +1 -1
- data/docs/A1099/V2/PaginatedQueryResultModelIssuerResponse.md +1 -1
- data/docs/A1099/V2/PaginatedQueryResultModelW9FormBaseResponse.md +22 -0
- data/docs/A1099/V2/TinMatchStatusResponse.md +22 -0
- data/docs/A1099/V2/Update1099Form200Response.md +8 -0
- data/docs/A1099/V2/W4FormResponse.md +1 -29
- data/docs/A1099/V2/W8BenEFormResponse.md +1 -29
- data/docs/A1099/V2/W8BenFormResponse.md +1 -29
- data/docs/A1099/V2/W8ImyFormResponse.md +1 -29
- data/docs/A1099/V2/W9FormBaseResponse.md +3 -3
- data/docs/A1099/V2/W9FormResponse.md +2 -28
- data/lib/avalara_sdk/api/A1099/V2/companies_w9_api.rb +1 -1
- data/lib/avalara_sdk/api/A1099/V2/forms1099_api.rb +3 -3
- data/lib/avalara_sdk/api/A1099/V2/forms_w9_api.rb +30 -14
- data/lib/avalara_sdk/api/A1099/V2/issuers1099_api.rb +1 -1
- data/lib/avalara_sdk/api/A1099/V2/jobs1099_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/data_input_fields_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/documents_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/interop_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/mandates_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/subscriptions_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/tax_identifiers_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/trading_partners_api.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/bulk_upsert1099_forms_request.rb +2 -0
- data/lib/avalara_sdk/models/A1099/V2/covered_individual_reference.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/covered_individual_request.rb +79 -79
- data/lib/avalara_sdk/models/A1099/V2/create1099_form201_response.rb +2 -0
- data/lib/avalara_sdk/models/A1099/V2/error_response.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/error_response_item.rb +221 -0
- data/lib/avalara_sdk/models/A1099/V2/form1042_s.rb +824 -0
- data/lib/avalara_sdk/models/A1099/V2/form1042_s_list_item.rb +44 -119
- data/lib/avalara_sdk/models/A1099/V2/form1042_s_list_item_response.rb +67 -12
- data/lib/avalara_sdk/models/A1099/V2/form1042_s_request.rb +55 -132
- data/lib/avalara_sdk/models/A1099/V2/form1042_s_response.rb +43 -24
- data/lib/avalara_sdk/models/A1099/V2/form1095_b.rb +68 -9
- data/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item.rb +54 -119
- data/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item_response.rb +77 -12
- data/lib/avalara_sdk/models/A1099/V2/form1095_b_request.rb +56 -121
- data/lib/avalara_sdk/models/A1099/V2/form1095_b_response.rb +709 -0
- data/lib/avalara_sdk/models/A1099/V2/form1095_c_list.rb +238 -0
- data/lib/avalara_sdk/models/A1099/V2/form1095_c_list_item.rb +662 -0
- data/lib/avalara_sdk/models/A1099/V2/form1099_base.rb +68 -9
- data/lib/avalara_sdk/models/A1099/V2/form1099_base_response.rb +77 -12
- data/lib/avalara_sdk/models/A1099/V2/form1099_div.rb +781 -0
- data/lib/avalara_sdk/models/A1099/V2/form1099_div_list_item.rb +93 -147
- data/lib/avalara_sdk/models/A1099/V2/form1099_div_list_item_response.rb +931 -0
- data/lib/avalara_sdk/models/A1099/V2/form1099_div_request.rb +93 -149
- data/lib/avalara_sdk/models/A1099/V2/form1099_div_response.rb +214 -24
- data/lib/avalara_sdk/models/A1099/V2/form1099_int.rb +741 -0
- data/lib/avalara_sdk/models/A1099/V2/form1099_int_list.rb +238 -0
- data/lib/avalara_sdk/models/A1099/V2/form1099_int_list_item.rb +702 -0
- data/lib/avalara_sdk/models/A1099/V2/form1099_int_list_item_response.rb +887 -0
- data/lib/avalara_sdk/models/A1099/V2/form1099_int_request.rb +684 -0
- data/lib/avalara_sdk/models/A1099/V2/form1099_int_response.rb +773 -0
- data/lib/avalara_sdk/models/A1099/V2/form1099_k.rb +68 -9
- data/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item.rb +56 -119
- data/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item_response.rb +77 -12
- data/lib/avalara_sdk/models/A1099/V2/form1099_k_request.rb +82 -123
- data/lib/avalara_sdk/models/A1099/V2/form1099_k_response.rb +839 -0
- data/lib/avalara_sdk/models/A1099/V2/form1099_list_response_value_inner.rb +2 -0
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc.rb +106 -47
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item.rb +52 -135
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item_response.rb +116 -40
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_request.rb +52 -137
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_response.rb +49 -39
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec.rb +68 -9
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item.rb +56 -129
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item_response.rb +77 -12
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_request.rb +56 -131
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_response.rb +43 -33
- data/lib/avalara_sdk/models/A1099/V2/form1099_proccess_result.rb +22 -4
- data/lib/avalara_sdk/models/A1099/V2/form1099_proccess_result_processed_forms_inner.rb +107 -0
- data/lib/avalara_sdk/models/A1099/V2/form1099_r.rb +68 -19
- data/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item.rb +46 -119
- data/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item_response.rb +77 -23
- data/lib/avalara_sdk/models/A1099/V2/form1099_r_request.rb +46 -121
- data/lib/avalara_sdk/models/A1099/V2/form1099_r_response.rb +839 -0
- data/lib/avalara_sdk/models/A1099/V2/form1099_status_detail.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/form_request_base.rb +54 -119
- data/lib/avalara_sdk/models/A1099/V2/form_request_list_item_base.rb +56 -119
- data/lib/avalara_sdk/models/A1099/V2/form_response_base.rb +43 -24
- data/lib/avalara_sdk/models/A1099/V2/form_single_request_base.rb +56 -121
- data/lib/avalara_sdk/models/A1099/V2/get1099_form200_response.rb +2 -0
- data/lib/avalara_sdk/models/A1099/V2/i_create_form1099_request.rb +1 -0
- data/lib/avalara_sdk/models/A1099/V2/i_update_form1099_request.rb +1 -0
- data/lib/avalara_sdk/models/A1099/V2/included_base.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/irs_response.rb +221 -0
- data/lib/avalara_sdk/models/A1099/V2/issuer_command.rb +1 -0
- data/lib/avalara_sdk/models/A1099/V2/offer_and_coverage_request.rb +256 -0
- data/lib/avalara_sdk/models/A1099/V2/paginated_query_result_model_w9_form_base_response.rb +234 -0
- data/lib/avalara_sdk/models/A1099/V2/state_and_local_withholding.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/state_efile_status_detail.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/tin_match_status_response.rb +267 -0
- data/lib/avalara_sdk/models/A1099/V2/update1099_form200_response.rb +4 -0
- data/lib/avalara_sdk/models/A1099/V2/validation_error.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/w4_form_response.rb +15 -157
- data/lib/avalara_sdk/models/A1099/V2/w8_ben_e_form_response.rb +14 -156
- data/lib/avalara_sdk/models/A1099/V2/w8_ben_form_response.rb +15 -157
- data/lib/avalara_sdk/models/A1099/V2/w8_imy_form_response.rb +15 -157
- data/lib/avalara_sdk/models/A1099/V2/w9_form_base_response.rb +19 -14
- data/lib/avalara_sdk/models/A1099/V2/w9_form_response.rb +18 -150
- data/lib/avalara_sdk/version.rb +1 -1
- data/lib/avalara_sdk.rb +21 -1
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/byebug-11.1.3/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/date-3.4.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debase-0.2.9/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debug-1.10.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/erb-5.0.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/io-console-0.8.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/json-2.12.2/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/prism-1.4.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/psych-5.2.6/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/racc-1.8.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/stringio-3.1.7/gem_make.out +5 -5
- metadata +42 -2
@@ -119,6 +119,9 @@ module AvalaraSdk::A1099::V2
|
|
119
119
|
# Address verification status
|
120
120
|
attr_accessor :address_verification_status
|
121
121
|
|
122
|
+
# EDelivery status
|
123
|
+
attr_accessor :e_delivery_status
|
124
|
+
|
122
125
|
# Reference ID
|
123
126
|
attr_accessor :reference_id
|
124
127
|
|
@@ -131,6 +134,12 @@ module AvalaraSdk::A1099::V2
|
|
131
134
|
# Recipient Tax ID Number
|
132
135
|
attr_accessor :tin
|
133
136
|
|
137
|
+
# Indicates whether the recipient has no TIN
|
138
|
+
attr_accessor :no_tin
|
139
|
+
|
140
|
+
# Second Tin Notice
|
141
|
+
attr_accessor :second_tin_notice
|
142
|
+
|
134
143
|
# Recipient name
|
135
144
|
attr_accessor :recipient_name
|
136
145
|
|
@@ -153,11 +162,20 @@ module AvalaraSdk::A1099::V2
|
|
153
162
|
attr_accessor :zip
|
154
163
|
|
155
164
|
# Foreign province
|
156
|
-
attr_accessor :
|
165
|
+
attr_accessor :non_us_province
|
157
166
|
|
158
167
|
# Country code, as defined at https://www.irs.gov/e-file-providers/country-codes
|
159
168
|
attr_accessor :country_code
|
160
169
|
|
170
|
+
# Account Number
|
171
|
+
attr_accessor :account_number
|
172
|
+
|
173
|
+
# Office Code
|
174
|
+
attr_accessor :office_code
|
175
|
+
|
176
|
+
# FATCA filing requirement
|
177
|
+
attr_accessor :fatca_filing_requirement
|
178
|
+
|
161
179
|
# Validation errors
|
162
180
|
attr_accessor :validation_errors
|
163
181
|
|
@@ -230,10 +248,13 @@ module AvalaraSdk::A1099::V2
|
|
230
248
|
:'tin_match_status' => :'tinMatchStatus',
|
231
249
|
:'address_verification' => :'addressVerification',
|
232
250
|
:'address_verification_status' => :'addressVerificationStatus',
|
251
|
+
:'e_delivery_status' => :'eDeliveryStatus',
|
233
252
|
:'reference_id' => :'referenceId',
|
234
253
|
:'email' => :'email',
|
235
254
|
:'tin_type' => :'tinType',
|
236
255
|
:'tin' => :'tin',
|
256
|
+
:'no_tin' => :'noTin',
|
257
|
+
:'second_tin_notice' => :'secondTinNotice',
|
237
258
|
:'recipient_name' => :'recipientName',
|
238
259
|
:'recipient_second_name' => :'recipientSecondName',
|
239
260
|
:'address' => :'address',
|
@@ -241,8 +262,11 @@ module AvalaraSdk::A1099::V2
|
|
241
262
|
:'city' => :'city',
|
242
263
|
:'state' => :'state',
|
243
264
|
:'zip' => :'zip',
|
244
|
-
:'
|
265
|
+
:'non_us_province' => :'nonUsProvince',
|
245
266
|
:'country_code' => :'countryCode',
|
267
|
+
:'account_number' => :'accountNumber',
|
268
|
+
:'office_code' => :'officeCode',
|
269
|
+
:'fatca_filing_requirement' => :'fatcaFilingRequirement',
|
246
270
|
:'validation_errors' => :'validationErrors',
|
247
271
|
:'created_at' => :'createdAt',
|
248
272
|
:'updated_at' => :'updatedAt',
|
@@ -285,19 +309,22 @@ module AvalaraSdk::A1099::V2
|
|
285
309
|
:'issuer_tin' => :'String',
|
286
310
|
:'tax_year' => :'Integer',
|
287
311
|
:'federal_efile' => :'Boolean',
|
288
|
-
:'federal_efile_status' => :'
|
312
|
+
:'federal_efile_status' => :'StatusDetail',
|
289
313
|
:'state_efile' => :'Boolean',
|
290
314
|
:'state_efile_status' => :'Array<StateEfileStatusDetailResponse>',
|
291
315
|
:'postal_mail' => :'Boolean',
|
292
|
-
:'postal_mail_status' => :'
|
316
|
+
:'postal_mail_status' => :'StatusDetail',
|
293
317
|
:'tin_match' => :'Boolean',
|
294
|
-
:'tin_match_status' => :'
|
318
|
+
:'tin_match_status' => :'StatusDetail',
|
295
319
|
:'address_verification' => :'Boolean',
|
296
|
-
:'address_verification_status' => :'
|
320
|
+
:'address_verification_status' => :'StatusDetail',
|
321
|
+
:'e_delivery_status' => :'StatusDetail',
|
297
322
|
:'reference_id' => :'String',
|
298
323
|
:'email' => :'String',
|
299
324
|
:'tin_type' => :'String',
|
300
325
|
:'tin' => :'String',
|
326
|
+
:'no_tin' => :'Boolean',
|
327
|
+
:'second_tin_notice' => :'Boolean',
|
301
328
|
:'recipient_name' => :'String',
|
302
329
|
:'recipient_second_name' => :'String',
|
303
330
|
:'address' => :'String',
|
@@ -305,8 +332,11 @@ module AvalaraSdk::A1099::V2
|
|
305
332
|
:'city' => :'String',
|
306
333
|
:'state' => :'String',
|
307
334
|
:'zip' => :'String',
|
308
|
-
:'
|
335
|
+
:'non_us_province' => :'String',
|
309
336
|
:'country_code' => :'String',
|
337
|
+
:'account_number' => :'String',
|
338
|
+
:'office_code' => :'String',
|
339
|
+
:'fatca_filing_requirement' => :'Boolean',
|
310
340
|
:'validation_errors' => :'Array<ValidationErrorResponse>',
|
311
341
|
:'created_at' => :'Time',
|
312
342
|
:'updated_at' => :'Time',
|
@@ -339,10 +369,12 @@ module AvalaraSdk::A1099::V2
|
|
339
369
|
:'postal_mail_status',
|
340
370
|
:'tin_match_status',
|
341
371
|
:'address_verification_status',
|
372
|
+
:'e_delivery_status',
|
342
373
|
:'reference_id',
|
343
374
|
:'email',
|
344
375
|
:'tin_type',
|
345
376
|
:'tin',
|
377
|
+
:'second_tin_notice',
|
346
378
|
:'recipient_name',
|
347
379
|
:'recipient_second_name',
|
348
380
|
:'address',
|
@@ -350,8 +382,11 @@ module AvalaraSdk::A1099::V2
|
|
350
382
|
:'city',
|
351
383
|
:'state',
|
352
384
|
:'zip',
|
353
|
-
:'
|
385
|
+
:'non_us_province',
|
354
386
|
:'country_code',
|
387
|
+
:'account_number',
|
388
|
+
:'office_code',
|
389
|
+
:'fatca_filing_requirement',
|
355
390
|
:'validation_errors',
|
356
391
|
:'state_and_local_withholding'
|
357
392
|
])
|
@@ -541,6 +576,10 @@ module AvalaraSdk::A1099::V2
|
|
541
576
|
self.address_verification_status = attributes[:'address_verification_status']
|
542
577
|
end
|
543
578
|
|
579
|
+
if attributes.key?(:'e_delivery_status')
|
580
|
+
self.e_delivery_status = attributes[:'e_delivery_status']
|
581
|
+
end
|
582
|
+
|
544
583
|
if attributes.key?(:'reference_id')
|
545
584
|
self.reference_id = attributes[:'reference_id']
|
546
585
|
end
|
@@ -557,6 +596,14 @@ module AvalaraSdk::A1099::V2
|
|
557
596
|
self.tin = attributes[:'tin']
|
558
597
|
end
|
559
598
|
|
599
|
+
if attributes.key?(:'no_tin')
|
600
|
+
self.no_tin = attributes[:'no_tin']
|
601
|
+
end
|
602
|
+
|
603
|
+
if attributes.key?(:'second_tin_notice')
|
604
|
+
self.second_tin_notice = attributes[:'second_tin_notice']
|
605
|
+
end
|
606
|
+
|
560
607
|
if attributes.key?(:'recipient_name')
|
561
608
|
self.recipient_name = attributes[:'recipient_name']
|
562
609
|
end
|
@@ -585,14 +632,26 @@ module AvalaraSdk::A1099::V2
|
|
585
632
|
self.zip = attributes[:'zip']
|
586
633
|
end
|
587
634
|
|
588
|
-
if attributes.key?(:'
|
589
|
-
self.
|
635
|
+
if attributes.key?(:'non_us_province')
|
636
|
+
self.non_us_province = attributes[:'non_us_province']
|
590
637
|
end
|
591
638
|
|
592
639
|
if attributes.key?(:'country_code')
|
593
640
|
self.country_code = attributes[:'country_code']
|
594
641
|
end
|
595
642
|
|
643
|
+
if attributes.key?(:'account_number')
|
644
|
+
self.account_number = attributes[:'account_number']
|
645
|
+
end
|
646
|
+
|
647
|
+
if attributes.key?(:'office_code')
|
648
|
+
self.office_code = attributes[:'office_code']
|
649
|
+
end
|
650
|
+
|
651
|
+
if attributes.key?(:'fatca_filing_requirement')
|
652
|
+
self.fatca_filing_requirement = attributes[:'fatca_filing_requirement']
|
653
|
+
end
|
654
|
+
|
596
655
|
if attributes.key?(:'validation_errors')
|
597
656
|
if (value = attributes[:'validation_errors']).is_a?(Array)
|
598
657
|
self.validation_errors = value
|
@@ -782,10 +841,13 @@ module AvalaraSdk::A1099::V2
|
|
782
841
|
tin_match_status == o.tin_match_status &&
|
783
842
|
address_verification == o.address_verification &&
|
784
843
|
address_verification_status == o.address_verification_status &&
|
844
|
+
e_delivery_status == o.e_delivery_status &&
|
785
845
|
reference_id == o.reference_id &&
|
786
846
|
email == o.email &&
|
787
847
|
tin_type == o.tin_type &&
|
788
848
|
tin == o.tin &&
|
849
|
+
no_tin == o.no_tin &&
|
850
|
+
second_tin_notice == o.second_tin_notice &&
|
789
851
|
recipient_name == o.recipient_name &&
|
790
852
|
recipient_second_name == o.recipient_second_name &&
|
791
853
|
address == o.address &&
|
@@ -793,8 +855,11 @@ module AvalaraSdk::A1099::V2
|
|
793
855
|
city == o.city &&
|
794
856
|
state == o.state &&
|
795
857
|
zip == o.zip &&
|
796
|
-
|
858
|
+
non_us_province == o.non_us_province &&
|
797
859
|
country_code == o.country_code &&
|
860
|
+
account_number == o.account_number &&
|
861
|
+
office_code == o.office_code &&
|
862
|
+
fatca_filing_requirement == o.fatca_filing_requirement &&
|
798
863
|
validation_errors == o.validation_errors &&
|
799
864
|
created_at == o.created_at &&
|
800
865
|
updated_at == o.updated_at &&
|
@@ -810,7 +875,7 @@ module AvalaraSdk::A1099::V2
|
|
810
875
|
# Calculates hash code according to all attributes.
|
811
876
|
# @return [Integer] Hash code
|
812
877
|
def hash
|
813
|
-
[filer_type, payment_type, payment_settlement_entity_name_phone_number, gross_amount_payment_card, card_not_present_transactions, merchant_category_code, payment_transaction_number, federal_income_tax_withheld, january, february, march, april, may, june, july, august, sept, october, november, december, id, type, issuer_id, issuer_reference_id, issuer_tin, tax_year, federal_efile, federal_efile_status, state_efile, state_efile_status, postal_mail, postal_mail_status, tin_match, tin_match_status, address_verification, address_verification_status, reference_id, email, tin_type, tin, recipient_name, recipient_second_name, address, address2, city, state, zip,
|
878
|
+
[filer_type, payment_type, payment_settlement_entity_name_phone_number, gross_amount_payment_card, card_not_present_transactions, merchant_category_code, payment_transaction_number, federal_income_tax_withheld, january, february, march, april, may, june, july, august, sept, october, november, december, id, type, issuer_id, issuer_reference_id, issuer_tin, tax_year, federal_efile, federal_efile_status, state_efile, state_efile_status, postal_mail, postal_mail_status, tin_match, tin_match_status, address_verification, address_verification_status, e_delivery_status, reference_id, email, tin_type, tin, no_tin, second_tin_notice, recipient_name, recipient_second_name, address, address2, city, state, zip, non_us_province, country_code, account_number, office_code, fatca_filing_requirement, validation_errors, created_at, updated_at, state_and_local_withholding].hash
|
814
879
|
end
|
815
880
|
|
816
881
|
# Builds the object from hash
|
@@ -107,7 +107,7 @@ module AvalaraSdk::A1099::V2
|
|
107
107
|
attr_accessor :zip
|
108
108
|
|
109
109
|
# Recipient email address
|
110
|
-
attr_accessor :
|
110
|
+
attr_accessor :email
|
111
111
|
|
112
112
|
# Account number
|
113
113
|
attr_accessor :account_number
|
@@ -116,7 +116,7 @@ module AvalaraSdk::A1099::V2
|
|
116
116
|
attr_accessor :office_code
|
117
117
|
|
118
118
|
# Foreign province
|
119
|
-
attr_accessor :
|
119
|
+
attr_accessor :non_us_province
|
120
120
|
|
121
121
|
# Country code, as defined at https://www.irs.gov/e-file-providers/country-codes
|
122
122
|
attr_accessor :country_code
|
@@ -133,6 +133,15 @@ module AvalaraSdk::A1099::V2
|
|
133
133
|
# Boolean indicating that TIN Matching should be scheduled for this form
|
134
134
|
attr_accessor :tin_match
|
135
135
|
|
136
|
+
# Indicates whether the recipient has no TIN
|
137
|
+
attr_accessor :no_tin
|
138
|
+
|
139
|
+
# Second TIN notice in three years
|
140
|
+
attr_accessor :second_tin_notice
|
141
|
+
|
142
|
+
# Fatca filing requirement
|
143
|
+
attr_accessor :fatca_filing_requirement
|
144
|
+
|
136
145
|
# Boolean indicating that address verification should be scheduled for this form
|
137
146
|
attr_accessor :address_verification
|
138
147
|
|
@@ -196,15 +205,18 @@ module AvalaraSdk::A1099::V2
|
|
196
205
|
:'city' => :'city',
|
197
206
|
:'state' => :'state',
|
198
207
|
:'zip' => :'zip',
|
199
|
-
:'
|
208
|
+
:'email' => :'email',
|
200
209
|
:'account_number' => :'accountNumber',
|
201
210
|
:'office_code' => :'officeCode',
|
202
|
-
:'
|
211
|
+
:'non_us_province' => :'nonUsProvince',
|
203
212
|
:'country_code' => :'countryCode',
|
204
213
|
:'federal_e_file' => :'federalEFile',
|
205
214
|
:'postal_mail' => :'postalMail',
|
206
215
|
:'state_e_file' => :'stateEFile',
|
207
216
|
:'tin_match' => :'tinMatch',
|
217
|
+
:'no_tin' => :'noTin',
|
218
|
+
:'second_tin_notice' => :'secondTinNotice',
|
219
|
+
:'fatca_filing_requirement' => :'fatcaFilingRequirement',
|
208
220
|
:'address_verification' => :'addressVerification',
|
209
221
|
:'state_and_local_withholding' => :'stateAndLocalWithholding'
|
210
222
|
}
|
@@ -218,8 +230,8 @@ module AvalaraSdk::A1099::V2
|
|
218
230
|
# Attribute type mapping.
|
219
231
|
def self.openapi_types
|
220
232
|
{
|
221
|
-
:'filer_type' => :'
|
222
|
-
:'payment_type' => :'
|
233
|
+
:'filer_type' => :'String',
|
234
|
+
:'payment_type' => :'String',
|
223
235
|
:'payment_settlement_entity_name_phone_number' => :'String',
|
224
236
|
:'gross_amount_payment_card' => :'Float',
|
225
237
|
:'card_not_present_transactions' => :'Float',
|
@@ -250,15 +262,18 @@ module AvalaraSdk::A1099::V2
|
|
250
262
|
:'city' => :'String',
|
251
263
|
:'state' => :'String',
|
252
264
|
:'zip' => :'String',
|
253
|
-
:'
|
265
|
+
:'email' => :'String',
|
254
266
|
:'account_number' => :'String',
|
255
267
|
:'office_code' => :'String',
|
256
|
-
:'
|
268
|
+
:'non_us_province' => :'String',
|
257
269
|
:'country_code' => :'String',
|
258
270
|
:'federal_e_file' => :'Boolean',
|
259
271
|
:'postal_mail' => :'Boolean',
|
260
272
|
:'state_e_file' => :'Boolean',
|
261
273
|
:'tin_match' => :'Boolean',
|
274
|
+
:'no_tin' => :'Boolean',
|
275
|
+
:'second_tin_notice' => :'Boolean',
|
276
|
+
:'fatca_filing_requirement' => :'Boolean',
|
262
277
|
:'address_verification' => :'Boolean',
|
263
278
|
:'state_and_local_withholding' => :'StateAndLocalWithholdingRequest'
|
264
279
|
}
|
@@ -285,12 +300,21 @@ module AvalaraSdk::A1099::V2
|
|
285
300
|
:'december',
|
286
301
|
:'issuer_id',
|
287
302
|
:'reference_id',
|
303
|
+
:'recipient_tin',
|
304
|
+
:'recipient_name',
|
288
305
|
:'recipient_second_name',
|
306
|
+
:'address',
|
289
307
|
:'address2',
|
290
|
-
:'
|
308
|
+
:'city',
|
309
|
+
:'state',
|
310
|
+
:'zip',
|
311
|
+
:'email',
|
291
312
|
:'account_number',
|
292
313
|
:'office_code',
|
293
|
-
:'
|
314
|
+
:'non_us_province',
|
315
|
+
:'country_code',
|
316
|
+
:'second_tin_notice',
|
317
|
+
:'state_and_local_withholding'
|
294
318
|
])
|
295
319
|
end
|
296
320
|
|
@@ -414,8 +438,6 @@ module AvalaraSdk::A1099::V2
|
|
414
438
|
|
415
439
|
if attributes.key?(:'recipient_name')
|
416
440
|
self.recipient_name = attributes[:'recipient_name']
|
417
|
-
else
|
418
|
-
self.recipient_name = nil
|
419
441
|
end
|
420
442
|
|
421
443
|
if attributes.key?(:'tin_type')
|
@@ -428,8 +450,6 @@ module AvalaraSdk::A1099::V2
|
|
428
450
|
|
429
451
|
if attributes.key?(:'address')
|
430
452
|
self.address = attributes[:'address']
|
431
|
-
else
|
432
|
-
self.address = nil
|
433
453
|
end
|
434
454
|
|
435
455
|
if attributes.key?(:'address2')
|
@@ -438,8 +458,6 @@ module AvalaraSdk::A1099::V2
|
|
438
458
|
|
439
459
|
if attributes.key?(:'city')
|
440
460
|
self.city = attributes[:'city']
|
441
|
-
else
|
442
|
-
self.city = nil
|
443
461
|
end
|
444
462
|
|
445
463
|
if attributes.key?(:'state')
|
@@ -450,8 +468,8 @@ module AvalaraSdk::A1099::V2
|
|
450
468
|
self.zip = attributes[:'zip']
|
451
469
|
end
|
452
470
|
|
453
|
-
if attributes.key?(:'
|
454
|
-
self.
|
471
|
+
if attributes.key?(:'email')
|
472
|
+
self.email = attributes[:'email']
|
455
473
|
end
|
456
474
|
|
457
475
|
if attributes.key?(:'account_number')
|
@@ -462,14 +480,12 @@ module AvalaraSdk::A1099::V2
|
|
462
480
|
self.office_code = attributes[:'office_code']
|
463
481
|
end
|
464
482
|
|
465
|
-
if attributes.key?(:'
|
466
|
-
self.
|
483
|
+
if attributes.key?(:'non_us_province')
|
484
|
+
self.non_us_province = attributes[:'non_us_province']
|
467
485
|
end
|
468
486
|
|
469
487
|
if attributes.key?(:'country_code')
|
470
488
|
self.country_code = attributes[:'country_code']
|
471
|
-
else
|
472
|
-
self.country_code = nil
|
473
489
|
end
|
474
490
|
|
475
491
|
if attributes.key?(:'federal_e_file')
|
@@ -488,6 +504,18 @@ module AvalaraSdk::A1099::V2
|
|
488
504
|
self.tin_match = attributes[:'tin_match']
|
489
505
|
end
|
490
506
|
|
507
|
+
if attributes.key?(:'no_tin')
|
508
|
+
self.no_tin = attributes[:'no_tin']
|
509
|
+
end
|
510
|
+
|
511
|
+
if attributes.key?(:'second_tin_notice')
|
512
|
+
self.second_tin_notice = attributes[:'second_tin_notice']
|
513
|
+
end
|
514
|
+
|
515
|
+
if attributes.key?(:'fatca_filing_requirement')
|
516
|
+
self.fatca_filing_requirement = attributes[:'fatca_filing_requirement']
|
517
|
+
end
|
518
|
+
|
491
519
|
if attributes.key?(:'address_verification')
|
492
520
|
self.address_verification = attributes[:'address_verification']
|
493
521
|
end
|
@@ -502,38 +530,6 @@ module AvalaraSdk::A1099::V2
|
|
502
530
|
def list_invalid_properties
|
503
531
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
504
532
|
invalid_properties = Array.new
|
505
|
-
if @recipient_name.nil?
|
506
|
-
invalid_properties.push('invalid value for "recipient_name", recipient_name cannot be nil.')
|
507
|
-
end
|
508
|
-
|
509
|
-
if @recipient_name.to_s.length < 1
|
510
|
-
invalid_properties.push('invalid value for "recipient_name", the character length must be great than or equal to 1.')
|
511
|
-
end
|
512
|
-
|
513
|
-
if @address.nil?
|
514
|
-
invalid_properties.push('invalid value for "address", address cannot be nil.')
|
515
|
-
end
|
516
|
-
|
517
|
-
if @address.to_s.length < 1
|
518
|
-
invalid_properties.push('invalid value for "address", the character length must be great than or equal to 1.')
|
519
|
-
end
|
520
|
-
|
521
|
-
if @city.nil?
|
522
|
-
invalid_properties.push('invalid value for "city", city cannot be nil.')
|
523
|
-
end
|
524
|
-
|
525
|
-
if @city.to_s.length < 1
|
526
|
-
invalid_properties.push('invalid value for "city", the character length must be great than or equal to 1.')
|
527
|
-
end
|
528
|
-
|
529
|
-
if @country_code.nil?
|
530
|
-
invalid_properties.push('invalid value for "country_code", country_code cannot be nil.')
|
531
|
-
end
|
532
|
-
|
533
|
-
if @country_code.to_s.length < 1
|
534
|
-
invalid_properties.push('invalid value for "country_code", the character length must be great than or equal to 1.')
|
535
|
-
end
|
536
|
-
|
537
533
|
invalid_properties
|
538
534
|
end
|
539
535
|
|
@@ -541,43 +537,45 @@ module AvalaraSdk::A1099::V2
|
|
541
537
|
# @return true if the model is valid
|
542
538
|
def valid?
|
543
539
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
544
|
-
|
540
|
+
filer_type_validator = EnumAttributeValidator.new('String', ["PSE", "EPF", "Other"])
|
541
|
+
return false unless filer_type_validator.valid?(@filer_type)
|
542
|
+
payment_type_validator = EnumAttributeValidator.new('String', ["MerchantPaymentCard", "ThirdPartyNetwork"])
|
543
|
+
return false unless payment_type_validator.valid?(@payment_type)
|
544
|
+
type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
|
545
545
|
return false unless type_validator.valid?(@type)
|
546
|
-
return false if @recipient_name.nil?
|
547
|
-
return false if @recipient_name.to_s.length < 1
|
548
546
|
tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
|
549
547
|
return false unless tin_type_validator.valid?(@tin_type)
|
550
|
-
return false if @address.nil?
|
551
|
-
return false if @address.to_s.length < 1
|
552
|
-
return false if @city.nil?
|
553
|
-
return false if @city.to_s.length < 1
|
554
|
-
return false if @country_code.nil?
|
555
|
-
return false if @country_code.to_s.length < 1
|
556
548
|
true
|
557
549
|
end
|
558
550
|
|
559
551
|
# Custom attribute writer method checking allowed values (enum).
|
560
|
-
# @param [Object]
|
561
|
-
def
|
562
|
-
validator = EnumAttributeValidator.new('String', ["
|
563
|
-
unless validator.valid?(
|
564
|
-
fail ArgumentError, "invalid value for \"
|
552
|
+
# @param [Object] filer_type Object to be assigned
|
553
|
+
def filer_type=(filer_type)
|
554
|
+
validator = EnumAttributeValidator.new('String', ["PSE", "EPF", "Other"])
|
555
|
+
unless validator.valid?(filer_type)
|
556
|
+
fail ArgumentError, "invalid value for \"filer_type\", must be one of #{validator.allowable_values}."
|
565
557
|
end
|
566
|
-
@
|
558
|
+
@filer_type = filer_type
|
567
559
|
end
|
568
560
|
|
569
|
-
# Custom attribute writer method
|
570
|
-
# @param [Object]
|
571
|
-
def
|
572
|
-
|
573
|
-
|
561
|
+
# Custom attribute writer method checking allowed values (enum).
|
562
|
+
# @param [Object] payment_type Object to be assigned
|
563
|
+
def payment_type=(payment_type)
|
564
|
+
validator = EnumAttributeValidator.new('String', ["MerchantPaymentCard", "ThirdPartyNetwork"])
|
565
|
+
unless validator.valid?(payment_type)
|
566
|
+
fail ArgumentError, "invalid value for \"payment_type\", must be one of #{validator.allowable_values}."
|
574
567
|
end
|
568
|
+
@payment_type = payment_type
|
569
|
+
end
|
575
570
|
|
576
|
-
|
577
|
-
|
571
|
+
# Custom attribute writer method checking allowed values (enum).
|
572
|
+
# @param [Object] type Object to be assigned
|
573
|
+
def type=(type)
|
574
|
+
validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
|
575
|
+
unless validator.valid?(type)
|
576
|
+
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
578
577
|
end
|
579
|
-
|
580
|
-
@recipient_name = recipient_name
|
578
|
+
@type = type
|
581
579
|
end
|
582
580
|
|
583
581
|
# Custom attribute writer method checking allowed values (enum).
|
@@ -590,48 +588,6 @@ module AvalaraSdk::A1099::V2
|
|
590
588
|
@tin_type = tin_type
|
591
589
|
end
|
592
590
|
|
593
|
-
# Custom attribute writer method with validation
|
594
|
-
# @param [Object] address Value to be assigned
|
595
|
-
def address=(address)
|
596
|
-
if address.nil?
|
597
|
-
fail ArgumentError, 'address cannot be nil'
|
598
|
-
end
|
599
|
-
|
600
|
-
if address.to_s.length < 1
|
601
|
-
fail ArgumentError, 'invalid value for "address", the character length must be great than or equal to 1.'
|
602
|
-
end
|
603
|
-
|
604
|
-
@address = address
|
605
|
-
end
|
606
|
-
|
607
|
-
# Custom attribute writer method with validation
|
608
|
-
# @param [Object] city Value to be assigned
|
609
|
-
def city=(city)
|
610
|
-
if city.nil?
|
611
|
-
fail ArgumentError, 'city cannot be nil'
|
612
|
-
end
|
613
|
-
|
614
|
-
if city.to_s.length < 1
|
615
|
-
fail ArgumentError, 'invalid value for "city", the character length must be great than or equal to 1.'
|
616
|
-
end
|
617
|
-
|
618
|
-
@city = city
|
619
|
-
end
|
620
|
-
|
621
|
-
# Custom attribute writer method with validation
|
622
|
-
# @param [Object] country_code Value to be assigned
|
623
|
-
def country_code=(country_code)
|
624
|
-
if country_code.nil?
|
625
|
-
fail ArgumentError, 'country_code cannot be nil'
|
626
|
-
end
|
627
|
-
|
628
|
-
if country_code.to_s.length < 1
|
629
|
-
fail ArgumentError, 'invalid value for "country_code", the character length must be great than or equal to 1.'
|
630
|
-
end
|
631
|
-
|
632
|
-
@country_code = country_code
|
633
|
-
end
|
634
|
-
|
635
591
|
# Checks equality by comparing each attribute.
|
636
592
|
# @param [Object] Object to be compared
|
637
593
|
def ==(o)
|
@@ -669,15 +625,18 @@ module AvalaraSdk::A1099::V2
|
|
669
625
|
city == o.city &&
|
670
626
|
state == o.state &&
|
671
627
|
zip == o.zip &&
|
672
|
-
|
628
|
+
email == o.email &&
|
673
629
|
account_number == o.account_number &&
|
674
630
|
office_code == o.office_code &&
|
675
|
-
|
631
|
+
non_us_province == o.non_us_province &&
|
676
632
|
country_code == o.country_code &&
|
677
633
|
federal_e_file == o.federal_e_file &&
|
678
634
|
postal_mail == o.postal_mail &&
|
679
635
|
state_e_file == o.state_e_file &&
|
680
636
|
tin_match == o.tin_match &&
|
637
|
+
no_tin == o.no_tin &&
|
638
|
+
second_tin_notice == o.second_tin_notice &&
|
639
|
+
fatca_filing_requirement == o.fatca_filing_requirement &&
|
681
640
|
address_verification == o.address_verification &&
|
682
641
|
state_and_local_withholding == o.state_and_local_withholding
|
683
642
|
end
|
@@ -691,7 +650,7 @@ module AvalaraSdk::A1099::V2
|
|
691
650
|
# Calculates hash code according to all attributes.
|
692
651
|
# @return [Integer] Hash code
|
693
652
|
def hash
|
694
|
-
[filer_type, payment_type, payment_settlement_entity_name_phone_number, gross_amount_payment_card, card_not_present_transactions, merchant_category_code, payment_transaction_number, federal_income_tax_withheld, january, february, march, april, may, june, july, august, sept, october, november, december, type, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip,
|
653
|
+
[filer_type, payment_type, payment_settlement_entity_name_phone_number, gross_amount_payment_card, card_not_present_transactions, merchant_category_code, payment_transaction_number, federal_income_tax_withheld, january, february, march, april, may, june, july, august, sept, october, november, december, 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
|
695
654
|
end
|
696
655
|
|
697
656
|
# Builds the object from hash
|