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
@@ -10,7 +10,7 @@ require 'date'
10
10
  require 'time'
11
11
 
12
12
  module AvalaraSdk::A1099::V2
13
- class W4FormResponse
13
+ class W4FormResponse < W9FormBaseResponse
14
14
  # The first name of the employee.
15
15
  attr_accessor :employee_first_name
16
16
 
@@ -68,48 +68,6 @@ module AvalaraSdk::A1099::V2
68
68
  # The office code associated with the form.
69
69
  attr_accessor :office_code
70
70
 
71
- # The unique identifier for the form.
72
- attr_accessor :id
73
-
74
- # The form type.
75
- attr_accessor :type
76
-
77
- # The form status.
78
- attr_accessor :entry_status
79
-
80
- # The timestamp for the latest status update.
81
- attr_accessor :entry_status_date
82
-
83
- # A reference identifier for the form.
84
- attr_accessor :reference_id
85
-
86
- # The ID of the associated company.
87
- attr_accessor :company_id
88
-
89
- # The display name associated with the form.
90
- attr_accessor :display_name
91
-
92
- # The email address of the individual associated with the form.
93
- attr_accessor :email
94
-
95
- # Indicates whether the form is archived.
96
- attr_accessor :archived
97
-
98
- # The signature of the form.
99
- attr_accessor :signature
100
-
101
- # The date the form was signed.
102
- attr_accessor :signed_date
103
-
104
- # The date when e-delivery was consented.
105
- attr_accessor :e_delivery_consented_at
106
-
107
- # The creation date of the form.
108
- attr_accessor :created_at
109
-
110
- # The last updated date of the form.
111
- attr_accessor :updated_at
112
-
113
71
  # Attribute mapping from ruby-style variable name to JSON key.
114
72
  def self.attribute_map
115
73
  {
@@ -131,27 +89,13 @@ module AvalaraSdk::A1099::V2
131
89
  :'deductions' => :'deductions',
132
90
  :'additional_withheld' => :'additionalWithheld',
133
91
  :'exempt_from_withholding' => :'exemptFromWithholding',
134
- :'office_code' => :'officeCode',
135
- :'id' => :'id',
136
- :'type' => :'type',
137
- :'entry_status' => :'entryStatus',
138
- :'entry_status_date' => :'entryStatusDate',
139
- :'reference_id' => :'referenceId',
140
- :'company_id' => :'companyId',
141
- :'display_name' => :'displayName',
142
- :'email' => :'email',
143
- :'archived' => :'archived',
144
- :'signature' => :'signature',
145
- :'signed_date' => :'signedDate',
146
- :'e_delivery_consented_at' => :'eDeliveryConsentedAt',
147
- :'created_at' => :'createdAt',
148
- :'updated_at' => :'updatedAt'
92
+ :'office_code' => :'officeCode'
149
93
  }
150
94
  end
151
95
 
152
- # Returns all the JSON keys this model knows about
96
+ # Returns all the JSON keys this model knows about, including the ones defined in its parent(s)
153
97
  def self.acceptable_attributes
154
- attribute_map.values
98
+ attribute_map.values.concat(superclass.acceptable_attributes)
155
99
  end
156
100
 
157
101
  # Attribute type mapping.
@@ -175,21 +119,7 @@ module AvalaraSdk::A1099::V2
175
119
  :'deductions' => :'Float',
176
120
  :'additional_withheld' => :'Float',
177
121
  :'exempt_from_withholding' => :'Boolean',
178
- :'office_code' => :'String',
179
- :'id' => :'String',
180
- :'type' => :'String',
181
- :'entry_status' => :'String',
182
- :'entry_status_date' => :'Time',
183
- :'reference_id' => :'String',
184
- :'company_id' => :'String',
185
- :'display_name' => :'String',
186
- :'email' => :'String',
187
- :'archived' => :'Boolean',
188
- :'signature' => :'String',
189
- :'signed_date' => :'Time',
190
- :'e_delivery_consented_at' => :'Time',
191
- :'created_at' => :'Time',
192
- :'updated_at' => :'Time'
122
+ :'office_code' => :'String'
193
123
  }
