avalara_sdk 25.7.0 → 25.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (309) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +76 -39
  4. data/docs/A1099/V2/BulkUpsert1099FormsRequest.md +3 -1
  5. data/docs/A1099/V2/CompaniesW9Api.md +22 -22
  6. data/docs/A1099/V2/CoveredIndividualReferenceResponse.md +56 -0
  7. data/docs/A1099/V2/CoveredIndividualRequest.md +19 -19
  8. data/docs/A1099/V2/Create1099Form201Response.md +59 -0
  9. data/docs/A1099/V2/CreateW9Form201Response.md +55 -0
  10. data/docs/A1099/V2/CreateW9FormRequest.md +55 -0
  11. data/docs/A1099/V2/Form1042SList.md +20 -0
  12. data/docs/A1099/V2/Form1042SListItem.md +108 -0
  13. data/docs/A1099/V2/Form1042SListItemResponse.md +130 -0
  14. data/docs/A1099/V2/Form1042SRequest.md +110 -0
  15. data/docs/A1099/V2/Form1042SResponse.md +88 -0
  16. data/docs/A1099/V2/Form1095BListItem.md +31 -31
  17. data/docs/A1099/V2/Form1095BListItemResponse.md +86 -0
  18. data/docs/A1099/V2/Form1095BRequest.md +33 -33
  19. data/docs/A1099/V2/Form1099BaseResponse.md +82 -0
  20. data/docs/A1099/V2/Form1099DivListItem.md +45 -45
  21. data/docs/A1099/V2/Form1099DivRequest.md +44 -44
  22. data/docs/A1099/V2/Form1099DivResponse.md +3 -3
  23. data/docs/A1099/V2/Form1099KListItem.md +46 -46
  24. data/docs/A1099/V2/Form1099KListItemResponse.md +122 -0
  25. data/docs/A1099/V2/Form1099KRequest.md +45 -45
  26. data/docs/A1099/V2/Form1099ListResponse.md +18 -0
  27. data/docs/A1099/V2/Form1099ListResponseValueInner.md +59 -0
  28. data/docs/A1099/V2/Form1099MiscListItem.md +43 -43
  29. data/docs/A1099/V2/Form1099MiscListItemResponse.md +108 -0
  30. data/docs/A1099/V2/Form1099MiscRequest.md +42 -42
  31. data/docs/A1099/V2/Form1099MiscResponse.md +5 -5
  32. data/docs/A1099/V2/Form1099NecListItem.md +31 -31
  33. data/docs/A1099/V2/Form1099NecListItemResponse.md +88 -0
  34. data/docs/A1099/V2/Form1099NecRequest.md +30 -30
  35. data/docs/A1099/V2/Form1099NecResponse.md +5 -5
  36. data/docs/A1099/V2/Form1099RListItem.md +47 -47
  37. data/docs/A1099/V2/Form1099RListItemResponse.md +122 -0
  38. data/docs/A1099/V2/Form1099RRequest.md +45 -45
  39. data/docs/A1099/V2/Form1099StatusDetailResponse.md +20 -0
  40. data/docs/A1099/V2/FormRequestBase.md +23 -23
  41. data/docs/A1099/V2/FormRequestListItemBase.md +66 -0
  42. data/docs/A1099/V2/FormResponseBase.md +3 -3
  43. data/docs/A1099/V2/FormSingleRequestBase.md +25 -25
  44. data/docs/A1099/V2/Forms1099Api.md +75 -63
  45. data/docs/A1099/V2/FormsW9Api.md +61 -56
  46. data/docs/A1099/V2/Get1099Form200Response.md +15 -11
  47. data/docs/A1099/V2/IntermediaryOrFlowThrough.md +38 -0
  48. data/docs/A1099/V2/IntermediaryOrFlowThroughRequest.md +38 -0
  49. data/docs/A1099/V2/IntermediaryOrFlowThroughResponse.md +38 -0
  50. data/docs/A1099/V2/Issuers1099Api.md +23 -23
  51. data/docs/A1099/V2/JobResult.md +15 -15
  52. data/docs/A1099/V2/Jobs1099Api.md +2 -2
  53. data/docs/A1099/V2/PrimaryWithholdingAgent.md +20 -0
  54. data/docs/A1099/V2/PrimaryWithholdingAgentRequest.md +20 -0
  55. data/docs/A1099/V2/PrimaryWithholdingAgentResponse.md +20 -0
  56. data/docs/A1099/V2/StateAndLocalWithholdingResponse.md +8 -8
  57. data/docs/A1099/V2/StateEfileStatusDetailResponse.md +22 -0
  58. data/docs/A1099/V2/SubstantialUsOwnerRequest.md +22 -0
  59. data/docs/A1099/V2/Update1099Form200Response.md +3 -1
  60. data/docs/A1099/V2/ValidationErrorResponse.md +20 -0
  61. data/docs/A1099/V2/W4FormDataModel.md +5 -5
  62. data/docs/A1099/V2/W4FormRequest.md +66 -0
  63. data/docs/A1099/V2/W8BenEFormRequest.md +218 -0
  64. data/docs/A1099/V2/W8BenEFormResponse.md +3 -3
  65. data/docs/A1099/V2/W8BenFormDataModel.md +5 -5
  66. data/docs/A1099/V2/W8BenFormRequest.md +76 -0
  67. data/docs/A1099/V2/W8BeneFormDataModel.md +5 -5
  68. data/docs/A1099/V2/W8ImyFormDataModel.md +5 -5
  69. data/docs/A1099/V2/W8ImyFormRequest.md +250 -0
  70. data/docs/A1099/V2/W8ImyFormResponse.md +2 -2
  71. data/docs/A1099/V2/W9FormBaseRequest.md +28 -0
  72. data/docs/A1099/V2/W9FormDataModel.md +5 -5
  73. data/docs/A1099/V2/W9FormRequest.md +64 -0
  74. data/docs/EInvoicing/V1/Address.md +28 -0
  75. data/docs/EInvoicing/V1/BatchErrorDetail.md +20 -0
  76. data/docs/EInvoicing/V1/BatchSearchListResponse.md +2 -2
  77. data/docs/EInvoicing/V1/Consents.md +18 -0
  78. data/docs/EInvoicing/V1/CreateTradingPartner201Response.md +22 -0
  79. data/docs/EInvoicing/V1/CreateTradingPartnersBatch200Response.md +22 -0
  80. data/docs/EInvoicing/V1/CreateTradingPartnersBatch200ResponseValueInner.md +22 -0
  81. data/docs/EInvoicing/V1/CreateTradingPartnersBatchRequest.md +18 -0
  82. data/docs/EInvoicing/V1/DataInputFieldsApi.md +5 -5
  83. data/docs/EInvoicing/V1/DocumentsApi.md +9 -9
  84. data/docs/EInvoicing/V1/Extension.md +20 -0
  85. data/docs/EInvoicing/V1/Identifier.md +22 -0
  86. data/docs/EInvoicing/V1/InteropApi.md +1 -1
  87. data/docs/EInvoicing/V1/MandatesApi.md +6 -6
  88. data/docs/EInvoicing/V1/SearchParticipants200Response.md +22 -0
  89. data/docs/EInvoicing/V1/SubscriptionsApi.md +12 -12
  90. data/docs/EInvoicing/V1/SupportedDocumentTypes.md +26 -0
  91. data/docs/EInvoicing/V1/TaxIdentifierRequest.md +24 -0
  92. data/docs/EInvoicing/V1/TaxIdentifierResponse.md +20 -0
  93. data/docs/EInvoicing/V1/TaxIdentifierResponseValue.md +22 -0
  94. data/docs/EInvoicing/V1/TaxIdentifierSchemaByCountry200Response.md +20 -0
  95. data/docs/EInvoicing/V1/TaxIdentifiersApi.md +177 -0
  96. data/docs/EInvoicing/V1/TradingPartner.md +34 -0
  97. data/docs/EInvoicing/V1/TradingPartnersApi.md +412 -75
  98. data/docs/EInvoicing/V1/UpdateTradingPartner200Response.md +22 -0
  99. data/docs/EInvoicing/V1/ValidationError.md +20 -0
  100. data/lib/avalara_sdk/api/A1099/V2/companies_w9_api.rb +14 -14
  101. data/lib/avalara_sdk/api/A1099/V2/forms1099_api.rb +51 -39
  102. data/lib/avalara_sdk/api/A1099/V2/forms_w9_api.rb +56 -50
  103. data/lib/avalara_sdk/api/A1099/V2/issuers1099_api.rb +20 -20
  104. data/lib/avalara_sdk/api/A1099/V2/jobs1099_api.rb +2 -2
  105. data/lib/avalara_sdk/api/EInvoicing/V1/data_input_fields_api.rb +7 -7
  106. data/lib/avalara_sdk/api/EInvoicing/V1/documents_api.rb +11 -11
  107. data/lib/avalara_sdk/api/EInvoicing/V1/interop_api.rb +2 -2
  108. data/lib/avalara_sdk/api/EInvoicing/V1/mandates_api.rb +8 -8
  109. data/lib/avalara_sdk/api/EInvoicing/V1/subscriptions_api.rb +21 -21
  110. data/lib/avalara_sdk/api/EInvoicing/V1/tax_identifiers_api.rb +531 -0
  111. data/lib/avalara_sdk/api/EInvoicing/V1/trading_partners_api.rb +660 -80
  112. data/lib/avalara_sdk/models/A1099/V2/attribute.rb +1 -1
  113. data/lib/avalara_sdk/models/A1099/V2/authorized_api_request_model.rb +1 -1
  114. data/lib/avalara_sdk/models/A1099/V2/authorized_api_request_v2_data_model.rb +1 -1
  115. data/lib/avalara_sdk/models/A1099/V2/base_company_model.rb +1 -1
  116. data/lib/avalara_sdk/models/A1099/V2/base_form_list_request.rb +1 -1
  117. data/lib/avalara_sdk/models/A1099/V2/bulk_upsert1099_forms_request.rb +2 -1
  118. data/lib/avalara_sdk/models/A1099/V2/company_create_update_request_model.rb +1 -1
  119. data/lib/avalara_sdk/models/A1099/V2/company_model.rb +1 -1
  120. data/lib/avalara_sdk/models/A1099/V2/company_response.rb +1 -1
  121. data/lib/avalara_sdk/models/A1099/V2/company_response_model.rb +1 -1
  122. data/lib/avalara_sdk/models/A1099/V2/covered_individual_reference_response.rb +407 -0
  123. data/lib/avalara_sdk/models/A1099/V2/covered_individual_request.rb +20 -1
  124. data/lib/avalara_sdk/models/A1099/V2/create1099_form201_response.rb +106 -0
  125. data/lib/avalara_sdk/models/A1099/V2/create_w9_form201_response.rb +104 -0
  126. data/lib/avalara_sdk/models/A1099/V2/create_w9_form_request.rb +104 -0
  127. data/lib/avalara_sdk/models/A1099/V2/data.rb +1 -1
  128. data/lib/avalara_sdk/models/A1099/V2/error_model.rb +1 -1
  129. data/lib/avalara_sdk/models/A1099/V2/error_response.rb +1 -1
  130. data/lib/avalara_sdk/models/A1099/V2/error_response_errors_inner.rb +1 -1
  131. data/lib/avalara_sdk/models/A1099/V2/form1042_s_list.rb +238 -0
  132. data/lib/avalara_sdk/models/A1099/V2/form1042_s_list_item.rb +891 -0
  133. data/lib/avalara_sdk/models/A1099/V2/form1042_s_list_item_response.rb +925 -0
  134. data/lib/avalara_sdk/models/A1099/V2/form1042_s_request.rb +855 -0
  135. data/lib/avalara_sdk/models/A1099/V2/form1042_s_response.rb +600 -0
  136. data/lib/avalara_sdk/models/A1099/V2/form1095_b_list.rb +1 -1
  137. data/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item.rb +147 -14
  138. data/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item_response.rb +700 -0
  139. data/lib/avalara_sdk/models/A1099/V2/form1095_b_request.rb +149 -16
  140. data/lib/avalara_sdk/models/A1099/V2/form1099_base_response.rb +661 -0
  141. data/lib/avalara_sdk/models/A1099/V2/form1099_div_list.rb +1 -1
  142. data/lib/avalara_sdk/models/A1099/V2/form1099_div_list_item.rb +168 -13
  143. data/lib/avalara_sdk/models/A1099/V2/form1099_div_request.rb +159 -14
  144. data/lib/avalara_sdk/models/A1099/V2/form1099_div_response.rb +5 -5
  145. data/lib/avalara_sdk/models/A1099/V2/form1099_k_list.rb +1 -1
  146. data/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item.rb +169 -13
  147. data/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item_response.rb +930 -0
  148. data/lib/avalara_sdk/models/A1099/V2/form1099_k_request.rb +160 -14
  149. data/lib/avalara_sdk/models/A1099/V2/form1099_list_response.rb +220 -0
  150. data/lib/avalara_sdk/models/A1099/V2/form1099_list_response_value_inner.rb +106 -0
  151. data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list.rb +1 -1
  152. data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item.rb +171 -19
  153. data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item_response.rb +810 -0
  154. data/lib/avalara_sdk/models/A1099/V2/form1099_misc_request.rb +162 -20
  155. data/lib/avalara_sdk/models/A1099/V2/form1099_misc_response.rb +12 -12
  156. data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list.rb +1 -1
  157. data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item.rb +168 -20
  158. data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item_response.rb +700 -0
  159. data/lib/avalara_sdk/models/A1099/V2/form1099_nec_request.rb +157 -20
  160. data/lib/avalara_sdk/models/A1099/V2/form1099_nec_response.rb +12 -12
  161. data/lib/avalara_sdk/models/A1099/V2/form1099_proccess_result.rb +1 -1
  162. data/lib/avalara_sdk/models/A1099/V2/form1099_r_list.rb +1 -1
  163. data/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item.rb +171 -15
  164. data/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item_response.rb +888 -0
  165. data/lib/avalara_sdk/models/A1099/V2/form1099_r_request.rb +160 -14
  166. data/lib/avalara_sdk/models/A1099/V2/form1099_status_detail_response.rb +223 -0
  167. data/lib/avalara_sdk/models/A1099/V2/form_request_base.rb +138 -12
  168. data/lib/avalara_sdk/models/A1099/V2/form_request_list_item_base.rb +611 -0
  169. data/lib/avalara_sdk/models/A1099/V2/form_response_base.rb +5 -5
  170. data/lib/avalara_sdk/models/A1099/V2/form_single_request_base.rb +140 -14
  171. data/lib/avalara_sdk/models/A1099/V2/get1099_form200_response.rb +8 -6
  172. data/lib/avalara_sdk/models/A1099/V2/http_validation_problem_details.rb +1 -1
  173. data/lib/avalara_sdk/models/A1099/V2/i_create_form1099_request.rb +1 -1
  174. data/lib/avalara_sdk/models/A1099/V2/i_update_form1099_request.rb +1 -1
  175. data/lib/avalara_sdk/models/A1099/V2/intermediary_or_flow_through.rb +311 -0
  176. data/lib/avalara_sdk/models/A1099/V2/intermediary_or_flow_through_request.rb +311 -0
  177. data/lib/avalara_sdk/models/A1099/V2/intermediary_or_flow_through_response.rb +311 -0
  178. data/lib/avalara_sdk/models/A1099/V2/issuer_command.rb +1 -1
  179. data/lib/avalara_sdk/models/A1099/V2/issuer_response.rb +1 -1
  180. data/lib/avalara_sdk/models/A1099/V2/iw9_form_data_models_one_of.rb +1 -1
  181. data/lib/avalara_sdk/models/A1099/V2/job_result.rb +16 -1
  182. data/lib/avalara_sdk/models/A1099/V2/link.rb +1 -1
  183. data/lib/avalara_sdk/models/A1099/V2/paginated_query_result_model.rb +1 -1
  184. data/lib/avalara_sdk/models/A1099/V2/paginated_query_result_model_company_response.rb +1 -1
  185. data/lib/avalara_sdk/models/A1099/V2/paginated_query_result_model_issuer_response.rb +1 -1
  186. data/lib/avalara_sdk/models/A1099/V2/paginated_w9_forms_model.rb +1 -1
  187. data/lib/avalara_sdk/models/A1099/V2/primary_withholding_agent.rb +221 -0
  188. data/lib/avalara_sdk/models/A1099/V2/primary_withholding_agent_request.rb +221 -0
  189. data/lib/avalara_sdk/models/A1099/V2/primary_withholding_agent_response.rb +221 -0
  190. data/lib/avalara_sdk/models/A1099/V2/problem_details.rb +1 -1
  191. data/lib/avalara_sdk/models/A1099/V2/state_and_local_withholding_request.rb +5 -1
  192. data/lib/avalara_sdk/models/A1099/V2/state_and_local_withholding_response.rb +9 -1
  193. data/lib/avalara_sdk/models/A1099/V2/state_efile_status_detail_response.rb +231 -0
  194. data/lib/avalara_sdk/models/A1099/V2/status_detail.rb +1 -1
  195. data/lib/avalara_sdk/models/A1099/V2/substantial_us_owner_request.rb +233 -0
  196. data/lib/avalara_sdk/models/A1099/V2/substantial_us_owner_response.rb +1 -1
  197. data/lib/avalara_sdk/models/A1099/V2/update1099_form200_response.rb +2 -1
  198. data/lib/avalara_sdk/models/A1099/V2/validation_error_response.rb +231 -0
  199. data/lib/avalara_sdk/models/A1099/V2/w4_form_data_model.rb +6 -6
  200. data/lib/avalara_sdk/models/A1099/V2/w4_form_request.rb +509 -0
  201. data/lib/avalara_sdk/models/A1099/V2/w4_form_response.rb +1 -1
  202. data/lib/avalara_sdk/models/A1099/V2/w8_ben_e_form_request.rb +1343 -0
  203. data/lib/avalara_sdk/models/A1099/V2/w8_ben_e_form_response.rb +4 -4
  204. data/lib/avalara_sdk/models/A1099/V2/w8_ben_e_substantial_us_owner_data_model.rb +1 -1
  205. data/lib/avalara_sdk/models/A1099/V2/w8_ben_form_data_model.rb +6 -6
  206. data/lib/avalara_sdk/models/A1099/V2/w8_ben_form_request.rb +561 -0
  207. data/lib/avalara_sdk/models/A1099/V2/w8_ben_form_response.rb +1 -1
  208. data/lib/avalara_sdk/models/A1099/V2/w8_bene_form_data_model.rb +6 -6
  209. data/lib/avalara_sdk/models/A1099/V2/w8_imy_form_data_model.rb +6 -6
  210. data/lib/avalara_sdk/models/A1099/V2/w8_imy_form_request.rb +1518 -0
  211. data/lib/avalara_sdk/models/A1099/V2/w8_imy_form_response.rb +3 -3
  212. data/lib/avalara_sdk/models/A1099/V2/w9_form_base_request.rb +299 -0
  213. data/lib/avalara_sdk/models/A1099/V2/w9_form_base_response.rb +1 -1
  214. data/lib/avalara_sdk/models/A1099/V2/w9_form_data_model.rb +6 -6
  215. data/lib/avalara_sdk/models/A1099/V2/w9_form_request.rb +495 -0
  216. data/lib/avalara_sdk/models/A1099/V2/w9_form_response.rb +4 -3
  217. data/lib/avalara_sdk/models/EInvoicing/V1/address.rb +382 -0
  218. data/lib/avalara_sdk/models/EInvoicing/V1/batch_error_detail.rb +223 -0
  219. data/lib/avalara_sdk/models/EInvoicing/V1/batch_search.rb +1 -1
  220. data/lib/avalara_sdk/models/EInvoicing/V1/batch_search_list_response.rb +3 -2
  221. data/lib/avalara_sdk/models/EInvoicing/V1/consents.rb +213 -0
  222. data/lib/avalara_sdk/models/EInvoicing/V1/create_trading_partner201_response.rb +231 -0
  223. data/lib/avalara_sdk/models/EInvoicing/V1/create_trading_partners_batch200_response.rb +232 -0
  224. data/lib/avalara_sdk/models/EInvoicing/V1/create_trading_partners_batch200_response_value_inner.rb +231 -0
  225. data/lib/avalara_sdk/models/EInvoicing/V1/create_trading_partners_batch_request.rb +212 -0
  226. data/lib/avalara_sdk/models/EInvoicing/V1/data_input_fields_response.rb +1 -2
  227. data/lib/avalara_sdk/models/EInvoicing/V1/document_fetch.rb +1 -2
  228. data/lib/avalara_sdk/models/EInvoicing/V1/error_response.rb +1 -1
  229. data/lib/avalara_sdk/models/EInvoicing/V1/extension.rb +256 -0
  230. data/lib/avalara_sdk/models/EInvoicing/V1/hmac_signature_value.rb +1 -2
  231. data/lib/avalara_sdk/models/EInvoicing/V1/identifier.rb +302 -0
  232. data/lib/avalara_sdk/models/EInvoicing/V1/mandate.rb +1 -2
  233. data/lib/avalara_sdk/models/EInvoicing/V1/pagination.rb +1 -2
  234. data/lib/avalara_sdk/models/EInvoicing/V1/required_when_field.rb +1 -2
  235. data/lib/avalara_sdk/models/EInvoicing/V1/search_participants200_response.rb +232 -0
  236. data/lib/avalara_sdk/models/EInvoicing/V1/signature.rb +1 -2
  237. data/lib/avalara_sdk/models/EInvoicing/V1/signature_value.rb +1 -2
  238. data/lib/avalara_sdk/models/EInvoicing/V1/subscription_common.rb +1 -2
  239. data/lib/avalara_sdk/models/EInvoicing/V1/success_response.rb +1 -2
  240. data/lib/avalara_sdk/models/EInvoicing/V1/supported_document_types.rb +305 -0
  241. data/lib/avalara_sdk/models/EInvoicing/V1/tax_identifier_request.rb +329 -0
  242. data/lib/avalara_sdk/models/EInvoicing/V1/tax_identifier_response.rb +228 -0
  243. data/lib/avalara_sdk/models/EInvoicing/V1/tax_identifier_response_value.rb +231 -0
  244. data/lib/avalara_sdk/models/EInvoicing/V1/tax_identifier_schema_by_country200_response.rb +235 -0
  245. data/lib/avalara_sdk/models/EInvoicing/V1/trading_partner.rb +411 -0
  246. data/lib/avalara_sdk/models/EInvoicing/V1/update_trading_partner200_response.rb +231 -0
  247. data/lib/avalara_sdk/models/EInvoicing/V1/validation_error.rb +222 -0
  248. data/lib/avalara_sdk/models/EInvoicing/V1/webhooks_error_response.rb +1 -2
  249. data/lib/avalara_sdk/version.rb +1 -1
  250. data/lib/avalara_sdk.rb +53 -0
  251. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/byebug-11.1.3/byebug/byebug.so +0 -0
  252. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/byebug-11.1.3/gem_make.out +6 -6
  253. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/date-3.4.1/date_core.so +0 -0
  254. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/date-3.4.1/gem_make.out +6 -6
  255. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/date-3.4.1/mkmf.log +4 -4
  256. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debase-0.2.9/attach.so +0 -0
  257. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debase-0.2.9/debase_internals.so +0 -0
  258. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debase-0.2.9/gem_make.out +7 -7
  259. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debase-0.2.9/mkmf.log +6 -6
  260. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debug-1.10.0/debug/debug.so +0 -0
  261. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debug-1.10.0/gem_make.out +6 -6
  262. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/erb-5.0.1/erb/escape.so +0 -0
  263. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/erb-5.0.1/gem_make.out +6 -6
  264. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/io-console-0.8.0/gem_make.out +6 -6
  265. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/io-console-0.8.0/io/console.so +0 -0
  266. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/io-console-0.8.0/mkmf.log +21 -21
  267. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/json-2.12.2/gem_make.out +6 -6
  268. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/json-2.12.2/json/ext/generator.so +0 -0
  269. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/json-2.12.2/json/ext/parser.so +0 -0
  270. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/json-2.12.2/mkmf.log +7 -7
  271. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/prism-1.4.0/gem_make.out +6 -6
  272. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/prism-1.4.0/mkmf.log +6 -6
  273. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/prism-1.4.0/prism/prism.so +0 -0
  274. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/psych-5.2.6/gem_make.out +6 -6
  275. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/psych-5.2.6/mkmf.log +10 -10
  276. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/psych-5.2.6/psych.so +0 -0
  277. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/racc-1.8.1/gem_make.out +6 -6
  278. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/racc-1.8.1/racc/cparse.so +0 -0
  279. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/ruby-debug-ide-0.7.3/gem_make.out +2 -2
  280. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/stringio-3.1.7/gem_make.out +6 -6
  281. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/stringio-3.1.7/mkmf.log +2 -2
  282. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/stringio-3.1.7/stringio.so +0 -0
  283. data/vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/ext/byebug/Makefile +3 -3
  284. data/vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/byebug.so +0 -0
  285. data/vendor/bundle/ruby/3.3.0/gems/date-3.4.1/ext/date/Makefile +3 -3
  286. data/vendor/bundle/ruby/3.3.0/gems/date-3.4.1/lib/date_core.so +0 -0
  287. data/vendor/bundle/ruby/3.3.0/gems/debase-0.2.9/ext/Makefile +3 -3
  288. data/vendor/bundle/ruby/3.3.0/gems/debase-0.2.9/ext/attach/Makefile +3 -3
  289. data/vendor/bundle/ruby/3.3.0/gems/debase-0.2.9/lib/attach.so +0 -0
  290. data/vendor/bundle/ruby/3.3.0/gems/debase-0.2.9/lib/debase_internals.so +0 -0
  291. data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/ext/debug/Makefile +3 -3
  292. data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/debug.so +0 -0
  293. data/vendor/bundle/ruby/3.3.0/gems/erb-5.0.1/ext/erb/escape/Makefile +3 -3
  294. data/vendor/bundle/ruby/3.3.0/gems/erb-5.0.1/lib/erb/escape.so +0 -0
  295. data/vendor/bundle/ruby/3.3.0/gems/io-console-0.8.0/ext/io/console/Makefile +3 -3
  296. data/vendor/bundle/ruby/3.3.0/gems/io-console-0.8.0/lib/io/console.so +0 -0
  297. data/vendor/bundle/ruby/3.3.0/gems/json-2.12.2/ext/json/ext/generator/Makefile +3 -3
  298. data/vendor/bundle/ruby/3.3.0/gems/json-2.12.2/ext/json/ext/parser/Makefile +3 -3
  299. data/vendor/bundle/ruby/3.3.0/gems/json-2.12.2/lib/json/ext/generator.so +0 -0
  300. data/vendor/bundle/ruby/3.3.0/gems/json-2.12.2/lib/json/ext/parser.so +0 -0
  301. data/vendor/bundle/ruby/3.3.0/gems/prism-1.4.0/ext/prism/Makefile +3 -3
  302. data/vendor/bundle/ruby/3.3.0/gems/prism-1.4.0/lib/prism/prism.so +0 -0
  303. data/vendor/bundle/ruby/3.3.0/gems/psych-5.2.6/ext/psych/Makefile +3 -3
  304. data/vendor/bundle/ruby/3.3.0/gems/psych-5.2.6/lib/psych.so +0 -0
  305. data/vendor/bundle/ruby/3.3.0/gems/racc-1.8.1/ext/racc/cparse/Makefile +3 -3
  306. data/vendor/bundle/ruby/3.3.0/gems/racc-1.8.1/lib/racc/cparse.so +0 -0
  307. data/vendor/bundle/ruby/3.3.0/gems/stringio-3.1.7/ext/stringio/Makefile +3 -3
  308. data/vendor/bundle/ruby/3.3.0/gems/stringio-3.1.7/lib/stringio.so +0 -0
  309. metadata +109 -3
