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
@@ -117,7 +117,7 @@ module AvalaraSdk::A1099::V2
|
|
117
117
|
attr_accessor :zip
|
118
118
|
|
119
119
|
# Recipient email address
|
120
|
-
attr_accessor :
|
120
|
+
attr_accessor :email
|
121
121
|
|
122
122
|
# Account number
|
123
123
|
attr_accessor :account_number
|
@@ -126,7 +126,7 @@ module AvalaraSdk::A1099::V2
|
|
126
126
|
attr_accessor :office_code
|
127
127
|
|
128
128
|
# Foreign province
|
129
|
-
attr_accessor :
|
129
|
+
attr_accessor :non_us_province
|
130
130
|
|
131
131
|
# Country code, as defined at https://www.irs.gov/e-file-providers/country-codes
|
132
132
|
attr_accessor :country_code
|
@@ -143,6 +143,12 @@ module AvalaraSdk::A1099::V2
|
|
143
143
|
# Boolean indicating that TIN Matching should be scheduled for this form
|
144
144
|
attr_accessor :tin_match
|
145
145
|
|
146
|
+
# Second TIN notice in three years
|
147
|
+
attr_accessor :second_tin_notice
|
148
|
+
|
149
|
+
# Fatca filing requirement
|
150
|
+
attr_accessor :fatca_filing_requirement
|
151
|
+
|
146
152
|
# Boolean indicating that address verification should be scheduled for this form
|
147
153
|
attr_accessor :address_verification
|
148
154
|
|
@@ -209,15 +215,17 @@ module AvalaraSdk::A1099::V2
|
|
209
215
|
:'city' => :'city',
|
210
216
|
:'state' => :'state',
|
211
217
|
:'zip' => :'zip',
|
212
|
-
:'
|
218
|
+
:'email' => :'email',
|
213
219
|
:'account_number' => :'accountNumber',
|
214
220
|
:'office_code' => :'officeCode',
|
215
|
-
:'
|
221
|
+
:'non_us_province' => :'nonUsProvince',
|
216
222
|
:'country_code' => :'countryCode',
|
217
223
|
:'federal_e_file' => :'federalEFile',
|
218
224
|
:'postal_mail' => :'postalMail',
|
219
225
|
:'state_e_file' => :'stateEFile',
|
220
226
|
:'tin_match' => :'tinMatch',
|
227
|
+
:'second_tin_notice' => :'secondTinNotice',
|
228
|
+
:'fatca_filing_requirement' => :'fatcaFilingRequirement',
|
221
229
|
:'address_verification' => :'addressVerification',
|
222
230
|
:'state_and_local_withholding' => :'stateAndLocalWithholding'
|
223
231
|
}
|
@@ -266,15 +274,17 @@ module AvalaraSdk::A1099::V2
|
|
266
274
|
:'city' => :'String',
|
267
275
|
:'state' => :'String',
|
268
276
|
:'zip' => :'String',
|
269
|
-
:'
|
277
|
+
:'email' => :'String',
|
270
278
|
:'account_number' => :'String',
|
271
279
|
:'office_code' => :'String',
|
272
|
-
:'
|
280
|
+
:'non_us_province' => :'String',
|
273
281
|
:'country_code' => :'String',
|
274
282
|
:'federal_e_file' => :'Boolean',
|
275
283
|
:'postal_mail' => :'Boolean',
|
276
284
|
:'state_e_file' => :'Boolean',
|
277
285
|
:'tin_match' => :'Boolean',
|
286
|
+
:'second_tin_notice' => :'Boolean',
|
287
|
+
:'fatca_filing_requirement' => :'Boolean',
|
278
288
|
:'address_verification' => :'Boolean',
|
279
289
|
:'state_and_local_withholding' => :'StateAndLocalWithholdingRequest'
|
280
290
|
}
|
@@ -302,12 +312,21 @@ module AvalaraSdk::A1099::V2
|
|
302
312
|
:'chap4_status_code',
|
303
313
|
:'issuer_id',
|
304
314
|
:'reference_id',
|
315
|
+
:'recipient_tin',
|
316
|
+
:'recipient_name',
|
305
317
|
:'recipient_second_name',
|
318
|
+
:'address',
|
306
319
|
:'address2',
|
307
|
-
:'
|
320
|
+
:'city',
|
321
|
+
:'state',
|
322
|
+
:'zip',
|
323
|
+
:'email',
|
308
324
|
:'account_number',
|
309
325
|
:'office_code',
|
310
|
-
:'
|
326
|
+
:'non_us_province',
|
327
|
+
:'country_code',
|
328
|
+
:'second_tin_notice',
|
329
|
+
:'state_and_local_withholding'
|
311
330
|
])
|
312
331
|
end
|
313
332
|
|
@@ -443,8 +462,6 @@ module AvalaraSdk::A1099::V2
|
|
443
462
|
|
444
463
|
if attributes.key?(:'recipient_name')
|
445
464
|
self.recipient_name = attributes[:'recipient_name']
|
446
|
-
else
|
447
|
-
self.recipient_name = nil
|
448
465
|
end
|
449
466
|
|
450
467
|
if attributes.key?(:'tin_type')
|
@@ -457,8 +474,6 @@ module AvalaraSdk::A1099::V2
|
|
457
474
|
|
458
475
|
if attributes.key?(:'address')
|
459
476
|
self.address = attributes[:'address']
|
460
|
-
else
|
461
|
-
self.address = nil
|
462
477
|
end
|
463
478
|
|
464
479
|
if attributes.key?(:'address2')
|
@@ -467,8 +482,6 @@ module AvalaraSdk::A1099::V2
|
|
467
482
|
|
468
483
|
if attributes.key?(:'city')
|
469
484
|
self.city = attributes[:'city']
|
470
|
-
else
|
471
|
-
self.city = nil
|
472
485
|
end
|
473
486
|
|
474
487
|
if attributes.key?(:'state')
|
@@ -479,8 +492,8 @@ module AvalaraSdk::A1099::V2
|
|
479
492
|
self.zip = attributes[:'zip']
|
480
493
|
end
|
481
494
|
|
482
|
-
if attributes.key?(:'
|
483
|
-
self.
|
495
|
+
if attributes.key?(:'email')
|
496
|
+
self.email = attributes[:'email']
|
484
497
|
end
|
485
498
|
|
486
499
|
if attributes.key?(:'account_number')
|
@@ -491,14 +504,12 @@ module AvalaraSdk::A1099::V2
|
|
491
504
|
self.office_code = attributes[:'office_code']
|
492
505
|
end
|
493
506
|
|
494
|
-
if attributes.key?(:'
|
495
|
-
self.
|
507
|
+
if attributes.key?(:'non_us_province')
|
508
|
+
self.non_us_province = attributes[:'non_us_province']
|
496
509
|
end
|
497
510
|
|
498
511
|
if attributes.key?(:'country_code')
|
499
512
|
self.country_code = attributes[:'country_code']
|
500
|
-
else
|
501
|
-
self.country_code = nil
|
502
513
|
end
|
503
514
|
|
504
515
|
if attributes.key?(:'federal_e_file')
|
@@ -517,6 +528,14 @@ module AvalaraSdk::A1099::V2
|
|
517
528
|
self.tin_match = attributes[:'tin_match']
|
518
529
|
end
|
519
530
|
|
531
|
+
if attributes.key?(:'second_tin_notice')
|
532
|
+
self.second_tin_notice = attributes[:'second_tin_notice']
|
533
|
+
end
|
534
|
+
|
535
|
+
if attributes.key?(:'fatca_filing_requirement')
|
536
|
+
self.fatca_filing_requirement = attributes[:'fatca_filing_requirement']
|
537
|
+
end
|
538
|
+
|
520
539
|
if attributes.key?(:'address_verification')
|
521
540
|
self.address_verification = attributes[:'address_verification']
|
522
541
|
end
|
@@ -531,38 +550,6 @@ module AvalaraSdk::A1099::V2
|
|
531
550
|
def list_invalid_properties
|
532
551
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
533
552
|
invalid_properties = Array.new
|
534
|
-
if @recipient_name.nil?
|
535
|
-
invalid_properties.push('invalid value for "recipient_name", recipient_name cannot be nil.')
|
536
|
-
end
|
537
|
-
|
538
|
-
if @recipient_name.to_s.length < 1
|
539
|
-
invalid_properties.push('invalid value for "recipient_name", the character length must be great than or equal to 1.')
|
540
|
-
end
|
541
|
-
|
542
|
-
if @address.nil?
|
543
|
-
invalid_properties.push('invalid value for "address", address cannot be nil.')
|
544
|
-
end
|
545
|
-
|
546
|
-
if @address.to_s.length < 1
|
547
|
-
invalid_properties.push('invalid value for "address", the character length must be great than or equal to 1.')
|
548
|
-
end
|
549
|
-
|
550
|
-
if @city.nil?
|
551
|
-
invalid_properties.push('invalid value for "city", city cannot be nil.')
|
552
|
-
end
|
553
|
-
|
554
|
-
if @city.to_s.length < 1
|
555
|
-
invalid_properties.push('invalid value for "city", the character length must be great than or equal to 1.')
|
556
|
-
end
|
557
|
-
|
558
|
-
if @country_code.nil?
|
559
|
-
invalid_properties.push('invalid value for "country_code", country_code cannot be nil.')
|
560
|
-
end
|
561
|
-
|
562
|
-
if @country_code.to_s.length < 1
|
563
|
-
invalid_properties.push('invalid value for "country_code", the character length must be great than or equal to 1.')
|
564
|
-
end
|
565
|
-
|
566
553
|
invalid_properties
|
567
554
|
end
|
568
555
|
|
@@ -580,16 +567,8 @@ module AvalaraSdk::A1099::V2
|
|
580
567
|
return false unless chap3_status_code_validator.valid?(@chap3_status_code)
|
581
568
|
chap4_status_code_validator = EnumAttributeValidator.new('String', ["UsWithholdingAgentFi", "UsWithholdingAgentOther", "TerritoryFiNotTreatedAsUsPerson", "TerritoryFiTreatedAsUsPerson", "ParticipatingFfiOther", "ParticipatingFfiReportingModel2Ffi", "RegisteredDeemedCompliantFfiReportingModel1Ffi", "RegisteredDeemedCompliantFfiSponsoredEntity", "RegisteredDeemedCompliantFfiOther", "CertifiedDeemedCompliantFfiOther", "CertifiedDeemedCompliantFfiffiWithLowValueAccounts", "CertifiedDeemedCompliantFfiNonRegisteringLocalBank", "CertifiedDeemedCompliantFfiSponsoredEntity", "CertifiedDeemedCompliantFfiInvestmentAdvisorOrManager", "NonparticipatingFfi", "OwnerDocumentedFfi", "UsBranchTreatedAsUsPerson", "UsBranchNotTreatedAsUsPerson", "PassiveNffeIdentifyingSubstantialUsOwners", "PassiveNffeWithNoSubstantialUsOwners", "PubliclyTradedNffeOrAffiliate", "ActiveNffe", "Individual", "Section501CEntities", "ExceptedTerritoryNffe", "ExceptedNffeOther", "ExemptBeneficialOwner", "EntityWhollyOwnedByExemptBeneficialOwners", "UnknownRecipient", "RecalcitrantAccountHolder", "NonreportingIgafii", "DirectReportingNffe", "UsReportableAccount", "NonConsentingUsAccount", "SponsoredDirectReportingNffe", "ExceptedInterAffiliateFfi", "UndocumentedPreexistingObligation", "UsBranchEciPresumptionApplied", "AccountHolderOfExcludedFinancialAccount", "PassiveNffeReportedByFfi", "NffeSubjectTo1472Withholding", "RecalcitrantPoolNoUsIndicia", "RecalcitrantPoolUsIndicia", "RecalcitrantPoolDormantAccount", "RecalcitrantPoolUsPersons", "RecalcitrantPoolPassiveNffEs", "NonparticipatingFfiPool", "UsPayeesPool", "QiRecalcitrantPoolGeneral", "UsWithholdingAgentForeignBranchOfFi"])
|
582
569
|
return false unless chap4_status_code_validator.valid?(@chap4_status_code)
|
583
|
-
return false if @recipient_name.nil?
|
584
|
-
return false if @recipient_name.to_s.length < 1
|
585
570
|
tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
|
586
571
|
return false unless tin_type_validator.valid?(@tin_type)
|
587
|
-
return false if @address.nil?
|
588
|
-
return false if @address.to_s.length < 1
|
589
|
-
return false if @city.nil?
|
590
|
-
return false if @city.to_s.length < 1
|
591
|
-
return false if @country_code.nil?
|
592
|
-
return false if @country_code.to_s.length < 1
|
593
572
|
true
|
594
573
|
end
|
595
574
|
|
@@ -643,20 +622,6 @@ module AvalaraSdk::A1099::V2
|
|
643
622
|
@chap4_status_code = chap4_status_code
|
644
623
|
end
|
645
624
|
|
646
|
-
# Custom attribute writer method with validation
|
647
|
-
# @param [Object] recipient_name Value to be assigned
|
648
|
-
def recipient_name=(recipient_name)
|
649
|
-
if recipient_name.nil?
|
650
|
-
fail ArgumentError, 'recipient_name cannot be nil'
|
651
|
-
end
|
652
|
-
|
653
|
-
if recipient_name.to_s.length < 1
|
654
|
-
fail ArgumentError, 'invalid value for "recipient_name", the character length must be great than or equal to 1.'
|
655
|
-
end
|
656
|
-
|
657
|
-
@recipient_name = recipient_name
|
658
|
-
end
|
659
|
-
|
660
625
|
# Custom attribute writer method checking allowed values (enum).
|
661
626
|
# @param [Object] tin_type Object to be assigned
|
662
627
|
def tin_type=(tin_type)
|
@@ -667,48 +632,6 @@ module AvalaraSdk::A1099::V2
|
|
667
632
|
@tin_type = tin_type
|
668
633
|
end
|
669
634
|
|
670
|
-
# Custom attribute writer method with validation
|
671
|
-
# @param [Object] address Value to be assigned
|
672
|
-
def address=(address)
|
673
|
-
if address.nil?
|
674
|
-
fail ArgumentError, 'address cannot be nil'
|
675
|
-
end
|
676
|
-
|
677
|
-
if address.to_s.length < 1
|
678
|
-
fail ArgumentError, 'invalid value for "address", the character length must be great than or equal to 1.'
|
679
|
-
end
|
680
|
-
|
681
|
-
@address = address
|
682
|
-
end
|
683
|
-
|
684
|
-
# Custom attribute writer method with validation
|
685
|
-
# @param [Object] city Value to be assigned
|
686
|
-
def city=(city)
|
687
|
-
if city.nil?
|
688
|
-
fail ArgumentError, 'city cannot be nil'
|
689
|
-
end
|
690
|
-
|
691
|
-
if city.to_s.length < 1
|
692
|
-
fail ArgumentError, 'invalid value for "city", the character length must be great than or equal to 1.'
|
693
|
-
end
|
694
|
-
|
695
|
-
@city = city
|
696
|
-
end
|
697
|
-
|
698
|
-
# Custom attribute writer method with validation
|
699
|
-
# @param [Object] country_code Value to be assigned
|
700
|
-
def country_code=(country_code)
|
701
|
-
if country_code.nil?
|
702
|
-
fail ArgumentError, 'country_code cannot be nil'
|
703
|
-
end
|
704
|
-
|
705
|
-
if country_code.to_s.length < 1
|
706
|
-
fail ArgumentError, 'invalid value for "country_code", the character length must be great than or equal to 1.'
|
707
|
-
end
|
708
|
-
|
709
|
-
@country_code = country_code
|
710
|
-
end
|
711
|
-
|
712
635
|
# Checks equality by comparing each attribute.
|
713
636
|
# @param [Object] Object to be compared
|
714
637
|
def ==(o)
|
@@ -749,15 +672,17 @@ module AvalaraSdk::A1099::V2
|
|
749
672
|
city == o.city &&
|
750
673
|
state == o.state &&
|
751
674
|
zip == o.zip &&
|
752
|
-
|
675
|
+
email == o.email &&
|
753
676
|
account_number == o.account_number &&
|
754
677
|
office_code == o.office_code &&
|
755
|
-
|
678
|
+
non_us_province == o.non_us_province &&
|
756
679
|
country_code == o.country_code &&
|
757
680
|
federal_e_file == o.federal_e_file &&
|
758
681
|
postal_mail == o.postal_mail &&
|
759
682
|
state_e_file == o.state_e_file &&
|
760
683
|
tin_match == o.tin_match &&
|
684
|
+
second_tin_notice == o.second_tin_notice &&
|
685
|
+
fatca_filing_requirement == o.fatca_filing_requirement &&
|
761
686
|
address_verification == o.address_verification &&
|
762
687
|
state_and_local_withholding == o.state_and_local_withholding
|
763
688
|
end
|
@@ -771,7 +696,7 @@ module AvalaraSdk::A1099::V2
|
|
771
696
|
# Calculates hash code according to all attributes.
|
772
697
|
# @return [Integer] Hash code
|
773
698
|
def hash
|
774
|
-
[unique_form_id, no_tin, recipient_date_of_birth, recipient_giin, recipient_foreign_tin, lob_code, income_code, gross_income, withholding_indicator, tax_country_code, exemption_code_chap3, exemption_code_chap4, tax_rate_chap3, withholding_allowance, federal_tax_withheld, tax_not_deposited_indicator, academic_indicator, tax_withheld_other_agents, amount_repaid, tax_paid_agent, chap3_status_code, chap4_status_code, primary_withholding_agent, intermediary_or_flow_through, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip,
|
699
|
+
[unique_form_id, no_tin, recipient_date_of_birth, recipient_giin, recipient_foreign_tin, lob_code, income_code, gross_income, withholding_indicator, tax_country_code, exemption_code_chap3, exemption_code_chap4, tax_rate_chap3, withholding_allowance, federal_tax_withheld, tax_not_deposited_indicator, academic_indicator, tax_withheld_other_agents, amount_repaid, tax_paid_agent, chap3_status_code, chap4_status_code, primary_withholding_agent, intermediary_or_flow_through, 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, second_tin_notice, fatca_filing_requirement, address_verification, state_and_local_withholding].hash
|
775
700
|
end
|
776
701
|
|
777
702
|
# Builds the object from hash
|
@@ -131,6 +131,9 @@ module AvalaraSdk::A1099::V2
|
|
131
131
|
# Address verification status
|
132
132
|
attr_accessor :address_verification_status
|
133
133
|
|
134
|
+
# EDelivery status
|
135
|
+
attr_accessor :e_delivery_status
|
136
|
+
|
134
137
|
# Reference ID
|
135
138
|
attr_accessor :reference_id
|
136
139
|
|
@@ -143,6 +146,9 @@ module AvalaraSdk::A1099::V2
|
|
143
146
|
# Recipient Tax ID Number
|
144
147
|
attr_accessor :tin
|
145
148
|
|
149
|
+
# Second Tin Notice
|
150
|
+
attr_accessor :second_tin_notice
|
151
|
+
|
146
152
|
# Recipient name
|
147
153
|
attr_accessor :recipient_name
|
148
154
|
|
@@ -165,11 +171,20 @@ module AvalaraSdk::A1099::V2
|
|
165
171
|
attr_accessor :zip
|
166
172
|
|
167
173
|
# Foreign province
|
168
|
-
attr_accessor :
|
174
|
+
attr_accessor :non_us_province
|
169
175
|
|
170
176
|
# Country code, as defined at https://www.irs.gov/e-file-providers/country-codes
|
171
177
|
attr_accessor :country_code
|
172
178
|
|
179
|
+
# Account Number
|
180
|
+
attr_accessor :account_number
|
181
|
+
|
182
|
+
# Office Code
|
183
|
+
attr_accessor :office_code
|
184
|
+
|
185
|
+
# FATCA filing requirement
|
186
|
+
attr_accessor :fatca_filing_requirement
|
187
|
+
|
173
188
|
# Validation errors
|
174
189
|
attr_accessor :validation_errors
|
175
190
|
|
@@ -224,10 +239,12 @@ module AvalaraSdk::A1099::V2
|
|
224
239
|
:'tin_match_status' => :'tinMatchStatus',
|
225
240
|
:'address_verification' => :'addressVerification',
|
226
241
|
:'address_verification_status' => :'addressVerificationStatus',
|
242
|
+
:'e_delivery_status' => :'eDeliveryStatus',
|
227
243
|
:'reference_id' => :'referenceId',
|
228
244
|
:'email' => :'email',
|
229
245
|
:'tin_type' => :'tinType',
|
230
246
|
:'tin' => :'tin',
|
247
|
+
:'second_tin_notice' => :'secondTinNotice',
|
231
248
|
:'recipient_name' => :'recipientName',
|
232
249
|
:'recipient_second_name' => :'recipientSecondName',
|
233
250
|
:'address' => :'address',
|
@@ -235,8 +252,11 @@ module AvalaraSdk::A1099::V2
|
|
235
252
|
:'city' => :'city',
|
236
253
|
:'state' => :'state',
|
237
254
|
:'zip' => :'zip',
|
238
|
-
:'
|
255
|
+
:'non_us_province' => :'nonUsProvince',
|
239
256
|
:'country_code' => :'countryCode',
|
257
|
+
:'account_number' => :'accountNumber',
|
258
|
+
:'office_code' => :'officeCode',
|
259
|
+
:'fatca_filing_requirement' => :'fatcaFilingRequirement',
|
240
260
|
:'validation_errors' => :'validationErrors',
|
241
261
|
:'created_at' => :'createdAt',
|
242
262
|
:'updated_at' => :'updatedAt',
|
@@ -283,19 +303,21 @@ module AvalaraSdk::A1099::V2
|
|
283
303
|
:'issuer_tin' => :'String',
|
284
304
|
:'tax_year' => :'Integer',
|
285
305
|
:'federal_efile' => :'Boolean',
|
286
|
-
:'federal_efile_status' => :'
|
306
|
+
:'federal_efile_status' => :'StatusDetail',
|
287
307
|
:'state_efile' => :'Boolean',
|
288
308
|
:'state_efile_status' => :'Array<StateEfileStatusDetailResponse>',
|
289
309
|
:'postal_mail' => :'Boolean',
|
290
|
-
:'postal_mail_status' => :'
|
310
|
+
:'postal_mail_status' => :'StatusDetail',
|
291
311
|
:'tin_match' => :'Boolean',
|
292
|
-
:'tin_match_status' => :'
|
312
|
+
:'tin_match_status' => :'StatusDetail',
|
293
313
|
:'address_verification' => :'Boolean',
|
294
|
-
:'address_verification_status' => :'
|
314
|
+
:'address_verification_status' => :'StatusDetail',
|
315
|
+
:'e_delivery_status' => :'StatusDetail',
|
295
316
|
:'reference_id' => :'String',
|
296
317
|
:'email' => :'String',
|
297
318
|
:'tin_type' => :'String',
|
298
319
|
:'tin' => :'String',
|
320
|
+
:'second_tin_notice' => :'Boolean',
|
299
321
|
:'recipient_name' => :'String',
|
300
322
|
:'recipient_second_name' => :'String',
|
301
323
|
:'address' => :'String',
|
@@ -303,8 +325,11 @@ module AvalaraSdk::A1099::V2
|
|
303
325
|
:'city' => :'String',
|
304
326
|
:'state' => :'String',
|
305
327
|
:'zip' => :'String',
|
306
|
-
:'
|
328
|
+
:'non_us_province' => :'String',
|
307
329
|
:'country_code' => :'String',
|
330
|
+
:'account_number' => :'String',
|
331
|
+
:'office_code' => :'String',
|
332
|
+
:'fatca_filing_requirement' => :'Boolean',
|
308
333
|
:'validation_errors' => :'Array<ValidationErrorResponse>',
|
309
334
|
:'created_at' => :'Time',
|
310
335
|
:'updated_at' => :'Time',
|
@@ -338,10 +363,12 @@ module AvalaraSdk::A1099::V2
|
|
338
363
|
:'postal_mail_status',
|
339
364
|
:'tin_match_status',
|
340
365
|
:'address_verification_status',
|
366
|
+
:'e_delivery_status',
|
341
367
|
:'reference_id',
|
342
368
|
:'email',
|
343
369
|
:'tin_type',
|
344
370
|
:'tin',
|
371
|
+
:'second_tin_notice',
|
345
372
|
:'recipient_name',
|
346
373
|
:'recipient_second_name',
|
347
374
|
:'address',
|
@@ -349,8 +376,11 @@ module AvalaraSdk::A1099::V2
|
|
349
376
|
:'city',
|
350
377
|
:'state',
|
351
378
|
:'zip',
|
352
|
-
:'
|
379
|
+
:'non_us_province',
|
353
380
|
:'country_code',
|
381
|
+
:'account_number',
|
382
|
+
:'office_code',
|
383
|
+
:'fatca_filing_requirement',
|
354
384
|
:'validation_errors',
|
355
385
|
:'state_and_local_withholding'
|
356
386
|
])
|
@@ -556,6 +586,10 @@ module AvalaraSdk::A1099::V2
|
|
556
586
|
self.address_verification_status = attributes[:'address_verification_status']
|
557
587
|
end
|
558
588
|
|
589
|
+
if attributes.key?(:'e_delivery_status')
|
590
|
+
self.e_delivery_status = attributes[:'e_delivery_status']
|
591
|
+
end
|
592
|
+
|
559
593
|
if attributes.key?(:'reference_id')
|
560
594
|
self.reference_id = attributes[:'reference_id']
|
561
595
|
end
|
@@ -572,6 +606,10 @@ module AvalaraSdk::A1099::V2
|
|
572
606
|
self.tin = attributes[:'tin']
|
573
607
|
end
|
574
608
|
|
609
|
+
if attributes.key?(:'second_tin_notice')
|
610
|
+
self.second_tin_notice = attributes[:'second_tin_notice']
|
611
|
+
end
|
612
|
+
|
575
613
|
if attributes.key?(:'recipient_name')
|
576
614
|
self.recipient_name = attributes[:'recipient_name']
|
577
615
|
end
|
@@ -600,14 +638,26 @@ module AvalaraSdk::A1099::V2
|
|
600
638
|
self.zip = attributes[:'zip']
|
601
639
|
end
|
602
640
|
|
603
|
-
if attributes.key?(:'
|
604
|
-
self.
|
641
|
+
if attributes.key?(:'non_us_province')
|
642
|
+
self.non_us_province = attributes[:'non_us_province']
|
605
643
|
end
|
606
644
|
|
607
645
|
if attributes.key?(:'country_code')
|
608
646
|
self.country_code = attributes[:'country_code']
|
609
647
|
end
|
610
648
|
|
649
|
+
if attributes.key?(:'account_number')
|
650
|
+
self.account_number = attributes[:'account_number']
|
651
|
+
end
|
652
|
+
|
653
|
+
if attributes.key?(:'office_code')
|
654
|
+
self.office_code = attributes[:'office_code']
|
655
|
+
end
|
656
|
+
|
657
|
+
if attributes.key?(:'fatca_filing_requirement')
|
658
|
+
self.fatca_filing_requirement = attributes[:'fatca_filing_requirement']
|
659
|
+
end
|
660
|
+
|
611
661
|
if attributes.key?(:'validation_errors')
|
612
662
|
if (value = attributes[:'validation_errors']).is_a?(Array)
|
613
663
|
self.validation_errors = value
|
@@ -777,10 +827,12 @@ module AvalaraSdk::A1099::V2
|
|
777
827
|
tin_match_status == o.tin_match_status &&
|
778
828
|
address_verification == o.address_verification &&
|
779
829
|
address_verification_status == o.address_verification_status &&
|
830
|
+
e_delivery_status == o.e_delivery_status &&
|
780
831
|
reference_id == o.reference_id &&
|
781
832
|
email == o.email &&
|
782
833
|
tin_type == o.tin_type &&
|
783
834
|
tin == o.tin &&
|
835
|
+
second_tin_notice == o.second_tin_notice &&
|
784
836
|
recipient_name == o.recipient_name &&
|
785
837
|
recipient_second_name == o.recipient_second_name &&
|
786
838
|
address == o.address &&
|
@@ -788,8 +840,11 @@ module AvalaraSdk::A1099::V2
|
|
788
840
|
city == o.city &&
|
789
841
|
state == o.state &&
|
790
842
|
zip == o.zip &&
|
791
|
-
|
843
|
+
non_us_province == o.non_us_province &&
|
792
844
|
country_code == o.country_code &&
|
845
|
+
account_number == o.account_number &&
|
846
|
+
office_code == o.office_code &&
|
847
|
+
fatca_filing_requirement == o.fatca_filing_requirement &&
|
793
848
|
validation_errors == o.validation_errors &&
|
794
849
|
created_at == o.created_at &&
|
795
850
|
updated_at == o.updated_at &&
|
@@ -805,7 +860,7 @@ module AvalaraSdk::A1099::V2
|
|
805
860
|
# Calculates hash code according to all attributes.
|
806
861
|
# @return [Integer] Hash code
|
807
862
|
def hash
|
808
|
-
[unique_form_id, no_tin, recipient_date_of_birth, recipient_giin, recipient_foreign_tin, lob_code, income_code, gross_income, withholding_indicator, tax_country_code, exemption_code_chap3, exemption_code_chap4, tax_rate_chap3, withholding_allowance, federal_tax_withheld, tax_not_deposited_indicator, academic_indicator, tax_withheld_other_agents, amount_repaid, tax_paid_agent, chap3_status_code, chap4_status_code, primary_withholding_agent, intermediary_or_flow_through, 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,
|
863
|
+
[unique_form_id, no_tin, recipient_date_of_birth, recipient_giin, recipient_foreign_tin, lob_code, income_code, gross_income, withholding_indicator, tax_country_code, exemption_code_chap3, exemption_code_chap4, tax_rate_chap3, withholding_allowance, federal_tax_withheld, tax_not_deposited_indicator, academic_indicator, tax_withheld_other_agents, amount_repaid, tax_paid_agent, chap3_status_code, chap4_status_code, primary_withholding_agent, intermediary_or_flow_through, 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, 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
|
809
864
|
end
|
810
865
|
|
811
866
|
# Builds the object from hash
|