avalara_sdk 25.6.0 → 25.7.0
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/README.md +17 -3
- data/docs/A1099/V2/BulkUpsert1099FormsRequest.md +3 -1
- data/docs/A1099/V2/CompaniesW9Api.md +45 -31
- data/docs/A1099/V2/CoveredIndividualReference.md +58 -0
- data/docs/A1099/V2/CoveredIndividualRequest.md +54 -0
- data/docs/A1099/V2/Form1095B.md +86 -0
- data/docs/A1099/V2/Form1095BList.md +20 -0
- data/docs/A1099/V2/Form1095BListItem.md +74 -0
- data/docs/A1099/V2/Form1095BRequest.md +76 -0
- data/docs/A1099/V2/Form1099Base.md +8 -8
- data/docs/A1099/V2/Form1099DivListItem.md +11 -11
- data/docs/A1099/V2/Form1099DivRequest.md +11 -17
- data/docs/A1099/V2/Form1099DivResponse.md +88 -0
- data/docs/A1099/V2/Form1099K.md +8 -8
- data/docs/A1099/V2/Form1099KListItem.md +11 -11
- data/docs/A1099/V2/Form1099KRequest.md +11 -17
- data/docs/A1099/V2/Form1099List.md +1 -1
- data/docs/A1099/V2/Form1099ListDataInner.md +32 -0
- data/docs/A1099/V2/Form1099Misc.md +8 -8
- data/docs/A1099/V2/Form1099MiscListItem.md +11 -11
- data/docs/A1099/V2/Form1099MiscRequest.md +11 -17
- data/docs/A1099/V2/Form1099MiscResponse.md +120 -0
- data/docs/A1099/V2/Form1099Nec.md +8 -8
- data/docs/A1099/V2/Form1099NecListItem.md +11 -11
- data/docs/A1099/V2/Form1099NecRequest.md +11 -17
- data/docs/A1099/V2/Form1099NecResponse.md +96 -0
- data/docs/A1099/V2/Form1099R.md +8 -8
- data/docs/A1099/V2/Form1099RListItem.md +11 -11
- data/docs/A1099/V2/Form1099RRequest.md +11 -17
- data/docs/A1099/V2/FormRequestBase.md +9 -13
- data/docs/A1099/V2/FormRequestCsvBase.md +66 -0
- data/docs/A1099/V2/FormResponseBase.md +43 -9
- data/docs/A1099/V2/FormSingleRequestBase.md +11 -15
- data/docs/A1099/V2/Forms1099Api.md +75 -57
- data/docs/A1099/V2/FormsW9Api.md +63 -123
- data/docs/A1099/V2/Get1099Form200Response.md +55 -0
- data/docs/A1099/V2/IncludedBase.md +20 -0
- data/docs/A1099/V2/Issuers1099Api.md +45 -31
- data/docs/A1099/V2/Jobs1099Api.md +10 -6
- data/docs/A1099/V2/StateAndLocalWithholdingResponse.md +32 -0
- data/docs/A1099/V2/StateEfileStatusDetail.md +1 -1
- data/docs/A1099/V2/StateEfileStatusDetailApp.md +22 -0
- data/docs/A1099/V2/StatusDetail.md +20 -0
- data/docs/A1099/V2/Update1099Form200Response.md +53 -0
- data/docs/A1099/V2/ValidationErrorApp.md +20 -0
- data/docs/EInvoicing/V1/DataInputFieldsApi.md +4 -4
- data/docs/EInvoicing/V1/DocumentsApi.md +2 -2
- data/docs/EInvoicing/V1/MandatesApi.md +4 -4
- data/docs/EInvoicing/V1/SubscriptionsApi.md +4 -4
- data/docs/EInvoicing/V1/TradingPartnersApi.md +4 -4
- data/lib/avalara_sdk/api/A1099/V2/companies_w9_api.rb +103 -43
- data/lib/avalara_sdk/api/A1099/V2/forms1099_api.rb +171 -87
- data/lib/avalara_sdk/api/A1099/V2/forms_w9_api.rb +135 -176
- data/lib/avalara_sdk/api/A1099/V2/issuers1099_api.rb +103 -43
- data/lib/avalara_sdk/api/A1099/V2/jobs1099_api.rb +19 -7
- data/lib/avalara_sdk/api/EInvoicing/V1/data_input_fields_api.rb +6 -6
- data/lib/avalara_sdk/api/EInvoicing/V1/documents_api.rb +4 -4
- data/lib/avalara_sdk/api/EInvoicing/V1/interop_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/mandates_api.rb +6 -6
- data/lib/avalara_sdk/api/EInvoicing/V1/subscriptions_api.rb +6 -6
- data/lib/avalara_sdk/api/EInvoicing/V1/trading_partners_api.rb +7 -7
- data/lib/avalara_sdk/models/A1099/V2/bulk_upsert1099_forms_request.rb +1 -0
- data/lib/avalara_sdk/models/A1099/V2/covered_individual_reference.rb +403 -0
- data/lib/avalara_sdk/models/A1099/V2/covered_individual_request.rb +378 -0
- data/lib/avalara_sdk/models/A1099/V2/form1095_b.rb +572 -0
- data/lib/avalara_sdk/models/A1099/V2/form1095_b_list.rb +238 -0
- data/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item.rb +538 -0
- data/lib/avalara_sdk/models/A1099/V2/form1095_b_request.rb +559 -0
- data/lib/avalara_sdk/models/A1099/V2/form1099_base.rb +29 -29
- data/lib/avalara_sdk/models/A1099/V2/form1099_div_list_item.rb +78 -36
- data/lib/avalara_sdk/models/A1099/V2/form1099_div_request.rb +80 -53
- data/lib/avalara_sdk/models/A1099/V2/form1099_div_response.rb +600 -0
- data/lib/avalara_sdk/models/A1099/V2/form1099_k.rb +29 -29
- data/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item.rb +56 -37
- data/lib/avalara_sdk/models/A1099/V2/form1099_k_request.rb +80 -54
- data/lib/avalara_sdk/models/A1099/V2/form1099_list.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/form1099_list_data_inner.rb +20 -68
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc.rb +29 -29
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item.rb +78 -36
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_request.rb +80 -53
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_response.rb +744 -0
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec.rb +29 -29
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item.rb +78 -36
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_request.rb +80 -53
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_response.rb +636 -0
- data/lib/avalara_sdk/models/A1099/V2/form1099_r.rb +29 -29
- data/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item.rb +56 -36
- data/lib/avalara_sdk/models/A1099/V2/form1099_r_request.rb +80 -53
- data/lib/avalara_sdk/models/A1099/V2/form_request_base.rb +68 -44
- data/lib/avalara_sdk/models/A1099/V2/form_request_csv_base.rb +475 -0
- data/lib/avalara_sdk/models/A1099/V2/form_response_base.rb +252 -31
- data/lib/avalara_sdk/models/A1099/V2/form_single_request_base.rb +80 -44
- data/lib/avalara_sdk/models/A1099/V2/get1099_form200_response.rb +104 -0
- data/lib/avalara_sdk/models/A1099/V2/included_base.rb +219 -0
- data/lib/avalara_sdk/models/A1099/V2/state_and_local_withholding_request.rb +1 -0
- data/lib/avalara_sdk/models/A1099/V2/state_and_local_withholding_response.rb +274 -0
- data/lib/avalara_sdk/models/A1099/V2/state_efile_status_detail_app.rb +231 -0
- data/lib/avalara_sdk/models/A1099/V2/status_detail.rb +221 -0
- data/lib/avalara_sdk/models/A1099/V2/update1099_form200_response.rb +103 -0
- data/lib/avalara_sdk/models/A1099/V2/validation_error_app.rb +229 -0
- data/lib/avalara_sdk/version.rb +1 -1
- data/lib/avalara_sdk.rb +17 -0
- data/spec/integration/a1099_spec.rb +12 -12
- 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 +36 -2
@@ -11,6 +11,20 @@ require 'time'
|
|
11
11
|
|
12
12
|
module AvalaraSdk::A1099::V2
|
13
13
|
class FormResponseBase
|
14
|
+
attr_accessor :type
|
15
|
+
|
16
|
+
attr_accessor :created_at
|
17
|
+
|
18
|
+
attr_accessor :updated_at
|
19
|
+
|
20
|
+
attr_accessor :user_id
|
21
|
+
|
22
|
+
attr_accessor :state_and_local_withholding
|
23
|
+
|
24
|
+
attr_accessor :tin_type
|
25
|
+
|
26
|
+
attr_accessor :id
|
27
|
+
|
14
28
|
attr_accessor :issuer_id
|
15
29
|
|
16
30
|
attr_accessor :issuer_reference_id
|
@@ -23,15 +37,13 @@ module AvalaraSdk::A1099::V2
|
|
23
37
|
|
24
38
|
attr_accessor :recipient_name
|
25
39
|
|
26
|
-
attr_accessor :
|
27
|
-
|
28
|
-
attr_accessor :federal_id_type
|
40
|
+
attr_accessor :recipient_tin
|
29
41
|
|
30
42
|
attr_accessor :recipient_second_name
|
31
43
|
|
32
|
-
attr_accessor :
|
44
|
+
attr_accessor :address
|
33
45
|
|
34
|
-
attr_accessor :
|
46
|
+
attr_accessor :address2
|
35
47
|
|
36
48
|
attr_accessor :city
|
37
49
|
|
@@ -49,20 +61,70 @@ module AvalaraSdk::A1099::V2
|
|
49
61
|
|
50
62
|
attr_accessor :country_code
|
51
63
|
|
64
|
+
attr_accessor :federal_e_file
|
65
|
+
|
66
|
+
attr_accessor :postal_mail
|
67
|
+
|
68
|
+
attr_accessor :state_e_file
|
69
|
+
|
70
|
+
attr_accessor :tin_match
|
71
|
+
|
72
|
+
attr_accessor :address_verification
|
73
|
+
|
74
|
+
attr_accessor :federal_efile_status
|
75
|
+
|
76
|
+
attr_accessor :state_efile_status
|
77
|
+
|
78
|
+
attr_accessor :postal_mail_status
|
79
|
+
|
80
|
+
attr_accessor :tin_match_status
|
81
|
+
|
82
|
+
attr_accessor :address_verification_status
|
83
|
+
|
84
|
+
attr_accessor :validation_errors
|
85
|
+
|
86
|
+
class EnumAttributeValidator
|
87
|
+
attr_reader :datatype
|
88
|
+
attr_reader :allowable_values
|
89
|
+
|
90
|
+
def initialize(datatype, allowable_values)
|
91
|
+
@allowable_values = allowable_values.map do |value|
|
92
|
+
case datatype.to_s
|
93
|
+
when /Integer/i
|
94
|
+
value.to_i
|
95
|
+
when /Float/i
|
96
|
+
value.to_f
|
97
|
+
else
|
98
|
+
value
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
def valid?(value)
|
104
|
+
!value || allowable_values.include?(value)
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
52
108
|
# Attribute mapping from ruby-style variable name to JSON key.
|
53
109
|
def self.attribute_map
|
54
110
|
{
|
111
|
+
:'type' => :'type',
|
112
|
+
:'created_at' => :'createdAt',
|
113
|
+
:'updated_at' => :'updatedAt',
|
114
|
+
:'user_id' => :'userId',
|
115
|
+
:'state_and_local_withholding' => :'stateAndLocalWithholding',
|
116
|
+
:'tin_type' => :'tinType',
|
117
|
+
:'id' => :'id',
|
55
118
|
:'issuer_id' => :'issuerId',
|
56
119
|
:'issuer_reference_id' => :'issuerReferenceId',
|
57
120
|
:'issuer_tin' => :'issuerTin',
|
58
121
|
:'tax_year' => :'taxYear',
|
59
122
|
:'reference_id' => :'referenceId',
|
60
123
|
:'recipient_name' => :'recipientName',
|
61
|
-
:'
|
62
|
-
:'federal_id_type' => :'federalIdType',
|
124
|
+
:'recipient_tin' => :'recipientTin',
|
63
125
|
:'recipient_second_name' => :'recipientSecondName',
|
64
|
-
:'
|
65
|
-
:'
|
126
|
+
:'address' => :'address',
|
127
|
+
:'address2' => :'address2',
|
66
128
|
:'city' => :'city',
|
67
129
|
:'state' => :'state',
|
68
130
|
:'zip' => :'zip',
|
@@ -70,7 +132,18 @@ module AvalaraSdk::A1099::V2
|
|
70
132
|
:'account_number' => :'accountNumber',
|
71
133
|
:'office_code' => :'officeCode',
|
72
134
|
:'recipient_non_us_province' => :'recipientNonUsProvince',
|
73
|
-
:'country_code' => :'countryCode'
|
135
|
+
:'country_code' => :'countryCode',
|
136
|
+
:'federal_e_file' => :'federalEFile',
|
137
|
+
:'postal_mail' => :'postalMail',
|
138
|
+
:'state_e_file' => :'stateEFile',
|
139
|
+
:'tin_match' => :'tinMatch',
|
140
|
+
:'address_verification' => :'addressVerification',
|
141
|
+
:'federal_efile_status' => :'federalEfileStatus',
|
142
|
+
:'state_efile_status' => :'stateEfileStatus',
|
143
|
+
:'postal_mail_status' => :'postalMailStatus',
|
144
|
+
:'tin_match_status' => :'tinMatchStatus',
|
145
|
+
:'address_verification_status' => :'addressVerificationStatus',
|
146
|
+
:'validation_errors' => :'validationErrors'
|
74
147
|
}
|
75
148
|
end
|
76
149
|
|
@@ -82,17 +155,23 @@ module AvalaraSdk::A1099::V2
|
|
82
155
|
# Attribute type mapping.
|
83
156
|
def self.openapi_types
|
84
157
|
{
|
158
|
+
:'type' => :'String',
|
159
|
+
:'created_at' => :'Time',
|
160
|
+
:'updated_at' => :'Time',
|
161
|
+
:'user_id' => :'String',
|
162
|
+
:'state_and_local_withholding' => :'StateAndLocalWithholdingResponse',
|
163
|
+
:'tin_type' => :'String',
|
164
|
+
:'id' => :'String',
|
85
165
|
:'issuer_id' => :'String',
|
86
166
|
:'issuer_reference_id' => :'String',
|
87
167
|
:'issuer_tin' => :'String',
|
88
168
|
:'tax_year' => :'Integer',
|
89
169
|
:'reference_id' => :'String',
|
90
170
|
:'recipient_name' => :'String',
|
91
|
-
:'
|
92
|
-
:'federal_id_type' => :'Integer',
|
171
|
+
:'recipient_tin' => :'String',
|
93
172
|
:'recipient_second_name' => :'String',
|
94
|
-
:'
|
95
|
-
:'
|
173
|
+
:'address' => :'String',
|
174
|
+
:'address2' => :'String',
|
96
175
|
:'city' => :'String',
|
97
176
|
:'state' => :'String',
|
98
177
|
:'zip' => :'String',
|
@@ -100,13 +179,30 @@ module AvalaraSdk::A1099::V2
|
|
100
179
|
:'account_number' => :'String',
|
101
180
|
:'office_code' => :'String',
|
102
181
|
:'recipient_non_us_province' => :'String',
|
103
|
-
:'country_code' => :'String'
|
182
|
+
:'country_code' => :'String',
|
183
|
+
:'federal_e_file' => :'Boolean',
|
184
|
+
:'postal_mail' => :'Boolean',
|
185
|
+
:'state_e_file' => :'Boolean',
|
186
|
+
:'tin_match' => :'Boolean',
|
187
|
+
:'address_verification' => :'Boolean',
|
188
|
+
:'federal_efile_status' => :'StatusDetail',
|
189
|
+
:'state_efile_status' => :'Array<StateEfileStatusDetailApp>',
|
190
|
+
:'postal_mail_status' => :'StatusDetail',
|
191
|
+
:'tin_match_status' => :'StatusDetail',
|
192
|
+
:'address_verification_status' => :'StatusDetail',
|
193
|
+
:'validation_errors' => :'Array<ValidationErrorApp>'
|
104
194
|
}
|
105
195
|
end
|
106
196
|
|
107
197
|
# List of attributes with nullable: true
|
108
198
|
def self.openapi_nullable
|
109
199
|
Set.new([
|
200
|
+
:'federal_efile_status',
|
201
|
+
:'state_efile_status',
|
202
|
+
:'postal_mail_status',
|
203
|
+
:'tin_match_status',
|
204
|
+
:'address_verification_status',
|
205
|
+
:'validation_errors'
|
110
206
|
])
|
111
207
|
end
|
112
208
|
|
@@ -125,6 +221,34 @@ module AvalaraSdk::A1099::V2
|
|
125
221
|
h[k.to_sym] = v
|
126
222
|
}
|
127
223
|
|
224
|
+
if attributes.key?(:'type')
|
225
|
+
self.type = attributes[:'type']
|
226
|
+
end
|
227
|
+
|
228
|
+
if attributes.key?(:'created_at')
|
229
|
+
self.created_at = attributes[:'created_at']
|
230
|
+
end
|
231
|
+
|
232
|
+
if attributes.key?(:'updated_at')
|
233
|
+
self.updated_at = attributes[:'updated_at']
|
234
|
+
end
|
235
|
+
|
236
|
+
if attributes.key?(:'user_id')
|
237
|
+
self.user_id = attributes[:'user_id']
|
238
|
+
end
|
239
|
+
|
240
|
+
if attributes.key?(:'state_and_local_withholding')
|
241
|
+
self.state_and_local_withholding = attributes[:'state_and_local_withholding']
|
242
|
+
end
|
243
|
+
|
244
|
+
if attributes.key?(:'tin_type')
|
245
|
+
self.tin_type = attributes[:'tin_type']
|
246
|
+
end
|
247
|
+
|
248
|
+
if attributes.key?(:'id')
|
249
|
+
self.id = attributes[:'id']
|
250
|
+
end
|
251
|
+
|
128
252
|
if attributes.key?(:'issuer_id')
|
129
253
|
self.issuer_id = attributes[:'issuer_id']
|
130
254
|
end
|
@@ -149,24 +273,20 @@ module AvalaraSdk::A1099::V2
|
|
149
273
|
self.recipient_name = attributes[:'recipient_name']
|
150
274
|
end
|
151
275
|
|
152
|
-
if attributes.key?(:'
|
153
|
-
self.
|
154
|
-
end
|
155
|
-
|
156
|
-
if attributes.key?(:'federal_id_type')
|
157
|
-
self.federal_id_type = attributes[:'federal_id_type']
|
276
|
+
if attributes.key?(:'recipient_tin')
|
277
|
+
self.recipient_tin = attributes[:'recipient_tin']
|
158
278
|
end
|
159
279
|
|
160
280
|
if attributes.key?(:'recipient_second_name')
|
161
281
|
self.recipient_second_name = attributes[:'recipient_second_name']
|
162
282
|
end
|
163
283
|
|
164
|
-
if attributes.key?(:'
|
165
|
-
self.
|
284
|
+
if attributes.key?(:'address')
|
285
|
+
self.address = attributes[:'address']
|
166
286
|
end
|
167
287
|
|
168
|
-
if attributes.key?(:'
|
169
|
-
self.
|
288
|
+
if attributes.key?(:'address2')
|
289
|
+
self.address2 = attributes[:'address2']
|
170
290
|
end
|
171
291
|
|
172
292
|
if attributes.key?(:'city')
|
@@ -200,6 +320,54 @@ module AvalaraSdk::A1099::V2
|
|
200
320
|
if attributes.key?(:'country_code')
|
201
321
|
self.country_code = attributes[:'country_code']
|
202
322
|
end
|
323
|
+
|
324
|
+
if attributes.key?(:'federal_e_file')
|
325
|
+
self.federal_e_file = attributes[:'federal_e_file']
|
326
|
+
end
|
327
|
+
|
328
|
+
if attributes.key?(:'postal_mail')
|
329
|
+
self.postal_mail = attributes[:'postal_mail']
|
330
|
+
end
|
331
|
+
|
332
|
+
if attributes.key?(:'state_e_file')
|
333
|
+
self.state_e_file = attributes[:'state_e_file']
|
334
|
+
end
|
335
|
+
|
336
|
+
if attributes.key?(:'tin_match')
|
337
|
+
self.tin_match = attributes[:'tin_match']
|
338
|
+
end
|
339
|
+
|
340
|
+
if attributes.key?(:'address_verification')
|
341
|
+
self.address_verification = attributes[:'address_verification']
|
342
|
+
end
|
343
|
+
|
344
|
+
if attributes.key?(:'federal_efile_status')
|
345
|
+
self.federal_efile_status = attributes[:'federal_efile_status']
|
346
|
+
end
|
347
|
+
|
348
|
+
if attributes.key?(:'state_efile_status')
|
349
|
+
if (value = attributes[:'state_efile_status']).is_a?(Array)
|
350
|
+
self.state_efile_status = value
|
351
|
+
end
|
352
|
+
end
|
353
|
+
|
354
|
+
if attributes.key?(:'postal_mail_status')
|
355
|
+
self.postal_mail_status = attributes[:'postal_mail_status']
|
356
|
+
end
|
357
|
+
|
358
|
+
if attributes.key?(:'tin_match_status')
|
359
|
+
self.tin_match_status = attributes[:'tin_match_status']
|
360
|
+
end
|
361
|
+
|
362
|
+
if attributes.key?(:'address_verification_status')
|
363
|
+
self.address_verification_status = attributes[:'address_verification_status']
|
364
|
+
end
|
365
|
+
|
366
|
+
if attributes.key?(:'validation_errors')
|
367
|
+
if (value = attributes[:'validation_errors']).is_a?(Array)
|
368
|
+
self.validation_errors = value
|
369
|
+
end
|
370
|
+
end
|
203
371
|
end
|
204
372
|
|
205
373
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -214,25 +382,67 @@ module AvalaraSdk::A1099::V2
|
|
214
382
|
# @return true if the model is valid
|
215
383
|
def valid?
|
216
384
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
385
|
+
type_validator = EnumAttributeValidator.new('String', ["Form1099Nec", "Form1099Misc", "Form1099Div", "Form1099R", "Form1099K", "Form1095B"])
|
386
|
+
return false unless type_validator.valid?(@type)
|
387
|
+
tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
|
388
|
+
return false unless tin_type_validator.valid?(@tin_type)
|
217
389
|
true
|
218
390
|
end
|
219
391
|
|
392
|
+
# Custom attribute writer method checking allowed values (enum).
|
393
|
+
# @param [Object] type Object to be assigned
|
394
|
+
def type=(type)
|
395
|
+
validator = EnumAttributeValidator.new('String', ["Form1099Nec", "Form1099Misc", "Form1099Div", "Form1099R", "Form1099K", "Form1095B"])
|
396
|
+
unless validator.valid?(type)
|
397
|
+
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
398
|
+
end
|
399
|
+
@type = type
|
400
|
+
end
|
401
|
+
|
402
|
+
# Custom attribute writer method checking allowed values (enum).
|
403
|
+
# @param [Object] tin_type Object to be assigned
|
404
|
+
def tin_type=(tin_type)
|
405
|
+
validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
|
406
|
+
unless validator.valid?(tin_type)
|
407
|
+
fail ArgumentError, "invalid value for \"tin_type\", must be one of #{validator.allowable_values}."
|
408
|
+
end
|
409
|
+
@tin_type = tin_type
|
410
|
+
end
|
411
|
+
|
412
|
+
# Custom attribute writer method with validation
|
413
|
+
# @param [Object] state_efile_status Value to be assigned
|
414
|
+
def state_efile_status=(state_efile_status)
|
415
|
+
@state_efile_status = state_efile_status
|
416
|
+
end
|
417
|
+
|
418
|
+
# Custom attribute writer method with validation
|
419
|
+
# @param [Object] validation_errors Value to be assigned
|
420
|
+
def validation_errors=(validation_errors)
|
421
|
+
@validation_errors = validation_errors
|
422
|
+
end
|
423
|
+
|
220
424
|
# Checks equality by comparing each attribute.
|
221
425
|
# @param [Object] Object to be compared
|
222
426
|
def ==(o)
|
223
427
|
return true if self.equal?(o)
|
224
428
|
self.class == o.class &&
|
429
|
+
type == o.type &&
|
430
|
+
created_at == o.created_at &&
|
431
|
+
updated_at == o.updated_at &&
|
432
|
+
user_id == o.user_id &&
|
433
|
+
state_and_local_withholding == o.state_and_local_withholding &&
|
434
|
+
tin_type == o.tin_type &&
|
435
|
+
id == o.id &&
|
225
436
|
issuer_id == o.issuer_id &&
|
226
437
|
issuer_reference_id == o.issuer_reference_id &&
|
227
438
|
issuer_tin == o.issuer_tin &&
|
228
439
|
tax_year == o.tax_year &&
|
229
440
|
reference_id == o.reference_id &&
|
230
441
|
recipient_name == o.recipient_name &&
|
231
|
-
|
232
|
-
federal_id_type == o.federal_id_type &&
|
442
|
+
recipient_tin == o.recipient_tin &&
|
233
443
|
recipient_second_name == o.recipient_second_name &&
|
234
|
-
|
235
|
-
|
444
|
+
address == o.address &&
|
445
|
+
address2 == o.address2 &&
|
236
446
|
city == o.city &&
|
237
447
|
state == o.state &&
|
238
448
|
zip == o.zip &&
|
@@ -240,7 +450,18 @@ module AvalaraSdk::A1099::V2
|
|
240
450
|
account_number == o.account_number &&
|
241
451
|
office_code == o.office_code &&
|
242
452
|
recipient_non_us_province == o.recipient_non_us_province &&
|
243
|
-
country_code == o.country_code
|
453
|
+
country_code == o.country_code &&
|
454
|
+
federal_e_file == o.federal_e_file &&
|
455
|
+
postal_mail == o.postal_mail &&
|
456
|
+
state_e_file == o.state_e_file &&
|
457
|
+
tin_match == o.tin_match &&
|
458
|
+
address_verification == o.address_verification &&
|
459
|
+
federal_efile_status == o.federal_efile_status &&
|
460
|
+
state_efile_status == o.state_efile_status &&
|
461
|
+
postal_mail_status == o.postal_mail_status &&
|
462
|
+
tin_match_status == o.tin_match_status &&
|
463
|
+
address_verification_status == o.address_verification_status &&
|
464
|
+
validation_errors == o.validation_errors
|
244
465
|
end
|
245
466
|
|
246
467
|
# @see the `==` method
|
@@ -252,7 +473,7 @@ module AvalaraSdk::A1099::V2
|
|
252
473
|
# Calculates hash code according to all attributes.
|
253
474
|
# @return [Integer] Hash code
|
254
475
|
def hash
|
255
|
-
[issuer_id, issuer_reference_id, issuer_tin, tax_year, reference_id, recipient_name,
|
476
|
+
[type, created_at, updated_at, user_id, state_and_local_withholding, tin_type, id, issuer_id, issuer_reference_id, issuer_tin, tax_year, reference_id, recipient_name, recipient_tin, recipient_second_name, address, address2, city, state, zip, recipient_email, account_number, office_code, recipient_non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, address_verification, federal_efile_status, state_efile_status, postal_mail_status, tin_match_status, address_verification_status, validation_errors].hash
|
256
477
|
end
|
257
478
|
|
258
479
|
# Builds the object from hash
|
@@ -15,12 +15,6 @@ module AvalaraSdk::A1099::V2
|
|
15
15
|
|
16
16
|
attr_accessor :issuer_id
|
17
17
|
|
18
|
-
attr_accessor :issuer_reference_id
|
19
|
-
|
20
|
-
attr_accessor :issuer_tin
|
21
|
-
|
22
|
-
attr_accessor :tax_year
|
23
|
-
|
24
18
|
attr_accessor :reference_id
|
25
19
|
|
26
20
|
attr_accessor :recipient_name
|
@@ -31,9 +25,9 @@ module AvalaraSdk::A1099::V2
|
|
31
25
|
|
32
26
|
attr_accessor :recipient_second_name
|
33
27
|
|
34
|
-
attr_accessor :
|
28
|
+
attr_accessor :address
|
35
29
|
|
36
|
-
attr_accessor :
|
30
|
+
attr_accessor :address2
|
37
31
|
|
38
32
|
attr_accessor :city
|
39
33
|
|
@@ -61,21 +55,42 @@ module AvalaraSdk::A1099::V2
|
|
61
55
|
|
62
56
|
attr_accessor :address_verification
|
63
57
|
|
58
|
+
attr_accessor :state_and_local_withholding
|
59
|
+
|
60
|
+
class EnumAttributeValidator
|
61
|
+
attr_reader :datatype
|
62
|
+
attr_reader :allowable_values
|
63
|
+
|
64
|
+
def initialize(datatype, allowable_values)
|
65
|
+
@allowable_values = allowable_values.map do |value|
|
66
|
+
case datatype.to_s
|
67
|
+
when /Integer/i
|
68
|
+
value.to_i
|
69
|
+
when /Float/i
|
70
|
+
value.to_f
|
71
|
+
else
|
72
|
+
value
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
def valid?(value)
|
78
|
+
!value || allowable_values.include?(value)
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
64
82
|
# Attribute mapping from ruby-style variable name to JSON key.
|
65
83
|
def self.attribute_map
|
66
84
|
{
|
67
85
|
:'type' => :'type',
|
68
86
|
:'issuer_id' => :'issuerId',
|
69
|
-
:'issuer_reference_id' => :'issuerReferenceId',
|
70
|
-
:'issuer_tin' => :'issuerTin',
|
71
|
-
:'tax_year' => :'taxYear',
|
72
87
|
:'reference_id' => :'referenceId',
|
73
88
|
:'recipient_name' => :'recipientName',
|
74
89
|
:'recipient_tin' => :'recipientTin',
|
75
90
|
:'tin_type' => :'tinType',
|
76
91
|
:'recipient_second_name' => :'recipientSecondName',
|
77
|
-
:'
|
78
|
-
:'
|
92
|
+
:'address' => :'address',
|
93
|
+
:'address2' => :'address2',
|
79
94
|
:'city' => :'city',
|
80
95
|
:'state' => :'state',
|
81
96
|
:'zip' => :'zip',
|
@@ -88,7 +103,8 @@ module AvalaraSdk::A1099::V2
|
|
88
103
|
:'postal_mail' => :'postalMail',
|
89
104
|
:'state_e_file' => :'stateEFile',
|
90
105
|
:'tin_match' => :'tinMatch',
|
91
|
-
:'address_verification' => :'addressVerification'
|
106
|
+
:'address_verification' => :'addressVerification',
|
107
|
+
:'state_and_local_withholding' => :'stateAndLocalWithholding'
|
92
108
|
}
|
93
109
|
end
|
94
110
|
|
@@ -102,16 +118,13 @@ module AvalaraSdk::A1099::V2
|
|
102
118
|
{
|
103
119
|
:'type' => :'String',
|
104
120
|
:'issuer_id' => :'String',
|
105
|
-
:'issuer_reference_id' => :'String',
|
106
|
-
:'issuer_tin' => :'String',
|
107
|
-
:'tax_year' => :'Integer',
|
108
121
|
:'reference_id' => :'String',
|
109
122
|
:'recipient_name' => :'String',
|
110
123
|
:'recipient_tin' => :'String',
|
111
|
-
:'tin_type' => :'
|
124
|
+
:'tin_type' => :'String',
|
112
125
|
:'recipient_second_name' => :'String',
|
113
|
-
:'
|
114
|
-
:'
|
126
|
+
:'address' => :'String',
|
127
|
+
:'address2' => :'String',
|
115
128
|
:'city' => :'String',
|
116
129
|
:'state' => :'String',
|
117
130
|
:'zip' => :'String',
|
@@ -124,13 +137,22 @@ module AvalaraSdk::A1099::V2
|
|
124
137
|
:'postal_mail' => :'Boolean',
|
125
138
|
:'state_e_file' => :'Boolean',
|
126
139
|
:'tin_match' => :'Boolean',
|
127
|
-
:'address_verification' => :'Boolean'
|
140
|
+
:'address_verification' => :'Boolean',
|
141
|
+
:'state_and_local_withholding' => :'StateAndLocalWithholdingRequest'
|
128
142
|
}
|
129
143
|
end
|
130
144
|
|
131
145
|
# List of attributes with nullable: true
|
132
146
|
def self.openapi_nullable
|
133
147
|
Set.new([
|
148
|
+
:'issuer_id',
|
149
|
+
:'reference_id',
|
150
|
+
:'recipient_name',
|
151
|
+
:'address2',
|
152
|
+
:'recipient_email',
|
153
|
+
:'account_number',
|
154
|
+
:'office_code',
|
155
|
+
:'recipient_non_us_province',
|
134
156
|
])
|
135
157
|
end
|
136
158
|
|
@@ -164,18 +186,6 @@ module AvalaraSdk::A1099::V2
|
|
164
186
|
self.issuer_id = attributes[:'issuer_id']
|
165
187
|
end
|
166
188
|
|
167
|
-
if attributes.key?(:'issuer_reference_id')
|
168
|
-
self.issuer_reference_id = attributes[:'issuer_reference_id']
|
169
|
-
end
|
170
|
-
|
171
|
-
if attributes.key?(:'issuer_tin')
|
172
|
-
self.issuer_tin = attributes[:'issuer_tin']
|
173
|
-
end
|
174
|
-
|
175
|
-
if attributes.key?(:'tax_year')
|
176
|
-
self.tax_year = attributes[:'tax_year']
|
177
|
-
end
|
178
|
-
|
179
189
|
if attributes.key?(:'reference_id')
|
180
190
|
self.reference_id = attributes[:'reference_id']
|
181
191
|
end
|
@@ -196,12 +206,12 @@ module AvalaraSdk::A1099::V2
|
|
196
206
|
self.recipient_second_name = attributes[:'recipient_second_name']
|
197
207
|
end
|
198
208
|
|
199
|
-
if attributes.key?(:'
|
200
|
-
self.
|
209
|
+
if attributes.key?(:'address')
|
210
|
+
self.address = attributes[:'address']
|
201
211
|
end
|
202
212
|
|
203
|
-
if attributes.key?(:'
|
204
|
-
self.
|
213
|
+
if attributes.key?(:'address2')
|
214
|
+
self.address2 = attributes[:'address2']
|
205
215
|
end
|
206
216
|
|
207
217
|
if attributes.key?(:'city')
|
@@ -255,6 +265,10 @@ module AvalaraSdk::A1099::V2
|
|
255
265
|
if attributes.key?(:'address_verification')
|
256
266
|
self.address_verification = attributes[:'address_verification']
|
257
267
|
end
|
268
|
+
|
269
|
+
if attributes.key?(:'state_and_local_withholding')
|
270
|
+
self.state_and_local_withholding = attributes[:'state_and_local_withholding']
|
271
|
+
end
|
258
272
|
end
|
259
273
|
|
260
274
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -269,9 +283,33 @@ module AvalaraSdk::A1099::V2
|
|
269
283
|
# @return true if the model is valid
|
270
284
|
def valid?
|
271
285
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
286
|
+
type_validator = EnumAttributeValidator.new('String', ["Form1099Nec", "Form1099Misc", "Form1099Div", "Form1099R", "Form1099K", "Form1095B"])
|
287
|
+
return false unless type_validator.valid?(@type)
|
288
|
+
tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
|
289
|
+
return false unless tin_type_validator.valid?(@tin_type)
|
272
290
|
true
|
273
291
|
end
|
274
292
|
|
293
|
+
# Custom attribute writer method checking allowed values (enum).
|
294
|
+
# @param [Object] type Object to be assigned
|
295
|
+
def type=(type)
|
296
|
+
validator = EnumAttributeValidator.new('String', ["Form1099Nec", "Form1099Misc", "Form1099Div", "Form1099R", "Form1099K", "Form1095B"])
|
297
|
+
unless validator.valid?(type)
|
298
|
+
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
299
|
+
end
|
300
|
+
@type = type
|
301
|
+
end
|
302
|
+
|
303
|
+
# Custom attribute writer method checking allowed values (enum).
|
304
|
+
# @param [Object] tin_type Object to be assigned
|
305
|
+
def tin_type=(tin_type)
|
306
|
+
validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
|
307
|
+
unless validator.valid?(tin_type)
|
308
|
+
fail ArgumentError, "invalid value for \"tin_type\", must be one of #{validator.allowable_values}."
|
309
|
+
end
|
310
|
+
@tin_type = tin_type
|
311
|
+
end
|
312
|
+
|
275
313
|
# Checks equality by comparing each attribute.
|
276
314
|
# @param [Object] Object to be compared
|
277
315
|
def ==(o)
|
@@ -279,16 +317,13 @@ module AvalaraSdk::A1099::V2
|
|
279
317
|
self.class == o.class &&
|
280
318
|
type == o.type &&
|
281
319
|
issuer_id == o.issuer_id &&
|
282
|
-
issuer_reference_id == o.issuer_reference_id &&
|
283
|
-
issuer_tin == o.issuer_tin &&
|
284
|
-
tax_year == o.tax_year &&
|
285
320
|
reference_id == o.reference_id &&
|
286
321
|
recipient_name == o.recipient_name &&
|
287
322
|
recipient_tin == o.recipient_tin &&
|
288
323
|
tin_type == o.tin_type &&
|
289
324
|
recipient_second_name == o.recipient_second_name &&
|
290
|
-
|
291
|
-
|
325
|
+
address == o.address &&
|
326
|
+
address2 == o.address2 &&
|
292
327
|
city == o.city &&
|
293
328
|
state == o.state &&
|
294
329
|
zip == o.zip &&
|
@@ -301,7 +336,8 @@ module AvalaraSdk::A1099::V2
|
|
301
336
|
postal_mail == o.postal_mail &&
|
302
337
|
state_e_file == o.state_e_file &&
|
303
338
|
tin_match == o.tin_match &&
|
304
|
-
address_verification == o.address_verification
|
339
|
+
address_verification == o.address_verification &&
|
340
|
+
state_and_local_withholding == o.state_and_local_withholding
|
305
341
|
end
|
306
342
|
|
307
343
|
# @see the `==` method
|
@@ -313,7 +349,7 @@ module AvalaraSdk::A1099::V2
|
|
313
349
|
# Calculates hash code according to all attributes.
|
314
350
|
# @return [Integer] Hash code
|
315
351
|
def hash
|
316
|
-
[type, issuer_id,
|
352
|
+
[type, issuer_id, reference_id, recipient_name, recipient_tin, tin_type, recipient_second_name, address, address2, city, state, zip, recipient_email, account_number, office_code, recipient_non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, address_verification, state_and_local_withholding].hash
|
317
353
|
end
|
318
354
|
|
319
355
|
# Builds the object from hash
|