@@ -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
@@ -539,11 +539,11 @@ module AvalaraSdk::A1099::V2
539
539
  :'territory_financial_institution_certification' => :'Boolean',
540
540
  :'excepted_nonfinancial_group_entity_certification' => :'Boolean',
541
541
  :'excepted_nonfinancial_start_up_certification' => :'Boolean',
542
- :'startup_formation_or_resolution_date' => :'Time',
542
+ :'startup_formation_or_resolution_date' => :'Date',
543
543
  :'excepted_nonfinancial_entity_in_liquidation_or_bankruptcy_certification' => :'Boolean',
544
- :'nonfinancial_entity_filing_date' => :'Time',
544
+ :'nonfinancial_entity_filing_date' => :'Date',
545
545
  :'section501_c_organization_certification' => :'Boolean',
546
- :'determination_letter_date' => :'Time',
546
+ :'determination_letter_date' => :'Date',
547
547
  :'nonprofit_organization_certification' => :'Boolean',
548
548
  :'publicly_traded_nffe_certification' => :'Boolean',
549
549
  :'publicly_traded_nffe_securities_market' => :'String',
@@ -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
@@ -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
@@ -979,9 +979,9 @@ module AvalaraSdk::A1099::V2
979
979
  :'certify_box41' => :'Boolean',
