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
|
@@ -45,7 +45,7 @@ module AvalaraSdk::A1099::V2
|
|
45
45
|
attr_accessor :zip
|
46
46
|
|
47
47
|
# Recipient email address
|
48
|
-
attr_accessor :
|
48
|
+
attr_accessor :email
|
49
49
|
|
50
50
|
# Account number
|
51
51
|
attr_accessor :account_number
|
@@ -54,7 +54,7 @@ module AvalaraSdk::A1099::V2
|
|
54
54
|
attr_accessor :office_code
|
55
55
|
|
56
56
|
# Foreign province
|
57
|
-
attr_accessor :
|
57
|
+
attr_accessor :non_us_province
|
58
58
|
|
59
59
|
# Country code, as defined at https://www.irs.gov/e-file-providers/country-codes
|
60
60
|
attr_accessor :country_code
|
@@ -71,6 +71,15 @@ module AvalaraSdk::A1099::V2
|
|
71
71
|
# Boolean indicating that TIN Matching should be scheduled for this form
|
72
72
|
attr_accessor :tin_match
|
73
73
|
|
74
|
+
# Indicates whether the recipient has no TIN
|
75
|
+
attr_accessor :no_tin
|
76
|
+
|
77
|
+
# Second TIN notice in three years
|
78
|
+
attr_accessor :second_tin_notice
|
79
|
+
|
80
|
+
# Fatca filing requirement
|
81
|
+
attr_accessor :fatca_filing_requirement
|
82
|
+
|
74
83
|
# Boolean indicating that address verification should be scheduled for this form
|
75
84
|
attr_accessor :address_verification
|
76
85
|
|
@@ -113,15 +122,18 @@ module AvalaraSdk::A1099::V2
|
|
113
122
|
:'city' => :'city',
|
114
123
|
:'state' => :'state',
|
115
124
|
:'zip' => :'zip',
|
116
|
-
:'
|
125
|
+
:'email' => :'email',
|
117
126
|
:'account_number' => :'accountNumber',
|
118
127
|
:'office_code' => :'officeCode',
|
119
|
-
:'
|
128
|
+
:'non_us_province' => :'nonUsProvince',
|
120
129
|
:'country_code' => :'countryCode',
|
121
130
|
:'federal_e_file' => :'federalEFile',
|
122
131
|
:'postal_mail' => :'postalMail',
|
123
132
|
:'state_e_file' => :'stateEFile',
|
124
133
|
:'tin_match' => :'tinMatch',
|
134
|
+
:'no_tin' => :'noTin',
|
135
|
+
:'second_tin_notice' => :'secondTinNotice',
|
136
|
+
:'fatca_filing_requirement' => :'fatcaFilingRequirement',
|
125
137
|
:'address_verification' => :'addressVerification',
|
126
138
|
:'state_and_local_withholding' => :'stateAndLocalWithholding'
|
127
139
|
}
|
@@ -146,15 +158,18 @@ module AvalaraSdk::A1099::V2
|
|
146
158
|
:'city' => :'String',
|
147
159
|
:'state' => :'String',
|
148
160
|
:'zip' => :'String',
|
149
|
-
:'
|
161
|
+
:'email' => :'String',
|
150
162
|
:'account_number' => :'String',
|
151
163
|
:'office_code' => :'String',
|
152
|
-
:'
|
164
|
+
:'non_us_province' => :'String',
|
153
165
|
:'country_code' => :'String',
|
154
166
|
:'federal_e_file' => :'Boolean',
|
155
167
|
:'postal_mail' => :'Boolean',
|
156
168
|
:'state_e_file' => :'Boolean',
|
157
169
|
:'tin_match' => :'Boolean',
|
170
|
+
:'no_tin' => :'Boolean',
|
171
|
+
:'second_tin_notice' => :'Boolean',
|
172
|
+
:'fatca_filing_requirement' => :'Boolean',
|
158
173
|
:'address_verification' => :'Boolean',
|
159
174
|
:'state_and_local_withholding' => :'StateAndLocalWithholdingRequest'
|
160
175
|
}
|
@@ -165,12 +180,21 @@ module AvalaraSdk::A1099::V2
|
|
165
180
|
Set.new([
|
166
181
|
:'issuer_id',
|
167
182
|
:'reference_id',
|
183
|
+
:'recipient_tin',
|
184
|
+
:'recipient_name',
|
168
185
|
:'recipient_second_name',
|
186
|
+
:'address',
|
169
187
|
:'address2',
|
170
|
-
:'
|
188
|
+
:'city',
|
189
|
+
:'state',
|
190
|
+
:'zip',
|
191
|
+
:'email',
|
171
192
|
:'account_number',
|
172
193
|
:'office_code',
|
173
|
-
:'
|
194
|
+
:'non_us_province',
|
195
|
+
:'country_code',
|
196
|
+
:'second_tin_notice',
|
197
|
+
:'state_and_local_withholding'
|
174
198
|
])
|
175
199
|
end
|
176
200
|
|
@@ -203,8 +227,6 @@ module AvalaraSdk::A1099::V2
|
|
203
227
|
|
204
228
|
if attributes.key?(:'recipient_name')
|
205
229
|
self.recipient_name = attributes[:'recipient_name']
|
206
|
-
else
|
207
|
-
self.recipient_name = nil
|
208
230
|
end
|
209
231
|
|
210
232
|
if attributes.key?(:'tin_type')
|
@@ -217,8 +239,6 @@ module AvalaraSdk::A1099::V2
|
|
217
239
|
|
218
240
|
if attributes.key?(:'address')
|
219
241
|
self.address = attributes[:'address']
|
220
|
-
else
|
221
|
-
self.address = nil
|
222
242
|
end
|
223
243
|
|
224
244
|
if attributes.key?(:'address2')
|
@@ -227,8 +247,6 @@ module AvalaraSdk::A1099::V2
|
|
227
247
|
|
228
248
|
if attributes.key?(:'city')
|
229
249
|
self.city = attributes[:'city']
|
230
|
-
else
|
231
|
-
self.city = nil
|
232
250
|
end
|
233
251
|
|
234
252
|
if attributes.key?(:'state')
|
@@ -239,8 +257,8 @@ module AvalaraSdk::A1099::V2
|
|
239
257
|
self.zip = attributes[:'zip']
|
240
258
|
end
|
241
259
|
|
242
|
-
if attributes.key?(:'
|
243
|
-
self.
|
260
|
+
if attributes.key?(:'email')
|
261
|
+
self.email = attributes[:'email']
|
244
262
|
end
|
245
263
|
|
246
264
|
if attributes.key?(:'account_number')
|
@@ -251,14 +269,12 @@ module AvalaraSdk::A1099::V2
|
|
251
269
|
self.office_code = attributes[:'office_code']
|
252
270
|
end
|
253
271
|
|
254
|
-
if attributes.key?(:'
|
255
|
-
self.
|
272
|
+
if attributes.key?(:'non_us_province')
|
273
|
+
self.non_us_province = attributes[:'non_us_province']
|
256
274
|
end
|
257
275
|
|
258
276
|
if attributes.key?(:'country_code')
|
259
277
|
self.country_code = attributes[:'country_code']
|
260
|
-
else
|
261
|
-
self.country_code = nil
|
262
278
|
end
|
263
279
|
|
264
280
|
if attributes.key?(:'federal_e_file')
|
@@ -277,6 +293,18 @@ module AvalaraSdk::A1099::V2
|
|
277
293
|
self.tin_match = attributes[:'tin_match']
|
278
294
|
end
|
279
295
|
|
296
|
+
if attributes.key?(:'no_tin')
|
297
|
+
self.no_tin = attributes[:'no_tin']
|
298
|
+
end
|
299
|
+
|
300
|
+
if attributes.key?(:'second_tin_notice')
|
301
|
+
self.second_tin_notice = attributes[:'second_tin_notice']
|
302
|
+
end
|
303
|
+
|
304
|
+
if attributes.key?(:'fatca_filing_requirement')
|
305
|
+
self.fatca_filing_requirement = attributes[:'fatca_filing_requirement']
|
306
|
+
end
|
307
|
+
|
280
308
|
if attributes.key?(:'address_verification')
|
281
309
|
self.address_verification = attributes[:'address_verification']
|
282
310
|
end
|
@@ -291,38 +319,6 @@ module AvalaraSdk::A1099::V2
|
|
291
319
|
def list_invalid_properties
|
292
320
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
293
321
|
invalid_properties = Array.new
|
294
|
-
if @recipient_name.nil?
|
295
|
-
invalid_properties.push('invalid value for "recipient_name", recipient_name cannot be nil.')
|
296
|
-
end
|
297
|
-
|
298
|
-
if @recipient_name.to_s.length < 1
|
299
|
-
invalid_properties.push('invalid value for "recipient_name", the character length must be great than or equal to 1.')
|
300
|
-
end
|
301
|
-
|
302
|
-
if @address.nil?
|
303
|
-
invalid_properties.push('invalid value for "address", address cannot be nil.')
|
304
|
-
end
|
305
|
-
|
306
|
-
if @address.to_s.length < 1
|
307
|
-
invalid_properties.push('invalid value for "address", the character length must be great than or equal to 1.')
|
308
|
-
end
|
309
|
-
|
310
|
-
if @city.nil?
|
311
|
-
invalid_properties.push('invalid value for "city", city cannot be nil.')
|
312
|
-
end
|
313
|
-
|
314
|
-
if @city.to_s.length < 1
|
315
|
-
invalid_properties.push('invalid value for "city", the character length must be great than or equal to 1.')
|
316
|
-
end
|
317
|
-
|
318
|
-
if @country_code.nil?
|
319
|
-
invalid_properties.push('invalid value for "country_code", country_code cannot be nil.')
|
320
|
-
end
|
321
|
-
|
322
|
-
if @country_code.to_s.length < 1
|
323
|
-
invalid_properties.push('invalid value for "country_code", the character length must be great than or equal to 1.')
|
324
|
-
end
|
325
|
-
|
326
322
|
invalid_properties
|
327
323
|
end
|
328
324
|
|
@@ -330,33 +326,11 @@ module AvalaraSdk::A1099::V2
|
|
330
326
|
# @return true if the model is valid
|
331
327
|
def valid?
|
332
328
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
333
|
-
return false if @recipient_name.nil?
|
334
|
-
return false if @recipient_name.to_s.length < 1
|
335
329
|
tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
|
336
330
|
return false unless tin_type_validator.valid?(@tin_type)
|
337
|
-
return false if @address.nil?
|
338
|
-
return false if @address.to_s.length < 1
|
339
|
-
return false if @city.nil?
|
340
|
-
return false if @city.to_s.length < 1
|
341
|
-
return false if @country_code.nil?
|
342
|
-
return false if @country_code.to_s.length < 1
|
343
331
|
true
|
344
332
|
end
|
345
333
|
|
346
|
-
# Custom attribute writer method with validation
|
347
|
-
# @param [Object] recipient_name Value to be assigned
|
348
|
-
def recipient_name=(recipient_name)
|
349
|
-
if recipient_name.nil?
|
350
|
-
fail ArgumentError, 'recipient_name cannot be nil'
|
351
|
-
end
|
352
|
-
|
353
|
-
if recipient_name.to_s.length < 1
|
354
|
-
fail ArgumentError, 'invalid value for "recipient_name", the character length must be great than or equal to 1.'
|
355
|
-
end
|
356
|
-
|
357
|
-
@recipient_name = recipient_name
|
358
|
-
end
|
359
|
-
|
360
334
|
# Custom attribute writer method checking allowed values (enum).
|
361
335
|
# @param [Object] tin_type Object to be assigned
|
362
336
|
def tin_type=(tin_type)
|
@@ -367,48 +341,6 @@ module AvalaraSdk::A1099::V2
|
|
367
341
|
@tin_type = tin_type
|
368
342
|
end
|
369
343
|
|
370
|
-
# Custom attribute writer method with validation
|
371
|
-
# @param [Object] address Value to be assigned
|
372
|
-
def address=(address)
|
373
|
-
if address.nil?
|
374
|
-
fail ArgumentError, 'address cannot be nil'
|
375
|
-
end
|
376
|
-
|
377
|
-
if address.to_s.length < 1
|
378
|
-
fail ArgumentError, 'invalid value for "address", the character length must be great than or equal to 1.'
|
379
|
-
end
|
380
|
-
|
381
|
-
@address = address
|
382
|
-
end
|
383
|
-
|
384
|
-
# Custom attribute writer method with validation
|
385
|
-
# @param [Object] city Value to be assigned
|
386
|
-
def city=(city)
|
387
|
-
if city.nil?
|
388
|
-
fail ArgumentError, 'city cannot be nil'
|
389
|
-
end
|
390
|
-
|
391
|
-
if city.to_s.length < 1
|
392
|
-
fail ArgumentError, 'invalid value for "city", the character length must be great than or equal to 1.'
|
393
|
-
end
|
394
|
-
|
395
|
-
@city = city
|
396
|
-
end
|
397
|
-
|
398
|
-
# Custom attribute writer method with validation
|
399
|
-
# @param [Object] country_code Value to be assigned
|
400
|
-
def country_code=(country_code)
|
401
|
-
if country_code.nil?
|
402
|
-
fail ArgumentError, 'country_code cannot be nil'
|
403
|
-
end
|
404
|
-
|
405
|
-
if country_code.to_s.length < 1
|
406
|
-
fail ArgumentError, 'invalid value for "country_code", the character length must be great than or equal to 1.'
|
407
|
-
end
|
408
|
-
|
409
|
-
@country_code = country_code
|
410
|
-
end
|
411
|
-
|
412
344
|
# Checks equality by comparing each attribute.
|
413
345
|
# @param [Object] Object to be compared
|
414
346
|
def ==(o)
|
@@ -425,15 +357,18 @@ module AvalaraSdk::A1099::V2
|
|
425
357
|
city == o.city &&
|
426
358
|
state == o.state &&
|
427
359
|
zip == o.zip &&
|
428
|
-
|
360
|
+
email == o.email &&
|
429
361
|
account_number == o.account_number &&
|
430
362
|
office_code == o.office_code &&
|
431
|
-
|
363
|
+
non_us_province == o.non_us_province &&
|
432
364
|
country_code == o.country_code &&
|
433
365
|
federal_e_file == o.federal_e_file &&
|
434
366
|
postal_mail == o.postal_mail &&
|
435
367
|
state_e_file == o.state_e_file &&
|
436
368
|
tin_match == o.tin_match &&
|
369
|
+
no_tin == o.no_tin &&
|
370
|
+
second_tin_notice == o.second_tin_notice &&
|
371
|
+
fatca_filing_requirement == o.fatca_filing_requirement &&
|
437
372
|
address_verification == o.address_verification &&
|
438
373
|
state_and_local_withholding == o.state_and_local_withholding
|
439
374
|
end
|
@@ -447,7 +382,7 @@ module AvalaraSdk::A1099::V2
|
|
447
382
|
# Calculates hash code according to all attributes.
|
448
383
|
# @return [Integer] Hash code
|
449
384
|
def hash
|
450
|
-
[issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip,
|
385
|
+
[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
|
451
386
|
end
|
452
387
|
|
453
388
|
# Builds the object from hash
|
@@ -54,7 +54,7 @@ module AvalaraSdk::A1099::V2
|
|
54
54
|
attr_accessor :zip
|
55
55
|
|
56
56
|
# Recipient email address
|
57
|
-
attr_accessor :
|
57
|
+
attr_accessor :email
|
58
58
|
|
59
59
|
# Account number
|
60
60
|
attr_accessor :account_number
|
@@ -63,7 +63,7 @@ module AvalaraSdk::A1099::V2
|
|
63
63
|
attr_accessor :office_code
|
64
64
|
|
65
65
|
# Foreign province
|
66
|
-
attr_accessor :
|
66
|
+
attr_accessor :non_us_province
|
67
67
|
|
68
68
|
# Country code, as defined at https://www.irs.gov/e-file-providers/country-codes
|
69
69
|
attr_accessor :country_code
|
@@ -80,6 +80,15 @@ module AvalaraSdk::A1099::V2
|
|
80
80
|
# Boolean indicating that TIN Matching should be scheduled for this form
|
81
81
|
attr_accessor :tin_match
|
82
82
|
|
83
|
+
# Indicates whether the recipient has no TIN
|
84
|
+
attr_accessor :no_tin
|
85
|
+
|
86
|
+
# Second TIN notice in three years
|
87
|
+
attr_accessor :second_tin_notice
|
88
|
+
|
89
|
+
# Fatca filing requirement
|
90
|
+
attr_accessor :fatca_filing_requirement
|
91
|
+
|
83
92
|
# Boolean indicating that address verification should be scheduled for this form
|
84
93
|
attr_accessor :address_verification
|
85
94
|
|
@@ -125,15 +134,18 @@ module AvalaraSdk::A1099::V2
|
|
125
134
|
:'city' => :'city',
|
126
135
|
:'state' => :'state',
|
127
136
|
:'zip' => :'zip',
|
128
|
-
:'
|
137
|
+
:'email' => :'email',
|
129
138
|
:'account_number' => :'accountNumber',
|
130
139
|
:'office_code' => :'officeCode',
|
131
|
-
:'
|
140
|
+
:'non_us_province' => :'nonUsProvince',
|
132
141
|
:'country_code' => :'countryCode',
|
133
142
|
:'federal_e_file' => :'federalEFile',
|
134
143
|
:'postal_mail' => :'postalMail',
|
135
144
|
:'state_e_file' => :'stateEFile',
|
136
145
|
:'tin_match' => :'tinMatch',
|
146
|
+
:'no_tin' => :'noTin',
|
147
|
+
:'second_tin_notice' => :'secondTinNotice',
|
148
|
+
:'fatca_filing_requirement' => :'fatcaFilingRequirement',
|
137
149
|
:'address_verification' => :'addressVerification',
|
138
150
|
:'state_and_local_withholding' => :'stateAndLocalWithholding'
|
139
151
|
}
|
@@ -161,15 +173,18 @@ module AvalaraSdk::A1099::V2
|
|
161
173
|
:'city' => :'String',
|
162
174
|
:'state' => :'String',
|
163
175
|
:'zip' => :'String',
|
164
|
-
:'
|
176
|
+
:'email' => :'String',
|
165
177
|
:'account_number' => :'String',
|
166
178
|
:'office_code' => :'String',
|
167
|
-
:'
|
179
|
+
:'non_us_province' => :'String',
|
168
180
|
:'country_code' => :'String',
|
169
181
|
:'federal_e_file' => :'Boolean',
|
170
182
|
:'postal_mail' => :'Boolean',
|
171
183
|
:'state_e_file' => :'Boolean',
|
172
184
|
:'tin_match' => :'Boolean',
|
185
|
+
:'no_tin' => :'Boolean',
|
186
|
+
:'second_tin_notice' => :'Boolean',
|
187
|
+
:'fatca_filing_requirement' => :'Boolean',
|
173
188
|
:'address_verification' => :'Boolean',
|
174
189
|
:'state_and_local_withholding' => :'StateAndLocalWithholdingRequest'
|
175
190
|
}
|
@@ -178,14 +193,25 @@ module AvalaraSdk::A1099::V2
|
|
178
193
|
# List of attributes with nullable: true
|
179
194
|
def self.openapi_nullable
|
180
195
|
Set.new([
|
196
|
+
:'issuer_reference_id',
|
197
|
+
:'issuer_tin',
|
181
198
|
:'issuer_id',
|
182
199
|
:'reference_id',
|
200
|
+
:'recipient_tin',
|
201
|
+
:'recipient_name',
|
183
202
|
:'recipient_second_name',
|
203
|
+
:'address',
|
184
204
|
:'address2',
|
185
|
-
:'
|
205
|
+
:'city',
|
206
|
+
:'state',
|
207
|
+
:'zip',
|
208
|
+
:'email',
|
186
209
|
:'account_number',
|
187
210
|
:'office_code',
|
188
|
-
:'
|
211
|
+
:'non_us_province',
|
212
|
+
:'country_code',
|
213
|
+
:'second_tin_notice',
|
214
|
+
:'state_and_local_withholding'
|
189
215
|
])
|
190
216
|
end
|
191
217
|
|
@@ -239,8 +265,6 @@ module AvalaraSdk::A1099::V2
|
|
239
265
|
|
240
266
|
if attributes.key?(:'recipient_name')
|
241
267
|
self.recipient_name = attributes[:'recipient_name']
|
242
|
-
else
|
243
|
-
self.recipient_name = nil
|
244
268
|
end
|
245
269
|
|
246
270
|
if attributes.key?(:'tin_type')
|
@@ -253,8 +277,6 @@ module AvalaraSdk::A1099::V2
|
|
253
277
|
|
254
278
|
if attributes.key?(:'address')
|
255
279
|
self.address = attributes[:'address']
|
256
|
-
else
|
257
|
-
self.address = nil
|
258
280
|
end
|
259
281
|
|
260
282
|
if attributes.key?(:'address2')
|
@@ -263,8 +285,6 @@ module AvalaraSdk::A1099::V2
|
|
263
285
|
|
264
286
|
if attributes.key?(:'city')
|
265
287
|
self.city = attributes[:'city']
|
266
|
-
else
|
267
|
-
self.city = nil
|
268
288
|
end
|
269
289
|
|
270
290
|
if attributes.key?(:'state')
|
@@ -275,8 +295,8 @@ module AvalaraSdk::A1099::V2
|
|
275
295
|
self.zip = attributes[:'zip']
|
276
296
|
end
|
277
297
|
|
278
|
-
if attributes.key?(:'
|
279
|
-
self.
|
298
|
+
if attributes.key?(:'email')
|
299
|
+
self.email = attributes[:'email']
|
280
300
|
end
|
281
301
|
|
282
302
|
if attributes.key?(:'account_number')
|
@@ -287,14 +307,12 @@ module AvalaraSdk::A1099::V2
|
|
287
307
|
self.office_code = attributes[:'office_code']
|
288
308
|
end
|
289
309
|
|
290
|
-
if attributes.key?(:'
|
291
|
-
self.
|
310
|
+
if attributes.key?(:'non_us_province')
|
311
|
+
self.non_us_province = attributes[:'non_us_province']
|
292
312
|
end
|
293
313
|
|
294
314
|
if attributes.key?(:'country_code')
|
295
315
|
self.country_code = attributes[:'country_code']
|
296
|
-
else
|
297
|
-
self.country_code = nil
|
298
316
|
end
|
299
317
|
|
300
318
|
if attributes.key?(:'federal_e_file')
|
@@ -313,6 +331,18 @@ module AvalaraSdk::A1099::V2
|
|
313
331
|
self.tin_match = attributes[:'tin_match']
|
314
332
|
end
|
315
333
|
|
334
|
+
if attributes.key?(:'no_tin')
|
335
|
+
self.no_tin = attributes[:'no_tin']
|
336
|
+
end
|
337
|
+
|
338
|
+
if attributes.key?(:'second_tin_notice')
|
339
|
+
self.second_tin_notice = attributes[:'second_tin_notice']
|
340
|
+
end
|
341
|
+
|
342
|
+
if attributes.key?(:'fatca_filing_requirement')
|
343
|
+
self.fatca_filing_requirement = attributes[:'fatca_filing_requirement']
|
344
|
+
end
|
345
|
+
|
316
346
|
if attributes.key?(:'address_verification')
|
317
347
|
self.address_verification = attributes[:'address_verification']
|
318
348
|
end
|
@@ -331,38 +361,6 @@ module AvalaraSdk::A1099::V2
|
|
331
361
|
invalid_properties.push('invalid value for "tax_year", tax_year cannot be nil.')
|
332
362
|
end
|
333
363
|
|
334
|
-
if @recipient_name.nil?
|
335
|
-
invalid_properties.push('invalid value for "recipient_name", recipient_name cannot be nil.')
|
336
|
-
end
|
337
|
-
|
338
|
-
if @recipient_name.to_s.length < 1
|
339
|
-
invalid_properties.push('invalid value for "recipient_name", the character length must be great than or equal to 1.')
|
340
|
-
end
|
341
|
-
|
342
|
-
if @address.nil?
|
343
|
-
invalid_properties.push('invalid value for "address", address cannot be nil.')
|
344
|
-
end
|
345
|
-
|
346
|
-
if @address.to_s.length < 1
|
347
|
-
invalid_properties.push('invalid value for "address", the character length must be great than or equal to 1.')
|
348
|
-
end
|
349
|
-
|
350
|
-
if @city.nil?
|
351
|
-
invalid_properties.push('invalid value for "city", city cannot be nil.')
|
352
|
-
end
|
353
|
-
|
354
|
-
if @city.to_s.length < 1
|
355
|
-
invalid_properties.push('invalid value for "city", the character length must be great than or equal to 1.')
|
356
|
-
end
|
357
|
-
|
358
|
-
if @country_code.nil?
|
359
|
-
invalid_properties.push('invalid value for "country_code", country_code cannot be nil.')
|
360
|
-
end
|
361
|
-
|
362
|
-
if @country_code.to_s.length < 1
|
363
|
-
invalid_properties.push('invalid value for "country_code", the character length must be great than or equal to 1.')
|
364
|
-
end
|
365
|
-
|
366
364
|
invalid_properties
|
367
365
|
end
|
368
366
|
|
@@ -371,33 +369,11 @@ module AvalaraSdk::A1099::V2
|
|
371
369
|
def valid?
|
372
370
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
373
371
|
return false if @tax_year.nil?
|
374
|
-
return false if @recipient_name.nil?
|
375
|
-
return false if @recipient_name.to_s.length < 1
|
376
372
|
tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
|
377
373
|
return false unless tin_type_validator.valid?(@tin_type)
|
378
|
-
return false if @address.nil?
|
379
|
-
return false if @address.to_s.length < 1
|
380
|
-
return false if @city.nil?
|
381
|
-
return false if @city.to_s.length < 1
|
382
|
-
return false if @country_code.nil?
|
383
|
-
return false if @country_code.to_s.length < 1
|
384
374
|
true
|
385
375
|
end
|
386
376
|
|
387
|
-
# Custom attribute writer method with validation
|
388
|
-
# @param [Object] recipient_name Value to be assigned
|
389
|
-
def recipient_name=(recipient_name)
|
390
|
-
if recipient_name.nil?
|
391
|
-
fail ArgumentError, 'recipient_name cannot be nil'
|
392
|
-
end
|
393
|
-
|
394
|
-
if recipient_name.to_s.length < 1
|
395
|
-
fail ArgumentError, 'invalid value for "recipient_name", the character length must be great than or equal to 1.'
|
396
|
-
end
|
397
|
-
|
398
|
-
@recipient_name = recipient_name
|
399
|
-
end
|
400
|
-
|
401
377
|
# Custom attribute writer method checking allowed values (enum).
|
402
378
|
# @param [Object] tin_type Object to be assigned
|
403
379
|
def tin_type=(tin_type)
|
@@ -408,48 +384,6 @@ module AvalaraSdk::A1099::V2
|
|
408
384
|
@tin_type = tin_type
|
409
385
|
end
|
410
386
|
|
411
|
-
# Custom attribute writer method with validation
|
412
|
-
# @param [Object] address Value to be assigned
|
413
|
-
def address=(address)
|
414
|
-
if address.nil?
|
415
|
-
fail ArgumentError, 'address cannot be nil'
|
416
|
-
end
|
417
|
-
|
418
|
-
if address.to_s.length < 1
|
419
|
-
fail ArgumentError, 'invalid value for "address", the character length must be great than or equal to 1.'
|
420
|
-
end
|
421
|
-
|
422
|
-
@address = address
|
423
|
-
end
|
424
|
-
|
425
|
-
# Custom attribute writer method with validation
|
426
|
-
# @param [Object] city Value to be assigned
|
427
|
-
def city=(city)
|
428
|
-
if city.nil?
|
429
|
-
fail ArgumentError, 'city cannot be nil'
|
430
|
-
end
|
431
|
-
|
432
|
-
if city.to_s.length < 1
|
433
|
-
fail ArgumentError, 'invalid value for "city", the character length must be great than or equal to 1.'
|
434
|
-
end
|
435
|
-
|
436
|
-
@city = city
|
437
|
-
end
|
438
|
-
|
439
|
-
# Custom attribute writer method with validation
|
440
|
-
# @param [Object] country_code Value to be assigned
|
441
|
-
def country_code=(country_code)
|
442
|
-
if country_code.nil?
|
443
|
-
fail ArgumentError, 'country_code cannot be nil'
|
444
|
-
end
|
445
|
-
|
446
|
-
if country_code.to_s.length < 1
|
447
|
-
fail ArgumentError, 'invalid value for "country_code", the character length must be great than or equal to 1.'
|
448
|
-
end
|
449
|
-
|
450
|
-
@country_code = country_code
|
451
|
-
end
|
452
|
-
|
453
387
|
# Checks equality by comparing each attribute.
|
454
388
|
# @param [Object] Object to be compared
|
455
389
|
def ==(o)
|
@@ -469,15 +403,18 @@ module AvalaraSdk::A1099::V2
|
|
469
403
|
city == o.city &&
|
470
404
|
state == o.state &&
|
471
405
|
zip == o.zip &&
|
472
|
-
|
406
|
+
email == o.email &&
|
473
407
|
account_number == o.account_number &&
|
474
408
|
office_code == o.office_code &&
|
475
|
-
|
409
|
+
non_us_province == o.non_us_province &&
|
476
410
|
country_code == o.country_code &&
|
477
411
|
federal_e_file == o.federal_e_file &&
|
478
412
|
postal_mail == o.postal_mail &&
|
479
413
|
state_e_file == o.state_e_file &&
|
480
414
|
tin_match == o.tin_match &&
|
415
|
+
no_tin == o.no_tin &&
|
416
|
+
second_tin_notice == o.second_tin_notice &&
|
417
|
+
fatca_filing_requirement == o.fatca_filing_requirement &&
|
481
418
|
address_verification == o.address_verification &&
|
482
419
|
state_and_local_withholding == o.state_and_local_withholding
|
483
420
|
end
|
@@ -491,7 +428,7 @@ module AvalaraSdk::A1099::V2
|
|
491
428
|
# Calculates hash code according to all attributes.
|
492
429
|
# @return [Integer] Hash code
|
493
430
|
def hash
|
494
|
-
[issuer_reference_id, issuer_tin, tax_year, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip,
|
431
|
+
[issuer_reference_id, issuer_tin, tax_year, 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
|
495
432
|
end
|
496
433
|
|
497
434
|
# Builds the object from hash
|