194
124
  end
195
125
 
@@ -208,13 +138,7 @@ module AvalaraSdk::A1099::V2
208
138
  :'non_job_income',
209
139
  :'deductions',
210
140
  :'additional_withheld',
211
- :'office_code',
212
- :'entry_status_date',
213
- :'reference_id',
214
- :'email',
215
- :'signature',
216
- :'signed_date',
217
- :'e_delivery_consented_at',
141
+ :'office_code'
218
142
  ])
219
143
  end
220
144
 
@@ -240,6 +164,9 @@ module AvalaraSdk::A1099::V2
240
164
  h[k.to_sym] = v
241
165
  }
242
166
 
167
+ # call parent's initialize
168
+ super(attributes)
169
+
243
170
  if attributes.key?(:'employee_first_name')
244
171
  self.employee_first_name = attributes[:'employee_first_name']
245
172
  end
@@ -315,69 +242,13 @@ module AvalaraSdk::A1099::V2
315
242
  if attributes.key?(:'office_code')
316
243
  self.office_code = attributes[:'office_code']
317
244
  end
318
-
319
- if attributes.key?(:'id')
320
- self.id = attributes[:'id']
321
- end
322
-
323
- if attributes.key?(:'type')
324
- self.type = attributes[:'type']
325
- end
326
-
327
- if attributes.key?(:'entry_status')
328
- self.entry_status = attributes[:'entry_status']
329
- end
330
-
331
- if attributes.key?(:'entry_status_date')
332
- self.entry_status_date = attributes[:'entry_status_date']
333
- end
334
-
335
- if attributes.key?(:'reference_id')
336
- self.reference_id = attributes[:'reference_id']
337
- end
338
-
339
- if attributes.key?(:'company_id')
340
- self.company_id = attributes[:'company_id']
341
- end
342
-
343
- if attributes.key?(:'display_name')
344
- self.display_name = attributes[:'display_name']
345
- end
346
-
347
- if attributes.key?(:'email')
348
- self.email = attributes[:'email']
349
- end
350
-
351
- if attributes.key?(:'archived')
352
- self.archived = attributes[:'archived']
353
- end
354
-
355
- if attributes.key?(:'signature')
356
- self.signature = attributes[:'signature']
357
- end
358
-
359
- if attributes.key?(:'signed_date')
360
- self.signed_date = attributes[:'signed_date']
361
- end
362
-
363
- if attributes.key?(:'e_delivery_consented_at')
364
- self.e_delivery_consented_at = attributes[:'e_delivery_consented_at']
365
- end
366
-
367
- if attributes.key?(:'created_at')
368
- self.created_at = attributes[:'created_at']
369
- end
370
-
371
- if attributes.key?(:'updated_at')
372
- self.updated_at = attributes[:'updated_at']
373
- end
374
245
  end
375
246
 
376
247
  # Show invalid properties with the reasons. Usually used together with valid?
377
248
  # @return Array for valid properties with the reasons
378
249
  def list_invalid_properties
379
250
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
380
- invalid_properties = Array.new
251
+ invalid_properties = super
381
252
  invalid_properties
382
253
  end
383
254
 
@@ -385,7 +256,7 @@ module AvalaraSdk::A1099::V2
385
256
  # @return true if the model is valid
386
257
  def valid?
387
258
  warn '[DEPRECATED] the `valid?` method is obsolete'
388
- true
259
+ true && super
389
260
  end
390
261
 
391
262
  # Checks equality by comparing each attribute.
@@ -411,21 +282,7 @@ module AvalaraSdk::A1099::V2
411
282
  deductions == o.deductions &&
