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.
Files changed (185) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +32 -6
  4. data/docs/A1099/V2/BulkUpsert1099FormsRequest.md +4 -0
  5. data/docs/A1099/V2/CompaniesW9Api.md +6 -6
  6. data/docs/A1099/V2/CoveredIndividualRequest.md +26 -26
  7. data/docs/A1099/V2/Create1099Form201Response.md +4 -0
  8. data/docs/A1099/V2/ErrorResponse.md +1 -1
  9. data/docs/A1099/V2/ErrorResponseItem.md +20 -0
  10. data/docs/A1099/V2/Form1042S.md +140 -0
  11. data/docs/A1099/V2/Form1042SListItem.md +12 -8
  12. data/docs/A1099/V2/Form1042SListItemResponse.md +19 -9
  13. data/docs/A1099/V2/Form1042SRequest.md +14 -10
  14. data/docs/A1099/V2/Form1042SResponse.md +10 -6
  15. data/docs/A1099/V2/Form1095B.md +14 -2
  16. data/docs/A1099/V2/Form1095BListItem.md +14 -8
  17. data/docs/A1099/V2/Form1095BListItemResponse.md +20 -8
  18. data/docs/A1099/V2/Form1095BRequest.md +14 -8
  19. data/docs/A1099/V2/Form1095BResponse.md +106 -0
  20. data/docs/A1099/V2/Form1095CList.md +20 -0
  21. data/docs/A1099/V2/Form1095CListItem.md +90 -0
  22. data/docs/A1099/V2/Form1099Base.md +14 -2
  23. data/docs/A1099/V2/Form1099BaseResponse.md +20 -8
  24. data/docs/A1099/V2/Form1099Div.md +130 -0
  25. data/docs/A1099/V2/Form1099DivListItem.md +32 -28
  26. data/docs/A1099/V2/Form1099DivListItemResponse.md +130 -0
  27. data/docs/A1099/V2/Form1099DivRequest.md +32 -28
  28. data/docs/A1099/V2/Form1099DivResponse.md +48 -6
  29. data/docs/A1099/V2/Form1099Int.md +122 -0
  30. data/docs/A1099/V2/Form1099IntList.md +20 -0
  31. data/docs/A1099/V2/Form1099IntListItem.md +100 -0
  32. data/docs/A1099/V2/Form1099IntListItemResponse.md +122 -0
  33. data/docs/A1099/V2/Form1099IntRequest.md +96 -0
  34. data/docs/A1099/V2/Form1099IntResponse.md +120 -0
  35. data/docs/A1099/V2/Form1099K.md +14 -2
  36. data/docs/A1099/V2/Form1099KListItem.md +14 -8
  37. data/docs/A1099/V2/Form1099KListItemResponse.md +20 -8
  38. data/docs/A1099/V2/Form1099KRequest.md +18 -12
  39. data/docs/A1099/V2/Form1099KResponse.md +132 -0
  40. data/docs/A1099/V2/Form1099ListResponseValueInner.md +4 -0
  41. data/docs/A1099/V2/Form1099Misc.md +24 -12
  42. data/docs/A1099/V2/Form1099MiscListItem.md +14 -12
  43. data/docs/A1099/V2/Form1099MiscListItemResponse.md +30 -16
  44. data/docs/A1099/V2/Form1099MiscRequest.md +14 -12
  45. data/docs/A1099/V2/Form1099MiscResponse.md +12 -10
  46. data/docs/A1099/V2/Form1099Nec.md +14 -2
  47. data/docs/A1099/V2/Form1099NecListItem.md +14 -10
  48. data/docs/A1099/V2/Form1099NecListItemResponse.md +20 -8
  49. data/docs/A1099/V2/Form1099NecRequest.md +14 -10
  50. data/docs/A1099/V2/Form1099NecResponse.md +10 -8
  51. data/docs/A1099/V2/Form1099ProccessResult.md +3 -1
  52. data/docs/A1099/V2/Form1099ProccessResultProcessedFormsInner.md +61 -0
  53. data/docs/A1099/V2/Form1099R.md +14 -4
  54. data/docs/A1099/V2/Form1099RListItem.md +12 -8
  55. data/docs/A1099/V2/Form1099RListItemResponse.md +20 -10
  56. data/docs/A1099/V2/Form1099RRequest.md +12 -8
  57. data/docs/A1099/V2/Form1099RResponse.md +132 -0
  58. data/docs/A1099/V2/FormRequestBase.md +14 -8
  59. data/docs/A1099/V2/FormRequestListItemBase.md +14 -8
  60. data/docs/A1099/V2/FormResponseBase.md +10 -6
  61. data/docs/A1099/V2/FormSingleRequestBase.md +14 -8
  62. data/docs/A1099/V2/Forms1099Api.md +11 -11
  63. data/docs/A1099/V2/FormsW9Api.md +21 -19
  64. data/docs/A1099/V2/Get1099Form200Response.md +4 -0
  65. data/docs/A1099/V2/ICreateForm1099Request.md +2 -0
  66. data/docs/A1099/V2/IUpdateForm1099Request.md +2 -0
  67. data/docs/A1099/V2/IrsResponse.md +20 -0
  68. data/docs/A1099/V2/Issuers1099Api.md +6 -6
  69. data/docs/A1099/V2/Jobs1099Api.md +1 -1
  70. data/docs/A1099/V2/OfferAndCoverageRequest.md +26 -0
  71. data/docs/A1099/V2/PaginatedQueryResultModelCompanyResponse.md +1 -1
  72. data/docs/A1099/V2/PaginatedQueryResultModelIssuerResponse.md +1 -1
  73. data/docs/A1099/V2/PaginatedQueryResultModelW9FormBaseResponse.md +22 -0
  74. data/docs/A1099/V2/TinMatchStatusResponse.md +22 -0
  75. data/docs/A1099/V2/Update1099Form200Response.md +8 -0
  76. data/docs/A1099/V2/W4FormResponse.md +1 -29
  77. data/docs/A1099/V2/W8BenEFormResponse.md +1 -29
  78. data/docs/A1099/V2/W8BenFormResponse.md +1 -29
  79. data/docs/A1099/V2/W8ImyFormResponse.md +1 -29
  80. data/docs/A1099/V2/W9FormBaseResponse.md +3 -3
  81. data/docs/A1099/V2/W9FormResponse.md +2 -28
  82. data/lib/avalara_sdk/api/A1099/V2/companies_w9_api.rb +1 -1
  83. data/lib/avalara_sdk/api/A1099/V2/forms1099_api.rb +3 -3
  84. data/lib/avalara_sdk/api/A1099/V2/forms_w9_api.rb +30 -14
  85. data/lib/avalara_sdk/api/A1099/V2/issuers1099_api.rb +1 -1
  86. data/lib/avalara_sdk/api/A1099/V2/jobs1099_api.rb +1 -1
  87. data/lib/avalara_sdk/api/EInvoicing/V1/data_input_fields_api.rb +1 -1
  88. data/lib/avalara_sdk/api/EInvoicing/V1/documents_api.rb +1 -1
  89. data/lib/avalara_sdk/api/EInvoicing/V1/interop_api.rb +1 -1
  90. data/lib/avalara_sdk/api/EInvoicing/V1/mandates_api.rb +1 -1
  91. data/lib/avalara_sdk/api/EInvoicing/V1/subscriptions_api.rb +1 -1
  92. data/lib/avalara_sdk/api/EInvoicing/V1/tax_identifiers_api.rb +1 -1
  93. data/lib/avalara_sdk/api/EInvoicing/V1/trading_partners_api.rb +1 -1
  94. data/lib/avalara_sdk/models/A1099/V2/bulk_upsert1099_forms_request.rb +2 -0
  95. data/lib/avalara_sdk/models/A1099/V2/covered_individual_reference.rb +1 -1
  96. data/lib/avalara_sdk/models/A1099/V2/covered_individual_request.rb +79 -79
  97. data/lib/avalara_sdk/models/A1099/V2/create1099_form201_response.rb +2 -0
  98. data/lib/avalara_sdk/models/A1099/V2/error_response.rb +1 -1
  99. data/lib/avalara_sdk/models/A1099/V2/error_response_item.rb +221 -0
  100. data/lib/avalara_sdk/models/A1099/V2/form1042_s.rb +824 -0
  101. data/lib/avalara_sdk/models/A1099/V2/form1042_s_list_item.rb +44 -119
  102. data/lib/avalara_sdk/models/A1099/V2/form1042_s_list_item_response.rb +67 -12
  103. data/lib/avalara_sdk/models/A1099/V2/form1042_s_request.rb +55 -132
  104. data/lib/avalara_sdk/models/A1099/V2/form1042_s_response.rb +43 -24
  105. data/lib/avalara_sdk/models/A1099/V2/form1095_b.rb +68 -9
  106. data/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item.rb +54 -119
  107. data/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item_response.rb +77 -12
  108. data/lib/avalara_sdk/models/A1099/V2/form1095_b_request.rb +56 -121
  109. data/lib/avalara_sdk/models/A1099/V2/form1095_b_response.rb +709 -0
  110. data/lib/avalara_sdk/models/A1099/V2/form1095_c_list.rb +238 -0
  111. data/lib/avalara_sdk/models/A1099/V2/form1095_c_list_item.rb +662 -0
  112. data/lib/avalara_sdk/models/A1099/V2/form1099_base.rb +68 -9
  113. data/lib/avalara_sdk/models/A1099/V2/form1099_base_response.rb +77 -12
  114. data/lib/avalara_sdk/models/A1099/V2/form1099_div.rb +781 -0
  115. data/lib/avalara_sdk/models/A1099/V2/form1099_div_list_item.rb +93 -147
  116. data/lib/avalara_sdk/models/A1099/V2/form1099_div_list_item_response.rb +931 -0
  117. data/lib/avalara_sdk/models/A1099/V2/form1099_div_request.rb +93 -149
  118. data/lib/avalara_sdk/models/A1099/V2/form1099_div_response.rb +214 -24
  119. data/lib/avalara_sdk/models/A1099/V2/form1099_int.rb +741 -0
  120. data/lib/avalara_sdk/models/A1099/V2/form1099_int_list.rb +238 -0
  121. data/lib/avalara_sdk/models/A1099/V2/form1099_int_list_item.rb +702 -0
  122. data/lib/avalara_sdk/models/A1099/V2/form1099_int_list_item_response.rb +887 -0
  123. data/lib/avalara_sdk/models/A1099/V2/form1099_int_request.rb +684 -0
  124. data/lib/avalara_sdk/models/A1099/V2/form1099_int_response.rb +773 -0
  125. data/lib/avalara_sdk/models/A1099/V2/form1099_k.rb +68 -9
  126. data/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item.rb +56 -119
  127. data/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item_response.rb +77 -12
  128. data/lib/avalara_sdk/models/A1099/V2/form1099_k_request.rb +82 -123
  129. data/lib/avalara_sdk/models/A1099/V2/form1099_k_response.rb +839 -0
  130. data/lib/avalara_sdk/models/A1099/V2/form1099_list_response_value_inner.rb +2 -0
  131. data/lib/avalara_sdk/models/A1099/V2/form1099_misc.rb +106 -47
  132. data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item.rb +52 -135
  133. data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item_response.rb +116 -40
  134. data/lib/avalara_sdk/models/A1099/V2/form1099_misc_request.rb +52 -137
  135. data/lib/avalara_sdk/models/A1099/V2/form1099_misc_response.rb +49 -39
  136. data/lib/avalara_sdk/models/A1099/V2/form1099_nec.rb +68 -9
  137. data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item.rb +56 -129
  138. data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item_response.rb +77 -12
  139. data/lib/avalara_sdk/models/A1099/V2/form1099_nec_request.rb +56 -131
  140. data/lib/avalara_sdk/models/A1099/V2/form1099_nec_response.rb +43 -33
  141. data/lib/avalara_sdk/models/A1099/V2/form1099_proccess_result.rb +22 -4
  142. data/lib/avalara_sdk/models/A1099/V2/form1099_proccess_result_processed_forms_inner.rb +107 -0
  143. data/lib/avalara_sdk/models/A1099/V2/form1099_r.rb +68 -19
  144. data/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item.rb +46 -119
  145. data/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item_response.rb +77 -23
  146. data/lib/avalara_sdk/models/A1099/V2/form1099_r_request.rb +46 -121
  147. data/lib/avalara_sdk/models/A1099/V2/form1099_r_response.rb +839 -0
  148. data/lib/avalara_sdk/models/A1099/V2/form1099_status_detail.rb +1 -1
  149. data/lib/avalara_sdk/models/A1099/V2/form_request_base.rb +54 -119
  150. data/lib/avalara_sdk/models/A1099/V2/form_request_list_item_base.rb +56 -119
  151. data/lib/avalara_sdk/models/A1099/V2/form_response_base.rb +43 -24
  152. data/lib/avalara_sdk/models/A1099/V2/form_single_request_base.rb +56 -121
  153. data/lib/avalara_sdk/models/A1099/V2/get1099_form200_response.rb +2 -0
  154. data/lib/avalara_sdk/models/A1099/V2/i_create_form1099_request.rb +1 -0
  155. data/lib/avalara_sdk/models/A1099/V2/i_update_form1099_request.rb +1 -0
  156. data/lib/avalara_sdk/models/A1099/V2/included_base.rb +1 -1
  157. data/lib/avalara_sdk/models/A1099/V2/irs_response.rb +221 -0
  158. data/lib/avalara_sdk/models/A1099/V2/issuer_command.rb +1 -0
  159. data/lib/avalara_sdk/models/A1099/V2/offer_and_coverage_request.rb +256 -0
  160. data/lib/avalara_sdk/models/A1099/V2/paginated_query_result_model_w9_form_base_response.rb +234 -0
  161. data/lib/avalara_sdk/models/A1099/V2/state_and_local_withholding.rb +1 -1
  162. data/lib/avalara_sdk/models/A1099/V2/state_efile_status_detail.rb +1 -1
  163. data/lib/avalara_sdk/models/A1099/V2/tin_match_status_response.rb +267 -0
  164. data/lib/avalara_sdk/models/A1099/V2/update1099_form200_response.rb +4 -0
  165. data/lib/avalara_sdk/models/A1099/V2/validation_error.rb +1 -1
  166. data/lib/avalara_sdk/models/A1099/V2/w4_form_response.rb +15 -157
  167. data/lib/avalara_sdk/models/A1099/V2/w8_ben_e_form_response.rb +14 -156
  168. data/lib/avalara_sdk/models/A1099/V2/w8_ben_form_response.rb +15 -157
  169. data/lib/avalara_sdk/models/A1099/V2/w8_imy_form_response.rb +15 -157
  170. data/lib/avalara_sdk/models/A1099/V2/w9_form_base_response.rb +19 -14
  171. data/lib/avalara_sdk/models/A1099/V2/w9_form_response.rb +18 -150
  172. data/lib/avalara_sdk/version.rb +1 -1
  173. data/lib/avalara_sdk.rb +21 -1
  174. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/byebug-11.1.3/gem_make.out +5 -5
  175. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/date-3.4.1/gem_make.out +5 -5
  176. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debase-0.2.9/gem_make.out +5 -5
  177. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debug-1.10.0/gem_make.out +5 -5
  178. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/erb-5.0.1/gem_make.out +5 -5
  179. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/io-console-0.8.0/gem_make.out +5 -5
  180. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/json-2.12.2/gem_make.out +5 -5
  181. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/prism-1.4.0/gem_make.out +5 -5
  182. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/psych-5.2.6/gem_make.out +5 -5
  183. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/racc-1.8.1/gem_make.out +5 -5
  184. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/stringio-3.1.7/gem_make.out +5 -5
  185. metadata +42 -2
