fdx-api-sdk-ruby 1.0.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 +7 -0
- data/LICENSE +28 -0
- data/README.md +125 -0
- data/lib/fdx_api/api_helper.rb +10 -0
- data/lib/fdx_api/client.rb +187 -0
- data/lib/fdx_api/configuration.rb +133 -0
- data/lib/fdx_api/controllers/account_information_controller.rb +135 -0
- data/lib/fdx_api/controllers/account_statements_controller.rb +132 -0
- data/lib/fdx_api/controllers/account_transactions_controller.rb +126 -0
- data/lib/fdx_api/controllers/base_controller.rb +65 -0
- data/lib/fdx_api/controllers/event_notifications_controller.rb +274 -0
- data/lib/fdx_api/controllers/fraud_notification_controller.rb +37 -0
- data/lib/fdx_api/controllers/internal_transfers_controller.rb +206 -0
- data/lib/fdx_api/controllers/meta_controller.rb +105 -0
- data/lib/fdx_api/controllers/money_movement_controller.rb +92 -0
- data/lib/fdx_api/controllers/payee_management_controller.rb +257 -0
- data/lib/fdx_api/controllers/payment_initiation_parties_controller.rb +439 -0
- data/lib/fdx_api/controllers/payments_controller.rb +280 -0
- data/lib/fdx_api/controllers/payroll_information_controller.rb +117 -0
- data/lib/fdx_api/controllers/personal_information_controller.rb +155 -0
- data/lib/fdx_api/controllers/recipients_controller.rb +197 -0
- data/lib/fdx_api/controllers/recurring_payments_controller.rb +339 -0
- data/lib/fdx_api/controllers/resource_information_controller.rb +121 -0
- data/lib/fdx_api/controllers/reward_program_categories_controller.rb +64 -0
- data/lib/fdx_api/controllers/reward_program_information_controller.rb +88 -0
- data/lib/fdx_api/controllers/submit_tax_forms_controller.rb +106 -0
- data/lib/fdx_api/controllers/tax_forms_controller.rb +190 -0
- data/lib/fdx_api/controllers/user_consent_controller.rb +125 -0
- data/lib/fdx_api/exceptions/api_exception.rb +21 -0
- data/lib/fdx_api/exceptions/error_exception.rb +65 -0
- data/lib/fdx_api/exceptions/payee_entity_error_exception.rb +48 -0
- data/lib/fdx_api/exceptions/payment_entity_error_exception.rb +160 -0
- data/lib/fdx_api/exceptions/recurring_payment_entity_error_exception.rb +140 -0
- data/lib/fdx_api/http/api_response.rb +19 -0
- data/lib/fdx_api/http/auth/bearer_auth.rb +43 -0
- data/lib/fdx_api/http/auth/tax_basic_auth.rb +50 -0
- data/lib/fdx_api/http/http_call_back.rb +10 -0
- data/lib/fdx_api/http/http_method_enum.rb +10 -0
- data/lib/fdx_api/http/http_request.rb +10 -0
- data/lib/fdx_api/http/http_response.rb +10 -0
- data/lib/fdx_api/http/proxy_settings.rb +13 -0
- data/lib/fdx_api/logging/configuration/api_logging_configuration.rb +114 -0
- data/lib/fdx_api/logging/sdk_logger.rb +17 -0
- data/lib/fdx_api/models/account_bill_pay_status.rb +32 -0
- data/lib/fdx_api/models/account_bill_pay_status2.rb +29 -0
- data/lib/fdx_api/models/account_category_type.rb +41 -0
- data/lib/fdx_api/models/account_contact_entity.rb +132 -0
- data/lib/fdx_api/models/account_contact_entity2.rb +142 -0
- data/lib/fdx_api/models/account_descriptor_entity.rb +253 -0
- data/lib/fdx_api/models/account_entity.rb +380 -0
- data/lib/fdx_api/models/account_holder_entity.rb +263 -0
- data/lib/fdx_api/models/account_holder_relationship.rb +79 -0
- data/lib/fdx_api/models/account_holder_relationship1.rb +79 -0
- data/lib/fdx_api/models/account_status.rb +41 -0
- data/lib/fdx_api/models/account_status2.rb +42 -0
- data/lib/fdx_api/models/account_type.rb +240 -0
- data/lib/fdx_api/models/accounts_entity.rb +109 -0
- data/lib/fdx_api/models/active_inactive_status.rb +23 -0
- data/lib/fdx_api/models/active_inactive_status2.rb +23 -0
- data/lib/fdx_api/models/address.rb +151 -0
- data/lib/fdx_api/models/an_array_of_statements.rb +105 -0
- data/lib/fdx_api/models/annuity_account_entity.rb +347 -0
- data/lib/fdx_api/models/array_of_account_payment_networks.rb +104 -0
- data/lib/fdx_api/models/asset_class.rb +38 -0
- data/lib/fdx_api/models/asset_class2.rb +38 -0
- data/lib/fdx_api/models/asset_transfer_network.rb +134 -0
- data/lib/fdx_api/models/asset_transfer_network_list.rb +85 -0
- data/lib/fdx_api/models/asset_transfer_type.rb +26 -0
- data/lib/fdx_api/models/asset_transfer_type2.rb +26 -0
- data/lib/fdx_api/models/availability_entity.rb +115 -0
- data/lib/fdx_api/models/availability_entity1.rb +115 -0
- data/lib/fdx_api/models/availability_list_entity.rb +85 -0
- data/lib/fdx_api/models/availability_status.rb +29 -0
- data/lib/fdx_api/models/availability_status1.rb +29 -0
- data/lib/fdx_api/models/availability_status3.rb +29 -0
- data/lib/fdx_api/models/balance_type.rb +25 -0
- data/lib/fdx_api/models/balance_type2.rb +24 -0
- data/lib/fdx_api/models/base_model.rb +110 -0
- data/lib/fdx_api/models/base_payroll_rate.rb +82 -0
- data/lib/fdx_api/models/base_payroll_rate1.rb +82 -0
- data/lib/fdx_api/models/basic_auth_credentials.rb +105 -0
- data/lib/fdx_api/models/basic_auth_credentials1.rb +105 -0
- data/lib/fdx_api/models/basic_auth_for_qr.rb +96 -0
- data/lib/fdx_api/models/bills_entity.rb +201 -0
- data/lib/fdx_api/models/branch_entity.rb +116 -0
- data/lib/fdx_api/models/branch_entity1.rb +126 -0
- data/lib/fdx_api/models/business_customer_entity.rb +136 -0
- data/lib/fdx_api/models/business_income_statement.rb +604 -0
- data/lib/fdx_api/models/business_name.rb +85 -0
- data/lib/fdx_api/models/business_or_consumer_type.rb +23 -0
- data/lib/fdx_api/models/business_or_consumer_type1.rb +23 -0
- data/lib/fdx_api/models/call_type.rb +29 -0
- data/lib/fdx_api/models/call_type2.rb +29 -0
- data/lib/fdx_api/models/capability_entity.rb +139 -0
- data/lib/fdx_api/models/card_art_entity.rb +91 -0
- data/lib/fdx_api/models/card_art_entity2.rb +101 -0
- data/lib/fdx_api/models/certification_metric_entity.rb +172 -0
- data/lib/fdx_api/models/certification_metrics_entity.rb +84 -0
- data/lib/fdx_api/models/code_and_amount.rb +85 -0
- data/lib/fdx_api/models/commercial_account_entity.rb +457 -0
- data/lib/fdx_api/models/commercial_balance_entity.rb +106 -0
- data/lib/fdx_api/models/commercial_code_entity.rb +91 -0
- data/lib/fdx_api/models/commercial_code_entity1.rb +96 -0
- data/lib/fdx_api/models/commercial_transaction_entity.rb +286 -0
- data/lib/fdx_api/models/compounding_period.rb +38 -0
- data/lib/fdx_api/models/compounding_period2.rb +38 -0
- data/lib/fdx_api/models/consent_duration_type.rb +26 -0
- data/lib/fdx_api/models/consent_grant_entity.rb +232 -0
- data/lib/fdx_api/models/consent_grant_resource_entity.rb +92 -0
- data/lib/fdx_api/models/consent_grant_status.rb +26 -0
- data/lib/fdx_api/models/consent_grant_status1.rb +26 -0
- data/lib/fdx_api/models/consent_grant_status3.rb +26 -0
- data/lib/fdx_api/models/consent_request_entity.rb +121 -0
- data/lib/fdx_api/models/consent_requested_resource_entity.rb +82 -0
- data/lib/fdx_api/models/consent_resource_type.rb +27 -0
- data/lib/fdx_api/models/consent_resource_type1.rb +26 -0
- data/lib/fdx_api/models/consent_resource_type3.rb +26 -0
- data/lib/fdx_api/models/consent_revocation_entity.rb +114 -0
- data/lib/fdx_api/models/consent_revocation_list_entity.rb +85 -0
- data/lib/fdx_api/models/consent_revocation_request_entity.rb +85 -0
- data/lib/fdx_api/models/consent_update_reason.rb +23 -0
- data/lib/fdx_api/models/consent_update_reason1.rb +23 -0
- data/lib/fdx_api/models/contact_preferences_type.rb +32 -0
- data/lib/fdx_api/models/contact_preferences_type2.rb +32 -0
- data/lib/fdx_api/models/contacts_entity.rb +113 -0
- data/lib/fdx_api/models/content_types.rb +38 -0
- data/lib/fdx_api/models/contribution_entity.rb +275 -0
- data/lib/fdx_api/models/coupon_mature_frequency.rb +32 -0
- data/lib/fdx_api/models/coupon_mature_frequency2.rb +32 -0
- data/lib/fdx_api/models/coverage_month.rb +56 -0
- data/lib/fdx_api/models/coverage_month1.rb +56 -0
- data/lib/fdx_api/models/coverage_month3.rb +56 -0
- data/lib/fdx_api/models/cryptocurrency_tax_statement_list.rb +239 -0
- data/lib/fdx_api/models/cryptocurrency_tax_statement_list1.rb +239 -0
- data/lib/fdx_api/models/currency_entity.rb +98 -0
- data/lib/fdx_api/models/currency_entity1.rb +108 -0
- data/lib/fdx_api/models/currency_entity2.rb +108 -0
- data/lib/fdx_api/models/currency_entity4.rb +108 -0
- data/lib/fdx_api/models/customer_entity.rb +241 -0
- data/lib/fdx_api/models/customer_name_entity.rb +134 -0
- data/lib/fdx_api/models/customer_name_entity1.rb +134 -0
- data/lib/fdx_api/models/customer_to_account_relationship_entity.rb +114 -0
- data/lib/fdx_api/models/customers_entity.rb +104 -0
- data/lib/fdx_api/models/data_cluster.rb +63 -0
- data/lib/fdx_api/models/date_and_amount.rb +95 -0
- data/lib/fdx_api/models/debit_credit_memo.rb +26 -0
- data/lib/fdx_api/models/debit_credit_memo2.rb +26 -0
- data/lib/fdx_api/models/debt_class.rb +29 -0
- data/lib/fdx_api/models/debt_class2.rb +29 -0
- data/lib/fdx_api/models/debt_security_entity.rb +209 -0
- data/lib/fdx_api/models/debt_type.rb +23 -0
- data/lib/fdx_api/models/debt_type2.rb +23 -0
- data/lib/fdx_api/models/delivery_address.rb +160 -0
- data/lib/fdx_api/models/delivery_address1.rb +150 -0
- data/lib/fdx_api/models/delivery_address_type.rb +29 -0
- data/lib/fdx_api/models/deposit_account_entity.rb +335 -0
- data/lib/fdx_api/models/deposit_transaction_entity.rb +223 -0
- data/lib/fdx_api/models/deposit_transaction_type.rb +59 -0
- data/lib/fdx_api/models/deposit_transaction_type2.rb +61 -0
- data/lib/fdx_api/models/description_and_amount.rb +85 -0
- data/lib/fdx_api/models/digital_wallet_account_entity.rb +316 -0
- data/lib/fdx_api/models/digital_wallet_transaction_entity.rb +213 -0
- data/lib/fdx_api/models/digital_wallet_transaction_type.rb +59 -0
- data/lib/fdx_api/models/digital_wallet_transaction_type2.rb +61 -0
- data/lib/fdx_api/models/direct_deposit_entity.rb +98 -0
- data/lib/fdx_api/models/document_status.rb +26 -0
- data/lib/fdx_api/models/document_status2.rb +26 -0
- data/lib/fdx_api/models/domicile_entity.rb +95 -0
- data/lib/fdx_api/models/domicile_entity1.rb +95 -0
- data/lib/fdx_api/models/electronic_address_entity.rb +87 -0
- data/lib/fdx_api/models/employee_entity.rb +175 -0
- data/lib/fdx_api/models/employee_entity1.rb +175 -0
- data/lib/fdx_api/models/employer_entity.rb +125 -0
- data/lib/fdx_api/models/employer_entity1.rb +125 -0
- data/lib/fdx_api/models/employment.rb +149 -0
- data/lib/fdx_api/models/employment1.rb +149 -0
- data/lib/fdx_api/models/employment_type.rb +36 -0
- data/lib/fdx_api/models/employment_type2.rb +36 -0
- data/lib/fdx_api/models/error1.rb +113 -0
- data/lib/fdx_api/models/expired_option_type.rb +23 -0
- data/lib/fdx_api/models/expired_option_type2.rb +24 -0
- data/lib/fdx_api/models/external_account_id_scheme_entity.rb +85 -0
- data/lib/fdx_api/models/external_financial_institution_id_scheme_entity.rb +85 -0
- data/lib/fdx_api/models/farm_income_statement.rb +628 -0
- data/lib/fdx_api/models/farm_rental_income_statement.rb +586 -0
- data/lib/fdx_api/models/fdx_api_actor_type.rb +24 -0
- data/lib/fdx_api/models/fdx_jwt_profile.rb +171 -0
- data/lib/fdx_api/models/fdx_oauth_token_introspection_response.rb +180 -0
- data/lib/fdx_api/models/fdx_resource_operation_id.rb +227 -0
- data/lib/fdx_api/models/fdx_resource_operation_id1.rb +227 -0
- data/lib/fdx_api/models/fdx_resource_operation_id3.rb +227 -0
- data/lib/fdx_api/models/fdx_version.rb +119 -0
- data/lib/fdx_api/models/fi_attribute_entity.rb +95 -0
- data/lib/fdx_api/models/fi_portion_entity.rb +95 -0
- data/lib/fdx_api/models/financial_institution_entity.rb +116 -0
- data/lib/fdx_api/models/financial_institution_entity2.rb +116 -0
- data/lib/fdx_api/models/form1041_k1.rb +572 -0
- data/lib/fdx_api/models/form1041_k11.rb +570 -0
- data/lib/fdx_api/models/form1042_s.rb +541 -0
- data/lib/fdx_api/models/form1042_s1.rb +539 -0
- data/lib/fdx_api/models/form1042_s_agent.rb +207 -0
- data/lib/fdx_api/models/form1042_s_agent1.rb +196 -0
- data/lib/fdx_api/models/form1042_s_agent2.rb +196 -0
- data/lib/fdx_api/models/form1042_s_agent3.rb +196 -0
- data/lib/fdx_api/models/form1042_s_agent4.rb +196 -0
- data/lib/fdx_api/models/form1042_s_recipient.rb +216 -0
- data/lib/fdx_api/models/form1042_s_recipient1.rb +216 -0
- data/lib/fdx_api/models/form1065_k1.rb +1177 -0
- data/lib/fdx_api/models/form1065_k11.rb +1176 -0
- data/lib/fdx_api/models/form1095_a.rb +364 -0
- data/lib/fdx_api/models/form1095_a1.rb +364 -0
- data/lib/fdx_api/models/form1095_b.rb +281 -0
- data/lib/fdx_api/models/form1095_b1.rb +280 -0
- data/lib/fdx_api/models/form1095_c.rb +294 -0
- data/lib/fdx_api/models/form1095_c1.rb +293 -0
- data/lib/fdx_api/models/form1097_btc.rb +314 -0
- data/lib/fdx_api/models/form1097_btc1.rb +313 -0
- data/lib/fdx_api/models/form1098.rb +388 -0
- data/lib/fdx_api/models/form10981.rb +387 -0
- data/lib/fdx_api/models/form1098_c.rb +421 -0
- data/lib/fdx_api/models/form1098_c1.rb +420 -0
- data/lib/fdx_api/models/form1098_e.rb +255 -0
- data/lib/fdx_api/models/form1098_e1.rb +254 -0
- data/lib/fdx_api/models/form1098_ma.rb +276 -0
- data/lib/fdx_api/models/form1098_ma1.rb +275 -0
- data/lib/fdx_api/models/form1098_q.rb +338 -0
- data/lib/fdx_api/models/form1098_q1.rb +337 -0
- data/lib/fdx_api/models/form1098_t.rb +338 -0
- data/lib/fdx_api/models/form1098_t1.rb +337 -0
- data/lib/fdx_api/models/form1099_a.rb +289 -0
- data/lib/fdx_api/models/form1099_a1.rb +288 -0
- data/lib/fdx_api/models/form1099_b.rb +368 -0
- data/lib/fdx_api/models/form1099_b1.rb +367 -0
- data/lib/fdx_api/models/form1099_c.rb +310 -0
- data/lib/fdx_api/models/form1099_c1.rb +309 -0
- data/lib/fdx_api/models/form1099_cap.rb +274 -0
- data/lib/fdx_api/models/form1099_cap1.rb +273 -0
- data/lib/fdx_api/models/form1099_consolidated_statement.rb +327 -0
- data/lib/fdx_api/models/form1099_consolidated_statement1.rb +325 -0
- data/lib/fdx_api/models/form1099_div.rb +538 -0
- data/lib/fdx_api/models/form1099_div1.rb +537 -0
- data/lib/fdx_api/models/form1099_g.rb +363 -0
- data/lib/fdx_api/models/form1099_g1.rb +362 -0
- data/lib/fdx_api/models/form1099_h.rb +263 -0
- data/lib/fdx_api/models/form1099_h1.rb +262 -0
- data/lib/fdx_api/models/form1099_int.rb +488 -0
- data/lib/fdx_api/models/form1099_int1.rb +487 -0
- data/lib/fdx_api/models/form1099_k.rb +413 -0
- data/lib/fdx_api/models/form1099_k1.rb +412 -0
- data/lib/fdx_api/models/form1099_ls.rb +274 -0
- data/lib/fdx_api/models/form1099_ls1.rb +273 -0
- data/lib/fdx_api/models/form1099_ltc.rb +339 -0
- data/lib/fdx_api/models/form1099_ltc1.rb +338 -0
- data/lib/fdx_api/models/form1099_misc.rb +438 -0
- data/lib/fdx_api/models/form1099_misc1.rb +437 -0
- data/lib/fdx_api/models/form1099_nec.rb +301 -0
- data/lib/fdx_api/models/form1099_nec1.rb +300 -0
- data/lib/fdx_api/models/form1099_oid.rb +431 -0
- data/lib/fdx_api/models/form1099_oid1.rb +430 -0
- data/lib/fdx_api/models/form1099_patr.rb +421 -0
- data/lib/fdx_api/models/form1099_patr1.rb +420 -0
- data/lib/fdx_api/models/form1099_q.rb +335 -0
- data/lib/fdx_api/models/form1099_q1.rb +334 -0
- data/lib/fdx_api/models/form1099_qa.rb +295 -0
- data/lib/fdx_api/models/form1099_qa1.rb +294 -0
- data/lib/fdx_api/models/form1099_r.rb +475 -0
- data/lib/fdx_api/models/form1099_r1.rb +474 -0
- data/lib/fdx_api/models/form1099_s.rb +306 -0
- data/lib/fdx_api/models/form1099_s1.rb +305 -0
- data/lib/fdx_api/models/form1099_sa.rb +306 -0
- data/lib/fdx_api/models/form1099_sa1.rb +305 -0
- data/lib/fdx_api/models/form1099_sb.rb +267 -0
- data/lib/fdx_api/models/form1099_sb1.rb +266 -0
- data/lib/fdx_api/models/form1120_sk1.rb +670 -0
- data/lib/fdx_api/models/form1120_sk11.rb +669 -0
- data/lib/fdx_api/models/form2439.rb +306 -0
- data/lib/fdx_api/models/form24391.rb +305 -0
- data/lib/fdx_api/models/form3921.rb +298 -0
- data/lib/fdx_api/models/form39211.rb +297 -0
- data/lib/fdx_api/models/form3922.rb +327 -0
- data/lib/fdx_api/models/form39221.rb +326 -0
- data/lib/fdx_api/models/form5498.rb +486 -0
- data/lib/fdx_api/models/form54981.rb +485 -0
- data/lib/fdx_api/models/form5498_esa.rb +258 -0
- data/lib/fdx_api/models/form5498_esa1.rb +257 -0
- data/lib/fdx_api/models/form5498_qa.rb +311 -0
- data/lib/fdx_api/models/form5498_qa1.rb +310 -0
- data/lib/fdx_api/models/form5498_sa.rb +321 -0
- data/lib/fdx_api/models/form5498_sa1.rb +320 -0
- data/lib/fdx_api/models/form_w2.rb +459 -0
- data/lib/fdx_api/models/form_w21.rb +458 -0
- data/lib/fdx_api/models/form_w22.rb +458 -0
- data/lib/fdx_api/models/form_w24.rb +458 -0
- data/lib/fdx_api/models/form_w2_c.rb +276 -0
- data/lib/fdx_api/models/form_w2_c2.rb +275 -0
- data/lib/fdx_api/models/form_w2_g.rb +354 -0
- data/lib/fdx_api/models/form_w2_g2.rb +353 -0
- data/lib/fdx_api/models/gain_or_loss_from_cryptocurrency_transaction.rb +173 -0
- data/lib/fdx_api/models/generic_account_identification_entity.rb +107 -0
- data/lib/fdx_api/models/generic_financial_institution_id_entity.rb +107 -0
- data/lib/fdx_api/models/government_issued_id_type.rb +23 -0
- data/lib/fdx_api/models/government_issued_id_type2.rb +23 -0
- data/lib/fdx_api/models/government_issued_party_identification_entity.rb +118 -0
- data/lib/fdx_api/models/hateoas_link.rb +119 -0
- data/lib/fdx_api/models/health_insurance_coverage.rb +115 -0
- data/lib/fdx_api/models/health_insurance_covered_individual.rb +118 -0
- data/lib/fdx_api/models/health_insurance_marketplace_covered_individual.rb +119 -0
- data/lib/fdx_api/models/held_in_account.rb +29 -0
- data/lib/fdx_api/models/held_in_account2.rb +29 -0
- data/lib/fdx_api/models/holding_entity.rb +448 -0
- data/lib/fdx_api/models/holding_sub_type.rb +23 -0
- data/lib/fdx_api/models/holding_sub_type2.rb +23 -0
- data/lib/fdx_api/models/holding_type.rb +51 -0
- data/lib/fdx_api/models/holding_type2.rb +41 -0
- data/lib/fdx_api/models/http_action_type.rb +32 -0
- data/lib/fdx_api/models/iban2007_identifier_entity.rb +86 -0
- data/lib/fdx_api/models/income.rb +124 -0
- data/lib/fdx_api/models/income_type.rb +26 -0
- data/lib/fdx_api/models/income_type2.rb +27 -0
- data/lib/fdx_api/models/incoming_and_outgoing_transfer_limits.rb +85 -0
- data/lib/fdx_api/models/incoming_and_outgoing_transfer_limits2.rb +85 -0
- data/lib/fdx_api/models/individual_name.rb +115 -0
- data/lib/fdx_api/models/industry_classification_system.rb +38 -0
- data/lib/fdx_api/models/industry_code.rb +95 -0
- data/lib/fdx_api/models/insurance_account_entity.rb +326 -0
- data/lib/fdx_api/models/insurance_transaction_entity.rb +201 -0
- data/lib/fdx_api/models/insurance_transaction_type.rb +29 -0
- data/lib/fdx_api/models/interest_rate_type.rb +23 -0
- data/lib/fdx_api/models/interest_rate_type2.rb +23 -0
- data/lib/fdx_api/models/intermediary.rb +139 -0
- data/lib/fdx_api/models/investment401_k_source_type.rb +38 -0
- data/lib/fdx_api/models/investment401_k_source_type1.rb +40 -0
- data/lib/fdx_api/models/investment401_k_source_type2.rb +39 -0
- data/lib/fdx_api/models/investment401_k_source_type4.rb +39 -0
- data/lib/fdx_api/models/investment_account_entity.rb +548 -0
- data/lib/fdx_api/models/investment_balance_entity.rb +138 -0
- data/lib/fdx_api/models/investment_balance_type.rb +23 -0
- data/lib/fdx_api/models/investment_balance_type2.rb +23 -0
- data/lib/fdx_api/models/investment_loan_entity.rb +261 -0
- data/lib/fdx_api/models/investment_sale_type.rb +38 -0
- data/lib/fdx_api/models/investment_transaction_entity.rb +669 -0
- data/lib/fdx_api/models/investment_transaction_type.rb +155 -0
- data/lib/fdx_api/models/investment_transaction_type2.rb +161 -0
- data/lib/fdx_api/models/investment_transfer_action_direction.rb +23 -0
- data/lib/fdx_api/models/investment_transfer_action_direction2.rb +23 -0
- data/lib/fdx_api/models/iso3166_country_code.rb +764 -0
- data/lib/fdx_api/models/iso3166_country_code1.rb +764 -0
- data/lib/fdx_api/models/iso3166_country_code2.rb +764 -0
- data/lib/fdx_api/models/iso4217_currency_code.rb +560 -0
- data/lib/fdx_api/models/iso4217_currency_code1.rb +560 -0
- data/lib/fdx_api/models/iso4217_currency_code2.rb +560 -0
- data/lib/fdx_api/models/iso93622014_business_identifier_code_entity.rb +93 -0
- data/lib/fdx_api/models/iso93622022_business_identifier_code_entity.rb +91 -0
- data/lib/fdx_api/models/line_item_entity.rb +156 -0
- data/lib/fdx_api/models/line_of_credit_account_entity.rb +474 -0
- data/lib/fdx_api/models/line_of_credit_transaction_entity.rb +223 -0
- data/lib/fdx_api/models/line_of_credit_transaction_type.rb +38 -0
- data/lib/fdx_api/models/line_of_credit_transaction_type2.rb +38 -0
- data/lib/fdx_api/models/loan_account_entity.rb +432 -0
- data/lib/fdx_api/models/loan_payment_frequency.rb +47 -0
- data/lib/fdx_api/models/loan_payment_frequency2.rb +48 -0
- data/lib/fdx_api/models/loan_transaction_entity.rb +212 -0
- data/lib/fdx_api/models/loan_transaction_type.rb +49 -0
- data/lib/fdx_api/models/loan_transaction_type2.rb +41 -0
- data/lib/fdx_api/models/local_tax_withholding.rb +96 -0
- data/lib/fdx_api/models/local_tax_withholding1.rb +96 -0
- data/lib/fdx_api/models/merchant_entity.rb +159 -0
- data/lib/fdx_api/models/merchant_entity1.rb +159 -0
- data/lib/fdx_api/models/merchant_for_update_entity.rb +118 -0
- data/lib/fdx_api/models/merchant_for_update_entity1.rb +118 -0
- data/lib/fdx_api/models/message_format.rb +20 -0
- data/lib/fdx_api/models/message_format2.rb +20 -0
- data/lib/fdx_api/models/monetary_amount.rb +84 -0
- data/lib/fdx_api/models/monetary_amount1.rb +84 -0
- data/lib/fdx_api/models/monetary_amount2.rb +84 -0
- data/lib/fdx_api/models/monetary_amount3.rb +84 -0
- data/lib/fdx_api/models/monetary_amount4.rb +84 -0
- data/lib/fdx_api/models/monetary_amount5.rb +84 -0
- data/lib/fdx_api/models/monetary_amount6.rb +84 -0
- data/lib/fdx_api/models/month_abbreviation.rb +53 -0
- data/lib/fdx_api/models/month_abbreviation1.rb +53 -0
- data/lib/fdx_api/models/month_and_amount.rb +85 -0
- data/lib/fdx_api/models/mutual_fund_security_entity.rb +161 -0
- data/lib/fdx_api/models/mutual_fund_type.rb +26 -0
- data/lib/fdx_api/models/mutual_fund_type2.rb +26 -0
- data/lib/fdx_api/models/name_address_and_phone.rb +171 -0
- data/lib/fdx_api/models/name_address_and_phone1.rb +171 -0
- data/lib/fdx_api/models/name_and_address.rb +159 -0
- data/lib/fdx_api/models/notification_category.rb +32 -0
- data/lib/fdx_api/models/notification_category1.rb +32 -0
- data/lib/fdx_api/models/notification_entity.rb +169 -0
- data/lib/fdx_api/models/notification_payload_entity.rb +95 -0
- data/lib/fdx_api/models/notification_payload_entity2.rb +95 -0
- data/lib/fdx_api/models/notification_payload_id_type.rb +32 -0
- data/lib/fdx_api/models/notification_payload_id_type2.rb +32 -0
- data/lib/fdx_api/models/notification_priority.rb +26 -0
- data/lib/fdx_api/models/notification_priority2.rb +26 -0
- data/lib/fdx_api/models/notification_severity.rb +32 -0
- data/lib/fdx_api/models/notification_severity2.rb +32 -0
- data/lib/fdx_api/models/notification_subscription_entity.rb +123 -0
- data/lib/fdx_api/models/notification_type.rb +38 -0
- data/lib/fdx_api/models/notifications_entity.rb +104 -0
- data/lib/fdx_api/models/occurrence_based_limits_for_a_payment_network.rb +95 -0
- data/lib/fdx_api/models/occurrence_based_limits_for_a_payment_network2.rb +94 -0
- data/lib/fdx_api/models/offer_of_health_insurance_coverage.rb +119 -0
- data/lib/fdx_api/models/open_order_entity.rb +231 -0
- data/lib/fdx_api/models/operation_entity.rb +150 -0
- data/lib/fdx_api/models/option_security_entity.rb +135 -0
- data/lib/fdx_api/models/option_type.rb +23 -0
- data/lib/fdx_api/models/option_type2.rb +23 -0
- data/lib/fdx_api/models/order_duration.rb +26 -0
- data/lib/fdx_api/models/order_duration2.rb +26 -0
- data/lib/fdx_api/models/order_type.rb +41 -0
- data/lib/fdx_api/models/order_type2.rb +42 -0
- data/lib/fdx_api/models/organization_name_entity.rb +87 -0
- data/lib/fdx_api/models/other_monetary_amount.rb +94 -0
- data/lib/fdx_api/models/other_security_entity.rb +94 -0
- data/lib/fdx_api/models/page_metadata.rb +108 -0
- data/lib/fdx_api/models/page_metadata_links.rb +95 -0
- data/lib/fdx_api/models/page_metadata_links1.rb +85 -0
- data/lib/fdx_api/models/party_entity.rb +139 -0
- data/lib/fdx_api/models/party_group_entity.rb +86 -0
- data/lib/fdx_api/models/party_status.rb +33 -0
- data/lib/fdx_api/models/party_status1.rb +29 -0
- data/lib/fdx_api/models/party_status3.rb +29 -0
- data/lib/fdx_api/models/party_type.rb +35 -0
- data/lib/fdx_api/models/party_type1.rb +35 -0
- data/lib/fdx_api/models/party_type2.rb +35 -0
- data/lib/fdx_api/models/payee_entity.rb +75 -0
- data/lib/fdx_api/models/payee_for_update_entity.rb +74 -0
- data/lib/fdx_api/models/payee_for_update_entity1.rb +74 -0
- data/lib/fdx_api/models/payees_entity.rb +113 -0
- data/lib/fdx_api/models/payment_amounts.rb +133 -0
- data/lib/fdx_api/models/payment_amounts1.rb +92 -0
- data/lib/fdx_api/models/payment_amounts2.rb +133 -0
- data/lib/fdx_api/models/payment_amounts3.rb +92 -0
- data/lib/fdx_api/models/payment_delivery_address_entity.rb +99 -0
- data/lib/fdx_api/models/payment_details_entity.rb +142 -0
- data/lib/fdx_api/models/payment_entity.rb +262 -0
- data/lib/fdx_api/models/payment_for_update_entity.rb +113 -0
- data/lib/fdx_api/models/payment_for_update_entity1.rb +113 -0
- data/lib/fdx_api/models/payment_for_update_entity2.rb +113 -0
- data/lib/fdx_api/models/payment_frequency.rb +38 -0
- data/lib/fdx_api/models/payment_frequency1.rb +38 -0
- data/lib/fdx_api/models/payment_frequency3.rb +38 -0
- data/lib/fdx_api/models/payment_generic_account_entity.rb +138 -0
- data/lib/fdx_api/models/payment_generic_account_entity1.rb +138 -0
- data/lib/fdx_api/models/payment_generic_account_entity2.rb +138 -0
- data/lib/fdx_api/models/payment_initiation_parties_entity.rb +108 -0
- data/lib/fdx_api/models/payment_initiation_party_contact_method_entity.rb +97 -0
- data/lib/fdx_api/models/payment_initiation_party_create_response_entity.rb +85 -0
- data/lib/fdx_api/models/payment_initiation_party_entity.rb +292 -0
- data/lib/fdx_api/models/payment_initiation_party_method_create_response_entity.rb +78 -0
- data/lib/fdx_api/models/payment_initiation_party_name_entity.rb +98 -0
- data/lib/fdx_api/models/payment_initiation_party_name_entity1.rb +97 -0
- data/lib/fdx_api/models/payment_initiation_party_name_entity3.rb +97 -0
- data/lib/fdx_api/models/payment_initiation_party_summary_entity.rb +90 -0
- data/lib/fdx_api/models/payment_initiation_party_to_payment_method_entity.rb +130 -0
- data/lib/fdx_api/models/payment_method_credit_account_entity.rb +111 -0
- data/lib/fdx_api/models/payment_method_debit_account_entity.rb +100 -0
- data/lib/fdx_api/models/payment_method_entity.rb +139 -0
- data/lib/fdx_api/models/payment_method_entity2.rb +149 -0
- data/lib/fdx_api/models/payment_method_id.rb +96 -0
- data/lib/fdx_api/models/payment_method_system_code.rb +90 -0
- data/lib/fdx_api/models/payment_method_system_proprietary.rb +85 -0
- data/lib/fdx_api/models/payment_network_identifier_type.rb +23 -0
- data/lib/fdx_api/models/payment_network_identifier_type1.rb +23 -0
- data/lib/fdx_api/models/payment_network_identifier_type3.rb +23 -0
- data/lib/fdx_api/models/payment_network_supported_by_account.rb +161 -0
- data/lib/fdx_api/models/payment_network_type.rb +43 -0
- data/lib/fdx_api/models/payment_network_type2.rb +39 -0
- data/lib/fdx_api/models/payment_status.rb +41 -0
- data/lib/fdx_api/models/payment_status1.rb +35 -0
- data/lib/fdx_api/models/payment_status3.rb +35 -0
- data/lib/fdx_api/models/payments_entity.rb +113 -0
- data/lib/fdx_api/models/payout_mode.rb +41 -0
- data/lib/fdx_api/models/payout_mode2.rb +38 -0
- data/lib/fdx_api/models/payout_type.rb +26 -0
- data/lib/fdx_api/models/payout_type2.rb +23 -0
- data/lib/fdx_api/models/payroll_frequency_type.rb +50 -0
- data/lib/fdx_api/models/payroll_frequency_type2.rb +50 -0
- data/lib/fdx_api/models/payroll_rate_type.rb +29 -0
- data/lib/fdx_api/models/payroll_rate_type2.rb +29 -0
- data/lib/fdx_api/models/payroll_report_entity.rb +162 -0
- data/lib/fdx_api/models/payroll_report_list_entity.rb +103 -0
- data/lib/fdx_api/models/payroll_report_summary_entity.rb +160 -0
- data/lib/fdx_api/models/payroll_report_type.rb +24 -0
- data/lib/fdx_api/models/payroll_report_type1.rb +23 -0
- data/lib/fdx_api/models/pension_source_entity.rb +136 -0
- data/lib/fdx_api/models/period_certain_type.rb +36 -0
- data/lib/fdx_api/models/period_certain_type2.rb +33 -0
- data/lib/fdx_api/models/planned_availability_entity.rb +122 -0
- data/lib/fdx_api/models/policy_premium_term_type.rb +23 -0
- data/lib/fdx_api/models/policy_premium_term_type2.rb +23 -0
- data/lib/fdx_api/models/policy_product_type.rb +26 -0
- data/lib/fdx_api/models/policy_product_type2.rb +23 -0
- data/lib/fdx_api/models/policy_status.rb +52 -0
- data/lib/fdx_api/models/policy_status2.rb +41 -0
- data/lib/fdx_api/models/portion_entity.rb +95 -0
- data/lib/fdx_api/models/position_type.rb +23 -0
- data/lib/fdx_api/models/position_type1.rb +23 -0
- data/lib/fdx_api/models/proprietary_account_id_scheme_entity.rb +88 -0
- data/lib/fdx_api/models/proprietary_financial_institution_id_scheme_entity.rb +86 -0
- data/lib/fdx_api/models/recipient_provider.rb +293 -0
- data/lib/fdx_api/models/recipient_record_at_ecosystem_registry.rb +223 -0
- data/lib/fdx_api/models/recipient_records_at_ecosystem_registry.rb +105 -0
- data/lib/fdx_api/models/recipient_request.rb +214 -0
- data/lib/fdx_api/models/recurring_payment_duration_entity.rb +86 -0
- data/lib/fdx_api/models/recurring_payment_duration_entity2.rb +86 -0
- data/lib/fdx_api/models/recurring_payment_duration_type.rb +24 -0
- data/lib/fdx_api/models/recurring_payment_duration_type2.rb +23 -0
- data/lib/fdx_api/models/recurring_payment_entity.rb +231 -0
- data/lib/fdx_api/models/recurring_payment_for_update_entity.rb +133 -0
- data/lib/fdx_api/models/recurring_payment_for_update_entity1.rb +132 -0
- data/lib/fdx_api/models/recurring_payment_for_update_entity2.rb +132 -0
- data/lib/fdx_api/models/recurring_payment_frequency.rb +46 -0
- data/lib/fdx_api/models/recurring_payment_frequency2.rb +44 -0
- data/lib/fdx_api/models/recurring_payment_status.rb +33 -0
- data/lib/fdx_api/models/recurring_payment_status2.rb +29 -0
- data/lib/fdx_api/models/recurring_payments_entity.rb +113 -0
- data/lib/fdx_api/models/registry.rb +30 -0
- data/lib/fdx_api/models/registry_reference.rb +102 -0
- data/lib/fdx_api/models/rental_income_statement.rb +424 -0
- data/lib/fdx_api/models/resource_entity.rb +114 -0
- data/lib/fdx_api/models/resource_list_entity.rb +104 -0
- data/lib/fdx_api/models/resource_status.rb +26 -0
- data/lib/fdx_api/models/resource_status2.rb +26 -0
- data/lib/fdx_api/models/result_type.rb +26 -0
- data/lib/fdx_api/models/reward_balance_entity.rb +144 -0
- data/lib/fdx_api/models/reward_categories_entity.rb +104 -0
- data/lib/fdx_api/models/reward_category_entity.rb +136 -0
- data/lib/fdx_api/models/reward_program_entity.rb +136 -0
- data/lib/fdx_api/models/reward_program_membership_entity.rb +147 -0
- data/lib/fdx_api/models/reward_programs_entity.rb +104 -0
- data/lib/fdx_api/models/reward_type.rb +30 -0
- data/lib/fdx_api/models/reward_type2.rb +26 -0
- data/lib/fdx_api/models/royalty_income_statement.rb +424 -0
- data/lib/fdx_api/models/sale_proceeds_type.rb +23 -0
- data/lib/fdx_api/models/sale_proceeds_type2.rb +23 -0
- data/lib/fdx_api/models/secured.rb +23 -0
- data/lib/fdx_api/models/secured2.rb +23 -0
- data/lib/fdx_api/models/security_category.rb +35 -0
- data/lib/fdx_api/models/security_detail_irs_form1099_b.rb +390 -0
- data/lib/fdx_api/models/security_entity.rb +96 -0
- data/lib/fdx_api/models/security_id_entity.rb +95 -0
- data/lib/fdx_api/models/security_id_type.rb +60 -0
- data/lib/fdx_api/models/security_id_type1.rb +50 -0
- data/lib/fdx_api/models/security_type.rb +51 -0
- data/lib/fdx_api/models/security_type2.rb +41 -0
- data/lib/fdx_api/models/state_and_local_tax_withholding.rb +95 -0
- data/lib/fdx_api/models/state_and_local_tax_withholding1.rb +95 -0
- data/lib/fdx_api/models/state_and_local_tax_withholding2.rb +95 -0
- data/lib/fdx_api/models/state_code.rb +203 -0
- data/lib/fdx_api/models/state_tax_withholding.rb +95 -0
- data/lib/fdx_api/models/state_tax_withholding2.rb +95 -0
- data/lib/fdx_api/models/statement_entity.rb +135 -0
- data/lib/fdx_api/models/stock_security_entity.rb +147 -0
- data/lib/fdx_api/models/stock_type.rb +29 -0
- data/lib/fdx_api/models/stock_type2.rb +29 -0
- data/lib/fdx_api/models/sub_account_type.rb +29 -0
- data/lib/fdx_api/models/sub_account_type1.rb +29 -0
- data/lib/fdx_api/models/sub_account_type2.rb +29 -0
- data/lib/fdx_api/models/sub_account_type4.rb +29 -0
- data/lib/fdx_api/models/supplemental_status.rb +44 -0
- data/lib/fdx_api/models/supplemental_status2.rb +44 -0
- data/lib/fdx_api/models/suspected_fraud_incident_entity.rb +133 -0
- data/lib/fdx_api/models/sweep_security_entity.rb +135 -0
- data/lib/fdx_api/models/synchronizable_array_entity.rb +96 -0
- data/lib/fdx_api/models/synchronizable_array_links_entity.rb +95 -0
- data/lib/fdx_api/models/synchronizable_array_links_entity2.rb +95 -0
- data/lib/fdx_api/models/tax.rb +218 -0
- data/lib/fdx_api/models/tax_data.rb +653 -0
- data/lib/fdx_api/models/tax_data_for_qr.rb +675 -0
- data/lib/fdx_api/models/tax_form_attribute.rb +106 -0
- data/lib/fdx_api/models/tax_lot_entity.rb +140 -0
- data/lib/fdx_api/models/tax_party.rb +138 -0
- data/lib/fdx_api/models/tax_party1.rb +140 -0
- data/lib/fdx_api/models/tax_party2.rb +138 -0
- data/lib/fdx_api/models/tax_party3.rb +138 -0
- data/lib/fdx_api/models/tax_party4.rb +139 -0
- data/lib/fdx_api/models/tax_party6.rb +140 -0
- data/lib/fdx_api/models/tax_party7.rb +140 -0
- data/lib/fdx_api/models/tax_party8.rb +139 -0
- data/lib/fdx_api/models/tax_party_type.rb +23 -0
- data/lib/fdx_api/models/tax_party_type2.rb +24 -0
- data/lib/fdx_api/models/tax_refund_direct_deposit.rb +108 -0
- data/lib/fdx_api/models/tax_refund_direct_deposit2.rb +108 -0
- data/lib/fdx_api/models/tax_statement.rb +174 -0
- data/lib/fdx_api/models/tax_statement1.rb +175 -0
- data/lib/fdx_api/models/tax_statement2.rb +175 -0
- data/lib/fdx_api/models/tax_statement4.rb +175 -0
- data/lib/fdx_api/models/tax_statement6.rb +175 -0
- data/lib/fdx_api/models/tax_statement_list.rb +85 -0
- data/lib/fdx_api/models/telephone_number.rb +105 -0
- data/lib/fdx_api/models/telephone_number_plus_extension.rb +105 -0
- data/lib/fdx_api/models/telephone_number_plus_extension1.rb +105 -0
- data/lib/fdx_api/models/telephone_number_plus_extension2.rb +105 -0
- data/lib/fdx_api/models/telephone_number_type.rb +29 -0
- data/lib/fdx_api/models/time_and_occurrence_based_transfer_limits.rb +115 -0
- data/lib/fdx_api/models/time_and_occurrence_based_transfer_limits1.rb +115 -0
- data/lib/fdx_api/models/time_and_occurrence_based_transfer_limits3.rb +115 -0
- data/lib/fdx_api/models/timeframe_based_limits_for_a_payment_network.rb +139 -0
- data/lib/fdx_api/models/timeframe_based_limits_for_a_payment_network1.rb +138 -0
- data/lib/fdx_api/models/timeframe_based_limits_for_a_payment_network2.rb +138 -0
- data/lib/fdx_api/models/timeframe_based_limits_for_a_payment_network3.rb +138 -0
- data/lib/fdx_api/models/timeframe_based_limits_for_a_payment_network5.rb +138 -0
- data/lib/fdx_api/models/transaction.rb +357 -0
- data/lib/fdx_api/models/transaction_reason.rb +26 -0
- data/lib/fdx_api/models/transaction_reason2.rb +27 -0
- data/lib/fdx_api/models/transaction_reward_entity.rb +97 -0
- data/lib/fdx_api/models/transaction_reward_entity2.rb +107 -0
- data/lib/fdx_api/models/transaction_status.rb +29 -0
- data/lib/fdx_api/models/transaction_status2.rb +29 -0
- data/lib/fdx_api/models/transactions_entity.rb +109 -0
- data/lib/fdx_api/models/transfer_entity.rb +169 -0
- data/lib/fdx_api/models/transfer_for_create_entity.rb +129 -0
- data/lib/fdx_api/models/transfer_for_create_entity1.rb +129 -0
- data/lib/fdx_api/models/transfers_entity.rb +113 -0
- data/lib/fdx_api/models/treasury_management_type.rb +30 -0
- data/lib/fdx_api/models/type_data_type.rb +26 -0
- data/lib/fdx_api/models/type_data_type2.rb +24 -0
- data/lib/fdx_api/models/type_form_type.rb +176 -0
- data/lib/fdx_api/models/type_form_type1.rb +176 -0
- data/lib/fdx_api/models/unit_type.rb +23 -0
- data/lib/fdx_api/models/unit_type1.rb +23 -0
- data/lib/fdx_api/models/unit_type3.rb +23 -0
- data/lib/fdx_api/models/updates_metadata_entity.rb +77 -0
- data/lib/fdx_api/models/updates_metadata_entity2.rb +77 -0
- data/lib/fdx_api/models/vesting_entity.rb +186 -0
- data/lib/fdx_api/utilities/date_time_helper.rb +11 -0
- data/lib/fdx_api/utilities/file_wrapper.rb +28 -0
- data/lib/fdx_api/utilities/union_type_lookup.rb +240 -0
- data/lib/fdx_api.rb +661 -0
- metadata +717 -0
|
@@ -0,0 +1,628 @@
|
|
|
1
|
+
# fdx_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module FdxApi
|
|
7
|
+
# Farm Income Statement for IRS Form 1040 Schedule F
|
|
8
|
+
class FarmIncomeStatement < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# Year for which taxes are being paid
|
|
13
|
+
# @return [Integer]
|
|
14
|
+
attr_accessor :tax_year
|
|
15
|
+
|
|
16
|
+
# True to indicate this is a corrected tax form
|
|
17
|
+
# @return [TrueClass | FalseClass]
|
|
18
|
+
attr_accessor :corrected
|
|
19
|
+
|
|
20
|
+
# Long-term persistent identity of the source account. Not the account
|
|
21
|
+
# number
|
|
22
|
+
# @return [String]
|
|
23
|
+
attr_accessor :account_id
|
|
24
|
+
|
|
25
|
+
# Long-term persistent id for this tax form. Depending upon the data
|
|
26
|
+
# provider, this may be the same id as the enclosing tax statement id, or
|
|
27
|
+
# this may be a different id, or this id may be omitted.
|
|
28
|
+
# @return [String]
|
|
29
|
+
attr_accessor :tax_form_id
|
|
30
|
+
|
|
31
|
+
# Date of production or delivery of the tax form
|
|
32
|
+
# @return [Date]
|
|
33
|
+
attr_accessor :tax_form_date
|
|
34
|
+
|
|
35
|
+
# Additional explanation text or content about this tax form
|
|
36
|
+
# @return [String]
|
|
37
|
+
attr_accessor :additional_information
|
|
38
|
+
|
|
39
|
+
# Enumerated name of the tax form entity e.g. "TaxW2"
|
|
40
|
+
# @return [TypeFormType1]
|
|
41
|
+
attr_accessor :tax_form_type
|
|
42
|
+
|
|
43
|
+
# Issuer's name, address, phone, and TIN. Issuer data need only be
|
|
44
|
+
# transmitted on enclosing TaxStatement, if it is the same on all its
|
|
45
|
+
# included tax forms.
|
|
46
|
+
# @return [TaxParty8]
|
|
47
|
+
attr_accessor :issuer
|
|
48
|
+
|
|
49
|
+
# Recipient's name, address, phone, and TIN. Recipient data need only be
|
|
50
|
+
# transmitted on enclosing TaxStatement, if it is the same on all its
|
|
51
|
+
# included tax forms.
|
|
52
|
+
# @return [TaxParty1]
|
|
53
|
+
attr_accessor :recipient
|
|
54
|
+
|
|
55
|
+
# Additional attributes for this tax form when defined fields are not
|
|
56
|
+
# available. Some specific additional attributes already defined by
|
|
57
|
+
# providers: Fields required by [IRS
|
|
58
|
+
# FIRE](https://www.irs.gov/e-file-providers/filing-information-returns-elec
|
|
59
|
+
# tronically-fire): Name Control, Type of Identification Number (EIN, SSN,
|
|
60
|
+
# ITIN, ATIN). (ATIN is tax ID number for pending adoptions.) Tax form
|
|
61
|
+
# provider field for taxpayer notification: Recipient Email Address.
|
|
62
|
+
# @return [Array[TaxFormAttribute]]
|
|
63
|
+
attr_accessor :attributes
|
|
64
|
+
|
|
65
|
+
# Present if an error was encountered while retrieving this form
|
|
66
|
+
# @return [Error1]
|
|
67
|
+
attr_accessor :error
|
|
68
|
+
|
|
69
|
+
# Links to retrieve this form as data or image, or to invoke other APIs
|
|
70
|
+
# @return [Array[HateoasLink]]
|
|
71
|
+
attr_accessor :links
|
|
72
|
+
|
|
73
|
+
# Box A, Principal crop or activity
|
|
74
|
+
# @return [String]
|
|
75
|
+
attr_accessor :crop_or_activity
|
|
76
|
+
|
|
77
|
+
# Box 1a, Sales of livestock and other resale items
|
|
78
|
+
# @return [Float]
|
|
79
|
+
attr_accessor :sales
|
|
80
|
+
|
|
81
|
+
# Box 1b, Cost or other basis of livestock or other items
|
|
82
|
+
# @return [Float]
|
|
83
|
+
attr_accessor :cost_of_items_sold
|
|
84
|
+
|
|
85
|
+
# Box 2, Sales of livestock, produce, grains, and other products you raised
|
|
86
|
+
# @return [Float]
|
|
87
|
+
attr_accessor :sales_of_raised
|
|
88
|
+
|
|
89
|
+
# Box 3a, Cooperative distributions
|
|
90
|
+
# @return [Float]
|
|
91
|
+
attr_accessor :coop_distributions
|
|
92
|
+
|
|
93
|
+
# Box 4a, Agricultural program payments
|
|
94
|
+
# @return [Float]
|
|
95
|
+
attr_accessor :ag_program_payments
|
|
96
|
+
|
|
97
|
+
# Box 5a, Commodity Credit Corporation (CCC) loans reported under election
|
|
98
|
+
# @return [Float]
|
|
99
|
+
attr_accessor :ccc_loans
|
|
100
|
+
|
|
101
|
+
# Box 6a, Crop insurance proceeds and federal crop disaster payments
|
|
102
|
+
# @return [Float]
|
|
103
|
+
attr_accessor :crop_insurance_proceeds
|
|
104
|
+
|
|
105
|
+
# Box 7, Custom hire (machine work) income
|
|
106
|
+
# @return [Float]
|
|
107
|
+
attr_accessor :custom_hire_income
|
|
108
|
+
|
|
109
|
+
# Box 8, Other income
|
|
110
|
+
# @return [Array[DescriptionAndAmount]]
|
|
111
|
+
attr_accessor :other_income
|
|
112
|
+
|
|
113
|
+
# Box 10, Car and truck expenses
|
|
114
|
+
# @return [Float]
|
|
115
|
+
attr_accessor :car_and_truck
|
|
116
|
+
|
|
117
|
+
# Box 11, Chemicals
|
|
118
|
+
# @return [Float]
|
|
119
|
+
attr_accessor :chemicals
|
|
120
|
+
|
|
121
|
+
# Box 12, Conservation expenses
|
|
122
|
+
# @return [Float]
|
|
123
|
+
attr_accessor :conservation
|
|
124
|
+
|
|
125
|
+
# Box 13, Custom hire (machine work)
|
|
126
|
+
# @return [Float]
|
|
127
|
+
attr_accessor :custom_hire_expenses
|
|
128
|
+
|
|
129
|
+
# Box 14, Depreciation
|
|
130
|
+
# @return [Float]
|
|
131
|
+
attr_accessor :depreciation
|
|
132
|
+
|
|
133
|
+
# Box 15, Employee benefit programs
|
|
134
|
+
# @return [Float]
|
|
135
|
+
attr_accessor :employee_benefit_programs
|
|
136
|
+
|
|
137
|
+
# Box 16, Feed
|
|
138
|
+
# @return [Float]
|
|
139
|
+
attr_accessor :feed
|
|
140
|
+
|
|
141
|
+
# Box 17, Fertilizers and lime
|
|
142
|
+
# @return [Float]
|
|
143
|
+
attr_accessor :fertilizers
|
|
144
|
+
|
|
145
|
+
# Box 18, Freight and trucking
|
|
146
|
+
# @return [Float]
|
|
147
|
+
attr_accessor :freight
|
|
148
|
+
|
|
149
|
+
# Box 19, Gasoline, fuel, and oil
|
|
150
|
+
# @return [Float]
|
|
151
|
+
attr_accessor :fuel
|
|
152
|
+
|
|
153
|
+
# Box 20, Insurance (other than health)
|
|
154
|
+
# @return [Float]
|
|
155
|
+
attr_accessor :insurance
|
|
156
|
+
|
|
157
|
+
# Box 21a, Mortgage Interest
|
|
158
|
+
# @return [Float]
|
|
159
|
+
attr_accessor :mortgage_interest
|
|
160
|
+
|
|
161
|
+
# Box 21b, Other interest
|
|
162
|
+
# @return [Float]
|
|
163
|
+
attr_accessor :other_interest
|
|
164
|
+
|
|
165
|
+
# Box 22, Labor hired
|
|
166
|
+
# @return [Float]
|
|
167
|
+
attr_accessor :labor_hired
|
|
168
|
+
|
|
169
|
+
# Box 23, Pension and profit-sharing plans
|
|
170
|
+
# @return [Float]
|
|
171
|
+
attr_accessor :pension
|
|
172
|
+
|
|
173
|
+
# Box 24a, Rent or lease: Vehicles, machinery, equipment
|
|
174
|
+
# @return [Float]
|
|
175
|
+
attr_accessor :equipment_rent
|
|
176
|
+
|
|
177
|
+
# Box 24b, Rent or lease: Other
|
|
178
|
+
# @return [Float]
|
|
179
|
+
attr_accessor :other_rent
|
|
180
|
+
|
|
181
|
+
# Box 25, Repairs and maintenance
|
|
182
|
+
# @return [Float]
|
|
183
|
+
attr_accessor :repairs
|
|
184
|
+
|
|
185
|
+
# Box 26, Seeds and plants
|
|
186
|
+
# @return [Float]
|
|
187
|
+
attr_accessor :seeds
|
|
188
|
+
|
|
189
|
+
# Box 27, Storage and warehousing
|
|
190
|
+
# @return [Float]
|
|
191
|
+
attr_accessor :storage
|
|
192
|
+
|
|
193
|
+
# Box 28, Supplies
|
|
194
|
+
# @return [Float]
|
|
195
|
+
attr_accessor :supplies
|
|
196
|
+
|
|
197
|
+
# Box 29, Taxes
|
|
198
|
+
# @return [Float]
|
|
199
|
+
attr_accessor :taxes
|
|
200
|
+
|
|
201
|
+
# Box 30, Utilities
|
|
202
|
+
# @return [Float]
|
|
203
|
+
attr_accessor :utilities
|
|
204
|
+
|
|
205
|
+
# Box 31, Veterinary, breeding, and medicine
|
|
206
|
+
# @return [Float]
|
|
207
|
+
attr_accessor :veterinary
|
|
208
|
+
|
|
209
|
+
# Box 32, Other expenses
|
|
210
|
+
# @return [Array[DescriptionAndAmount]]
|
|
211
|
+
attr_accessor :other_expenses
|
|
212
|
+
|
|
213
|
+
# Capital expenditures, for use in calculating Depreciation
|
|
214
|
+
# @return [Array[DateAndAmount]]
|
|
215
|
+
attr_accessor :capital_expenditures
|
|
216
|
+
|
|
217
|
+
# A mapping from model property names to API property names.
|
|
218
|
+
def self.names
|
|
219
|
+
@_hash = {} if @_hash.nil?
|
|
220
|
+
@_hash['tax_year'] = 'taxYear'
|
|
221
|
+
@_hash['corrected'] = 'corrected'
|
|
222
|
+
@_hash['account_id'] = 'accountId'
|
|
223
|
+
@_hash['tax_form_id'] = 'taxFormId'
|
|
224
|
+
@_hash['tax_form_date'] = 'taxFormDate'
|
|
225
|
+
@_hash['additional_information'] = 'additionalInformation'
|
|
226
|
+
@_hash['tax_form_type'] = 'taxFormType'
|
|
227
|
+
@_hash['issuer'] = 'issuer'
|
|
228
|
+
@_hash['recipient'] = 'recipient'
|
|
229
|
+
@_hash['attributes'] = 'attributes'
|
|
230
|
+
@_hash['error'] = 'error'
|
|
231
|
+
@_hash['links'] = 'links'
|
|
232
|
+
@_hash['crop_or_activity'] = 'cropOrActivity'
|
|
233
|
+
@_hash['sales'] = 'sales'
|
|
234
|
+
@_hash['cost_of_items_sold'] = 'costOfItemsSold'
|
|
235
|
+
@_hash['sales_of_raised'] = 'salesOfRaised'
|
|
236
|
+
@_hash['coop_distributions'] = 'coopDistributions'
|
|
237
|
+
@_hash['ag_program_payments'] = 'agProgramPayments'
|
|
238
|
+
@_hash['ccc_loans'] = 'cccLoans'
|
|
239
|
+
@_hash['crop_insurance_proceeds'] = 'cropInsuranceProceeds'
|
|
240
|
+
@_hash['custom_hire_income'] = 'customHireIncome'
|
|
241
|
+
@_hash['other_income'] = 'otherIncome'
|
|
242
|
+
@_hash['car_and_truck'] = 'carAndTruck'
|
|
243
|
+
@_hash['chemicals'] = 'chemicals'
|
|
244
|
+
@_hash['conservation'] = 'conservation'
|
|
245
|
+
@_hash['custom_hire_expenses'] = 'customHireExpenses'
|
|
246
|
+
@_hash['depreciation'] = 'depreciation'
|
|
247
|
+
@_hash['employee_benefit_programs'] = 'employeeBenefitPrograms'
|
|
248
|
+
@_hash['feed'] = 'feed'
|
|
249
|
+
@_hash['fertilizers'] = 'fertilizers'
|
|
250
|
+
@_hash['freight'] = 'freight'
|
|
251
|
+
@_hash['fuel'] = 'fuel'
|
|
252
|
+
@_hash['insurance'] = 'insurance'
|
|
253
|
+
@_hash['mortgage_interest'] = 'mortgageInterest'
|
|
254
|
+
@_hash['other_interest'] = 'otherInterest'
|
|
255
|
+
@_hash['labor_hired'] = 'laborHired'
|
|
256
|
+
@_hash['pension'] = 'pension'
|
|
257
|
+
@_hash['equipment_rent'] = 'equipmentRent'
|
|
258
|
+
@_hash['other_rent'] = 'otherRent'
|
|
259
|
+
@_hash['repairs'] = 'repairs'
|
|
260
|
+
@_hash['seeds'] = 'seeds'
|
|
261
|
+
@_hash['storage'] = 'storage'
|
|
262
|
+
@_hash['supplies'] = 'supplies'
|
|
263
|
+
@_hash['taxes'] = 'taxes'
|
|
264
|
+
@_hash['utilities'] = 'utilities'
|
|
265
|
+
@_hash['veterinary'] = 'veterinary'
|
|
266
|
+
@_hash['other_expenses'] = 'otherExpenses'
|
|
267
|
+
@_hash['capital_expenditures'] = 'capitalExpenditures'
|
|
268
|
+
@_hash
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
# An array for optional fields
|
|
272
|
+
def self.optionals
|
|
273
|
+
%w[
|
|
274
|
+
tax_year
|
|
275
|
+
corrected
|
|
276
|
+
account_id
|
|
277
|
+
tax_form_id
|
|
278
|
+
tax_form_date
|
|
279
|
+
additional_information
|
|
280
|
+
tax_form_type
|
|
281
|
+
issuer
|
|
282
|
+
recipient
|
|
283
|
+
attributes
|
|
284
|
+
error
|
|
285
|
+
links
|
|
286
|
+
crop_or_activity
|
|
287
|
+
sales
|
|
288
|
+
cost_of_items_sold
|
|
289
|
+
sales_of_raised
|
|
290
|
+
coop_distributions
|
|
291
|
+
ag_program_payments
|
|
292
|
+
ccc_loans
|
|
293
|
+
crop_insurance_proceeds
|
|
294
|
+
custom_hire_income
|
|
295
|
+
other_income
|
|
296
|
+
car_and_truck
|
|
297
|
+
chemicals
|
|
298
|
+
conservation
|
|
299
|
+
custom_hire_expenses
|
|
300
|
+
depreciation
|
|
301
|
+
employee_benefit_programs
|
|
302
|
+
feed
|
|
303
|
+
fertilizers
|
|
304
|
+
freight
|
|
305
|
+
fuel
|
|
306
|
+
insurance
|
|
307
|
+
mortgage_interest
|
|
308
|
+
other_interest
|
|
309
|
+
labor_hired
|
|
310
|
+
pension
|
|
311
|
+
equipment_rent
|
|
312
|
+
other_rent
|
|
313
|
+
repairs
|
|
314
|
+
seeds
|
|
315
|
+
storage
|
|
316
|
+
supplies
|
|
317
|
+
taxes
|
|
318
|
+
utilities
|
|
319
|
+
veterinary
|
|
320
|
+
other_expenses
|
|
321
|
+
capital_expenditures
|
|
322
|
+
]
|
|
323
|
+
end
|
|
324
|
+
|
|
325
|
+
# An array for nullable fields
|
|
326
|
+
def self.nullables
|
|
327
|
+
[]
|
|
328
|
+
end
|
|
329
|
+
|
|
330
|
+
def initialize(tax_year: SKIP, corrected: SKIP, account_id: SKIP,
|
|
331
|
+
tax_form_id: SKIP, tax_form_date: SKIP,
|
|
332
|
+
additional_information: SKIP, tax_form_type: SKIP,
|
|
333
|
+
issuer: SKIP, recipient: SKIP, attributes: SKIP, error: SKIP,
|
|
334
|
+
links: SKIP, crop_or_activity: SKIP, sales: SKIP,
|
|
335
|
+
cost_of_items_sold: SKIP, sales_of_raised: SKIP,
|
|
336
|
+
coop_distributions: SKIP, ag_program_payments: SKIP,
|
|
337
|
+
ccc_loans: SKIP, crop_insurance_proceeds: SKIP,
|
|
338
|
+
custom_hire_income: SKIP, other_income: SKIP,
|
|
339
|
+
car_and_truck: SKIP, chemicals: SKIP, conservation: SKIP,
|
|
340
|
+
custom_hire_expenses: SKIP, depreciation: SKIP,
|
|
341
|
+
employee_benefit_programs: SKIP, feed: SKIP,
|
|
342
|
+
fertilizers: SKIP, freight: SKIP, fuel: SKIP,
|
|
343
|
+
insurance: SKIP, mortgage_interest: SKIP,
|
|
344
|
+
other_interest: SKIP, labor_hired: SKIP, pension: SKIP,
|
|
345
|
+
equipment_rent: SKIP, other_rent: SKIP, repairs: SKIP,
|
|
346
|
+
seeds: SKIP, storage: SKIP, supplies: SKIP, taxes: SKIP,
|
|
347
|
+
utilities: SKIP, veterinary: SKIP, other_expenses: SKIP,
|
|
348
|
+
capital_expenditures: SKIP, additional_properties: nil)
|
|
349
|
+
# Add additional model properties to the instance
|
|
350
|
+
additional_properties = {} if additional_properties.nil?
|
|
351
|
+
|
|
352
|
+
@tax_year = tax_year unless tax_year == SKIP
|
|
353
|
+
@corrected = corrected unless corrected == SKIP
|
|
354
|
+
@account_id = account_id unless account_id == SKIP
|
|
355
|
+
@tax_form_id = tax_form_id unless tax_form_id == SKIP
|
|
356
|
+
@tax_form_date = tax_form_date unless tax_form_date == SKIP
|
|
357
|
+
@additional_information = additional_information unless additional_information == SKIP
|
|
358
|
+
@tax_form_type = tax_form_type unless tax_form_type == SKIP
|
|
359
|
+
@issuer = issuer unless issuer == SKIP
|
|
360
|
+
@recipient = recipient unless recipient == SKIP
|
|
361
|
+
@attributes = attributes unless attributes == SKIP
|
|
362
|
+
@error = error unless error == SKIP
|
|
363
|
+
@links = links unless links == SKIP
|
|
364
|
+
@crop_or_activity = crop_or_activity unless crop_or_activity == SKIP
|
|
365
|
+
@sales = sales unless sales == SKIP
|
|
366
|
+
@cost_of_items_sold = cost_of_items_sold unless cost_of_items_sold == SKIP
|
|
367
|
+
@sales_of_raised = sales_of_raised unless sales_of_raised == SKIP
|
|
368
|
+
@coop_distributions = coop_distributions unless coop_distributions == SKIP
|
|
369
|
+
@ag_program_payments = ag_program_payments unless ag_program_payments == SKIP
|
|
370
|
+
@ccc_loans = ccc_loans unless ccc_loans == SKIP
|
|
371
|
+
@crop_insurance_proceeds = crop_insurance_proceeds unless crop_insurance_proceeds == SKIP
|
|
372
|
+
@custom_hire_income = custom_hire_income unless custom_hire_income == SKIP
|
|
373
|
+
@other_income = other_income unless other_income == SKIP
|
|
374
|
+
@car_and_truck = car_and_truck unless car_and_truck == SKIP
|
|
375
|
+
@chemicals = chemicals unless chemicals == SKIP
|
|
376
|
+
@conservation = conservation unless conservation == SKIP
|
|
377
|
+
@custom_hire_expenses = custom_hire_expenses unless custom_hire_expenses == SKIP
|
|
378
|
+
@depreciation = depreciation unless depreciation == SKIP
|
|
379
|
+
unless employee_benefit_programs == SKIP
|
|
380
|
+
@employee_benefit_programs =
|
|
381
|
+
employee_benefit_programs
|
|
382
|
+
end
|
|
383
|
+
@feed = feed unless feed == SKIP
|
|
384
|
+
@fertilizers = fertilizers unless fertilizers == SKIP
|
|
385
|
+
@freight = freight unless freight == SKIP
|
|
386
|
+
@fuel = fuel unless fuel == SKIP
|
|
387
|
+
@insurance = insurance unless insurance == SKIP
|
|
388
|
+
@mortgage_interest = mortgage_interest unless mortgage_interest == SKIP
|
|
389
|
+
@other_interest = other_interest unless other_interest == SKIP
|
|
390
|
+
@labor_hired = labor_hired unless labor_hired == SKIP
|
|
391
|
+
@pension = pension unless pension == SKIP
|
|
392
|
+
@equipment_rent = equipment_rent unless equipment_rent == SKIP
|
|
393
|
+
@other_rent = other_rent unless other_rent == SKIP
|
|
394
|
+
@repairs = repairs unless repairs == SKIP
|
|
395
|
+
@seeds = seeds unless seeds == SKIP
|
|
396
|
+
@storage = storage unless storage == SKIP
|
|
397
|
+
@supplies = supplies unless supplies == SKIP
|
|
398
|
+
@taxes = taxes unless taxes == SKIP
|
|
399
|
+
@utilities = utilities unless utilities == SKIP
|
|
400
|
+
@veterinary = veterinary unless veterinary == SKIP
|
|
401
|
+
@other_expenses = other_expenses unless other_expenses == SKIP
|
|
402
|
+
@capital_expenditures = capital_expenditures unless capital_expenditures == SKIP
|
|
403
|
+
@additional_properties = additional_properties
|
|
404
|
+
end
|
|
405
|
+
|
|
406
|
+
# Creates an instance of the object from a hash.
|
|
407
|
+
def self.from_hash(hash)
|
|
408
|
+
return nil unless hash
|
|
409
|
+
|
|
410
|
+
# Extract variables from the hash.
|
|
411
|
+
tax_year = hash.key?('taxYear') ? hash['taxYear'] : SKIP
|
|
412
|
+
corrected = hash.key?('corrected') ? hash['corrected'] : SKIP
|
|
413
|
+
account_id = hash.key?('accountId') ? hash['accountId'] : SKIP
|
|
414
|
+
tax_form_id = hash.key?('taxFormId') ? hash['taxFormId'] : SKIP
|
|
415
|
+
tax_form_date = hash.key?('taxFormDate') ? hash['taxFormDate'] : SKIP
|
|
416
|
+
additional_information =
|
|
417
|
+
hash.key?('additionalInformation') ? hash['additionalInformation'] : SKIP
|
|
418
|
+
tax_form_type = hash.key?('taxFormType') ? hash['taxFormType'] : SKIP
|
|
419
|
+
issuer = TaxParty8.from_hash(hash['issuer']) if hash['issuer']
|
|
420
|
+
recipient = TaxParty1.from_hash(hash['recipient']) if hash['recipient']
|
|
421
|
+
# Parameter is an array, so we need to iterate through it
|
|
422
|
+
attributes = nil
|
|
423
|
+
unless hash['attributes'].nil?
|
|
424
|
+
attributes = []
|
|
425
|
+
hash['attributes'].each do |structure|
|
|
426
|
+
attributes << (TaxFormAttribute.from_hash(structure) if structure)
|
|
427
|
+
end
|
|
428
|
+
end
|
|
429
|
+
|
|
430
|
+
attributes = SKIP unless hash.key?('attributes')
|
|
431
|
+
error = Error1.from_hash(hash['error']) if hash['error']
|
|
432
|
+
# Parameter is an array, so we need to iterate through it
|
|
433
|
+
links = nil
|
|
434
|
+
unless hash['links'].nil?
|
|
435
|
+
links = []
|
|
436
|
+
hash['links'].each do |structure|
|
|
437
|
+
links << (HateoasLink.from_hash(structure) if structure)
|
|
438
|
+
end
|
|
439
|
+
end
|
|
440
|
+
|
|
441
|
+
links = SKIP unless hash.key?('links')
|
|
442
|
+
crop_or_activity =
|
|
443
|
+
hash.key?('cropOrActivity') ? hash['cropOrActivity'] : SKIP
|
|
444
|
+
sales = hash.key?('sales') ? hash['sales'] : SKIP
|
|
445
|
+
cost_of_items_sold =
|
|
446
|
+
hash.key?('costOfItemsSold') ? hash['costOfItemsSold'] : SKIP
|
|
447
|
+
sales_of_raised =
|
|
448
|
+
hash.key?('salesOfRaised') ? hash['salesOfRaised'] : SKIP
|
|
449
|
+
coop_distributions =
|
|
450
|
+
hash.key?('coopDistributions') ? hash['coopDistributions'] : SKIP
|
|
451
|
+
ag_program_payments =
|
|
452
|
+
hash.key?('agProgramPayments') ? hash['agProgramPayments'] : SKIP
|
|
453
|
+
ccc_loans = hash.key?('cccLoans') ? hash['cccLoans'] : SKIP
|
|
454
|
+
crop_insurance_proceeds =
|
|
455
|
+
hash.key?('cropInsuranceProceeds') ? hash['cropInsuranceProceeds'] : SKIP
|
|
456
|
+
custom_hire_income =
|
|
457
|
+
hash.key?('customHireIncome') ? hash['customHireIncome'] : SKIP
|
|
458
|
+
# Parameter is an array, so we need to iterate through it
|
|
459
|
+
other_income = nil
|
|
460
|
+
unless hash['otherIncome'].nil?
|
|
461
|
+
other_income = []
|
|
462
|
+
hash['otherIncome'].each do |structure|
|
|
463
|
+
other_income << (DescriptionAndAmount.from_hash(structure) if structure)
|
|
464
|
+
end
|
|
465
|
+
end
|
|
466
|
+
|
|
467
|
+
other_income = SKIP unless hash.key?('otherIncome')
|
|
468
|
+
car_and_truck = hash.key?('carAndTruck') ? hash['carAndTruck'] : SKIP
|
|
469
|
+
chemicals = hash.key?('chemicals') ? hash['chemicals'] : SKIP
|
|
470
|
+
conservation = hash.key?('conservation') ? hash['conservation'] : SKIP
|
|
471
|
+
custom_hire_expenses =
|
|
472
|
+
hash.key?('customHireExpenses') ? hash['customHireExpenses'] : SKIP
|
|
473
|
+
depreciation = hash.key?('depreciation') ? hash['depreciation'] : SKIP
|
|
474
|
+
employee_benefit_programs =
|
|
475
|
+
hash.key?('employeeBenefitPrograms') ? hash['employeeBenefitPrograms'] : SKIP
|
|
476
|
+
feed = hash.key?('feed') ? hash['feed'] : SKIP
|
|
477
|
+
fertilizers = hash.key?('fertilizers') ? hash['fertilizers'] : SKIP
|
|
478
|
+
freight = hash.key?('freight') ? hash['freight'] : SKIP
|
|
479
|
+
fuel = hash.key?('fuel') ? hash['fuel'] : SKIP
|
|
480
|
+
insurance = hash.key?('insurance') ? hash['insurance'] : SKIP
|
|
481
|
+
mortgage_interest =
|
|
482
|
+
hash.key?('mortgageInterest') ? hash['mortgageInterest'] : SKIP
|
|
483
|
+
other_interest = hash.key?('otherInterest') ? hash['otherInterest'] : SKIP
|
|
484
|
+
labor_hired = hash.key?('laborHired') ? hash['laborHired'] : SKIP
|
|
485
|
+
pension = hash.key?('pension') ? hash['pension'] : SKIP
|
|
486
|
+
equipment_rent = hash.key?('equipmentRent') ? hash['equipmentRent'] : SKIP
|
|
487
|
+
other_rent = hash.key?('otherRent') ? hash['otherRent'] : SKIP
|
|
488
|
+
repairs = hash.key?('repairs') ? hash['repairs'] : SKIP
|
|
489
|
+
seeds = hash.key?('seeds') ? hash['seeds'] : SKIP
|
|
490
|
+
storage = hash.key?('storage') ? hash['storage'] : SKIP
|
|
491
|
+
supplies = hash.key?('supplies') ? hash['supplies'] : SKIP
|
|
492
|
+
taxes = hash.key?('taxes') ? hash['taxes'] : SKIP
|
|
493
|
+
utilities = hash.key?('utilities') ? hash['utilities'] : SKIP
|
|
494
|
+
veterinary = hash.key?('veterinary') ? hash['veterinary'] : SKIP
|
|
495
|
+
# Parameter is an array, so we need to iterate through it
|
|
496
|
+
other_expenses = nil
|
|
497
|
+
unless hash['otherExpenses'].nil?
|
|
498
|
+
other_expenses = []
|
|
499
|
+
hash['otherExpenses'].each do |structure|
|
|
500
|
+
other_expenses << (DescriptionAndAmount.from_hash(structure) if structure)
|
|
501
|
+
end
|
|
502
|
+
end
|
|
503
|
+
|
|
504
|
+
other_expenses = SKIP unless hash.key?('otherExpenses')
|
|
505
|
+
# Parameter is an array, so we need to iterate through it
|
|
506
|
+
capital_expenditures = nil
|
|
507
|
+
unless hash['capitalExpenditures'].nil?
|
|
508
|
+
capital_expenditures = []
|
|
509
|
+
hash['capitalExpenditures'].each do |structure|
|
|
510
|
+
capital_expenditures << (DateAndAmount.from_hash(structure) if structure)
|
|
511
|
+
end
|
|
512
|
+
end
|
|
513
|
+
|
|
514
|
+
capital_expenditures = SKIP unless hash.key?('capitalExpenditures')
|
|
515
|
+
|
|
516
|
+
# Create a new hash for additional properties, removing known properties.
|
|
517
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
518
|
+
|
|
519
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
520
|
+
new_hash, proc { |value| value }
|
|
521
|
+
)
|
|
522
|
+
|
|
523
|
+
# Create object from extracted values.
|
|
524
|
+
FarmIncomeStatement.new(tax_year: tax_year,
|
|
525
|
+
corrected: corrected,
|
|
526
|
+
account_id: account_id,
|
|
527
|
+
tax_form_id: tax_form_id,
|
|
528
|
+
tax_form_date: tax_form_date,
|
|
529
|
+
additional_information: additional_information,
|
|
530
|
+
tax_form_type: tax_form_type,
|
|
531
|
+
issuer: issuer,
|
|
532
|
+
recipient: recipient,
|
|
533
|
+
attributes: attributes,
|
|
534
|
+
error: error,
|
|
535
|
+
links: links,
|
|
536
|
+
crop_or_activity: crop_or_activity,
|
|
537
|
+
sales: sales,
|
|
538
|
+
cost_of_items_sold: cost_of_items_sold,
|
|
539
|
+
sales_of_raised: sales_of_raised,
|
|
540
|
+
coop_distributions: coop_distributions,
|
|
541
|
+
ag_program_payments: ag_program_payments,
|
|
542
|
+
ccc_loans: ccc_loans,
|
|
543
|
+
crop_insurance_proceeds: crop_insurance_proceeds,
|
|
544
|
+
custom_hire_income: custom_hire_income,
|
|
545
|
+
other_income: other_income,
|
|
546
|
+
car_and_truck: car_and_truck,
|
|
547
|
+
chemicals: chemicals,
|
|
548
|
+
conservation: conservation,
|
|
549
|
+
custom_hire_expenses: custom_hire_expenses,
|
|
550
|
+
depreciation: depreciation,
|
|
551
|
+
employee_benefit_programs: employee_benefit_programs,
|
|
552
|
+
feed: feed,
|
|
553
|
+
fertilizers: fertilizers,
|
|
554
|
+
freight: freight,
|
|
555
|
+
fuel: fuel,
|
|
556
|
+
insurance: insurance,
|
|
557
|
+
mortgage_interest: mortgage_interest,
|
|
558
|
+
other_interest: other_interest,
|
|
559
|
+
labor_hired: labor_hired,
|
|
560
|
+
pension: pension,
|
|
561
|
+
equipment_rent: equipment_rent,
|
|
562
|
+
other_rent: other_rent,
|
|
563
|
+
repairs: repairs,
|
|
564
|
+
seeds: seeds,
|
|
565
|
+
storage: storage,
|
|
566
|
+
supplies: supplies,
|
|
567
|
+
taxes: taxes,
|
|
568
|
+
utilities: utilities,
|
|
569
|
+
veterinary: veterinary,
|
|
570
|
+
other_expenses: other_expenses,
|
|
571
|
+
capital_expenditures: capital_expenditures,
|
|
572
|
+
additional_properties: additional_properties)
|
|
573
|
+
end
|
|
574
|
+
|
|
575
|
+
# Provides a human-readable string representation of the object.
|
|
576
|
+
def to_s
|
|
577
|
+
class_name = self.class.name.split('::').last
|
|
578
|
+
"<#{class_name} tax_year: #{@tax_year}, corrected: #{@corrected}, account_id:"\
|
|
579
|
+
" #{@account_id}, tax_form_id: #{@tax_form_id}, tax_form_date: #{@tax_form_date},"\
|
|
580
|
+
" additional_information: #{@additional_information}, tax_form_type: #{@tax_form_type},"\
|
|
581
|
+
" issuer: #{@issuer}, recipient: #{@recipient}, attributes: #{@attributes}, error:"\
|
|
582
|
+
" #{@error}, links: #{@links}, crop_or_activity: #{@crop_or_activity}, sales: #{@sales},"\
|
|
583
|
+
" cost_of_items_sold: #{@cost_of_items_sold}, sales_of_raised: #{@sales_of_raised},"\
|
|
584
|
+
" coop_distributions: #{@coop_distributions}, ag_program_payments: #{@ag_program_payments},"\
|
|
585
|
+
" ccc_loans: #{@ccc_loans}, crop_insurance_proceeds: #{@crop_insurance_proceeds},"\
|
|
586
|
+
" custom_hire_income: #{@custom_hire_income}, other_income: #{@other_income}, car_and_truck:"\
|
|
587
|
+
" #{@car_and_truck}, chemicals: #{@chemicals}, conservation: #{@conservation},"\
|
|
588
|
+
" custom_hire_expenses: #{@custom_hire_expenses}, depreciation: #{@depreciation},"\
|
|
589
|
+
" employee_benefit_programs: #{@employee_benefit_programs}, feed: #{@feed}, fertilizers:"\
|
|
590
|
+
" #{@fertilizers}, freight: #{@freight}, fuel: #{@fuel}, insurance: #{@insurance},"\
|
|
591
|
+
" mortgage_interest: #{@mortgage_interest}, other_interest: #{@other_interest}, labor_hired:"\
|
|
592
|
+
" #{@labor_hired}, pension: #{@pension}, equipment_rent: #{@equipment_rent}, other_rent:"\
|
|
593
|
+
" #{@other_rent}, repairs: #{@repairs}, seeds: #{@seeds}, storage: #{@storage}, supplies:"\
|
|
594
|
+
" #{@supplies}, taxes: #{@taxes}, utilities: #{@utilities}, veterinary: #{@veterinary},"\
|
|
595
|
+
" other_expenses: #{@other_expenses}, capital_expenditures: #{@capital_expenditures},"\
|
|
596
|
+
" additional_properties: #{@additional_properties}>"
|
|
597
|
+
end
|
|
598
|
+
|
|
599
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
600
|
+
def inspect
|
|
601
|
+
class_name = self.class.name.split('::').last
|
|
602
|
+
"<#{class_name} tax_year: #{@tax_year.inspect}, corrected: #{@corrected.inspect},"\
|
|
603
|
+
" account_id: #{@account_id.inspect}, tax_form_id: #{@tax_form_id.inspect}, tax_form_date:"\
|
|
604
|
+
" #{@tax_form_date.inspect}, additional_information: #{@additional_information.inspect},"\
|
|
605
|
+
" tax_form_type: #{@tax_form_type.inspect}, issuer: #{@issuer.inspect}, recipient:"\
|
|
606
|
+
" #{@recipient.inspect}, attributes: #{@attributes.inspect}, error: #{@error.inspect},"\
|
|
607
|
+
" links: #{@links.inspect}, crop_or_activity: #{@crop_or_activity.inspect}, sales:"\
|
|
608
|
+
" #{@sales.inspect}, cost_of_items_sold: #{@cost_of_items_sold.inspect}, sales_of_raised:"\
|
|
609
|
+
" #{@sales_of_raised.inspect}, coop_distributions: #{@coop_distributions.inspect},"\
|
|
610
|
+
" ag_program_payments: #{@ag_program_payments.inspect}, ccc_loans: #{@ccc_loans.inspect},"\
|
|
611
|
+
" crop_insurance_proceeds: #{@crop_insurance_proceeds.inspect}, custom_hire_income:"\
|
|
612
|
+
" #{@custom_hire_income.inspect}, other_income: #{@other_income.inspect}, car_and_truck:"\
|
|
613
|
+
" #{@car_and_truck.inspect}, chemicals: #{@chemicals.inspect}, conservation:"\
|
|
614
|
+
" #{@conservation.inspect}, custom_hire_expenses: #{@custom_hire_expenses.inspect},"\
|
|
615
|
+
" depreciation: #{@depreciation.inspect}, employee_benefit_programs:"\
|
|
616
|
+
" #{@employee_benefit_programs.inspect}, feed: #{@feed.inspect}, fertilizers:"\
|
|
617
|
+
" #{@fertilizers.inspect}, freight: #{@freight.inspect}, fuel: #{@fuel.inspect}, insurance:"\
|
|
618
|
+
" #{@insurance.inspect}, mortgage_interest: #{@mortgage_interest.inspect}, other_interest:"\
|
|
619
|
+
" #{@other_interest.inspect}, labor_hired: #{@labor_hired.inspect}, pension:"\
|
|
620
|
+
" #{@pension.inspect}, equipment_rent: #{@equipment_rent.inspect}, other_rent:"\
|
|
621
|
+
" #{@other_rent.inspect}, repairs: #{@repairs.inspect}, seeds: #{@seeds.inspect}, storage:"\
|
|
622
|
+
" #{@storage.inspect}, supplies: #{@supplies.inspect}, taxes: #{@taxes.inspect}, utilities:"\
|
|
623
|
+
" #{@utilities.inspect}, veterinary: #{@veterinary.inspect}, other_expenses:"\
|
|
624
|
+
" #{@other_expenses.inspect}, capital_expenditures: #{@capital_expenditures.inspect},"\
|
|
625
|
+
" additional_properties: #{@additional_properties}>"
|
|
626
|
+
end
|
|
627
|
+
end
|
|
628
|
+
end
|