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
@@ -87,17 +87,17 @@ module AvalaraSdk::A1099::V2
|
|
87
87
|
|
88
88
|
attr_accessor :email
|
89
89
|
|
90
|
-
attr_accessor :
|
90
|
+
attr_accessor :tin_type
|
91
91
|
|
92
92
|
attr_accessor :tin
|
93
93
|
|
94
|
-
attr_accessor :
|
94
|
+
attr_accessor :recipient_name
|
95
95
|
|
96
|
-
attr_accessor :
|
96
|
+
attr_accessor :recipient_second_name
|
97
97
|
|
98
98
|
attr_accessor :address
|
99
99
|
|
100
|
-
attr_accessor :
|
100
|
+
attr_accessor :address2
|
101
101
|
|
102
102
|
attr_accessor :city
|
103
103
|
|
@@ -180,12 +180,12 @@ module AvalaraSdk::A1099::V2
|
|
180
180
|
:'address_verification_status' => :'addressVerificationStatus',
|
181
181
|
:'reference_id' => :'referenceId',
|
182
182
|
:'email' => :'email',
|
183
|
-
:'
|
183
|
+
:'tin_type' => :'tinType',
|
184
184
|
:'tin' => :'tin',
|
185
|
-
:'
|
186
|
-
:'
|
185
|
+
:'recipient_name' => :'recipientName',
|
186
|
+
:'recipient_second_name' => :'recipientSecondName',
|
187
187
|
:'address' => :'address',
|
188
|
-
:'
|
188
|
+
:'address2' => :'address2',
|
189
189
|
:'city' => :'city',
|
190
190
|
:'state' => :'state',
|
191
191
|
:'zip' => :'zip',
|
@@ -244,12 +244,12 @@ module AvalaraSdk::A1099::V2
|
|
244
244
|
:'address_verification_status' => :'Form1099StatusDetail',
|
245
245
|
:'reference_id' => :'String',
|
246
246
|
:'email' => :'String',
|
247
|
-
:'
|
247
|
+
:'tin_type' => :'String',
|
248
248
|
:'tin' => :'String',
|
249
|
-
:'
|
250
|
-
:'
|
249
|
+
:'recipient_name' => :'String',
|
250
|
+
:'recipient_second_name' => :'String',
|
251
251
|
:'address' => :'String',
|
252
|
-
:'
|
252
|
+
:'address2' => :'String',
|
253
253
|
:'city' => :'String',
|
254
254
|
:'state' => :'String',
|
255
255
|
:'zip' => :'String',
|
@@ -289,12 +289,12 @@ module AvalaraSdk::A1099::V2
|
|
289
289
|
:'address_verification_status',
|
290
290
|
:'reference_id',
|
291
291
|
:'email',
|
292
|
-
:'
|
292
|
+
:'tin_type',
|
293
293
|
:'tin',
|
294
|
-
:'
|
295
|
-
:'
|
294
|
+
:'recipient_name',
|
295
|
+
:'recipient_second_name',
|
296
296
|
:'address',
|
297
|
-
:'
|
297
|
+
:'address2',
|
298
298
|
:'city',
|
299
299
|
:'state',
|
300
300
|
:'zip',
|
@@ -481,28 +481,28 @@ module AvalaraSdk::A1099::V2
|
|
481
481
|
self.email = attributes[:'email']
|
482
482
|
end
|
483
483
|
|
484
|
-
if attributes.key?(:'
|
485
|
-
self.
|
484
|
+
if attributes.key?(:'tin_type')
|
485
|
+
self.tin_type = attributes[:'tin_type']
|
486
486
|
end
|
487
487
|
|
488
488
|
if attributes.key?(:'tin')
|
489
489
|
self.tin = attributes[:'tin']
|
490
490
|
end
|
491
491
|
|
492
|
-
if attributes.key?(:'
|
493
|
-
self.
|
492
|
+
if attributes.key?(:'recipient_name')
|
493
|
+
self.recipient_name = attributes[:'recipient_name']
|
494
494
|
end
|
495
495
|
|
496
|
-
if attributes.key?(:'
|
497
|
-
self.
|
496
|
+
if attributes.key?(:'recipient_second_name')
|
497
|
+
self.recipient_second_name = attributes[:'recipient_second_name']
|
498
498
|
end
|
499
499
|
|
500
500
|
if attributes.key?(:'address')
|
501
501
|
self.address = attributes[:'address']
|
502
502
|
end
|
503
503
|
|
504
|
-
if attributes.key?(:'
|
505
|
-
self.
|
504
|
+
if attributes.key?(:'address2')
|
505
|
+
self.address2 = attributes[:'address2']
|
506
506
|
end
|
507
507
|
|
508
508
|
if attributes.key?(:'city')
|
@@ -638,12 +638,12 @@ module AvalaraSdk::A1099::V2
|
|
638
638
|
address_verification_status == o.address_verification_status &&
|
639
639
|
reference_id == o.reference_id &&
|
640
640
|
email == o.email &&
|
641
|
-
|
641
|
+
tin_type == o.tin_type &&
|
642
642
|
tin == o.tin &&
|
643
|
-
|
644
|
-
|
643
|
+
recipient_name == o.recipient_name &&
|
644
|
+
recipient_second_name == o.recipient_second_name &&
|
645
645
|
address == o.address &&
|
646
|
-
|
646
|
+
address2 == o.address2 &&
|
647
647
|
city == o.city &&
|
648
648
|
state == o.state &&
|
649
649
|
zip == o.zip &&
|
@@ -664,7 +664,7 @@ module AvalaraSdk::A1099::V2
|
|
664
664
|
# Calculates hash code according to all attributes.
|
665
665
|
# @return [Integer] Hash code
|
666
666
|
def hash
|
667
|
-
[filer_type, payment_type, payment_settlement_entity_name_phone_number, gross_amount_payment_card, card_not_present_transactions, merchant_category_code, payment_transaction_number, federal_income_tax_withheld, january, february, march, april, may, june, july, august, sept, october, november, december, id, type, issuer_id, issuer_reference_id, issuer_tin, tax_year, federal_efile, federal_efile_status, state_efile, state_efile_status, postal_mail, postal_mail_status, tin_match, tin_match_status, address_verification, address_verification_status, reference_id, email,
|
667
|
+
[filer_type, payment_type, payment_settlement_entity_name_phone_number, gross_amount_payment_card, card_not_present_transactions, merchant_category_code, payment_transaction_number, federal_income_tax_withheld, january, february, march, april, may, june, july, august, sept, october, november, december, id, type, issuer_id, issuer_reference_id, issuer_tin, tax_year, federal_efile, federal_efile_status, state_efile, state_efile_status, postal_mail, postal_mail_status, tin_match, tin_match_status, address_verification, address_verification_status, reference_id, email, tin_type, tin, recipient_name, recipient_second_name, address, address2, city, state, zip, foreign_province, country_code, validation_errors, created_at, updated_at, state_and_local_withholding].hash
|
668
668
|
end
|
669
669
|
|
670
670
|
# Builds the object from hash
|
@@ -11,8 +11,6 @@ require 'time'
|
|
11
11
|
|
12
12
|
module AvalaraSdk::A1099::V2
|
13
13
|
class Form1099KListItem
|
14
|
-
attr_accessor :state_and_local_withholding
|
15
|
-
|
16
14
|
attr_accessor :filer_type
|
17
15
|
|
18
16
|
attr_accessor :payment_type
|
@@ -53,14 +51,14 @@ module AvalaraSdk::A1099::V2
|
|
53
51
|
|
54
52
|
attr_accessor :december
|
55
53
|
|
56
|
-
attr_accessor :issuer_id
|
57
|
-
|
58
54
|
attr_accessor :issuer_reference_id
|
59
55
|
|
60
56
|
attr_accessor :issuer_tin
|
61
57
|
|
62
58
|
attr_accessor :tax_year
|
63
59
|
|
60
|
+
attr_accessor :issuer_id
|
61
|
+
|
64
62
|
attr_accessor :reference_id
|
65
63
|
|
66
64
|
attr_accessor :recipient_name
|
@@ -71,9 +69,9 @@ module AvalaraSdk::A1099::V2
|
|
71
69
|
|
72
70
|
attr_accessor :recipient_second_name
|
73
71
|
|
74
|
-
attr_accessor :
|
72
|
+
attr_accessor :address
|
75
73
|
|
76
|
-
attr_accessor :
|
74
|
+
attr_accessor :address2
|
77
75
|
|
78
76
|
attr_accessor :city
|
79
77
|
|
@@ -101,6 +99,8 @@ module AvalaraSdk::A1099::V2
|
|
101
99
|
|
102
100
|
attr_accessor :address_verification
|
103
101
|
|
102
|
+
attr_accessor :state_and_local_withholding
|
103
|
+
|
104
104
|
class EnumAttributeValidator
|
105
105
|
attr_reader :datatype
|
106
106
|
attr_reader :allowable_values
|
@@ -126,7 +126,6 @@ module AvalaraSdk::A1099::V2
|
|
126
126
|
# Attribute mapping from ruby-style variable name to JSON key.
|
127
127
|
def self.attribute_map
|
128
128
|
{
|
129
|
-
:'state_and_local_withholding' => :'stateAndLocalWithholding',
|
130
129
|
:'filer_type' => :'filerType',
|
131
130
|
:'payment_type' => :'paymentType',
|
132
131
|
:'payment_settlement_entity_name_phone_number' => :'paymentSettlementEntityNamePhoneNumber',
|
@@ -147,17 +146,17 @@ module AvalaraSdk::A1099::V2
|
|
147
146
|
:'october' => :'october',
|
148
147
|
:'november' => :'november',
|
149
148
|
:'december' => :'december',
|
150
|
-
:'issuer_id' => :'issuerId',
|
151
149
|
:'issuer_reference_id' => :'issuerReferenceId',
|
152
150
|
:'issuer_tin' => :'issuerTin',
|
153
151
|
:'tax_year' => :'taxYear',
|
152
|
+
:'issuer_id' => :'issuerId',
|
154
153
|
:'reference_id' => :'referenceId',
|
155
154
|
:'recipient_name' => :'recipientName',
|
156
155
|
:'recipient_tin' => :'recipientTin',
|
157
156
|
:'tin_type' => :'tinType',
|
158
157
|
:'recipient_second_name' => :'recipientSecondName',
|
159
|
-
:'
|
160
|
-
:'
|
158
|
+
:'address' => :'address',
|
159
|
+
:'address2' => :'address2',
|
161
160
|
:'city' => :'city',
|
162
161
|
:'state' => :'state',
|
163
162
|
:'zip' => :'zip',
|
@@ -170,7 +169,8 @@ module AvalaraSdk::A1099::V2
|
|
170
169
|
:'postal_mail' => :'postalMail',
|
171
170
|
:'state_e_file' => :'stateEFile',
|
172
171
|
:'tin_match' => :'tinMatch',
|
173
|
-
:'address_verification' => :'addressVerification'
|
172
|
+
:'address_verification' => :'addressVerification',
|
173
|
+
:'state_and_local_withholding' => :'stateAndLocalWithholding'
|
174
174
|
}
|
175
175
|
end
|
176
176
|
|
@@ -182,7 +182,6 @@ module AvalaraSdk::A1099::V2
|
|
182
182
|
# Attribute type mapping.
|
183
183
|
def self.openapi_types
|
184
184
|
{
|
185
|
-
:'state_and_local_withholding' => :'StateAndLocalWithholding',
|
186
185
|
:'filer_type' => :'String',
|
187
186
|
:'payment_type' => :'String',
|
188
187
|
:'payment_settlement_entity_name_phone_number' => :'String',
|
@@ -203,17 +202,17 @@ module AvalaraSdk::A1099::V2
|
|
203
202
|
:'october' => :'Float',
|
204
203
|
:'november' => :'Float',
|
205
204
|
:'december' => :'Float',
|
206
|
-
:'issuer_id' => :'String',
|
207
205
|
:'issuer_reference_id' => :'String',
|
208
206
|
:'issuer_tin' => :'String',
|
209
207
|
:'tax_year' => :'Integer',
|
208
|
+
:'issuer_id' => :'String',
|
210
209
|
:'reference_id' => :'String',
|
211
210
|
:'recipient_name' => :'String',
|
212
211
|
:'recipient_tin' => :'String',
|
213
|
-
:'tin_type' => :'
|
212
|
+
:'tin_type' => :'String',
|
214
213
|
:'recipient_second_name' => :'String',
|
215
|
-
:'
|
216
|
-
:'
|
214
|
+
:'address' => :'String',
|
215
|
+
:'address2' => :'String',
|
217
216
|
:'city' => :'String',
|
218
217
|
:'state' => :'String',
|
219
218
|
:'zip' => :'String',
|
@@ -226,14 +225,14 @@ module AvalaraSdk::A1099::V2
|
|
226
225
|
:'postal_mail' => :'Boolean',
|
227
226
|
:'state_e_file' => :'Boolean',
|
228
227
|
:'tin_match' => :'Boolean',
|
229
|
-
:'address_verification' => :'Boolean'
|
228
|
+
:'address_verification' => :'Boolean',
|
229
|
+
:'state_and_local_withholding' => :'StateAndLocalWithholdingRequest'
|
230
230
|
}
|
231
231
|
end
|
232
232
|
|
233
233
|
# List of attributes with nullable: true
|
234
234
|
def self.openapi_nullable
|
235
235
|
Set.new([
|
236
|
-
:'state_and_local_withholding',
|
237
236
|
:'payment_settlement_entity_name_phone_number',
|
238
237
|
:'card_not_present_transactions',
|
239
238
|
:'merchant_category_code',
|
@@ -250,13 +249,21 @@ module AvalaraSdk::A1099::V2
|
|
250
249
|
:'october',
|
251
250
|
:'november',
|
252
251
|
:'december',
|
252
|
+
:'issuer_id',
|
253
|
+
:'reference_id',
|
254
|
+
:'recipient_name',
|
255
|
+
:'address2',
|
256
|
+
:'recipient_email',
|
257
|
+
:'account_number',
|
258
|
+
:'office_code',
|
259
|
+
:'recipient_non_us_province',
|
253
260
|
])
|
254
261
|
end
|
255
262
|
|
256
263
|
# List of class defined in allOf (OpenAPI v3)
|
257
264
|
def self.openapi_all_of
|
258
265
|
[
|
259
|
-
:'
|
266
|
+
:'FormRequestCsvBase'
|
260
267
|
]
|
261
268
|
end
|
262
269
|
|
@@ -275,10 +282,6 @@ module AvalaraSdk::A1099::V2
|
|
275
282
|
h[k.to_sym] = v
|
276
283
|
}
|
277
284
|
|
278
|
-
if attributes.key?(:'state_and_local_withholding')
|
279
|
-
self.state_and_local_withholding = attributes[:'state_and_local_withholding']
|
280
|
-
end
|
281
|
-
|
282
285
|
if attributes.key?(:'filer_type')
|
283
286
|
self.filer_type = attributes[:'filer_type']
|
284
287
|
end
|
@@ -359,10 +362,6 @@ module AvalaraSdk::A1099::V2
|
|
359
362
|
self.december = attributes[:'december']
|
360
363
|
end
|
361
364
|
|
362
|
-
if attributes.key?(:'issuer_id')
|
363
|
-
self.issuer_id = attributes[:'issuer_id']
|
364
|
-
end
|
365
|
-
|
366
365
|
if attributes.key?(:'issuer_reference_id')
|
367
366
|
self.issuer_reference_id = attributes[:'issuer_reference_id']
|
368
367
|
end
|
@@ -375,6 +374,10 @@ module AvalaraSdk::A1099::V2
|
|
375
374
|
self.tax_year = attributes[:'tax_year']
|
376
375
|
end
|
377
376
|
|
377
|
+
if attributes.key?(:'issuer_id')
|
378
|
+
self.issuer_id = attributes[:'issuer_id']
|
379
|
+
end
|
380
|
+
|
378
381
|
if attributes.key?(:'reference_id')
|
379
382
|
self.reference_id = attributes[:'reference_id']
|
380
383
|
end
|
@@ -395,12 +398,12 @@ module AvalaraSdk::A1099::V2
|
|
395
398
|
self.recipient_second_name = attributes[:'recipient_second_name']
|
396
399
|
end
|
397
400
|
|
398
|
-
if attributes.key?(:'
|
399
|
-
self.
|
401
|
+
if attributes.key?(:'address')
|
402
|
+
self.address = attributes[:'address']
|
400
403
|
end
|
401
404
|
|
402
|
-
if attributes.key?(:'
|
403
|
-
self.
|
405
|
+
if attributes.key?(:'address2')
|
406
|
+
self.address2 = attributes[:'address2']
|
404
407
|
end
|
405
408
|
|
406
409
|
if attributes.key?(:'city')
|
@@ -454,6 +457,10 @@ module AvalaraSdk::A1099::V2
|
|
454
457
|
if attributes.key?(:'address_verification')
|
455
458
|
self.address_verification = attributes[:'address_verification']
|
456
459
|
end
|
460
|
+
|
461
|
+
if attributes.key?(:'state_and_local_withholding')
|
462
|
+
self.state_and_local_withholding = attributes[:'state_and_local_withholding']
|
463
|
+
end
|
457
464
|
end
|
458
465
|
|
459
466
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -472,6 +479,8 @@ module AvalaraSdk::A1099::V2
|
|
472
479
|
return false unless filer_type_validator.valid?(@filer_type)
|
473
480
|
payment_type_validator = EnumAttributeValidator.new('String', ["MerchantPaymentCard", "ThirdPartyNetwork"])
|
474
481
|
return false unless payment_type_validator.valid?(@payment_type)
|
482
|
+
tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
|
483
|
+
return false unless tin_type_validator.valid?(@tin_type)
|
475
484
|
true
|
476
485
|
end
|
477
486
|
|
@@ -495,12 +504,21 @@ module AvalaraSdk::A1099::V2
|
|
495
504
|
@payment_type = payment_type
|
496
505
|
end
|
497
506
|
|
507
|
+
# Custom attribute writer method checking allowed values (enum).
|
508
|
+
# @param [Object] tin_type Object to be assigned
|
509
|
+
def tin_type=(tin_type)
|
510
|
+
validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
|
511
|
+
unless validator.valid?(tin_type)
|
512
|
+
fail ArgumentError, "invalid value for \"tin_type\", must be one of #{validator.allowable_values}."
|
513
|
+
end
|
514
|
+
@tin_type = tin_type
|
515
|
+
end
|
516
|
+
|
498
517
|
# Checks equality by comparing each attribute.
|
499
518
|
# @param [Object] Object to be compared
|
500
519
|
def ==(o)
|
501
520
|
return true if self.equal?(o)
|
502
521
|
self.class == o.class &&
|
503
|
-
state_and_local_withholding == o.state_and_local_withholding &&
|
504
522
|
filer_type == o.filer_type &&
|
505
523
|
payment_type == o.payment_type &&
|
506
524
|
payment_settlement_entity_name_phone_number == o.payment_settlement_entity_name_phone_number &&
|
@@ -521,17 +539,17 @@ module AvalaraSdk::A1099::V2
|
|
521
539
|
october == o.october &&
|
522
540
|
november == o.november &&
|
523
541
|
december == o.december &&
|
524
|
-
issuer_id == o.issuer_id &&
|
525
542
|
issuer_reference_id == o.issuer_reference_id &&
|
526
543
|
issuer_tin == o.issuer_tin &&
|
527
544
|
tax_year == o.tax_year &&
|
545
|
+
issuer_id == o.issuer_id &&
|
528
546
|
reference_id == o.reference_id &&
|
529
547
|
recipient_name == o.recipient_name &&
|
530
548
|
recipient_tin == o.recipient_tin &&
|
531
549
|
tin_type == o.tin_type &&
|
532
550
|
recipient_second_name == o.recipient_second_name &&
|
533
|
-
|
534
|
-
|
551
|
+
address == o.address &&
|
552
|
+
address2 == o.address2 &&
|
535
553
|
city == o.city &&
|
536
554
|
state == o.state &&
|
537
555
|
zip == o.zip &&
|
@@ -544,7 +562,8 @@ module AvalaraSdk::A1099::V2
|
|
544
562
|
postal_mail == o.postal_mail &&
|
545
563
|
state_e_file == o.state_e_file &&
|
546
564
|
tin_match == o.tin_match &&
|
547
|
-
address_verification == o.address_verification
|
565
|
+
address_verification == o.address_verification &&
|
566
|
+
state_and_local_withholding == o.state_and_local_withholding
|
548
567
|
end
|
549
568
|
|
550
569
|
# @see the `==` method
|
@@ -556,7 +575,7 @@ module AvalaraSdk::A1099::V2
|
|
556
575
|
# Calculates hash code according to all attributes.
|
557
576
|
# @return [Integer] Hash code
|
558
577
|
def hash
|
559
|
-
[
|
578
|
+
[filer_type, payment_type, payment_settlement_entity_name_phone_number, gross_amount_payment_card, card_not_present_transactions, merchant_category_code, payment_transaction_number, federal_income_tax_withheld, january, february, march, april, may, june, july, august, sept, october, november, december, issuer_reference_id, issuer_tin, tax_year, 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
|
560
579
|
end
|
561
580
|
|
562
581
|
# Builds the object from hash
|