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
@@ -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
@@ -83,14 +83,22 @@ module AvalaraSdk::A1099::V2
83
83
 
84
84
  attr_accessor :address_verification_status
85
85
 
86
+ attr_accessor :e_delivery_status
87
+
86
88
  attr_accessor :reference_id
87
89
 
88
90
  attr_accessor :email
89
91
 
90
92
  attr_accessor :tin_type
91
93
 
94
+ attr_accessor :fatca_filing_requirement
95
+
92
96
  attr_accessor :tin
93
97
 
98
+ attr_accessor :no_tin
99
+
100
+ attr_accessor :second_tin_notice
101
+
94
102
  attr_accessor :recipient_name
95
103
 
96
104
  attr_accessor :recipient_second_name
@@ -105,10 +113,14 @@ module AvalaraSdk::A1099::V2
105
113
 
106
114
  attr_accessor :zip
107
115
 
108
- attr_accessor :foreign_province
116
+ attr_accessor :non_us_province
109
117
 
110
118
  attr_accessor :country_code
111
119
 
120
+ attr_accessor :account_number
121
+
122
+ attr_accessor :office_code
123
+
112
124
  attr_accessor :validation_errors
113
125
 
114
126
  attr_accessor :created_at
@@ -178,10 +190,14 @@ module AvalaraSdk::A1099::V2
178
190
  :'tin_match_status' => :'tinMatchStatus',
179
191
  :'address_verification' => :'addressVerification',
180
192
  :'address_verification_status' => :'addressVerificationStatus',
193
+ :'e_delivery_status' => :'eDeliveryStatus',
181
194
  :'reference_id' => :'referenceId',
182
195
  :'email' => :'email',
183
196
  :'tin_type' => :'tinType',
197
+ :'fatca_filing_requirement' => :'fatcaFilingRequirement',
184
198
  :'tin' => :'tin',
199
+ :'no_tin' => :'noTin',
200
+ :'second_tin_notice' => :'secondTinNotice',
185
201
  :'recipient_name' => :'recipientName',
186
202
  :'recipient_second_name' => :'recipientSecondName',
187
203
  :'address' => :'address',
@@ -189,8 +205,10 @@ module AvalaraSdk::A1099::V2
189
205
  :'city' => :'city',
190
206
  :'state' => :'state',
191
207
  :'zip' => :'zip',
192
- :'foreign_province' => :'foreignProvince',
208
+ :'non_us_province' => :'nonUsProvince',
193
209
  :'country_code' => :'countryCode',
210
+ :'account_number' => :'accountNumber',
211
+ :'office_code' => :'officeCode',
194
212
  :'validation_errors' => :'validationErrors',
195
213
  :'created_at' => :'createdAt',
196
214
  :'updated_at' => :'updatedAt',
@@ -242,10 +260,14 @@ module AvalaraSdk::A1099::V2
242
260
  :'tin_match_status' => :'Form1099StatusDetail',
243
261
  :'address_verification' => :'Boolean',
244
262
  :'address_verification_status' => :'Form1099StatusDetail',
263
+ :'e_delivery_status' => :'Form1099StatusDetail',
245
264
  :'reference_id' => :'String',
246
265
  :'email' => :'String',
247
266
  :'tin_type' => :'String',
267
+ :'fatca_filing_requirement' => :'Boolean',
248
268
  :'tin' => :'String',
269
+ :'no_tin' => :'Boolean',
270
+ :'second_tin_notice' => :'Boolean',
249
271
  :'recipient_name' => :'String',
250
272
  :'recipient_second_name' => :'String',
251
273
  :'address' => :'String',
@@ -253,8 +275,10 @@ module AvalaraSdk::A1099::V2
253
275
  :'city' => :'String',
254
276
  :'state' => :'String',
255
277
  :'zip' => :'String',
256
- :'foreign_province' => :'String',
278
+ :'non_us_province' => :'String',
257
279
  :'country_code' => :'String',
280
+ :'account_number' => :'String',
281
+ :'office_code' => :'String',
258
282
  :'validation_errors' => :'Array<ValidationError>',
259
283
  :'created_at' => :'Time',
260
284
  :'updated_at' => :'Time',
@@ -287,10 +311,13 @@ module AvalaraSdk::A1099::V2
287
311
  :'postal_mail_status',
288
312
  :'tin_match_status',
289
313
  :'address_verification_status',
314
+ :'e_delivery_status',
290
315
  :'reference_id',
291
316
  :'email',
292
317
  :'tin_type',
318
+ :'fatca_filing_requirement',
293
319
  :'tin',