@@ -17,8 +17,6 @@ module AvalaraSdk::A1099::V2
17
17
 
18
18
  attr_accessor :updated_at
19
19
 
20
- attr_accessor :user_id
21
-
22
20
  attr_accessor :state_and_local_withholding
23
21
 
24
22
  attr_accessor :tin_type
@@ -51,13 +49,13 @@ module AvalaraSdk::A1099::V2
51
49
 
52
50
  attr_accessor :zip
53
51
 
54
- attr_accessor :recipient_email
52
+ attr_accessor :email
55
53
 
56
54
  attr_accessor :account_number
57
55
 
58
56
  attr_accessor :office_code
59
57
 
60
- attr_accessor :recipient_non_us_province
58
+ attr_accessor :non_us_province
61
59
 
62
60
  attr_accessor :country_code
63
61
 
@@ -69,10 +67,16 @@ module AvalaraSdk::A1099::V2
69
67
 
70
68
  attr_accessor :tin_match
71
69
 
70
+ attr_accessor :no_tin
71
+
72
+ attr_accessor :second_tin_notice
73
+
72
74
  attr_accessor :address_verification
73
75
 
74
76
  attr_accessor :federal_efile_status
75
77
 
78
+ attr_accessor :e_delivery_status
79
+
76
80
  attr_accessor :state_efile_status
