avalara_sdk 25.8.2 → 25.8.3
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 +18 -79
- data/docs/A1099/V2/CompaniesW9Api.md +18 -18
- data/docs/A1099/V2/CompanyCreateUpdateRequestModel.md +18 -18
- data/docs/A1099/V2/CompanyResponse.md +37 -37
- data/docs/A1099/V2/CoveredIndividual.md +56 -0
- data/docs/A1099/V2/CreateAndSendW9FormEmailRequest.md +55 -0
- data/docs/A1099/V2/CreateCompanyRequest.md +49 -0
- data/docs/A1099/V2/CreateIssuerRequest.md +49 -0
- data/docs/A1099/V2/EntryStatusResponse.md +20 -0
- data/docs/A1099/V2/Form1042S.md +83 -83
- data/docs/A1099/V2/Form1095B.md +72 -62
- data/docs/A1099/V2/Form1095C.md +112 -0
- data/docs/A1099/V2/Form1099Base.md +60 -60
- data/docs/A1099/V2/Form1099Div.md +79 -77
- data/docs/A1099/V2/Form1099Int.md +76 -74
- data/docs/A1099/V2/Form1099K.md +83 -83
- data/docs/A1099/V2/Form1099ListRequest.md +20 -0
- data/docs/A1099/V2/Form1099Misc.md +79 -77
- data/docs/A1099/V2/Form1099Nec.md +64 -64
- data/docs/A1099/V2/Form1099R.md +95 -93
- data/docs/A1099/V2/Forms1099Api.md +45 -41
- data/docs/A1099/V2/FormsW9Api.md +98 -14
- data/docs/A1099/V2/Get1099Form200Response.md +19 -19
- data/docs/A1099/V2/IntermediaryOrFlowThrough.md +11 -11
- data/docs/A1099/V2/IssuerCommand.md +16 -16
- data/docs/A1099/V2/IssuerResponse.md +35 -35
- data/docs/A1099/V2/Issuers1099Api.md +10 -10
- data/docs/A1099/V2/JobResponse.md +56 -0
- data/docs/A1099/V2/JobsApi.md +91 -0
- data/docs/A1099/V2/OfferAndCoverage.md +28 -0
- data/docs/A1099/V2/PaginatedQueryResultModelForm1099Base.md +22 -0
- data/docs/A1099/V2/PrimaryWithholdingAgent.md +4 -4
- data/docs/A1099/V2/StateAndLocalWithholding.md +8 -8
- data/docs/A1099/V2/ValidationError.md +2 -2
- data/docs/A1099/V2/W4FormMinimalRequest.md +30 -0
- data/docs/A1099/V2/W4FormRequest.md +6 -6
- data/docs/A1099/V2/W8BenEFormMinimalRequest.md +28 -0
- data/docs/A1099/V2/W8BenEFormRequest.md +6 -6
- data/docs/A1099/V2/W8BenFormMinimalRequest.md +28 -0
- data/docs/A1099/V2/W8BenFormRequest.md +6 -6
- data/docs/A1099/V2/W8ImyFormMinimalRequest.md +28 -0
- data/docs/A1099/V2/W8ImyFormRequest.md +6 -6
- data/docs/A1099/V2/W9FormBaseMinimalRequest.md +24 -0
- data/docs/A1099/V2/W9FormBaseRequest.md +6 -6
- data/docs/A1099/V2/W9FormBaseResponse.md +3 -3
- data/docs/A1099/V2/W9FormMinimalRequest.md +28 -0
- data/docs/A1099/V2/W9FormRequest.md +6 -6
- data/lib/avalara_sdk/api/A1099/V2/companies_w9_api.rb +27 -27
- data/lib/avalara_sdk/api/A1099/V2/forms1099_api.rb +89 -57
- data/lib/avalara_sdk/api/A1099/V2/forms_w9_api.rb +144 -6
- data/lib/avalara_sdk/api/A1099/V2/issuers1099_api.rb +21 -21
- data/lib/avalara_sdk/api/A1099/V2/{jobs1099_api.rb → jobs_api.rb} +9 -9
- 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/company_create_update_request_model.rb +58 -17
- data/lib/avalara_sdk/models/A1099/V2/company_response.rb +110 -69
- data/lib/avalara_sdk/models/A1099/V2/{covered_individual_request.rb → covered_individual.rb} +36 -7
- data/lib/avalara_sdk/models/A1099/V2/{i_create_form1099_request.rb → create_and_send_w9_form_email_request.rb} +6 -5
- data/lib/avalara_sdk/models/A1099/V2/{error_response_errors_inner.rb → create_company_request.rb} +3 -3
- data/lib/avalara_sdk/models/A1099/V2/{i_update_form1099_request.rb → create_issuer_request.rb} +3 -5
- data/lib/avalara_sdk/models/A1099/V2/{status_detail.rb → entry_status_response.rb} +20 -18
- data/lib/avalara_sdk/models/A1099/V2/form1042_s.rb +424 -179
- data/lib/avalara_sdk/models/A1099/V2/form1095_b.rb +365 -179
- data/lib/avalara_sdk/models/A1099/V2/{form1095_b_response.rb → form1095_c.rb} +259 -111
- data/lib/avalara_sdk/models/A1099/V2/form1099_base.rb +286 -177
- data/lib/avalara_sdk/models/A1099/V2/form1099_div.rb +310 -171
- data/lib/avalara_sdk/models/A1099/V2/form1099_int.rb +308 -174
- data/lib/avalara_sdk/models/A1099/V2/form1099_k.rb +298 -186
- data/lib/avalara_sdk/models/A1099/V2/{form1099_div_list.rb → form1099_list_request.rb} +49 -22
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc.rb +337 -201
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec.rb +298 -183
- data/lib/avalara_sdk/models/A1099/V2/form1099_r.rb +414 -274
- data/lib/avalara_sdk/models/A1099/V2/get1099_form200_response.rb +9 -9
- data/lib/avalara_sdk/models/A1099/V2/intermediary_or_flow_through.rb +13 -1
- data/lib/avalara_sdk/models/A1099/V2/issuer_command.rb +42 -23
- data/lib/avalara_sdk/models/A1099/V2/issuer_response.rb +77 -46
- data/lib/avalara_sdk/models/A1099/V2/{job_result.rb → job_response.rb} +108 -42
- data/lib/avalara_sdk/models/A1099/V2/{offer_and_coverage_request.rb → offer_and_coverage.rb} +79 -9
- data/lib/avalara_sdk/models/A1099/V2/{paginated_query_result_model.rb → paginated_query_result_model_form1099_base.rb} +4 -4
- data/lib/avalara_sdk/models/A1099/V2/primary_withholding_agent.rb +23 -16
- data/lib/avalara_sdk/models/A1099/V2/state_and_local_withholding.rb +8 -0
- data/lib/avalara_sdk/models/A1099/V2/validation_error.rb +2 -0
- data/lib/avalara_sdk/models/A1099/V2/w4_form_minimal_request.rb +418 -0
- data/lib/avalara_sdk/models/A1099/V2/w4_form_request.rb +53 -27
- data/lib/avalara_sdk/models/A1099/V2/{company_model.rb → w8_ben_e_form_minimal_request.rb} +139 -170
- data/lib/avalara_sdk/models/A1099/V2/w8_ben_e_form_request.rb +53 -27
- data/lib/avalara_sdk/models/A1099/V2/{base_company_model.rb → w8_ben_form_minimal_request.rb} +148 -122
- data/lib/avalara_sdk/models/A1099/V2/w8_ben_form_request.rb +53 -27
- data/lib/avalara_sdk/models/A1099/V2/{attribute.rb → w8_imy_form_minimal_request.rb} +135 -132
- data/lib/avalara_sdk/models/A1099/V2/w8_imy_form_request.rb +53 -27
- data/lib/avalara_sdk/models/A1099/V2/{http_validation_problem_details.rb → w9_form_base_minimal_request.rb} +87 -53
- data/lib/avalara_sdk/models/A1099/V2/w9_form_base_request.rb +60 -27
- data/lib/avalara_sdk/models/A1099/V2/w9_form_base_response.rb +14 -14
- data/lib/avalara_sdk/models/A1099/V2/{company_response_model.rb → w9_form_minimal_request.rb} +140 -148
- data/lib/avalara_sdk/models/A1099/V2/w9_form_request.rb +53 -27
- data/lib/avalara_sdk/version.rb +1 -1
- data/lib/avalara_sdk.rb +22 -105
- 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 +37 -103
- data/lib/avalara_sdk/models/A1099/V2/base_form_list_request.rb +0 -210
- data/lib/avalara_sdk/models/A1099/V2/bulk_upsert1099_forms_request.rb +0 -108
- data/lib/avalara_sdk/models/A1099/V2/covered_individual_reference.rb +0 -403
- data/lib/avalara_sdk/models/A1099/V2/covered_individual_reference_response.rb +0 -407
- data/lib/avalara_sdk/models/A1099/V2/create1099_form201_response.rb +0 -108
- data/lib/avalara_sdk/models/A1099/V2/data.rb +0 -237
- data/lib/avalara_sdk/models/A1099/V2/form1042_s_list.rb +0 -238
- data/lib/avalara_sdk/models/A1099/V2/form1042_s_list_item.rb +0 -816
- data/lib/avalara_sdk/models/A1099/V2/form1042_s_list_item_response.rb +0 -980
- data/lib/avalara_sdk/models/A1099/V2/form1042_s_request.rb +0 -778
- data/lib/avalara_sdk/models/A1099/V2/form1042_s_response.rb +0 -619
- data/lib/avalara_sdk/models/A1099/V2/form1095_b_list.rb +0 -238
- data/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item.rb +0 -606
- data/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item_response.rb +0 -765
- data/lib/avalara_sdk/models/A1099/V2/form1095_b_request.rb +0 -627
- data/lib/avalara_sdk/models/A1099/V2/form1095_c_list.rb +0 -238
- data/lib/avalara_sdk/models/A1099/V2/form1095_c_list_item.rb +0 -662
- data/lib/avalara_sdk/models/A1099/V2/form1099_base_response.rb +0 -726
- data/lib/avalara_sdk/models/A1099/V2/form1099_div_list_item.rb +0 -747
- data/lib/avalara_sdk/models/A1099/V2/form1099_div_list_item_response.rb +0 -931
- data/lib/avalara_sdk/models/A1099/V2/form1099_div_request.rb +0 -729
- data/lib/avalara_sdk/models/A1099/V2/form1099_div_response.rb +0 -790
- data/lib/avalara_sdk/models/A1099/V2/form1099_int_list.rb +0 -238
- data/lib/avalara_sdk/models/A1099/V2/form1099_int_list_item.rb +0 -702
- data/lib/avalara_sdk/models/A1099/V2/form1099_int_list_item_response.rb +0 -887
- data/lib/avalara_sdk/models/A1099/V2/form1099_int_request.rb +0 -684
- data/lib/avalara_sdk/models/A1099/V2/form1099_int_response.rb +0 -773
- data/lib/avalara_sdk/models/A1099/V2/form1099_k_list.rb +0 -238
- data/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item.rb +0 -788
- data/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item_response.rb +0 -995
- data/lib/avalara_sdk/models/A1099/V2/form1099_k_request.rb +0 -770
- data/lib/avalara_sdk/models/A1099/V2/form1099_k_response.rb +0 -839
- data/lib/avalara_sdk/models/A1099/V2/form1099_list.rb +0 -219
- data/lib/avalara_sdk/models/A1099/V2/form1099_list_data_inner.rb +0 -55
- data/lib/avalara_sdk/models/A1099/V2/form1099_list_response.rb +0 -220
- data/lib/avalara_sdk/models/A1099/V2/form1099_list_response_value_inner.rb +0 -108
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list.rb +0 -238
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item.rb +0 -688
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item_response.rb +0 -886
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_request.rb +0 -670
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_response.rb +0 -754
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list.rb +0 -238
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item.rb +0 -586
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item_response.rb +0 -765
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_request.rb +0 -567
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_response.rb +0 -646
- data/lib/avalara_sdk/models/A1099/V2/form1099_proccess_result.rb +0 -228
- data/lib/avalara_sdk/models/A1099/V2/form1099_proccess_result_processed_forms_inner.rb +0 -107
- data/lib/avalara_sdk/models/A1099/V2/form1099_r_list.rb +0 -238
- data/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item.rb +0 -763
- data/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item_response.rb +0 -942
- data/lib/avalara_sdk/models/A1099/V2/form1099_r_request.rb +0 -720
- data/lib/avalara_sdk/models/A1099/V2/form1099_r_response.rb +0 -839
- data/lib/avalara_sdk/models/A1099/V2/form1099_status_detail_response.rb +0 -223
- data/lib/avalara_sdk/models/A1099/V2/form_request_base.rb +0 -502
- data/lib/avalara_sdk/models/A1099/V2/form_request_csv_base.rb +0 -475
- data/lib/avalara_sdk/models/A1099/V2/form_request_list_item_base.rb +0 -548
- data/lib/avalara_sdk/models/A1099/V2/form_request_model.rb +0 -345
- data/lib/avalara_sdk/models/A1099/V2/form_response_base.rb +0 -612
- data/lib/avalara_sdk/models/A1099/V2/form_single_request_base.rb +0 -530
- data/lib/avalara_sdk/models/A1099/V2/included_base.rb +0 -219
- data/lib/avalara_sdk/models/A1099/V2/intermediary_or_flow_through_request.rb +0 -311
- data/lib/avalara_sdk/models/A1099/V2/intermediary_or_flow_through_response.rb +0 -311
- data/lib/avalara_sdk/models/A1099/V2/link.rb +0 -210
- data/lib/avalara_sdk/models/A1099/V2/paginated_w9_forms_model.rb +0 -231
- data/lib/avalara_sdk/models/A1099/V2/primary_withholding_agent_request.rb +0 -221
- data/lib/avalara_sdk/models/A1099/V2/primary_withholding_agent_response.rb +0 -221
- data/lib/avalara_sdk/models/A1099/V2/problem_details.rb +0 -251
- data/lib/avalara_sdk/models/A1099/V2/state_and_local_withholding_request.rb +0 -278
- data/lib/avalara_sdk/models/A1099/V2/state_and_local_withholding_response.rb +0 -282
- data/lib/avalara_sdk/models/A1099/V2/state_efile_status_detail_app.rb +0 -231
- data/lib/avalara_sdk/models/A1099/V2/state_efile_status_detail_response.rb +0 -231
- data/lib/avalara_sdk/models/A1099/V2/update1099_form200_response.rb +0 -108
- data/lib/avalara_sdk/models/A1099/V2/validation_error_app.rb +0 -229
- data/lib/avalara_sdk/models/A1099/V2/validation_error_response.rb +0 -231
- data/lib/avalara_sdk/models/EInvoicing/V1/directory_search_response.rb +0 -233
- data/lib/avalara_sdk/models/EInvoicing/V1/directory_search_response_value_inner.rb +0 -274
- data/lib/avalara_sdk/models/EInvoicing/V1/directory_search_response_value_inner_addresses_inner.rb +0 -251
- data/lib/avalara_sdk/models/EInvoicing/V1/directory_search_response_value_inner_identifiers_inner.rb +0 -221
- data/lib/avalara_sdk/models/EInvoicing/V1/directory_search_response_value_inner_supported_document_types_inner.rb +0 -241
- data/lib/avalara_sdk/models/EInvoicing/V1/document_fetch_request.rb +0 -224
- data/lib/avalara_sdk/models/EInvoicing/V1/document_fetch_request_data_inner.rb +0 -237
- data/lib/avalara_sdk/models/EInvoicing/V1/document_fetch_request_metadata.rb +0 -288
- data/lib/avalara_sdk/models/EInvoicing/V1/submit_document_data.rb +0 -216
@@ -10,134 +10,219 @@ require 'date'
|
|
10
10
|
require 'time'
|
11
11
|
|
12
12
|
module AvalaraSdk::A1099::V2
|
13
|
-
|
13
|
+
# Form 1042-S: Foreign Person's U.S. Source Income Subject to Withholding
|
14
|
+
class Form1042S
|
15
|
+
attr_accessor :tin_type
|
16
|
+
|
17
|
+
# Unique form identifier
|
14
18
|
attr_accessor :unique_form_id
|
15
19
|
|
20
|
+
# Recipient's date of birth
|
16
21
|
attr_accessor :recipient_date_of_birth
|
17
22
|
|
23
|
+
# Recipient's Global Intermediary Identification Number (GIIN). A valid GIIN looks like 'XXXXXX.XXXXX.XX.XXX'.
|
18
24
|
attr_accessor :recipient_giin
|
19
25
|
|
26
|
+
# Recipient's foreign TIN. Required if email is specified, must fill either this or Chap3StatusCode.
|
20
27
|
attr_accessor :recipient_foreign_tin
|
21
28
|
|
29
|
+
# Limitation on Benefits (LOB) code for tax treaty purposes. Available values: - 01: Individual (Deprecated - valid only for tax years prior to 2019) - 02: Government - contracting state/political subdivision/local authority - 03: Tax exempt pension trust/Pension fund - 04: Tax exempt/Charitable organization - 05: Publicly-traded corporation - 06: Subsidiary of publicly-traded corporation - 07: Company that meets the ownership and base erosion test - 08: Company that meets the derivative benefits test - 09: Company with an item of income that meets the active trade or business test - 10: Discretionary determination - 11: Other - 12: No LOB article in treaty
|
22
30
|
attr_accessor :lob_code
|
23
31
|
|
32
|
+
# Income code. Available values: Interest: - 01: Interest paid by US obligors - general - 02: Interest paid on real property mortgages - 03: Interest paid to controlling foreign corporations - 04: Interest paid by foreign corporations - 05: Interest on tax-free covenant bonds - 22: Interest paid on deposit with a foreign branch of a domestic corporation or partnership - 29: Deposit interest - 30: Original issue discount (OID) - 31: Short-term OID - 33: Substitute payment - interest - 51: Interest paid on certain actively traded or publicly offered securities(1) - 54: Substitute payments - interest from certain actively traded or publicly offered securities(1) Dividend: - 06: Dividends paid by U.S. corporations - general - 07: Dividends qualifying for direct dividend rate - 08: Dividends paid by foreign corporations - 34: Substitute payment - dividends - 40: Other dividend equivalents under IRC section 871(m) (formerly 871(l)) - 52: Dividends paid on certain actively traded or publicly offered securities(1) - 53: Substitute payments - dividends from certain actively traded or publicly offered securities(1) - 56: Dividend equivalents under IRC section 871(m) as a result of applying the combined transaction rules Other: - 09: Capital gains - 10: Industrial royalties - 11: Motion picture or television copyright royalties - 12: Other royalties (for example, copyright, software, broadcasting, endorsement payments) - 13: Royalties paid on certain publicly offered securities(1) - 14: Real property income and natural resources royalties - 15: Pensions, annuities, alimony, and/or insurance premiums - 16: Scholarship or fellowship grants - 17: Compensation for independent personal services(2) - 18: Compensation for dependent personal services(2) - 19: Compensation for teaching(2) - 20: Compensation during studying and training(2) - 23: Other income - 24: Qualified investment entity (QIE) distributions of capital gains - 25: Trust distributions subject to IRC section 1445 - 26: Unsevered growing crops and timber distributions by a trust subject to IRC section 1445 - 27: Publicly traded partnership distributions subject to IRC section 1446 - 28: Gambling winnings(3) - 32: Notional principal contract income(4) - 35: Substitute payment - other - 36: Capital gains distributions - 37: Return of capital - 38: Eligible deferred compensation items subject to IRC section 877A(d)(1) - 39: Distributions from a nongrantor trust subject to IRC section 877A(f)(1) - 41: Guarantee of indebtedness - 42: Earnings as an artist or athlete - no central withholding agreement(5) - 43: Earnings as an artist or athlete - central withholding agreement(5) - 44: Specified Federal procurement payments - 50: Income previously reported under escrow procedure(6) - 55: Taxable death benefits on life insurance contracts - 57: Amount realized under IRC section 1446(f) - 58: Publicly traded partnership distributions-undetermined
|
24
33
|
attr_accessor :income_code
|
25
34
|
|
35
|
+
# Gross income
|
26
36
|
attr_accessor :gross_income
|
27
37
|
|
38
|
+
# Withholding indicator Available values: - 3: Chapter 3 - 4: Chapter 4
|
28
39
|
attr_accessor :withholding_indicator
|
29
40
|
|
41
|
+
# Country code
|
30
42
|
attr_accessor :tax_country_code
|
31
43
|
|
44
|
+
# Exemption code (Chapter 3). Required if WithholdingIndicator is 3 (Chapter 3). Required when using TaxRateChap3. Available values: - Empty: Tax rate is due to backup withholding - 00: Not exempt - 01: Effectively connected income - 02: Exempt under IRC (other than portfolio interest) - 03: Income is not from US sources - 04: Exempt under tax treaty - 05: Portfolio interest exempt under IRC - 06: QI that assumes primary withholding responsibility - 07: WFP or WFT - 08: U.S. branch treated as U.S. Person - 09: Territory FI treated as U.S. Person - 10: QI represents that income is exempt - 11: QSL that assumes primary withholding responsibility - 12: Payee subjected to chapter 4 withholding - 22: QDD that assumes primary withholding responsibility - 23: Exempt under section 897(l) - 24: Exempt under section 892
|
32
45
|
attr_accessor :exemption_code_chap3
|
33
46
|
|
47
|
+
# Exemption code (Chapter 4). Required if WithholdingIndicator is 4 (Chapter 4). Available values: - 00: Not exempt - 13: Grandfathered payment - 14: Effectively connected income - 15: Payee not subject to chapter 4 withholding - 16: Excluded nonfinancial payment - 17: Foreign Entity that assumes primary withholding responsibility - 18: U.S. Payees - of participating FFI or registered deemed - compliant FFI - 19: Exempt from withholding under IGA(6) - 20: Dormant account(7) - 21: Other - payment not subject to chapter 4 withholding
|
34
48
|
attr_accessor :exemption_code_chap4
|
35
49
|
|
50
|
+
# Tax rate (Chapter 3) - Required if WithholdingIndicator is 3 (Chapter 3). Available values: - 00.00: 0.00% - 02.00: 2.00% - 04.00: 4.00% - 04.90: 4.90% - 04.95: 4.95% - 05.00: 5.00% - 07.00: 7.00% - 08.00: 8.00% - 10.00: 10.00% - 12.00: 12.00% - 12.50: 12.50% - 14.00: 14.00% - 15.00: 15.00% - 17.50: 17.50% - 20.00: 20.00% - 21.00: 21.00% - 24.00: 24.00% - 25.00: 25.00% - 27.50: 27.50% - 28.00: 28.00% - 30.00: 30.00% - 37.00: 37.00%
|
36
51
|
attr_accessor :tax_rate_chap3
|
37
52
|
|
53
|
+
# Withholding allowance
|
38
54
|
attr_accessor :withholding_allowance
|
39
55
|
|
56
|
+
# Federal tax withheld
|
40
57
|
attr_accessor :federal_tax_withheld
|
41
58
|
|
59
|
+
# Tax not deposited indicator
|
42
60
|
attr_accessor :tax_not_deposited_indicator
|
43
61
|
|
62
|
+
# Academic indicator
|
44
63
|
attr_accessor :academic_indicator
|
45
64
|
|
65
|
+
# Tax withheld by other agents
|
46
66
|
attr_accessor :tax_withheld_other_agents
|
47
67
|
|
68
|
+
# Amount repaid to recipient
|
48
69
|
attr_accessor :amount_repaid
|
49
70
|
|
71
|
+
# Tax paid by withholding agent
|
50
72
|
attr_accessor :tax_paid_agent
|
51
73
|
|
74
|
+
# Chapter 3 status code - Required if WithholdingIndicator is 3 (Chapter 3) Available values: - 01: U.S. Withholding Agent - FI (Deprecated - valid only for tax years prior to 2020) - 02: U.S. Withholding Agent - Other (Deprecated - valid only for tax years prior to 2020) - 03: Territory FI - treated as U.S. Person - 04: Territory FI - not treated as U.S. Person - 05: U.S. branch - treated as U.S. Person - 06: U.S. branch - not treated as U.S. Person - 07: U.S. branch - ECI presumption applied - 08: Partnership other than Withholding Foreign Partnership - 09: Withholding Foreign Partnership - 10: Trust other than Withholding Foreign Trust - 11: Withholding Foreign Trust - 12: Qualified Intermediary - 13: Qualified Securities Lender - Qualified Intermediary - 14: Qualified Securities Lender - Other - 15: Corporation - 16: Individual - 17: Estate - 18: Private Foundation - 19: Government or International Organization - 20: Tax Exempt Organization (Section 501(c) entities) - 21: Unknown Recipient - 22: Artist or Athlete - 23: Pension - 24: Foreign Central Bank of Issue - 25: Nonqualified Intermediary - 26: Hybrid entity making Treaty Claim - 27: Withholding Rate Pool - General - 28: Withholding Rate Pool - Exempt Organization - 29: PAI Withholding Rate Pool - General - 30: PAI Withholding Rate Pool - Exempt Organization - 31: Agency Withholding Rate Pool - General - 32: Agency Withholding Rate Pool - Exempt Organization - 34: U.S. Withholding Agent-Foreign branch of FI (Deprecated - valid only for tax years prior to 2020) - 35: Qualified Derivatives Dealer - 36: Foreign Government - Integral Part - 37: Foreign Government - Controlled Entity - 38: Publicly Traded Partnership - 39: Disclosing Qualified Intermediary
|
52
75
|
attr_accessor :chap3_status_code
|
53
76
|
|
77
|
+
# Chapter 4 status code. Required if WithholdingIndicator is 4 (Chapter 4). Required if email is specified, must fill either this or RecipientForeignTin. Available values: - 01: U.S. Withholding Agent - FI - 02: U.S. Withholding Agent - Other - 03: Territory FI - not treated as U.S. Person - 04: Territory FI - treated as U.S. Person - 05: Participating FFI - Other - 06: Participating FFI - Reporting Model 2 FFI - 07: Registered Deemed - Compliant FFI-Reporting Model 1 FFI - 08: Registered Deemed - Compliant FFI-Sponsored Entity - 09: Registered Deemed - Compliant FFI-Other - 10: Certified Deemed - Compliant FFI-Other - 11: Certified Deemed - Compliant FFI-FFI with Low Value Accounts - 12: Certified Deemed - Compliant FFI-Non-Registering Local Bank - 13: Certified Deemed - Compliant FFI-Sponsored Entity - 14: Certified Deemed - Compliant FFI-Investment Advisor or Investment Manager - 15: Nonparticipating FFI - 16: Owner-Documented FFI - 17: U.S. Branch - treated as U.S. person - 18: U.S. Branch - not treated as U.S. person (reporting under section 1471) - 19: Passive NFFE identifying Substantial U.S. Owners - 20: Passive NFFE with no Substantial U.S. Owners - 21: Publicly Traded NFFE or Affiliate of Publicly Traded NFFE - 22: Active NFFE - 23: Individual - 24: Section 501(c) Entities - 25: Excepted Territory NFFE - 26: Excepted NFFE - Other - 27: Exempt Beneficial Owner - 28: Entity Wholly Owned by Exempt Beneficial Owners - 29: Unknown Recipient - 30: Recalcitrant Account Holder - 31: Nonreporting IGA FFI - 32: Direct reporting NFFE - 33: U.S. reportable account - 34: Non-consenting U.S. account - 35: Sponsored direct reporting NFFE - 36: Excepted Inter-affiliate FFI - 37: Undocumented Preexisting Obligation - 38: U.S. Branch - ECI presumption applied - 39: Account Holder of Excluded Financial Account - 40: Passive NFFE reported by FFI - 41: NFFE subject to 1472 withholding - 42: Recalcitrant Pool - No U.S. Indicia - 43: Recalcitrant Pool - U.S. Indicia - 44: Recalcitrant Pool - Dormant Account - 45: Recalcitrant Pool - U.S. Persons - 46: Recalcitrant Pool - Passive NFFEs - 47: Nonparticipating FFI Pool - 48: U.S. Payees Pool - 49: QI - Recalcitrant Pool-General - 50: U.S. Withholding Agent-Foreign branch of FI
|
54
78
|
attr_accessor :chap4_status_code
|
55
79
|
|
80
|
+
# Primary withholding agent information
|
56
81
|
attr_accessor :primary_withholding_agent
|
57
82
|
|
83
|
+
# Intermediary or flow-through entity information
|
58
84
|
attr_accessor :intermediary_or_flow_through
|
59
85
|
|
60
|
-
|
61
|
-
|
86
|
+
# Form type
|
62
87
|
attr_accessor :type
|
63
88
|
|
89
|
+
# Form ID. Unique identifier set when the record is created.
|
90
|
+
attr_accessor :id
|
91
|
+
|
92
|
+
# Issuer ID - only required when creating forms
|
64
93
|
attr_accessor :issuer_id
|
65
94
|
|
95
|
+
# Issuer Reference ID - only required when creating forms
|
66
96
|
attr_accessor :issuer_reference_id
|
67
97
|
|
98
|
+
# Issuer TIN - readonly
|
68
99
|
attr_accessor :issuer_tin
|
69
100
|
|
101
|
+
# Tax Year - only required when creating forms
|
70
102
|
attr_accessor :tax_year
|
71
103
|
|
72
|
-
|
104
|
+
# Internal reference ID. Never shown to any agency or recipient.
|
105
|
+
attr_accessor :reference_id
|
73
106
|
|
74
|
-
|
107
|
+
# Recipient's Federal Tax Identification Number (TIN).
|
108
|
+
attr_accessor :tin
|
75
109
|
|
76
|
-
|
110
|
+
# Recipient name
|
111
|
+
attr_accessor :recipient_name
|
77
112
|
|
78
|
-
|
113
|
+
# Recipient second name
|
114
|
+
attr_accessor :recipient_second_name
|
79
115
|
|
80
|
-
|
116
|
+
# Address.
|
117
|
+
attr_accessor :address
|
81
118
|
|
82
|
-
|
119
|
+
# Address line 2.
|
120
|
+
attr_accessor :address2
|
83
121
|
|
84
|
-
|
122
|
+
# City.
|
123
|
+
attr_accessor :city
|
85
124
|
|
86
|
-
|
125
|
+
# Two-letter US state or Canadian province code (required for US/CA addresses).
|
126
|
+
attr_accessor :state
|
87
127
|
|
88
|
-
|
128
|
+
# ZIP/postal code.
|
129
|
+
attr_accessor :zip
|
89
130
|
|
90
|
-
|
131
|
+
# Recipient's Contact email address.
|
132
|
+
attr_accessor :email
|
91
133
|
|
92
|
-
|
134
|
+
# Account number
|
135
|
+
attr_accessor :account_number
|
93
136
|
|
94
|
-
|
137
|
+
# Office code
|
138
|
+
attr_accessor :office_code
|
95
139
|
|
96
|
-
|
140
|
+
# Province or region for non-US/CA addresses.
|
141
|
+
attr_accessor :non_us_province
|
97
142
|
|
98
|
-
|
143
|
+
# Two-letter IRS country code (e.g., 'US', 'CA'), as defined at https://www.irs.gov/e-file-providers/country-codes.
|
144
|
+
attr_accessor :country_code
|
99
145
|
|
100
|
-
|
146
|
+
# Date when federal e-filing should be scheduled for this form
|
147
|
+
attr_accessor :federal_efile_date
|
101
148
|
|
102
|
-
|
149
|
+
# Boolean indicating that postal mailing to the recipient should be scheduled for this form
|
150
|
+
attr_accessor :postal_mail
|
103
151
|
|
104
|
-
|
152
|
+
# Date when state e-filing should be scheduled for this form
|
153
|
+
attr_accessor :state_efile_date
|
105
154
|
|
106
|
-
|
155
|
+
# Date when recipient e-delivery should be scheduled for this form
|
156
|
+
attr_accessor :recipient_edelivery_date
|
107
157
|
|
108
|
-
|
158
|
+
# Boolean indicating that TIN Matching should be scheduled for this form
|
159
|
+
attr_accessor :tin_match
|
109
160
|
|
110
|
-
|
161
|
+
# No TIN indicator
|
162
|
+
attr_accessor :no_tin
|
111
163
|
|
112
|
-
|
164
|
+
# Boolean indicating that address verification should be scheduled for this form
|
165
|
+
attr_accessor :address_verification
|
113
166
|
|
114
|
-
|
167
|
+
# State and local withholding information
|
168
|
+
attr_accessor :state_and_local_withholding
|
115
169
|
|
116
|
-
|
170
|
+
# Second TIN notice
|
171
|
+
attr_accessor :second_tin_notice
|
117
172
|
|
118
|
-
|
173
|
+
# Federal e-file status
|
174
|
+
attr_accessor :federal_efile_status
|
119
175
|
|
120
|
-
|
176
|
+
# State e-file status
|
177
|
+
attr_accessor :state_efile_status
|
121
178
|
|
122
|
-
|
179
|
+
# Postal mail to recipient status
|
180
|
+
attr_accessor :postal_mail_status
|
123
181
|
|
124
|
-
|
182
|
+
# TIN Match status
|
183
|
+
attr_accessor :tin_match_status
|
125
184
|
|
126
|
-
|
185
|
+
# Address verification status
|
186
|
+
attr_accessor :address_verification_status
|
127
187
|
|
128
|
-
|
188
|
+
# EDelivery status
|
189
|
+
attr_accessor :e_delivery_status
|
129
190
|
|
191
|
+
# Validation errors
|
130
192
|
attr_accessor :validation_errors
|
131
193
|
|
194
|
+
# Date time when the record was created.
|
132
195
|
attr_accessor :created_at
|
133
196
|
|
197
|
+
# Date time when the record was last updated.
|
134
198
|
attr_accessor :updated_at
|
135
199
|
|
136
|
-
|
200
|
+
class EnumAttributeValidator
|
201
|
+
attr_reader :datatype
|
202
|
+
attr_reader :allowable_values
|
203
|
+
|
204
|
+
def initialize(datatype, allowable_values)
|
205
|
+
@allowable_values = allowable_values.map do |value|
|
206
|
+
case datatype.to_s
|
207
|
+
when /Integer/i
|
208
|
+
value.to_i
|
209
|
+
when /Float/i
|
210
|
+
value.to_f
|
211
|
+
else
|
212
|
+
value
|
213
|
+
end
|
214
|
+
end
|
215
|
+
end
|
216
|
+
|
217
|
+
def valid?(value)
|
218
|
+
!value || allowable_values.include?(value)
|
219
|
+
end
|
220
|
+
end
|
137
221
|
|
138
222
|
# Attribute mapping from ruby-style variable name to JSON key.
|
139
223
|
def self.attribute_map
|
140
224
|
{
|
225
|
+
:'tin_type' => :'tinType',
|
141
226
|
:'unique_form_id' => :'uniqueFormId',
|
142
227
|
:'recipient_date_of_birth' => :'recipientDateOfBirth',
|
143
228
|
:'recipient_giin' => :'recipientGiin',
|
@@ -161,30 +246,14 @@ module AvalaraSdk::A1099::V2
|
|
161
246
|
:'chap4_status_code' => :'chap4StatusCode',
|
162
247
|
:'primary_withholding_agent' => :'primaryWithholdingAgent',
|
163
248
|
:'intermediary_or_flow_through' => :'intermediaryOrFlowThrough',
|
164
|
-
:'id' => :'id',
|
165
249
|
:'type' => :'type',
|
250
|
+
:'id' => :'id',
|
166
251
|
:'issuer_id' => :'issuerId',
|
167
252
|
:'issuer_reference_id' => :'issuerReferenceId',
|
168
253
|
:'issuer_tin' => :'issuerTin',
|
169
254
|
:'tax_year' => :'taxYear',
|
170
|
-
:'federal_efile' => :'federalEfile',
|
171
|
-
:'federal_efile_status' => :'federalEfileStatus',
|
172
|
-
:'state_efile' => :'stateEfile',
|
173
|
-
:'state_efile_status' => :'stateEfileStatus',
|
174
|
-
:'postal_mail' => :'postalMail',
|
175
|
-
:'postal_mail_status' => :'postalMailStatus',
|
176
|
-
:'tin_match' => :'tinMatch',
|
177
|
-
:'tin_match_status' => :'tinMatchStatus',
|
178
|
-
:'address_verification' => :'addressVerification',
|
179
|
-
:'address_verification_status' => :'addressVerificationStatus',
|
180
|
-
:'e_delivery_status' => :'eDeliveryStatus',
|
181
255
|
:'reference_id' => :'referenceId',
|
182
|
-
:'email' => :'email',
|
183
|
-
:'tin_type' => :'tinType',
|
184
|
-
:'fatca_filing_requirement' => :'fatcaFilingRequirement',
|
185
256
|
:'tin' => :'tin',
|
186
|
-
:'no_tin' => :'noTin',
|
187
|
-
:'second_tin_notice' => :'secondTinNotice',
|
188
257
|
:'recipient_name' => :'recipientName',
|
189
258
|
:'recipient_second_name' => :'recipientSecondName',
|
190
259
|
:'address' => :'address',
|
@@ -192,14 +261,29 @@ module AvalaraSdk::A1099::V2
|
|
192
261
|
:'city' => :'city',
|
193
262
|
:'state' => :'state',
|
194
263
|
:'zip' => :'zip',
|
195
|
-
:'
|
196
|
-
:'country_code' => :'countryCode',
|
264
|
+
:'email' => :'email',
|
197
265
|
:'account_number' => :'accountNumber',
|
198
266
|
:'office_code' => :'officeCode',
|
267
|
+
:'non_us_province' => :'nonUsProvince',
|
268
|
+
:'country_code' => :'countryCode',
|
269
|
+
:'federal_efile_date' => :'federalEfileDate',
|
270
|
+
:'postal_mail' => :'postalMail',
|
271
|
+
:'state_efile_date' => :'stateEfileDate',
|
272
|
+
:'recipient_edelivery_date' => :'recipientEdeliveryDate',
|
273
|
+
:'tin_match' => :'tinMatch',
|
274
|
+
:'no_tin' => :'noTin',
|
275
|
+
:'address_verification' => :'addressVerification',
|
276
|
+
:'state_and_local_withholding' => :'stateAndLocalWithholding',
|
277
|
+
:'second_tin_notice' => :'secondTinNotice',
|
278
|
+
:'federal_efile_status' => :'federalEfileStatus',
|
279
|
+
:'state_efile_status' => :'stateEfileStatus',
|
280
|
+
:'postal_mail_status' => :'postalMailStatus',
|
281
|
+
:'tin_match_status' => :'tinMatchStatus',
|
282
|
+
:'address_verification_status' => :'addressVerificationStatus',
|
283
|
+
:'e_delivery_status' => :'eDeliveryStatus',
|
199
284
|
:'validation_errors' => :'validationErrors',
|
200
285
|
:'created_at' => :'createdAt',
|
201
|
-
:'updated_at' => :'updatedAt'
|
202
|
-
:'state_and_local_withholding' => :'stateAndLocalWithholding'
|
286
|
+
:'updated_at' => :'updatedAt'
|
203
287
|
}
|
204
288
|
end
|
205
289
|
|
@@ -211,8 +295,9 @@ module AvalaraSdk::A1099::V2
|
|
211
295
|
# Attribute type mapping.
|
212
296
|
def self.openapi_types
|
213
297
|
{
|
298
|
+
:'tin_type' => :'String',
|
214
299
|
:'unique_form_id' => :'String',
|
215
|
-
:'recipient_date_of_birth' => :'
|
300
|
+
:'recipient_date_of_birth' => :'Date',
|
216
301
|
:'recipient_giin' => :'String',
|
217
302
|
:'recipient_foreign_tin' => :'String',
|
218
303
|
:'lob_code' => :'String',
|
@@ -234,30 +319,14 @@ module AvalaraSdk::A1099::V2
|
|
234
319
|
:'chap4_status_code' => :'String',
|
235
320
|
:'primary_withholding_agent' => :'PrimaryWithholdingAgent',
|
236
321
|
:'intermediary_or_flow_through' => :'IntermediaryOrFlowThrough',
|
237
|
-
:'id' => :'String',
|
238
322
|
:'type' => :'String',
|
239
|
-
:'
|
323
|
+
:'id' => :'String',
|
324
|
+
:'issuer_id' => :'String',
|
240
325
|
:'issuer_reference_id' => :'String',
|
241
326
|
:'issuer_tin' => :'String',
|
242
327
|
:'tax_year' => :'Integer',
|
243
|
-
:'federal_efile' => :'Boolean',
|
244
|
-
:'federal_efile_status' => :'Form1099StatusDetail',
|
245
|
-
:'state_efile' => :'Boolean',
|
246
|
-
:'state_efile_status' => :'Array<StateEfileStatusDetail>',
|
247
|
-
:'postal_mail' => :'Boolean',
|
248
|
-
:'postal_mail_status' => :'Form1099StatusDetail',
|
249
|
-
:'tin_match' => :'Boolean',
|
250
|
-
:'tin_match_status' => :'Form1099StatusDetail',
|
251
|
-
:'address_verification' => :'Boolean',
|
252
|
-
:'address_verification_status' => :'Form1099StatusDetail',
|
253
|
-
:'e_delivery_status' => :'Form1099StatusDetail',
|
254
328
|
:'reference_id' => :'String',
|
255
|
-
:'email' => :'String',
|
256
|
-
:'tin_type' => :'String',
|
257
|
-
:'fatca_filing_requirement' => :'Boolean',
|
258
329
|
:'tin' => :'String',
|
259
|
-
:'no_tin' => :'Boolean',
|
260
|
-
:'second_tin_notice' => :'Boolean',
|
261
330
|
:'recipient_name' => :'String',
|
262
331
|
:'recipient_second_name' => :'String',
|
263
332
|
:'address' => :'String',
|
@@ -265,24 +334,45 @@ module AvalaraSdk::A1099::V2
|
|
265
334
|
:'city' => :'String',
|
266
335
|
:'state' => :'String',
|
267
336
|
:'zip' => :'String',
|
268
|
-
:'
|
269
|
-
:'country_code' => :'String',
|
337
|
+
:'email' => :'String',
|
270
338
|
:'account_number' => :'String',
|
271
339
|
:'office_code' => :'String',
|
340
|
+
:'non_us_province' => :'String',
|
341
|
+
:'country_code' => :'String',
|
342
|
+
:'federal_efile_date' => :'Date',
|
343
|
+
:'postal_mail' => :'Boolean',
|
344
|
+
:'state_efile_date' => :'Date',
|
345
|
+
:'recipient_edelivery_date' => :'Date',
|
346
|
+
:'tin_match' => :'Boolean',
|
347
|
+
:'no_tin' => :'Boolean',
|
348
|
+
:'address_verification' => :'Boolean',
|
349
|
+
:'state_and_local_withholding' => :'StateAndLocalWithholding',
|
350
|
+
:'second_tin_notice' => :'Boolean',
|
351
|
+
:'federal_efile_status' => :'Form1099StatusDetail',
|
352
|
+
:'state_efile_status' => :'Array<StateEfileStatusDetail>',
|
353
|
+
:'postal_mail_status' => :'Form1099StatusDetail',
|
354
|
+
:'tin_match_status' => :'Form1099StatusDetail',
|
355
|
+
:'address_verification_status' => :'Form1099StatusDetail',
|
356
|
+
:'e_delivery_status' => :'Form1099StatusDetail',
|
272
357
|
:'validation_errors' => :'Array<ValidationError>',
|
273
358
|
:'created_at' => :'Time',
|
274
|
-
:'updated_at' => :'Time'
|
275
|
-
:'state_and_local_withholding' => :'StateAndLocalWithholding'
|
359
|
+
:'updated_at' => :'Time'
|
276
360
|
}
|
277
361
|
end
|
278
362
|
|
279
363
|
# List of attributes with nullable: true
|
280
364
|
def self.openapi_nullable
|
281
365
|
Set.new([
|
366
|
+
:'tin_type',
|
367
|
+
:'unique_form_id',
|
282
368
|
:'recipient_date_of_birth',
|
283
369
|
:'recipient_giin',
|
284
370
|
:'recipient_foreign_tin',
|
285
371
|
:'lob_code',
|
372
|
+
:'income_code',
|
373
|
+
:'gross_income',
|
374
|
+
:'withholding_indicator',
|
375
|
+
:'tax_country_code',
|
286
376
|
:'exemption_code_chap3',
|
287
377
|
:'exemption_code_chap4',
|
288
378
|
:'tax_rate_chap3',
|
@@ -295,19 +385,15 @@ module AvalaraSdk::A1099::V2
|
|
295
385
|
:'tax_paid_agent',
|
296
386
|
:'chap3_status_code',
|
297
387
|
:'chap4_status_code',
|
388
|
+
:'primary_withholding_agent',
|
389
|
+
:'intermediary_or_flow_through',
|
390
|
+
:'id',
|
391
|
+
:'issuer_id',
|
298
392
|
:'issuer_reference_id',
|
299
393
|
:'issuer_tin',
|
300
|
-
:'
|
301
|
-
:'postal_mail_status',
|
302
|
-
:'tin_match_status',
|
303
|
-
:'address_verification_status',
|
304
|
-
:'e_delivery_status',
|
394
|
+
:'tax_year',
|
305
395
|
:'reference_id',
|
306
|
-
:'email',
|
307
|
-
:'tin_type',
|
308
|
-
:'fatca_filing_requirement',
|
309
396
|
:'tin',
|
310
|
-
:'second_tin_notice',
|
311
397
|
:'recipient_name',
|
312
398
|
:'recipient_second_name',
|
313
399
|
:'address',
|
@@ -315,12 +401,26 @@ module AvalaraSdk::A1099::V2
|
|
315
401
|
:'city',
|
316
402
|
:'state',
|
317
403
|
:'zip',
|
318
|
-
:'
|
319
|
-
:'country_code',
|
404
|
+
:'email',
|
320
405
|
:'account_number',
|
321
406
|
:'office_code',
|
407
|
+
:'non_us_province',
|
408
|
+
:'country_code',
|
409
|
+
:'federal_efile_date',
|
410
|
+
:'postal_mail',
|
411
|
+
:'state_efile_date',
|
412
|
+
:'recipient_edelivery_date',
|
413
|
+
:'tin_match',
|
414
|
+
:'no_tin',
|
415
|
+
:'address_verification',
|
416
|
+
:'state_and_local_withholding',
|
417
|
+
:'federal_efile_status',
|
418
|
+
:'state_efile_status',
|
419
|
+
:'postal_mail_status',
|
420
|
+
:'tin_match_status',
|
421
|
+
:'address_verification_status',
|
422
|
+
:'e_delivery_status',
|
322
423
|
:'validation_errors',
|
323
|
-
:'state_and_local_withholding'
|
324
424
|
])
|
325
425
|
end
|
326
426
|
|
@@ -346,8 +446,14 @@ module AvalaraSdk::A1099::V2
|
|
346
446
|
h[k.to_sym] = v
|
347
447
|
}
|
348
448
|
|
449
|
+
if attributes.key?(:'tin_type')
|
450
|
+
self.tin_type = attributes[:'tin_type']
|
451
|
+
end
|
452
|
+
|
349
453
|
if attributes.key?(:'unique_form_id')
|
350
454
|
self.unique_form_id = attributes[:'unique_form_id']
|
455
|
+
else
|
456
|
+
self.unique_form_id = nil
|
351
457
|
end
|
352
458
|
|
353
459
|
if attributes.key?(:'recipient_date_of_birth')
|
@@ -368,18 +474,26 @@ module AvalaraSdk::A1099::V2
|
|
368
474
|
|
369
475
|
if attributes.key?(:'income_code')
|
370
476
|
self.income_code = attributes[:'income_code']
|
477
|
+
else
|
478
|
+
self.income_code = nil
|
371
479
|
end
|
372
480
|
|
373
481
|
if attributes.key?(:'gross_income')
|
374
482
|
self.gross_income = attributes[:'gross_income']
|
483
|
+
else
|
484
|
+
self.gross_income = nil
|
375
485
|
end
|
376
486
|
|
377
487
|
if attributes.key?(:'withholding_indicator')
|
378
488
|
self.withholding_indicator = attributes[:'withholding_indicator']
|
489
|
+
else
|
490
|
+
self.withholding_indicator = nil
|
379
491
|
end
|
380
492
|
|
381
493
|
if attributes.key?(:'tax_country_code')
|
382
494
|
self.tax_country_code = attributes[:'tax_country_code']
|
495
|
+
else
|
496
|
+
self.tax_country_code = nil
|
383
497
|
end
|
384
498
|
|
385
499
|
if attributes.key?(:'exemption_code_chap3')
|
@@ -438,12 +552,14 @@ module AvalaraSdk::A1099::V2
|
|
438
552
|
self.intermediary_or_flow_through = attributes[:'intermediary_or_flow_through']
|
439
553
|
end
|
440
554
|
|
441
|
-
if attributes.key?(:'id')
|
442
|
-
self.id = attributes[:'id']
|
443
|
-
end
|
444
|
-
|
445
555
|
if attributes.key?(:'type')
|
446
556
|
self.type = attributes[:'type']
|
557
|
+
else
|
558
|
+
self.type = nil
|
559
|
+
end
|
560
|
+
|
561
|
+
if attributes.key?(:'id')
|
562
|
+
self.id = attributes[:'id']
|
447
563
|
end
|
448
564
|
|
449
565
|
if attributes.key?(:'issuer_id')
|
@@ -462,122 +578,130 @@ module AvalaraSdk::A1099::V2
|
|
462
578
|
self.tax_year = attributes[:'tax_year']
|
463
579
|
end
|
464
580
|
|
465
|
-
if attributes.key?(:'
|
466
|
-
self.
|
581
|
+
if attributes.key?(:'reference_id')
|
582
|
+
self.reference_id = attributes[:'reference_id']
|
467
583
|
end
|
468
584
|
|
469
|
-
if attributes.key?(:'
|
470
|
-
self.
|
585
|
+
if attributes.key?(:'tin')
|
586
|
+
self.tin = attributes[:'tin']
|
471
587
|
end
|
472
588
|
|
473
|
-
if attributes.key?(:'
|
474
|
-
self.
|
589
|
+
if attributes.key?(:'recipient_name')
|
590
|
+
self.recipient_name = attributes[:'recipient_name']
|
591
|
+
else
|
592
|
+
self.recipient_name = nil
|
475
593
|
end
|
476
594
|
|
477
|
-
if attributes.key?(:'
|
478
|
-
|
479
|
-
self.state_efile_status = value
|
480
|
-
end
|
595
|
+
if attributes.key?(:'recipient_second_name')
|
596
|
+
self.recipient_second_name = attributes[:'recipient_second_name']
|
481
597
|
end
|
482
598
|
|
483
|
-
if attributes.key?(:'
|
484
|
-
self.
|
599
|
+
if attributes.key?(:'address')
|
600
|
+
self.address = attributes[:'address']
|
601
|
+
else
|
602
|
+
self.address = nil
|
485
603
|
end
|
486
604
|
|
487
|
-
if attributes.key?(:'
|
488
|
-
self.
|
605
|
+
if attributes.key?(:'address2')
|
606
|
+
self.address2 = attributes[:'address2']
|
489
607
|
end
|
490
608
|
|
491
|
-
if attributes.key?(:'
|
492
|
-
self.
|
609
|
+
if attributes.key?(:'city')
|
610
|
+
self.city = attributes[:'city']
|
611
|
+
else
|
612
|
+
self.city = nil
|
493
613
|
end
|
494
614
|
|
495
|
-
if attributes.key?(:'
|
496
|
-
self.
|
615
|
+
if attributes.key?(:'state')
|
616
|
+
self.state = attributes[:'state']
|
497
617
|
end
|
498
618
|
|
499
|
-
if attributes.key?(:'
|
500
|
-
self.
|
619
|
+
if attributes.key?(:'zip')
|
620
|
+
self.zip = attributes[:'zip']
|
501
621
|
end
|
502
622
|
|
503
|
-
if attributes.key?(:'
|
504
|
-
self.
|
623
|
+
if attributes.key?(:'email')
|
624
|
+
self.email = attributes[:'email']
|
505
625
|
end
|
506
626
|
|
507
|
-
if attributes.key?(:'
|
508
|
-
self.
|
627
|
+
if attributes.key?(:'account_number')
|
628
|
+
self.account_number = attributes[:'account_number']
|
509
629
|
end
|
510
630
|
|
511
|
-
if attributes.key?(:'
|
512
|
-
self.
|
631
|
+
if attributes.key?(:'office_code')
|
632
|
+
self.office_code = attributes[:'office_code']
|
513
633
|
end
|
514
634
|
|
515
|
-
if attributes.key?(:'
|
516
|
-
self.
|
635
|
+
if attributes.key?(:'non_us_province')
|
636
|
+
self.non_us_province = attributes[:'non_us_province']
|
517
637
|
end
|
518
638
|
|
519
|
-
if attributes.key?(:'
|
520
|
-
self.
|
639
|
+
if attributes.key?(:'country_code')
|
640
|
+
self.country_code = attributes[:'country_code']
|
641
|
+
else
|
642
|
+
self.country_code = nil
|
521
643
|
end
|
522
644
|
|
523
|
-
if attributes.key?(:'
|
524
|
-
self.
|
645
|
+
if attributes.key?(:'federal_efile_date')
|
646
|
+
self.federal_efile_date = attributes[:'federal_efile_date']
|
525
647
|
end
|
526
648
|
|
527
|
-
if attributes.key?(:'
|
528
|
-
self.
|
649
|
+
if attributes.key?(:'postal_mail')
|
650
|
+
self.postal_mail = attributes[:'postal_mail']
|
529
651
|
end
|
530
652
|
|
531
|
-
if attributes.key?(:'
|
532
|
-
self.
|
653
|
+
if attributes.key?(:'state_efile_date')
|
654
|
+
self.state_efile_date = attributes[:'state_efile_date']
|
533
655
|
end
|
534
656
|
|
535
|
-
if attributes.key?(:'
|
536
|
-
self.
|
657
|
+
if attributes.key?(:'recipient_edelivery_date')
|
658
|
+
self.recipient_edelivery_date = attributes[:'recipient_edelivery_date']
|
537
659
|
end
|
538
660
|
|
539
|
-
if attributes.key?(:'
|
540
|
-
self.
|
661
|
+
if attributes.key?(:'tin_match')
|
662
|
+
self.tin_match = attributes[:'tin_match']
|
541
663
|
end
|
542
664
|
|
543
|
-
if attributes.key?(:'
|
544
|
-
self.
|
665
|
+
if attributes.key?(:'no_tin')
|
666
|
+
self.no_tin = attributes[:'no_tin']
|
545
667
|
end
|
546
668
|
|
547
|
-
if attributes.key?(:'
|
548
|
-
self.
|
669
|
+
if attributes.key?(:'address_verification')
|
670
|
+
self.address_verification = attributes[:'address_verification']
|
549
671
|
end
|
550
672
|
|
551
|
-
if attributes.key?(:'
|
552
|
-
self.
|
673
|
+
if attributes.key?(:'state_and_local_withholding')
|
674
|
+
self.state_and_local_withholding = attributes[:'state_and_local_withholding']
|
553
675
|
end
|
554
676
|
|
555
|
-
if attributes.key?(:'
|
556
|
-
self.
|
677
|
+
if attributes.key?(:'second_tin_notice')
|
678
|
+
self.second_tin_notice = attributes[:'second_tin_notice']
|
557
679
|
end
|
558
680
|
|
559
|
-
if attributes.key?(:'
|
560
|
-
self.
|
681
|
+
if attributes.key?(:'federal_efile_status')
|
682
|
+
self.federal_efile_status = attributes[:'federal_efile_status']
|
561
683
|
end
|
562
684
|
|
563
|
-
if attributes.key?(:'
|
564
|
-
|
685
|
+
if attributes.key?(:'state_efile_status')
|
686
|
+
if (value = attributes[:'state_efile_status']).is_a?(Array)
|
687
|
+
self.state_efile_status = value
|
688
|
+
end
|
565
689
|
end
|
566
690
|
|
567
|
-
if attributes.key?(:'
|
568
|
-
self.
|
691
|
+
if attributes.key?(:'postal_mail_status')
|
692
|
+
self.postal_mail_status = attributes[:'postal_mail_status']
|
569
693
|
end
|
570
694
|
|
571
|
-
if attributes.key?(:'
|
572
|
-
self.
|
695
|
+
if attributes.key?(:'tin_match_status')
|
696
|
+
self.tin_match_status = attributes[:'tin_match_status']
|
573
697
|
end
|
574
698
|
|
575
|
-
if attributes.key?(:'
|
576
|
-
self.
|
699
|
+
if attributes.key?(:'address_verification_status')
|
700
|
+
self.address_verification_status = attributes[:'address_verification_status']
|
577
701
|
end
|
578
702
|
|
579
|
-
if attributes.key?(:'
|
580
|
-
self.
|
703
|
+
if attributes.key?(:'e_delivery_status')
|
704
|
+
self.e_delivery_status = attributes[:'e_delivery_status']
|
581
705
|
end
|
582
706
|
|
583
707
|
if attributes.key?(:'validation_errors')
|
@@ -593,10 +717,6 @@ module AvalaraSdk::A1099::V2
|
|
593
717
|
if attributes.key?(:'updated_at')
|
594
718
|
self.updated_at = attributes[:'updated_at']
|
595
719
|
end
|
596
|
-
|
597
|
-
if attributes.key?(:'state_and_local_withholding')
|
598
|
-
self.state_and_local_withholding = attributes[:'state_and_local_withholding']
|
599
|
-
end
|
600
720
|
end
|
601
721
|
|
602
722
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -604,6 +724,10 @@ module AvalaraSdk::A1099::V2
|
|
604
724
|
def list_invalid_properties
|
605
725
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
606
726
|
invalid_properties = Array.new
|
727
|
+
if @type.nil?
|
728
|
+
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
729
|
+
end
|
730
|
+
|
607
731
|
invalid_properties
|
608
732
|
end
|
609
733
|
|
@@ -611,9 +735,130 @@ module AvalaraSdk::A1099::V2
|
|
611
735
|
# @return true if the model is valid
|
612
736
|
def valid?
|
613
737
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
738
|
+
tin_type_validator = EnumAttributeValidator.new('String', ["Empty", "EIN", "SSN", "ITIN", "ATIN"])
|
739
|
+
return false unless tin_type_validator.valid?(@tin_type)
|
740
|
+
lob_code_validator = EnumAttributeValidator.new('String', ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"])
|
741
|
+
return false unless lob_code_validator.valid?(@lob_code)
|
742
|
+
income_code_validator = EnumAttributeValidator.new('String', ["01", "02", "03", "04", "05", "22", "29", "30", "31", "33", "51", "54", "06", "07", "08", "34", "40", "52", "53", "56", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "23", "24", "25", "26", "27", "28", "32", "35", "36", "37", "38", "39", "41", "42", "43", "44", "50", "55", "57", "58"])
|
743
|
+
return false unless income_code_validator.valid?(@income_code)
|
744
|
+
withholding_indicator_validator = EnumAttributeValidator.new('String', ["3", "4"])
|
745
|
+
return false unless withholding_indicator_validator.valid?(@withholding_indicator)
|
746
|
+
exemption_code_chap3_validator = EnumAttributeValidator.new('String', ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "22", "23", "24"])
|
747
|
+
return false unless exemption_code_chap3_validator.valid?(@exemption_code_chap3)
|
748
|
+
exemption_code_chap4_validator = EnumAttributeValidator.new('String', ["00", "13", "14", "15", "16", "17", "18", "19", "20", "21"])
|
749
|
+
return false unless exemption_code_chap4_validator.valid?(@exemption_code_chap4)
|
750
|
+
tax_rate_chap3_validator = EnumAttributeValidator.new('String', ["00.00", "02.00", "04.00", "04.90", "04.95", "05.00", "07.00", "08.00", "10.00", "12.00", "12.50", "14.00", "15.00", "17.50", "20.00", "21.00", "24.00", "25.00", "27.50", "28.00", "30.00", "37.00"])
|
751
|
+
return false unless tax_rate_chap3_validator.valid?(@tax_rate_chap3)
|
752
|
+
chap3_status_code_validator = EnumAttributeValidator.new('String', ["01", "02", "34", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "35", "36", "37", "38", "39"])
|
753
|
+
return false unless chap3_status_code_validator.valid?(@chap3_status_code)
|
754
|
+
chap4_status_code_validator = EnumAttributeValidator.new('String', ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50"])
|
755
|
+
return false unless chap4_status_code_validator.valid?(@chap4_status_code)
|
756
|
+
return false if @type.nil?
|
757
|
+
type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
|
758
|
+
return false unless type_validator.valid?(@type)
|
614
759
|
true
|
615
760
|
end
|
616
761
|
|
762
|
+
# Custom attribute writer method checking allowed values (enum).
|
763
|
+
# @param [Object] tin_type Object to be assigned
|
764
|
+
def tin_type=(tin_type)
|
765
|
+
validator = EnumAttributeValidator.new('String', ["Empty", "EIN", "SSN", "ITIN", "ATIN"])
|
766
|
+
unless validator.valid?(tin_type)
|
767
|
+
fail ArgumentError, "invalid value for \"tin_type\", must be one of #{validator.allowable_values}."
|
768
|
+
end
|
769
|
+
@tin_type = tin_type
|
770
|
+
end
|
771
|
+
|
772
|
+
# Custom attribute writer method checking allowed values (enum).
|
773
|
+
# @param [Object] lob_code Object to be assigned
|
774
|
+
def lob_code=(lob_code)
|
775
|
+
validator = EnumAttributeValidator.new('String', ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"])
|
776
|
+
unless validator.valid?(lob_code)
|
777
|
+
fail ArgumentError, "invalid value for \"lob_code\", must be one of #{validator.allowable_values}."
|
778
|
+
end
|
779
|
+
@lob_code = lob_code
|
780
|
+
end
|
781
|
+
|
782
|
+
# Custom attribute writer method checking allowed values (enum).
|
783
|
+
# @param [Object] income_code Object to be assigned
|
784
|
+
def income_code=(income_code)
|
785
|
+
validator = EnumAttributeValidator.new('String', ["01", "02", "03", "04", "05", "22", "29", "30", "31", "33", "51", "54", "06", "07", "08", "34", "40", "52", "53", "56", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "23", "24", "25", "26", "27", "28", "32", "35", "36", "37", "38", "39", "41", "42", "43", "44", "50", "55", "57", "58"])
|
786
|
+
unless validator.valid?(income_code)
|
787
|
+
fail ArgumentError, "invalid value for \"income_code\", must be one of #{validator.allowable_values}."
|
788
|
+
end
|
789
|
+
@income_code = income_code
|
790
|
+
end
|
791
|
+
|
792
|
+
# Custom attribute writer method checking allowed values (enum).
|
793
|
+
# @param [Object] withholding_indicator Object to be assigned
|
794
|
+
def withholding_indicator=(withholding_indicator)
|
795
|
+
validator = EnumAttributeValidator.new('String', ["3", "4"])
|
796
|
+
unless validator.valid?(withholding_indicator)
|
797
|
+
fail ArgumentError, "invalid value for \"withholding_indicator\", must be one of #{validator.allowable_values}."
|
798
|
+
end
|
799
|
+
@withholding_indicator = withholding_indicator
|
800
|
+
end
|
801
|
+
|
802
|
+
# Custom attribute writer method checking allowed values (enum).
|
803
|
+
# @param [Object] exemption_code_chap3 Object to be assigned
|
804
|
+
def exemption_code_chap3=(exemption_code_chap3)
|
805
|
+
validator = EnumAttributeValidator.new('String', ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "22", "23", "24"])
|
806
|
+
unless validator.valid?(exemption_code_chap3)
|
807
|
+
fail ArgumentError, "invalid value for \"exemption_code_chap3\", must be one of #{validator.allowable_values}."
|
808
|
+
end
|
809
|
+
@exemption_code_chap3 = exemption_code_chap3
|
810
|
+
end
|
811
|
+
|
812
|
+
# Custom attribute writer method checking allowed values (enum).
|
813
|
+
# @param [Object] exemption_code_chap4 Object to be assigned
|
814
|
+
def exemption_code_chap4=(exemption_code_chap4)
|
815
|
+
validator = EnumAttributeValidator.new('String', ["00", "13", "14", "15", "16", "17", "18", "19", "20", "21"])
|
816
|
+
unless validator.valid?(exemption_code_chap4)
|
817
|
+
fail ArgumentError, "invalid value for \"exemption_code_chap4\", must be one of #{validator.allowable_values}."
|
818
|
+
end
|
819
|
+
@exemption_code_chap4 = exemption_code_chap4
|
820
|
+
end
|
821
|
+
|
822
|
+
# Custom attribute writer method checking allowed values (enum).
|
823
|
+
# @param [Object] tax_rate_chap3 Object to be assigned
|
824
|
+
def tax_rate_chap3=(tax_rate_chap3)
|
825
|
+
validator = EnumAttributeValidator.new('String', ["00.00", "02.00", "04.00", "04.90", "04.95", "05.00", "07.00", "08.00", "10.00", "12.00", "12.50", "14.00", "15.00", "17.50", "20.00", "21.00", "24.00", "25.00", "27.50", "28.00", "30.00", "37.00"])
|
826
|
+
unless validator.valid?(tax_rate_chap3)
|
827
|
+
fail ArgumentError, "invalid value for \"tax_rate_chap3\", must be one of #{validator.allowable_values}."
|
828
|
+
end
|
829
|
+
@tax_rate_chap3 = tax_rate_chap3
|
830
|
+
end
|
831
|
+
|
832
|
+
# Custom attribute writer method checking allowed values (enum).
|
833
|
+
# @param [Object] chap3_status_code Object to be assigned
|
834
|
+
def chap3_status_code=(chap3_status_code)
|
835
|
+
validator = EnumAttributeValidator.new('String', ["01", "02", "34", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "35", "36", "37", "38", "39"])
|
836
|
+
unless validator.valid?(chap3_status_code)
|
837
|
+
fail ArgumentError, "invalid value for \"chap3_status_code\", must be one of #{validator.allowable_values}."
|
838
|
+
end
|
839
|
+
@chap3_status_code = chap3_status_code
|
840
|
+
end
|
841
|
+
|
842
|
+
# Custom attribute writer method checking allowed values (enum).
|
843
|
+
# @param [Object] chap4_status_code Object to be assigned
|
844
|
+
def chap4_status_code=(chap4_status_code)
|
845
|
+
validator = EnumAttributeValidator.new('String', ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50"])
|
846
|
+
unless validator.valid?(chap4_status_code)
|
847
|
+
fail ArgumentError, "invalid value for \"chap4_status_code\", must be one of #{validator.allowable_values}."
|
848
|
+
end
|
849
|
+
@chap4_status_code = chap4_status_code
|
850
|
+
end
|
851
|
+
|
852
|
+
# Custom attribute writer method checking allowed values (enum).
|
853
|
+
# @param [Object] type Object to be assigned
|
854
|
+
def type=(type)
|
855
|
+
validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
|
856
|
+
unless validator.valid?(type)
|
857
|
+
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
858
|
+
end
|
859
|
+
@type = type
|
860
|
+
end
|
861
|
+
|
617
862
|
# Custom attribute writer method with validation
|
618
863
|
# @param [Object] state_efile_status Value to be assigned
|
619
864
|
def state_efile_status=(state_efile_status)
|
@@ -631,6 +876,7 @@ module AvalaraSdk::A1099::V2
|
|
631
876
|
def ==(o)
|
632
877
|
return true if self.equal?(o)
|
633
878
|
self.class == o.class &&
|
879
|
+
tin_type == o.tin_type &&
|
634
880
|
unique_form_id == o.unique_form_id &&
|
635
881
|
recipient_date_of_birth == o.recipient_date_of_birth &&
|
636
882
|
recipient_giin == o.recipient_giin &&
|
@@ -654,30 +900,14 @@ module AvalaraSdk::A1099::V2
|
|
654
900
|
chap4_status_code == o.chap4_status_code &&
|
655
901
|
primary_withholding_agent == o.primary_withholding_agent &&
|
656
902
|
intermediary_or_flow_through == o.intermediary_or_flow_through &&
|
657
|
-
id == o.id &&
|
658
903
|
type == o.type &&
|
904
|
+
id == o.id &&
|
659
905
|
issuer_id == o.issuer_id &&
|
660
906
|
issuer_reference_id == o.issuer_reference_id &&
|
661
907
|
issuer_tin == o.issuer_tin &&
|
662
908
|
tax_year == o.tax_year &&
|
663
|
-
federal_efile == o.federal_efile &&
|
664
|
-
federal_efile_status == o.federal_efile_status &&
|
665
|
-
state_efile == o.state_efile &&
|
666
|
-
state_efile_status == o.state_efile_status &&
|
667
|
-
postal_mail == o.postal_mail &&
|
668
|
-
postal_mail_status == o.postal_mail_status &&
|
669
|
-
tin_match == o.tin_match &&
|
670
|
-
tin_match_status == o.tin_match_status &&
|
671
|
-
address_verification == o.address_verification &&
|
672
|
-
address_verification_status == o.address_verification_status &&
|
673
|
-
e_delivery_status == o.e_delivery_status &&
|
674
909
|
reference_id == o.reference_id &&
|
675
|
-
email == o.email &&
|
676
|
-
tin_type == o.tin_type &&
|
677
|
-
fatca_filing_requirement == o.fatca_filing_requirement &&
|
678
910
|
tin == o.tin &&
|
679
|
-
no_tin == o.no_tin &&
|
680
|
-
second_tin_notice == o.second_tin_notice &&
|
681
911
|
recipient_name == o.recipient_name &&
|
682
912
|
recipient_second_name == o.recipient_second_name &&
|
683
913
|
address == o.address &&
|
@@ -685,14 +915,29 @@ module AvalaraSdk::A1099::V2
|
|
685
915
|
city == o.city &&
|
686
916
|
state == o.state &&
|
687
917
|
zip == o.zip &&
|
688
|
-
|
689
|
-
country_code == o.country_code &&
|
918
|
+
email == o.email &&
|
690
919
|
account_number == o.account_number &&
|
691
920
|
office_code == o.office_code &&
|
921
|
+
non_us_province == o.non_us_province &&
|
922
|
+
country_code == o.country_code &&
|
923
|
+
federal_efile_date == o.federal_efile_date &&
|
924
|
+
postal_mail == o.postal_mail &&
|
925
|
+
state_efile_date == o.state_efile_date &&
|
926
|
+
recipient_edelivery_date == o.recipient_edelivery_date &&
|
927
|
+
tin_match == o.tin_match &&
|
928
|
+
no_tin == o.no_tin &&
|
929
|
+
address_verification == o.address_verification &&
|
930
|
+
state_and_local_withholding == o.state_and_local_withholding &&
|
931
|
+
second_tin_notice == o.second_tin_notice &&
|
932
|
+
federal_efile_status == o.federal_efile_status &&
|
933
|
+
state_efile_status == o.state_efile_status &&
|
934
|
+
postal_mail_status == o.postal_mail_status &&
|
935
|
+
tin_match_status == o.tin_match_status &&
|
936
|
+
address_verification_status == o.address_verification_status &&
|
937
|
+
e_delivery_status == o.e_delivery_status &&
|
692
938
|
validation_errors == o.validation_errors &&
|
693
939
|
created_at == o.created_at &&
|
694
|
-
updated_at == o.updated_at
|
695
|
-
state_and_local_withholding == o.state_and_local_withholding
|
940
|
+
updated_at == o.updated_at
|
696
941
|
end
|
697
942
|
|
698
943
|
# @see the `==` method
|
@@ -704,7 +949,7 @@ module AvalaraSdk::A1099::V2
|
|
704
949
|
# Calculates hash code according to all attributes.
|
705
950
|
# @return [Integer] Hash code
|
706
951
|
def hash
|
707
|
-
[unique_form_id, 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,
|
952
|
+
[tin_type, unique_form_id, 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, type, id, issuer_id, issuer_reference_id, issuer_tin, tax_year, reference_id, tin, recipient_name, recipient_second_name, address, address2, city, state, zip, email, account_number, office_code, non_us_province, country_code, federal_efile_date, postal_mail, state_efile_date, recipient_edelivery_date, tin_match, no_tin, address_verification, state_and_local_withholding, second_tin_notice, federal_efile_status, state_efile_status, postal_mail_status, tin_match_status, address_verification_status, e_delivery_status, validation_errors, created_at, updated_at].hash
|
708
953
|
end
|
709
954
|
|
710
955
|
# Builds the object from hash
|