320
+ :'second_tin_notice',
294
321
  :'recipient_name',
295
322
  :'recipient_second_name',
296
323
  :'address',
@@ -298,8 +325,10 @@ module AvalaraSdk::A1099::V2
298
325
  :'city',
299
326
  :'state',
300
327
  :'zip',
301
- :'foreign_province',
328
+ :'non_us_province',
302
329
  :'country_code',
330
+ :'account_number',
331
+ :'office_code',
303
332
  :'validation_errors',
304
333
  :'state_and_local_withholding'
305
334
  ])
@@ -473,6 +502,10 @@ module AvalaraSdk::A1099::V2
473
502
  self.address_verification_status = attributes[:'address_verification_status']
474
503
  end
475
504
 
505
+ if attributes.key?(:'e_delivery_status')
506
+ self.e_delivery_status = attributes[:'e_delivery_status']
507
+ end
508
+
476
509
  if attributes.key?(:'reference_id')
477
510
  self.reference_id = attributes[:'reference_id']
478
511
  end
@@ -485,10 +518,22 @@ module AvalaraSdk::A1099::V2
485
518
  self.tin_type = attributes[:'tin_type']
486
519
  end
487
520
 
521
+ if attributes.key?(:'fatca_filing_requirement')
522
+ self.fatca_filing_requirement = attributes[:'fatca_filing_requirement']
523
+ end
524
+
488
525
  if attributes.key?(:'tin')
489
526
  self.tin = attributes[:'tin']
490
527
  end
491
528
 
529
+ if attributes.key?(:'no_tin')
530
+ self.no_tin = attributes[:'no_tin']
531
+ end
532
+
533
+ if attributes.key?(:'second_tin_notice')
534
+ self.second_tin_notice = attributes[:'second_tin_notice']
535
+ end
536
+
492
537
  if attributes.key?(:'recipient_name')
493
538
  self.recipient_name = attributes[:'recipient_name']
494
539
  end
@@ -517,14 +562,22 @@ module AvalaraSdk::A1099::V2
517
562
  self.zip = attributes[:'zip']
518
563
  end
519
564
 
520
- if attributes.key?(:'foreign_province')
521
- self.foreign_province = attributes[:'foreign_province']
565
+ if attributes.key?(:'non_us_province')
566
+ self.non_us_province = attributes[:'non_us_province']
522
567
  end
523
568
 
524
569
  if attributes.key?(:'country_code')
525
570
  self.country_code = attributes[:'country_code']
526
571
  end
527
572
 
573
+ if attributes.key?(:'account_number')
574
+ self.account_number = attributes[:'account_number']
575
+ end
576
+
577
+ if attributes.key?(:'office_code')
578
+ self.office_code = attributes[:'office_code']
579
+ end
580
+
528
581
  if attributes.key?(:'validation_errors')
529
582
  if (value = attributes[:'validation_errors']).is_a?(Array)
530
583
  self.validation_errors = value
@@ -636,10 +689,14 @@ module AvalaraSdk::A1099::V2
636
689
  tin_match_status == o.tin_match_status &&
637
690
  address_verification == o.address_verification &&
638
691
  address_verification_status == o.address_verification_status &&
692
+ e_delivery_status == o.e_delivery_status &&
639
693
  reference_id == o.reference_id &&
640
694
  email == o.email &&
641
695
  tin_type == o.tin_type &&
696
+ fatca_filing_requirement == o.fatca_filing_requirement &&
642
697
  tin == o.tin &&
698
+ no_tin == o.no_tin &&
699
+ second_tin_notice == o.second_tin_notice &&
643
700
  recipient_name == o.recipient_name &&
644
701
  recipient_second_name == o.recipient_second_name &&
645
702
  address == o.address &&
@@ -647,8 +704,10 @@ module AvalaraSdk::A1099::V2
647
704
  city == o.city &&
648
705
  state == o.state &&
649
706
  zip == o.zip &&
650
- foreign_province == o.foreign_province &&
707
+ non_us_province == o.non_us_province &&
651
708
  country_code == o.country_code &&
709
+ account_number == o.account_number &&
710
+ office_code == o.office_code &&
652
711
  validation_errors == o.validation_errors &&
653
712
  created_at == o.created_at &&
654
713
  updated_at == o.updated_at &&
@@ -664,7 +723,7 @@ module AvalaraSdk::A1099::V2
664
723
  # Calculates hash code according to all attributes.
665
724
  # @return [Integer] Hash code
666
725
  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, 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