412
283
  additional_withheld == o.additional_withheld &&
413
284
  exempt_from_withholding == o.exempt_from_withholding &&
414
- office_code == o.office_code &&
415
- id == o.id &&
416
- type == o.type &&
417
- entry_status == o.entry_status &&
418
- entry_status_date == o.entry_status_date &&
419
- reference_id == o.reference_id &&
420
- company_id == o.company_id &&
421
- display_name == o.display_name &&
422
- email == o.email &&
423
- archived == o.archived &&
424
- signature == o.signature &&
425
- signed_date == o.signed_date &&
426
- e_delivery_consented_at == o.e_delivery_consented_at &&
427
- created_at == o.created_at &&
428
- updated_at == o.updated_at
285
+ office_code == o.office_code && super(o)
429
286
  end
430
287
 
431
288
  # @see the `==` method
@@ -437,7 +294,7 @@ module AvalaraSdk::A1099::V2
437
294
  # Calculates hash code according to all attributes.
438
295
  # @return [Integer] Hash code
439
296
  def hash
440
- [employee_first_name, employee_middle_name, employee_last_name, employee_name_suffix, tin_type, tin, address, city, state, zip, marital_status, last_name_differs, num_allowances, other_dependents, non_job_income, deductions, additional_withheld, exempt_from_withholding, office_code, id, type, entry_status, entry_status_date, reference_id, company_id, display_name, email, archived, signature, signed_date, e_delivery_consented_at, created_at, updated_at].hash
297
+ [employee_first_name, employee_middle_name, employee_last_name, employee_name_suffix, tin_type, tin, address, city, state, zip, marital_status, last_name_differs, num_allowances, other_dependents, non_job_income, deductions, additional_withheld, exempt_from_withholding, office_code].hash
441
298
  end
442
299
 
443
300
  # Builds the object from hash
@@ -445,6 +302,7 @@ module AvalaraSdk::A1099::V2
445
302
  # @return [Object] Returns the model itself
446
303
  def self.build_from_hash(attributes)
447
304
  return nil unless attributes.is_a?(Hash)
305
+ super(attributes)
448
306
  attributes = attributes.transform_keys(&:to_sym)
449
307
  transformed_hash = {}
450
308
  openapi_types.each_pair do |key, type|
@@ -521,7 +379,7 @@ module AvalaraSdk::A1099::V2
521
379
  # Returns the object in the form of hash
522
380
  # @return [Hash] Returns the object in the form of hash
523
381
  def to_hash
524
- hash = {}
382
+ hash = super
525
383
  self.class.attribute_map.each_pair do |attr, param|
526
384
  value = self.send(attr)
527
385
  if value.nil?
@@ -10,7 +10,7 @@ require 'date'
10
10
  require 'time'
11
11
 
12
12
  module AvalaraSdk::A1099::V2
13
- class W8BenEFormResponse
13
+ class W8BenEFormResponse < W9FormBaseResponse
14
14
  # The name of the individual or entity associated with the form.
15
15
  attr_accessor :name
16
16
 
@@ -299,48 +299,6 @@ module AvalaraSdk::A1099::V2
299
299
  # Certifies signer has the capacity to sign for the beneficial owner.
300
300
  attr_accessor :capacity_to_sign_certification
301
301
 
302
- # The unique identifier for the form.
303
- attr_accessor :id
304
-
305
- # The form type.
306
- attr_accessor :type
307
-
308
- # The form status.
309
- attr_accessor :entry_status
310
-
311
- # The timestamp for the latest status update.
312
- attr_accessor :entry_status_date
313
-
314
- # A reference identifier for the form.
315
- attr_accessor :reference_id
316
-
317
- # The ID of the associated company.
318
- attr_accessor :company_id
319
-
320
- # The display name associated with the form.
321
- attr_accessor :display_name
322
-
323
- # The email address of the individual associated with the form.
324
- attr_accessor :email
325
-
326
- # Indicates whether the form is archived.
327
- attr_accessor :archived
328
-
329
- # The signature of the form.
330
- attr_accessor :signature
331
-
332
- # The date the form was signed.
333
- attr_accessor :signed_date
334
-
335
- # The date when e-delivery was consented.
336
- attr_accessor :e_delivery_consented_at
337
-
338
- # The creation date of the form.
339
- attr_accessor :created_at
340
-
341
- # The last updated date of the form.
342
- attr_accessor :updated_at
343
-
344
302
  # Attribute mapping from ruby-style variable name to JSON key.
