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
@@ -30,43 +30,43 @@ module AvalaraSdk::A1099::V2
|
|
30
30
|
attr_accessor :birth_date
|
31
31
|
|
32
32
|
# Coverage indicator for all 12 months
|
33
|
-
attr_accessor :
|
33
|
+
attr_accessor :covered_all_months
|
34
34
|
|
35
35
|
# Coverage indicator for January
|
36
|
-
attr_accessor :
|
36
|
+
attr_accessor :covered_january
|
37
37
|
|
38
38
|
# Coverage indicator for February
|
39
|
-
attr_accessor :
|
39
|
+
attr_accessor :covered_february
|
40
40
|
|
41
41
|
# Coverage indicator for March
|
42
|
-
attr_accessor :
|
42
|
+
attr_accessor :covered_march
|
43
43
|
|
44
44
|
# Coverage indicator for April
|
45
|
-
attr_accessor :
|
45
|
+
attr_accessor :covered_april
|
46
46
|
|
47
47
|
# Coverage indicator for May
|
48
|
-
attr_accessor :
|
48
|
+
attr_accessor :covered_may
|
49
49
|
|
50
50
|
# Coverage indicator for June
|
51
|
-
attr_accessor :
|
51
|
+
attr_accessor :covered_june
|
52
52
|
|
53
53
|
# Coverage indicator for July
|
54
|
-
attr_accessor :
|
54
|
+
attr_accessor :covered_july
|
55
55
|
|
56
56
|
# Coverage indicator for August
|
57
|
-
attr_accessor :
|
57
|
+
attr_accessor :covered_august
|
58
58
|
|
59
59
|
# Coverage indicator for September
|
60
|
-
attr_accessor :
|
60
|
+
attr_accessor :covered_september
|
61
61
|
|
62
62
|
# Coverage indicator for October
|
63
|
-
attr_accessor :
|
63
|
+
attr_accessor :covered_october
|
64
64
|
|
65
65
|
# Coverage indicator for November
|
66
|
-
attr_accessor :
|
66
|
+
attr_accessor :covered_november
|
67
67
|
|
68
68
|
# Coverage indicator for December
|
69
|
-
attr_accessor :
|
69
|
+
attr_accessor :covered_december
|
70
70
|
|
71
71
|
# Attribute mapping from ruby-style variable name to JSON key.
|
72
72
|
def self.attribute_map
|
@@ -77,19 +77,19 @@ module AvalaraSdk::A1099::V2
|
|
77
77
|
:'name_suffix' => :'nameSuffix',
|
78
78
|
:'tin' => :'tin',
|
79
79
|
:'birth_date' => :'birthDate',
|
80
|
-
:'
|
81
|
-
:'
|
82
|
-
:'
|
83
|
-
:'
|
84
|
-
:'
|
85
|
-
:'
|
86
|
-
:'
|
87
|
-
:'
|
88
|
-
:'
|
89
|
-
:'
|
90
|
-
:'
|
91
|
-
:'
|
92
|
-
:'
|
80
|
+
:'covered_all_months' => :'coveredAllMonths',
|
81
|
+
:'covered_january' => :'coveredJanuary',
|
82
|
+
:'covered_february' => :'coveredFebruary',
|
83
|
+
:'covered_march' => :'coveredMarch',
|
84
|
+
:'covered_april' => :'coveredApril',
|
85
|
+
:'covered_may' => :'coveredMay',
|
86
|
+
:'covered_june' => :'coveredJune',
|
87
|
+
:'covered_july' => :'coveredJuly',
|
88
|
+
:'covered_august' => :'coveredAugust',
|
89
|
+
:'covered_september' => :'coveredSeptember',
|
90
|
+
:'covered_october' => :'coveredOctober',
|
91
|
+
:'covered_november' => :'coveredNovember',
|
92
|
+
:'covered_december' => :'coveredDecember'
|
93
93
|
}
|
94
94
|
end
|
95
95
|
|
@@ -107,19 +107,19 @@ module AvalaraSdk::A1099::V2
|
|
107
107
|
:'name_suffix' => :'String',
|
108
108
|
:'tin' => :'String',
|
109
109
|
:'birth_date' => :'Time',
|
110
|
-
:'
|
111
|
-
:'
|
112
|
-
:'
|
113
|
-
:'
|
114
|
-
:'
|
115
|
-
:'
|
116
|
-
:'
|
117
|
-
:'
|
118
|
-
:'
|
119
|
-
:'
|
120
|
-
:'
|
121
|
-
:'
|
122
|
-
:'
|
110
|
+
:'covered_all_months' => :'Boolean',
|
111
|
+
:'covered_january' => :'Boolean',
|
112
|
+
:'covered_february' => :'Boolean',
|
113
|
+
:'covered_march' => :'Boolean',
|
114
|
+
:'covered_april' => :'Boolean',
|
115
|
+
:'covered_may' => :'Boolean',
|
116
|
+
:'covered_june' => :'Boolean',
|
117
|
+
:'covered_july' => :'Boolean',
|
118
|
+
:'covered_august' => :'Boolean',
|
119
|
+
:'covered_september' => :'Boolean',
|
120
|
+
:'covered_october' => :'Boolean',
|
121
|
+
:'covered_november' => :'Boolean',
|
122
|
+
:'covered_december' => :'Boolean'
|
123
123
|
}
|
124
124
|
end
|
125
125
|
|
@@ -174,56 +174,56 @@ module AvalaraSdk::A1099::V2
|
|
174
174
|
self.birth_date = attributes[:'birth_date']
|
175
175
|
end
|
176
176
|
|
177
|
-
if attributes.key?(:'
|
178
|
-
self.
|
177
|
+
if attributes.key?(:'covered_all_months')
|
178
|
+
self.covered_all_months = attributes[:'covered_all_months']
|
179
179
|
end
|
180
180
|
|
181
|
-
if attributes.key?(:'
|
182
|
-
self.
|
181
|
+
if attributes.key?(:'covered_january')
|
182
|
+
self.covered_january = attributes[:'covered_january']
|
183
183
|
end
|
184
184
|
|
185
|
-
if attributes.key?(:'
|
186
|
-
self.
|
185
|
+
if attributes.key?(:'covered_february')
|
186
|
+
self.covered_february = attributes[:'covered_february']
|
187
187
|
end
|
188
188
|
|
189
|
-
if attributes.key?(:'
|
190
|
-
self.
|
189
|
+
if attributes.key?(:'covered_march')
|
190
|
+
self.covered_march = attributes[:'covered_march']
|
191
191
|
end
|
192
192
|
|
193
|
-
if attributes.key?(:'
|
194
|
-
self.
|
193
|
+
if attributes.key?(:'covered_april')
|
194
|
+
self.covered_april = attributes[:'covered_april']
|
195
195
|
end
|
196
196
|
|
197
|
-
if attributes.key?(:'
|
198
|
-
self.
|
197
|
+
if attributes.key?(:'covered_may')
|
198
|
+
self.covered_may = attributes[:'covered_may']
|
199
199
|
end
|
200
200
|
|
201
|
-
if attributes.key?(:'
|
202
|
-
self.
|
201
|
+
if attributes.key?(:'covered_june')
|
202
|
+
self.covered_june = attributes[:'covered_june']
|
203
203
|
end
|
204
204
|
|
205
|
-
if attributes.key?(:'
|
206
|
-
self.
|
205
|
+
if attributes.key?(:'covered_july')
|
206
|
+
self.covered_july = attributes[:'covered_july']
|
207
207
|
end
|
208
208
|
|
209
|
-
if attributes.key?(:'
|
210
|
-
self.
|
209
|
+
if attributes.key?(:'covered_august')
|
210
|
+
self.covered_august = attributes[:'covered_august']
|
211
211
|
end
|
212
212
|
|
213
|
-
if attributes.key?(:'
|
214
|
-
self.
|
213
|
+
if attributes.key?(:'covered_september')
|
214
|
+
self.covered_september = attributes[:'covered_september']
|
215
215
|
end
|
216
216
|
|
217
|
-
if attributes.key?(:'
|
218
|
-
self.
|
217
|
+
if attributes.key?(:'covered_october')
|
218
|
+
self.covered_october = attributes[:'covered_october']
|
219
219
|
end
|
220
220
|
|
221
|
-
if attributes.key?(:'
|
222
|
-
self.
|
221
|
+
if attributes.key?(:'covered_november')
|
222
|
+
self.covered_november = attributes[:'covered_november']
|
223
223
|
end
|
224
224
|
|
225
|
-
if attributes.key?(:'
|
226
|
-
self.
|
225
|
+
if attributes.key?(:'covered_december')
|
226
|
+
self.covered_december = attributes[:'covered_december']
|
227
227
|
end
|
228
228
|
end
|
229
229
|
|
@@ -253,19 +253,19 @@ module AvalaraSdk::A1099::V2
|
|
253
253
|
name_suffix == o.name_suffix &&
|
254
254
|
tin == o.tin &&
|
255
255
|
birth_date == o.birth_date &&
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
256
|
+
covered_all_months == o.covered_all_months &&
|
257
|
+
covered_january == o.covered_january &&
|
258
|
+
covered_february == o.covered_february &&
|
259
|
+
covered_march == o.covered_march &&
|
260
|
+
covered_april == o.covered_april &&
|
261
|
+
covered_may == o.covered_may &&
|
262
|
+
covered_june == o.covered_june &&
|
263
|
+
covered_july == o.covered_july &&
|
264
|
+
covered_august == o.covered_august &&
|
265
|
+
covered_september == o.covered_september &&
|
266
|
+
covered_october == o.covered_october &&
|
267
|
+
covered_november == o.covered_november &&
|
268
|
+
covered_december == o.covered_december
|
269
269
|
end
|
270
270
|
|
271
271
|
# @see the `==` method
|
@@ -277,7 +277,7 @@ module AvalaraSdk::A1099::V2
|
|
277
277
|
# Calculates hash code according to all attributes.
|
278
278
|
# @return [Integer] Hash code
|
279
279
|
def hash
|
280
|
-
[first_name, middle_name, last_name, name_suffix, tin, birth_date,
|
280
|
+
[first_name, middle_name, last_name, name_suffix, tin, birth_date, covered_all_months, covered_january, covered_february, covered_march, covered_april, covered_may, covered_june, covered_july, covered_august, covered_september, covered_october, covered_november, covered_december].hash
|
281
281
|
end
|
282
282
|
|
283
283
|
# Builds the object from hash
|
@@ -18,6 +18,8 @@ module AvalaraSdk::A1099::V2
|
|
18
18
|
:'Form1042SListItemResponse',
|
19
19
|
:'Form1095BListItemResponse',
|
20
20
|
:'Form1099BaseResponse',
|
21
|
+
:'Form1099DivListItemResponse',
|
22
|
+
:'Form1099IntListItemResponse',
|
21
23
|
:'Form1099KListItemResponse',
|
22
24
|
:'Form1099MiscListItemResponse',
|
23
25
|
:'Form1099NecListItemResponse',
|
@@ -0,0 +1,221 @@
|
|
1
|
+
=begin
|
2
|
+
#Avalara 1099 & W-9 API Definition
|
3
|
+
|
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
|
+
|
6
|
+
|
7
|
+
=end
|
8
|
+
|
9
|
+
require 'date'
|
10
|
+
require 'time'
|
11
|
+
|
12
|
+
module AvalaraSdk::A1099::V2
|
13
|
+
class ErrorResponseItem
|
14
|
+
attr_accessor :type
|
15
|
+
|
16
|
+
attr_accessor :detail
|
17
|
+
|
18
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
19
|
+
def self.attribute_map
|
20
|
+
{
|
21
|
+
:'type' => :'type',
|
22
|
+
:'detail' => :'detail'
|
23
|
+
}
|
24
|
+
end
|
25
|
+
|
26
|
+
# Returns all the JSON keys this model knows about
|
27
|
+
def self.acceptable_attributes
|
28
|
+
attribute_map.values
|
29
|
+
end
|
30
|
+
|
31
|
+
# Attribute type mapping.
|
32
|
+
def self.openapi_types
|
33
|
+
{
|
34
|
+
:'type' => :'String',
|
35
|
+
:'detail' => :'String'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# List of attributes with nullable: true
|
40
|
+
def self.openapi_nullable
|
41
|
+
Set.new([
|
42
|
+
:'type',
|
43
|
+
:'detail'
|
44
|
+
])
|
45
|
+
end
|
46
|
+
|
47
|
+
# Initializes the object
|
48
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
49
|
+
def initialize(attributes = {})
|
50
|
+
if (!attributes.is_a?(Hash))
|
51
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AvalaraSdk::A1099::V2::ErrorResponseItem` initialize method"
|
52
|
+
end
|
53
|
+
|
54
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
55
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
56
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
57
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AvalaraSdk::A1099::V2::ErrorResponseItem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
58
|
+
end
|
59
|
+
h[k.to_sym] = v
|
60
|
+
}
|
61
|
+
|
62
|
+
if attributes.key?(:'type')
|
63
|
+
self.type = attributes[:'type']
|
64
|
+
end
|
65
|
+
|
66
|
+
if attributes.key?(:'detail')
|
67
|
+
self.detail = attributes[:'detail']
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
72
|
+
# @return Array for valid properties with the reasons
|
73
|
+
def list_invalid_properties
|
74
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
75
|
+
invalid_properties = Array.new
|
76
|
+
invalid_properties
|
77
|
+
end
|
78
|
+
|
79
|
+
# Check to see if the all the properties in the model are valid
|
80
|
+
# @return true if the model is valid
|
81
|
+
def valid?
|
82
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
83
|
+
true
|
84
|
+
end
|
85
|
+
|
86
|
+
# Checks equality by comparing each attribute.
|
87
|
+
# @param [Object] Object to be compared
|
88
|
+
def ==(o)
|
89
|
+
return true if self.equal?(o)
|
90
|
+
self.class == o.class &&
|
91
|
+
type == o.type &&
|
92
|
+
detail == o.detail
|
93
|
+
end
|
94
|
+
|
95
|
+
# @see the `==` method
|
96
|
+
# @param [Object] Object to be compared
|
97
|
+
def eql?(o)
|
98
|
+
self == o
|
99
|
+
end
|
100
|
+
|
101
|
+
# Calculates hash code according to all attributes.
|
102
|
+
# @return [Integer] Hash code
|
103
|
+
def hash
|
104
|
+
[type, detail].hash
|
105
|
+
end
|
106
|
+
|
107
|
+
# Builds the object from hash
|
108
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
109
|
+
# @return [Object] Returns the model itself
|
110
|
+
def self.build_from_hash(attributes)
|
111
|
+
return nil unless attributes.is_a?(Hash)
|
112
|
+
attributes = attributes.transform_keys(&:to_sym)
|
113
|
+
transformed_hash = {}
|
114
|
+
openapi_types.each_pair do |key, type|
|
115
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
116
|
+
transformed_hash["#{key}"] = nil
|
117
|
+
elsif type =~ /\AArray<(.*)>/i
|
118
|
+
# check to ensure the input is an array given that the attribute
|
119
|
+
# is documented as an array but the input is not
|
120
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
121
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
122
|
+
end
|
123
|
+
elsif !attributes[attribute_map[key]].nil?
|
124
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
125
|
+
end
|
126
|
+
end
|
127
|
+
new(transformed_hash)
|
128
|
+
end
|
129
|
+
|
130
|
+
# Deserializes the data based on type
|
131
|
+
# @param string type Data type
|
132
|
+
# @param string value Value to be deserialized
|
133
|
+
# @return [Object] Deserialized data
|
134
|
+
def self._deserialize(type, value)
|
135
|
+
case type.to_sym
|
136
|
+
when :Time
|
137
|
+
Time.parse(value)
|
138
|
+
when :Date
|
139
|
+
Date.parse(value)
|
140
|
+
when :String
|
141
|
+
value.to_s
|
142
|
+
when :Integer
|
143
|
+
value.to_i
|
144
|
+
when :Float
|
145
|
+
value.to_f
|
146
|
+
when :Boolean
|
147
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
148
|
+
true
|
149
|
+
else
|
150
|
+
false
|
151
|
+
end
|
152
|
+
when :Object
|
153
|
+
# generic object (usually a Hash), return directly
|
154
|
+
value
|
155
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
156
|
+
inner_type = Regexp.last_match[:inner_type]
|
157
|
+
value.map { |v| _deserialize(inner_type, v) }
|
158
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
159
|
+
k_type = Regexp.last_match[:k_type]
|
160
|
+
v_type = Regexp.last_match[:v_type]
|
161
|
+
{}.tap do |hash|
|
162
|
+
value.each do |k, v|
|
163
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
164
|
+
end
|
165
|
+
end
|
166
|
+
else # model
|
167
|
+
# models (e.g. Pet) or oneOf
|
168
|
+
klass = AvalaraSdk::A1099::V2.const_get(type)
|
169
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
170
|
+
end
|
171
|
+
end
|
172
|
+
|
173
|
+
# Returns the string representation of the object
|
174
|
+
# @return [String] String presentation of the object
|
175
|
+
def to_s
|
176
|
+
to_hash.to_s
|
177
|
+
end
|
178
|
+
|
179
|
+
# to_body is an alias to to_hash (backward compatibility)
|
180
|
+
# @return [Hash] Returns the object in the form of hash
|
181
|
+
def to_body
|
182
|
+
to_hash
|
183
|
+
end
|
184
|
+
|
185
|
+
# Returns the object in the form of hash
|
186
|
+
# @return [Hash] Returns the object in the form of hash
|
187
|
+
def to_hash
|
188
|
+
hash = {}
|
189
|
+
self.class.attribute_map.each_pair do |attr, param|
|
190
|
+
value = self.send(attr)
|
191
|
+
if value.nil?
|
192
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
193
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
194
|
+
end
|
195
|
+
|
196
|
+
hash[param] = _to_hash(value)
|
197
|
+
end
|
198
|
+
hash
|
199
|
+
end
|
200
|
+
|
201
|
+
# Outputs non-array value in the form of hash
|
202
|
+
# For object, use to_hash. Otherwise, just return the value
|
203
|
+
# @param [Object] value Any valid value
|
204
|
+
# @return [Hash] Returns the value in the form of hash
|
205
|
+
def _to_hash(value)
|
206
|
+
if value.is_a?(Array)
|
207
|
+
value.compact.map { |v| _to_hash(v) }
|
208
|
+
elsif value.is_a?(Hash)
|
209
|
+
{}.tap do |hash|
|
210
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
211
|
+
end
|
212
|
+
elsif value.respond_to? :to_hash
|
213
|
+
value.to_hash
|
214
|
+
else
|
215
|
+
value
|
216
|
+
end
|
217
|
+
end
|
218
|
+
|
219
|
+
end
|
220
|
+
|
221
|
+
end
|