726
+ [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, e_delivery_status, reference_id, email, tin_type, fatca_filing_requirement, tin, no_tin, second_tin_notice, recipient_name, recipient_second_name, address, address2, city, state, zip, non_us_province, country_code, account_number, office_code, validation_errors, created_at, updated_at, state_and_local_withholding].hash
668
727
  end
669
728
 
670
729
  # Builds the object from hash
@@ -114,7 +114,7 @@ module AvalaraSdk::A1099::V2
114
114
  attr_accessor :zip
115
115
 
116
116
  # Recipient email address
117
- attr_accessor :recipient_email
117
+ attr_accessor :email
118
118
 
119
119
  # Account number
120
120
  attr_accessor :account_number
@@ -123,7 +123,7 @@ module AvalaraSdk::A1099::V2
123
123
  attr_accessor :office_code
124
124
 
125
125
  # Foreign province
126
- attr_accessor :recipient_non_us_province
126
+ attr_accessor :non_us_province
127
127
 
128
128
  # Country code, as defined at https://www.irs.gov/e-file-providers/country-codes
129
129
  attr_accessor :country_code
@@ -140,6 +140,15 @@ module AvalaraSdk::A1099::V2
140
140
  # Boolean indicating that TIN Matching should be scheduled for this form
141
141
  attr_accessor :tin_match
142
142
 
143
+ # Indicates whether the recipient has no TIN
144
+ attr_accessor :no_tin
145
+
146
+ # Second TIN notice in three years
147
+ attr_accessor :second_tin_notice
148
+
149
+ # Fatca filing requirement
150
+ attr_accessor :fatca_filing_requirement
151
+
143
152
  # Boolean indicating that address verification should be scheduled for this form
144
153
  attr_accessor :address_verification
145
154
 
@@ -205,15 +214,18 @@ module AvalaraSdk::A1099::V2
205
214
  :'city' => :'city',
206
215
  :'state' => :'state',
207
216
  :'zip' => :'zip',
208
- :'recipient_email' => :'recipientEmail',
217
+ :'email' => :'email',
209
218
  :'account_number' => :'accountNumber',
210
219
  :'office_code' => :'officeCode',
211
- :'recipient_non_us_province' => :'recipientNonUsProvince',
220
+ :'non_us_province' => :'nonUsProvince',
212
221
  :'country_code' => :'countryCode',
213
222
  :'federal_e_file' => :'federalEFile',
214
223
  :'postal_mail' => :'postalMail',
215
224
  :'state_e_file' => :'stateEFile',
216
225
  :'tin_match' => :'tinMatch',
226
+ :'no_tin' => :'noTin',
227
+ :'second_tin_notice' => :'secondTinNotice',
228
+ :'fatca_filing_requirement' => :'fatcaFilingRequirement',
217
229
  :'address_verification' => :'addressVerification',
218
230
  :'state_and_local_withholding' => :'stateAndLocalWithholding'
219
231
  }
@@ -261,15 +273,18 @@ module AvalaraSdk::A1099::V2
261
273
  :'city' => :'String',
262
274
  :'state' => :'String',
263
275
  :'zip' => :'String',
264
- :'recipient_email' => :'String',
276
+ :'email' => :'String',
265
277
  :'account_number' => :'String',
266
278
  :'office_code' => :'String',
267
- :'recipient_non_us_province' => :'String',
279
+ :'non_us_province' => :'String',
268
280
  :'country_code' => :'String',
269
281
  :'federal_e_file' => :'Boolean',
270
282
  :'postal_mail' => :'Boolean',
271
283
  :'state_e_file' => :'Boolean',
272
284
  :'tin_match' => :'Boolean',
285
+ :'no_tin' => :'Boolean',
286
+ :'second_tin_notice' => :'Boolean',
287
+ :'fatca_filing_requirement' => :'Boolean',
273
288
  :'address_verification' => :'Boolean',
274
289
  :'state_and_local_withholding' => :'StateAndLocalWithholdingRequest'
275
290
  }
@@ -294,14 +309,25 @@ module AvalaraSdk::A1099::V2
294
309
  :'october',
295
310
  :'november',
296
311
  :'december',
312
+ :'issuer_reference_id',
313
+ :'issuer_tin',
297
314
  :'issuer_id',
298
315
  :'reference_id',
316
+ :'recipient_tin',
317
+ :'recipient_name',
299
318
  :'recipient_second_name',
319
+ :'address',
300
320
  :'address2',
301
- :'recipient_email',
321
+ :'city',
322
+ :'state',
323
+ :'zip',
324
+ :'email',
302
325
  :'account_number',
303
326
  :'office_code',