345
303
  def self.attribute_map
346
304
  {
@@ -439,27 +397,13 @@ module AvalaraSdk::A1099::V2
439
397
  :'direct_reporting_nffe_sponsoring_entity' => :'directReportingNffeSponsoringEntity',
440
398
  :'substantial_us_owners' => :'substantialUsOwners',
441
399
  :'signer_name' => :'signerName',
442
- :'capacity_to_sign_certification' => :'capacityToSignCertification',
443
- :'id' => :'id',
444
- :'type' => :'type',
445
- :'entry_status' => :'entryStatus',
446
- :'entry_status_date' => :'entryStatusDate',
447
- :'reference_id' => :'referenceId',
448
- :'company_id' => :'companyId',
449
- :'display_name' => :'displayName',
450
- :'email' => :'email',
451
- :'archived' => :'archived',
452
- :'signature' => :'signature',
453
- :'signed_date' => :'signedDate',
454
- :'e_delivery_consented_at' => :'eDeliveryConsentedAt',
455
- :'created_at' => :'createdAt',
456
- :'updated_at' => :'updatedAt'
400
+ :'capacity_to_sign_certification' => :'capacityToSignCertification'
457
401
  }
458
402
  end
459
403
 
460
- # Returns all the JSON keys this model knows about
404
+ # Returns all the JSON keys this model knows about, including the ones defined in its parent(s)
461
405
  def self.acceptable_attributes
462
- attribute_map.values
406
+ attribute_map.values.concat(superclass.acceptable_attributes)
463
407
  end
464
408
 
465
409
  # Attribute type mapping.
@@ -560,21 +504,7 @@ module AvalaraSdk::A1099::V2
560
504
  :'direct_reporting_nffe_sponsoring_entity' => :'String',
561
505
  :'substantial_us_owners' => :'Array<SubstantialUsOwnerResponse>',
562
506
  :'signer_name' => :'String',
563
- :'capacity_to_sign_certification' => :'Boolean',
564
- :'id' => :'String',
565
- :'type' => :'String',
566
- :'entry_status' => :'String',
567
- :'entry_status_date' => :'Time',
568
- :'reference_id' => :'String',
569
- :'company_id' => :'String',
570
- :'display_name' => :'String',
571
- :'email' => :'String',
572
- :'archived' => :'Boolean',
573
- :'signature' => :'String',
574
- :'signed_date' => :'Time',
575
- :'e_delivery_consented_at' => :'Time',
576
- :'created_at' => :'Time',
577
- :'updated_at' => :'Time'
507
+ :'capacity_to_sign_certification' => :'Boolean'
578
508
  }
579
509
  end
580
510
 
@@ -621,12 +551,6 @@ module AvalaraSdk::A1099::V2
621
551
  :'nffe_affiliate_of_publicly_traded_entity_securities_market',
622
552
  :'direct_reporting_nffe_sponsoring_entity',
623
553
  :'signer_name',
624
- :'entry_status_date',
625
- :'reference_id',
626
- :'email',
627
- :'signature',
628
- :'signed_date',
629
- :'e_delivery_consented_at',
630
554
  ])
631
555
  end
632
556
 
@@ -652,6 +576,9 @@ module AvalaraSdk::A1099::V2
652
576
  h[k.to_sym] = v
653
577
  }
