avalara_sdk 25.7.2 → 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 (308) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +76 -39
  3. data/docs/A1099/V2/BulkUpsert1099FormsRequest.md +3 -1
  4. data/docs/A1099/V2/CompaniesW9Api.md +22 -22
  5. data/docs/A1099/V2/CoveredIndividualReferenceResponse.md +56 -0
  6. data/docs/A1099/V2/CoveredIndividualRequest.md +19 -19
  7. data/docs/A1099/V2/Create1099Form201Response.md +59 -0
  8. data/docs/A1099/V2/CreateW9Form201Response.md +55 -0
  9. data/docs/A1099/V2/CreateW9FormRequest.md +55 -0
  10. data/docs/A1099/V2/Form1042SList.md +20 -0
  11. data/docs/A1099/V2/Form1042SListItem.md +108 -0
  12. data/docs/A1099/V2/Form1042SListItemResponse.md +130 -0
  13. data/docs/A1099/V2/Form1042SRequest.md +110 -0
  14. data/docs/A1099/V2/Form1042SResponse.md +88 -0
  15. data/docs/A1099/V2/Form1095BListItem.md +31 -31
  16. data/docs/A1099/V2/Form1095BListItemResponse.md +86 -0
  17. data/docs/A1099/V2/Form1095BRequest.md +33 -33
  18. data/docs/A1099/V2/Form1099BaseResponse.md +82 -0
  19. data/docs/A1099/V2/Form1099DivListItem.md +45 -45
  20. data/docs/A1099/V2/Form1099DivRequest.md +44 -44
  21. data/docs/A1099/V2/Form1099DivResponse.md +3 -3
  22. data/docs/A1099/V2/Form1099KListItem.md +46 -46
  23. data/docs/A1099/V2/Form1099KListItemResponse.md +122 -0
  24. data/docs/A1099/V2/Form1099KRequest.md +45 -45
  25. data/docs/A1099/V2/Form1099ListResponse.md +18 -0
  26. data/docs/A1099/V2/Form1099ListResponseValueInner.md +59 -0
  27. data/docs/A1099/V2/Form1099MiscListItem.md +43 -43
  28. data/docs/A1099/V2/Form1099MiscListItemResponse.md +108 -0
  29. data/docs/A1099/V2/Form1099MiscRequest.md +42 -42
  30. data/docs/A1099/V2/Form1099MiscResponse.md +5 -5
  31. data/docs/A1099/V2/Form1099NecListItem.md +31 -31
  32. data/docs/A1099/V2/Form1099NecListItemResponse.md +88 -0
  33. data/docs/A1099/V2/Form1099NecRequest.md +30 -30
  34. data/docs/A1099/V2/Form1099NecResponse.md +5 -5
  35. data/docs/A1099/V2/Form1099RListItem.md +47 -47
  36. data/docs/A1099/V2/Form1099RListItemResponse.md +122 -0
  37. data/docs/A1099/V2/Form1099RRequest.md +45 -45
  38. data/docs/A1099/V2/Form1099StatusDetailResponse.md +20 -0
  39. data/docs/A1099/V2/FormRequestBase.md +23 -23
  40. data/docs/A1099/V2/FormRequestListItemBase.md +66 -0
  41. data/docs/A1099/V2/FormResponseBase.md +3 -3
  42. data/docs/A1099/V2/FormSingleRequestBase.md +25 -25
  43. data/docs/A1099/V2/Forms1099Api.md +75 -63
  44. data/docs/A1099/V2/FormsW9Api.md +61 -56
  45. data/docs/A1099/V2/Get1099Form200Response.md +15 -11
  46. data/docs/A1099/V2/IntermediaryOrFlowThrough.md +38 -0
  47. data/docs/A1099/V2/IntermediaryOrFlowThroughRequest.md +38 -0
  48. data/docs/A1099/V2/IntermediaryOrFlowThroughResponse.md +38 -0
  49. data/docs/A1099/V2/Issuers1099Api.md +23 -23
  50. data/docs/A1099/V2/JobResult.md +15 -15
  51. data/docs/A1099/V2/Jobs1099Api.md +2 -2
  52. data/docs/A1099/V2/PrimaryWithholdingAgent.md +20 -0
  53. data/docs/A1099/V2/PrimaryWithholdingAgentRequest.md +20 -0
  54. data/docs/A1099/V2/PrimaryWithholdingAgentResponse.md +20 -0
  55. data/docs/A1099/V2/StateAndLocalWithholdingResponse.md +8 -8
  56. data/docs/A1099/V2/StateEfileStatusDetailResponse.md +22 -0
  57. data/docs/A1099/V2/SubstantialUsOwnerRequest.md +22 -0
  58. data/docs/A1099/V2/Update1099Form200Response.md +3 -1
  59. data/docs/A1099/V2/ValidationErrorResponse.md +20 -0
  60. data/docs/A1099/V2/W4FormDataModel.md +5 -5
  61. data/docs/A1099/V2/W4FormRequest.md +66 -0
  62. data/docs/A1099/V2/W8BenEFormRequest.md +218 -0
  63. data/docs/A1099/V2/W8BenEFormResponse.md +3 -3
  64. data/docs/A1099/V2/W8BenFormDataModel.md +5 -5
  65. data/docs/A1099/V2/W8BenFormRequest.md +76 -0
  66. data/docs/A1099/V2/W8BeneFormDataModel.md +5 -5
  67. data/docs/A1099/V2/W8ImyFormDataModel.md +5 -5
  68. data/docs/A1099/V2/W8ImyFormRequest.md +250 -0
  69. data/docs/A1099/V2/W8ImyFormResponse.md +2 -2
  70. data/docs/A1099/V2/W9FormBaseRequest.md +28 -0
  71. data/docs/A1099/V2/W9FormDataModel.md +5 -5
  72. data/docs/A1099/V2/W9FormRequest.md +64 -0
  73. data/docs/EInvoicing/V1/Address.md +28 -0
  74. data/docs/EInvoicing/V1/BatchErrorDetail.md +20 -0
  75. data/docs/EInvoicing/V1/BatchSearchListResponse.md +2 -2
  76. data/docs/EInvoicing/V1/Consents.md +18 -0
  77. data/docs/EInvoicing/V1/CreateTradingPartner201Response.md +22 -0
  78. data/docs/EInvoicing/V1/CreateTradingPartnersBatch200Response.md +22 -0
  79. data/docs/EInvoicing/V1/CreateTradingPartnersBatch200ResponseValueInner.md +22 -0
  80. data/docs/EInvoicing/V1/CreateTradingPartnersBatchRequest.md +18 -0
  81. data/docs/EInvoicing/V1/DataInputFieldsApi.md +5 -5
  82. data/docs/EInvoicing/V1/DocumentsApi.md +9 -9
  83. data/docs/EInvoicing/V1/Extension.md +20 -0
  84. data/docs/EInvoicing/V1/Identifier.md +22 -0
  85. data/docs/EInvoicing/V1/InteropApi.md +1 -1
  86. data/docs/EInvoicing/V1/MandatesApi.md +6 -6
  87. data/docs/EInvoicing/V1/SearchParticipants200Response.md +22 -0
  88. data/docs/EInvoicing/V1/SubscriptionsApi.md +12 -12
  89. data/docs/EInvoicing/V1/SupportedDocumentTypes.md +26 -0
  90. data/docs/EInvoicing/V1/TaxIdentifierRequest.md +24 -0
  91. data/docs/EInvoicing/V1/TaxIdentifierResponse.md +20 -0
  92. data/docs/EInvoicing/V1/TaxIdentifierResponseValue.md +22 -0
  93. data/docs/EInvoicing/V1/TaxIdentifierSchemaByCountry200Response.md +20 -0
  94. data/docs/EInvoicing/V1/TaxIdentifiersApi.md +177 -0
  95. data/docs/EInvoicing/V1/TradingPartner.md +34 -0
  96. data/docs/EInvoicing/V1/TradingPartnersApi.md +412 -75
  97. data/docs/EInvoicing/V1/UpdateTradingPartner200Response.md +22 -0
  98. data/docs/EInvoicing/V1/ValidationError.md +20 -0
  99. data/lib/avalara_sdk/api/A1099/V2/companies_w9_api.rb +14 -14
  100. data/lib/avalara_sdk/api/A1099/V2/forms1099_api.rb +51 -39
  101. data/lib/avalara_sdk/api/A1099/V2/forms_w9_api.rb +56 -50
  102. data/lib/avalara_sdk/api/A1099/V2/issuers1099_api.rb +20 -20
  103. data/lib/avalara_sdk/api/A1099/V2/jobs1099_api.rb +2 -2
  104. data/lib/avalara_sdk/api/EInvoicing/V1/data_input_fields_api.rb +7 -7
  105. data/lib/avalara_sdk/api/EInvoicing/V1/documents_api.rb +11 -11
  106. data/lib/avalara_sdk/api/EInvoicing/V1/interop_api.rb +2 -2
  107. data/lib/avalara_sdk/api/EInvoicing/V1/mandates_api.rb +8 -8
  108. data/lib/avalara_sdk/api/EInvoicing/V1/subscriptions_api.rb +21 -21
  109. data/lib/avalara_sdk/api/EInvoicing/V1/tax_identifiers_api.rb +531 -0
  110. data/lib/avalara_sdk/api/EInvoicing/V1/trading_partners_api.rb +660 -80
  111. data/lib/avalara_sdk/models/A1099/V2/attribute.rb +1 -1
  112. data/lib/avalara_sdk/models/A1099/V2/authorized_api_request_model.rb +1 -1
  113. data/lib/avalara_sdk/models/A1099/V2/authorized_api_request_v2_data_model.rb +1 -1
  114. data/lib/avalara_sdk/models/A1099/V2/base_company_model.rb +1 -1
  115. data/lib/avalara_sdk/models/A1099/V2/base_form_list_request.rb +1 -1
  116. data/lib/avalara_sdk/models/A1099/V2/bulk_upsert1099_forms_request.rb +2 -1
  117. data/lib/avalara_sdk/models/A1099/V2/company_create_update_request_model.rb +1 -1
  118. data/lib/avalara_sdk/models/A1099/V2/company_model.rb +1 -1
  119. data/lib/avalara_sdk/models/A1099/V2/company_response.rb +1 -1
  120. data/lib/avalara_sdk/models/A1099/V2/company_response_model.rb +1 -1
  121. data/lib/avalara_sdk/models/A1099/V2/covered_individual_reference_response.rb +407 -0
  122. data/lib/avalara_sdk/models/A1099/V2/covered_individual_request.rb +20 -1
  123. data/lib/avalara_sdk/models/A1099/V2/create1099_form201_response.rb +106 -0
  124. data/lib/avalara_sdk/models/A1099/V2/create_w9_form201_response.rb +104 -0
  125. data/lib/avalara_sdk/models/A1099/V2/create_w9_form_request.rb +104 -0
  126. data/lib/avalara_sdk/models/A1099/V2/data.rb +1 -1
  127. data/lib/avalara_sdk/models/A1099/V2/error_model.rb +1 -1
  128. data/lib/avalara_sdk/models/A1099/V2/error_response.rb +1 -1
  129. data/lib/avalara_sdk/models/A1099/V2/error_response_errors_inner.rb +1 -1
  130. data/lib/avalara_sdk/models/A1099/V2/form1042_s_list.rb +238 -0
  131. data/lib/avalara_sdk/models/A1099/V2/form1042_s_list_item.rb +891 -0
  132. data/lib/avalara_sdk/models/A1099/V2/form1042_s_list_item_response.rb +925 -0
  133. data/lib/avalara_sdk/models/A1099/V2/form1042_s_request.rb +855 -0
  134. data/lib/avalara_sdk/models/A1099/V2/form1042_s_response.rb +600 -0
  135. data/lib/avalara_sdk/models/A1099/V2/form1095_b_list.rb +1 -1
  136. data/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item.rb +147 -14
  137. data/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item_response.rb +700 -0
  138. data/lib/avalara_sdk/models/A1099/V2/form1095_b_request.rb +149 -16
  139. data/lib/avalara_sdk/models/A1099/V2/form1099_base_response.rb +661 -0
  140. data/lib/avalara_sdk/models/A1099/V2/form1099_div_list.rb +1 -1
  141. data/lib/avalara_sdk/models/A1099/V2/form1099_div_list_item.rb +168 -13
  142. data/lib/avalara_sdk/models/A1099/V2/form1099_div_request.rb +159 -14
  143. data/lib/avalara_sdk/models/A1099/V2/form1099_div_response.rb +5 -5
  144. data/lib/avalara_sdk/models/A1099/V2/form1099_k_list.rb +1 -1
  145. data/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item.rb +169 -13
  146. data/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item_response.rb +930 -0
  147. data/lib/avalara_sdk/models/A1099/V2/form1099_k_request.rb +160 -14
  148. data/lib/avalara_sdk/models/A1099/V2/form1099_list_response.rb +220 -0
  149. data/lib/avalara_sdk/models/A1099/V2/form1099_list_response_value_inner.rb +106 -0
  150. data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list.rb +1 -1
  151. data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item.rb +171 -19
  152. data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item_response.rb +810 -0
  153. data/lib/avalara_sdk/models/A1099/V2/form1099_misc_request.rb +162 -20
  154. data/lib/avalara_sdk/models/A1099/V2/form1099_misc_response.rb +12 -12
  155. data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list.rb +1 -1
  156. data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item.rb +168 -20
  157. data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item_response.rb +700 -0
  158. data/lib/avalara_sdk/models/A1099/V2/form1099_nec_request.rb +157 -20
  159. data/lib/avalara_sdk/models/A1099/V2/form1099_nec_response.rb +12 -12
  160. data/lib/avalara_sdk/models/A1099/V2/form1099_proccess_result.rb +1 -1
  161. data/lib/avalara_sdk/models/A1099/V2/form1099_r_list.rb +1 -1
  162. data/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item.rb +171 -15
  163. data/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item_response.rb +888 -0
  164. data/lib/avalara_sdk/models/A1099/V2/form1099_r_request.rb +160 -14
  165. data/lib/avalara_sdk/models/A1099/V2/form1099_status_detail_response.rb +223 -0
  166. data/lib/avalara_sdk/models/A1099/V2/form_request_base.rb +138 -12
  167. data/lib/avalara_sdk/models/A1099/V2/form_request_list_item_base.rb +611 -0
  168. data/lib/avalara_sdk/models/A1099/V2/form_response_base.rb +5 -5
  169. data/lib/avalara_sdk/models/A1099/V2/form_single_request_base.rb +140 -14
  170. data/lib/avalara_sdk/models/A1099/V2/get1099_form200_response.rb +8 -6
  171. data/lib/avalara_sdk/models/A1099/V2/http_validation_problem_details.rb +1 -1
  172. data/lib/avalara_sdk/models/A1099/V2/i_create_form1099_request.rb +1 -1
  173. data/lib/avalara_sdk/models/A1099/V2/i_update_form1099_request.rb +1 -1
  174. data/lib/avalara_sdk/models/A1099/V2/intermediary_or_flow_through.rb +311 -0
  175. data/lib/avalara_sdk/models/A1099/V2/intermediary_or_flow_through_request.rb +311 -0
  176. data/lib/avalara_sdk/models/A1099/V2/intermediary_or_flow_through_response.rb +311 -0
  177. data/lib/avalara_sdk/models/A1099/V2/issuer_command.rb +1 -1
  178. data/lib/avalara_sdk/models/A1099/V2/issuer_response.rb +1 -1
  179. data/lib/avalara_sdk/models/A1099/V2/iw9_form_data_models_one_of.rb +1 -1
  180. data/lib/avalara_sdk/models/A1099/V2/job_result.rb +16 -1
  181. data/lib/avalara_sdk/models/A1099/V2/link.rb +1 -1
  182. data/lib/avalara_sdk/models/A1099/V2/paginated_query_result_model.rb +1 -1
  183. data/lib/avalara_sdk/models/A1099/V2/paginated_query_result_model_company_response.rb +1 -1
  184. data/lib/avalara_sdk/models/A1099/V2/paginated_query_result_model_issuer_response.rb +1 -1
  185. data/lib/avalara_sdk/models/A1099/V2/paginated_w9_forms_model.rb +1 -1
  186. data/lib/avalara_sdk/models/A1099/V2/primary_withholding_agent.rb +221 -0
  187. data/lib/avalara_sdk/models/A1099/V2/primary_withholding_agent_request.rb +221 -0
  188. data/lib/avalara_sdk/models/A1099/V2/primary_withholding_agent_response.rb +221 -0
  189. data/lib/avalara_sdk/models/A1099/V2/problem_details.rb +1 -1
  190. data/lib/avalara_sdk/models/A1099/V2/state_and_local_withholding_request.rb +5 -1
  191. data/lib/avalara_sdk/models/A1099/V2/state_and_local_withholding_response.rb +9 -1
  192. data/lib/avalara_sdk/models/A1099/V2/state_efile_status_detail_response.rb +231 -0
  193. data/lib/avalara_sdk/models/A1099/V2/status_detail.rb +1 -1
  194. data/lib/avalara_sdk/models/A1099/V2/substantial_us_owner_request.rb +233 -0
  195. data/lib/avalara_sdk/models/A1099/V2/substantial_us_owner_response.rb +1 -1
  196. data/lib/avalara_sdk/models/A1099/V2/update1099_form200_response.rb +2 -1
  197. data/lib/avalara_sdk/models/A1099/V2/validation_error_response.rb +231 -0
  198. data/lib/avalara_sdk/models/A1099/V2/w4_form_data_model.rb +6 -6
  199. data/lib/avalara_sdk/models/A1099/V2/w4_form_request.rb +509 -0
  200. data/lib/avalara_sdk/models/A1099/V2/w4_form_response.rb +1 -1
  201. data/lib/avalara_sdk/models/A1099/V2/w8_ben_e_form_request.rb +1343 -0
  202. data/lib/avalara_sdk/models/A1099/V2/w8_ben_e_form_response.rb +4 -4
  203. data/lib/avalara_sdk/models/A1099/V2/w8_ben_e_substantial_us_owner_data_model.rb +1 -1
  204. data/lib/avalara_sdk/models/A1099/V2/w8_ben_form_data_model.rb +6 -6
  205. data/lib/avalara_sdk/models/A1099/V2/w8_ben_form_request.rb +561 -0
  206. data/lib/avalara_sdk/models/A1099/V2/w8_ben_form_response.rb +1 -1
  207. data/lib/avalara_sdk/models/A1099/V2/w8_bene_form_data_model.rb +6 -6
  208. data/lib/avalara_sdk/models/A1099/V2/w8_imy_form_data_model.rb +6 -6
  209. data/lib/avalara_sdk/models/A1099/V2/w8_imy_form_request.rb +1518 -0
  210. data/lib/avalara_sdk/models/A1099/V2/w8_imy_form_response.rb +3 -3
  211. data/lib/avalara_sdk/models/A1099/V2/w9_form_base_request.rb +299 -0
  212. data/lib/avalara_sdk/models/A1099/V2/w9_form_base_response.rb +1 -1
  213. data/lib/avalara_sdk/models/A1099/V2/w9_form_data_model.rb +6 -6
  214. data/lib/avalara_sdk/models/A1099/V2/w9_form_request.rb +495 -0
  215. data/lib/avalara_sdk/models/A1099/V2/w9_form_response.rb +4 -3
  216. data/lib/avalara_sdk/models/EInvoicing/V1/address.rb +382 -0
  217. data/lib/avalara_sdk/models/EInvoicing/V1/batch_error_detail.rb +223 -0
  218. data/lib/avalara_sdk/models/EInvoicing/V1/batch_search.rb +1 -1
  219. data/lib/avalara_sdk/models/EInvoicing/V1/batch_search_list_response.rb +3 -2
  220. data/lib/avalara_sdk/models/EInvoicing/V1/consents.rb +213 -0
  221. data/lib/avalara_sdk/models/EInvoicing/V1/create_trading_partner201_response.rb +231 -0
  222. data/lib/avalara_sdk/models/EInvoicing/V1/create_trading_partners_batch200_response.rb +232 -0
  223. data/lib/avalara_sdk/models/EInvoicing/V1/create_trading_partners_batch200_response_value_inner.rb +231 -0
  224. data/lib/avalara_sdk/models/EInvoicing/V1/create_trading_partners_batch_request.rb +212 -0
  225. data/lib/avalara_sdk/models/EInvoicing/V1/data_input_fields_response.rb +1 -2
  226. data/lib/avalara_sdk/models/EInvoicing/V1/document_fetch.rb +1 -2
  227. data/lib/avalara_sdk/models/EInvoicing/V1/error_response.rb +1 -1
  228. data/lib/avalara_sdk/models/EInvoicing/V1/extension.rb +256 -0
  229. data/lib/avalara_sdk/models/EInvoicing/V1/hmac_signature_value.rb +1 -2
  230. data/lib/avalara_sdk/models/EInvoicing/V1/identifier.rb +302 -0
  231. data/lib/avalara_sdk/models/EInvoicing/V1/mandate.rb +1 -2
  232. data/lib/avalara_sdk/models/EInvoicing/V1/pagination.rb +1 -2
  233. data/lib/avalara_sdk/models/EInvoicing/V1/required_when_field.rb +1 -2
  234. data/lib/avalara_sdk/models/EInvoicing/V1/search_participants200_response.rb +232 -0
  235. data/lib/avalara_sdk/models/EInvoicing/V1/signature.rb +1 -2
  236. data/lib/avalara_sdk/models/EInvoicing/V1/signature_value.rb +1 -2
  237. data/lib/avalara_sdk/models/EInvoicing/V1/subscription_common.rb +1 -2
  238. data/lib/avalara_sdk/models/EInvoicing/V1/success_response.rb +1 -2
  239. data/lib/avalara_sdk/models/EInvoicing/V1/supported_document_types.rb +305 -0
  240. data/lib/avalara_sdk/models/EInvoicing/V1/tax_identifier_request.rb +329 -0
  241. data/lib/avalara_sdk/models/EInvoicing/V1/tax_identifier_response.rb +228 -0
  242. data/lib/avalara_sdk/models/EInvoicing/V1/tax_identifier_response_value.rb +231 -0
  243. data/lib/avalara_sdk/models/EInvoicing/V1/tax_identifier_schema_by_country200_response.rb +235 -0
  244. data/lib/avalara_sdk/models/EInvoicing/V1/trading_partner.rb +411 -0
  245. data/lib/avalara_sdk/models/EInvoicing/V1/update_trading_partner200_response.rb +231 -0
  246. data/lib/avalara_sdk/models/EInvoicing/V1/validation_error.rb +222 -0
  247. data/lib/avalara_sdk/models/EInvoicing/V1/webhooks_error_response.rb +1 -2
  248. data/lib/avalara_sdk/version.rb +1 -1
  249. data/lib/avalara_sdk.rb +53 -0
  250. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/byebug-11.1.3/byebug/byebug.so +0 -0
  251. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/byebug-11.1.3/gem_make.out +6 -6
  252. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/date-3.4.1/date_core.so +0 -0
  253. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/date-3.4.1/gem_make.out +6 -6
  254. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/date-3.4.1/mkmf.log +4 -4
  255. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debase-0.2.9/attach.so +0 -0
  256. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debase-0.2.9/debase_internals.so +0 -0
  257. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debase-0.2.9/gem_make.out +7 -7
  258. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debase-0.2.9/mkmf.log +6 -6
  259. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debug-1.10.0/debug/debug.so +0 -0
  260. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debug-1.10.0/gem_make.out +6 -6
  261. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/erb-5.0.1/erb/escape.so +0 -0
  262. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/erb-5.0.1/gem_make.out +6 -6
  263. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/io-console-0.8.0/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/io/console.so +0 -0
  265. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/io-console-0.8.0/mkmf.log +21 -21
  266. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/json-2.12.2/gem_make.out +6 -6
  267. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/json-2.12.2/json/ext/generator.so +0 -0
  268. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/json-2.12.2/json/ext/parser.so +0 -0
  269. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/json-2.12.2/mkmf.log +7 -7
  270. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/prism-1.4.0/gem_make.out +6 -6
  271. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/prism-1.4.0/mkmf.log +6 -6
  272. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/prism-1.4.0/prism/prism.so +0 -0
  273. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/psych-5.2.6/gem_make.out +6 -6
  274. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/psych-5.2.6/mkmf.log +10 -10
  275. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/psych-5.2.6/psych.so +0 -0
  276. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/racc-1.8.1/gem_make.out +6 -6
  277. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/racc-1.8.1/racc/cparse.so +0 -0
  278. 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
  279. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/stringio-3.1.7/gem_make.out +6 -6
  280. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/stringio-3.1.7/mkmf.log +2 -2
  281. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/stringio-3.1.7/stringio.so +0 -0
  282. data/vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/ext/byebug/Makefile +3 -3
  283. data/vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/byebug.so +0 -0
  284. data/vendor/bundle/ruby/3.3.0/gems/date-3.4.1/ext/date/Makefile +3 -3
  285. data/vendor/bundle/ruby/3.3.0/gems/date-3.4.1/lib/date_core.so +0 -0
  286. data/vendor/bundle/ruby/3.3.0/gems/debase-0.2.9/ext/Makefile +3 -3
  287. data/vendor/bundle/ruby/3.3.0/gems/debase-0.2.9/ext/attach/Makefile +3 -3
  288. data/vendor/bundle/ruby/3.3.0/gems/debase-0.2.9/lib/attach.so +0 -0
  289. data/vendor/bundle/ruby/3.3.0/gems/debase-0.2.9/lib/debase_internals.so +0 -0
  290. data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/ext/debug/Makefile +3 -3
  291. data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/debug.so +0 -0
  292. data/vendor/bundle/ruby/3.3.0/gems/erb-5.0.1/ext/erb/escape/Makefile +3 -3
  293. data/vendor/bundle/ruby/3.3.0/gems/erb-5.0.1/lib/erb/escape.so +0 -0
  294. data/vendor/bundle/ruby/3.3.0/gems/io-console-0.8.0/ext/io/console/Makefile +3 -3
  295. data/vendor/bundle/ruby/3.3.0/gems/io-console-0.8.0/lib/io/console.so +0 -0
  296. data/vendor/bundle/ruby/3.3.0/gems/json-2.12.2/ext/json/ext/generator/Makefile +3 -3
  297. data/vendor/bundle/ruby/3.3.0/gems/json-2.12.2/ext/json/ext/parser/Makefile +3 -3
  298. data/vendor/bundle/ruby/3.3.0/gems/json-2.12.2/lib/json/ext/generator.so +0 -0
  299. data/vendor/bundle/ruby/3.3.0/gems/json-2.12.2/lib/json/ext/parser.so +0 -0
  300. data/vendor/bundle/ruby/3.3.0/gems/prism-1.4.0/ext/prism/Makefile +3 -3
  301. data/vendor/bundle/ruby/3.3.0/gems/prism-1.4.0/lib/prism/prism.so +0 -0
  302. data/vendor/bundle/ruby/3.3.0/gems/psych-5.2.6/ext/psych/Makefile +3 -3
  303. data/vendor/bundle/ruby/3.3.0/gems/psych-5.2.6/lib/psych.so +0 -0
  304. data/vendor/bundle/ruby/3.3.0/gems/racc-1.8.1/ext/racc/cparse/Makefile +3 -3
  305. data/vendor/bundle/ruby/3.3.0/gems/racc-1.8.1/lib/racc/cparse.so +0 -0
  306. data/vendor/bundle/ruby/3.3.0/gems/stringio-3.1.7/ext/stringio/Makefile +3 -3
  307. data/vendor/bundle/ruby/3.3.0/gems/stringio-3.1.7/lib/stringio.so +0 -0
  308. metadata +108 -2