77
81
 
78
82
  attr_accessor :postal_mail_status
@@ -111,7 +115,6 @@ module AvalaraSdk::A1099::V2
111
115
  :'type' => :'type',
112
116
  :'created_at' => :'createdAt',
113
117
  :'updated_at' => :'updatedAt',
114
- :'user_id' => :'userId',
115
118
  :'state_and_local_withholding' => :'stateAndLocalWithholding',
116
119
  :'tin_type' => :'tinType',
117
120
  :'id' => :'id',
@@ -128,17 +131,20 @@ module AvalaraSdk::A1099::V2
128
131
  :'city' => :'city',
129
132
  :'state' => :'state',
130
133
  :'zip' => :'zip',
131
- :'recipient_email' => :'recipientEmail',
134
+ :'email' => :'email',
132
135
  :'account_number' => :'accountNumber',
133
136
  :'office_code' => :'officeCode',
134
- :'recipient_non_us_province' => :'recipientNonUsProvince',
137
+ :'non_us_province' => :'nonUsProvince',
135
138
  :'country_code' => :'countryCode',
136
139
  :'federal_e_file' => :'federalEFile',
137
140
  :'postal_mail' => :'postalMail',
138
141
  :'state_e_file' => :'stateEFile',
139
142
  :'tin_match' => :'tinMatch',