654
578
 
579
+ # call parent's initialize
580
+ super(attributes)
581
+
655
582
  if attributes.key?(:'name')
656
583
  self.name = attributes[:'name']
657
584
  end
@@ -1037,69 +964,13 @@ module AvalaraSdk::A1099::V2
1037
964
  if attributes.key?(:'capacity_to_sign_certification')
1038
965
  self.capacity_to_sign_certification = attributes[:'capacity_to_sign_certification']
1039
966
  end
1040
-
1041
- if attributes.key?(:'id')
1042
- self.id = attributes[:'id']
1043
- end
1044
-
1045
- if attributes.key?(:'type')
1046
- self.type = attributes[:'type']
1047
- end
1048
-
1049
- if attributes.key?(:'entry_status')
1050
- self.entry_status = attributes[:'entry_status']
1051
- end
1052
-
1053
- if attributes.key?(:'entry_status_date')
1054
- self.entry_status_date = attributes[:'entry_status_date']
1055
- end
1056
-
1057
- if attributes.key?(:'reference_id')
1058
- self.reference_id = attributes[:'reference_id']
1059
- end
1060
-
1061
- if attributes.key?(:'company_id')
1062
- self.company_id = attributes[:'company_id']
1063
- end
1064
-
1065
- if attributes.key?(:'display_name')
1066
- self.display_name = attributes[:'display_name']
1067
- end
1068
-
1069
- if attributes.key?(:'email')
1070
- self.email = attributes[:'email']
1071
- end
1072
-
1073
- if attributes.key?(:'archived')
1074
- self.archived = attributes[:'archived']
1075
- end
1076
-
1077
- if attributes.key?(:'signature')
1078
- self.signature = attributes[:'signature']
1079
- end
1080
-
1081
- if attributes.key?(:'signed_date')
1082
- self.signed_date = attributes[:'signed_date']
1083
- end
1084
-
1085
- if attributes.key?(:'e_delivery_consented_at')
1086
- self.e_delivery_consented_at = attributes[:'e_delivery_consented_at']
1087
- end
1088
-
1089
- if attributes.key?(:'created_at')
1090
- self.created_at = attributes[:'created_at']
1091
- end
1092
-
1093
- if attributes.key?(:'updated_at')
1094
- self.updated_at = attributes[:'updated_at']
1095
- end
1096
967
  end
1097
968
 
1098
969
  # Show invalid properties with the reasons. Usually used together with valid?
1099
970
  # @return Array for valid properties with the reasons
1100
971
  def list_invalid_properties
1101
972
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
1102
- invalid_properties = Array.new
973
+ invalid_properties = super
1103
974
  invalid_properties
1104
975
  end
1105
976
 
@@ -1107,7 +978,7 @@ module AvalaraSdk::A1099::V2
1107
978
  # @return true if the model is valid
1108
979
  def valid?
1109
980
  warn '[DEPRECATED] the `valid?` method is obsolete'
1110
- true
981
+ true && super
1111
982
  end
1112
983
 
1113
984
  # Checks equality by comparing each attribute.
@@ -1210,21 +1081,7 @@ module AvalaraSdk::A1099::V2
1210
1081
  direct_reporting_nffe_sponsoring_entity == o.direct_reporting_nffe_sponsoring_entity &&
1211
1082
  substantial_us_owners == o.substantial_us_owners &&
1212
1083
  signer_name == o.signer_name &&
1213
- capacity_to_sign_certification == o.capacity_to_sign_certification &&
1214
- id == o.id &&
1215
- type == o.type &&
1216
- entry_status == o.entry_status &&
1217
- entry_status_date == o.entry_status_date &&
1218
- reference_id == o.reference_id &&
1219
- company_id == o.company_id &&
1220
- display_name == o.display_name &&
1221
- email == o.email &&
1222
- archived == o.archived &&
1223
- signature == o.signature &&
1224
- signed_date == o.signed_date &&
1225
- e_delivery_consented_at == o.e_delivery_consented_at &&
1226
- created_at == o.created_at &&
1227
- updated_at == o.updated_at
1084
+ capacity_to_sign_certification == o.capacity_to_sign_certification && super(o)
1228
1085
  end