304
- :'recipient_non_us_province',
327
+ :'non_us_province',
328
+ :'country_code',
329
+ :'second_tin_notice',
330
+ :'state_and_local_withholding'
305
331
  ])
306
332
  end
307
333
 
@@ -435,8 +461,6 @@ module AvalaraSdk::A1099::V2
435
461
 
436
462
  if attributes.key?(:'recipient_name')
437
463
  self.recipient_name = attributes[:'recipient_name']
438
- else
439
- self.recipient_name = nil
440
464
  end
441
465
 
442
466
  if attributes.key?(:'tin_type')
@@ -449,8 +473,6 @@ module AvalaraSdk::A1099::V2
449
473
 
450
474
  if attributes.key?(:'address')
451
475
  self.address = attributes[:'address']
452
- else
453
- self.address = nil
454
476
  end
455
477
 
456
478
  if attributes.key?(:'address2')
@@ -459,8 +481,6 @@ module AvalaraSdk::A1099::V2
459
481
 
460
482
  if attributes.key?(:'city')
461
483
  self.city = attributes[:'city']
462
- else
463
- self.city = nil
464
484
  end
465
485
 
466
486
  if attributes.key?(:'state')
@@ -471,8 +491,8 @@ module AvalaraSdk::A1099::V2
471
491
  self.zip = attributes[:'zip']
472
492
  end
473
493
 
474
- if attributes.key?(:'recipient_email')
475
- self.recipient_email = attributes[:'recipient_email']
494
+ if attributes.key?(:'email')
495
+ self.email = attributes[:'email']
476
496
  end
477
497
 
478
498
  if attributes.key?(:'account_number')
@@ -483,14 +503,12 @@ module AvalaraSdk::A1099::V2
483
503
  self.office_code = attributes[:'office_code']
484
504
  end
485
505
 
486
- if attributes.key?(:'recipient_non_us_province')
487
- self.recipient_non_us_province = attributes[:'recipient_non_us_province']
506
+ if attributes.key?(:'non_us_province')
507
+ self.non_us_province = attributes[:'non_us_province']
488
508
  end
489
509
 
490
510
  if attributes.key?(:'country_code')
491
511
  self.country_code = attributes[:'country_code']
492
- else
493
- self.country_code = nil
494
512
  end
495
513
 
496
514
  if attributes.key?(:'federal_e_file')
@@ -509,6 +527,18 @@ module AvalaraSdk::A1099::V2
509
527
  self.tin_match = attributes[:'tin_match']
510
528
  end
511
529
 
530
+ if attributes.key?(:'no_tin')
531
+ self.no_tin = attributes[:'no_tin']
532
+ end
533
+
534
+ if attributes.key?(:'second_tin_notice')
535
+ self.second_tin_notice = attributes[:'second_tin_notice']
536
+ end
537
+
538
+ if attributes.key?(:'fatca_filing_requirement')
539
+ self.fatca_filing_requirement = attributes[:'fatca_filing_requirement']
540
+ end
541
+
512
542
  if attributes.key?(:'address_verification')
513
543
  self.address_verification = attributes[:'address_verification']
514
544
  end
@@ -527,38 +557,6 @@ module AvalaraSdk::A1099::V2
527
557
  invalid_properties.push('invalid value for "tax_year", tax_year cannot be nil.')
528
558
  end
529
559
 
530
- if @recipient_name.nil?
531
- invalid_properties.push('invalid value for "recipient_name", recipient_name cannot be nil.')
532
- end
533
-
534
- if @recipient_name.to_s.length < 1
535
- invalid_properties.push('invalid value for "recipient_name", the character length must be great than or equal to 1.')
536
- end
537
-
538
- if @address.nil?
539
- invalid_properties.push('invalid value for "address", address cannot be nil.')
540
- end
541
-
542
- if @address.to_s.length < 1
543
- invalid_properties.push('invalid value for "address", the character length must be great than or equal to 1.')
544
- end
545
-
546
- if @city.nil?
547
- invalid_properties.push('invalid value for "city", city cannot be nil.')
548
- end
549
-
550
- if @city.to_s.length < 1
551
- invalid_properties.push('invalid value for "city", the character length must be great than or equal to 1.')
552
- end
553
-
554
- if @country_code.nil?
555
- invalid_properties.push('invalid value for "country_code", country_code cannot be nil.')
556
- end
557
-
558
- if @country_code.to_s.length < 1
559
- invalid_properties.push('invalid value for "country_code", the character length must be great than or equal to 1.')
560
- end
561
-
562
560
  invalid_properties
563
561
  end
564
562
 