143
+ :'no_tin' => :'noTin',
144
+ :'second_tin_notice' => :'secondTinNotice',
140
145
  :'address_verification' => :'addressVerification',
141
146
  :'federal_efile_status' => :'federalEfileStatus',
147
+ :'e_delivery_status' => :'eDeliveryStatus',
142
148
  :'state_efile_status' => :'stateEfileStatus',
143
149
  :'postal_mail_status' => :'postalMailStatus',
144
150
  :'tin_match_status' => :'tinMatchStatus',
@@ -158,7 +164,6 @@ module AvalaraSdk::A1099::V2
158
164
  :'type' => :'String',
159
165
  :'created_at' => :'Time',
160
166
  :'updated_at' => :'Time',
161
- :'user_id' => :'String',
162
167
  :'state_and_local_withholding' => :'StateAndLocalWithholdingResponse',
163
168
  :'tin_type' => :'String',
164
169
  :'id' => :'String',
@@ -175,17 +180,20 @@ module AvalaraSdk::A1099::V2
175
180
  :'city' => :'String',
176
181
  :'state' => :'String',
177
182
  :'zip' => :'String',
178
- :'recipient_email' => :'String',
183
+ :'email' => :'String',
179
184
  :'account_number' => :'String',
180
185
  :'office_code' => :'String',
181
- :'recipient_non_us_province' => :'String',
186
+ :'non_us_province' => :'String',
182
187
  :'country_code' => :'String',
183
188
  :'federal_e_file' => :'Boolean',
184
189
  :'postal_mail' => :'Boolean',
185
190
  :'state_e_file' => :'Boolean',
186
191
  :'tin_match' => :'Boolean',
192
+ :'no_tin' => :'Boolean',
193
+ :'second_tin_notice' => :'Boolean',
187
194
  :'address_verification' => :'Boolean',
188
195
  :'federal_efile_status' => :'StatusDetail',
196
+ :'e_delivery_status' => :'StatusDetail',
189
197
  :'state_efile_status' => :'Array<StateEfileStatusDetailResponse>',
190
198
  :'postal_mail_status' => :'StatusDetail',
