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,125 +10,185 @@ require 'date'
|
|
10
10
|
require 'time'
|
11
11
|
|
12
12
|
module AvalaraSdk::A1099::V2
|
13
|
-
|
13
|
+
# Form 1099-K: Payment Card and Third Party Network Transactions
|
14
|
+
class Form1099K
|
15
|
+
# Filer type (PSE or EPF)
|
14
16
|
attr_accessor :filer_type
|
15
17
|
|
18
|
+
# Payment type (payment card or third party network)
|
16
19
|
attr_accessor :payment_type
|
17
20
|
|
21
|
+
# Payment settlement entity name and phone number
|
18
22
|
attr_accessor :payment_settlement_entity_name_phone_number
|
19
23
|
|
24
|
+
# Gross amount of payment card/third party network transactions
|
20
25
|
attr_accessor :gross_amount_payment_card
|
21
26
|
|
27
|
+
# Card not present transactions
|
22
28
|
attr_accessor :card_not_present_transactions
|
23
29
|
|
30
|
+
# Merchant category code
|
24
31
|
attr_accessor :merchant_category_code
|
25
32
|
|
33
|
+
# Number of payment transactions
|
26
34
|
attr_accessor :payment_transaction_number
|
27
35
|
|
36
|
+
# Federal income tax withheld
|
28
37
|
attr_accessor :federal_income_tax_withheld
|
29
38
|
|
39
|
+
# January gross payments
|
30
40
|
attr_accessor :january
|
31
41
|
|
42
|
+
# February gross payments
|
32
43
|
attr_accessor :february
|
33
44
|
|
45
|
+
# March gross payments
|
34
46
|
attr_accessor :march
|
35
47
|
|
48
|
+
# April gross payments
|
36
49
|
attr_accessor :april
|
37
50
|
|
51
|
+
# May gross payments
|
38
52
|
attr_accessor :may
|
39
53
|
|
54
|
+
# June gross payments
|
40
55
|
attr_accessor :june
|
41
56
|
|
57
|
+
# July gross payments
|
42
58
|
attr_accessor :july
|
43
59
|
|
60
|
+
# August gross payments
|
44
61
|
attr_accessor :august
|
45
62
|
|
46
|
-
|
63
|
+
# September gross payments
|
64
|
+
attr_accessor :september
|
47
65
|
|
66
|
+
# October gross payments
|
48
67
|
attr_accessor :october
|
49
68
|
|
69
|
+
# November gross payments
|
50
70
|
attr_accessor :november
|
51
71
|
|
72
|
+
# December gross payments
|
52
73
|
attr_accessor :december
|
53
74
|
|
54
|
-
|
55
|
-
|
75
|
+
# Form type
|
56
76
|
attr_accessor :type
|
57
77
|
|
78
|
+
# Form ID. Unique identifier set when the record is created.
|
79
|
+
attr_accessor :id
|
80
|
+
|
81
|
+
# Issuer ID - only required when creating forms
|
58
82
|
attr_accessor :issuer_id
|
59
83
|
|
84
|
+
# Issuer Reference ID - only required when creating forms
|
60
85
|
attr_accessor :issuer_reference_id
|
61
86
|
|
87
|
+
# Issuer TIN - readonly
|
62
88
|
attr_accessor :issuer_tin
|
63
89
|
|
90
|
+
# Tax Year - only required when creating forms
|
64
91
|
attr_accessor :tax_year
|
65
92
|
|
66
|
-
|
93
|
+
# Internal reference ID. Never shown to any agency or recipient.
|
94
|
+
attr_accessor :reference_id
|
67
95
|
|
68
|
-
|
96
|
+
# Recipient's Federal Tax Identification Number (TIN).
|
97
|
+
attr_accessor :tin
|
69
98
|
|
70
|
-
|
99
|
+
# Recipient name
|
100
|
+
attr_accessor :recipient_name
|
71
101
|
|
72
|
-
|
102
|
+
# Type of TIN (Tax ID Number)
|
103
|
+
attr_accessor :tin_type
|
73
104
|
|
74
|
-
|
105
|
+
# Recipient second name
|
106
|
+
attr_accessor :recipient_second_name
|
75
107
|
|
76
|
-
|
108
|
+
# Address.
|
109
|
+
attr_accessor :address
|
77
110
|
|
78
|
-
|
111
|
+
# Address line 2.
|
112
|
+
attr_accessor :address2
|
79
113
|
|
80
|
-
|
114
|
+
# City.
|
115
|
+
attr_accessor :city
|
81
116
|
|
82
|
-
|
117
|
+
# Two-letter US state or Canadian province code (required for US/CA addresses).
|
118
|
+
attr_accessor :state
|
83
119
|
|
84
|
-
|
120
|
+
# ZIP/postal code.
|
121
|
+
attr_accessor :zip
|
85
122
|
|
86
|
-
|
123
|
+
# Recipient's Contact email address.
|
124
|
+
attr_accessor :email
|
87
125
|
|
88
|
-
|
126
|
+
# Account number
|
127
|
+
attr_accessor :account_number
|
89
128
|
|
90
|
-
|
129
|
+
# Office code
|
130
|
+
attr_accessor :office_code
|
91
131
|
|
92
|
-
|
132
|
+
# Province or region for non-US/CA addresses.
|
133
|
+
attr_accessor :non_us_province
|
93
134
|
|
94
|
-
|
135
|
+
# Two-letter IRS country code (e.g., 'US', 'CA'), as defined at https://www.irs.gov/e-file-providers/country-codes.
|
136
|
+
attr_accessor :country_code
|
95
137
|
|
96
|
-
|
138
|
+
# Date when federal e-filing should be scheduled for this form
|
139
|
+
attr_accessor :federal_efile_date
|
97
140
|
|
98
|
-
|
141
|
+
# Boolean indicating that postal mailing to the recipient should be scheduled for this form
|
142
|
+
attr_accessor :postal_mail
|
99
143
|
|
100
|
-
|
144
|
+
# Date when state e-filing should be scheduled for this form
|
145
|
+
attr_accessor :state_efile_date
|
101
146
|
|
102
|
-
|
147
|
+
# Date when recipient e-delivery should be scheduled for this form
|
148
|
+
attr_accessor :recipient_edelivery_date
|
103
149
|
|
104
|
-
|
150
|
+
# Boolean indicating that TIN Matching should be scheduled for this form
|
151
|
+
attr_accessor :tin_match
|
105
152
|
|
106
|
-
|
153
|
+
# No TIN indicator
|
154
|
+
attr_accessor :no_tin
|
107
155
|
|
108
|
-
|
156
|
+
# Boolean indicating that address verification should be scheduled for this form
|
157
|
+
attr_accessor :address_verification
|
109
158
|
|
110
|
-
|
159
|
+
# State and local withholding information
|
160
|
+
attr_accessor :state_and_local_withholding
|
111
161
|
|
112
|
-
|
162
|
+
# Second TIN notice
|
163
|
+
attr_accessor :second_tin_notice
|
113
164
|
|
114
|
-
|
165
|
+
# Federal e-file status
|
166
|
+
attr_accessor :federal_efile_status
|
115
167
|
|
116
|
-
|
168
|
+
# State e-file status
|
169
|
+
attr_accessor :state_efile_status
|
117
170
|
|
118
|
-
|
171
|
+
# Postal mail to recipient status
|
172
|
+
attr_accessor :postal_mail_status
|
119
173
|
|
120
|
-
|
174
|
+
# TIN Match status
|
175
|
+
attr_accessor :tin_match_status
|
121
176
|
|
122
|
-
|
177
|
+
# Address verification status
|
178
|
+
attr_accessor :address_verification_status
|
179
|
+
|
180
|
+
# EDelivery status
|
181
|
+
attr_accessor :e_delivery_status
|
123
182
|
|
183
|
+
# Validation errors
|
124
184
|
attr_accessor :validation_errors
|
125
185
|
|
186
|
+
# Date time when the record was created.
|
126
187
|
attr_accessor :created_at
|
127
188
|
|
189
|
+
# Date time when the record was last updated.
|
128
190
|
attr_accessor :updated_at
|
129
191
|
|
130
|
-
attr_accessor :state_and_local_withholding
|
131
|
-
|
132
192
|
class EnumAttributeValidator
|
133
193
|
attr_reader :datatype
|
134
194
|
attr_reader :allowable_values
|
@@ -170,49 +230,49 @@ module AvalaraSdk::A1099::V2
|
|
170
230
|
:'june' => :'june',
|
171
231
|
:'july' => :'july',
|
172
232
|
:'august' => :'august',
|
173
|
-
:'
|
233
|
+
:'september' => :'september',
|
174
234
|
:'october' => :'october',
|
175
235
|
:'november' => :'november',
|
176
236
|
:'december' => :'december',
|
177
|
-
:'id' => :'id',
|
178
237
|
:'type' => :'type',
|
238
|
+
:'id' => :'id',
|
179
239
|
:'issuer_id' => :'issuerId',
|
180
240
|
:'issuer_reference_id' => :'issuerReferenceId',
|
181
241
|
:'issuer_tin' => :'issuerTin',
|
182
242
|
:'tax_year' => :'taxYear',
|
183
|
-
:'federal_efile' => :'federalEfile',
|
184
|
-
:'federal_efile_status' => :'federalEfileStatus',
|
185
|
-
:'state_efile' => :'stateEfile',
|
186
|
-
:'state_efile_status' => :'stateEfileStatus',
|
187
|
-
:'postal_mail' => :'postalMail',
|
188
|
-
:'postal_mail_status' => :'postalMailStatus',
|
189
|
-
:'tin_match' => :'tinMatch',
|
190
|
-
:'tin_match_status' => :'tinMatchStatus',
|
191
|
-
:'address_verification' => :'addressVerification',
|
192
|
-
:'address_verification_status' => :'addressVerificationStatus',
|
193
|
-
:'e_delivery_status' => :'eDeliveryStatus',
|
194
243
|
:'reference_id' => :'referenceId',
|
195
|
-
:'email' => :'email',
|
196
|
-
:'tin_type' => :'tinType',
|
197
|
-
:'fatca_filing_requirement' => :'fatcaFilingRequirement',
|
198
244
|
:'tin' => :'tin',
|
199
|
-
:'no_tin' => :'noTin',
|
200
|
-
:'second_tin_notice' => :'secondTinNotice',
|
201
245
|
:'recipient_name' => :'recipientName',
|
246
|
+
:'tin_type' => :'tinType',
|
202
247
|
:'recipient_second_name' => :'recipientSecondName',
|
203
248
|
:'address' => :'address',
|
204
249
|
:'address2' => :'address2',
|
205
250
|
:'city' => :'city',
|
206
251
|
:'state' => :'state',
|
207
252
|
:'zip' => :'zip',
|
208
|
-
:'
|
209
|
-
:'country_code' => :'countryCode',
|
253
|
+
:'email' => :'email',
|
210
254
|
:'account_number' => :'accountNumber',
|
211
255
|
:'office_code' => :'officeCode',
|
256
|
+
:'non_us_province' => :'nonUsProvince',
|
257
|
+
:'country_code' => :'countryCode',
|
258
|
+
:'federal_efile_date' => :'federalEfileDate',
|
259
|
+
:'postal_mail' => :'postalMail',
|
260
|
+
:'state_efile_date' => :'stateEfileDate',
|
261
|
+
:'recipient_edelivery_date' => :'recipientEdeliveryDate',
|
262
|
+
:'tin_match' => :'tinMatch',
|
263
|
+
:'no_tin' => :'noTin',
|
264
|
+
:'address_verification' => :'addressVerification',
|
265
|
+
:'state_and_local_withholding' => :'stateAndLocalWithholding',
|
266
|
+
:'second_tin_notice' => :'secondTinNotice',
|
267
|
+
:'federal_efile_status' => :'federalEfileStatus',
|
268
|
+
:'state_efile_status' => :'stateEfileStatus',
|
269
|
+
:'postal_mail_status' => :'postalMailStatus',
|
270
|
+
:'tin_match_status' => :'tinMatchStatus',
|
271
|
+
:'address_verification_status' => :'addressVerificationStatus',
|
272
|
+
:'e_delivery_status' => :'eDeliveryStatus',
|
212
273
|
:'validation_errors' => :'validationErrors',
|
213
274
|
:'created_at' => :'createdAt',
|
214
|
-
:'updated_at' => :'updatedAt'
|
215
|
-
:'state_and_local_withholding' => :'stateAndLocalWithholding'
|
275
|
+
:'updated_at' => :'updatedAt'
|
216
276
|
}
|
217
277
|
end
|
218
278
|
|
@@ -240,58 +300,62 @@ module AvalaraSdk::A1099::V2
|
|
240
300
|
:'june' => :'Float',
|
241
301
|
:'july' => :'Float',
|
242
302
|
:'august' => :'Float',
|
243
|
-
:'
|
303
|
+
:'september' => :'Float',
|
244
304
|
:'october' => :'Float',
|
245
305
|
:'november' => :'Float',
|
246
306
|
:'december' => :'Float',
|
247
|
-
:'id' => :'String',
|
248
307
|
:'type' => :'String',
|
249
|
-
:'
|
308
|
+
:'id' => :'String',
|
309
|
+
:'issuer_id' => :'String',
|
250
310
|
:'issuer_reference_id' => :'String',
|
251
311
|
:'issuer_tin' => :'String',
|
252
312
|
:'tax_year' => :'Integer',
|
253
|
-
:'federal_efile' => :'Boolean',
|
254
|
-
:'federal_efile_status' => :'Form1099StatusDetail',
|
255
|
-
:'state_efile' => :'Boolean',
|
256
|
-
:'state_efile_status' => :'Array<StateEfileStatusDetail>',
|
257
|
-
:'postal_mail' => :'Boolean',
|
258
|
-
:'postal_mail_status' => :'Form1099StatusDetail',
|
259
|
-
:'tin_match' => :'Boolean',
|
260
|
-
:'tin_match_status' => :'Form1099StatusDetail',
|
261
|
-
:'address_verification' => :'Boolean',
|
262
|
-
:'address_verification_status' => :'Form1099StatusDetail',
|
263
|
-
:'e_delivery_status' => :'Form1099StatusDetail',
|
264
313
|
:'reference_id' => :'String',
|
265
|
-
:'email' => :'String',
|
266
|
-
:'tin_type' => :'String',
|
267
|
-
:'fatca_filing_requirement' => :'Boolean',
|
268
314
|
:'tin' => :'String',
|
269
|
-
:'no_tin' => :'Boolean',
|
270
|
-
:'second_tin_notice' => :'Boolean',
|
271
315
|
:'recipient_name' => :'String',
|
316
|
+
:'tin_type' => :'String',
|
272
317
|
:'recipient_second_name' => :'String',
|
273
318
|
:'address' => :'String',
|
274
319
|
:'address2' => :'String',
|
275
320
|
:'city' => :'String',
|
276
321
|
:'state' => :'String',
|
277
322
|
:'zip' => :'String',
|
278
|
-
:'
|
279
|
-
:'country_code' => :'String',
|
323
|
+
:'email' => :'String',
|
280
324
|
:'account_number' => :'String',
|
281
325
|
:'office_code' => :'String',
|
326
|
+
:'non_us_province' => :'String',
|
327
|
+
:'country_code' => :'String',
|
328
|
+
:'federal_efile_date' => :'Date',
|
329
|
+
:'postal_mail' => :'Boolean',
|
330
|
+
:'state_efile_date' => :'Date',
|
331
|
+
:'recipient_edelivery_date' => :'Date',
|
332
|
+
:'tin_match' => :'Boolean',
|
333
|
+
:'no_tin' => :'Boolean',
|
334
|
+
:'address_verification' => :'Boolean',
|
335
|
+
:'state_and_local_withholding' => :'StateAndLocalWithholding',
|
336
|
+
:'second_tin_notice' => :'Boolean',
|
337
|
+
:'federal_efile_status' => :'Form1099StatusDetail',
|
338
|
+
:'state_efile_status' => :'Array<StateEfileStatusDetail>',
|
339
|
+
:'postal_mail_status' => :'Form1099StatusDetail',
|
340
|
+
:'tin_match_status' => :'Form1099StatusDetail',
|
341
|
+
:'address_verification_status' => :'Form1099StatusDetail',
|
342
|
+
:'e_delivery_status' => :'Form1099StatusDetail',
|
282
343
|
:'validation_errors' => :'Array<ValidationError>',
|
283
344
|
:'created_at' => :'Time',
|
284
|
-
:'updated_at' => :'Time'
|
285
|
-
:'state_and_local_withholding' => :'StateAndLocalWithholding'
|
345
|
+
:'updated_at' => :'Time'
|
286
346
|
}
|
287
347
|
end
|
288
348
|
|
289
349
|
# List of attributes with nullable: true
|
290
350
|
def self.openapi_nullable
|
291
351
|
Set.new([
|
352
|
+
:'filer_type',
|
353
|
+
:'payment_type',
|
292
354
|
:'payment_settlement_entity_name_phone_number',
|
355
|
+
:'gross_amount_payment_card',
|
293
356
|
:'card_not_present_transactions',
|
294
357
|
:'merchant_category_code',
|
358
|
+
:'payment_transaction_number',
|
295
359
|
:'federal_income_tax_withheld',
|
296
360
|
:'january',
|
297
361
|
:'february',
|
@@ -301,36 +365,45 @@ module AvalaraSdk::A1099::V2
|
|
301
365
|
:'june',
|
302
366
|
:'july',
|
303
367
|
:'august',
|
304
|
-
:'
|
368
|
+
:'september',
|
305
369
|
:'october',
|
306
370
|
:'november',
|
307
371
|
:'december',
|
372
|
+
:'id',
|
373
|
+
:'issuer_id',
|
308
374
|
:'issuer_reference_id',
|
309
375
|
:'issuer_tin',
|
310
|
-
:'
|
311
|
-
:'postal_mail_status',
|
312
|
-
:'tin_match_status',
|
313
|
-
:'address_verification_status',
|
314
|
-
:'e_delivery_status',
|
376
|
+
:'tax_year',
|
315
377
|
:'reference_id',
|
316
|
-
:'email',
|
317
|
-
:'tin_type',
|
318
|
-
:'fatca_filing_requirement',
|
319
378
|
:'tin',
|
320
|
-
:'second_tin_notice',
|
321
379
|
:'recipient_name',
|
380
|
+
:'tin_type',
|
322
381
|
:'recipient_second_name',
|
323
382
|
:'address',
|
324
383
|
:'address2',
|
325
384
|
:'city',
|
326
385
|
:'state',
|
327
386
|
:'zip',
|
328
|
-
:'
|
329
|
-
:'country_code',
|
387
|
+
:'email',
|
330
388
|
:'account_number',
|
331
389
|
:'office_code',
|
390
|
+
:'non_us_province',
|
391
|
+
:'country_code',
|
392
|
+
:'federal_efile_date',
|
393
|
+
:'postal_mail',
|
394
|
+
:'state_efile_date',
|
395
|
+
:'recipient_edelivery_date',
|
396
|
+
:'tin_match',
|
397
|
+
:'no_tin',
|
398
|
+
:'address_verification',
|
399
|
+
:'state_and_local_withholding',
|
400
|
+
:'federal_efile_status',
|
401
|
+
:'state_efile_status',
|
402
|
+
:'postal_mail_status',
|
403
|
+
:'tin_match_status',
|
404
|
+
:'address_verification_status',
|
405
|
+
:'e_delivery_status',
|
332
406
|
:'validation_errors',
|
333
|
-
:'state_and_local_withholding'
|
334
407
|
])
|
335
408
|
end
|
336
409
|
|
@@ -420,8 +493,8 @@ module AvalaraSdk::A1099::V2
|
|
420
493
|
self.august = attributes[:'august']
|
421
494
|
end
|
422
495
|
|
423
|
-
if attributes.key?(:'
|
424
|
-
self.
|
496
|
+
if attributes.key?(:'september')
|
497
|
+
self.september = attributes[:'september']
|
425
498
|
end
|
426
499
|
|
427
500
|
if attributes.key?(:'october')
|
@@ -436,12 +509,14 @@ module AvalaraSdk::A1099::V2
|
|
436
509
|
self.december = attributes[:'december']
|
437
510
|
end
|
438
511
|
|
439
|
-
if attributes.key?(:'id')
|
440
|
-
self.id = attributes[:'id']
|
441
|
-
end
|
442
|
-
|
443
512
|
if attributes.key?(:'type')
|
444
513
|
self.type = attributes[:'type']
|
514
|
+
else
|
515
|
+
self.type = nil
|
516
|
+
end
|
517
|
+
|
518
|
+
if attributes.key?(:'id')
|
519
|
+
self.id = attributes[:'id']
|
445
520
|
end
|
446
521
|
|
447
522
|
if attributes.key?(:'issuer_id')
|
@@ -460,122 +535,134 @@ module AvalaraSdk::A1099::V2
|
|
460
535
|
self.tax_year = attributes[:'tax_year']
|
461
536
|
end
|
462
537
|
|
463
|
-
if attributes.key?(:'
|
464
|
-
self.
|
538
|
+
if attributes.key?(:'reference_id')
|
539
|
+
self.reference_id = attributes[:'reference_id']
|
465
540
|
end
|
466
541
|
|
467
|
-
if attributes.key?(:'
|
468
|
-
self.
|
542
|
+
if attributes.key?(:'tin')
|
543
|
+
self.tin = attributes[:'tin']
|
469
544
|
end
|
470
545
|
|
471
|
-
if attributes.key?(:'
|
472
|
-
self.
|
546
|
+
if attributes.key?(:'recipient_name')
|
547
|
+
self.recipient_name = attributes[:'recipient_name']
|
548
|
+
else
|
549
|
+
self.recipient_name = nil
|
473
550
|
end
|
474
551
|
|
475
|
-
if attributes.key?(:'
|
476
|
-
|
477
|
-
self.state_efile_status = value
|
478
|
-
end
|
552
|
+
if attributes.key?(:'tin_type')
|
553
|
+
self.tin_type = attributes[:'tin_type']
|
479
554
|
end
|
480
555
|
|
481
|
-
if attributes.key?(:'
|
482
|
-
self.
|
556
|
+
if attributes.key?(:'recipient_second_name')
|
557
|
+
self.recipient_second_name = attributes[:'recipient_second_name']
|
483
558
|
end
|
484
559
|
|
485
|
-
if attributes.key?(:'
|
486
|
-
self.
|
560
|
+
if attributes.key?(:'address')
|
561
|
+
self.address = attributes[:'address']
|
562
|
+
else
|
563
|
+
self.address = nil
|
487
564
|
end
|
488
565
|
|
489
|
-
if attributes.key?(:'
|
490
|
-
self.
|
566
|
+
if attributes.key?(:'address2')
|
567
|
+
self.address2 = attributes[:'address2']
|
491
568
|
end
|
492
569
|
|
493
|
-
if attributes.key?(:'
|
494
|
-
self.
|
570
|
+
if attributes.key?(:'city')
|
571
|
+
self.city = attributes[:'city']
|
572
|
+
else
|
573
|
+
self.city = nil
|
495
574
|
end
|
496
575
|
|
497
|
-
if attributes.key?(:'
|
498
|
-
self.
|
576
|
+
if attributes.key?(:'state')
|
577
|
+
self.state = attributes[:'state']
|
499
578
|
end
|
500
579
|
|
501
|
-
if attributes.key?(:'
|
502
|
-
self.
|
580
|
+
if attributes.key?(:'zip')
|
581
|
+
self.zip = attributes[:'zip']
|
503
582
|
end
|
504
583
|
|
505
|
-
if attributes.key?(:'
|
506
|
-
self.
|
584
|
+
if attributes.key?(:'email')
|
585
|
+
self.email = attributes[:'email']
|
507
586
|
end
|
508
587
|
|
509
|
-
if attributes.key?(:'
|
510
|
-
self.
|
588
|
+
if attributes.key?(:'account_number')
|
589
|
+
self.account_number = attributes[:'account_number']
|
511
590
|
end
|
512
591
|
|
513
|
-
if attributes.key?(:'
|
514
|
-
self.
|
592
|
+
if attributes.key?(:'office_code')
|
593
|
+
self.office_code = attributes[:'office_code']
|
515
594
|
end
|
516
595
|
|
517
|
-
if attributes.key?(:'
|
518
|
-
self.
|
596
|
+
if attributes.key?(:'non_us_province')
|
597
|
+
self.non_us_province = attributes[:'non_us_province']
|
519
598
|
end
|
520
599
|
|
521
|
-
if attributes.key?(:'
|
522
|
-
self.
|
600
|
+
if attributes.key?(:'country_code')
|
601
|
+
self.country_code = attributes[:'country_code']
|
602
|
+
else
|
603
|
+
self.country_code = nil
|
523
604
|
end
|
524
605
|
|
525
|
-
if attributes.key?(:'
|
526
|
-
self.
|
606
|
+
if attributes.key?(:'federal_efile_date')
|
607
|
+
self.federal_efile_date = attributes[:'federal_efile_date']
|
527
608
|
end
|
528
609
|
|
529
|
-
if attributes.key?(:'
|
530
|
-
self.
|
610
|
+
if attributes.key?(:'postal_mail')
|
611
|
+
self.postal_mail = attributes[:'postal_mail']
|
531
612
|
end
|
532
613
|
|
533
|
-
if attributes.key?(:'
|
534
|
-
self.
|
614
|
+
if attributes.key?(:'state_efile_date')
|
615
|
+
self.state_efile_date = attributes[:'state_efile_date']
|
535
616
|
end
|
536
617
|
|
537
|
-
if attributes.key?(:'
|
538
|
-
self.
|
618
|
+
if attributes.key?(:'recipient_edelivery_date')
|
619
|
+
self.recipient_edelivery_date = attributes[:'recipient_edelivery_date']
|
539
620
|
end
|
540
621
|
|
541
|
-
if attributes.key?(:'
|
542
|
-
self.
|
622
|
+
if attributes.key?(:'tin_match')
|
623
|
+
self.tin_match = attributes[:'tin_match']
|
543
624
|
end
|
544
625
|
|
545
|
-
if attributes.key?(:'
|
546
|
-
self.
|
626
|
+
if attributes.key?(:'no_tin')
|
627
|
+
self.no_tin = attributes[:'no_tin']
|
547
628
|
end
|
548
629
|
|
549
|
-
if attributes.key?(:'
|
550
|
-
self.
|
630
|
+
if attributes.key?(:'address_verification')
|
631
|
+
self.address_verification = attributes[:'address_verification']
|
551
632
|
end
|
552
633
|
|
553
|
-
if attributes.key?(:'
|
554
|
-
self.
|
634
|
+
if attributes.key?(:'state_and_local_withholding')
|
635
|
+
self.state_and_local_withholding = attributes[:'state_and_local_withholding']
|
555
636
|
end
|
556
637
|
|
557
|
-
if attributes.key?(:'
|
558
|
-
self.
|
638
|
+
if attributes.key?(:'second_tin_notice')
|
639
|
+
self.second_tin_notice = attributes[:'second_tin_notice']
|
559
640
|
end
|
560
641
|
|
561
|
-
if attributes.key?(:'
|
562
|
-
self.
|
642
|
+
if attributes.key?(:'federal_efile_status')
|
643
|
+
self.federal_efile_status = attributes[:'federal_efile_status']
|
563
644
|
end
|
564
645
|
|
565
|
-
if attributes.key?(:'
|
566
|
-
|
646
|
+
if attributes.key?(:'state_efile_status')
|
647
|
+
if (value = attributes[:'state_efile_status']).is_a?(Array)
|
648
|
+
self.state_efile_status = value
|
649
|
+
end
|
567
650
|
end
|
568
651
|
|
569
|
-
if attributes.key?(:'
|
570
|
-
self.
|
652
|
+
if attributes.key?(:'postal_mail_status')
|
653
|
+
self.postal_mail_status = attributes[:'postal_mail_status']
|
571
654
|
end
|
572
655
|
|
573
|
-
if attributes.key?(:'
|
574
|
-
self.
|
656
|
+
if attributes.key?(:'tin_match_status')
|
657
|
+
self.tin_match_status = attributes[:'tin_match_status']
|
575
658
|
end
|
576
659
|
|
577
|
-
if attributes.key?(:'
|
578
|
-
self.
|
660
|
+
if attributes.key?(:'address_verification_status')
|
661
|
+
self.address_verification_status = attributes[:'address_verification_status']
|
662
|
+
end
|
663
|
+
|
664
|
+
if attributes.key?(:'e_delivery_status')
|
665
|
+
self.e_delivery_status = attributes[:'e_delivery_status']
|
579
666
|
end
|
580
667
|
|
581
668
|
if attributes.key?(:'validation_errors')
|
@@ -591,10 +678,6 @@ module AvalaraSdk::A1099::V2
|
|
591
678
|
if attributes.key?(:'updated_at')
|
592
679
|
self.updated_at = attributes[:'updated_at']
|
593
680
|
end
|
594
|
-
|
595
|
-
if attributes.key?(:'state_and_local_withholding')
|
596
|
-
self.state_and_local_withholding = attributes[:'state_and_local_withholding']
|
597
|
-
end
|
598
681
|
end
|
599
682
|
|
600
683
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -602,6 +685,10 @@ module AvalaraSdk::A1099::V2
|
|
602
685
|
def list_invalid_properties
|
603
686
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
604
687
|
invalid_properties = Array.new
|
688
|
+
if @type.nil?
|
689
|
+
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
690
|
+
end
|
691
|
+
|
605
692
|
invalid_properties
|
606
693
|
end
|
607
694
|
|
@@ -613,6 +700,11 @@ module AvalaraSdk::A1099::V2
|
|
613
700
|
return false unless filer_type_validator.valid?(@filer_type)
|
614
701
|
payment_type_validator = EnumAttributeValidator.new('String', ["MerchantPaymentCard", "ThirdPartyNetwork"])
|
615
702
|
return false unless payment_type_validator.valid?(@payment_type)
|
703
|
+
return false if @type.nil?
|
704
|
+
type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
|
705
|
+
return false unless type_validator.valid?(@type)
|
706
|
+
tin_type_validator = EnumAttributeValidator.new('String', ["Empty", "EIN", "SSN", "ITIN", "ATIN"])
|
707
|
+
return false unless tin_type_validator.valid?(@tin_type)
|
616
708
|
true
|
617
709
|
end
|
618
710
|
|
@@ -636,6 +728,26 @@ module AvalaraSdk::A1099::V2
|
|
636
728
|
@payment_type = payment_type
|
637
729
|
end
|
638
730
|
|
731
|
+
# Custom attribute writer method checking allowed values (enum).
|
732
|
+
# @param [Object] type Object to be assigned
|
733
|
+
def type=(type)
|
734
|
+
validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
|
735
|
+
unless validator.valid?(type)
|
736
|
+
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
737
|
+
end
|
738
|
+
@type = type
|
739
|
+
end
|
740
|
+
|
741
|
+
# Custom attribute writer method checking allowed values (enum).
|
742
|
+
# @param [Object] tin_type Object to be assigned
|
743
|
+
def tin_type=(tin_type)
|
744
|
+
validator = EnumAttributeValidator.new('String', ["Empty", "EIN", "SSN", "ITIN", "ATIN"])
|
745
|
+
unless validator.valid?(tin_type)
|
746
|
+
fail ArgumentError, "invalid value for \"tin_type\", must be one of #{validator.allowable_values}."
|
747
|
+
end
|
748
|
+
@tin_type = tin_type
|
749
|
+
end
|
750
|
+
|
639
751
|
# Custom attribute writer method with validation
|
640
752
|
# @param [Object] state_efile_status Value to be assigned
|
641
753
|
def state_efile_status=(state_efile_status)
|
@@ -669,49 +781,49 @@ module AvalaraSdk::A1099::V2
|
|
669
781
|
june == o.june &&
|
670
782
|
july == o.july &&
|
671
783
|
august == o.august &&
|
672
|
-
|
784
|
+
september == o.september &&
|
673
785
|
october == o.october &&
|
674
786
|
november == o.november &&
|
675
787
|
december == o.december &&
|
676
|
-
id == o.id &&
|
677
788
|
type == o.type &&
|
789
|
+
id == o.id &&
|
678
790
|
issuer_id == o.issuer_id &&
|
679
791
|
issuer_reference_id == o.issuer_reference_id &&
|
680
792
|
issuer_tin == o.issuer_tin &&
|
681
793
|
tax_year == o.tax_year &&
|
682
|
-
federal_efile == o.federal_efile &&
|
683
|
-
federal_efile_status == o.federal_efile_status &&
|
684
|
-
state_efile == o.state_efile &&
|
685
|
-
state_efile_status == o.state_efile_status &&
|
686
|
-
postal_mail == o.postal_mail &&
|
687
|
-
postal_mail_status == o.postal_mail_status &&
|
688
|
-
tin_match == o.tin_match &&
|
689
|
-
tin_match_status == o.tin_match_status &&
|
690
|
-
address_verification == o.address_verification &&
|
691
|
-
address_verification_status == o.address_verification_status &&
|
692
|
-
e_delivery_status == o.e_delivery_status &&
|
693
794
|
reference_id == o.reference_id &&
|
694
|
-
email == o.email &&
|
695
|
-
tin_type == o.tin_type &&
|
696
|
-
fatca_filing_requirement == o.fatca_filing_requirement &&
|
697
795
|
tin == o.tin &&
|
698
|
-
no_tin == o.no_tin &&
|
699
|
-
second_tin_notice == o.second_tin_notice &&
|
700
796
|
recipient_name == o.recipient_name &&
|
797
|
+
tin_type == o.tin_type &&
|
701
798
|
recipient_second_name == o.recipient_second_name &&
|
702
799
|
address == o.address &&
|
703
800
|
address2 == o.address2 &&
|
704
801
|
city == o.city &&
|
705
802
|
state == o.state &&
|
706
803
|
zip == o.zip &&
|
707
|
-
|
708
|
-
country_code == o.country_code &&
|
804
|
+
email == o.email &&
|
709
805
|
account_number == o.account_number &&
|
710
806
|
office_code == o.office_code &&
|
807
|
+
non_us_province == o.non_us_province &&
|
808
|
+
country_code == o.country_code &&
|
809
|
+
federal_efile_date == o.federal_efile_date &&
|
810
|
+
postal_mail == o.postal_mail &&
|
811
|
+
state_efile_date == o.state_efile_date &&
|
812
|
+
recipient_edelivery_date == o.recipient_edelivery_date &&
|
813
|
+
tin_match == o.tin_match &&
|
814
|
+
no_tin == o.no_tin &&
|
815
|
+
address_verification == o.address_verification &&
|
816
|
+
state_and_local_withholding == o.state_and_local_withholding &&
|
817
|
+
second_tin_notice == o.second_tin_notice &&
|
818
|
+
federal_efile_status == o.federal_efile_status &&
|
819
|
+
state_efile_status == o.state_efile_status &&
|
820
|
+
postal_mail_status == o.postal_mail_status &&
|
821
|
+
tin_match_status == o.tin_match_status &&
|
822
|
+
address_verification_status == o.address_verification_status &&
|
823
|
+
e_delivery_status == o.e_delivery_status &&
|
711
824
|
validation_errors == o.validation_errors &&
|
712
825
|
created_at == o.created_at &&
|
713
|
-
updated_at == o.updated_at
|
714
|
-
state_and_local_withholding == o.state_and_local_withholding
|
826
|
+
updated_at == o.updated_at
|
715
827
|
end
|
716
828
|
|
717
829
|
# @see the `==` method
|
@@ -723,7 +835,7 @@ module AvalaraSdk::A1099::V2
|
|
723
835
|
# Calculates hash code according to all attributes.
|
724
836
|
# @return [Integer] Hash code
|
725
837
|
def hash
|
726
|
-
[filer_type, payment_type, payment_settlement_entity_name_phone_number, gross_amount_payment_card, card_not_present_transactions, merchant_category_code, payment_transaction_number, federal_income_tax_withheld, january, february, march, april, may, june, july, august,
|
838
|
+
[filer_type, payment_type, payment_settlement_entity_name_phone_number, gross_amount_payment_card, card_not_present_transactions, merchant_category_code, payment_transaction_number, federal_income_tax_withheld, january, february, march, april, may, june, july, august, september, october, november, december, type, id, issuer_id, issuer_reference_id, issuer_tin, tax_year, reference_id, tin, recipient_name, tin_type, 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
|
727
839
|
end
|
728
840
|
|
729
841
|
# Builds the object from hash
|