1229
1086
 
1230
1087
  # @see the `==` method
@@ -1236,7 +1093,7 @@ module AvalaraSdk::A1099::V2
1236
1093
  # Calculates hash code according to all attributes.
1237
1094
  # @return [Integer] Hash code
1238
1095
  def hash
1239
- [name, citizenship_country, disregarded_entity, entity_type, making_treaty_claim, fatca_status, residence_address, residence_city, residence_state, residence_zip, residence_country, residence_is_mailing, mailing_address, mailing_city, mailing_state, mailing_zip, mailing_country, tin_type, tin, giin, foreign_tin_not_required, foreign_tin, reference_number, disregarded_entity_fatca_status, disregarded_address, disregarded_city, disregarded_state, disregarded_zip, disregarded_country, disregarded_entity_giin, treaty_country_certification, treaty_country, benefit_limitation_certification, benefit_limitation, qualified_resident_status_certification, treaty_article, withholding_rate, income_type, treaty_reasons, ffi_sponsoring_entity, investment_entity_certification, controlled_foreign_corporation_certification, compliant_nonregistering_local_bank_certification, compliant_ffi_low_value_accounts_certification, sponsored_closely_held_entity_sponsoring_entity, sponsored_closely_held_investment_vehicle_certification, compliant_limited_life_debt_entity_certification, investment_entity_no_financial_accounts_certification, owner_documented_ffi_certification, owner_documented_ffi_reporting_statement_certification, owner_documented_ffi_auditor_letter_certification, owner_documented_ffi_trust_beneficiaries_certification, restricted_distributor_certification, restricted_distributor_agreement_certification, restricted_distributor_preexisting_sales_compliance_certification, nonreporting_iga_ffi_certification, iga_country, iga_model, iga_legal_status_treatment, iga_ffi_trustee_or_sponsor, iga_ffi_trustee_is_foreign, non_commercial_financial_activity_certification, internation_organization_certification, intergovernmental_organization_certification, treaty_qualified_pension_fund_certification, qualified_retirement_fund_certification, narrow_participation_retirement_fund_certification, section401_a_equivalent_pension_plan_certification, investment_entity_for_retirement_funds_certification, exempt_beneficial_owner_sponsored_retirement_fund_certification, exempt_beneficial_owner_owned_investment_entity_certification, territory_financial_institution_certification, excepted_nonfinancial_group_entity_certification, excepted_nonfinancial_start_up_certification, startup_formation_or_resolution_date, excepted_nonfinancial_entity_in_liquidation_or_bankruptcy_certification, nonfinancial_entity_filing_date, section501_c_organization_certification, determination_letter_date, nonprofit_organization_certification, publicly_traded_nffe_certification, publicly_traded_nffe_securities_market, nffe_affiliate_of_publicly_traded_entity_certification, publicly_traded_entity, nffe_affiliate_of_publicly_traded_entity_securities_market, excepted_territory_nffe_certification, active_nffe_certification, passive_nffe_certification, passive_nffe_no_substantial_us_owners_certification, passive_nffe_substantial_us_owners_provided_certification, excepted_inter_affiliate_ffi_certification, sponsored_direct_reporting_nffe_certification, direct_reporting_nffe_sponsoring_entity, substantial_us_owners, signer_name, capacity_to_sign_certification, id, type, entry_status, entry_status_date, reference_id, company_id, display_name, email, archived, signature, signed_date, e_delivery_consented_at, created_at, updated_at].hash
1096
+ [name, citizenship_country, disregarded_entity, entity_type, making_treaty_claim, fatca_status, residence_address, residence_city, residence_state, residence_zip, residence_country, residence_is_mailing, mailing_address, mailing_city, mailing_state, mailing_zip, mailing_country, tin_type, tin, giin, foreign_tin_not_required, foreign_tin, reference_number, disregarded_entity_fatca_status, disregarded_address, disregarded_city, disregarded_state, disregarded_zip, disregarded_country, disregarded_entity_giin, treaty_country_certification, treaty_country, benefit_limitation_certification, benefit_limitation, qualified_resident_status_certification, treaty_article, withholding_rate, income_type, treaty_reasons, ffi_sponsoring_entity, investment_entity_certification, controlled_foreign_corporation_certification, compliant_nonregistering_local_bank_certification, compliant_ffi_low_value_accounts_certification, sponsored_closely_held_entity_sponsoring_entity, sponsored_closely_held_investment_vehicle_certification, compliant_limited_life_debt_entity_certification, investment_entity_no_financial_accounts_certification, owner_documented_ffi_certification, owner_documented_ffi_reporting_statement_certification, owner_documented_ffi_auditor_letter_certification, owner_documented_ffi_trust_beneficiaries_certification, restricted_distributor_certification, restricted_distributor_agreement_certification, restricted_distributor_preexisting_sales_compliance_certification, nonreporting_iga_ffi_certification, iga_country, iga_model, iga_legal_status_treatment, iga_ffi_trustee_or_sponsor, iga_ffi_trustee_is_foreign, non_commercial_financial_activity_certification, internation_organization_certification, intergovernmental_organization_certification, treaty_qualified_pension_fund_certification, qualified_retirement_fund_certification, narrow_participation_retirement_fund_certification, section401_a_equivalent_pension_plan_certification, investment_entity_for_retirement_funds_certification, exempt_beneficial_owner_sponsored_retirement_fund_certification, exempt_beneficial_owner_owned_investment_entity_certification, territory_financial_institution_certification, excepted_nonfinancial_group_entity_certification, excepted_nonfinancial_start_up_certification, startup_formation_or_resolution_date, excepted_nonfinancial_entity_in_liquidation_or_bankruptcy_certification, nonfinancial_entity_filing_date, section501_c_organization_certification, determination_letter_date, nonprofit_organization_certification, publicly_traded_nffe_certification, publicly_traded_nffe_securities_market, nffe_affiliate_of_publicly_traded_entity_certification, publicly_traded_entity, nffe_affiliate_of_publicly_traded_entity_securities_market, excepted_territory_nffe_certification, active_nffe_certification, passive_nffe_certification, passive_nffe_no_substantial_us_owners_certification, passive_nffe_substantial_us_owners_provided_certification, excepted_inter_affiliate_ffi_certification, sponsored_direct_reporting_nffe_certification, direct_reporting_nffe_sponsoring_entity, substantial_us_owners, signer_name, capacity_to_sign_certification].hash
1240
1097
  end
1241
1098
 
1242
1099
  # Builds the object from hash
@@ -1244,6 +1101,7 @@ module AvalaraSdk::A1099::V2
1244
1101
  # @return [Object] Returns the model itself
1245
1102
  def self.build_from_hash(attributes)
1246
1103
  return nil unless attributes.is_a?(Hash)
1104
+ super(attributes)
1247
1105
  attributes = attributes.transform_keys(&:to_sym)
1248
1106
  transformed_hash = {}
1249
1107
  openapi_types.each_pair do |key, type|
@@ -1320,7 +1178,7 @@ module AvalaraSdk::A1099::V2
1320
1178
  # Returns the object in the form of hash
1321
1179
  # @return [Hash] Returns the object in the form of hash
1322
1180
  def to_hash
1323
- hash = {}
1181
+ hash = super
1324
1182
  self.class.attribute_map.each_pair do |attr, param|
1325
1183
  value = self.send(attr)
1326
1184
  if value.nil?