191
199
  :'tin_match_status' => :'StatusDetail',
@@ -198,6 +206,7 @@ module AvalaraSdk::A1099::V2
198
206
  def self.openapi_nullable
199
207
  Set.new([
200
208
  :'federal_efile_status',
209
+ :'e_delivery_status',
201
210
  :'state_efile_status',
202
211
  :'postal_mail_status',
203
212
  :'tin_match_status',
@@ -233,10 +242,6 @@ module AvalaraSdk::A1099::V2
233
242
  self.updated_at = attributes[:'updated_at']
234
243
  end
235
244
 
236
- if attributes.key?(:'user_id')
237
- self.user_id = attributes[:'user_id']
238
- end
239
-
240
245
  if attributes.key?(:'state_and_local_withholding')
241
246
  self.state_and_local_withholding = attributes[:'state_and_local_withholding']
242
247
  end
@@ -301,8 +306,8 @@ module AvalaraSdk::A1099::V2
301
306
  self.zip = attributes[:'zip']
302
307
  end
303
308
 
304
- if attributes.key?(:'recipient_email')
305
- self.recipient_email = attributes[:'recipient_email']
309
+ if attributes.key?(:'email')
310
+ self.email = attributes[:'email']
306
311
  end
307
312
 
308
313
  if attributes.key?(:'account_number')
@@ -313,8 +318,8 @@ module AvalaraSdk::A1099::V2
313
318
  self.office_code = attributes[:'office_code']
314
319
  end
315
320
 
316
- if attributes.key?(:'recipient_non_us_province')
317
- self.recipient_non_us_province = attributes[:'recipient_non_us_province']
321
+ if attributes.key?(:'non_us_province')
322
+ self.non_us_province = attributes[:'non_us_province']
318
323
  end
319
324
 
320
325
  if attributes.key?(:'country_code')
@@ -337,6 +342,14 @@ module AvalaraSdk::A1099::V2
337
342
  self.tin_match = attributes[:'tin_match']
338
343
  end
339
344
 
345
+ if attributes.key?(:'no_tin')
346
+ self.no_tin = attributes[:'no_tin']
347
+ end
348
+
349
+ if attributes.key?(:'second_tin_notice')
350
+ self.second_tin_notice = attributes[:'second_tin_notice']
351
+ end
352
+
340
353
  if attributes.key?(:'address_verification')
341
354
  self.address_verification = attributes[:'address_verification']
342
355
  end
@@ -345,6 +358,10 @@ module AvalaraSdk::A1099::V2
345
358
  self.federal_efile_status = attributes[:'federal_efile_status']
346
359
  end
347
360
 
361
+ if attributes.key?(:'e_delivery_status')
362
+ self.e_delivery_status = attributes[:'e_delivery_status']
363
+ end
364
+
348
365
  if attributes.key?(:'state_efile_status')
349
366
  if (value = attributes[:'state_efile_status']).is_a?(Array)
350
367
  self.state_efile_status = value
@@ -382,7 +399,7 @@ module AvalaraSdk::A1099::V2
382
399
  # @return true if the model is valid
383
400
  def valid?
384
401
  warn '[DEPRECATED] the `valid?` method is obsolete'
385
- type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"])
402
+ type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
386
403
  return false unless type_validator.valid?(@type)
387
404
  tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
388
405
  return false unless tin_type_validator.valid?(@tin_type)
@@ -392,7 +409,7 @@ module AvalaraSdk::A1099::V2
392
409
  # Custom attribute writer method checking allowed values (enum).
393
410
  # @param [Object] type Object to be assigned
394
411
  def type=(type)
395
- validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"])
412
+ validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
396
413
  unless validator.valid?(type)
397
414
  fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
398
415
  end
@@ -429,7 +446,6 @@ module AvalaraSdk::A1099::V2
429
446
  type == o.type &&
430
447
  created_at == o.created_at &&
431
448
  updated_at == o.updated_at &&
432
- user_id == o.user_id &&
433
449
  state_and_local_withholding == o.state_and_local_withholding &&
434
450
  tin_type == o.tin_type &&
435
451
  id == o.id &&
@@ -446,17 +462,20 @@ module AvalaraSdk::A1099::V2
446
462
  city == o.city &&
447
463
  state == o.state &&
448
464
  zip == o.zip &&
449
- recipient_email == o.recipient_email &&
465
+ email == o.email &&
450
466
  account_number == o.account_number &&
451
467
  office_code == o.office_code &&
452
- recipient_non_us_province == o.recipient_non_us_province &&
468
+ non_us_province == o.non_us_province &&
453
469
  country_code == o.country_code &&
454
470
  federal_e_file == o.federal_e_file &&
455
471
  postal_mail == o.postal_mail &&
456
472
  state_e_file == o.state_e_file &&
457
473
  tin_match == o.tin_match &&
474
+ no_tin == o.no_tin &&
475
+ second_tin_notice == o.second_tin_notice &&
458
476
  address_verification == o.address_verification &&
459
477
  federal_efile_status == o.federal_efile_status &&
478
+ e_delivery_status == o.e_delivery_status &&
460
479
  state_efile_status == o.state_efile_status &&
461
480
  postal_mail_status == o.postal_mail_status &&
462
481
  tin_match_status == o.tin_match_status &&
@@ -473,7 +492,7 @@ module AvalaraSdk::A1099::V2
473
492
  # Calculates hash code according to all attributes.
474
493
  # @return [Integer] Hash code
475
494
  def hash
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
495
+ [type, created_at, updated_at, 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, email, account_number, office_code, non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, no_tin, second_tin_notice, address_verification, federal_efile_status, e_delivery_status, state_efile_status, postal_mail_status, tin_match_status, address_verification_status, validation_errors].hash
477
496
  end
478
497
 
479
498
  # Builds the object from hash
@@ -47,7 +47,7 @@ module AvalaraSdk::A1099::V2
47
47
  attr_accessor :zip
48
48
 
49
49
  # Recipient email address
50
- attr_accessor :recipient_email
50
+ attr_accessor :email
51
51
 
52
52
  # Account number
53
53
  attr_accessor :account_number
@@ -56,7 +56,7 @@ module AvalaraSdk::A1099::V2
56
56
  attr_accessor :office_code
57
57
 
58
58
  # Foreign province
59
- attr_accessor :recipient_non_us_province
59
+ attr_accessor :non_us_province
60
60
 
61
61
  # Country code, as defined at https://www.irs.gov/e-file-providers/country-codes
62
62
  attr_accessor :country_code
@@ -73,6 +73,15 @@ module AvalaraSdk::A1099::V2
73
73
  # Boolean indicating that TIN Matching should be scheduled for this form
74
74
  attr_accessor :tin_match
75
75
 
76
+ # Indicates whether the recipient has no TIN
77
+ attr_accessor :no_tin
78
+
79
+ # Second TIN notice in three years
80
+ attr_accessor :second_tin_notice
81
+
82
+ # Fatca filing requirement
83
+ attr_accessor :fatca_filing_requirement
84
+
76
85
  # Boolean indicating that address verification should be scheduled for this form
77
86
  attr_accessor :address_verification
78
87
 
@@ -116,15 +125,18 @@ module AvalaraSdk::A1099::V2
116
125
  :'city' => :'city',
117
126
  :'state' => :'state',
118
127
  :'zip' => :'zip',
119
- :'recipient_email' => :'recipientEmail',
128
+ :'email' => :'email',
120
129
  :'account_number' => :'accountNumber',
121
130
  :'office_code' => :'officeCode',
122
- :'recipient_non_us_province' => :'recipientNonUsProvince',
131
+ :'non_us_province' => :'nonUsProvince',
123
132
  :'country_code' => :'countryCode',
124
133
  :'federal_e_file' => :'federalEFile',
125
134
  :'postal_mail' => :'postalMail',
126
135
  :'state_e_file' => :'stateEFile',
127
136
  :'tin_match' => :'tinMatch',
137
+ :'no_tin' => :'noTin',
138
+ :'second_tin_notice' => :'secondTinNotice',
139
+ :'fatca_filing_requirement' => :'fatcaFilingRequirement',
128
140
  :'address_verification' => :'addressVerification',
129
141
  :'state_and_local_withholding' => :'stateAndLocalWithholding'
130
142
  }
@@ -150,15 +162,18 @@ module AvalaraSdk::A1099::V2
150
162
  :'city' => :'String',
151
163
  :'state' => :'String',
152
164
  :'zip' => :'String',
153
- :'recipient_email' => :'String',
165
+ :'email' => :'String',
154
166
  :'account_number' => :'String',
155
167
  :'office_code' => :'String',
156
- :'recipient_non_us_province' => :'String',
168
+ :'non_us_province' => :'String',
157
169
  :'country_code' => :'String',
158
170
  :'federal_e_file' => :'Boolean',
159
171
  :'postal_mail' => :'Boolean',
160
172
  :'state_e_file' => :'Boolean',
161
173
  :'tin_match' => :'Boolean',
174
+ :'no_tin' => :'Boolean',
175
+ :'second_tin_notice' => :'Boolean',
176
+ :'fatca_filing_requirement' => :'Boolean',
162
177
  :'address_verification' => :'Boolean',
163
178
  :'state_and_local_withholding' => :'StateAndLocalWithholdingRequest'
164
179
  }
