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
@@ -65,6 +65,9 @@ module AvalaraSdk::A1099::V2
|
|
65
65
|
# Address verification status
|
66
66
|
attr_accessor :address_verification_status
|
67
67
|
|
68
|
+
# EDelivery status
|
69
|
+
attr_accessor :e_delivery_status
|
70
|
+
|
68
71
|
# Reference ID
|
69
72
|
attr_accessor :reference_id
|
70
73
|
|
@@ -77,6 +80,12 @@ module AvalaraSdk::A1099::V2
|
|
77
80
|
# Recipient Tax ID Number
|
78
81
|
attr_accessor :tin
|
79
82
|
|
83
|
+
# Indicates whether the recipient has no TIN
|
84
|
+
attr_accessor :no_tin
|
85
|
+
|
86
|
+
# Second Tin Notice
|
87
|
+
attr_accessor :second_tin_notice
|
88
|
+
|
80
89
|
# Recipient name
|
81
90
|
attr_accessor :recipient_name
|
82
91
|
|
@@ -99,11 +108,20 @@ module AvalaraSdk::A1099::V2
|
|
99
108
|
attr_accessor :zip
|
100
109
|
|
101
110
|
# Foreign province
|
102
|
-
attr_accessor :
|
111
|
+
attr_accessor :non_us_province
|
103
112
|
|
104
113
|
# Country code, as defined at https://www.irs.gov/e-file-providers/country-codes
|
105
114
|
attr_accessor :country_code
|
106
115
|
|
116
|
+
# Account Number
|
117
|
+
attr_accessor :account_number
|
118
|
+
|
119
|
+
# Office Code
|
120
|
+
attr_accessor :office_code
|
121
|
+
|
122
|
+
# FATCA filing requirement
|
123
|
+
attr_accessor :fatca_filing_requirement
|
124
|
+
|
107
125
|
# Validation errors
|
108
126
|
attr_accessor :validation_errors
|
109
127
|
|
@@ -136,10 +154,13 @@ module AvalaraSdk::A1099::V2
|
|
136
154
|
:'tin_match_status' => :'tinMatchStatus',
|
137
155
|
:'address_verification' => :'addressVerification',
|
138
156
|
:'address_verification_status' => :'addressVerificationStatus',
|
157
|
+
:'e_delivery_status' => :'eDeliveryStatus',
|
139
158
|
:'reference_id' => :'referenceId',
|
140
159
|
:'email' => :'email',
|
141
160
|
:'tin_type' => :'tinType',
|
142
161
|
:'tin' => :'tin',
|
162
|
+
:'no_tin' => :'noTin',
|
163
|
+
:'second_tin_notice' => :'secondTinNotice',
|
143
164
|
:'recipient_name' => :'recipientName',
|
144
165
|
:'recipient_second_name' => :'recipientSecondName',
|
145
166
|
:'address' => :'address',
|
@@ -147,8 +168,11 @@ module AvalaraSdk::A1099::V2
|
|
147
168
|
:'city' => :'city',
|
148
169
|
:'state' => :'state',
|
149
170
|
:'zip' => :'zip',
|
150
|
-
:'
|
171
|
+
:'non_us_province' => :'nonUsProvince',
|
151
172
|
:'country_code' => :'countryCode',
|
173
|
+
:'account_number' => :'accountNumber',
|
174
|
+
:'office_code' => :'officeCode',
|
175
|
+
:'fatca_filing_requirement' => :'fatcaFilingRequirement',
|
152
176
|
:'validation_errors' => :'validationErrors',
|
153
177
|
:'created_at' => :'createdAt',
|
154
178
|
:'updated_at' => :'updatedAt',
|
@@ -173,19 +197,22 @@ module AvalaraSdk::A1099::V2
|
|
173
197
|
:'issuer_tin' => :'String',
|
174
198
|
:'tax_year' => :'Integer',
|
175
199
|
:'federal_efile' => :'Boolean',
|
176
|
-
:'federal_efile_status' => :'
|
200
|
+
:'federal_efile_status' => :'StatusDetail',
|
177
201
|
:'state_efile' => :'Boolean',
|
178
202
|
:'state_efile_status' => :'Array<StateEfileStatusDetailResponse>',
|
179
203
|
:'postal_mail' => :'Boolean',
|
180
|
-
:'postal_mail_status' => :'
|
204
|
+
:'postal_mail_status' => :'StatusDetail',
|
181
205
|
:'tin_match' => :'Boolean',
|
182
|
-
:'tin_match_status' => :'
|
206
|
+
:'tin_match_status' => :'StatusDetail',
|
183
207
|
:'address_verification' => :'Boolean',
|
184
|
-
:'address_verification_status' => :'
|
208
|
+
:'address_verification_status' => :'StatusDetail',
|
209
|
+
:'e_delivery_status' => :'StatusDetail',
|
185
210
|
:'reference_id' => :'String',
|
186
211
|
:'email' => :'String',
|
187
212
|
:'tin_type' => :'String',
|
188
213
|
:'tin' => :'String',
|
214
|
+
:'no_tin' => :'Boolean',
|
215
|
+
:'second_tin_notice' => :'Boolean',
|
189
216
|
:'recipient_name' => :'String',
|
190
217
|
:'recipient_second_name' => :'String',
|
191
218
|
:'address' => :'String',
|
@@ -193,8 +220,11 @@ module AvalaraSdk::A1099::V2
|
|
193
220
|
:'city' => :'String',
|
194
221
|
:'state' => :'String',
|
195
222
|
:'zip' => :'String',
|
196
|
-
:'
|
223
|
+
:'non_us_province' => :'String',
|
197
224
|
:'country_code' => :'String',
|
225
|
+
:'account_number' => :'String',
|
226
|
+
:'office_code' => :'String',
|
227
|
+
:'fatca_filing_requirement' => :'Boolean',
|
198
228
|
:'validation_errors' => :'Array<ValidationErrorResponse>',
|
199
229
|
:'created_at' => :'Time',
|
200
230
|
:'updated_at' => :'Time',
|
@@ -211,10 +241,12 @@ module AvalaraSdk::A1099::V2
|
|
211
241
|
:'postal_mail_status',
|
212
242
|
:'tin_match_status',
|
213
243
|
:'address_verification_status',
|
244
|
+
:'e_delivery_status',
|
214
245
|
:'reference_id',
|
215
246
|
:'email',
|
216
247
|
:'tin_type',
|
217
248
|
:'tin',
|
249
|
+
:'second_tin_notice',
|
218
250
|
:'recipient_name',
|
219
251
|
:'recipient_second_name',
|
220
252
|
:'address',
|
@@ -222,8 +254,11 @@ module AvalaraSdk::A1099::V2
|
|
222
254
|
:'city',
|
223
255
|
:'state',
|
224
256
|
:'zip',
|
225
|
-
:'
|
257
|
+
:'non_us_province',
|
226
258
|
:'country_code',
|
259
|
+
:'account_number',
|
260
|
+
:'office_code',
|
261
|
+
:'fatca_filing_requirement',
|
227
262
|
:'validation_errors',
|
228
263
|
:'state_and_local_withholding'
|
229
264
|
])
|
@@ -343,6 +378,10 @@ module AvalaraSdk::A1099::V2
|
|
343
378
|
self.address_verification_status = attributes[:'address_verification_status']
|
344
379
|
end
|
345
380
|
|
381
|
+
if attributes.key?(:'e_delivery_status')
|
382
|
+
self.e_delivery_status = attributes[:'e_delivery_status']
|
383
|
+
end
|
384
|
+
|
346
385
|
if attributes.key?(:'reference_id')
|
347
386
|
self.reference_id = attributes[:'reference_id']
|
348
387
|
end
|
@@ -359,6 +398,14 @@ module AvalaraSdk::A1099::V2
|
|
359
398
|
self.tin = attributes[:'tin']
|
360
399
|
end
|
361
400
|
|
401
|
+
if attributes.key?(:'no_tin')
|
402
|
+
self.no_tin = attributes[:'no_tin']
|
403
|
+
end
|
404
|
+
|
405
|
+
if attributes.key?(:'second_tin_notice')
|
406
|
+
self.second_tin_notice = attributes[:'second_tin_notice']
|
407
|
+
end
|
408
|
+
|
362
409
|
if attributes.key?(:'recipient_name')
|
363
410
|
self.recipient_name = attributes[:'recipient_name']
|
364
411
|
end
|
@@ -387,14 +434,26 @@ module AvalaraSdk::A1099::V2
|
|
387
434
|
self.zip = attributes[:'zip']
|
388
435
|
end
|
389
436
|
|
390
|
-
if attributes.key?(:'
|
391
|
-
self.
|
437
|
+
if attributes.key?(:'non_us_province')
|
438
|
+
self.non_us_province = attributes[:'non_us_province']
|
392
439
|
end
|
393
440
|
|
394
441
|
if attributes.key?(:'country_code')
|
395
442
|
self.country_code = attributes[:'country_code']
|
396
443
|
end
|
397
444
|
|
445
|
+
if attributes.key?(:'account_number')
|
446
|
+
self.account_number = attributes[:'account_number']
|
447
|
+
end
|
448
|
+
|
449
|
+
if attributes.key?(:'office_code')
|
450
|
+
self.office_code = attributes[:'office_code']
|
451
|
+
end
|
452
|
+
|
453
|
+
if attributes.key?(:'fatca_filing_requirement')
|
454
|
+
self.fatca_filing_requirement = attributes[:'fatca_filing_requirement']
|
455
|
+
end
|
456
|
+
|
398
457
|
if attributes.key?(:'validation_errors')
|
399
458
|
if (value = attributes[:'validation_errors']).is_a?(Array)
|
400
459
|
self.validation_errors = value
|
@@ -552,10 +611,13 @@ module AvalaraSdk::A1099::V2
|
|
552
611
|
tin_match_status == o.tin_match_status &&
|
553
612
|
address_verification == o.address_verification &&
|
554
613
|
address_verification_status == o.address_verification_status &&
|
614
|
+
e_delivery_status == o.e_delivery_status &&
|
555
615
|
reference_id == o.reference_id &&
|
556
616
|
email == o.email &&
|
557
617
|
tin_type == o.tin_type &&
|
558
618
|
tin == o.tin &&
|
619
|
+
no_tin == o.no_tin &&
|
620
|
+
second_tin_notice == o.second_tin_notice &&
|
559
621
|
recipient_name == o.recipient_name &&
|
560
622
|
recipient_second_name == o.recipient_second_name &&
|
561
623
|
address == o.address &&
|
@@ -563,8 +625,11 @@ module AvalaraSdk::A1099::V2
|
|
563
625
|
city == o.city &&
|
564
626
|
state == o.state &&
|
565
627
|
zip == o.zip &&
|
566
|
-
|
628
|
+
non_us_province == o.non_us_province &&
|
567
629
|
country_code == o.country_code &&
|
630
|
+
account_number == o.account_number &&
|
631
|
+
office_code == o.office_code &&
|
632
|
+
fatca_filing_requirement == o.fatca_filing_requirement &&
|
568
633
|
validation_errors == o.validation_errors &&
|
569
634
|
created_at == o.created_at &&
|
570
635
|
updated_at == o.updated_at &&
|
@@ -580,7 +645,7 @@ module AvalaraSdk::A1099::V2
|
|
580
645
|
# Calculates hash code according to all attributes.
|
581
646
|
# @return [Integer] Hash code
|
582
647
|
def hash
|
583
|
-
[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,
|
648
|
+
[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, tin, no_tin, second_tin_notice, recipient_name, recipient_second_name, address, address2, city, state, zip, non_us_province, country_code, account_number, office_code, fatca_filing_requirement, validation_errors, created_at, updated_at, state_and_local_withholding].hash
|
584
649
|
end
|
585
650
|
|
586
651
|
# Builds the object from hash
|
@@ -68,7 +68,7 @@ module AvalaraSdk::A1099::V2
|
|
68
68
|
attr_accessor :zip
|
69
69
|
|
70
70
|
# Recipient email address
|
71
|
-
attr_accessor :
|
71
|
+
attr_accessor :email
|
72
72
|
|
73
73
|
# Account number
|
74
74
|
attr_accessor :account_number
|
@@ -77,7 +77,7 @@ module AvalaraSdk::A1099::V2
|
|
77
77
|
attr_accessor :office_code
|
78
78
|
|
79
79
|
# Foreign province
|
80
|
-
attr_accessor :
|
80
|
+
attr_accessor :non_us_province
|
81
81
|
|
82
82
|
# Country code, as defined at https://www.irs.gov/e-file-providers/country-codes
|
83
83
|
attr_accessor :country_code
|
@@ -94,6 +94,15 @@ module AvalaraSdk::A1099::V2
|
|
94
94
|
# Boolean indicating that TIN Matching should be scheduled for this form
|
95
95
|
attr_accessor :tin_match
|
96
96
|
|
97
|
+
# Indicates whether the recipient has no TIN
|
98
|
+
attr_accessor :no_tin
|
99
|
+
|
100
|
+
# Second TIN notice in three years
|
101
|
+
attr_accessor :second_tin_notice
|
102
|
+
|
103
|
+
# Fatca filing requirement
|
104
|
+
attr_accessor :fatca_filing_requirement
|
105
|
+
|
97
106
|
# Boolean indicating that address verification should be scheduled for this form
|
98
107
|
attr_accessor :address_verification
|
99
108
|
|
@@ -144,15 +153,18 @@ module AvalaraSdk::A1099::V2
|
|
144
153
|
:'city' => :'city',
|
145
154
|
:'state' => :'state',
|
146
155
|
:'zip' => :'zip',
|
147
|
-
:'
|
156
|
+
:'email' => :'email',
|
148
157
|
:'account_number' => :'accountNumber',
|
149
158
|
:'office_code' => :'officeCode',
|
150
|
-
:'
|
159
|
+
:'non_us_province' => :'nonUsProvince',
|
151
160
|
:'country_code' => :'countryCode',
|
152
161
|
:'federal_e_file' => :'federalEFile',
|
153
162
|
:'postal_mail' => :'postalMail',
|
154
163
|
:'state_e_file' => :'stateEFile',
|
155
164
|
:'tin_match' => :'tinMatch',
|
165
|
+
:'no_tin' => :'noTin',
|
166
|
+
:'second_tin_notice' => :'secondTinNotice',
|
167
|
+
:'fatca_filing_requirement' => :'fatcaFilingRequirement',
|
156
168
|
:'address_verification' => :'addressVerification',
|
157
169
|
:'state_and_local_withholding' => :'stateAndLocalWithholding'
|
158
170
|
}
|
@@ -185,15 +197,18 @@ module AvalaraSdk::A1099::V2
|
|
185
197
|
:'city' => :'String',
|
186
198
|
:'state' => :'String',
|
187
199
|
:'zip' => :'String',
|
188
|
-
:'
|
200
|
+
:'email' => :'String',
|
189
201
|
:'account_number' => :'String',
|
190
202
|
:'office_code' => :'String',
|
191
|
-
:'
|
203
|
+
:'non_us_province' => :'String',
|
192
204
|
:'country_code' => :'String',
|
193
205
|
:'federal_e_file' => :'Boolean',
|
194
206
|
:'postal_mail' => :'Boolean',
|
195
207
|
:'state_e_file' => :'Boolean',
|
196
208
|
:'tin_match' => :'Boolean',
|
209
|
+
:'no_tin' => :'Boolean',
|
210
|
+
:'second_tin_notice' => :'Boolean',
|
211
|
+
:'fatca_filing_requirement' => :'Boolean',
|
197
212
|
:'address_verification' => :'Boolean',
|
198
213
|
:'state_and_local_withholding' => :'StateAndLocalWithholdingRequest'
|
199
214
|
}
|
@@ -207,12 +222,21 @@ module AvalaraSdk::A1099::V2
|
|
207
222
|
:'employee_date_of_birth',
|
208
223
|
:'issuer_id',
|
209
224
|
:'reference_id',
|
225
|
+
:'recipient_tin',
|
226
|
+
:'recipient_name',
|
210
227
|
:'recipient_second_name',
|
228
|
+
:'address',
|
211
229
|
:'address2',
|
212
|
-
:'
|
230
|
+
:'city',
|
231
|
+
:'state',
|
232
|
+
:'zip',
|
233
|
+
:'email',
|
213
234
|
:'account_number',
|
214
235
|
:'office_code',
|
215
|
-
:'
|
236
|
+
:'non_us_province',
|
237
|
+
:'country_code',
|
238
|
+
:'second_tin_notice',
|
239
|
+
:'state_and_local_withholding'
|
216
240
|
])
|
217
241
|
end
|
218
242
|
|
@@ -286,8 +310,6 @@ module AvalaraSdk::A1099::V2
|
|
286
310
|
|
287
311
|
if attributes.key?(:'recipient_name')
|
288
312
|
self.recipient_name = attributes[:'recipient_name']
|
289
|
-
else
|
290
|
-
self.recipient_name = nil
|
291
313
|
end
|
292
314
|
|
293
315
|
if attributes.key?(:'tin_type')
|
@@ -300,8 +322,6 @@ module AvalaraSdk::A1099::V2
|
|
300
322
|
|
301
323
|
if attributes.key?(:'address')
|
302
324
|
self.address = attributes[:'address']
|
303
|
-
else
|
304
|
-
self.address = nil
|
305
325
|
end
|
306
326
|
|
307
327
|
if attributes.key?(:'address2')
|
@@ -310,8 +330,6 @@ module AvalaraSdk::A1099::V2
|
|
310
330
|
|
311
331
|
if attributes.key?(:'city')
|
312
332
|
self.city = attributes[:'city']
|
313
|
-
else
|
314
|
-
self.city = nil
|
315
333
|
end
|
316
334
|
|
317
335
|
if attributes.key?(:'state')
|
@@ -322,8 +340,8 @@ module AvalaraSdk::A1099::V2
|
|
322
340
|
self.zip = attributes[:'zip']
|
323
341
|
end
|
324
342
|
|
325
|
-
if attributes.key?(:'
|
326
|
-
self.
|
343
|
+
if attributes.key?(:'email')
|
344
|
+
self.email = attributes[:'email']
|
327
345
|
end
|
328
346
|
|
329
347
|
if attributes.key?(:'account_number')
|
@@ -334,14 +352,12 @@ module AvalaraSdk::A1099::V2
|
|
334
352
|
self.office_code = attributes[:'office_code']
|
335
353
|
end
|
336
354
|
|
337
|
-
if attributes.key?(:'
|
338
|
-
self.
|
355
|
+
if attributes.key?(:'non_us_province')
|
356
|
+
self.non_us_province = attributes[:'non_us_province']
|
339
357
|
end
|
340
358
|
|
341
359
|
if attributes.key?(:'country_code')
|
342
360
|
self.country_code = attributes[:'country_code']
|
343
|
-
else
|
344
|
-
self.country_code = nil
|
345
361
|
end
|
346
362
|
|
347
363
|
if attributes.key?(:'federal_e_file')
|
@@ -360,6 +376,18 @@ module AvalaraSdk::A1099::V2
|
|
360
376
|
self.tin_match = attributes[:'tin_match']
|
361
377
|
end
|
362
378
|
|
379
|
+
if attributes.key?(:'no_tin')
|
380
|
+
self.no_tin = attributes[:'no_tin']
|
381
|
+
end
|
382
|
+
|
383
|
+
if attributes.key?(:'second_tin_notice')
|
384
|
+
self.second_tin_notice = attributes[:'second_tin_notice']
|
385
|
+
end
|
386
|
+
|
387
|
+
if attributes.key?(:'fatca_filing_requirement')
|
388
|
+
self.fatca_filing_requirement = attributes[:'fatca_filing_requirement']
|
389
|
+
end
|
390
|
+
|
363
391
|
if attributes.key?(:'address_verification')
|
364
392
|
self.address_verification = attributes[:'address_verification']
|
365
393
|
end
|
@@ -374,38 +402,6 @@ module AvalaraSdk::A1099::V2
|
|
374
402
|
def list_invalid_properties
|
375
403
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
376
404
|
invalid_properties = Array.new
|
377
|
-
if @recipient_name.nil?
|
378
|
-
invalid_properties.push('invalid value for "recipient_name", recipient_name cannot be nil.')
|
379
|
-
end
|
380
|
-
|
381
|
-
if @recipient_name.to_s.length < 1
|
382
|
-
invalid_properties.push('invalid value for "recipient_name", the character length must be great than or equal to 1.')
|
383
|
-
end
|
384
|
-
|
385
|
-
if @address.nil?
|
386
|
-
invalid_properties.push('invalid value for "address", address cannot be nil.')
|
387
|
-
end
|
388
|
-
|
389
|
-
if @address.to_s.length < 1
|
390
|
-
invalid_properties.push('invalid value for "address", the character length must be great than or equal to 1.')
|
391
|
-
end
|
392
|
-
|
393
|
-
if @city.nil?
|
394
|
-
invalid_properties.push('invalid value for "city", city cannot be nil.')
|
395
|
-
end
|
396
|
-
|
397
|
-
if @city.to_s.length < 1
|
398
|
-
invalid_properties.push('invalid value for "city", the character length must be great than or equal to 1.')
|
399
|
-
end
|
400
|
-
|
401
|
-
if @country_code.nil?
|
402
|
-
invalid_properties.push('invalid value for "country_code", country_code cannot be nil.')
|
403
|
-
end
|
404
|
-
|
405
|
-
if @country_code.to_s.length < 1
|
406
|
-
invalid_properties.push('invalid value for "country_code", the character length must be great than or equal to 1.')
|
407
|
-
end
|
408
|
-
|
409
405
|
invalid_properties
|
410
406
|
end
|
411
407
|
|
@@ -415,18 +411,10 @@ module AvalaraSdk::A1099::V2
|
|
415
411
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
416
412
|
origin_of_health_coverage_code_validator = EnumAttributeValidator.new('String', ["A", "B", "C", "D", "E", "F", "G"])
|
417
413
|
return false unless origin_of_health_coverage_code_validator.valid?(@origin_of_health_coverage_code)
|
418
|
-
type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"])
|
414
|
+
type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
|
419
415
|
return false unless type_validator.valid?(@type)
|
420
|
-
return false if @recipient_name.nil?
|
421
|
-
return false if @recipient_name.to_s.length < 1
|
422
416
|
tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
|
423
417
|
return false unless tin_type_validator.valid?(@tin_type)
|
424
|
-
return false if @address.nil?
|
425
|
-
return false if @address.to_s.length < 1
|
426
|
-
return false if @city.nil?
|
427
|
-
return false if @city.to_s.length < 1
|
428
|
-
return false if @country_code.nil?
|
429
|
-
return false if @country_code.to_s.length < 1
|
430
418
|
true
|
431
419
|
end
|
432
420
|
|
@@ -453,27 +441,13 @@ module AvalaraSdk::A1099::V2
|
|
453
441
|
# Custom attribute writer method checking allowed values (enum).
|
454
442
|
# @param [Object] type Object to be assigned
|
455
443
|
def type=(type)
|
456
|
-
validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"])
|
444
|
+
validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
|
457
445
|
unless validator.valid?(type)
|
458
446
|
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
459
447
|
end
|
460
448
|
@type = type
|
461
449
|
end
|
462
450
|
|
463
|
-
# Custom attribute writer method with validation
|
464
|
-
# @param [Object] recipient_name Value to be assigned
|
465
|
-
def recipient_name=(recipient_name)
|
466
|
-
if recipient_name.nil?
|
467
|
-
fail ArgumentError, 'recipient_name cannot be nil'
|
468
|
-
end
|
469
|
-
|
470
|
-
if recipient_name.to_s.length < 1
|
471
|
-
fail ArgumentError, 'invalid value for "recipient_name", the character length must be great than or equal to 1.'
|
472
|
-
end
|
473
|
-
|
474
|
-
@recipient_name = recipient_name
|
475
|
-
end
|
476
|
-
|
477
451
|
# Custom attribute writer method checking allowed values (enum).
|
478
452
|
# @param [Object] tin_type Object to be assigned
|
479
453
|
def tin_type=(tin_type)
|
@@ -484,48 +458,6 @@ module AvalaraSdk::A1099::V2
|
|
484
458
|
@tin_type = tin_type
|
485
459
|
end
|
486
460
|
|
487
|
-
# Custom attribute writer method with validation
|
488
|
-
# @param [Object] address Value to be assigned
|
489
|
-
def address=(address)
|
490
|
-
if address.nil?
|
491
|
-
fail ArgumentError, 'address cannot be nil'
|
492
|
-
end
|
493
|
-
|
494
|
-
if address.to_s.length < 1
|
495
|
-
fail ArgumentError, 'invalid value for "address", the character length must be great than or equal to 1.'
|
496
|
-
end
|
497
|
-
|
498
|
-
@address = address
|
499
|
-
end
|
500
|
-
|
501
|
-
# Custom attribute writer method with validation
|
502
|
-
# @param [Object] city Value to be assigned
|
503
|
-
def city=(city)
|
504
|
-
if city.nil?
|
505
|
-
fail ArgumentError, 'city cannot be nil'
|
506
|
-
end
|
507
|
-
|
508
|
-
if city.to_s.length < 1
|
509
|
-
fail ArgumentError, 'invalid value for "city", the character length must be great than or equal to 1.'
|
510
|
-
end
|
511
|
-
|
512
|
-
@city = city
|
513
|
-
end
|
514
|
-
|
515
|
-
# Custom attribute writer method with validation
|
516
|
-
# @param [Object] country_code Value to be assigned
|
517
|
-
def country_code=(country_code)
|
518
|
-
if country_code.nil?
|
519
|
-
fail ArgumentError, 'country_code cannot be nil'
|
520
|
-
end
|
521
|
-
|
522
|
-
if country_code.to_s.length < 1
|
523
|
-
fail ArgumentError, 'invalid value for "country_code", the character length must be great than or equal to 1.'
|
524
|
-
end
|
525
|
-
|
526
|
-
@country_code = country_code
|
527
|
-
end
|
528
|
-
|
529
461
|
# Checks equality by comparing each attribute.
|
530
462
|
# @param [Object] Object to be compared
|
531
463
|
def ==(o)
|
@@ -550,15 +482,18 @@ module AvalaraSdk::A1099::V2
|
|
550
482
|
city == o.city &&
|
551
483
|
state == o.state &&
|
552
484
|
zip == o.zip &&
|
553
|
-
|
485
|
+
email == o.email &&
|
554
486
|
account_number == o.account_number &&
|
555
487
|
office_code == o.office_code &&
|
556
|
-
|
488
|
+
non_us_province == o.non_us_province &&
|
557
489
|
country_code == o.country_code &&
|
558
490
|
federal_e_file == o.federal_e_file &&
|
559
491
|
postal_mail == o.postal_mail &&
|
560
492
|
state_e_file == o.state_e_file &&
|
561
493
|
tin_match == o.tin_match &&
|
494
|
+
no_tin == o.no_tin &&
|
495
|
+
second_tin_notice == o.second_tin_notice &&
|
496
|
+
fatca_filing_requirement == o.fatca_filing_requirement &&
|
562
497
|
address_verification == o.address_verification &&
|
563
498
|
state_and_local_withholding == o.state_and_local_withholding
|
564
499
|
end
|
@@ -572,7 +507,7 @@ module AvalaraSdk::A1099::V2
|
|
572
507
|
# Calculates hash code according to all attributes.
|
573
508
|
# @return [Integer] Hash code
|
574
509
|
def hash
|
575
|
-
[employee_first_name, employee_middle_name, employee_last_name, employee_name_suffix, employee_date_of_birth, origin_of_health_coverage_code, covered_individuals, type, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip,
|
510
|
+
[employee_first_name, employee_middle_name, employee_last_name, employee_name_suffix, employee_date_of_birth, origin_of_health_coverage_code, covered_individuals, type, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, email, account_number, office_code, non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, no_tin, second_tin_notice, fatca_filing_requirement, address_verification, state_and_local_withholding].hash
|
576
511
|
end
|
577
512
|
|
578
513
|
# Builds the object from hash
|