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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +76 -39
- data/docs/A1099/V2/BulkUpsert1099FormsRequest.md +3 -1
- data/docs/A1099/V2/CompaniesW9Api.md +22 -22
- data/docs/A1099/V2/CoveredIndividualReferenceResponse.md +56 -0
- data/docs/A1099/V2/CoveredIndividualRequest.md +19 -19
- data/docs/A1099/V2/Create1099Form201Response.md +59 -0
- data/docs/A1099/V2/CreateW9Form201Response.md +55 -0
- data/docs/A1099/V2/CreateW9FormRequest.md +55 -0
- data/docs/A1099/V2/Form1042SList.md +20 -0
- data/docs/A1099/V2/Form1042SListItem.md +108 -0
- data/docs/A1099/V2/Form1042SListItemResponse.md +130 -0
- data/docs/A1099/V2/Form1042SRequest.md +110 -0
- data/docs/A1099/V2/Form1042SResponse.md +88 -0
- data/docs/A1099/V2/Form1095BListItem.md +31 -31
- data/docs/A1099/V2/Form1095BListItemResponse.md +86 -0
- data/docs/A1099/V2/Form1095BRequest.md +33 -33
- data/docs/A1099/V2/Form1099BaseResponse.md +82 -0
- data/docs/A1099/V2/Form1099DivListItem.md +45 -45
- data/docs/A1099/V2/Form1099DivRequest.md +44 -44
- data/docs/A1099/V2/Form1099DivResponse.md +3 -3
- data/docs/A1099/V2/Form1099KListItem.md +46 -46
- data/docs/A1099/V2/Form1099KListItemResponse.md +122 -0
- data/docs/A1099/V2/Form1099KRequest.md +45 -45
- data/docs/A1099/V2/Form1099ListResponse.md +18 -0
- data/docs/A1099/V2/Form1099ListResponseValueInner.md +59 -0
- data/docs/A1099/V2/Form1099MiscListItem.md +43 -43
- data/docs/A1099/V2/Form1099MiscListItemResponse.md +108 -0
- data/docs/A1099/V2/Form1099MiscRequest.md +42 -42
- data/docs/A1099/V2/Form1099MiscResponse.md +5 -5
- data/docs/A1099/V2/Form1099NecListItem.md +31 -31
- data/docs/A1099/V2/Form1099NecListItemResponse.md +88 -0
- data/docs/A1099/V2/Form1099NecRequest.md +30 -30
- data/docs/A1099/V2/Form1099NecResponse.md +5 -5
- data/docs/A1099/V2/Form1099RListItem.md +47 -47
- data/docs/A1099/V2/Form1099RListItemResponse.md +122 -0
- data/docs/A1099/V2/Form1099RRequest.md +45 -45
- data/docs/A1099/V2/Form1099StatusDetailResponse.md +20 -0
- data/docs/A1099/V2/FormRequestBase.md +23 -23
- data/docs/A1099/V2/FormRequestListItemBase.md +66 -0
- data/docs/A1099/V2/FormResponseBase.md +3 -3
- data/docs/A1099/V2/FormSingleRequestBase.md +25 -25
- data/docs/A1099/V2/Forms1099Api.md +75 -63
- data/docs/A1099/V2/FormsW9Api.md +61 -56
- data/docs/A1099/V2/Get1099Form200Response.md +15 -11
- data/docs/A1099/V2/IntermediaryOrFlowThrough.md +38 -0
- data/docs/A1099/V2/IntermediaryOrFlowThroughRequest.md +38 -0
- data/docs/A1099/V2/IntermediaryOrFlowThroughResponse.md +38 -0
- data/docs/A1099/V2/Issuers1099Api.md +23 -23
- data/docs/A1099/V2/JobResult.md +15 -15
- data/docs/A1099/V2/Jobs1099Api.md +2 -2
- data/docs/A1099/V2/PrimaryWithholdingAgent.md +20 -0
- data/docs/A1099/V2/PrimaryWithholdingAgentRequest.md +20 -0
- data/docs/A1099/V2/PrimaryWithholdingAgentResponse.md +20 -0
- data/docs/A1099/V2/StateAndLocalWithholdingResponse.md +8 -8
- data/docs/A1099/V2/StateEfileStatusDetailResponse.md +22 -0
- data/docs/A1099/V2/SubstantialUsOwnerRequest.md +22 -0
- data/docs/A1099/V2/Update1099Form200Response.md +3 -1
- data/docs/A1099/V2/ValidationErrorResponse.md +20 -0
- data/docs/A1099/V2/W4FormDataModel.md +5 -5
- data/docs/A1099/V2/W4FormRequest.md +66 -0
- data/docs/A1099/V2/W8BenEFormRequest.md +218 -0
- data/docs/A1099/V2/W8BenEFormResponse.md +3 -3
- data/docs/A1099/V2/W8BenFormDataModel.md +5 -5
- data/docs/A1099/V2/W8BenFormRequest.md +76 -0
- data/docs/A1099/V2/W8BeneFormDataModel.md +5 -5
- data/docs/A1099/V2/W8ImyFormDataModel.md +5 -5
- data/docs/A1099/V2/W8ImyFormRequest.md +250 -0
- data/docs/A1099/V2/W8ImyFormResponse.md +2 -2
- data/docs/A1099/V2/W9FormBaseRequest.md +28 -0
- data/docs/A1099/V2/W9FormDataModel.md +5 -5
- data/docs/A1099/V2/W9FormRequest.md +64 -0
- data/docs/EInvoicing/V1/Address.md +28 -0
- data/docs/EInvoicing/V1/BatchErrorDetail.md +20 -0
- data/docs/EInvoicing/V1/BatchSearchListResponse.md +2 -2
- data/docs/EInvoicing/V1/Consents.md +18 -0
- data/docs/EInvoicing/V1/CreateTradingPartner201Response.md +22 -0
- data/docs/EInvoicing/V1/CreateTradingPartnersBatch200Response.md +22 -0
- data/docs/EInvoicing/V1/CreateTradingPartnersBatch200ResponseValueInner.md +22 -0
- data/docs/EInvoicing/V1/CreateTradingPartnersBatchRequest.md +18 -0
- data/docs/EInvoicing/V1/DataInputFieldsApi.md +5 -5
- data/docs/EInvoicing/V1/DocumentsApi.md +9 -9
- data/docs/EInvoicing/V1/Extension.md +20 -0
- data/docs/EInvoicing/V1/Identifier.md +22 -0
- data/docs/EInvoicing/V1/InteropApi.md +1 -1
- data/docs/EInvoicing/V1/MandatesApi.md +6 -6
- data/docs/EInvoicing/V1/SearchParticipants200Response.md +22 -0
- data/docs/EInvoicing/V1/SubscriptionsApi.md +12 -12
- data/docs/EInvoicing/V1/SupportedDocumentTypes.md +26 -0
- data/docs/EInvoicing/V1/TaxIdentifierRequest.md +24 -0
- data/docs/EInvoicing/V1/TaxIdentifierResponse.md +20 -0
- data/docs/EInvoicing/V1/TaxIdentifierResponseValue.md +22 -0
- data/docs/EInvoicing/V1/TaxIdentifierSchemaByCountry200Response.md +20 -0
- data/docs/EInvoicing/V1/TaxIdentifiersApi.md +177 -0
- data/docs/EInvoicing/V1/TradingPartner.md +34 -0
- data/docs/EInvoicing/V1/TradingPartnersApi.md +412 -75
- data/docs/EInvoicing/V1/UpdateTradingPartner200Response.md +22 -0
- data/docs/EInvoicing/V1/ValidationError.md +20 -0
- data/lib/avalara_sdk/api/A1099/V2/companies_w9_api.rb +14 -14
- data/lib/avalara_sdk/api/A1099/V2/forms1099_api.rb +51 -39
- data/lib/avalara_sdk/api/A1099/V2/forms_w9_api.rb +56 -50
- data/lib/avalara_sdk/api/A1099/V2/issuers1099_api.rb +20 -20
- data/lib/avalara_sdk/api/A1099/V2/jobs1099_api.rb +2 -2
- data/lib/avalara_sdk/api/EInvoicing/V1/data_input_fields_api.rb +7 -7
- data/lib/avalara_sdk/api/EInvoicing/V1/documents_api.rb +11 -11
- data/lib/avalara_sdk/api/EInvoicing/V1/interop_api.rb +2 -2
- data/lib/avalara_sdk/api/EInvoicing/V1/mandates_api.rb +8 -8
- data/lib/avalara_sdk/api/EInvoicing/V1/subscriptions_api.rb +21 -21
- data/lib/avalara_sdk/api/EInvoicing/V1/tax_identifiers_api.rb +531 -0
- data/lib/avalara_sdk/api/EInvoicing/V1/trading_partners_api.rb +660 -80
- data/lib/avalara_sdk/models/A1099/V2/attribute.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/authorized_api_request_model.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/authorized_api_request_v2_data_model.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/base_company_model.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/base_form_list_request.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/bulk_upsert1099_forms_request.rb +2 -1
- data/lib/avalara_sdk/models/A1099/V2/company_create_update_request_model.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/company_model.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/company_response.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/company_response_model.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/covered_individual_reference_response.rb +407 -0
- data/lib/avalara_sdk/models/A1099/V2/covered_individual_request.rb +20 -1
- data/lib/avalara_sdk/models/A1099/V2/create1099_form201_response.rb +106 -0
- data/lib/avalara_sdk/models/A1099/V2/create_w9_form201_response.rb +104 -0
- data/lib/avalara_sdk/models/A1099/V2/create_w9_form_request.rb +104 -0
- data/lib/avalara_sdk/models/A1099/V2/data.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/error_model.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/error_response.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/error_response_errors_inner.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/form1042_s_list.rb +238 -0
- data/lib/avalara_sdk/models/A1099/V2/form1042_s_list_item.rb +891 -0
- data/lib/avalara_sdk/models/A1099/V2/form1042_s_list_item_response.rb +925 -0
- data/lib/avalara_sdk/models/A1099/V2/form1042_s_request.rb +855 -0
- data/lib/avalara_sdk/models/A1099/V2/form1042_s_response.rb +600 -0
- data/lib/avalara_sdk/models/A1099/V2/form1095_b_list.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item.rb +147 -14
- data/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item_response.rb +700 -0
- data/lib/avalara_sdk/models/A1099/V2/form1095_b_request.rb +149 -16
- data/lib/avalara_sdk/models/A1099/V2/form1099_base_response.rb +661 -0
- data/lib/avalara_sdk/models/A1099/V2/form1099_div_list.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/form1099_div_list_item.rb +168 -13
- data/lib/avalara_sdk/models/A1099/V2/form1099_div_request.rb +159 -14
- data/lib/avalara_sdk/models/A1099/V2/form1099_div_response.rb +5 -5
- data/lib/avalara_sdk/models/A1099/V2/form1099_k_list.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item.rb +169 -13
- data/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item_response.rb +930 -0
- data/lib/avalara_sdk/models/A1099/V2/form1099_k_request.rb +160 -14
- data/lib/avalara_sdk/models/A1099/V2/form1099_list_response.rb +220 -0
- data/lib/avalara_sdk/models/A1099/V2/form1099_list_response_value_inner.rb +106 -0
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item.rb +171 -19
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item_response.rb +810 -0
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_request.rb +162 -20
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_response.rb +12 -12
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item.rb +168 -20
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item_response.rb +700 -0
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_request.rb +157 -20
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_response.rb +12 -12
- data/lib/avalara_sdk/models/A1099/V2/form1099_proccess_result.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/form1099_r_list.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item.rb +171 -15
- data/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item_response.rb +888 -0
- data/lib/avalara_sdk/models/A1099/V2/form1099_r_request.rb +160 -14
- data/lib/avalara_sdk/models/A1099/V2/form1099_status_detail_response.rb +223 -0
- data/lib/avalara_sdk/models/A1099/V2/form_request_base.rb +138 -12
- data/lib/avalara_sdk/models/A1099/V2/form_request_list_item_base.rb +611 -0
- data/lib/avalara_sdk/models/A1099/V2/form_response_base.rb +5 -5
- data/lib/avalara_sdk/models/A1099/V2/form_single_request_base.rb +140 -14
- data/lib/avalara_sdk/models/A1099/V2/get1099_form200_response.rb +8 -6
- data/lib/avalara_sdk/models/A1099/V2/http_validation_problem_details.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/i_create_form1099_request.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/i_update_form1099_request.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/intermediary_or_flow_through.rb +311 -0
- data/lib/avalara_sdk/models/A1099/V2/intermediary_or_flow_through_request.rb +311 -0
- data/lib/avalara_sdk/models/A1099/V2/intermediary_or_flow_through_response.rb +311 -0
- data/lib/avalara_sdk/models/A1099/V2/issuer_command.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/issuer_response.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/iw9_form_data_models_one_of.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/job_result.rb +16 -1
- data/lib/avalara_sdk/models/A1099/V2/link.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/paginated_query_result_model.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/paginated_query_result_model_company_response.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/paginated_query_result_model_issuer_response.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/paginated_w9_forms_model.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/primary_withholding_agent.rb +221 -0
- data/lib/avalara_sdk/models/A1099/V2/primary_withholding_agent_request.rb +221 -0
- data/lib/avalara_sdk/models/A1099/V2/primary_withholding_agent_response.rb +221 -0
- data/lib/avalara_sdk/models/A1099/V2/problem_details.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/state_and_local_withholding_request.rb +5 -1
- data/lib/avalara_sdk/models/A1099/V2/state_and_local_withholding_response.rb +9 -1
- data/lib/avalara_sdk/models/A1099/V2/state_efile_status_detail_response.rb +231 -0
- data/lib/avalara_sdk/models/A1099/V2/status_detail.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/substantial_us_owner_request.rb +233 -0
- data/lib/avalara_sdk/models/A1099/V2/substantial_us_owner_response.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/update1099_form200_response.rb +2 -1
- data/lib/avalara_sdk/models/A1099/V2/validation_error_response.rb +231 -0
- data/lib/avalara_sdk/models/A1099/V2/w4_form_data_model.rb +6 -6
- data/lib/avalara_sdk/models/A1099/V2/w4_form_request.rb +509 -0
- data/lib/avalara_sdk/models/A1099/V2/w4_form_response.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/w8_ben_e_form_request.rb +1343 -0
- data/lib/avalara_sdk/models/A1099/V2/w8_ben_e_form_response.rb +4 -4
- data/lib/avalara_sdk/models/A1099/V2/w8_ben_e_substantial_us_owner_data_model.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/w8_ben_form_data_model.rb +6 -6
- data/lib/avalara_sdk/models/A1099/V2/w8_ben_form_request.rb +561 -0
- data/lib/avalara_sdk/models/A1099/V2/w8_ben_form_response.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/w8_bene_form_data_model.rb +6 -6
- data/lib/avalara_sdk/models/A1099/V2/w8_imy_form_data_model.rb +6 -6
- data/lib/avalara_sdk/models/A1099/V2/w8_imy_form_request.rb +1518 -0
- data/lib/avalara_sdk/models/A1099/V2/w8_imy_form_response.rb +3 -3
- data/lib/avalara_sdk/models/A1099/V2/w9_form_base_request.rb +299 -0
- data/lib/avalara_sdk/models/A1099/V2/w9_form_base_response.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/w9_form_data_model.rb +6 -6
- data/lib/avalara_sdk/models/A1099/V2/w9_form_request.rb +495 -0
- data/lib/avalara_sdk/models/A1099/V2/w9_form_response.rb +4 -3
- data/lib/avalara_sdk/models/EInvoicing/V1/address.rb +382 -0
- data/lib/avalara_sdk/models/EInvoicing/V1/batch_error_detail.rb +223 -0
- data/lib/avalara_sdk/models/EInvoicing/V1/batch_search.rb +1 -1
- data/lib/avalara_sdk/models/EInvoicing/V1/batch_search_list_response.rb +3 -2
- data/lib/avalara_sdk/models/EInvoicing/V1/consents.rb +213 -0
- data/lib/avalara_sdk/models/EInvoicing/V1/create_trading_partner201_response.rb +231 -0
- data/lib/avalara_sdk/models/EInvoicing/V1/create_trading_partners_batch200_response.rb +232 -0
- data/lib/avalara_sdk/models/EInvoicing/V1/create_trading_partners_batch200_response_value_inner.rb +231 -0
- data/lib/avalara_sdk/models/EInvoicing/V1/create_trading_partners_batch_request.rb +212 -0
- data/lib/avalara_sdk/models/EInvoicing/V1/data_input_fields_response.rb +1 -2
- data/lib/avalara_sdk/models/EInvoicing/V1/document_fetch.rb +1 -2
- data/lib/avalara_sdk/models/EInvoicing/V1/error_response.rb +1 -1
- data/lib/avalara_sdk/models/EInvoicing/V1/extension.rb +256 -0
- data/lib/avalara_sdk/models/EInvoicing/V1/hmac_signature_value.rb +1 -2
- data/lib/avalara_sdk/models/EInvoicing/V1/identifier.rb +302 -0
- data/lib/avalara_sdk/models/EInvoicing/V1/mandate.rb +1 -2
- data/lib/avalara_sdk/models/EInvoicing/V1/pagination.rb +1 -2
- data/lib/avalara_sdk/models/EInvoicing/V1/required_when_field.rb +1 -2
- data/lib/avalara_sdk/models/EInvoicing/V1/search_participants200_response.rb +232 -0
- data/lib/avalara_sdk/models/EInvoicing/V1/signature.rb +1 -2
- data/lib/avalara_sdk/models/EInvoicing/V1/signature_value.rb +1 -2
- data/lib/avalara_sdk/models/EInvoicing/V1/subscription_common.rb +1 -2
- data/lib/avalara_sdk/models/EInvoicing/V1/success_response.rb +1 -2
- data/lib/avalara_sdk/models/EInvoicing/V1/supported_document_types.rb +305 -0
- data/lib/avalara_sdk/models/EInvoicing/V1/tax_identifier_request.rb +329 -0
- data/lib/avalara_sdk/models/EInvoicing/V1/tax_identifier_response.rb +228 -0
- data/lib/avalara_sdk/models/EInvoicing/V1/tax_identifier_response_value.rb +231 -0
- data/lib/avalara_sdk/models/EInvoicing/V1/tax_identifier_schema_by_country200_response.rb +235 -0
- data/lib/avalara_sdk/models/EInvoicing/V1/trading_partner.rb +411 -0
- data/lib/avalara_sdk/models/EInvoicing/V1/update_trading_partner200_response.rb +231 -0
- data/lib/avalara_sdk/models/EInvoicing/V1/validation_error.rb +222 -0
- data/lib/avalara_sdk/models/EInvoicing/V1/webhooks_error_response.rb +1 -2
- data/lib/avalara_sdk/version.rb +1 -1
- data/lib/avalara_sdk.rb +53 -0
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/byebug-11.1.3/byebug/byebug.so +0 -0
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/byebug-11.1.3/gem_make.out +6 -6
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/date-3.4.1/date_core.so +0 -0
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/date-3.4.1/gem_make.out +6 -6
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/date-3.4.1/mkmf.log +4 -4
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debase-0.2.9/attach.so +0 -0
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debase-0.2.9/debase_internals.so +0 -0
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debase-0.2.9/gem_make.out +7 -7
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debase-0.2.9/mkmf.log +6 -6
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debug-1.10.0/debug/debug.so +0 -0
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debug-1.10.0/gem_make.out +6 -6
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/erb-5.0.1/erb/escape.so +0 -0
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/erb-5.0.1/gem_make.out +6 -6
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/io-console-0.8.0/gem_make.out +6 -6
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/io-console-0.8.0/io/console.so +0 -0
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/io-console-0.8.0/mkmf.log +21 -21
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/json-2.12.2/gem_make.out +6 -6
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/json-2.12.2/json/ext/generator.so +0 -0
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/json-2.12.2/json/ext/parser.so +0 -0
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/json-2.12.2/mkmf.log +7 -7
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/prism-1.4.0/gem_make.out +6 -6
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/prism-1.4.0/mkmf.log +6 -6
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/prism-1.4.0/prism/prism.so +0 -0
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/psych-5.2.6/gem_make.out +6 -6
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/psych-5.2.6/mkmf.log +10 -10
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/psych-5.2.6/psych.so +0 -0
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/racc-1.8.1/gem_make.out +6 -6
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/racc-1.8.1/racc/cparse.so +0 -0
- 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
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/stringio-3.1.7/gem_make.out +6 -6
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/stringio-3.1.7/mkmf.log +2 -2
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/stringio-3.1.7/stringio.so +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/ext/byebug/Makefile +3 -3
- data/vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/byebug.so +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/date-3.4.1/ext/date/Makefile +3 -3
- data/vendor/bundle/ruby/3.3.0/gems/date-3.4.1/lib/date_core.so +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/debase-0.2.9/ext/Makefile +3 -3
- data/vendor/bundle/ruby/3.3.0/gems/debase-0.2.9/ext/attach/Makefile +3 -3
- data/vendor/bundle/ruby/3.3.0/gems/debase-0.2.9/lib/attach.so +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/debase-0.2.9/lib/debase_internals.so +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/ext/debug/Makefile +3 -3
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/debug.so +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/erb-5.0.1/ext/erb/escape/Makefile +3 -3
- data/vendor/bundle/ruby/3.3.0/gems/erb-5.0.1/lib/erb/escape.so +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/io-console-0.8.0/ext/io/console/Makefile +3 -3
- data/vendor/bundle/ruby/3.3.0/gems/io-console-0.8.0/lib/io/console.so +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/json-2.12.2/ext/json/ext/generator/Makefile +3 -3
- data/vendor/bundle/ruby/3.3.0/gems/json-2.12.2/ext/json/ext/parser/Makefile +3 -3
- data/vendor/bundle/ruby/3.3.0/gems/json-2.12.2/lib/json/ext/generator.so +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/json-2.12.2/lib/json/ext/parser.so +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/prism-1.4.0/ext/prism/Makefile +3 -3
- data/vendor/bundle/ruby/3.3.0/gems/prism-1.4.0/lib/prism/prism.so +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/psych-5.2.6/ext/psych/Makefile +3 -3
- data/vendor/bundle/ruby/3.3.0/gems/psych-5.2.6/lib/psych.so +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/racc-1.8.1/ext/racc/cparse/Makefile +3 -3
- data/vendor/bundle/ruby/3.3.0/gems/racc-1.8.1/lib/racc/cparse.so +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/stringio-3.1.7/ext/stringio/Makefile +3 -3
- data/vendor/bundle/ruby/3.3.0/gems/stringio-3.1.7/lib/stringio.so +0 -0
- metadata +109 -3
@@ -0,0 +1,925 @@
|
|
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 Form1042SListItemResponse
|
14
|
+
# Unique form identifier
|
15
|
+
attr_accessor :unique_form_id
|
16
|
+
|
17
|
+
# No TIN indicator
|
18
|
+
attr_accessor :no_tin
|
19
|
+
|
20
|
+
# Recipient's date of birth
|
21
|
+
attr_accessor :recipient_date_of_birth
|
22
|
+
|
23
|
+
# Recipient's GIIN (Global Intermediary Identification Number)
|
24
|
+
attr_accessor :recipient_giin
|
25
|
+
|
26
|
+
# Recipient's foreign TIN
|
27
|
+
attr_accessor :recipient_foreign_tin
|
28
|
+
|
29
|
+
# Limitation on benefits code
|
30
|
+
attr_accessor :lob_code
|
31
|
+
|
32
|
+
# Income code
|
33
|
+
attr_accessor :income_code
|
34
|
+
|
35
|
+
# Gross income
|
36
|
+
attr_accessor :gross_income
|
37
|
+
|
38
|
+
# Withholding indicator
|
39
|
+
attr_accessor :withholding_indicator
|
40
|
+
|
41
|
+
# Country code
|
42
|
+
attr_accessor :tax_country_code
|
43
|
+
|
44
|
+
# Exemption code (Chapter 3)
|
45
|
+
attr_accessor :exemption_code_chap3
|
46
|
+
|
47
|
+
# Exemption code (Chapter 4)
|
48
|
+
attr_accessor :exemption_code_chap4
|
49
|
+
|
50
|
+
# Tax rate (Chapter 3)
|
51
|
+
attr_accessor :tax_rate_chap3
|
52
|
+
|
53
|
+
# Withholding allowance
|
54
|
+
attr_accessor :withholding_allowance
|
55
|
+
|
56
|
+
# Federal tax withheld
|
57
|
+
attr_accessor :federal_tax_withheld
|
58
|
+
|
59
|
+
# Tax not deposited indicator
|
60
|
+
attr_accessor :tax_not_deposited_indicator
|
61
|
+
|
62
|
+
# Academic indicator
|
63
|
+
attr_accessor :academic_indicator
|
64
|
+
|
65
|
+
# Tax withheld by other agents
|
66
|
+
attr_accessor :tax_withheld_other_agents
|
67
|
+
|
68
|
+
# Amount repaid to recipient
|
69
|
+
attr_accessor :amount_repaid
|
70
|
+
|
71
|
+
# Tax paid by withholding agent
|
72
|
+
attr_accessor :tax_paid_agent
|
73
|
+
|
74
|
+
# Chapter 3 status code
|
75
|
+
attr_accessor :chap3_status_code
|
76
|
+
|
77
|
+
# Chapter 4 status code
|
78
|
+
attr_accessor :chap4_status_code
|
79
|
+
|
80
|
+
# Primary withholding agent information
|
81
|
+
attr_accessor :primary_withholding_agent
|
82
|
+
|
83
|
+
# Intermediary or flow-through entity information
|
84
|
+
attr_accessor :intermediary_or_flow_through
|
85
|
+
|
86
|
+
# ID of the form
|
87
|
+
attr_accessor :id
|
88
|
+
|
89
|
+
# Type of the form. Will be one of: * 940 * 941 * 943 * 944 * 945 * 1042 * 1042-S * 1095-B * 1095-C * 1097-BTC * 1098 * 1098-C * 1098-E * 1098-Q * 1098-T * 3921 * 3922 * 5498 * 5498-ESA * 5498-SA * 1099-MISC * 1099-A * 1099-B * 1099-C * 1099-CAP * 1099-DIV * 1099-G * 1099-INT * 1099-K * 1099-LS * 1099-LTC * 1099-NEC * 1099-OID * 1099-PATR * 1099-Q * 1099-R * 1099-S * 1099-SA * T4A * W-2 * W-2G * 1099-HC
|
90
|
+
attr_accessor :type
|
91
|
+
|
92
|
+
# Issuer ID
|
93
|
+
attr_accessor :issuer_id
|
94
|
+
|
95
|
+
# Issuer Reference ID
|
96
|
+
attr_accessor :issuer_reference_id
|
97
|
+
|
98
|
+
# Issuer TIN
|
99
|
+
attr_accessor :issuer_tin
|
100
|
+
|
101
|
+
# Tax year
|
102
|
+
attr_accessor :tax_year
|
103
|
+
|
104
|
+
# Boolean indicating that federal e-filing has been scheduled for this form
|
105
|
+
attr_accessor :federal_efile
|
106
|
+
|
107
|
+
# Federal e-file status
|
108
|
+
attr_accessor :federal_efile_status
|
109
|
+
|
110
|
+
# Boolean indicating that state e-filing has been scheduled for this form
|
111
|
+
attr_accessor :state_efile
|
112
|
+
|
113
|
+
# State e-file status
|
114
|
+
attr_accessor :state_efile_status
|
115
|
+
|
116
|
+
# Boolean indicating that postal mailing to the recipient has been scheduled for this form
|
117
|
+
attr_accessor :postal_mail
|
118
|
+
|
119
|
+
# Postal mail to recipient status
|
120
|
+
attr_accessor :postal_mail_status
|
121
|
+
|
122
|
+
# Boolean indicating that TIN Matching has been scheduled for this form
|
123
|
+
attr_accessor :tin_match
|
124
|
+
|
125
|
+
# TIN Match status
|
126
|
+
attr_accessor :tin_match_status
|
127
|
+
|
128
|
+
# Boolean indicating that address verification has been scheduled for this form
|
129
|
+
attr_accessor :address_verification
|
130
|
+
|
131
|
+
# Address verification status
|
132
|
+
attr_accessor :address_verification_status
|
133
|
+
|
134
|
+
# Reference ID
|
135
|
+
attr_accessor :reference_id
|
136
|
+
|
137
|
+
# Recipient email address
|
138
|
+
attr_accessor :email
|
139
|
+
|
140
|
+
# Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN
|
141
|
+
attr_accessor :tin_type
|
142
|
+
|
143
|
+
# Recipient Tax ID Number
|
144
|
+
attr_accessor :tin
|
145
|
+
|
146
|
+
# Recipient name
|
147
|
+
attr_accessor :recipient_name
|
148
|
+
|
149
|
+
# Recipient second name
|
150
|
+
attr_accessor :recipient_second_name
|
151
|
+
|
152
|
+
# Address
|
153
|
+
attr_accessor :address
|
154
|
+
|
155
|
+
# Address line 2
|
156
|
+
attr_accessor :address2
|
157
|
+
|
158
|
+
# City
|
159
|
+
attr_accessor :city
|
160
|
+
|
161
|
+
# US state
|
162
|
+
attr_accessor :state
|
163
|
+
|
164
|
+
# Zip/postal code
|
165
|
+
attr_accessor :zip
|
166
|
+
|
167
|
+
# Foreign province
|
168
|
+
attr_accessor :foreign_province
|
169
|
+
|
170
|
+
# Country code, as defined at https://www.irs.gov/e-file-providers/country-codes
|
171
|
+
attr_accessor :country_code
|
172
|
+
|
173
|
+
# Validation errors
|
174
|
+
attr_accessor :validation_errors
|
175
|
+
|
176
|
+
# Creation time
|
177
|
+
attr_accessor :created_at
|
178
|
+
|
179
|
+
# Update time
|
180
|
+
attr_accessor :updated_at
|
181
|
+
|
182
|
+
attr_accessor :state_and_local_withholding
|
183
|
+
|
184
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
185
|
+
def self.attribute_map
|
186
|
+
{
|
187
|
+
:'unique_form_id' => :'uniqueFormId',
|
188
|
+
:'no_tin' => :'noTin',
|
189
|
+
:'recipient_date_of_birth' => :'recipientDateOfBirth',
|
190
|
+
:'recipient_giin' => :'recipientGiin',
|
191
|
+
:'recipient_foreign_tin' => :'recipientForeignTin',
|
192
|
+
:'lob_code' => :'lobCode',
|
193
|
+
:'income_code' => :'incomeCode',
|
194
|
+
:'gross_income' => :'grossIncome',
|
195
|
+
:'withholding_indicator' => :'withholdingIndicator',
|
196
|
+
:'tax_country_code' => :'taxCountryCode',
|
197
|
+
:'exemption_code_chap3' => :'exemptionCodeChap3',
|
198
|
+
:'exemption_code_chap4' => :'exemptionCodeChap4',
|
199
|
+
:'tax_rate_chap3' => :'taxRateChap3',
|
200
|
+
:'withholding_allowance' => :'withholdingAllowance',
|
201
|
+
:'federal_tax_withheld' => :'federalTaxWithheld',
|
202
|
+
:'tax_not_deposited_indicator' => :'taxNotDepositedIndicator',
|
203
|
+
:'academic_indicator' => :'academicIndicator',
|
204
|
+
:'tax_withheld_other_agents' => :'taxWithheldOtherAgents',
|
205
|
+
:'amount_repaid' => :'amountRepaid',
|
206
|
+
:'tax_paid_agent' => :'taxPaidAgent',
|
207
|
+
:'chap3_status_code' => :'chap3StatusCode',
|
208
|
+
:'chap4_status_code' => :'chap4StatusCode',
|
209
|
+
:'primary_withholding_agent' => :'primaryWithholdingAgent',
|
210
|
+
:'intermediary_or_flow_through' => :'intermediaryOrFlowThrough',
|
211
|
+
:'id' => :'id',
|
212
|
+
:'type' => :'type',
|
213
|
+
:'issuer_id' => :'issuerId',
|
214
|
+
:'issuer_reference_id' => :'issuerReferenceId',
|
215
|
+
:'issuer_tin' => :'issuerTin',
|
216
|
+
:'tax_year' => :'taxYear',
|
217
|
+
:'federal_efile' => :'federalEfile',
|
218
|
+
:'federal_efile_status' => :'federalEfileStatus',
|
219
|
+
:'state_efile' => :'stateEfile',
|
220
|
+
:'state_efile_status' => :'stateEfileStatus',
|
221
|
+
:'postal_mail' => :'postalMail',
|
222
|
+
:'postal_mail_status' => :'postalMailStatus',
|
223
|
+
:'tin_match' => :'tinMatch',
|
224
|
+
:'tin_match_status' => :'tinMatchStatus',
|
225
|
+
:'address_verification' => :'addressVerification',
|
226
|
+
:'address_verification_status' => :'addressVerificationStatus',
|
227
|
+
:'reference_id' => :'referenceId',
|
228
|
+
:'email' => :'email',
|
229
|
+
:'tin_type' => :'tinType',
|
230
|
+
:'tin' => :'tin',
|
231
|
+
:'recipient_name' => :'recipientName',
|
232
|
+
:'recipient_second_name' => :'recipientSecondName',
|
233
|
+
:'address' => :'address',
|
234
|
+
:'address2' => :'address2',
|
235
|
+
:'city' => :'city',
|
236
|
+
:'state' => :'state',
|
237
|
+
:'zip' => :'zip',
|
238
|
+
:'foreign_province' => :'foreignProvince',
|
239
|
+
:'country_code' => :'countryCode',
|
240
|
+
:'validation_errors' => :'validationErrors',
|
241
|
+
:'created_at' => :'createdAt',
|
242
|
+
:'updated_at' => :'updatedAt',
|
243
|
+
:'state_and_local_withholding' => :'stateAndLocalWithholding'
|
244
|
+
}
|
245
|
+
end
|
246
|
+
|
247
|
+
# Returns all the JSON keys this model knows about
|
248
|
+
def self.acceptable_attributes
|
249
|
+
attribute_map.values
|
250
|
+
end
|
251
|
+
|
252
|
+
# Attribute type mapping.
|
253
|
+
def self.openapi_types
|
254
|
+
{
|
255
|
+
:'unique_form_id' => :'String',
|
256
|
+
:'no_tin' => :'Boolean',
|
257
|
+
:'recipient_date_of_birth' => :'Time',
|
258
|
+
:'recipient_giin' => :'String',
|
259
|
+
:'recipient_foreign_tin' => :'String',
|
260
|
+
:'lob_code' => :'String',
|
261
|
+
:'income_code' => :'String',
|
262
|
+
:'gross_income' => :'Float',
|
263
|
+
:'withholding_indicator' => :'String',
|
264
|
+
:'tax_country_code' => :'String',
|
265
|
+
:'exemption_code_chap3' => :'String',
|
266
|
+
:'exemption_code_chap4' => :'String',
|
267
|
+
:'tax_rate_chap3' => :'String',
|
268
|
+
:'withholding_allowance' => :'Float',
|
269
|
+
:'federal_tax_withheld' => :'Float',
|
270
|
+
:'tax_not_deposited_indicator' => :'Boolean',
|
271
|
+
:'academic_indicator' => :'Boolean',
|
272
|
+
:'tax_withheld_other_agents' => :'Float',
|
273
|
+
:'amount_repaid' => :'Float',
|
274
|
+
:'tax_paid_agent' => :'Float',
|
275
|
+
:'chap3_status_code' => :'String',
|
276
|
+
:'chap4_status_code' => :'String',
|
277
|
+
:'primary_withholding_agent' => :'PrimaryWithholdingAgentResponse',
|
278
|
+
:'intermediary_or_flow_through' => :'IntermediaryOrFlowThroughResponse',
|
279
|
+
:'id' => :'String',
|
280
|
+
:'type' => :'String',
|
281
|
+
:'issuer_id' => :'Integer',
|
282
|
+
:'issuer_reference_id' => :'String',
|
283
|
+
:'issuer_tin' => :'String',
|
284
|
+
:'tax_year' => :'Integer',
|
285
|
+
:'federal_efile' => :'Boolean',
|
286
|
+
:'federal_efile_status' => :'Form1099StatusDetailResponse',
|
287
|
+
:'state_efile' => :'Boolean',
|
288
|
+
:'state_efile_status' => :'Array<StateEfileStatusDetailResponse>',
|
289
|
+
:'postal_mail' => :'Boolean',
|
290
|
+
:'postal_mail_status' => :'Form1099StatusDetailResponse',
|
291
|
+
:'tin_match' => :'Boolean',
|
292
|
+
:'tin_match_status' => :'Form1099StatusDetailResponse',
|
293
|
+
:'address_verification' => :'Boolean',
|
294
|
+
:'address_verification_status' => :'Form1099StatusDetailResponse',
|
295
|
+
:'reference_id' => :'String',
|
296
|
+
:'email' => :'String',
|
297
|
+
:'tin_type' => :'String',
|
298
|
+
:'tin' => :'String',
|
299
|
+
:'recipient_name' => :'String',
|
300
|
+
:'recipient_second_name' => :'String',
|
301
|
+
:'address' => :'String',
|
302
|
+
:'address2' => :'String',
|
303
|
+
:'city' => :'String',
|
304
|
+
:'state' => :'String',
|
305
|
+
:'zip' => :'String',
|
306
|
+
:'foreign_province' => :'String',
|
307
|
+
:'country_code' => :'String',
|
308
|
+
:'validation_errors' => :'Array<ValidationErrorResponse>',
|
309
|
+
:'created_at' => :'Time',
|
310
|
+
:'updated_at' => :'Time',
|
311
|
+
:'state_and_local_withholding' => :'StateAndLocalWithholdingResponse'
|
312
|
+
}
|
313
|
+
end
|
314
|
+
|
315
|
+
# List of attributes with nullable: true
|
316
|
+
def self.openapi_nullable
|
317
|
+
Set.new([
|
318
|
+
:'no_tin',
|
319
|
+
:'recipient_date_of_birth',
|
320
|
+
:'recipient_giin',
|
321
|
+
:'recipient_foreign_tin',
|
322
|
+
:'lob_code',
|
323
|
+
:'exemption_code_chap3',
|
324
|
+
:'exemption_code_chap4',
|
325
|
+
:'tax_rate_chap3',
|
326
|
+
:'withholding_allowance',
|
327
|
+
:'federal_tax_withheld',
|
328
|
+
:'tax_not_deposited_indicator',
|
329
|
+
:'academic_indicator',
|
330
|
+
:'tax_withheld_other_agents',
|
331
|
+
:'amount_repaid',
|
332
|
+
:'tax_paid_agent',
|
333
|
+
:'chap3_status_code',
|
334
|
+
:'chap4_status_code',
|
335
|
+
:'issuer_reference_id',
|
336
|
+
:'issuer_tin',
|
337
|
+
:'state_efile_status',
|
338
|
+
:'postal_mail_status',
|
339
|
+
:'tin_match_status',
|
340
|
+
:'address_verification_status',
|
341
|
+
:'reference_id',
|
342
|
+
:'email',
|
343
|
+
:'tin_type',
|
344
|
+
:'tin',
|
345
|
+
:'recipient_name',
|
346
|
+
:'recipient_second_name',
|
347
|
+
:'address',
|
348
|
+
:'address2',
|
349
|
+
:'city',
|
350
|
+
:'state',
|
351
|
+
:'zip',
|
352
|
+
:'foreign_province',
|
353
|
+
:'country_code',
|
354
|
+
:'validation_errors',
|
355
|
+
:'state_and_local_withholding'
|
356
|
+
])
|
357
|
+
end
|
358
|
+
|
359
|
+
# List of class defined in allOf (OpenAPI v3)
|
360
|
+
def self.openapi_all_of
|
361
|
+
[
|
362
|
+
:'Form1099BaseResponse'
|
363
|
+
]
|
364
|
+
end
|
365
|
+
|
366
|
+
# Initializes the object
|
367
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
368
|
+
def initialize(attributes = {})
|
369
|
+
if (!attributes.is_a?(Hash))
|
370
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AvalaraSdk::A1099::V2::Form1042SListItemResponse` initialize method"
|
371
|
+
end
|
372
|
+
|
373
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
374
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
375
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
376
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AvalaraSdk::A1099::V2::Form1042SListItemResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
377
|
+
end
|
378
|
+
h[k.to_sym] = v
|
379
|
+
}
|
380
|
+
|
381
|
+
if attributes.key?(:'unique_form_id')
|
382
|
+
self.unique_form_id = attributes[:'unique_form_id']
|
383
|
+
end
|
384
|
+
|
385
|
+
if attributes.key?(:'no_tin')
|
386
|
+
self.no_tin = attributes[:'no_tin']
|
387
|
+
end
|
388
|
+
|
389
|
+
if attributes.key?(:'recipient_date_of_birth')
|
390
|
+
self.recipient_date_of_birth = attributes[:'recipient_date_of_birth']
|
391
|
+
end
|
392
|
+
|
393
|
+
if attributes.key?(:'recipient_giin')
|
394
|
+
self.recipient_giin = attributes[:'recipient_giin']
|
395
|
+
end
|
396
|
+
|
397
|
+
if attributes.key?(:'recipient_foreign_tin')
|
398
|
+
self.recipient_foreign_tin = attributes[:'recipient_foreign_tin']
|
399
|
+
end
|
400
|
+
|
401
|
+
if attributes.key?(:'lob_code')
|
402
|
+
self.lob_code = attributes[:'lob_code']
|
403
|
+
end
|
404
|
+
|
405
|
+
if attributes.key?(:'income_code')
|
406
|
+
self.income_code = attributes[:'income_code']
|
407
|
+
end
|
408
|
+
|
409
|
+
if attributes.key?(:'gross_income')
|
410
|
+
self.gross_income = attributes[:'gross_income']
|
411
|
+
end
|
412
|
+
|
413
|
+
if attributes.key?(:'withholding_indicator')
|
414
|
+
self.withholding_indicator = attributes[:'withholding_indicator']
|
415
|
+
end
|
416
|
+
|
417
|
+
if attributes.key?(:'tax_country_code')
|
418
|
+
self.tax_country_code = attributes[:'tax_country_code']
|
419
|
+
end
|
420
|
+
|
421
|
+
if attributes.key?(:'exemption_code_chap3')
|
422
|
+
self.exemption_code_chap3 = attributes[:'exemption_code_chap3']
|
423
|
+
end
|
424
|
+
|
425
|
+
if attributes.key?(:'exemption_code_chap4')
|
426
|
+
self.exemption_code_chap4 = attributes[:'exemption_code_chap4']
|
427
|
+
end
|
428
|
+
|
429
|
+
if attributes.key?(:'tax_rate_chap3')
|
430
|
+
self.tax_rate_chap3 = attributes[:'tax_rate_chap3']
|
431
|
+
end
|
432
|
+
|
433
|
+
if attributes.key?(:'withholding_allowance')
|
434
|
+
self.withholding_allowance = attributes[:'withholding_allowance']
|
435
|
+
end
|
436
|
+
|
437
|
+
if attributes.key?(:'federal_tax_withheld')
|
438
|
+
self.federal_tax_withheld = attributes[:'federal_tax_withheld']
|
439
|
+
end
|
440
|
+
|
441
|
+
if attributes.key?(:'tax_not_deposited_indicator')
|
442
|
+
self.tax_not_deposited_indicator = attributes[:'tax_not_deposited_indicator']
|
443
|
+
end
|
444
|
+
|
445
|
+
if attributes.key?(:'academic_indicator')
|
446
|
+
self.academic_indicator = attributes[:'academic_indicator']
|
447
|
+
end
|
448
|
+
|
449
|
+
if attributes.key?(:'tax_withheld_other_agents')
|
450
|
+
self.tax_withheld_other_agents = attributes[:'tax_withheld_other_agents']
|
451
|
+
end
|
452
|
+
|
453
|
+
if attributes.key?(:'amount_repaid')
|
454
|
+
self.amount_repaid = attributes[:'amount_repaid']
|
455
|
+
end
|
456
|
+
|
457
|
+
if attributes.key?(:'tax_paid_agent')
|
458
|
+
self.tax_paid_agent = attributes[:'tax_paid_agent']
|
459
|
+
end
|
460
|
+
|
461
|
+
if attributes.key?(:'chap3_status_code')
|
462
|
+
self.chap3_status_code = attributes[:'chap3_status_code']
|
463
|
+
end
|
464
|
+
|
465
|
+
if attributes.key?(:'chap4_status_code')
|
466
|
+
self.chap4_status_code = attributes[:'chap4_status_code']
|
467
|
+
end
|
468
|
+
|
469
|
+
if attributes.key?(:'primary_withholding_agent')
|
470
|
+
self.primary_withholding_agent = attributes[:'primary_withholding_agent']
|
471
|
+
end
|
472
|
+
|
473
|
+
if attributes.key?(:'intermediary_or_flow_through')
|
474
|
+
self.intermediary_or_flow_through = attributes[:'intermediary_or_flow_through']
|
475
|
+
end
|
476
|
+
|
477
|
+
if attributes.key?(:'id')
|
478
|
+
self.id = attributes[:'id']
|
479
|
+
else
|
480
|
+
self.id = nil
|
481
|
+
end
|
482
|
+
|
483
|
+
if attributes.key?(:'type')
|
484
|
+
self.type = attributes[:'type']
|
485
|
+
else
|
486
|
+
self.type = nil
|
487
|
+
end
|
488
|
+
|
489
|
+
if attributes.key?(:'issuer_id')
|
490
|
+
self.issuer_id = attributes[:'issuer_id']
|
491
|
+
else
|
492
|
+
self.issuer_id = nil
|
493
|
+
end
|
494
|
+
|
495
|
+
if attributes.key?(:'issuer_reference_id')
|
496
|
+
self.issuer_reference_id = attributes[:'issuer_reference_id']
|
497
|
+
end
|
498
|
+
|
499
|
+
if attributes.key?(:'issuer_tin')
|
500
|
+
self.issuer_tin = attributes[:'issuer_tin']
|
501
|
+
end
|
502
|
+
|
503
|
+
if attributes.key?(:'tax_year')
|
504
|
+
self.tax_year = attributes[:'tax_year']
|
505
|
+
end
|
506
|
+
|
507
|
+
if attributes.key?(:'federal_efile')
|
508
|
+
self.federal_efile = attributes[:'federal_efile']
|
509
|
+
else
|
510
|
+
self.federal_efile = nil
|
511
|
+
end
|
512
|
+
|
513
|
+
if attributes.key?(:'federal_efile_status')
|
514
|
+
self.federal_efile_status = attributes[:'federal_efile_status']
|
515
|
+
end
|
516
|
+
|
517
|
+
if attributes.key?(:'state_efile')
|
518
|
+
self.state_efile = attributes[:'state_efile']
|
519
|
+
else
|
520
|
+
self.state_efile = nil
|
521
|
+
end
|
522
|
+
|
523
|
+
if attributes.key?(:'state_efile_status')
|
524
|
+
if (value = attributes[:'state_efile_status']).is_a?(Array)
|
525
|
+
self.state_efile_status = value
|
526
|
+
end
|
527
|
+
end
|
528
|
+
|
529
|
+
if attributes.key?(:'postal_mail')
|
530
|
+
self.postal_mail = attributes[:'postal_mail']
|
531
|
+
else
|
532
|
+
self.postal_mail = nil
|
533
|
+
end
|
534
|
+
|
535
|
+
if attributes.key?(:'postal_mail_status')
|
536
|
+
self.postal_mail_status = attributes[:'postal_mail_status']
|
537
|
+
end
|
538
|
+
|
539
|
+
if attributes.key?(:'tin_match')
|
540
|
+
self.tin_match = attributes[:'tin_match']
|
541
|
+
else
|
542
|
+
self.tin_match = nil
|
543
|
+
end
|
544
|
+
|
545
|
+
if attributes.key?(:'tin_match_status')
|
546
|
+
self.tin_match_status = attributes[:'tin_match_status']
|
547
|
+
end
|
548
|
+
|
549
|
+
if attributes.key?(:'address_verification')
|
550
|
+
self.address_verification = attributes[:'address_verification']
|
551
|
+
else
|
552
|
+
self.address_verification = nil
|
553
|
+
end
|
554
|
+
|
555
|
+
if attributes.key?(:'address_verification_status')
|
556
|
+
self.address_verification_status = attributes[:'address_verification_status']
|
557
|
+
end
|
558
|
+
|
559
|
+
if attributes.key?(:'reference_id')
|
560
|
+
self.reference_id = attributes[:'reference_id']
|
561
|
+
end
|
562
|
+
|
563
|
+
if attributes.key?(:'email')
|
564
|
+
self.email = attributes[:'email']
|
565
|
+
end
|
566
|
+
|
567
|
+
if attributes.key?(:'tin_type')
|
568
|
+
self.tin_type = attributes[:'tin_type']
|
569
|
+
end
|
570
|
+
|
571
|
+
if attributes.key?(:'tin')
|
572
|
+
self.tin = attributes[:'tin']
|
573
|
+
end
|
574
|
+
|
575
|
+
if attributes.key?(:'recipient_name')
|
576
|
+
self.recipient_name = attributes[:'recipient_name']
|
577
|
+
end
|
578
|
+
|
579
|
+
if attributes.key?(:'recipient_second_name')
|
580
|
+
self.recipient_second_name = attributes[:'recipient_second_name']
|
581
|
+
end
|
582
|
+
|
583
|
+
if attributes.key?(:'address')
|
584
|
+
self.address = attributes[:'address']
|
585
|
+
end
|
586
|
+
|
587
|
+
if attributes.key?(:'address2')
|
588
|
+
self.address2 = attributes[:'address2']
|
589
|
+
end
|
590
|
+
|
591
|
+
if attributes.key?(:'city')
|
592
|
+
self.city = attributes[:'city']
|
593
|
+
end
|
594
|
+
|
595
|
+
if attributes.key?(:'state')
|
596
|
+
self.state = attributes[:'state']
|
597
|
+
end
|
598
|
+
|
599
|
+
if attributes.key?(:'zip')
|
600
|
+
self.zip = attributes[:'zip']
|
601
|
+
end
|
602
|
+
|
603
|
+
if attributes.key?(:'foreign_province')
|
604
|
+
self.foreign_province = attributes[:'foreign_province']
|
605
|
+
end
|
606
|
+
|
607
|
+
if attributes.key?(:'country_code')
|
608
|
+
self.country_code = attributes[:'country_code']
|
609
|
+
end
|
610
|
+
|
611
|
+
if attributes.key?(:'validation_errors')
|
612
|
+
if (value = attributes[:'validation_errors']).is_a?(Array)
|
613
|
+
self.validation_errors = value
|
614
|
+
end
|
615
|
+
end
|
616
|
+
|
617
|
+
if attributes.key?(:'created_at')
|
618
|
+
self.created_at = attributes[:'created_at']
|
619
|
+
end
|
620
|
+
|
621
|
+
if attributes.key?(:'updated_at')
|
622
|
+
self.updated_at = attributes[:'updated_at']
|
623
|
+
end
|
624
|
+
|
625
|
+
if attributes.key?(:'state_and_local_withholding')
|
626
|
+
self.state_and_local_withholding = attributes[:'state_and_local_withholding']
|
627
|
+
end
|
628
|
+
end
|
629
|
+
|
630
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
631
|
+
# @return Array for valid properties with the reasons
|
632
|
+
def list_invalid_properties
|
633
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
634
|
+
invalid_properties = Array.new
|
635
|
+
if @id.nil?
|
636
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
637
|
+
end
|
638
|
+
|
639
|
+
if @id.to_s.length < 1
|
640
|
+
invalid_properties.push('invalid value for "id", the character length must be great than or equal to 1.')
|
641
|
+
end
|
642
|
+
|
643
|
+
if @type.nil?
|
644
|
+
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
645
|
+
end
|
646
|
+
|
647
|
+
if @type.to_s.length < 1
|
648
|
+
invalid_properties.push('invalid value for "type", the character length must be great than or equal to 1.')
|
649
|
+
end
|
650
|
+
|
651
|
+
if @issuer_id.nil?
|
652
|
+
invalid_properties.push('invalid value for "issuer_id", issuer_id cannot be nil.')
|
653
|
+
end
|
654
|
+
|
655
|
+
if @federal_efile.nil?
|
656
|
+
invalid_properties.push('invalid value for "federal_efile", federal_efile cannot be nil.')
|
657
|
+
end
|
658
|
+
|
659
|
+
if @state_efile.nil?
|
660
|
+
invalid_properties.push('invalid value for "state_efile", state_efile cannot be nil.')
|
661
|
+
end
|
662
|
+
|
663
|
+
if @postal_mail.nil?
|
664
|
+
invalid_properties.push('invalid value for "postal_mail", postal_mail cannot be nil.')
|
665
|
+
end
|
666
|
+
|
667
|
+
if @tin_match.nil?
|
668
|
+
invalid_properties.push('invalid value for "tin_match", tin_match cannot be nil.')
|
669
|
+
end
|
670
|
+
|
671
|
+
if @address_verification.nil?
|
672
|
+
invalid_properties.push('invalid value for "address_verification", address_verification cannot be nil.')
|
673
|
+
end
|
674
|
+
|
675
|
+
invalid_properties
|
676
|
+
end
|
677
|
+
|
678
|
+
# Check to see if the all the properties in the model are valid
|
679
|
+
# @return true if the model is valid
|
680
|
+
def valid?
|
681
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
682
|
+
return false if @id.nil?
|
683
|
+
return false if @id.to_s.length < 1
|
684
|
+
return false if @type.nil?
|
685
|
+
return false if @type.to_s.length < 1
|
686
|
+
return false if @issuer_id.nil?
|
687
|
+
return false if @federal_efile.nil?
|
688
|
+
return false if @state_efile.nil?
|
689
|
+
return false if @postal_mail.nil?
|
690
|
+
return false if @tin_match.nil?
|
691
|
+
return false if @address_verification.nil?
|
692
|
+
true
|
693
|
+
end
|
694
|
+
|
695
|
+
# Custom attribute writer method with validation
|
696
|
+
# @param [Object] id Value to be assigned
|
697
|
+
def id=(id)
|
698
|
+
if id.nil?
|
699
|
+
fail ArgumentError, 'id cannot be nil'
|
700
|
+
end
|
701
|
+
|
702
|
+
if id.to_s.length < 1
|
703
|
+
fail ArgumentError, 'invalid value for "id", the character length must be great than or equal to 1.'
|
704
|
+
end
|
705
|
+
|
706
|
+
@id = id
|
707
|
+
end
|
708
|
+
|
709
|
+
# Custom attribute writer method with validation
|
710
|
+
# @param [Object] type Value to be assigned
|
711
|
+
def type=(type)
|
712
|
+
if type.nil?
|
713
|
+
fail ArgumentError, 'type cannot be nil'
|
714
|
+
end
|
715
|
+
|
716
|
+
if type.to_s.length < 1
|
717
|
+
fail ArgumentError, 'invalid value for "type", the character length must be great than or equal to 1.'
|
718
|
+
end
|
719
|
+
|
720
|
+
@type = type
|
721
|
+
end
|
722
|
+
|
723
|
+
# Custom attribute writer method with validation
|
724
|
+
# @param [Object] state_efile_status Value to be assigned
|
725
|
+
def state_efile_status=(state_efile_status)
|
726
|
+
@state_efile_status = state_efile_status
|
727
|
+
end
|
728
|
+
|
729
|
+
# Custom attribute writer method with validation
|
730
|
+
# @param [Object] validation_errors Value to be assigned
|
731
|
+
def validation_errors=(validation_errors)
|
732
|
+
@validation_errors = validation_errors
|
733
|
+
end
|
734
|
+
|
735
|
+
# Checks equality by comparing each attribute.
|
736
|
+
# @param [Object] Object to be compared
|
737
|
+
def ==(o)
|
738
|
+
return true if self.equal?(o)
|
739
|
+
self.class == o.class &&
|
740
|
+
unique_form_id == o.unique_form_id &&
|
741
|
+
no_tin == o.no_tin &&
|
742
|
+
recipient_date_of_birth == o.recipient_date_of_birth &&
|
743
|
+
recipient_giin == o.recipient_giin &&
|
744
|
+
recipient_foreign_tin == o.recipient_foreign_tin &&
|
745
|
+
lob_code == o.lob_code &&
|
746
|
+
income_code == o.income_code &&
|
747
|
+
gross_income == o.gross_income &&
|
748
|
+
withholding_indicator == o.withholding_indicator &&
|
749
|
+
tax_country_code == o.tax_country_code &&
|
750
|
+
exemption_code_chap3 == o.exemption_code_chap3 &&
|
751
|
+
exemption_code_chap4 == o.exemption_code_chap4 &&
|
752
|
+
tax_rate_chap3 == o.tax_rate_chap3 &&
|
753
|
+
withholding_allowance == o.withholding_allowance &&
|
754
|
+
federal_tax_withheld == o.federal_tax_withheld &&
|
755
|
+
tax_not_deposited_indicator == o.tax_not_deposited_indicator &&
|
756
|
+
academic_indicator == o.academic_indicator &&
|
757
|
+
tax_withheld_other_agents == o.tax_withheld_other_agents &&
|
758
|
+
amount_repaid == o.amount_repaid &&
|
759
|
+
tax_paid_agent == o.tax_paid_agent &&
|
760
|
+
chap3_status_code == o.chap3_status_code &&
|
761
|
+
chap4_status_code == o.chap4_status_code &&
|
762
|
+
primary_withholding_agent == o.primary_withholding_agent &&
|
763
|
+
intermediary_or_flow_through == o.intermediary_or_flow_through &&
|
764
|
+
id == o.id &&
|
765
|
+
type == o.type &&
|
766
|
+
issuer_id == o.issuer_id &&
|
767
|
+
issuer_reference_id == o.issuer_reference_id &&
|
768
|
+
issuer_tin == o.issuer_tin &&
|
769
|
+
tax_year == o.tax_year &&
|
770
|
+
federal_efile == o.federal_efile &&
|
771
|
+
federal_efile_status == o.federal_efile_status &&
|
772
|
+
state_efile == o.state_efile &&
|
773
|
+
state_efile_status == o.state_efile_status &&
|
774
|
+
postal_mail == o.postal_mail &&
|
775
|
+
postal_mail_status == o.postal_mail_status &&
|
776
|
+
tin_match == o.tin_match &&
|
777
|
+
tin_match_status == o.tin_match_status &&
|
778
|
+
address_verification == o.address_verification &&
|
779
|
+
address_verification_status == o.address_verification_status &&
|
780
|
+
reference_id == o.reference_id &&
|
781
|
+
email == o.email &&
|
782
|
+
tin_type == o.tin_type &&
|
783
|
+
tin == o.tin &&
|
784
|
+
recipient_name == o.recipient_name &&
|
785
|
+
recipient_second_name == o.recipient_second_name &&
|
786
|
+
address == o.address &&
|
787
|
+
address2 == o.address2 &&
|
788
|
+
city == o.city &&
|
789
|
+
state == o.state &&
|
790
|
+
zip == o.zip &&
|
791
|
+
foreign_province == o.foreign_province &&
|
792
|
+
country_code == o.country_code &&
|
793
|
+
validation_errors == o.validation_errors &&
|
794
|
+
created_at == o.created_at &&
|
795
|
+
updated_at == o.updated_at &&
|
796
|
+
state_and_local_withholding == o.state_and_local_withholding
|
797
|
+
end
|
798
|
+
|
799
|
+
# @see the `==` method
|
800
|
+
# @param [Object] Object to be compared
|
801
|
+
def eql?(o)
|
802
|
+
self == o
|
803
|
+
end
|
804
|
+
|
805
|
+
# Calculates hash code according to all attributes.
|
806
|
+
# @return [Integer] Hash code
|
807
|
+
def hash
|
808
|
+
[unique_form_id, no_tin, recipient_date_of_birth, recipient_giin, recipient_foreign_tin, lob_code, income_code, gross_income, withholding_indicator, tax_country_code, exemption_code_chap3, exemption_code_chap4, tax_rate_chap3, withholding_allowance, federal_tax_withheld, tax_not_deposited_indicator, academic_indicator, tax_withheld_other_agents, amount_repaid, tax_paid_agent, chap3_status_code, chap4_status_code, primary_withholding_agent, intermediary_or_flow_through, id, type, issuer_id, issuer_reference_id, issuer_tin, tax_year, federal_efile, federal_efile_status, state_efile, state_efile_status, postal_mail, postal_mail_status, tin_match, tin_match_status, address_verification, address_verification_status, reference_id, email, tin_type, tin, recipient_name, recipient_second_name, address, address2, city, state, zip, foreign_province, country_code, validation_errors, created_at, updated_at, state_and_local_withholding].hash
|
809
|
+
end
|
810
|
+
|
811
|
+
# Builds the object from hash
|
812
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
813
|
+
# @return [Object] Returns the model itself
|
814
|
+
def self.build_from_hash(attributes)
|
815
|
+
return nil unless attributes.is_a?(Hash)
|
816
|
+
attributes = attributes.transform_keys(&:to_sym)
|
817
|
+
transformed_hash = {}
|
818
|
+
openapi_types.each_pair do |key, type|
|
819
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
820
|
+
transformed_hash["#{key}"] = nil
|
821
|
+
elsif type =~ /\AArray<(.*)>/i
|
822
|
+
# check to ensure the input is an array given that the attribute
|
823
|
+
# is documented as an array but the input is not
|
824
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
825
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
826
|
+
end
|
827
|
+
elsif !attributes[attribute_map[key]].nil?
|
828
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
829
|
+
end
|
830
|
+
end
|
831
|
+
new(transformed_hash)
|
832
|
+
end
|
833
|
+
|
834
|
+
# Deserializes the data based on type
|
835
|
+
# @param string type Data type
|
836
|
+
# @param string value Value to be deserialized
|
837
|
+
# @return [Object] Deserialized data
|
838
|
+
def self._deserialize(type, value)
|
839
|
+
case type.to_sym
|
840
|
+
when :Time
|
841
|
+
Time.parse(value)
|
842
|
+
when :Date
|
843
|
+
Date.parse(value)
|
844
|
+
when :String
|
845
|
+
value.to_s
|
846
|
+
when :Integer
|
847
|
+
value.to_i
|
848
|
+
when :Float
|
849
|
+
value.to_f
|
850
|
+
when :Boolean
|
851
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
852
|
+
true
|
853
|
+
else
|
854
|
+
false
|
855
|
+
end
|
856
|
+
when :Object
|
857
|
+
# generic object (usually a Hash), return directly
|
858
|
+
value
|
859
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
860
|
+
inner_type = Regexp.last_match[:inner_type]
|
861
|
+
value.map { |v| _deserialize(inner_type, v) }
|
862
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
863
|
+
k_type = Regexp.last_match[:k_type]
|
864
|
+
v_type = Regexp.last_match[:v_type]
|
865
|
+
{}.tap do |hash|
|
866
|
+
value.each do |k, v|
|
867
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
868
|
+
end
|
869
|
+
end
|
870
|
+
else # model
|
871
|
+
# models (e.g. Pet) or oneOf
|
872
|
+
klass = AvalaraSdk::A1099::V2.const_get(type)
|
873
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
874
|
+
end
|
875
|
+
end
|
876
|
+
|
877
|
+
# Returns the string representation of the object
|
878
|
+
# @return [String] String presentation of the object
|
879
|
+
def to_s
|
880
|
+
to_hash.to_s
|
881
|
+
end
|
882
|
+
|
883
|
+
# to_body is an alias to to_hash (backward compatibility)
|
884
|
+
# @return [Hash] Returns the object in the form of hash
|
885
|
+
def to_body
|
886
|
+
to_hash
|
887
|
+
end
|
888
|
+
|
889
|
+
# Returns the object in the form of hash
|
890
|
+
# @return [Hash] Returns the object in the form of hash
|
891
|
+
def to_hash
|
892
|
+
hash = {}
|
893
|
+
self.class.attribute_map.each_pair do |attr, param|
|
894
|
+
value = self.send(attr)
|
895
|
+
if value.nil?
|
896
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
897
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
898
|
+
end
|
899
|
+
|
900
|
+
hash[param] = _to_hash(value)
|
901
|
+
end
|
902
|
+
hash
|
903
|
+
end
|
904
|
+
|
905
|
+
# Outputs non-array value in the form of hash
|
906
|
+
# For object, use to_hash. Otherwise, just return the value
|
907
|
+
# @param [Object] value Any valid value
|
908
|
+
# @return [Hash] Returns the value in the form of hash
|
909
|
+
def _to_hash(value)
|
910
|
+
if value.is_a?(Array)
|
911
|
+
value.compact.map { |v| _to_hash(v) }
|
912
|
+
elsif value.is_a?(Hash)
|
913
|
+
{}.tap do |hash|
|
914
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
915
|
+
end
|
916
|
+
elsif value.respond_to? :to_hash
|
917
|
+
value.to_hash
|
918
|
+
else
|
919
|
+
value
|
920
|
+
end
|
921
|
+
end
|
922
|
+
|
923
|
+
end
|
924
|
+
|
925
|
+
end
|