@@ -571,16 +569,8 @@ module AvalaraSdk::A1099::V2
571
569
  payment_type_validator = EnumAttributeValidator.new('String', ["MerchantPaymentCard", "ThirdPartyNetwork"])
572
570
  return false unless payment_type_validator.valid?(@payment_type)
573
571
  return false if @tax_year.nil?
574
- return false if @recipient_name.nil?
575
- return false if @recipient_name.to_s.length < 1
576
572
  tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
577
573
  return false unless tin_type_validator.valid?(@tin_type)
578
- return false if @address.nil?
579
- return false if @address.to_s.length < 1
580
- return false if @city.nil?
581
- return false if @city.to_s.length < 1
582
- return false if @country_code.nil?
583
- return false if @country_code.to_s.length < 1
584
574
  true
585
575
  end
586
576
 
@@ -604,20 +594,6 @@ module AvalaraSdk::A1099::V2
604
594
  @payment_type = payment_type
605
595
  end
606
596
 
607
- # Custom attribute writer method with validation
608
- # @param [Object] recipient_name Value to be assigned
609
- def recipient_name=(recipient_name)
610
- if recipient_name.nil?
611
- fail ArgumentError, 'recipient_name cannot be nil'
612
- end
613
-
614
- if recipient_name.to_s.length < 1
615
- fail ArgumentError, 'invalid value for "recipient_name", the character length must be great than or equal to 1.'
616
- end
617
-
618
- @recipient_name = recipient_name
619
- end
620
-
621
597
  # Custom attribute writer method checking allowed values (enum).
622
598
  # @param [Object] tin_type Object to be assigned
623
599
  def tin_type=(tin_type)
@@ -628,48 +604,6 @@ module AvalaraSdk::A1099::V2
628
604
  @tin_type = tin_type
629
605
  end
630
606
 
631
- # Custom attribute writer method with validation
632
- # @param [Object] address Value to be assigned
633
- def address=(address)
634
- if address.nil?
635
- fail ArgumentError, 'address cannot be nil'
636
- end
637
-
638
- if address.to_s.length < 1
639
- fail ArgumentError, 'invalid value for "address", the character length must be great than or equal to 1.'
640
- end
641
-
642
- @address = address
643
- end
644
-
645
- # Custom attribute writer method with validation
646
- # @param [Object] city Value to be assigned
647
- def city=(city)
648
- if city.nil?
649
- fail ArgumentError, 'city cannot be nil'
650
- end
651
-
652
- if city.to_s.length < 1
653
- fail ArgumentError, 'invalid value for "city", the character length must be great than or equal to 1.'
654
- end
655
-
656
- @city = city
657
- end
658
-
659
- # Custom attribute writer method with validation
660
- # @param [Object] country_code Value to be assigned
661
- def country_code=(country_code)
662
- if country_code.nil?
663
- fail ArgumentError, 'country_code cannot be nil'
664
- end
665
-
666
- if country_code.to_s.length < 1
667
- fail ArgumentError, 'invalid value for "country_code", the character length must be great than or equal to 1.'
668
- end
669
-
670
- @country_code = country_code
671
- end
672
-
673
607
  # Checks equality by comparing each attribute.
674
608
  # @param [Object] Object to be compared
675
609
  def ==(o)
@@ -709,15 +643,18 @@ module AvalaraSdk::A1099::V2
709
643
  city == o.city &&
710
644
  state == o.state &&
711
645
  zip == o.zip &&
712
- recipient_email == o.recipient_email &&
646
+ email == o.email &&
713
647
  account_number == o.account_number &&
714
648
  office_code == o.office_code &&
715
- recipient_non_us_province == o.recipient_non_us_province &&
649
+ non_us_province == o.non_us_province &&
716
650
  country_code == o.country_code &&
717
651
  federal_e_file == o.federal_e_file &&
718
652
  postal_mail == o.postal_mail &&
719
653
  state_e_file == o.state_e_file &&
720
654
  tin_match == o.tin_match &&
655
+ no_tin == o.no_tin &&
656
+ second_tin_notice == o.second_tin_notice &&
657
+ fatca_filing_requirement == o.fatca_filing_requirement &&
721
658
  address_verification == o.address_verification &&
722
659
  state_and_local_withholding == o.state_and_local_withholding
723
660
  end
@@ -731,7 +668,7 @@ module AvalaraSdk::A1099::V2
731
668
  # Calculates hash code according to all attributes.
732
669
  # @return [Integer] Hash code
733
670
  def hash
734
- [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_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
671
+ [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_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
735
672
  end
736
673
 
737
674
  # Builds the object from hash