@@ -169,12 +184,21 @@ module AvalaraSdk::A1099::V2
169
184
  Set.new([
170
185
  :'issuer_id',
171
186
  :'reference_id',
187
+ :'recipient_tin',
188
+ :'recipient_name',
172
189
  :'recipient_second_name',
190
+ :'address',
173
191
  :'address2',
174
- :'recipient_email',
192
+ :'city',
193
+ :'state',
194
+ :'zip',
195
+ :'email',
175
196
  :'account_number',
176
197
  :'office_code',
177
- :'recipient_non_us_province',
198
+ :'non_us_province',
199
+ :'country_code',
200
+ :'second_tin_notice',
201
+ :'state_and_local_withholding'
178
202
  ])
179
203
  end
180
204
 
@@ -218,8 +242,6 @@ module AvalaraSdk::A1099::V2
218
242
 
219
243
  if attributes.key?(:'recipient_name')
220
244
  self.recipient_name = attributes[:'recipient_name']
221
- else
222
- self.recipient_name = nil
223
245
  end
224
246
 
225
247
  if attributes.key?(:'tin_type')
@@ -232,8 +254,6 @@ module AvalaraSdk::A1099::V2
232
254
 
233
255
  if attributes.key?(:'address')
234
256
  self.address = attributes[:'address']
