avalara_sdk 25.8.3 → 25.10.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/Gemfile.lock +1 -1
- data/README.md +4 -14
- data/docs/A1099/V2/CompaniesW9Api.md +9 -9
- data/docs/A1099/V2/CompanyBase.md +50 -0
- data/docs/A1099/V2/CompanyRequest.md +50 -0
- data/docs/A1099/V2/ErrorResponse.md +2 -2
- data/docs/A1099/V2/ErrorResponseItem.md +2 -2
- data/docs/A1099/V2/Form1042S.md +16 -16
- data/docs/A1099/V2/Form1095B.md +15 -15
- data/docs/A1099/V2/Form1095C.md +14 -14
- data/docs/A1099/V2/Form1099Base.md +14 -14
- data/docs/A1099/V2/Form1099Div.md +15 -15
- data/docs/A1099/V2/Form1099Int.md +16 -16
- data/docs/A1099/V2/Form1099K.md +20 -20
- data/docs/A1099/V2/Form1099ListRequest.md +1 -1
- data/docs/A1099/V2/Form1099Misc.md +15 -15
- data/docs/A1099/V2/Form1099Nec.md +17 -17
- data/docs/A1099/V2/Form1099R.md +17 -17
- data/docs/A1099/V2/Forms1099Api.md +12 -12
- data/docs/A1099/V2/FormsW9Api.md +17 -17
- data/docs/A1099/V2/IntermediaryOrFlowThrough.md +2 -2
- data/docs/A1099/V2/IssuerBase.md +46 -0
- data/docs/A1099/V2/IssuerRequest.md +46 -0
- data/docs/A1099/V2/Issuers1099Api.md +9 -9
- data/docs/A1099/V2/JobResponse.md +1 -1
- data/docs/A1099/V2/JobsApi.md +1 -1
- data/docs/A1099/V2/TinMatchStatusResponse.md +1 -1
- data/docs/A1099/V2/W4FormMinimalRequest.md +2 -2
- data/docs/A1099/V2/W4FormRequest.md +11 -11
- data/docs/A1099/V2/W4FormResponse.md +48 -20
- data/docs/A1099/V2/W8BenEFormMinimalRequest.md +2 -2
- data/docs/A1099/V2/W8BenEFormRequest.md +10 -10
- data/docs/A1099/V2/W8BenEFormResponse.md +96 -68
- data/docs/A1099/V2/W8BenFormMinimalRequest.md +2 -2
- data/docs/A1099/V2/W8BenFormRequest.md +6 -6
- data/docs/A1099/V2/W8BenFormResponse.md +55 -27
- data/docs/A1099/V2/W8ImyFormMinimalRequest.md +2 -2
- data/docs/A1099/V2/W8ImyFormRequest.md +10 -10
- data/docs/A1099/V2/W8ImyFormResponse.md +118 -90
- data/docs/A1099/V2/W9FormBaseMinimalRequest.md +2 -2
- data/docs/A1099/V2/W9FormBaseRequest.md +2 -2
- data/docs/A1099/V2/W9FormBaseResponse.md +3 -3
- data/docs/A1099/V2/W9FormMinimalRequest.md +2 -2
- data/docs/A1099/V2/W9FormRequest.md +12 -12
- data/docs/A1099/V2/W9FormResponse.md +44 -16
- data/lib/avalara_sdk/api/A1099/V2/companies_w9_api.rb +21 -21
- data/lib/avalara_sdk/api/A1099/V2/forms1099_api.rb +7 -7
- data/lib/avalara_sdk/api/A1099/V2/forms_w9_api.rb +16 -16
- data/lib/avalara_sdk/api/A1099/V2/issuers1099_api.rb +21 -21
- data/lib/avalara_sdk/api/A1099/V2/jobs_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/api_client.rb +10 -2
- data/lib/avalara_sdk/models/A1099/V2/company_base.rb +404 -0
- data/lib/avalara_sdk/models/A1099/V2/company_request.rb +411 -0
- data/lib/avalara_sdk/models/A1099/V2/company_response.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/error_response.rb +2 -6
- data/lib/avalara_sdk/models/A1099/V2/error_response_item.rb +2 -0
- data/lib/avalara_sdk/models/A1099/V2/form1042_s.rb +20 -30
- data/lib/avalara_sdk/models/A1099/V2/form1095_b.rb +19 -40
- data/lib/avalara_sdk/models/A1099/V2/form1095_c.rb +18 -49
- data/lib/avalara_sdk/models/A1099/V2/form1099_base.rb +18 -29
- data/lib/avalara_sdk/models/A1099/V2/form1099_div.rb +20 -31
- data/lib/avalara_sdk/models/A1099/V2/form1099_int.rb +22 -32
- data/lib/avalara_sdk/models/A1099/V2/form1099_k.rb +35 -38
- data/lib/avalara_sdk/models/A1099/V2/form1099_list_request.rb +2 -12
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc.rb +20 -31
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec.rb +23 -33
- data/lib/avalara_sdk/models/A1099/V2/form1099_r.rb +48 -33
- data/lib/avalara_sdk/models/A1099/V2/intermediary_or_flow_through.rb +48 -2
- data/lib/avalara_sdk/models/A1099/V2/issuer_base.rb +384 -0
- data/lib/avalara_sdk/models/A1099/V2/issuer_request.rb +391 -0
- data/lib/avalara_sdk/models/A1099/V2/issuer_response.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/job_response.rb +0 -6
- data/lib/avalara_sdk/models/A1099/V2/validation_error.rb +0 -6
- data/lib/avalara_sdk/models/A1099/V2/w4_form_minimal_request.rb +1 -27
- data/lib/avalara_sdk/models/A1099/V2/w4_form_request.rb +50 -24
- data/lib/avalara_sdk/models/A1099/V2/w4_form_response.rb +191 -15
- data/lib/avalara_sdk/models/A1099/V2/w8_ben_e_form_minimal_request.rb +1 -27
- data/lib/avalara_sdk/models/A1099/V2/w8_ben_e_form_request.rb +37 -28
- data/lib/avalara_sdk/models/A1099/V2/w8_ben_e_form_response.rb +190 -14
- data/lib/avalara_sdk/models/A1099/V2/w8_ben_form_minimal_request.rb +1 -27
- data/lib/avalara_sdk/models/A1099/V2/w8_ben_form_request.rb +20 -23
- data/lib/avalara_sdk/models/A1099/V2/w8_ben_form_response.rb +191 -15
- data/lib/avalara_sdk/models/A1099/V2/w8_imy_form_minimal_request.rb +1 -27
- data/lib/avalara_sdk/models/A1099/V2/w8_imy_form_request.rb +72 -22
- data/lib/avalara_sdk/models/A1099/V2/w8_imy_form_response.rb +191 -15
- data/lib/avalara_sdk/models/A1099/V2/w9_form_base_minimal_request.rb +1 -27
- data/lib/avalara_sdk/models/A1099/V2/w9_form_base_request.rb +1 -27
- data/lib/avalara_sdk/models/A1099/V2/w9_form_base_response.rb +47 -18
- data/lib/avalara_sdk/models/A1099/V2/w9_form_minimal_request.rb +1 -27
- data/lib/avalara_sdk/models/A1099/V2/w9_form_request.rb +61 -22
- data/lib/avalara_sdk/models/A1099/V2/w9_form_response.rb +190 -14
- data/lib/avalara_sdk/version.rb +1 -1
- data/lib/avalara_sdk.rb +8 -4
- 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 +10 -2
@@ -10,7 +10,10 @@ require 'date'
|
|
10
10
|
require 'time'
|
11
11
|
|
12
12
|
module AvalaraSdk::A1099::V2
|
13
|
-
class W4FormResponse
|
13
|
+
class W4FormResponse
|
14
|
+
# The form type (always \"W4\" for this model).
|
15
|
+
attr_accessor :type
|
16
|
+
|
14
17
|
# The first name of the employee.
|
15
18
|
attr_accessor :employee_first_name
|
16
19
|
|
@@ -23,7 +26,7 @@ module AvalaraSdk::A1099::V2
|
|
23
26
|
# The name suffix of the employee.
|
24
27
|
attr_accessor :employee_name_suffix
|
25
28
|
|
26
|
-
#
|
29
|
+
# Tax Identification Number (TIN) type.
|
27
30
|
attr_accessor :tin_type
|
28
31
|
|
29
32
|
# The taxpayer identification number (TIN).
|
@@ -68,9 +71,71 @@ module AvalaraSdk::A1099::V2
|
|
68
71
|
# The office code associated with the form.
|
69
72
|
attr_accessor :office_code
|
70
73
|
|
74
|
+
# The unique identifier for the form.
|
75
|
+
attr_accessor :id
|
76
|
+
|
77
|
+
# The entry status information for the form.
|
78
|
+
attr_accessor :entry_status
|
79
|
+
|
80
|
+
# A reference identifier for the form.
|
81
|
+
attr_accessor :reference_id
|
82
|
+
|
83
|
+
# The ID of the associated company.
|
84
|
+
attr_accessor :company_id
|
85
|
+
|
86
|
+
# The display name associated with the form.
|
87
|
+
attr_accessor :display_name
|
88
|
+
|
89
|
+
# The email address of the individual associated with the form.
|
90
|
+
attr_accessor :email
|
91
|
+
|
92
|
+
# Indicates whether the form is archived.
|
93
|
+
attr_accessor :archived
|
94
|
+
|
95
|
+
# Form ID of previous version.
|
96
|
+
attr_accessor :ancestor_id
|
97
|
+
|
98
|
+
# The signature of the form.
|
99
|
+
attr_accessor :signature
|
100
|
+
|
101
|
+
# The date the form was signed.
|
102
|
+
attr_accessor :signed_date
|
103
|
+
|
104
|
+
# The date when e-delivery was consented.
|
105
|
+
attr_accessor :e_delivery_consented_at
|
106
|
+
|
107
|
+
# The creation date of the form.
|
108
|
+
attr_accessor :created_at
|
109
|
+
|
110
|
+
# The last updated date of the form.
|
111
|
+
attr_accessor :updated_at
|
112
|
+
|
113
|
+
class EnumAttributeValidator
|
114
|
+
attr_reader :datatype
|
115
|
+
attr_reader :allowable_values
|
116
|
+
|
117
|
+
def initialize(datatype, allowable_values)
|
118
|
+
@allowable_values = allowable_values.map do |value|
|
119
|
+
case datatype.to_s
|
120
|
+
when /Integer/i
|
121
|
+
value.to_i
|
122
|
+
when /Float/i
|
123
|
+
value.to_f
|
124
|
+
else
|
125
|
+
value
|
126
|
+
end
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
130
|
+
def valid?(value)
|
131
|
+
!value || allowable_values.include?(value)
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
71
135
|
# Attribute mapping from ruby-style variable name to JSON key.
|
72
136
|
def self.attribute_map
|
73
137
|
{
|
138
|
+
:'type' => :'type',
|
74
139
|
:'employee_first_name' => :'employeeFirstName',
|
75
140
|
:'employee_middle_name' => :'employeeMiddleName',
|
76
141
|
:'employee_last_name' => :'employeeLastName',
|
@@ -89,18 +154,32 @@ module AvalaraSdk::A1099::V2
|
|
89
154
|
:'deductions' => :'deductions',
|
90
155
|
:'additional_withheld' => :'additionalWithheld',
|
91
156
|
:'exempt_from_withholding' => :'exemptFromWithholding',
|
92
|
-
:'office_code' => :'officeCode'
|
157
|
+
:'office_code' => :'officeCode',
|
158
|
+
:'id' => :'id',
|
159
|
+
:'entry_status' => :'entryStatus',
|
160
|
+
:'reference_id' => :'referenceId',
|
161
|
+
:'company_id' => :'companyId',
|
162
|
+
:'display_name' => :'displayName',
|
163
|
+
:'email' => :'email',
|
164
|
+
:'archived' => :'archived',
|
165
|
+
:'ancestor_id' => :'ancestorId',
|
166
|
+
:'signature' => :'signature',
|
167
|
+
:'signed_date' => :'signedDate',
|
168
|
+
:'e_delivery_consented_at' => :'eDeliveryConsentedAt',
|
169
|
+
:'created_at' => :'createdAt',
|
170
|
+
:'updated_at' => :'updatedAt'
|
93
171
|
}
|
94
172
|
end
|
95
173
|
|
96
|
-
# Returns all the JSON keys this model knows about
|
174
|
+
# Returns all the JSON keys this model knows about
|
97
175
|
def self.acceptable_attributes
|
98
|
-
attribute_map.values
|
176
|
+
attribute_map.values
|
99
177
|
end
|
100
178
|
|
101
179
|
# Attribute type mapping.
|
102
180
|
def self.openapi_types
|
103
181
|
{
|
182
|
+
:'type' => :'String',
|
104
183
|
:'employee_first_name' => :'String',
|
105
184
|
:'employee_middle_name' => :'String',
|
106
185
|
:'employee_last_name' => :'String',
|
@@ -119,7 +198,20 @@ module AvalaraSdk::A1099::V2
|
|
119
198
|
:'deductions' => :'Float',
|
120
199
|
:'additional_withheld' => :'Float',
|
121
200
|
:'exempt_from_withholding' => :'Boolean',
|
122
|
-
:'office_code' => :'String'
|
201
|
+
:'office_code' => :'String',
|
202
|
+
:'id' => :'String',
|
203
|
+
:'entry_status' => :'EntryStatusResponse',
|
204
|
+
:'reference_id' => :'String',
|
205
|
+
:'company_id' => :'String',
|
206
|
+
:'display_name' => :'String',
|
207
|
+
:'email' => :'String',
|
208
|
+
:'archived' => :'Boolean',
|
209
|
+
:'ancestor_id' => :'String',
|
210
|
+
:'signature' => :'String',
|
211
|
+
:'signed_date' => :'Time',
|
212
|
+
:'e_delivery_consented_at' => :'Time',
|
213
|
+
:'created_at' => :'Time',
|
214
|
+
:'updated_at' => :'Time'
|
123
215
|
}
|
124
216
|
end
|
125
217
|
|
@@ -138,7 +230,13 @@ module AvalaraSdk::A1099::V2
|
|
138
230
|
:'non_job_income',
|
139
231
|
:'deductions',
|
140
232
|
:'additional_withheld',
|
141
|
-
:'office_code'
|
233
|
+
:'office_code',
|
234
|
+
:'reference_id',
|
235
|
+
:'email',
|
236
|
+
:'ancestor_id',
|
237
|
+
:'signature',
|
238
|
+
:'signed_date',
|
239
|
+
:'e_delivery_consented_at',
|
142
240
|
])
|
143
241
|
end
|
144
242
|
|
@@ -164,8 +262,9 @@ module AvalaraSdk::A1099::V2
|
|
164
262
|
h[k.to_sym] = v
|
165
263
|
}
|
166
264
|
|
167
|
-
|
168
|
-
|
265
|
+
if attributes.key?(:'type')
|
266
|
+
self.type = attributes[:'type']
|
267
|
+
end
|
169
268
|
|
170
269
|
if attributes.key?(:'employee_first_name')
|
171
270
|
self.employee_first_name = attributes[:'employee_first_name']
|
@@ -242,13 +341,65 @@ module AvalaraSdk::A1099::V2
|
|
242
341
|
if attributes.key?(:'office_code')
|
243
342
|
self.office_code = attributes[:'office_code']
|
244
343
|
end
|
344
|
+
|
345
|
+
if attributes.key?(:'id')
|
346
|
+
self.id = attributes[:'id']
|
347
|
+
end
|
348
|
+
|
349
|
+
if attributes.key?(:'entry_status')
|
350
|
+
self.entry_status = attributes[:'entry_status']
|
351
|
+
end
|
352
|
+
|
353
|
+
if attributes.key?(:'reference_id')
|
354
|
+
self.reference_id = attributes[:'reference_id']
|
355
|
+
end
|
356
|
+
|
357
|
+
if attributes.key?(:'company_id')
|
358
|
+
self.company_id = attributes[:'company_id']
|
359
|
+
end
|
360
|
+
|
361
|
+
if attributes.key?(:'display_name')
|
362
|
+
self.display_name = attributes[:'display_name']
|
363
|
+
end
|
364
|
+
|
365
|
+
if attributes.key?(:'email')
|
366
|
+
self.email = attributes[:'email']
|
367
|
+
end
|
368
|
+
|
369
|
+
if attributes.key?(:'archived')
|
370
|
+
self.archived = attributes[:'archived']
|
371
|
+
end
|
372
|
+
|
373
|
+
if attributes.key?(:'ancestor_id')
|
374
|
+
self.ancestor_id = attributes[:'ancestor_id']
|
375
|
+
end
|
376
|
+
|
377
|
+
if attributes.key?(:'signature')
|
378
|
+
self.signature = attributes[:'signature']
|
379
|
+
end
|
380
|
+
|
381
|
+
if attributes.key?(:'signed_date')
|
382
|
+
self.signed_date = attributes[:'signed_date']
|
383
|
+
end
|
384
|
+
|
385
|
+
if attributes.key?(:'e_delivery_consented_at')
|
386
|
+
self.e_delivery_consented_at = attributes[:'e_delivery_consented_at']
|
387
|
+
end
|
388
|
+
|
389
|
+
if attributes.key?(:'created_at')
|
390
|
+
self.created_at = attributes[:'created_at']
|
391
|
+
end
|
392
|
+
|
393
|
+
if attributes.key?(:'updated_at')
|
394
|
+
self.updated_at = attributes[:'updated_at']
|
395
|
+
end
|
245
396
|
end
|
246
397
|
|
247
398
|
# Show invalid properties with the reasons. Usually used together with valid?
|
248
399
|
# @return Array for valid properties with the reasons
|
249
400
|
def list_invalid_properties
|
250
401
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
251
|
-
invalid_properties =
|
402
|
+
invalid_properties = Array.new
|
252
403
|
invalid_properties
|
253
404
|
end
|
254
405
|
|
@@ -256,7 +407,19 @@ module AvalaraSdk::A1099::V2
|
|
256
407
|
# @return true if the model is valid
|
257
408
|
def valid?
|
258
409
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
259
|
-
|
410
|
+
type_validator = EnumAttributeValidator.new('String', ["W4", "W8Ben", "W8BenE", "W8Imy", "W9"])
|
411
|
+
return false unless type_validator.valid?(@type)
|
412
|
+
true
|
413
|
+
end
|
414
|
+
|
415
|
+
# Custom attribute writer method checking allowed values (enum).
|
416
|
+
# @param [Object] type Object to be assigned
|
417
|
+
def type=(type)
|
418
|
+
validator = EnumAttributeValidator.new('String', ["W4", "W8Ben", "W8BenE", "W8Imy", "W9"])
|
419
|
+
unless validator.valid?(type)
|
420
|
+
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
421
|
+
end
|
422
|
+
@type = type
|
260
423
|
end
|
261
424
|
|
262
425
|
# Checks equality by comparing each attribute.
|
@@ -264,6 +427,7 @@ module AvalaraSdk::A1099::V2
|
|
264
427
|
def ==(o)
|
265
428
|
return true if self.equal?(o)
|
266
429
|
self.class == o.class &&
|
430
|
+
type == o.type &&
|
267
431
|
employee_first_name == o.employee_first_name &&
|
268
432
|
employee_middle_name == o.employee_middle_name &&
|
269
433
|
employee_last_name == o.employee_last_name &&
|
@@ -282,7 +446,20 @@ module AvalaraSdk::A1099::V2
|
|
282
446
|
deductions == o.deductions &&
|
283
447
|
additional_withheld == o.additional_withheld &&
|
284
448
|
exempt_from_withholding == o.exempt_from_withholding &&
|
285
|
-
office_code == o.office_code &&
|
449
|
+
office_code == o.office_code &&
|
450
|
+
id == o.id &&
|
451
|
+
entry_status == o.entry_status &&
|
452
|
+
reference_id == o.reference_id &&
|
453
|
+
company_id == o.company_id &&
|
454
|
+
display_name == o.display_name &&
|
455
|
+
email == o.email &&
|
456
|
+
archived == o.archived &&
|
457
|
+
ancestor_id == o.ancestor_id &&
|
458
|
+
signature == o.signature &&
|
459
|
+
signed_date == o.signed_date &&
|
460
|
+
e_delivery_consented_at == o.e_delivery_consented_at &&
|
461
|
+
created_at == o.created_at &&
|
462
|
+
updated_at == o.updated_at
|
286
463
|
end
|
287
464
|
|
288
465
|
# @see the `==` method
|
@@ -294,7 +471,7 @@ module AvalaraSdk::A1099::V2
|
|
294
471
|
# Calculates hash code according to all attributes.
|
295
472
|
# @return [Integer] Hash code
|
296
473
|
def hash
|
297
|
-
[employee_first_name, employee_middle_name, employee_last_name, employee_name_suffix, tin_type, tin, address, city, state, zip, marital_status, last_name_differs, num_allowances, other_dependents, non_job_income, deductions, additional_withheld, exempt_from_withholding, office_code].hash
|
474
|
+
[type, employee_first_name, employee_middle_name, employee_last_name, employee_name_suffix, tin_type, tin, address, city, state, zip, marital_status, last_name_differs, num_allowances, other_dependents, non_job_income, deductions, additional_withheld, exempt_from_withholding, office_code, id, entry_status, reference_id, company_id, display_name, email, archived, ancestor_id, signature, signed_date, e_delivery_consented_at, created_at, updated_at].hash
|
298
475
|
end
|
299
476
|
|
300
477
|
# Builds the object from hash
|
@@ -302,7 +479,6 @@ module AvalaraSdk::A1099::V2
|
|
302
479
|
# @return [Object] Returns the model itself
|
303
480
|
def self.build_from_hash(attributes)
|
304
481
|
return nil unless attributes.is_a?(Hash)
|
305
|
-
super(attributes)
|
306
482
|
attributes = attributes.transform_keys(&:to_sym)
|
307
483
|
transformed_hash = {}
|
308
484
|
openapi_types.each_pair do |key, type|
|
@@ -379,7 +555,7 @@ module AvalaraSdk::A1099::V2
|
|
379
555
|
# Returns the object in the form of hash
|
380
556
|
# @return [Hash] Returns the object in the form of hash
|
381
557
|
def to_hash
|
382
|
-
hash =
|
558
|
+
hash = {}
|
383
559
|
self.class.attribute_map.each_pair do |attr, param|
|
384
560
|
value = self.send(attr)
|
385
561
|
if value.nil?
|
@@ -23,7 +23,7 @@ module AvalaraSdk::A1099::V2
|
|
23
23
|
# A reference number for the form.
|
24
24
|
attr_accessor :reference_number
|
25
25
|
|
26
|
-
# The ID of the associated company.
|
26
|
+
# The ID of the associated company. Required when creating a form.
|
27
27
|
attr_accessor :company_id
|
28
28
|
|
29
29
|
# A reference identifier for the form.
|
@@ -132,8 +132,6 @@ module AvalaraSdk::A1099::V2
|
|
132
132
|
|
133
133
|
if attributes.key?(:'company_id')
|
134
134
|
self.company_id = attributes[:'company_id']
|
135
|
-
else
|
136
|
-
self.company_id = nil
|
137
135
|
end
|
138
136
|
|
139
137
|
if attributes.key?(:'reference_id')
|
@@ -162,14 +160,6 @@ module AvalaraSdk::A1099::V2
|
|
162
160
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
163
161
|
end
|
164
162
|
|
165
|
-
if @company_id.nil?
|
166
|
-
invalid_properties.push('invalid value for "company_id", company_id cannot be nil.')
|
167
|
-
end
|
168
|
-
|
169
|
-
if @company_id.to_s.length < 1
|
170
|
-
invalid_properties.push('invalid value for "company_id", the character length must be great than or equal to 1.')
|
171
|
-
end
|
172
|
-
|
173
163
|
invalid_properties
|
174
164
|
end
|
175
165
|
|
@@ -183,8 +173,6 @@ module AvalaraSdk::A1099::V2
|
|
183
173
|
return false if @email.to_s.length < 1
|
184
174
|
return false if @name.nil?
|
185
175
|
return false if @name.to_s.length < 1
|
186
|
-
return false if @company_id.nil?
|
187
|
-
return false if @company_id.to_s.length < 1
|
188
176
|
true
|
189
177
|
end
|
190
178
|
|
@@ -226,20 +214,6 @@ module AvalaraSdk::A1099::V2
|
|
226
214
|
@name = name
|
227
215
|
end
|
228
216
|
|
229
|
-
# Custom attribute writer method with validation
|
230
|
-
# @param [Object] company_id Value to be assigned
|
231
|
-
def company_id=(company_id)
|
232
|
-
if company_id.nil?
|
233
|
-
fail ArgumentError, 'company_id cannot be nil'
|
234
|
-
end
|
235
|
-
|
236
|
-
if company_id.to_s.length < 1
|
237
|
-
fail ArgumentError, 'invalid value for "company_id", the character length must be great than or equal to 1.'
|
238
|
-
end
|
239
|
-
|
240
|
-
@company_id = company_id
|
241
|
-
end
|
242
|
-
|
243
217
|
# Checks equality by comparing each attribute.
|
244
218
|
# @param [Object] Object to be compared
|
245
219
|
def ==(o)
|
@@ -23,13 +23,13 @@ module AvalaraSdk::A1099::V2
|
|
23
23
|
# The name of the disregarded entity receiving the payment (if applicable).
|
24
24
|
attr_accessor :disregarded_entity
|
25
25
|
|
26
|
-
# The entity type.
|
26
|
+
# The entity type. Available values: - 1: Corporation - 2: Disregarded entity - 3: Partnership - 4: Simple trust - 5: Grantor trust - 6: Complex trust - 7: Estate - 8: Foreign Government - Controlled Entity - 9: Central Bank of Issue - 10: Tax-exempt organization - 11: Private foundation - 12: International organization - 13: Foreign Government - Controlled Integral Part
|
27
27
|
attr_accessor :entity_type
|
28
28
|
|
29
29
|
# Indicates whether the entity is making a treaty claim.
|
30
30
|
attr_accessor :making_treaty_claim
|
31
31
|
|
32
|
-
# The FATCA status.
|
32
|
+
# The FATCA status. Available values: - 1: Nonparticipating FFI (including a limited FFI or an FFI related to a Reporting IGA FFI other than a deemed-compliant FFI, participating FFI, or exempt beneficial owner) - 2: Participating FFI - 3: Reporting Model 1 FFI - 4: Reporting Model 2 FFI - 5: Registered deemed-compliant FFI (other than a reporting Model 1 FFI, sponsored FFI, or nonreporting IGA FFI covered in Part XII) - 6: Sponsored FFI that has not obtained a GIIN - 7: Certified deemed-compliant nonregistering local bank - 8: Certified deemed-compliant FFI with only low-value accounts - 9: Certified deemed-compliant sponsored, closely held investment vehicle - 10: Certified deemed-compliant limited life debt investment entity - 11: Certified deemed-compliant investment advisors and investment managers - 12: Owner-documented FFI - 13: Restricted distributor - 14: Nonreporting IGA FFI - 15: Foreign government, government of a U.S. possession, or foreign central bank of issue - 16: International organization - 17: Exempt retirement plans - 18: Entity wholly owned by exempt beneficial owners - 19: Territory financial institution - 20: Nonfinancial group entity - 21: Excepted nonfinancial start-up company - 22: Excepted nonfinancial entity in liquidation or bankruptcy - 23: 501(c) organization - 24: Nonprofit organization - 25: Publicly traded NFFE or NFFE affiliate of a publicly traded corporation - 26: Excepted territory NFFE - 27: Active NFFE - 28: Passive NFFE - 29: Excepted inter-affiliate FFI - 30: Direct reporting NFFE - 31: Sponsored direct reporting NFFE - 32: Account that is not a financial account
|
33
33
|
attr_accessor :fatca_status
|
34
34
|
|
35
35
|
# The residential address of the individual or entity.
|
@@ -80,7 +80,7 @@ module AvalaraSdk::A1099::V2
|
|
80
80
|
# A reference number for the form.
|
81
81
|
attr_accessor :reference_number
|
82
82
|
|
83
|
-
# The FATCA status of disregarded entity or branch receiving payment.
|
83
|
+
# The FATCA status of disregarded entity or branch receiving payment. Available values: - 1: Limited Branch - 2: U.S. Branch - 3: Participating FFI - 4: Reporting Model 1 FFI - 5: Reporting Model 2 FFI
|
84
84
|
attr_accessor :disregarded_entity_fatca_status
|
85
85
|
|
86
86
|
# The address for disregarded entities.
|
@@ -110,7 +110,7 @@ module AvalaraSdk::A1099::V2
|
|
110
110
|
# Certifies that the beneficial owner is eligible for treaty benefits and meets any limitation on benefits requirements.
|
111
111
|
attr_accessor :benefit_limitation_certification
|
112
112
|
|
113
|
-
# The benefit limitation for tax treaty claims.
|
113
|
+
# The benefit limitation for tax treaty claims. Available values: - 1: Government - 2: Tax exempt pension trust or pension fund - 3: Other tax exempt organization - 4: Publicly traded corporation - 5: Subsidiary of a publicly traded corporation - 6: Company that meets the ownership and base erosion test - 7: Company that meets the derivative benefits test - 8: Company with an item of income that meets active trade or business test - 9: Favorable discretionary determination by the U.S. competent authority received - 10: Other
|
114
114
|
attr_accessor :benefit_limitation
|
115
115
|
|
116
116
|
# Certifies that the beneficial owner claims treaty benefits and meets the qualified resident status for specific U.S. source income.
|
@@ -182,7 +182,7 @@ module AvalaraSdk::A1099::V2
|
|
182
182
|
# The country for the applicable IGA with the United States.
|
183
183
|
attr_accessor :iga_country
|
184
184
|
|
185
|
-
# The applicable IGA model.
|
185
|
+
# The applicable IGA model. Available values: - 1: Model 1 IGA - 2: Model 2 IGA
|
186
186
|
attr_accessor :iga_model
|
187
187
|
|
188
188
|
# Specifies how the applicable IGA is treated under the IGA provisions or Treasury regulations.
|
@@ -305,7 +305,7 @@ module AvalaraSdk::A1099::V2
|
|
305
305
|
# The signature of the form.
|
306
306
|
attr_accessor :signature
|
307
307
|
|
308
|
-
# The ID of the associated company.
|
308
|
+
# The ID of the associated company. Required when creating a form.
|
309
309
|
attr_accessor :company_id
|
310
310
|
|
311
311
|
# A reference identifier for the form.
|
@@ -678,10 +678,14 @@ module AvalaraSdk::A1099::V2
|
|
678
678
|
|
679
679
|
if attributes.key?(:'name')
|
680
680
|
self.name = attributes[:'name']
|
681
|
+
else
|
682
|
+
self.name = nil
|
681
683
|
end
|
682
684
|
|
683
685
|
if attributes.key?(:'citizenship_country')
|
684
686
|
self.citizenship_country = attributes[:'citizenship_country']
|
687
|
+
else
|
688
|
+
self.citizenship_country = nil
|
685
689
|
end
|
686
690
|
|
687
691
|
if attributes.key?(:'disregarded_entity')
|
@@ -690,6 +694,8 @@ module AvalaraSdk::A1099::V2
|
|
690
694
|
|
691
695
|
if attributes.key?(:'entity_type')
|
692
696
|
self.entity_type = attributes[:'entity_type']
|
697
|
+
else
|
698
|
+
self.entity_type = nil
|
693
699
|
end
|
694
700
|
|
695
701
|
if attributes.key?(:'making_treaty_claim')
|
@@ -698,6 +704,8 @@ module AvalaraSdk::A1099::V2
|
|
698
704
|
|
699
705
|
if attributes.key?(:'fatca_status')
|
700
706
|
self.fatca_status = attributes[:'fatca_status']
|
707
|
+
else
|
708
|
+
self.fatca_status = nil
|
701
709
|
end
|
702
710
|
|
703
711
|
if attributes.key?(:'residence_address')
|
@@ -718,6 +726,8 @@ module AvalaraSdk::A1099::V2
|
|
718
726
|
|
719
727
|
if attributes.key?(:'residence_country')
|
720
728
|
self.residence_country = attributes[:'residence_country']
|
729
|
+
else
|
730
|
+
self.residence_country = nil
|
721
731
|
end
|
722
732
|
|
723
733
|
if attributes.key?(:'residence_is_mailing')
|
@@ -1068,8 +1078,6 @@ module AvalaraSdk::A1099::V2
|
|
1068
1078
|
|
1069
1079
|
if attributes.key?(:'company_id')
|
1070
1080
|
self.company_id = attributes[:'company_id']
|
1071
|
-
else
|
1072
|
-
self.company_id = nil
|
1073
1081
|
end
|
1074
1082
|
|
1075
1083
|
if attributes.key?(:'reference_id')
|
@@ -1086,12 +1094,24 @@ module AvalaraSdk::A1099::V2
|
|
1086
1094
|
def list_invalid_properties
|
1087
1095
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
1088
1096
|
invalid_properties = Array.new
|
1089
|
-
if @
|
1090
|
-
invalid_properties.push('invalid value for "
|
1097
|
+
if @name.nil?
|
1098
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
1099
|
+
end
|
1100
|
+
|
1101
|
+
if @citizenship_country.nil?
|
1102
|
+
invalid_properties.push('invalid value for "citizenship_country", citizenship_country cannot be nil.')
|
1103
|
+
end
|
1104
|
+
|
1105
|
+
if @entity_type.nil?
|
1106
|
+
invalid_properties.push('invalid value for "entity_type", entity_type cannot be nil.')
|
1107
|
+
end
|
1108
|
+
|
1109
|
+
if @fatca_status.nil?
|
1110
|
+
invalid_properties.push('invalid value for "fatca_status", fatca_status cannot be nil.')
|
1091
1111
|
end
|
1092
1112
|
|
1093
|
-
if @
|
1094
|
-
invalid_properties.push('invalid value for "
|
1113
|
+
if @residence_country.nil?
|
1114
|
+
invalid_properties.push('invalid value for "residence_country", residence_country cannot be nil.')
|
1095
1115
|
end
|
1096
1116
|
|
1097
1117
|
invalid_properties
|
@@ -1103,8 +1123,11 @@ module AvalaraSdk::A1099::V2
|
|
1103
1123
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
1104
1124
|
type_validator = EnumAttributeValidator.new('String', ["W4", "W8Ben", "W8BenE", "W8Imy", "W9"])
|
1105
1125
|
return false unless type_validator.valid?(@type)
|
1106
|
-
return false if @
|
1107
|
-
return false if @
|
1126
|
+
return false if @name.nil?
|
1127
|
+
return false if @citizenship_country.nil?
|
1128
|
+
return false if @entity_type.nil?
|
1129
|
+
return false if @fatca_status.nil?
|
1130
|
+
return false if @residence_country.nil?
|
1108
1131
|
true
|
1109
1132
|
end
|
1110
1133
|
|
@@ -1118,20 +1141,6 @@ module AvalaraSdk::A1099::V2
|
|
1118
1141
|
@type = type
|
1119
1142
|
end
|
1120
1143
|
|
1121
|
-
# Custom attribute writer method with validation
|
1122
|
-
# @param [Object] company_id Value to be assigned
|
1123
|
-
def company_id=(company_id)
|
1124
|
-
if company_id.nil?
|
1125
|
-
fail ArgumentError, 'company_id cannot be nil'
|
1126
|
-
end
|
1127
|
-
|
1128
|
-
if company_id.to_s.length < 1
|
1129
|
-
fail ArgumentError, 'invalid value for "company_id", the character length must be great than or equal to 1.'
|
1130
|
-
end
|
1131
|
-
|
1132
|
-
@company_id = company_id
|
1133
|
-
end
|
1134
|
-
|
1135
1144
|
# Checks equality by comparing each attribute.
|
1136
1145
|
# @param [Object] Object to be compared
|
1137
1146
|
def ==(o)
|