avalara_sdk 25.8.0 → 25.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +32 -6
- data/docs/A1099/V2/BulkUpsert1099FormsRequest.md +4 -0
- data/docs/A1099/V2/CompaniesW9Api.md +6 -6
- data/docs/A1099/V2/CoveredIndividualRequest.md +26 -26
- data/docs/A1099/V2/Create1099Form201Response.md +4 -0
- data/docs/A1099/V2/ErrorResponse.md +1 -1
- data/docs/A1099/V2/ErrorResponseItem.md +20 -0
- data/docs/A1099/V2/Form1042S.md +140 -0
- data/docs/A1099/V2/Form1042SListItem.md +12 -8
- data/docs/A1099/V2/Form1042SListItemResponse.md +19 -9
- data/docs/A1099/V2/Form1042SRequest.md +14 -10
- data/docs/A1099/V2/Form1042SResponse.md +10 -6
- data/docs/A1099/V2/Form1095B.md +14 -2
- data/docs/A1099/V2/Form1095BListItem.md +14 -8
- data/docs/A1099/V2/Form1095BListItemResponse.md +20 -8
- data/docs/A1099/V2/Form1095BRequest.md +14 -8
- data/docs/A1099/V2/Form1095BResponse.md +106 -0
- data/docs/A1099/V2/Form1095CList.md +20 -0
- data/docs/A1099/V2/Form1095CListItem.md +90 -0
- data/docs/A1099/V2/Form1099Base.md +14 -2
- data/docs/A1099/V2/Form1099BaseResponse.md +20 -8
- data/docs/A1099/V2/Form1099Div.md +130 -0
- data/docs/A1099/V2/Form1099DivListItem.md +32 -28
- data/docs/A1099/V2/Form1099DivListItemResponse.md +130 -0
- data/docs/A1099/V2/Form1099DivRequest.md +32 -28
- data/docs/A1099/V2/Form1099DivResponse.md +48 -6
- data/docs/A1099/V2/Form1099Int.md +122 -0
- data/docs/A1099/V2/Form1099IntList.md +20 -0
- data/docs/A1099/V2/Form1099IntListItem.md +100 -0
- data/docs/A1099/V2/Form1099IntListItemResponse.md +122 -0
- data/docs/A1099/V2/Form1099IntRequest.md +96 -0
- data/docs/A1099/V2/Form1099IntResponse.md +120 -0
- data/docs/A1099/V2/Form1099K.md +14 -2
- data/docs/A1099/V2/Form1099KListItem.md +14 -8
- data/docs/A1099/V2/Form1099KListItemResponse.md +20 -8
- data/docs/A1099/V2/Form1099KRequest.md +18 -12
- data/docs/A1099/V2/Form1099KResponse.md +132 -0
- data/docs/A1099/V2/Form1099ListResponseValueInner.md +4 -0
- data/docs/A1099/V2/Form1099Misc.md +24 -12
- data/docs/A1099/V2/Form1099MiscListItem.md +14 -12
- data/docs/A1099/V2/Form1099MiscListItemResponse.md +30 -16
- data/docs/A1099/V2/Form1099MiscRequest.md +14 -12
- data/docs/A1099/V2/Form1099MiscResponse.md +12 -10
- data/docs/A1099/V2/Form1099Nec.md +14 -2
- data/docs/A1099/V2/Form1099NecListItem.md +14 -10
- data/docs/A1099/V2/Form1099NecListItemResponse.md +20 -8
- data/docs/A1099/V2/Form1099NecRequest.md +14 -10
- data/docs/A1099/V2/Form1099NecResponse.md +10 -8
- data/docs/A1099/V2/Form1099ProccessResult.md +3 -1
- data/docs/A1099/V2/Form1099ProccessResultProcessedFormsInner.md +61 -0
- data/docs/A1099/V2/Form1099R.md +14 -4
- data/docs/A1099/V2/Form1099RListItem.md +12 -8
- data/docs/A1099/V2/Form1099RListItemResponse.md +20 -10
- data/docs/A1099/V2/Form1099RRequest.md +12 -8
- data/docs/A1099/V2/Form1099RResponse.md +132 -0
- data/docs/A1099/V2/FormRequestBase.md +14 -8
- data/docs/A1099/V2/FormRequestListItemBase.md +14 -8
- data/docs/A1099/V2/FormResponseBase.md +10 -6
- data/docs/A1099/V2/FormSingleRequestBase.md +14 -8
- data/docs/A1099/V2/Forms1099Api.md +11 -11
- data/docs/A1099/V2/FormsW9Api.md +21 -19
- data/docs/A1099/V2/Get1099Form200Response.md +4 -0
- data/docs/A1099/V2/ICreateForm1099Request.md +2 -0
- data/docs/A1099/V2/IUpdateForm1099Request.md +2 -0
- data/docs/A1099/V2/IrsResponse.md +20 -0
- data/docs/A1099/V2/Issuers1099Api.md +6 -6
- data/docs/A1099/V2/Jobs1099Api.md +1 -1
- data/docs/A1099/V2/OfferAndCoverageRequest.md +26 -0
- data/docs/A1099/V2/PaginatedQueryResultModelCompanyResponse.md +1 -1
- data/docs/A1099/V2/PaginatedQueryResultModelIssuerResponse.md +1 -1
- data/docs/A1099/V2/PaginatedQueryResultModelW9FormBaseResponse.md +22 -0
- data/docs/A1099/V2/TinMatchStatusResponse.md +22 -0
- data/docs/A1099/V2/Update1099Form200Response.md +8 -0
- data/docs/A1099/V2/W4FormResponse.md +1 -29
- data/docs/A1099/V2/W8BenEFormResponse.md +1 -29
- data/docs/A1099/V2/W8BenFormResponse.md +1 -29
- data/docs/A1099/V2/W8ImyFormResponse.md +1 -29
- data/docs/A1099/V2/W9FormBaseResponse.md +3 -3
- data/docs/A1099/V2/W9FormResponse.md +2 -28
- data/lib/avalara_sdk/api/A1099/V2/companies_w9_api.rb +1 -1
- data/lib/avalara_sdk/api/A1099/V2/forms1099_api.rb +3 -3
- data/lib/avalara_sdk/api/A1099/V2/forms_w9_api.rb +30 -14
- data/lib/avalara_sdk/api/A1099/V2/issuers1099_api.rb +1 -1
- data/lib/avalara_sdk/api/A1099/V2/jobs1099_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/data_input_fields_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/documents_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/interop_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/mandates_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/subscriptions_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/tax_identifiers_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/trading_partners_api.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/bulk_upsert1099_forms_request.rb +2 -0
- data/lib/avalara_sdk/models/A1099/V2/covered_individual_reference.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/covered_individual_request.rb +79 -79
- data/lib/avalara_sdk/models/A1099/V2/create1099_form201_response.rb +2 -0
- data/lib/avalara_sdk/models/A1099/V2/error_response.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/error_response_item.rb +221 -0
- data/lib/avalara_sdk/models/A1099/V2/form1042_s.rb +824 -0
- data/lib/avalara_sdk/models/A1099/V2/form1042_s_list_item.rb +44 -119
- data/lib/avalara_sdk/models/A1099/V2/form1042_s_list_item_response.rb +67 -12
- data/lib/avalara_sdk/models/A1099/V2/form1042_s_request.rb +55 -132
- data/lib/avalara_sdk/models/A1099/V2/form1042_s_response.rb +43 -24
- data/lib/avalara_sdk/models/A1099/V2/form1095_b.rb +68 -9
- data/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item.rb +54 -119
- data/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item_response.rb +77 -12
- data/lib/avalara_sdk/models/A1099/V2/form1095_b_request.rb +56 -121
- data/lib/avalara_sdk/models/A1099/V2/form1095_b_response.rb +709 -0
- data/lib/avalara_sdk/models/A1099/V2/form1095_c_list.rb +238 -0
- data/lib/avalara_sdk/models/A1099/V2/form1095_c_list_item.rb +662 -0
- data/lib/avalara_sdk/models/A1099/V2/form1099_base.rb +68 -9
- data/lib/avalara_sdk/models/A1099/V2/form1099_base_response.rb +77 -12
- data/lib/avalara_sdk/models/A1099/V2/form1099_div.rb +781 -0
- data/lib/avalara_sdk/models/A1099/V2/form1099_div_list_item.rb +93 -147
- data/lib/avalara_sdk/models/A1099/V2/form1099_div_list_item_response.rb +931 -0
- data/lib/avalara_sdk/models/A1099/V2/form1099_div_request.rb +93 -149
- data/lib/avalara_sdk/models/A1099/V2/form1099_div_response.rb +214 -24
- data/lib/avalara_sdk/models/A1099/V2/form1099_int.rb +741 -0
- data/lib/avalara_sdk/models/A1099/V2/form1099_int_list.rb +238 -0
- data/lib/avalara_sdk/models/A1099/V2/form1099_int_list_item.rb +702 -0
- data/lib/avalara_sdk/models/A1099/V2/form1099_int_list_item_response.rb +887 -0
- data/lib/avalara_sdk/models/A1099/V2/form1099_int_request.rb +684 -0
- data/lib/avalara_sdk/models/A1099/V2/form1099_int_response.rb +773 -0
- data/lib/avalara_sdk/models/A1099/V2/form1099_k.rb +68 -9
- data/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item.rb +56 -119
- data/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item_response.rb +77 -12
- data/lib/avalara_sdk/models/A1099/V2/form1099_k_request.rb +82 -123
- data/lib/avalara_sdk/models/A1099/V2/form1099_k_response.rb +839 -0
- data/lib/avalara_sdk/models/A1099/V2/form1099_list_response_value_inner.rb +2 -0
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc.rb +106 -47
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item.rb +52 -135
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item_response.rb +116 -40
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_request.rb +52 -137
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_response.rb +49 -39
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec.rb +68 -9
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item.rb +56 -129
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item_response.rb +77 -12
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_request.rb +56 -131
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_response.rb +43 -33
- data/lib/avalara_sdk/models/A1099/V2/form1099_proccess_result.rb +22 -4
- data/lib/avalara_sdk/models/A1099/V2/form1099_proccess_result_processed_forms_inner.rb +107 -0
- data/lib/avalara_sdk/models/A1099/V2/form1099_r.rb +68 -19
- data/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item.rb +46 -119
- data/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item_response.rb +77 -23
- data/lib/avalara_sdk/models/A1099/V2/form1099_r_request.rb +46 -121
- data/lib/avalara_sdk/models/A1099/V2/form1099_r_response.rb +839 -0
- data/lib/avalara_sdk/models/A1099/V2/form1099_status_detail.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/form_request_base.rb +54 -119
- data/lib/avalara_sdk/models/A1099/V2/form_request_list_item_base.rb +56 -119
- data/lib/avalara_sdk/models/A1099/V2/form_response_base.rb +43 -24
- data/lib/avalara_sdk/models/A1099/V2/form_single_request_base.rb +56 -121
- data/lib/avalara_sdk/models/A1099/V2/get1099_form200_response.rb +2 -0
- data/lib/avalara_sdk/models/A1099/V2/i_create_form1099_request.rb +1 -0
- data/lib/avalara_sdk/models/A1099/V2/i_update_form1099_request.rb +1 -0
- data/lib/avalara_sdk/models/A1099/V2/included_base.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/irs_response.rb +221 -0
- data/lib/avalara_sdk/models/A1099/V2/issuer_command.rb +1 -0
- data/lib/avalara_sdk/models/A1099/V2/offer_and_coverage_request.rb +256 -0
- data/lib/avalara_sdk/models/A1099/V2/paginated_query_result_model_w9_form_base_response.rb +234 -0
- data/lib/avalara_sdk/models/A1099/V2/state_and_local_withholding.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/state_efile_status_detail.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/tin_match_status_response.rb +267 -0
- data/lib/avalara_sdk/models/A1099/V2/update1099_form200_response.rb +4 -0
- data/lib/avalara_sdk/models/A1099/V2/validation_error.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/w4_form_response.rb +15 -157
- data/lib/avalara_sdk/models/A1099/V2/w8_ben_e_form_response.rb +14 -156
- data/lib/avalara_sdk/models/A1099/V2/w8_ben_form_response.rb +15 -157
- data/lib/avalara_sdk/models/A1099/V2/w8_imy_form_response.rb +15 -157
- data/lib/avalara_sdk/models/A1099/V2/w9_form_base_response.rb +19 -14
- data/lib/avalara_sdk/models/A1099/V2/w9_form_response.rb +18 -150
- data/lib/avalara_sdk/version.rb +1 -1
- data/lib/avalara_sdk.rb +21 -1
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/byebug-11.1.3/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/date-3.4.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debase-0.2.9/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debug-1.10.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/erb-5.0.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/io-console-0.8.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/json-2.12.2/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/prism-1.4.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/psych-5.2.6/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/racc-1.8.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/stringio-3.1.7/gem_make.out +5 -5
- metadata +42 -2
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#Avalara 1099 & W-9 API Definition
|
3
3
|
|
4
|
-
### 🔐 Authentication
|
4
|
+
### 🔐 Authentication Generate a **license key** from: *[Avalara Portal](https://www.avalara.com/us/en/signin.html) → Settings → License and API Keys*. [More on authentication methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) [Test your credentials](https://developer.avalara.com/avatax/test-credentials/) ## 📘 API & SDK Documentation [Avalara SDK (.NET) on GitHub](https://github.com/avadev/Avalara-SDK-DotNet#avalarasdk--the-unified-c-library-for-next-gen-avalara-services) [Code Examples – 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget)
|
5
5
|
|
6
6
|
|
7
7
|
=end
|
@@ -47,14 +47,22 @@ module AvalaraSdk::A1099::V2
|
|
47
47
|
|
48
48
|
attr_accessor :address_verification_status
|
49
49
|
|
50
|
+
attr_accessor :e_delivery_status
|
51
|
+
|
50
52
|
attr_accessor :reference_id
|
51
53
|
|
52
54
|
attr_accessor :email
|
53
55
|
|
54
56
|
attr_accessor :tin_type
|
55
57
|
|
58
|
+
attr_accessor :fatca_filing_requirement
|
59
|
+
|
56
60
|
attr_accessor :tin
|
57
61
|
|
62
|
+
attr_accessor :no_tin
|
63
|
+
|
64
|
+
attr_accessor :second_tin_notice
|
65
|
+
|
58
66
|
attr_accessor :recipient_name
|
59
67
|
|
60
68
|
attr_accessor :recipient_second_name
|
@@ -69,10 +77,14 @@ module AvalaraSdk::A1099::V2
|
|
69
77
|
|
70
78
|
attr_accessor :zip
|
71
79
|
|
72
|
-
attr_accessor :
|
80
|
+
attr_accessor :non_us_province
|
73
81
|
|
74
82
|
attr_accessor :country_code
|
75
83
|
|
84
|
+
attr_accessor :account_number
|
85
|
+
|
86
|
+
attr_accessor :office_code
|
87
|
+
|
76
88
|
attr_accessor :validation_errors
|
77
89
|
|
78
90
|
attr_accessor :created_at
|
@@ -102,10 +114,14 @@ module AvalaraSdk::A1099::V2
|
|
102
114
|
:'tin_match_status' => :'tinMatchStatus',
|
103
115
|
:'address_verification' => :'addressVerification',
|
104
116
|
:'address_verification_status' => :'addressVerificationStatus',
|
117
|
+
:'e_delivery_status' => :'eDeliveryStatus',
|
105
118
|
:'reference_id' => :'referenceId',
|
106
119
|
:'email' => :'email',
|
107
120
|
:'tin_type' => :'tinType',
|
121
|
+
:'fatca_filing_requirement' => :'fatcaFilingRequirement',
|
108
122
|
:'tin' => :'tin',
|
123
|
+
:'no_tin' => :'noTin',
|
124
|
+
:'second_tin_notice' => :'secondTinNotice',
|
109
125
|
:'recipient_name' => :'recipientName',
|
110
126
|
:'recipient_second_name' => :'recipientSecondName',
|
111
127
|
:'address' => :'address',
|
@@ -113,8 +129,10 @@ module AvalaraSdk::A1099::V2
|
|
113
129
|
:'city' => :'city',
|
114
130
|
:'state' => :'state',
|
115
131
|
:'zip' => :'zip',
|
116
|
-
:'
|
132
|
+
:'non_us_province' => :'nonUsProvince',
|
117
133
|
:'country_code' => :'countryCode',
|
134
|
+
:'account_number' => :'accountNumber',
|
135
|
+
:'office_code' => :'officeCode',
|
118
136
|
:'validation_errors' => :'validationErrors',
|
119
137
|
:'created_at' => :'createdAt',
|
120
138
|
:'updated_at' => :'updatedAt',
|
@@ -148,10 +166,14 @@ module AvalaraSdk::A1099::V2
|
|
148
166
|
:'tin_match_status' => :'Form1099StatusDetail',
|
149
167
|
:'address_verification' => :'Boolean',
|
150
168
|
:'address_verification_status' => :'Form1099StatusDetail',
|
169
|
+
:'e_delivery_status' => :'Form1099StatusDetail',
|
151
170
|
:'reference_id' => :'String',
|
152
171
|
:'email' => :'String',
|
153
172
|
:'tin_type' => :'String',
|
173
|
+
:'fatca_filing_requirement' => :'Boolean',
|
154
174
|
:'tin' => :'String',
|
175
|
+
:'no_tin' => :'Boolean',
|
176
|
+
:'second_tin_notice' => :'Boolean',
|
155
177
|
:'recipient_name' => :'String',
|
156
178
|
:'recipient_second_name' => :'String',
|
157
179
|
:'address' => :'String',
|
@@ -159,8 +181,10 @@ module AvalaraSdk::A1099::V2
|
|
159
181
|
:'city' => :'String',
|
160
182
|
:'state' => :'String',
|
161
183
|
:'zip' => :'String',
|
162
|
-
:'
|
184
|
+
:'non_us_province' => :'String',
|
163
185
|
:'country_code' => :'String',
|
186
|
+
:'account_number' => :'String',
|
187
|
+
:'office_code' => :'String',
|
164
188
|
:'validation_errors' => :'Array<ValidationError>',
|
165
189
|
:'created_at' => :'Time',
|
166
190
|
:'updated_at' => :'Time',
|
@@ -177,10 +201,13 @@ module AvalaraSdk::A1099::V2
|
|
177
201
|
:'postal_mail_status',
|
178
202
|
:'tin_match_status',
|
179
203
|
:'address_verification_status',
|
204
|
+
:'e_delivery_status',
|
180
205
|
:'reference_id',
|
181
206
|
:'email',
|
182
207
|
:'tin_type',
|
208
|
+
:'fatca_filing_requirement',
|
183
209
|
:'tin',
|
210
|
+
:'second_tin_notice',
|
184
211
|
:'recipient_name',
|
185
212
|
:'recipient_second_name',
|
186
213
|
:'address',
|
@@ -188,8 +215,10 @@ module AvalaraSdk::A1099::V2
|
|
188
215
|
:'city',
|
189
216
|
:'state',
|
190
217
|
:'zip',
|
191
|
-
:'
|
218
|
+
:'non_us_province',
|
192
219
|
:'country_code',
|
220
|
+
:'account_number',
|
221
|
+
:'office_code',
|
193
222
|
:'validation_errors',
|
194
223
|
:'state_and_local_withholding'
|
195
224
|
])
|
@@ -293,6 +322,10 @@ module AvalaraSdk::A1099::V2
|
|
293
322
|
self.address_verification_status = attributes[:'address_verification_status']
|
294
323
|
end
|
295
324
|
|
325
|
+
if attributes.key?(:'e_delivery_status')
|
326
|
+
self.e_delivery_status = attributes[:'e_delivery_status']
|
327
|
+
end
|
328
|
+
|
296
329
|
if attributes.key?(:'reference_id')
|
297
330
|
self.reference_id = attributes[:'reference_id']
|
298
331
|
end
|
@@ -305,10 +338,22 @@ module AvalaraSdk::A1099::V2
|
|
305
338
|
self.tin_type = attributes[:'tin_type']
|
306
339
|
end
|
307
340
|
|
341
|
+
if attributes.key?(:'fatca_filing_requirement')
|
342
|
+
self.fatca_filing_requirement = attributes[:'fatca_filing_requirement']
|
343
|
+
end
|
344
|
+
|
308
345
|
if attributes.key?(:'tin')
|
309
346
|
self.tin = attributes[:'tin']
|
310
347
|
end
|
311
348
|
|
349
|
+
if attributes.key?(:'no_tin')
|
350
|
+
self.no_tin = attributes[:'no_tin']
|
351
|
+
end
|
352
|
+
|
353
|
+
if attributes.key?(:'second_tin_notice')
|
354
|
+
self.second_tin_notice = attributes[:'second_tin_notice']
|
355
|
+
end
|
356
|
+
|
312
357
|
if attributes.key?(:'recipient_name')
|
313
358
|
self.recipient_name = attributes[:'recipient_name']
|
314
359
|
end
|
@@ -337,14 +382,22 @@ module AvalaraSdk::A1099::V2
|
|
337
382
|
self.zip = attributes[:'zip']
|
338
383
|
end
|
339
384
|
|
340
|
-
if attributes.key?(:'
|
341
|
-
self.
|
385
|
+
if attributes.key?(:'non_us_province')
|
386
|
+
self.non_us_province = attributes[:'non_us_province']
|
342
387
|
end
|
343
388
|
|
344
389
|
if attributes.key?(:'country_code')
|
345
390
|
self.country_code = attributes[:'country_code']
|
346
391
|
end
|
347
392
|
|
393
|
+
if attributes.key?(:'account_number')
|
394
|
+
self.account_number = attributes[:'account_number']
|
395
|
+
end
|
396
|
+
|
397
|
+
if attributes.key?(:'office_code')
|
398
|
+
self.office_code = attributes[:'office_code']
|
399
|
+
end
|
400
|
+
|
348
401
|
if attributes.key?(:'validation_errors')
|
349
402
|
if (value = attributes[:'validation_errors']).is_a?(Array)
|
350
403
|
self.validation_errors = value
|
@@ -424,10 +477,14 @@ module AvalaraSdk::A1099::V2
|
|
424
477
|
tin_match_status == o.tin_match_status &&
|
425
478
|
address_verification == o.address_verification &&
|
426
479
|
address_verification_status == o.address_verification_status &&
|
480
|
+
e_delivery_status == o.e_delivery_status &&
|
427
481
|
reference_id == o.reference_id &&
|
428
482
|
email == o.email &&
|
429
483
|
tin_type == o.tin_type &&
|
484
|
+
fatca_filing_requirement == o.fatca_filing_requirement &&
|
430
485
|
tin == o.tin &&
|
486
|
+
no_tin == o.no_tin &&
|
487
|
+
second_tin_notice == o.second_tin_notice &&
|
431
488
|
recipient_name == o.recipient_name &&
|
432
489
|
recipient_second_name == o.recipient_second_name &&
|
433
490
|
address == o.address &&
|
@@ -435,8 +492,10 @@ module AvalaraSdk::A1099::V2
|
|
435
492
|
city == o.city &&
|
436
493
|
state == o.state &&
|
437
494
|
zip == o.zip &&
|
438
|
-
|
495
|
+
non_us_province == o.non_us_province &&
|
439
496
|
country_code == o.country_code &&
|
497
|
+
account_number == o.account_number &&
|
498
|
+
office_code == o.office_code &&
|
440
499
|
validation_errors == o.validation_errors &&
|
441
500
|
created_at == o.created_at &&
|
442
501
|
updated_at == o.updated_at &&
|
@@ -452,7 +511,7 @@ module AvalaraSdk::A1099::V2
|
|
452
511
|
# Calculates hash code according to all attributes.
|
453
512
|
# @return [Integer] Hash code
|
454
513
|
def hash
|
455
|
-
[origin_of_health_coverage_code, covered_individuals, id, type, issuer_id, issuer_reference_id, issuer_tin, tax_year, federal_efile, federal_efile_status, state_efile, state_efile_status, postal_mail, postal_mail_status, tin_match, tin_match_status, address_verification, address_verification_status, reference_id, email, tin_type, tin, recipient_name, recipient_second_name, address, address2, city, state, zip,
|
514
|
+
[origin_of_health_coverage_code, covered_individuals, id, type, issuer_id, issuer_reference_id, issuer_tin, tax_year, federal_efile, federal_efile_status, state_efile, state_efile_status, postal_mail, postal_mail_status, tin_match, tin_match_status, address_verification, address_verification_status, e_delivery_status, reference_id, email, tin_type, fatca_filing_requirement, tin, no_tin, second_tin_notice, recipient_name, recipient_second_name, address, address2, city, state, zip, non_us_province, country_code, account_number, office_code, validation_errors, created_at, updated_at, state_and_local_withholding].hash
|
456
515
|
end
|
457
516
|
|
458
517
|
# Builds the object from hash
|
@@ -66,7 +66,7 @@ module AvalaraSdk::A1099::V2
|
|
66
66
|
attr_accessor :zip
|
67
67
|
|
68
68
|
# Recipient email address
|
69
|
-
attr_accessor :
|
69
|
+
attr_accessor :email
|
70
70
|
|
71
71
|
# Account number
|
72
72
|
attr_accessor :account_number
|
@@ -75,7 +75,7 @@ module AvalaraSdk::A1099::V2
|
|
75
75
|
attr_accessor :office_code
|
76
76
|
|
77
77
|
# Foreign province
|
78
|
-
attr_accessor :
|
78
|
+
attr_accessor :non_us_province
|
79
79
|
|
80
80
|
# Country code, as defined at https://www.irs.gov/e-file-providers/country-codes
|
81
81
|
attr_accessor :country_code
|
@@ -92,6 +92,15 @@ module AvalaraSdk::A1099::V2
|
|
92
92
|
# Boolean indicating that TIN Matching should be scheduled for this form
|
93
93
|
attr_accessor :tin_match
|
94
94
|
|
95
|
+
# Indicates whether the recipient has no TIN
|
96
|
+
attr_accessor :no_tin
|
97
|
+
|
98
|
+
# Second TIN notice in three years
|
99
|
+
attr_accessor :second_tin_notice
|
100
|
+
|
101
|
+
# Fatca filing requirement
|
102
|
+
attr_accessor :fatca_filing_requirement
|
103
|
+
|
95
104
|
# Boolean indicating that address verification should be scheduled for this form
|
96
105
|
attr_accessor :address_verification
|
97
106
|
|
@@ -141,15 +150,18 @@ module AvalaraSdk::A1099::V2
|
|
141
150
|
:'city' => :'city',
|
142
151
|
:'state' => :'state',
|
143
152
|
:'zip' => :'zip',
|
144
|
-
:'
|
153
|
+
:'email' => :'email',
|
145
154
|
:'account_number' => :'accountNumber',
|
146
155
|
:'office_code' => :'officeCode',
|
147
|
-
:'
|
156
|
+
:'non_us_province' => :'nonUsProvince',
|
148
157
|
:'country_code' => :'countryCode',
|
149
158
|
:'federal_e_file' => :'federalEFile',
|
150
159
|
:'postal_mail' => :'postalMail',
|
151
160
|
:'state_e_file' => :'stateEFile',
|
152
161
|
:'tin_match' => :'tinMatch',
|
162
|
+
:'no_tin' => :'noTin',
|
163
|
+
:'second_tin_notice' => :'secondTinNotice',
|
164
|
+
:'fatca_filing_requirement' => :'fatcaFilingRequirement',
|
153
165
|
:'address_verification' => :'addressVerification',
|
154
166
|
:'state_and_local_withholding' => :'stateAndLocalWithholding'
|
155
167
|
}
|
@@ -181,15 +193,18 @@ module AvalaraSdk::A1099::V2
|
|
181
193
|
:'city' => :'String',
|
182
194
|
:'state' => :'String',
|
183
195
|
:'zip' => :'String',
|
184
|
-
:'
|
196
|
+
:'email' => :'String',
|
185
197
|
:'account_number' => :'String',
|
186
198
|
:'office_code' => :'String',
|
187
|
-
:'
|
199
|
+
:'non_us_province' => :'String',
|
188
200
|
:'country_code' => :'String',
|
189
201
|
:'federal_e_file' => :'Boolean',
|
190
202
|
:'postal_mail' => :'Boolean',
|
191
203
|
:'state_e_file' => :'Boolean',
|
192
204
|
:'tin_match' => :'Boolean',
|
205
|
+
:'no_tin' => :'Boolean',
|
206
|
+
:'second_tin_notice' => :'Boolean',
|
207
|
+
:'fatca_filing_requirement' => :'Boolean',
|
193
208
|
:'address_verification' => :'Boolean',
|
194
209
|
:'state_and_local_withholding' => :'StateAndLocalWithholdingRequest'
|
195
210
|
}
|
@@ -203,12 +218,21 @@ module AvalaraSdk::A1099::V2
|
|
203
218
|
:'employee_date_of_birth',
|
204
219
|
:'issuer_id',
|
205
220
|
:'reference_id',
|
221
|
+
:'recipient_tin',
|
222
|
+
:'recipient_name',
|
206
223
|
:'recipient_second_name',
|
224
|
+
:'address',
|
207
225
|
:'address2',
|
208
|
-
:'
|
226
|
+
:'city',
|
227
|
+
:'state',
|
228
|
+
:'zip',
|
229
|
+
:'email',
|
209
230
|
:'account_number',
|
210
231
|
:'office_code',
|
211
|
-
:'
|
232
|
+
:'non_us_province',
|
233
|
+
:'country_code',
|
234
|
+
:'second_tin_notice',
|
235
|
+
:'state_and_local_withholding'
|
212
236
|
])
|
213
237
|
end
|
214
238
|
|
@@ -278,8 +302,6 @@ module AvalaraSdk::A1099::V2
|
|
278
302
|
|
279
303
|
if attributes.key?(:'recipient_name')
|
280
304
|
self.recipient_name = attributes[:'recipient_name']
|
281
|
-
else
|
282
|
-
self.recipient_name = nil
|
283
305
|
end
|
284
306
|
|
285
307
|
if attributes.key?(:'tin_type')
|
@@ -292,8 +314,6 @@ module AvalaraSdk::A1099::V2
|
|
292
314
|
|
293
315
|
if attributes.key?(:'address')
|
294
316
|
self.address = attributes[:'address']
|
295
|
-
else
|
296
|
-
self.address = nil
|
297
317
|
end
|
298
318
|
|
299
319
|
if attributes.key?(:'address2')
|
@@ -302,8 +322,6 @@ module AvalaraSdk::A1099::V2
|
|
302
322
|
|
303
323
|
if attributes.key?(:'city')
|
304
324
|
self.city = attributes[:'city']
|
305
|
-
else
|
306
|
-
self.city = nil
|
307
325
|
end
|
308
326
|
|
309
327
|
if attributes.key?(:'state')
|
@@ -314,8 +332,8 @@ module AvalaraSdk::A1099::V2
|
|
314
332
|
self.zip = attributes[:'zip']
|
315
333
|
end
|
316
334
|
|
317
|
-
if attributes.key?(:'
|
318
|
-
self.
|
335
|
+
if attributes.key?(:'email')
|
336
|
+
self.email = attributes[:'email']
|
319
337
|
end
|
320
338
|
|
321
339
|
if attributes.key?(:'account_number')
|
@@ -326,14 +344,12 @@ module AvalaraSdk::A1099::V2
|
|
326
344
|
self.office_code = attributes[:'office_code']
|
327
345
|
end
|
328
346
|
|
329
|
-
if attributes.key?(:'
|
330
|
-
self.
|
347
|
+
if attributes.key?(:'non_us_province')
|
348
|
+
self.non_us_province = attributes[:'non_us_province']
|
331
349
|
end
|
332
350
|
|
333
351
|
if attributes.key?(:'country_code')
|
334
352
|
self.country_code = attributes[:'country_code']
|
335
|
-
else
|
336
|
-
self.country_code = nil
|
337
353
|
end
|
338
354
|
|
339
355
|
if attributes.key?(:'federal_e_file')
|
@@ -352,6 +368,18 @@ module AvalaraSdk::A1099::V2
|
|
352
368
|
self.tin_match = attributes[:'tin_match']
|
353
369
|
end
|
354
370
|
|
371
|
+
if attributes.key?(:'no_tin')
|
372
|
+
self.no_tin = attributes[:'no_tin']
|
373
|
+
end
|
374
|
+
|
375
|
+
if attributes.key?(:'second_tin_notice')
|
376
|
+
self.second_tin_notice = attributes[:'second_tin_notice']
|
377
|
+
end
|
378
|
+
|
379
|
+
if attributes.key?(:'fatca_filing_requirement')
|
380
|
+
self.fatca_filing_requirement = attributes[:'fatca_filing_requirement']
|
381
|
+
end
|
382
|
+
|
355
383
|
if attributes.key?(:'address_verification')
|
356
384
|
self.address_verification = attributes[:'address_verification']
|
357
385
|
end
|
@@ -366,38 +394,6 @@ module AvalaraSdk::A1099::V2
|
|
366
394
|
def list_invalid_properties
|
367
395
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
368
396
|
invalid_properties = Array.new
|
369
|
-
if @recipient_name.nil?
|
370
|
-
invalid_properties.push('invalid value for "recipient_name", recipient_name cannot be nil.')
|
371
|
-
end
|
372
|
-
|
373
|
-
if @recipient_name.to_s.length < 1
|
374
|
-
invalid_properties.push('invalid value for "recipient_name", the character length must be great than or equal to 1.')
|
375
|
-
end
|
376
|
-
|
377
|
-
if @address.nil?
|
378
|
-
invalid_properties.push('invalid value for "address", address cannot be nil.')
|
379
|
-
end
|
380
|
-
|
381
|
-
if @address.to_s.length < 1
|
382
|
-
invalid_properties.push('invalid value for "address", the character length must be great than or equal to 1.')
|
383
|
-
end
|
384
|
-
|
385
|
-
if @city.nil?
|
386
|
-
invalid_properties.push('invalid value for "city", city cannot be nil.')
|
387
|
-
end
|
388
|
-
|
389
|
-
if @city.to_s.length < 1
|
390
|
-
invalid_properties.push('invalid value for "city", the character length must be great than or equal to 1.')
|
391
|
-
end
|
392
|
-
|
393
|
-
if @country_code.nil?
|
394
|
-
invalid_properties.push('invalid value for "country_code", country_code cannot be nil.')
|
395
|
-
end
|
396
|
-
|
397
|
-
if @country_code.to_s.length < 1
|
398
|
-
invalid_properties.push('invalid value for "country_code", the character length must be great than or equal to 1.')
|
399
|
-
end
|
400
|
-
|
401
397
|
invalid_properties
|
402
398
|
end
|
403
399
|
|
@@ -407,16 +403,8 @@ module AvalaraSdk::A1099::V2
|
|
407
403
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
408
404
|
origin_of_health_coverage_code_validator = EnumAttributeValidator.new('String', ["A", "B", "C", "D", "E", "F", "G"])
|
409
405
|
return false unless origin_of_health_coverage_code_validator.valid?(@origin_of_health_coverage_code)
|
410
|
-
return false if @recipient_name.nil?
|
411
|
-
return false if @recipient_name.to_s.length < 1
|
412
406
|
tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
|
413
407
|
return false unless tin_type_validator.valid?(@tin_type)
|
414
|
-
return false if @address.nil?
|
415
|
-
return false if @address.to_s.length < 1
|
416
|
-
return false if @city.nil?
|
417
|
-
return false if @city.to_s.length < 1
|
418
|
-
return false if @country_code.nil?
|
419
|
-
return false if @country_code.to_s.length < 1
|
420
408
|
true
|
421
409
|
end
|
422
410
|
|
@@ -440,20 +428,6 @@ module AvalaraSdk::A1099::V2
|
|
440
428
|
@covered_individuals = covered_individuals
|
441
429
|
end
|
442
430
|
|
443
|
-
# Custom attribute writer method with validation
|
444
|
-
# @param [Object] recipient_name Value to be assigned
|
445
|
-
def recipient_name=(recipient_name)
|
446
|
-
if recipient_name.nil?
|
447
|
-
fail ArgumentError, 'recipient_name cannot be nil'
|
448
|
-
end
|
449
|
-
|
450
|
-
if recipient_name.to_s.length < 1
|
451
|
-
fail ArgumentError, 'invalid value for "recipient_name", the character length must be great than or equal to 1.'
|
452
|
-
end
|
453
|
-
|
454
|
-
@recipient_name = recipient_name
|
455
|
-
end
|
456
|
-
|
457
431
|
# Custom attribute writer method checking allowed values (enum).
|
458
432
|
# @param [Object] tin_type Object to be assigned
|
459
433
|
def tin_type=(tin_type)
|
@@ -464,48 +438,6 @@ module AvalaraSdk::A1099::V2
|
|
464
438
|
@tin_type = tin_type
|
465
439
|
end
|
466
440
|
|
467
|
-
# Custom attribute writer method with validation
|
468
|
-
# @param [Object] address Value to be assigned
|
469
|
-
def address=(address)
|
470
|
-
if address.nil?
|
471
|
-
fail ArgumentError, 'address cannot be nil'
|
472
|
-
end
|
473
|
-
|
474
|
-
if address.to_s.length < 1
|
475
|
-
fail ArgumentError, 'invalid value for "address", the character length must be great than or equal to 1.'
|
476
|
-
end
|
477
|
-
|
478
|
-
@address = address
|
479
|
-
end
|
480
|
-
|
481
|
-
# Custom attribute writer method with validation
|
482
|
-
# @param [Object] city Value to be assigned
|
483
|
-
def city=(city)
|
484
|
-
if city.nil?
|
485
|
-
fail ArgumentError, 'city cannot be nil'
|
486
|
-
end
|
487
|
-
|
488
|
-
if city.to_s.length < 1
|
489
|
-
fail ArgumentError, 'invalid value for "city", the character length must be great than or equal to 1.'
|
490
|
-
end
|
491
|
-
|
492
|
-
@city = city
|
493
|
-
end
|
494
|
-
|
495
|
-
# Custom attribute writer method with validation
|
496
|
-
# @param [Object] country_code Value to be assigned
|
497
|
-
def country_code=(country_code)
|
498
|
-
if country_code.nil?
|
499
|
-
fail ArgumentError, 'country_code cannot be nil'
|
500
|
-
end
|
501
|
-
|
502
|
-
if country_code.to_s.length < 1
|
503
|
-
fail ArgumentError, 'invalid value for "country_code", the character length must be great than or equal to 1.'
|
504
|
-
end
|
505
|
-
|
506
|
-
@country_code = country_code
|
507
|
-
end
|
508
|
-
|
509
441
|
# Checks equality by comparing each attribute.
|
510
442
|
# @param [Object] Object to be compared
|
511
443
|
def ==(o)
|
@@ -529,15 +461,18 @@ module AvalaraSdk::A1099::V2
|
|
529
461
|
city == o.city &&
|
530
462
|
state == o.state &&
|
531
463
|
zip == o.zip &&
|
532
|
-
|
464
|
+
email == o.email &&
|
533
465
|
account_number == o.account_number &&
|
534
466
|
office_code == o.office_code &&
|
535
|
-
|
467
|
+
non_us_province == o.non_us_province &&
|
536
468
|
country_code == o.country_code &&
|
537
469
|
federal_e_file == o.federal_e_file &&
|
538
470
|
postal_mail == o.postal_mail &&
|
539
471
|
state_e_file == o.state_e_file &&
|
540
472
|
tin_match == o.tin_match &&
|
473
|
+
no_tin == o.no_tin &&
|
474
|
+
second_tin_notice == o.second_tin_notice &&
|
475
|
+
fatca_filing_requirement == o.fatca_filing_requirement &&
|
541
476
|
address_verification == o.address_verification &&
|
542
477
|
state_and_local_withholding == o.state_and_local_withholding
|
543
478
|
end
|
@@ -551,7 +486,7 @@ module AvalaraSdk::A1099::V2
|
|
551
486
|
# Calculates hash code according to all attributes.
|
552
487
|
# @return [Integer] Hash code
|
553
488
|
def hash
|
554
|
-
[employee_first_name, employee_middle_name, employee_last_name, employee_name_suffix, employee_date_of_birth, origin_of_health_coverage_code, covered_individuals, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip,
|
489
|
+
[employee_first_name, employee_middle_name, employee_last_name, employee_name_suffix, employee_date_of_birth, origin_of_health_coverage_code, covered_individuals, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, email, account_number, office_code, non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, no_tin, second_tin_notice, fatca_filing_requirement, address_verification, state_and_local_withholding].hash
|
555
490
|
end
|
556
491
|
|
557
492
|
# Builds the object from hash
|