235
- else
236
- self.address = nil
237
257
  end
238
258
 
239
259
  if attributes.key?(:'address2')
@@ -242,8 +262,6 @@ module AvalaraSdk::A1099::V2
242
262
 
243
263
  if attributes.key?(:'city')
244
264
  self.city = attributes[:'city']
245
- else
246
- self.city = nil
247
265
  end
248
266
 
249
267
  if attributes.key?(:'state')
@@ -254,8 +272,8 @@ module AvalaraSdk::A1099::V2
254
272
  self.zip = attributes[:'zip']
255
273
  end
256
274
 
257
- if attributes.key?(:'recipient_email')
258
- self.recipient_email = attributes[:'recipient_email']
275
+ if attributes.key?(:'email')
276
+ self.email = attributes[:'email']
259
277
  end
260
278
 
261
279
  if attributes.key?(:'account_number')
@@ -266,14 +284,12 @@ module AvalaraSdk::A1099::V2
266
284
  self.office_code = attributes[:'office_code']
267
285
  end
268
286
 
269
- if attributes.key?(:'recipient_non_us_province')
270
- self.recipient_non_us_province = attributes[:'recipient_non_us_province']
287
+ if attributes.key?(:'non_us_province')
288
+ self.non_us_province = attributes[:'non_us_province']
271
289
  end
272
290
 
273
291
  if attributes.key?(:'country_code')
274
292
  self.country_code = attributes[:'country_code']
275
- else
276
- self.country_code = nil
277
293
  end
278
294
 
279
295
  if attributes.key?(:'federal_e_file')
@@ -292,6 +308,18 @@ module AvalaraSdk::A1099::V2
292
308
  self.tin_match = attributes[:'tin_match']
293
309
  end
294
310
 
311
+ if attributes.key?(:'no_tin')
312
+ self.no_tin = attributes[:'no_tin']
313
+ end
314
+
315
+ if attributes.key?(:'second_tin_notice')
316
+ self.second_tin_notice = attributes[:'second_tin_notice']
317
+ end
318
+
319
+ if attributes.key?(:'fatca_filing_requirement')
320
+ self.fatca_filing_requirement = attributes[:'fatca_filing_requirement']
321
+ end
322
+
295
323
  if attributes.key?(:'address_verification')
296
324
  self.address_verification = attributes[:'address_verification']
297
325
  end
@@ -306,38 +334,6 @@ module AvalaraSdk::A1099::V2
306
334
  def list_invalid_properties
307
335
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
308
336
  invalid_properties = Array.new
309
- if @recipient_name.nil?
310
- invalid_properties.push('invalid value for "recipient_name", recipient_name cannot be nil.')
311
- end
312
-
313
- if @recipient_name.to_s.length < 1
314
- invalid_properties.push('invalid value for "recipient_name", the character length must be great than or equal to 1.')
315
- end
316
-
317
- if @address.nil?
318
- invalid_properties.push('invalid value for "address", address cannot be nil.')
319
- end
320
-
321
- if @address.to_s.length < 1
322
- invalid_properties.push('invalid value for "address", the character length must be great than or equal to 1.')
323
- end
324
-
325
- if @city.nil?
326
- invalid_properties.push('invalid value for "city", city cannot be nil.')
327
- end
328
-
329
- if @city.to_s.length < 1
330
- invalid_properties.push('invalid value for "city", the character length must be great than or equal to 1.')
331
- end
332
-
333
- if @country_code.nil?
334
- invalid_properties.push('invalid value for "country_code", country_code cannot be nil.')
335
- end
336
-
337
- if @country_code.to_s.length < 1
338
- invalid_properties.push('invalid value for "country_code", the character length must be great than or equal to 1.')
339
- end
340
-
341
337
  invalid_properties
342
338
  end
343
339
 
@@ -345,45 +341,23 @@ module AvalaraSdk::A1099::V2
345
341
  # @return true if the model is valid
346
342
  def valid?
347
343
  warn '[DEPRECATED] the `valid?` method is obsolete'
348
- type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"])
344
+ type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
349
345
  return false unless type_validator.valid?(@type)
350
- return false if @recipient_name.nil?
351
- return false if @recipient_name.to_s.length < 1
352
346
  tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
353
347
  return false unless tin_type_validator.valid?(@tin_type)
354
- return false if @address.nil?
355
- return false if @address.to_s.length < 1
356
- return false if @city.nil?
357
- return false if @city.to_s.length < 1
358
- return false if @country_code.nil?
359
- return false if @country_code.to_s.length < 1
360
348
  true
361
349
  end
362
350
 
363
351
  # Custom attribute writer method checking allowed values (enum).
364
352
  # @param [Object] type Object to be assigned
365
353
  def type=(type)
366
- validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"])
354
+ validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
367
355
  unless validator.valid?(type)
368
356
  fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
369
357
  end
370
358
  @type = type
371
359
  end
372
360
 