980
980
  :'certify_box43' => :'Boolean',
981
981
  :'certify_part29_signature' => :'Boolean',
982
- :'part19_formation_or_resolution_date' => :'Time',
983
- :'part20_filing_date' => :'Time',
984
- :'part21_determination_date' => :'Time',
982
+ :'part19_formation_or_resolution_date' => :'Date',
983
+ :'part20_filing_date' => :'Date',
984
+ :'part21_determination_date' => :'Date',
985
985
  :'substantial_us_owners' => :'Array<W8BenESubstantialUsOwnerDataModel>',
986
986
  :'ein' => :'String',
987
987
  :'ein_type' => :'String',
@@ -1051,8 +1051,8 @@ module AvalaraSdk::A1099::V2
1051
1051
  :'certify_box40' => :'Boolean',
1052
1052
  :'box41_sponsoring_entity' => :'String',
1053
1053
  :'certify_box42' => :'Boolean',
1054
- :'box35_formed_on_date' => :'Time',
1055
- :'box36_filed_on_date' => :'Time',
1054
+ :'box35_formed_on_date' => :'Date',
1055
+ :'box36_filed_on_date' => :'Date',
1056
1056
  :'tin_match_status' => :'String',
1057
1057
  :'signature' => :'String',
1058
1058
  :'business_classification' => :'String',