@@ -0,0 +1,531 @@
1
+ =begin
2
+ #Avalara E-Invoicing API
3
+
4
+ #An API that supports sending data for an E-Invoicing compliance use-case.
5
+
6
+
7
+ =end
8
+
9
+ require 'cgi'
10
+
11
+ module AvalaraSdk::EInvoicing
12
+ module AvalaraSdk::EInvoicing::V1
13
+ class TaxIdentifiersApi
14
+ attr_accessor :api_client
15
+
16
+ def initialize(api_client)
17
+ if (api_client.nil?)
18
+ fail ArgumentError,'api_client is nil'
19
+ end
20
+ api_client.set_sdk_version("25.8.0")
21
+ @api_client = api_client
22
+ end
23
+
24
+ # JSON MIME examples:
25
+ # application/json
26
+ # application/json; charset=UTF8
27
+ # APPLICATION/JSON
28
+ # */*
29
+ # @param [String] mime MIME
30
+ # @return [Boolean] True if the MIME is application/json
31
+ def json_mime?(mime)
32
+ (mime == '*/*') || !(mime =~ /Application\/.*json(?!p)(;.*)?/i).nil?
33
+ end
34
+
35
+ # Deserialize the response to the given return type.
36
+ #
37
+ # @param [Response] response HTTP response
38
+ # @param [String] return_type some examples: "User", "Array<User>", "Hash<String, Integer>"
39
+ def deserialize(response, return_type)
40
+ body = response.body
41
+
42
+ # handle file downloading - return the File instance processed in request callbacks
43
+ # note that response body is empty when the file is written in chunks in request on_body callback
44
+ if return_type == 'File'
45
+ content_disposition = response.headers['Content-Disposition']
46
+ if content_disposition && content_disposition =~ /filename=/i
47
+ filename = content_disposition[/filename=['"]?([^'"\s]+)['"]?/, 1]
48
+ prefix = sanitize_filename(filename)
49
+ else
50
+ prefix = 'download-'
51
+ end
52
+ prefix = prefix + '-' unless prefix.end_with?('-')
53
+ encoding = body.encoding
54
+ @tempfile = Tempfile.open(prefix, @config.temp_folder_path, encoding: encoding)
55
+ @tempfile.write(@stream.join.force_encoding(encoding))
56
+ @tempfile.close
57
+ @config.logger.info "Temp file written to #{@tempfile.path}, please copy the file to a proper folder "\
58
+ "with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
59
+ "will be deleted automatically with GC. It's also recommended to delete the temp file "\
60
+ "explicitly with `tempfile.delete`"
61
+ return @tempfile
62
+ end
63
+
64
+ return nil if body.nil? || body.empty?
65
+
66
+ # return response body directly for String return type
67
+ return body if return_type == 'String'
68
+
69
+ # ensuring a default content type
70
+ content_type = response.headers['Content-Type'] || 'application/json'
71
+
72
+ fail "Content-Type is not supported: #{content_type}" unless json_mime?(content_type)
73
+
74
+ begin
75
+ data = JSON.parse("[#{body}]", :symbolize_names => true)[0]
76
+ rescue JSON::ParserError => e
77
+ if %w(String Date Time).include?(return_type)
78
+ data = body
79
+ else
80
+ raise e
81
+ end
82
+ end
83
+
84
+ convert_to_type data, return_type
85
+ end
86
+
87
+ # Convert data to the given return type.
88
+ # @param [Object] data Data to be converted
89
+ # @param [String] return_type Return type
90
+ # @return [Mixed] Data in a particular type
91
+ def convert_to_type(data, return_type)
92
+ return nil if data.nil?
93
+ case return_type
94
+ when 'String'
95
+ data.to_s
96
+ when 'Integer'
97
+ data.to_i
98
+ when 'Float'
99
+ data.to_f
100
+ when 'Boolean'
101
+ data == true
102
+ when 'Time'
103
+ # parse date time (expecting ISO 8601 format)
104
+ Time.parse data
105
+ when 'Date'
106
+ # parse date time (expecting ISO 8601 format)
107
+ Date.parse data
108
+ when 'Object'
109
+ # generic object (usually a Hash), return directly
110
+ data
111
+ when /\AArray<(.+)>\z/
112
+ # e.g. Array<Pet>
113
+ sub_type = $1
114
+ data.map { |item| convert_to_type(item, sub_type) }
115
+ when /\AHash\<String, (.+)\>\z/
116
+ # e.g. Hash<String, Integer>
117
+ sub_type = $1
118
+ {}.tap do |hash|
119
+ data.each { |k, v| hash[k] = convert_to_type(v, sub_type) }
120
+ end
121
+ else
122
+ # models (e.g. Pet) or oneOf
123
+ klass = AvalaraSdk::EInvoicing::V1.const_get(return_type)
124
+ klass.respond_to?(:openapi_one_of) ? klass.build(data) : klass.build_from_hash(data)
125
+ end
126
+ end
127
+
128
+ # Sanitize filename by removing path.
129
+ # e.g. ../../sun.gif becomes sun.gif
130
+ #
131
+ # @param [String] filename the filename to be sanitized
132
+ # @return [String] the sanitized filename
133
+ def sanitize_filename(filename)
134
+ filename.gsub(/.*[\/\\]/, '')
135
+ end
136
+
137
+ # Update header and query params based on authentication settings.
138
+ #
139
+ # @param [Hash] header_params Header parameters
140
+ # @param [Hash] query_params Query parameters
141
+ # @param [String] auth_names Authentication scheme name
142
+ def update_params_for_auth!(header_params, query_params, auth_names)
143
+ Array(auth_names).each do |auth_name|
144
+ auth_setting = @config.auth_settings[auth_name]
145
+ next unless auth_setting
146
+ case auth_setting[:in]
147
+ when 'header' then header_params[auth_setting[:key]] = auth_setting[:value]
148
+ when 'query' then query_params[auth_setting[:key]] = auth_setting[:value]
149
+ else fail ArgumentError, 'Authentication token must be in `query` or `header`'
150
+ end
151
+ end
152
+ end
153
+
154
+ # Sets user agent in HTTP header
155
+ #
156
+ # @param [String] user_agent User agent (e.g. openapi-generator/ruby/1.0.0)
157
+ def user_agent=(user_agent)
158
+ @user_agent = user_agent
159
+ @default_headers['User-Agent'] = @user_agent
160
+ end
161
+
162
+ # Return Accept header based on an array of accepts provided.
163
+ # @param [Array] accepts array for Accept
164
+ # @return [String] the Accept header (e.g. application/json)
165
+ def select_header_accept(accepts)
166
+ return nil if accepts.nil? || accepts.empty?
167
+ # use JSON when present, otherwise use all of the provided
168
+ json_accept = accepts.find { |s| json_mime?(s) }
169
+ json_accept || accepts.join(',')
170
+ end
171
+
172
+ # Return Content-Type header based on an array of content types provided.
173
+ # @param [Array] content_types array for Content-Type
174
+ # @return [String] the Content-Type header (e.g. application/json)
175
+ def select_header_content_type(content_types)
176
+ # return nil by default
177
+ return if content_types.nil? || content_types.empty?
178
+ # use JSON when present, otherwise use the first one
179
+ json_content_type = content_types.find { |s| json_mime?(s) }
180
+ json_content_type || content_types.first
181
+ end
182
+
183
+ # Convert object (array, hash, object, etc) to JSON string.
184
+ # @param [Object] model object to be converted into JSON string
185
+ # @return [String] JSON string representation of the object
186
+ def object_to_http_body(model)
187
+ return model if model.nil? || model.is_a?(String)
188
+ local_body = nil
189
+ if model.is_a?(Array)
190
+ local_body = model.map { |m| object_to_hash(m) }
191
+ else
192
+ local_body = object_to_hash(model)
193
+ end
194
+ local_body.to_json
195
+ end
196
+
197
+ # Convert object(non-array) to hash.
198
+ # @param [Object] obj object to be converted into JSON string
199
+ # @return [String] JSON string representation of the object
200
+ def object_to_hash(obj)
201
+ if obj.respond_to?(:to_hash)
202
+ obj.to_hash
203
+ else
204
+ obj
205
+ end
206
+ end
207
+
208
+ # Build parameter value according to the given collection format.
209
+ # @param [String] collection_format one of :csv, :ssv, :tsv, :pipes and :multi
210
+ def build_collection_param(param, collection_format)
211
+ case collection_format
212
+ when :csv
213
+ param.join(',')
214
+ when :ssv
215
+ param.join(' ')
216
+ when :tsv
217
+ param.join("\t")
218
+ when :pipes
219
+ param.join('|')
220
+ when :multi
221
+ # return the array directly as typhoeus will handle it as expected
222
+ param
223
+ else
224
+ fail "unknown collection format: #{collection_format.inspect}"
225
+ end
226
+ end
227
+
228
+ # Returns the tax identifier request & response schema for a specific country.
229
+ # This endpoint retrieves the request and response schema required to validate tax identifiers based on a specific country's requirements. This can include both standard fields and any additional parameters required by the respective country's tax authority.
230
+ # @param avalara_version [String] The HTTP Header meant to specify the version of the API intended to be used. # @param country_code [String] The two-letter ISO-3166 country code for which the schema should be retrieved. # @param x_avalara_client [String] You can freely use any text you wish for this value. This feature can help you diagnose and solve problems with your software. The header can be treated like a \&quot;Fingerprint\&quot;. # @param x_correlation_id [String] The caller can use this as an identifier to use as a correlation id to trace the call. # @param type [String] Specifies whether to return the request or response schema.
231
+ # @return [TaxIdentifierSchemaByCountry200Response]
232
+ def tax_identifier_schema_by_country(request_parameters)
233
+ data, _status_code, _headers = tax_identifier_schema_by_country_with_http_info(request_parameters)
234
+ data
235
+ end
236
+
237
+ # Returns the tax identifier request &amp; response schema for a specific country.
238
+ # This endpoint retrieves the request and response schema required to validate tax identifiers based on a specific country&#39;s requirements. This can include both standard fields and any additional parameters required by the respective country&#39;s tax authority.
239
+
240
+ # @param avalara_version [String] The HTTP Header meant to specify the version of the API intended to be used.
241
+ # @param country_code [String] The two-letter ISO-3166 country code for which the schema should be retrieved.
242
+ # @param x_avalara_client [String] You can freely use any text you wish for this value. This feature can help you diagnose and solve problems with your software. The header can be treated like a \&quot;Fingerprint\&quot;.
243
+ # @param x_correlation_id [String] The caller can use this as an identifier to use as a correlation id to trace the call.
244
+ # @param type [String] Specifies whether to return the request or response schema.
245
+ # @return [Array<(TaxIdentifierSchemaByCountry200Response, Integer, Hash)>] TaxIdentifierSchemaByCountry200Response data, response status code and response headers
246
+ def tax_identifier_schema_by_country_with_http_info(request_parameters)
247
+ # OAuth2 Scopes
248
+ required_scopes = ''
249
+ # Request Parameters
250
+ avalara_version = request_parameters.get_avalara_version()
251
+ country_code = request_parameters.get_country_code()
252
+ x_avalara_client = request_parameters.get_x_avalara_client()
253
+ x_correlation_id = request_parameters.get_x_correlation_id()
254
+ type = request_parameters.get_type()
255
+ # verify the required parameter 'avalara_version' is set
256
+ if @api_client.config.client_side_validation && avalara_version.nil?
257
+ fail ArgumentError, "Missing the required parameter 'avalara_version' when calling TaxIdentifiersApi.tax_identifier_schema_by_country"
258
+ end
259
+ # verify the required parameter 'country_code' is set
260
+ if @api_client.config.client_side_validation && country_code.nil?
261
+ fail ArgumentError, "Missing the required parameter 'country_code' when calling TaxIdentifiersApi.tax_identifier_schema_by_country"
262
+ end
263
+ allowable_values = ["request", "response"]
264
+ if @api_client.config.client_side_validation && type && !allowable_values.include?(type)
265
+ fail ArgumentError, "invalid value for \"type\", must be one of #{allowable_values}"
266
+ end
267
+ # resource path
268
+ local_var_path = '/einvoicing/tax-identifiers/schema'
269
+
270
+ # query parameters
271
+ query_params = {}
272
+ if !country_code.nil?
273
+ query_params[:'countryCode'] = country_code
274
+ end
275
+ if !type.nil?
276
+ query_params[:'type'] = type
277
+ end
278
+
279
+ # header parameters
280
+ header_params = {}
281
+ # HTTP header 'Accept' (if needed)
282
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
283
+ if !avalara_version.nil?
284
+ header_params[:'avalara-version'] = avalara_version
285
+ end
286
+ if !x_avalara_client.nil?
287
+ header_params[:'X-Avalara-Client'] = x_avalara_client
288
+ end
289
+ if !x_correlation_id.nil?
290
+ header_params[:'X-Correlation-ID'] = x_correlation_id
291
+ end
292
+
293
+ # form parameters
294
+ form_params = {}
295
+
296
+ # http body (model)
297
+ post_body = {}
298
+
299
+ # return_type
300
+ return_type = 'TaxIdentifierSchemaByCountry200Response'
301
+
302
+ # auth_names
303
+ auth_names = ['Bearer']
304
+
305
+ @api_client.apply_auth_to_request!(header_params, auth_names, required_scopes)
306
+
307
+ new_options = {
308
+ :operation => :"TaxIdentifiersApi.tax_identifier_schema_by_country",
309
+ :header_params => header_params,
310
+ :query_params => query_params,
311
+ :form_params => form_params,
312
+ :body => post_body,
313
+ :auth_names => auth_names,
314
+ :return_type => return_type
315
+ }
316
+
317
+ response = @api_client.call_api(:GET, local_var_path, new_options, required_scopes, false, :EInvoicing)
318
+ if new_options[:return_type]
319
+ data = deserialize(response, new_options[:return_type])
320
+ else
321
+ data = nil
322
+ end
323
+ return data, response.code, response.headers
324
+ end
325
+
326
+ # Validates a tax identifier.
327
+ # This endpoint verifies whether a given tax identifier is valid and properly formatted according to the rules of the applicable country or tax system.
328
+ # @param avalara_version [String] The HTTP Header meant to specify the version of the API intended to be used. # @param tax_identifier_request [TaxIdentifierRequest] # @param x_avalara_client [String] You can freely use any text you wish for this value. This feature can help you diagnose and solve problems with your software. The header can be treated like a \&quot;Fingerprint\&quot;. # @param x_correlation_id [String] The caller can use this as an identifier to use as a correlation id to trace the call.
329
+ # @return [TaxIdentifierResponse]
330
+ def validate_tax_identifier(request_parameters)
331
+ data, _status_code, _headers = validate_tax_identifier_with_http_info(request_parameters)
332
+ data
333
+ end
334
+
335
+ # Validates a tax identifier.
336
+ # This endpoint verifies whether a given tax identifier is valid and properly formatted according to the rules of the applicable country or tax system.
337
+
338
+ # @param avalara_version [String] The HTTP Header meant to specify the version of the API intended to be used.
339
+ # @param tax_identifier_request [TaxIdentifierRequest]
340
+ # @param x_avalara_client [String] You can freely use any text you wish for this value. This feature can help you diagnose and solve problems with your software. The header can be treated like a \&quot;Fingerprint\&quot;.
341
+ # @param x_correlation_id [String] The caller can use this as an identifier to use as a correlation id to trace the call.
342
+ # @return [Array<(TaxIdentifierResponse, Integer, Hash)>] TaxIdentifierResponse data, response status code and response headers
343
+ def validate_tax_identifier_with_http_info(request_parameters)
344
+ # OAuth2 Scopes
345
+ required_scopes = ''
346
+ # Request Parameters
347
+ avalara_version = request_parameters.get_avalara_version()
348
+ tax_identifier_request = request_parameters.get_tax_identifier_request()
349
+ x_avalara_client = request_parameters.get_x_avalara_client()
350
+ x_correlation_id = request_parameters.get_x_correlation_id()
351
+ # verify the required parameter 'avalara_version' is set
352
+ if @api_client.config.client_side_validation && avalara_version.nil?
353
+ fail ArgumentError, "Missing the required parameter 'avalara_version' when calling TaxIdentifiersApi.validate_tax_identifier"
354
+ end
355
+ # verify the required parameter 'tax_identifier_request' is set
356
+ if @api_client.config.client_side_validation && tax_identifier_request.nil?
357
+ fail ArgumentError, "Missing the required parameter 'tax_identifier_request' when calling TaxIdentifiersApi.validate_tax_identifier"
358
+ end
359
+ # resource path
360
+ local_var_path = '/einvoicing/tax-identifiers/validate'
361
+
362
+ # query parameters
363
+ query_params = {}
364
+
365
+ # header parameters
366
+ header_params = {}
367
+ # HTTP header 'Accept' (if needed)
368
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
369
+ # HTTP header 'Content-Type'
370
+ content_type = @api_client.select_header_content_type(['application/json'])
371
+ if !content_type.nil?
372
+ header_params['Content-Type'] = content_type
373
+ end
374
+ if !avalara_version.nil?
375
+ header_params[:'avalara-version'] = avalara_version
376
+ end
377
+ if !x_avalara_client.nil?
378
+ header_params[:'X-Avalara-Client'] = x_avalara_client
379
+ end
380
+ if !x_correlation_id.nil?
381
+ header_params[:'X-Correlation-ID'] = x_correlation_id
382
+ end
383
+
384
+ # form parameters
385
+ form_params = {}
386
+
387
+ # http body (model)
388
+ post_body = @api_client.object_to_http_body(tax_identifier_request) || {}
389
+
390
+ # return_type
391
+ return_type = 'TaxIdentifierResponse'
392
+
393
+ # auth_names
394
+ auth_names = ['Bearer']
395
+
396
+ @api_client.apply_auth_to_request!(header_params, auth_names, required_scopes)
397
+
398
+ new_options = {
399
+ :operation => :"TaxIdentifiersApi.validate_tax_identifier",
400
+ :header_params => header_params,
401
+ :query_params => query_params,
402
+ :form_params => form_params,
403
+ :body => post_body,
404
+ :auth_names => auth_names,
405
+ :return_type => return_type
406
+ }
407
+
408
+ response = @api_client.call_api(:POST, local_var_path, new_options, required_scopes, false, :EInvoicing)
409
+ if new_options[:return_type]
410
+ data = deserialize(response, new_options[:return_type])
411
+ else
412
+ data = nil
413
+ end
414
+ return data, response.code, response.headers
415
+ end
416
+ end
417
+ # Represents the Request object for the TaxIdentifierSchemaByCountry API
418
+ #
419
+ # @param String $avalara_version The HTTP Header meant to specify the version of the API intended to be used. (required)
420
+ # @param String $country_code The two-letter ISO-3166 country code for which the schema should be retrieved. (required)
421
+ # @param String $x_avalara_client You can freely use any text you wish for this value. This feature can help you diagnose and solve problems with your software. The header can be treated like a \&quot;Fingerprint\&quot;. (optional)
422
+ # @param String $x_correlation_id The caller can use this as an identifier to use as a correlation id to trace the call. (optional)
423
+ # @param String $type Specifies whether to return the request or response schema. (optional)
424
+ #
425
+ class TaxIdentifierSchemaByCountryRequestSdk
426
+ attr_accessor :avalara_version
427
+
428
+ attr_accessor :country_code
429
+
430
+ attr_accessor :x_avalara_client
431
+
432
+ attr_accessor :x_correlation_id
433
+
434
+ attr_accessor :type
435
+
436
+ def initialize()
437
+ end
438
+
439
+ def get_avalara_version()
440
+ return @avalara_version || '1.4'
441
+ end
442
+
443
+ def set_avalara_version(avalara_version)
444
+ @avalara_version = avalara_version
445
+ end
446
+
447
+ def get_country_code()
448
+ return @country_code
449
+ end
450
+
451
+ def set_country_code(country_code)
452
+ @country_code = country_code
453
+ end
454
+
455
+ def get_x_avalara_client()
456
+ return @x_avalara_client
457
+ end
458
+
459
+ def set_x_avalara_client(x_avalara_client)
460
+ @x_avalara_client = x_avalara_client
461
+ end
462
+
463
+ def get_x_correlation_id()
464
+ return @x_correlation_id
465
+ end
466
+
467
+ def set_x_correlation_id(x_correlation_id)
468
+ @x_correlation_id = x_correlation_id
469
+ end
470
+
471
+ def get_type()
472
+ return @type
473
+ end
474
+
475
+ def set_type(type)
476
+ @type = type
477
+ end
478
+ end
479
+ # Represents the Request object for the ValidateTaxIdentifier API
480
+ #
481
+ # @param String $avalara_version The HTTP Header meant to specify the version of the API intended to be used. (required)
482
+ # @param TaxIdentifierRequest $tax_identifier_request tax_identifier_request (required)
483
+ # @param String $x_avalara_client You can freely use any text you wish for this value. This feature can help you diagnose and solve problems with your software. The header can be treated like a \&quot;Fingerprint\&quot;. (optional)
484
+ # @param String $x_correlation_id The caller can use this as an identifier to use as a correlation id to trace the call. (optional)
485
+ #
486
+ class ValidateTaxIdentifierRequestSdk
487
+ attr_accessor :avalara_version
488
+
489
+ attr_accessor :tax_identifier_request
490
+
491
+ attr_accessor :x_avalara_client
492
+
493
+ attr_accessor :x_correlation_id
494
+
495
+ def initialize()
496
+ end
497
+
498
+ def get_avalara_version()
499
+ return @avalara_version || '1.4'
500
+ end
501
+
502
+ def set_avalara_version(avalara_version)
503
+ @avalara_version = avalara_version
504
+ end
505
+
506
+ def get_tax_identifier_request()
507
+ return @tax_identifier_request
508
+ end
509
+
510
+ def set_tax_identifier_request(tax_identifier_request)
511
+ @tax_identifier_request = tax_identifier_request
512
+ end
513
+
514
+ def get_x_avalara_client()
515
+ return @x_avalara_client
516
+ end
517
+
518
+ def set_x_avalara_client(x_avalara_client)
519
+ @x_avalara_client = x_avalara_client
520
+ end
521
+
522
+ def get_x_correlation_id()
523
+ return @x_correlation_id
524
+ end
525
+
526
+ def set_x_correlation_id(x_correlation_id)
527
+ @x_correlation_id = x_correlation_id
528
+ end
529
+ end
530
+ end
531
+ end