373
- # Custom attribute writer method with validation
374
- # @param [Object] recipient_name Value to be assigned
375
- def recipient_name=(recipient_name)
376
- if recipient_name.nil?
377
- fail ArgumentError, 'recipient_name cannot be nil'
378
- end
379
-
380
- if recipient_name.to_s.length < 1
381
- fail ArgumentError, 'invalid value for "recipient_name", the character length must be great than or equal to 1.'
382
- end
383
-
384
- @recipient_name = recipient_name
385
- end
386
-
387
361
  # Custom attribute writer method checking allowed values (enum).
388
362
  # @param [Object] tin_type Object to be assigned
389
363
  def tin_type=(tin_type)
@@ -394,48 +368,6 @@ module AvalaraSdk::A1099::V2
394
368
  @tin_type = tin_type
395
369
  end
396
370
 
397
- # Custom attribute writer method with validation
398
- # @param [Object] address Value to be assigned
399
- def address=(address)
400
- if address.nil?
401
- fail ArgumentError, 'address cannot be nil'
402
- end
403
-
404
- if address.to_s.length < 1
405
- fail ArgumentError, 'invalid value for "address", the character length must be great than or equal to 1.'
406
- end
407
-
408
- @address = address
409
- end
410
-
411
- # Custom attribute writer method with validation
412
- # @param [Object] city Value to be assigned
413
- def city=(city)
414
- if city.nil?
415
- fail ArgumentError, 'city cannot be nil'
416
- end
417
-
418
- if city.to_s.length < 1
419
- fail ArgumentError, 'invalid value for "city", the character length must be great than or equal to 1.'
420
- end
421
-
422
- @city = city
423
- end
424
-
425
- # Custom attribute writer method with validation
426
- # @param [Object] country_code Value to be assigned
427
- def country_code=(country_code)
428
- if country_code.nil?
429
- fail ArgumentError, 'country_code cannot be nil'
430
- end
431
-
432
- if country_code.to_s.length < 1
433
- fail ArgumentError, 'invalid value for "country_code", the character length must be great than or equal to 1.'
434
- end
435
-
436
- @country_code = country_code
437
- end
438
-
439
371
  # Checks equality by comparing each attribute.
440
372
  # @param [Object] Object to be compared
441
373
  def ==(o)
@@ -453,15 +385,18 @@ module AvalaraSdk::A1099::V2
453
385
  city == o.city &&
454
386
  state == o.state &&
455
387
  zip == o.zip &&
456
- recipient_email == o.recipient_email &&
388
+ email == o.email &&
457
389
  account_number == o.account_number &&
458
390
  office_code == o.office_code &&
459
- recipient_non_us_province == o.recipient_non_us_province &&
391
+ non_us_province == o.non_us_province &&
460
392
  country_code == o.country_code &&
461
393
  federal_e_file == o.federal_e_file &&
462
394
  postal_mail == o.postal_mail &&
463
395
  state_e_file == o.state_e_file &&
464
396
  tin_match == o.tin_match &&
397
+ no_tin == o.no_tin &&
398
+ second_tin_notice == o.second_tin_notice &&
399
+ fatca_filing_requirement == o.fatca_filing_requirement &&
465
400
  address_verification == o.address_verification &&
466
401
  state_and_local_withholding == o.state_and_local_withholding
467
402
  end
@@ -475,7 +410,7 @@ module AvalaraSdk::A1099::V2
475
410
  # Calculates hash code according to all attributes.
476
411
  # @return [Integer] Hash code
477
412
  def hash
478
- [type, issuer_id, reference_id, recipient_tin, recipient_name, 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
413
+ [type, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, email, account_number, office_code, non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, no_tin, second_tin_notice, fatca_filing_requirement, address_verification, state_and_local_withholding].hash
479
414
  end
480
415
 
481
416
  # 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',
@@ -16,6 +16,7 @@ module AvalaraSdk::A1099::V2
16
16
  def openapi_one_of
17
17
  [
18
18
  :'Form1099DivRequest',
19
+ :'Form1099KRequest',
19
20
  :'Form1099MiscRequest',
20
21
  :'Form1099NecRequest'
21
22
  ]
@@ -16,6 +16,7 @@ module AvalaraSdk::A1099::V2
16
16
  def openapi_one_of
17
17
  [
18
18
  :'Form1099DivRequest',
19
+ :'Form1099KRequest',
19
20
  :'Form1099MiscRequest',
20
21
  :'Form1099NecRequest'
21
22
  ]
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Avalara 1099 & W-9 API Definition
3
3
 
4
- ### 🔐 Authentication Use **username/password** or generate a **license key** from: *Avalara Portal → 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)
4
+ ### 🔐 Authentication Generate a **license key** from: *[Avalara Portal](https://www.avalara.com/us/en/signin.html) → Settings → License and API Keys*. [More on authentication methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) [Test your credentials](https://developer.avalara.com/avatax/test-credentials/) ## 📘 API & SDK Documentation [Avalara SDK (.NET) on GitHub](https://github.com/avadev/Avalara-SDK-DotNet#avalarasdk--the-unified-c-library-for-next-gen-avalara-services) [Code Examples – 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget)
5
5
 
6
6
 
7
7
  =end