@@ -0,0 +1,561 @@
1
+ =begin
2
+ #Avalara 1099 & W-9 API Definition
3
+
4
+ ### 🔐 Authentication Generate a **license key** from: *[Avalara Portal](https://www.avalara.com/us/en/signin.html) → Settings → License and API Keys*. [More on authentication methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) [Test your credentials](https://developer.avalara.com/avatax/test-credentials/) ## 📘 API & SDK Documentation [Avalara SDK (.NET) on GitHub](https://github.com/avadev/Avalara-SDK-DotNet#avalarasdk--the-unified-c-library-for-next-gen-avalara-services) [Code Examples – 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget)
5
+
6
+
7
+ =end
8
+
9
+ require 'date'
10
+ require 'time'
11
+
12
+ module AvalaraSdk::A1099::V2
13
+ class W8BenFormRequest
14
+ # The form type (always \"w8ben\" for this model).
15
+ attr_accessor :type
16
+
17
+ # The name of the individual or entity associated with the form.
18
+ attr_accessor :name
19
+
20
+ # The country of citizenship.
21
+ attr_accessor :citizenship_country
22
+
23
+ # The residential address of the individual or entity.
24
+ attr_accessor :residence_address
25
+
26
+ # The city of residence.
27
+ attr_accessor :residence_city
28
+
29
+ # The state of residence.
30
+ attr_accessor :residence_state
31
+
32
+ # The ZIP code of the residence.
33
+ attr_accessor :residence_zip
34
+
35
+ # The country of residence.
36
+ attr_accessor :residence_country
37
+
38
+ # Indicates whether the residence address is the mailing address.
39
+ attr_accessor :residence_is_mailing
40
+
41
+ # The mailing address.
42
+ attr_accessor :mailing_address
43
+
44
+ # The city of the mailing address.
45
+ attr_accessor :mailing_city
46
+
47
+ # The state of the mailing address.
48
+ attr_accessor :mailing_state
49
+
50
+ # The ZIP code of the mailing address.
51
+ attr_accessor :mailing_zip
52
+
53
+ # The country of the mailing address.
54
+ attr_accessor :mailing_country
55
+
56
+ # The taxpayer identification number (TIN).
57
+ attr_accessor :tin
58
+
59
+ # Indicates whether a foreign TIN is not legally required.
60
+ attr_accessor :foreign_tin_not_required
61
+
62
+ # The foreign taxpayer identification number (TIN).
63
+ attr_accessor :foreign_tin
64
+
65
+ # A reference number for the form.
66
+ attr_accessor :reference_number
67
+
68
+ # The birthday of the individual associated with the form.
69
+ attr_accessor :birthday
70
+
71
+ # The country for which the treaty applies.
72
+ attr_accessor :treaty_country
73
+
74
+ # The specific article of the treaty being claimed.
75
+ attr_accessor :treaty_article
76
+
77
+ # The reasons for claiming treaty benefits.
78
+ attr_accessor :treaty_reasons
79
+
80
+ # The withholding rate applied as per the treaty.
81
+ attr_accessor :withholding_rate
82
+
83
+ # The type of income covered by the treaty.
84
+ attr_accessor :income_type
85
+
86
+ # The name of the signer of the form.
87
+ attr_accessor :signer_name
88
+
89
+ # The ID of the associated company.
90
+ attr_accessor :company_id
91
+
92
+ # A reference identifier for the form.
93
+ attr_accessor :reference_id
94
+
95
+ # The email address of the individual associated with the form.
96
+ attr_accessor :email
97
+
98
+ # The date when e-delivery was consented.
99
+ attr_accessor :e_delivery_consented_at
100
+
101
+ # The signature of the form.
102
+ attr_accessor :signature
103
+
104
+ class EnumAttributeValidator
105
+ attr_reader :datatype
106
+ attr_reader :allowable_values
107
+
108
+ def initialize(datatype, allowable_values)
109
+ @allowable_values = allowable_values.map do |value|
110
+ case datatype.to_s
111
+ when /Integer/i
112
+ value.to_i
113
+ when /Float/i
114
+ value.to_f
115
+ else
116
+ value
117
+ end
118
+ end
119
+ end
120
+
121
+ def valid?(value)
122
+ !value || allowable_values.include?(value)
123
+ end
124
+ end
125
+
126
+ # Attribute mapping from ruby-style variable name to JSON key.
127
+ def self.attribute_map
128
+ {
129
+ :'type' => :'type',
130
+ :'name' => :'name',
131
+ :'citizenship_country' => :'citizenshipCountry',
132
+ :'residence_address' => :'residenceAddress',
133
+ :'residence_city' => :'residenceCity',
134
+ :'residence_state' => :'residenceState',
135
+ :'residence_zip' => :'residenceZip',
136
+ :'residence_country' => :'residenceCountry',
137
+ :'residence_is_mailing' => :'residenceIsMailing',
138
+ :'mailing_address' => :'mailingAddress',
139
+ :'mailing_city' => :'mailingCity',
140
+ :'mailing_state' => :'mailingState',
141
+ :'mailing_zip' => :'mailingZip',
142
+ :'mailing_country' => :'mailingCountry',
143
+ :'tin' => :'tin',
144
+ :'foreign_tin_not_required' => :'foreignTinNotRequired',
145
+ :'foreign_tin' => :'foreignTin',
146
+ :'reference_number' => :'referenceNumber',
147
+ :'birthday' => :'birthday',
148
+ :'treaty_country' => :'treatyCountry',
149
+ :'treaty_article' => :'treatyArticle',
150
+ :'treaty_reasons' => :'treatyReasons',
151
+ :'withholding_rate' => :'withholdingRate',
152
+ :'income_type' => :'incomeType',
153
+ :'signer_name' => :'signerName',
154
+ :'company_id' => :'companyId',
155
+ :'reference_id' => :'referenceId',
156
+ :'email' => :'email',
157
+ :'e_delivery_consented_at' => :'eDeliveryConsentedAt',
158
+ :'signature' => :'signature'
159
+ }
160
+ end
161
+
162
+ # Returns all the JSON keys this model knows about
163
+ def self.acceptable_attributes
164
+ attribute_map.values
165
+ end
166
+
167
+ # Attribute type mapping.
168
+ def self.openapi_types
169
+ {
170
+ :'type' => :'String',
171
+ :'name' => :'String',
172
+ :'citizenship_country' => :'String',
173
+ :'residence_address' => :'String',
174
+ :'residence_city' => :'String',
175
+ :'residence_state' => :'String',
176
+ :'residence_zip' => :'String',
177
+ :'residence_country' => :'String',
178
+ :'residence_is_mailing' => :'Boolean',
179
+ :'mailing_address' => :'String',
180
+ :'mailing_city' => :'String',
181
+ :'mailing_state' => :'String',
182
+ :'mailing_zip' => :'String',
183
+ :'mailing_country' => :'String',
184
+ :'tin' => :'String',
185
+ :'foreign_tin_not_required' => :'Boolean',
186
+ :'foreign_tin' => :'String',
187
+ :'reference_number' => :'String',
188
+ :'birthday' => :'Date',
189
+ :'treaty_country' => :'String',
190
+ :'treaty_article' => :'String',
191
+ :'treaty_reasons' => :'String',
192
+ :'withholding_rate' => :'String',
193
+ :'income_type' => :'String',
194
+ :'signer_name' => :'String',
195
+ :'company_id' => :'String',
196
+ :'reference_id' => :'String',
197
+ :'email' => :'String',
198
+ :'e_delivery_consented_at' => :'Time',
199
+ :'signature' => :'String'
200
+ }
201
+ end
202
+
203
+ # List of attributes with nullable: true
204
+ def self.openapi_nullable
205
+ Set.new([
206
+ :'residence_state',
207
+ :'mailing_address',
208
+ :'mailing_city',
209
+ :'mailing_state',
210
+ :'mailing_zip',
211
+ :'mailing_country',
212
+ :'tin',
213
+ :'foreign_tin',
214
+ :'reference_number',
215
+ :'birthday',
216
+ :'treaty_article',
217
+ :'treaty_reasons',
218
+ :'withholding_rate',
219
+ :'income_type',
220
+ :'signer_name',
221
+ :'reference_id',
222
+ :'email',
223
+ :'e_delivery_consented_at',
224
+ :'signature'
225
+ ])
226
+ end
227
+
228
+ # List of class defined in allOf (OpenAPI v3)
229
+ def self.openapi_all_of
230
+ [
231
+ :'W9FormBaseRequest'
232
+ ]
233
+ end
234
+
235
+ # Initializes the object
236
+ # @param [Hash] attributes Model attributes in the form of hash
237
+ def initialize(attributes = {})
238
+ if (!attributes.is_a?(Hash))
239
+ fail ArgumentError, "The input argument (attributes) must be a hash in `AvalaraSdk::A1099::V2::W8BenFormRequest` initialize method"
240
+ end
241
+
242
+ # check to see if the attribute exists and convert string to symbol for hash key
243
+ attributes = attributes.each_with_object({}) { |(k, v), h|
244
+ if (!self.class.attribute_map.key?(k.to_sym))
245
+ fail ArgumentError, "`#{k}` is not a valid attribute in `AvalaraSdk::A1099::V2::W8BenFormRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
246
+ end
247
+ h[k.to_sym] = v
248
+ }
249
+
250
+ if attributes.key?(:'type')
251
+ self.type = attributes[:'type']
252
+ end
253
+
254
+ if attributes.key?(:'name')
255
+ self.name = attributes[:'name']
256
+ end
257
+
258
+ if attributes.key?(:'citizenship_country')
259
+ self.citizenship_country = attributes[:'citizenship_country']
260
+ end
261
+
262
+ if attributes.key?(:'residence_address')
263
+ self.residence_address = attributes[:'residence_address']
264
+ end
265
+
266
+ if attributes.key?(:'residence_city')
267
+ self.residence_city = attributes[:'residence_city']
268
+ end
269
+
270
+ if attributes.key?(:'residence_state')
271
+ self.residence_state = attributes[:'residence_state']
272
+ end
273
+
274
+ if attributes.key?(:'residence_zip')
275
+ self.residence_zip = attributes[:'residence_zip']
276
+ end
277
+
278
+ if attributes.key?(:'residence_country')
279
+ self.residence_country = attributes[:'residence_country']
280
+ end
281
+
282
+ if attributes.key?(:'residence_is_mailing')
283
+ self.residence_is_mailing = attributes[:'residence_is_mailing']
284
+ end
285
+
286
+ if attributes.key?(:'mailing_address')
287
+ self.mailing_address = attributes[:'mailing_address']
288
+ end
289
+
290
+ if attributes.key?(:'mailing_city')
291
+ self.mailing_city = attributes[:'mailing_city']
292
+ end
293
+
294
+ if attributes.key?(:'mailing_state')
295
+ self.mailing_state = attributes[:'mailing_state']
296
+ end
297
+
298
+ if attributes.key?(:'mailing_zip')
299
+ self.mailing_zip = attributes[:'mailing_zip']
300
+ end
301
+
302
+ if attributes.key?(:'mailing_country')
303
+ self.mailing_country = attributes[:'mailing_country']
304
+ end
305
+
306
+ if attributes.key?(:'tin')
307
+ self.tin = attributes[:'tin']
308
+ end
309
+
310
+ if attributes.key?(:'foreign_tin_not_required')
311
+ self.foreign_tin_not_required = attributes[:'foreign_tin_not_required']
312
+ end
313
+
314
+ if attributes.key?(:'foreign_tin')
315
+ self.foreign_tin = attributes[:'foreign_tin']
316
+ end
317
+
318
+ if attributes.key?(:'reference_number')
319
+ self.reference_number = attributes[:'reference_number']
320
+ end
321
+
322
+ if attributes.key?(:'birthday')
323
+ self.birthday = attributes[:'birthday']
324
+ end
325
+
326
+ if attributes.key?(:'treaty_country')
327
+ self.treaty_country = attributes[:'treaty_country']
328
+ end
329
+
330
+ if attributes.key?(:'treaty_article')
331
+ self.treaty_article = attributes[:'treaty_article']
332
+ end
333
+
334
+ if attributes.key?(:'treaty_reasons')
335
+ self.treaty_reasons = attributes[:'treaty_reasons']
336
+ end
337
+
338
+ if attributes.key?(:'withholding_rate')
339
+ self.withholding_rate = attributes[:'withholding_rate']
340
+ end
341
+
342
+ if attributes.key?(:'income_type')
343
+ self.income_type = attributes[:'income_type']
344
+ end
345
+
346
+ if attributes.key?(:'signer_name')
347
+ self.signer_name = attributes[:'signer_name']
348
+ end
349
+
350
+ if attributes.key?(:'company_id')
351
+ self.company_id = attributes[:'company_id']
352
+ end
353
+
354
+ if attributes.key?(:'reference_id')
355
+ self.reference_id = attributes[:'reference_id']
356
+ end
357
+
358
+ if attributes.key?(:'email')
359
+ self.email = attributes[:'email']
360
+ end
361
+
362
+ if attributes.key?(:'e_delivery_consented_at')
363
+ self.e_delivery_consented_at = attributes[:'e_delivery_consented_at']
364
+ end
365
+
366
+ if attributes.key?(:'signature')
367
+ self.signature = attributes[:'signature']
368
+ end
369
+ end
370
+
371
+ # Show invalid properties with the reasons. Usually used together with valid?
372
+ # @return Array for valid properties with the reasons
373
+ def list_invalid_properties
374
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
375
+ invalid_properties = Array.new
376
+ invalid_properties
377
+ end
378
+
379
+ # Check to see if the all the properties in the model are valid
380
+ # @return true if the model is valid
381
+ def valid?
382
+ warn '[DEPRECATED] the `valid?` method is obsolete'
383
+ type_validator = EnumAttributeValidator.new('String', ["W4", "W8Ben", "W8BenE", "W8Imy", "W9"])
384
+ return false unless type_validator.valid?(@type)
385
+ true
386
+ end
387
+
388
+ # Custom attribute writer method checking allowed values (enum).
389
+ # @param [Object] type Object to be assigned
390
+ def type=(type)
391
+ validator = EnumAttributeValidator.new('String', ["W4", "W8Ben", "W8BenE", "W8Imy", "W9"])
392
+ unless validator.valid?(type)
393
+ fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
394
+ end
395
+ @type = type
396
+ end
397
+
398
+ # Checks equality by comparing each attribute.
399
+ # @param [Object] Object to be compared
400
+ def ==(o)
401
+ return true if self.equal?(o)
402
+ self.class == o.class &&
403
+ type == o.type &&
404
+ name == o.name &&
405
+ citizenship_country == o.citizenship_country &&
406
+ residence_address == o.residence_address &&
407
+ residence_city == o.residence_city &&
408
+ residence_state == o.residence_state &&
409
+ residence_zip == o.residence_zip &&
410
+ residence_country == o.residence_country &&
411
+ residence_is_mailing == o.residence_is_mailing &&
412
+ mailing_address == o.mailing_address &&
413
+ mailing_city == o.mailing_city &&
414
+ mailing_state == o.mailing_state &&
415
+ mailing_zip == o.mailing_zip &&
416
+ mailing_country == o.mailing_country &&
417
+ tin == o.tin &&
418
+ foreign_tin_not_required == o.foreign_tin_not_required &&
419
+ foreign_tin == o.foreign_tin &&
420
+ reference_number == o.reference_number &&
421
+ birthday == o.birthday &&
422
+ treaty_country == o.treaty_country &&
423
+ treaty_article == o.treaty_article &&
424
+ treaty_reasons == o.treaty_reasons &&
425
+ withholding_rate == o.withholding_rate &&
426
+ income_type == o.income_type &&
427
+ signer_name == o.signer_name &&
428
+ company_id == o.company_id &&
429
+ reference_id == o.reference_id &&
430
+ email == o.email &&
431
+ e_delivery_consented_at == o.e_delivery_consented_at &&
432
+ signature == o.signature
433
+ end
434
+
435
+ # @see the `==` method
436
+ # @param [Object] Object to be compared
437
+ def eql?(o)
438
+ self == o
439
+ end
440
+
441
+ # Calculates hash code according to all attributes.
442
+ # @return [Integer] Hash code
443
+ def hash
444
+ [type, name, citizenship_country, residence_address, residence_city, residence_state, residence_zip, residence_country, residence_is_mailing, mailing_address, mailing_city, mailing_state, mailing_zip, mailing_country, tin, foreign_tin_not_required, foreign_tin, reference_number, birthday, treaty_country, treaty_article, treaty_reasons, withholding_rate, income_type, signer_name, company_id, reference_id, email, e_delivery_consented_at, signature].hash
445
+ end
446
+
447
+ # Builds the object from hash
448
+ # @param [Hash] attributes Model attributes in the form of hash
449
+ # @return [Object] Returns the model itself
450
+ def self.build_from_hash(attributes)
451
+ return nil unless attributes.is_a?(Hash)
452
+ attributes = attributes.transform_keys(&:to_sym)
453
+ transformed_hash = {}
454
+ openapi_types.each_pair do |key, type|
455
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
456
+ transformed_hash["#{key}"] = nil
457
+ elsif type =~ /\AArray<(.*)>/i
458
+ # check to ensure the input is an array given that the attribute
459
+ # is documented as an array but the input is not
460
+ if attributes[attribute_map[key]].is_a?(Array)
461
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
462
+ end
463
+ elsif !attributes[attribute_map[key]].nil?
464
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
465
+ end
466
+ end
467
+ new(transformed_hash)
468
+ end
469
+
470
+ # Deserializes the data based on type
471
+ # @param string type Data type
472
+ # @param string value Value to be deserialized
473
+ # @return [Object] Deserialized data
474
+ def self._deserialize(type, value)
475
+ case type.to_sym
476
+ when :Time
477
+ Time.parse(value)
478
+ when :Date
479
+ Date.parse(value)
480
+ when :String
481
+ value.to_s
482
+ when :Integer
483
+ value.to_i
484
+ when :Float
485
+ value.to_f
486
+ when :Boolean
487
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
488
+ true
489
+ else
490
+ false
491
+ end
492
+ when :Object
493
+ # generic object (usually a Hash), return directly
494
+ value
495
+ when /\AArray<(?<inner_type>.+)>\z/
496
+ inner_type = Regexp.last_match[:inner_type]
497
+ value.map { |v| _deserialize(inner_type, v) }
498
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
499
+ k_type = Regexp.last_match[:k_type]
500
+ v_type = Regexp.last_match[:v_type]
501
+ {}.tap do |hash|
502
+ value.each do |k, v|
503
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
504
+ end
505
+ end
506
+ else # model
507
+ # models (e.g. Pet) or oneOf
508
+ klass = AvalaraSdk::A1099::V2.const_get(type)
509
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
510
+ end
511
+ end
512
+
513
+ # Returns the string representation of the object
514
+ # @return [String] String presentation of the object
515
+ def to_s
516
+ to_hash.to_s
517
+ end
518
+
519
+ # to_body is an alias to to_hash (backward compatibility)
520
+ # @return [Hash] Returns the object in the form of hash
521
+ def to_body
522
+ to_hash
523
+ end
524
+
525
+ # Returns the object in the form of hash
526
+ # @return [Hash] Returns the object in the form of hash
527
+ def to_hash
528
+ hash = {}
529
+ self.class.attribute_map.each_pair do |attr, param|
530
+ value = self.send(attr)
531
+ if value.nil?
532
+ is_nullable = self.class.openapi_nullable.include?(attr)
533
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
534
+ end
535
+
536
+ hash[param] = _to_hash(value)
537
+ end
538
+ hash
539
+ end
540
+
541
+ # Outputs non-array value in the form of hash
542
+ # For object, use to_hash. Otherwise, just return the value
543
+ # @param [Object] value Any valid value
544
+ # @return [Hash] Returns the value in the form of hash
545
+ def _to_hash(value)
546
+ if value.is_a?(Array)
547
+ value.compact.map { |v| _to_hash(v) }
548
+ elsif value.is_a?(Hash)
549
+ {}.tap do |hash|
550
+ value.each { |k, v| hash[k] = _to_hash(v) }
551
+ end
552
+ elsif value.respond_to? :to_hash
553
+ value.to_hash
554
+ else
555
+ value
556
+ end
557
+ end
558
+
559
+ end
560
+
561
+ end
@@ -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
@@ -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
@@ -933,9 +933,9 @@ module AvalaraSdk::A1099::V2
933
933
  :'certify_box41' => :'Boolean',
934
934
  :'certify_box43' => :'Boolean',
935
935
  :'certify_part29_signature' => :'Boolean',
936
- :'part19_formation_or_resolution_date' => :'Time',
937
- :'part20_filing_date' => :'Time',
938
- :'part21_determination_date' => :'Time',
936
+ :'part19_formation_or_resolution_date' => :'Date',
937
+ :'part20_filing_date' => :'Date',
938
+ :'part21_determination_date' => :'Date',
939
939
  :'substantial_us_owners' => :'Array<W8BenESubstantialUsOwnerDataModel>',
940
940
  :'employee_first_name' => :'String',
941
941
  :'employee_middle_name' => :'String',
@@ -1031,8 +1031,8 @@ module AvalaraSdk::A1099::V2
1031
1031
  :'certify_box40' => :'Boolean',
1032
1032
  :'box41_sponsoring_entity' => :'String',
1033
1033
  :'certify_box42' => :'Boolean',
1034
- :'box35_formed_on_date' => :'Time',
1035
- :'box36_filed_on_date' => :'Time',
1034
+ :'box35_formed_on_date' => :'Date',
1035
+ :'box36_filed_on_date' => :'Date',
1036
1036
  :'tin_match_status' => :'String',
1037
1037
  :'signature' => :'String',
1038
1038
  :'business_classification' => :'String',