data-and-reporting-sdk 1.0.0 → 1.1.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/README.md +14 -15
- data/lib/shell_data_reporting_ap_is/controllers/base_controller.rb +9 -9
- data/lib/shell_data_reporting_ap_is/controllers/customer_controller.rb +210 -210
- data/lib/shell_data_reporting_ap_is/controllers/invoice_controller.rb +221 -221
- data/lib/shell_data_reporting_ap_is/controllers/o_auth_authorization_controller.rb +9 -9
- data/lib/shell_data_reporting_ap_is/controllers/transaction_controller.rb +354 -354
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_customer_accounts400_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_customer_accounts401_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_customer_accounts403_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_customer_accounts404_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_customer_accounts500_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_customer_auditreport400_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_customer_auditreport401_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_customer_auditreport403_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_customer_auditreport404_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_customer_auditreport500_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_customer_cardgroups400_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_customer_cardgroups401_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_customer_cardgroups403_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_customer_cardgroups404_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_customer_cardgroups500_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_customer_customer400_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_customer_customer401_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_customer_customer403_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_customer_customer404_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_customer_customer500_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/{default_error_exception.rb → fleetmanagement_v1_customer_payers400_error_exception.rb} +20 -20
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_customer_payers401_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/{error_user_access_error1_exception.rb → fleetmanagement_v1_customer_payers403_error_exception.rb} +17 -17
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_customer_payers404_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_customer_payers500_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_cardusagesummary400_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_cardusagesummary401_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_cardusagesummary403_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_cardusagesummary404_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_cardusagesummary500_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_exceptions400_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_exceptions401_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_exceptions403_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_exceptions404_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_exceptions500_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_fees400_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_fees401_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_fees403_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_fees404_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_fees500_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_feessummary400_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_feessummary401_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_feessummary403_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_feessummary404_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_feessummary500_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_fuelconsumption400_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_fuelconsumption401_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_fuelconsumption403_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_fuelconsumption404_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_fuelconsumption500_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_multipayerspricedtransactions400_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_multipayerspricedtransactions401_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_multipayerspricedtransactions403_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_multipayerspricedtransactions404_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_multipayerspricedtransactions500_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_pricedtransactions400_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_pricedtransactions401_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_pricedtransactions403_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_pricedtransactions404_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_pricedtransactions500_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_pricedtransactionssummary400_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_pricedtransactionssummary401_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_pricedtransactionssummary403_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_pricedtransactionssummary404_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_pricedtransactionssummary500_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_updateodometer400_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_updateodometer401_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_updateodometer403_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_updateodometer404_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_updateodometer500_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_volumebasedbonus400_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_volumebasedbonus401_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_volumebasedbonus403_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_volumebasedbonus404_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_volumebasedbonus500_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_volumebasedpricing400_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_volumebasedpricing401_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_volumebasedpricing403_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_volumebasedpricing404_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_volumebasedpricing500_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser400_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser401_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser403_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser404_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser500_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v2_customer_cardtype400_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v2_customer_cardtype401_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v2_customer_cardtype403_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v2_customer_cardtype404_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v2_customer_cardtype500_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v2_customer_pricelist400_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v2_customer_pricelist401_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v2_customer_pricelist403_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v2_customer_pricelist404_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v2_customer_pricelist500_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_dates400_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_dates401_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_dates403_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_dates404_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_dates500_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_download400_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_download401_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_download403_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_download404_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_download500_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_eiddownload400_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_eiddownload401_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_eiddownload403_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_eiddownload404_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_eiddownload500_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_eidsearch400_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_eidsearch401_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_eidsearch403_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_eidsearch404_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_eidsearch500_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_search400_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_search401_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_search403_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_search404_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_search500_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_searchdocuments400_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_searchdocuments401_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_searchdocuments403_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_searchdocuments404_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_searchdocuments500_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_searchstatementofaccount400_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_searchstatementofaccount401_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_searchstatementofaccount403_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_searchstatementofaccount404_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_searchstatementofaccount500_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_statementofaccount400_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_statementofaccount401_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_statementofaccount403_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_statementofaccount404_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_statementofaccount500_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_summary400_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_summary401_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_summary403_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_summary404_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/invoice_management_v1_summary500_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/o_auth_provider_exception.rb +15 -15
- data/lib/shell_data_reporting_ap_is/exceptions/{error_object_exception.rb → transaction_data_v1_priced400_error_exception.rb} +17 -17
- data/lib/shell_data_reporting_ap_is/exceptions/transaction_data_v1_priced401_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/transaction_data_v1_priced403_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/transaction_data_v1_priced404_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/transaction_data_v1_priced500_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/transaction_data_v1_recent400_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/transaction_data_v1_recent401_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/transaction_data_v1_recent403_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/transaction_data_v1_recent404_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/transaction_data_v1_recent500_error_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/http/auth/bearer_token.rb +54 -10
- data/lib/shell_data_reporting_ap_is/models/account_access.rb +3 -8
- data/lib/shell_data_reporting_ap_is/models/account_request.rb +17 -26
- data/lib/shell_data_reporting_ap_is/models/account_response.rb +2 -6
- data/lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb +29 -53
- data/lib/shell_data_reporting_ap_is/models/accounts.rb +1 -2
- data/lib/shell_data_reporting_ap_is/models/address.rb +4 -11
- data/lib/shell_data_reporting_ap_is/models/audit_request.rb +17 -25
- data/lib/shell_data_reporting_ap_is/models/audit_response.rb +2 -6
- data/lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb +50 -63
- data/lib/shell_data_reporting_ap_is/models/bank_account.rb +5 -13
- data/lib/shell_data_reporting_ap_is/models/bonus_configuration.rb +9 -18
- data/lib/shell_data_reporting_ap_is/models/bonus_history.rb +14 -29
- data/lib/shell_data_reporting_ap_is/models/card_day_time_restrictions.rb +3 -9
- data/lib/shell_data_reporting_ap_is/models/card_exceptions.rb +8 -19
- data/lib/shell_data_reporting_ap_is/models/card_group_request.rb +6 -12
- data/lib/shell_data_reporting_ap_is/models/card_group_response.rb +2 -6
- data/lib/shell_data_reporting_ap_is/models/card_group_response_card_groups_items.rb +10 -20
- data/lib/shell_data_reporting_ap_is/models/card_type_request.rb +3 -7
- data/lib/shell_data_reporting_ap_is/models/card_type_response.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb +15 -31
- data/lib/shell_data_reporting_ap_is/models/card_type_response_error.rb +1 -2
- data/lib/shell_data_reporting_ap_is/models/card_usage_restrictions.rb +5 -10
- data/lib/shell_data_reporting_ap_is/models/card_usage_summary_request.rb +3 -8
- data/lib/shell_data_reporting_ap_is/models/card_usage_summary_response.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/col_co_access.rb +2 -4
- data/lib/shell_data_reporting_ap_is/models/current_volume.rb +2 -5
- data/lib/shell_data_reporting_ap_is/models/customer_contract.rb +1 -2
- data/lib/shell_data_reporting_ap_is/models/customer_detail_request.rb +2 -5
- data/lib/shell_data_reporting_ap_is/models/customer_detail_response.rb +31 -45
- data/lib/shell_data_reporting_ap_is/models/customer_price_list_request.rb +5 -12
- data/lib/shell_data_reporting_ap_is/models/customer_price_list_response.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/default_error.rb +50 -0
- data/lib/shell_data_reporting_ap_is/models/default_error_fault.rb +4 -5
- data/lib/shell_data_reporting_ap_is/models/delivery_addresses.rb +7 -18
- data/lib/shell_data_reporting_ap_is/models/detail.rb +50 -0
- data/lib/shell_data_reporting_ap_is/models/eid_access.rb +1 -2
- data/lib/shell_data_reporting_ap_is/models/eid_document.rb +11 -16
- data/lib/shell_data_reporting_ap_is/models/eid_document_response.rb +3 -8
- data/lib/shell_data_reporting_ap_is/models/eid_download_req.rb +2 -4
- data/lib/shell_data_reporting_ap_is/models/eid_search_req.rb +10 -15
- data/lib/shell_data_reporting_ap_is/models/eid_search_request.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/error_details.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/error_object.rb +80 -0
- data/lib/shell_data_reporting_ap_is/models/error_status.rb +11 -2
- data/lib/shell_data_reporting_ap_is/models/error_user_access_error.rb +1 -2
- data/lib/shell_data_reporting_ap_is/models/exception_product.rb +1 -2
- data/lib/shell_data_reporting_ap_is/models/exception_site_location.rb +1 -2
- data/lib/shell_data_reporting_ap_is/models/fault.rb +59 -0
- data/lib/shell_data_reporting_ap_is/models/fee_item.rb +35 -71
- data/lib/shell_data_reporting_ap_is/models/fee_item_summary_all_of0.rb +5 -11
- data/lib/shell_data_reporting_ap_is/models/fee_rule_location.rb +4 -10
- data/lib/shell_data_reporting_ap_is/models/fee_rule_product.rb +2 -5
- data/lib/shell_data_reporting_ap_is/models/fee_rule_tier.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/fee_summary_response.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/fees_fee_rule_tiers.rb +3 -7
- data/lib/shell_data_reporting_ap_is/models/filters.rb +454 -0
- data/lib/shell_data_reporting_ap_is/models/finance_currency.rb +1 -2
- data/lib/shell_data_reporting_ap_is/models/finance_currency2.rb +96 -0
- data/lib/shell_data_reporting_ap_is/models/fleetmanagement_v1_user_loggedinuser_request.rb +104 -0
- data/lib/shell_data_reporting_ap_is/models/fuel_consumption_card.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/fuel_consumption_data.rb +9 -20
- data/lib/shell_data_reporting_ap_is/models/fuel_consumption_request.rb +7 -14
- data/lib/shell_data_reporting_ap_is/models/fuel_consumption_response.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/invoice_dates_data.rb +1 -2
- data/lib/shell_data_reporting_ap_is/models/invoice_dates_request_filters.rb +2 -6
- data/lib/shell_data_reporting_ap_is/models/invoice_dates_response_data.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/invoice_distribution_method.rb +2 -4
- data/lib/shell_data_reporting_ap_is/models/invoice_download_req.rb +2 -5
- data/lib/shell_data_reporting_ap_is/models/invoice_search_additional_document.rb +2 -4
- data/lib/shell_data_reporting_ap_is/models/invoice_search_details.rb +86 -107
- data/lib/shell_data_reporting_ap_is/models/invoice_search_request.rb +5 -7
- data/lib/shell_data_reporting_ap_is/models/invoice_search_request_filters.rb +21 -31
- data/lib/shell_data_reporting_ap_is/models/invoice_search_response.rb +2 -7
- data/lib/shell_data_reporting_ap_is/models/invoice_summary_request_filters.rb +21 -31
- data/lib/shell_data_reporting_ap_is/models/invoice_summary_response.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/invoices_summaries.rb +5 -10
- data/lib/shell_data_reporting_ap_is/models/last_statement_of_account.rb +39 -48
- data/lib/shell_data_reporting_ap_is/models/last_statement_of_account2.rb +412 -0
- data/lib/shell_data_reporting_ap_is/models/location.rb +62 -0
- data/lib/shell_data_reporting_ap_is/models/logged_in_user_request.rb +2 -4
- data/lib/shell_data_reporting_ap_is/models/logged_in_user_response.rb +12 -25
- data/lib/shell_data_reporting_ap_is/models/monthly_invoice_trend.rb +2 -5
- data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_request.rb +21 -32
- data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_request_accounts_items.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_response.rb +2 -6
- data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_response_transactions_items.rb +70 -122
- data/lib/shell_data_reporting_ap_is/models/o_auth_token.rb +2 -6
- data/lib/shell_data_reporting_ap_is/models/past_statement_of_accounts.rb +11 -22
- data/lib/shell_data_reporting_ap_is/models/payer_access.rb +3 -8
- data/lib/shell_data_reporting_ap_is/models/payer_details.rb +55 -96
- data/lib/shell_data_reporting_ap_is/models/payer_request.rb +9 -12
- data/lib/shell_data_reporting_ap_is/models/payer_response.rb +2 -6
- data/lib/shell_data_reporting_ap_is/models/payers.rb +2 -5
- data/lib/shell_data_reporting_ap_is/models/payments_since_last_soa.rb +8 -17
- data/lib/shell_data_reporting_ap_is/models/pin_advice_types.rb +5 -6
- data/lib/shell_data_reporting_ap_is/models/price_list.rb +25 -45
- data/lib/shell_data_reporting_ap_is/models/price_trans_summary_request.rb +28 -44
- data/lib/shell_data_reporting_ap_is/models/price_transaction_request.rb +41 -59
- data/lib/shell_data_reporting_ap_is/models/priced_request_data.rb +21 -50
- data/lib/shell_data_reporting_ap_is/models/priced_response_data.rb +91 -201
- data/lib/shell_data_reporting_ap_is/models/priced_trans_summary_response.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/priced_trans_summary_response_transactions_summary_items.rb +22 -28
- data/lib/shell_data_reporting_ap_is/models/priced_transaction_items_location_items.rb +11 -2
- data/lib/shell_data_reporting_ap_is/models/priced_transaction_request_v2.rb +4 -8
- data/lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb +91 -141
- data/lib/shell_data_reporting_ap_is/models/priced_transaction_response_v2.rb +2 -6
- data/lib/shell_data_reporting_ap_is/models/pricing_current_volume.rb +3 -6
- data/lib/shell_data_reporting_ap_is/models/pricing_history.rb +2 -5
- data/lib/shell_data_reporting_ap_is/models/purchase_categories.rb +1 -4
- data/lib/shell_data_reporting_ap_is/models/recent_transaction_req.rb +6 -14
- data/lib/shell_data_reporting_ap_is/models/recent_transaction_request.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/recent_transactions.rb +29 -60
- data/lib/shell_data_reporting_ap_is/models/recent_transactions_response.rb +2 -6
- data/lib/shell_data_reporting_ap_is/models/role.rb +3 -6
- data/lib/shell_data_reporting_ap_is/models/search_doc_req.rb +19 -27
- data/lib/shell_data_reporting_ap_is/models/search_documents_invoice.rb +9 -16
- data/lib/shell_data_reporting_ap_is/models/search_documents_request.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/search_documents_response.rb +3 -7
- data/lib/shell_data_reporting_ap_is/models/search_soa_req.rb +4 -11
- data/lib/shell_data_reporting_ap_is/models/search_statement_of_account.rb +11 -18
- data/lib/shell_data_reporting_ap_is/models/search_statement_of_account_request.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/search_statement_of_account_response.rb +2 -7
- data/lib/shell_data_reporting_ap_is/models/site_location.rb +11 -2
- data/lib/shell_data_reporting_ap_is/models/statement_of_account_request_filters.rb +2 -5
- data/lib/shell_data_reporting_ap_is/models/statement_of_account_resp.rb +8 -9
- data/lib/shell_data_reporting_ap_is/models/statement_of_account_response.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/tier.rb +8 -12
- data/lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb +50 -95
- data/lib/shell_data_reporting_ap_is/models/transaction_exceptions_request.rb +12 -21
- data/lib/shell_data_reporting_ap_is/models/transaction_exceptions_response.rb +2 -4
- data/lib/shell_data_reporting_ap_is/models/transaction_fees_request.rb +21 -33
- data/lib/shell_data_reporting_ap_is/models/transaction_fees_response.rb +2 -6
- data/lib/shell_data_reporting_ap_is/models/update_odometer.rb +1 -2
- data/lib/shell_data_reporting_ap_is/models/update_odometer_reference.rb +1 -2
- data/lib/shell_data_reporting_ap_is/models/update_odometer_request.rb +3 -8
- data/lib/shell_data_reporting_ap_is/models/update_odometer_response.rb +2 -4
- data/lib/shell_data_reporting_ap_is/models/usage_summary.rb +6 -14
- data/lib/shell_data_reporting_ap_is/models/volume_based_bonus_request.rb +2 -5
- data/lib/shell_data_reporting_ap_is/models/volume_based_bonus_response.rb +2 -4
- data/lib/shell_data_reporting_ap_is/models/volume_based_pricing_request.rb +2 -5
- data/lib/shell_data_reporting_ap_is/models/volume_based_pricing_response.rb +2 -5
- data/lib/shell_data_reporting_ap_is/utilities/file_wrapper.rb +9 -9
- data/lib/shell_data_reporting_ap_is/utilities/union_type_lookup.rb +35 -0
- data/lib/shell_data_reporting_ap_is.rb +355 -3
- data/test/controllers/controller_test_base.rb +0 -5
- data/test/controllers/test_transaction_controller.rb +82 -74
- metadata +170 -19
@@ -0,0 +1,454 @@
|
|
1
|
+
# shell_data_reporting_ap_is
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module ShellDataReportingApIs
|
7
|
+
# Filters Model.
|
8
|
+
class Filters < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# Collecting Company Code (Shell Code) of the selected payer.
|
13
|
+
# @return [String]
|
14
|
+
attr_accessor :col_co_code
|
15
|
+
|
16
|
+
# Collecting Company Code (Shell Code) of the selected payer.
|
17
|
+
# @return [Object]
|
18
|
+
attr_accessor :invoice_status
|
19
|
+
|
20
|
+
# Payer Number of the selected payer.
|
21
|
+
# @return [String]
|
22
|
+
attr_accessor :payer_number
|
23
|
+
|
24
|
+
# Account Id (GFN customer id)
|
25
|
+
# @return [Integer]
|
26
|
+
attr_accessor :account_id
|
27
|
+
|
28
|
+
# Account Number of the selected account.
|
29
|
+
# @return [String]
|
30
|
+
attr_accessor :account_number
|
31
|
+
|
32
|
+
# Driver Name (of Card record)
|
33
|
+
# @return [String]
|
34
|
+
attr_accessor :driver_name
|
35
|
+
|
36
|
+
# Card Group Id in GFN
|
37
|
+
# @return [Integer]
|
38
|
+
attr_accessor :card_group_id
|
39
|
+
|
40
|
+
# Full Card PAN
|
41
|
+
# @return [String]
|
42
|
+
attr_accessor :card_pan
|
43
|
+
|
44
|
+
# Product Code – Global as per GFN configuration
|
45
|
+
# @return [String]
|
46
|
+
attr_accessor :product_code
|
47
|
+
|
48
|
+
# Product Name – Global as per GFN configuration
|
49
|
+
# @return [String]
|
50
|
+
attr_accessor :product_name
|
51
|
+
|
52
|
+
# Site Code in GFN
|
53
|
+
# @return [String]
|
54
|
+
attr_accessor :site_code
|
55
|
+
|
56
|
+
# Site Code as configured in GFN
|
57
|
+
# @return [String]
|
58
|
+
attr_accessor :incoming_site_number
|
59
|
+
|
60
|
+
# Returns the billed transaction for the given invoice date
|
61
|
+
# @return [String]
|
62
|
+
attr_accessor :invoice_date
|
63
|
+
|
64
|
+
# Returns the billed transaction for the given invoice number
|
65
|
+
# @return [String]
|
66
|
+
attr_accessor :invoice_number
|
67
|
+
|
68
|
+
# Purchased InCountryCode
|
69
|
+
# @return [String]
|
70
|
+
attr_accessor :purchased_in_country_code
|
71
|
+
|
72
|
+
# Network Delco PurchasedCountryName
|
73
|
+
# @return [String]
|
74
|
+
attr_accessor :purchased_in_country
|
75
|
+
|
76
|
+
# Site Group Id in GFN
|
77
|
+
# @return [Integer]
|
78
|
+
attr_accessor :site_group_id
|
79
|
+
|
80
|
+
# Vehicle Registration (of Card record)
|
81
|
+
# @return [String]
|
82
|
+
attr_accessor :vehicle_registration_number
|
83
|
+
|
84
|
+
# Card Id (i.e. Unique Card Id in GFN)
|
85
|
+
# @return [Integer]
|
86
|
+
attr_accessor :fee_type_id
|
87
|
+
|
88
|
+
# Item identifier in the transaction.
|
89
|
+
# @return [String]
|
90
|
+
attr_accessor :line_item_description
|
91
|
+
|
92
|
+
# This entity accepts the list of CardId to filter in the response.
|
93
|
+
# Note: The number of cardId allowed to be passed in the request is
|
94
|
+
# configurable to a maximum of 500 cards.
|
95
|
+
# @return [Array[Integer]]
|
96
|
+
attr_accessor :cards
|
97
|
+
|
98
|
+
# This entity accepts the list of CardId to filter in the response.
|
99
|
+
# Note: The number of cardId allowed to be passed in the request is
|
100
|
+
# configurable to a maximum of 500 cards.
|
101
|
+
# @return [PricedTransactionReqV2SortOrderEnum]
|
102
|
+
attr_accessor :sort_order
|
103
|
+
|
104
|
+
# From transaction delivery date
|
105
|
+
# @return [String]
|
106
|
+
attr_accessor :from_date
|
107
|
+
|
108
|
+
# To transaction delivery date
|
109
|
+
# @return [String]
|
110
|
+
attr_accessor :to_date
|
111
|
+
|
112
|
+
# To transaction delivery date
|
113
|
+
# @return [PricedTransactionReqV2PeriodEnum]
|
114
|
+
attr_accessor :period
|
115
|
+
|
116
|
+
# Transaction posting start date and time
|
117
|
+
# @return [String]
|
118
|
+
attr_accessor :posting_date_from
|
119
|
+
|
120
|
+
# Transaction posting end date and time
|
121
|
+
# @return [String]
|
122
|
+
attr_accessor :posting_date_to
|
123
|
+
|
124
|
+
# Unique id of the transaction that may include one or more salesitems
|
125
|
+
# @return [String]
|
126
|
+
attr_accessor :transaction_item_id
|
127
|
+
|
128
|
+
# Is FuelOnly indicator
|
129
|
+
# @return [TrueClass | FalseClass]
|
130
|
+
attr_accessor :fuel_only
|
131
|
+
|
132
|
+
# When passed as ‘true’ then all sales items along with fees will be
|
133
|
+
# included in the response and the follwoing filteres will be ignored
|
134
|
+
# * InvoiceNumber
|
135
|
+
# * InvoiceDate
|
136
|
+
# * PostingDateFrom
|
137
|
+
# * PostingDateTo
|
138
|
+
# @return [TrueClass | FalseClass]
|
139
|
+
attr_accessor :include_fees
|
140
|
+
|
141
|
+
# If true then returns all the data linked tothe payer group of the provided
|
142
|
+
# PayerNumberin the request
|
143
|
+
# @return [TrueClass | FalseClass]
|
144
|
+
attr_accessor :is_multipayer
|
145
|
+
|
146
|
+
# When passed as ‘True’ the transactions records with report date not equal
|
147
|
+
# to 9999-12-30 will be returned. When passed as ‘False’ the above condition
|
148
|
+
# will not be checked.
|
149
|
+
# @return [TrueClass | FalseClass]
|
150
|
+
attr_accessor :valid_invoice_date_only
|
151
|
+
|
152
|
+
# Invoice From Date, this is a search criterion to filter invoiced
|
153
|
+
# transactions with invoice date from this date.
|
154
|
+
# @return [String]
|
155
|
+
attr_accessor :invoice_from_date
|
156
|
+
|
157
|
+
# Invoice To Date, this is a search criterion to filter invoiced
|
158
|
+
# transactions with invoice date until this date.
|
159
|
+
# @return [String]
|
160
|
+
attr_accessor :invoice_to_date
|
161
|
+
|
162
|
+
# Hosting Collecting Company Number of the selected payer.
|
163
|
+
# @return [String]
|
164
|
+
attr_accessor :hosting_collecting_company_number
|
165
|
+
|
166
|
+
# Search based on DriverName or VRN
|
167
|
+
# @return [String]
|
168
|
+
attr_accessor :search
|
169
|
+
|
170
|
+
# Unique id of the transaction that may include one or more salesitems
|
171
|
+
# @return [String]
|
172
|
+
attr_accessor :transaction_id
|
173
|
+
|
174
|
+
# A mapping from model property names to API property names.
|
175
|
+
def self.names
|
176
|
+
@_hash = {} if @_hash.nil?
|
177
|
+
@_hash['col_co_code'] = 'ColCoCode'
|
178
|
+
@_hash['invoice_status'] = 'InvoiceStatus'
|
179
|
+
@_hash['payer_number'] = 'PayerNumber'
|
180
|
+
@_hash['account_id'] = 'AccountId'
|
181
|
+
@_hash['account_number'] = 'AccountNumber'
|
182
|
+
@_hash['driver_name'] = 'DriverName'
|
183
|
+
@_hash['card_group_id'] = 'CardGroupId'
|
184
|
+
@_hash['card_pan'] = 'CardPAN'
|
185
|
+
@_hash['product_code'] = 'ProductCode'
|
186
|
+
@_hash['product_name'] = 'ProductName'
|
187
|
+
@_hash['site_code'] = 'SiteCode'
|
188
|
+
@_hash['incoming_site_number'] = 'IncomingSiteNumber'
|
189
|
+
@_hash['invoice_date'] = 'InvoiceDate'
|
190
|
+
@_hash['invoice_number'] = 'InvoiceNumber'
|
191
|
+
@_hash['purchased_in_country_code'] = 'PurchasedInCountryCode'
|
192
|
+
@_hash['purchased_in_country'] = 'PurchasedInCountry'
|
193
|
+
@_hash['site_group_id'] = 'SiteGroupId'
|
194
|
+
@_hash['vehicle_registration_number'] = 'VehicleRegistrationNumber'
|
195
|
+
@_hash['fee_type_id'] = 'FeeTypeId'
|
196
|
+
@_hash['line_item_description'] = 'LineItemDescription'
|
197
|
+
@_hash['cards'] = 'Cards'
|
198
|
+
@_hash['sort_order'] = 'SortOrder'
|
199
|
+
@_hash['from_date'] = 'FromDate'
|
200
|
+
@_hash['to_date'] = 'ToDate'
|
201
|
+
@_hash['period'] = 'Period'
|
202
|
+
@_hash['posting_date_from'] = 'PostingDateFrom'
|
203
|
+
@_hash['posting_date_to'] = 'PostingDateTo'
|
204
|
+
@_hash['transaction_item_id'] = 'TransactionItemId'
|
205
|
+
@_hash['fuel_only'] = 'FuelOnly'
|
206
|
+
@_hash['include_fees'] = 'IncludeFees'
|
207
|
+
@_hash['is_multipayer'] = 'IsMultipayer'
|
208
|
+
@_hash['valid_invoice_date_only'] = 'ValidInvoiceDateOnly'
|
209
|
+
@_hash['invoice_from_date'] = 'InvoiceFromDate'
|
210
|
+
@_hash['invoice_to_date'] = 'InvoiceToDate'
|
211
|
+
@_hash['hosting_collecting_company_number'] =
|
212
|
+
'HostingCollectingCompanyNumber'
|
213
|
+
@_hash['search'] = 'Search'
|
214
|
+
@_hash['transaction_id'] = 'TransactionId'
|
215
|
+
@_hash
|
216
|
+
end
|
217
|
+
|
218
|
+
# An array for optional fields
|
219
|
+
def self.optionals
|
220
|
+
%w[
|
221
|
+
account_id
|
222
|
+
account_number
|
223
|
+
driver_name
|
224
|
+
card_group_id
|
225
|
+
card_pan
|
226
|
+
product_code
|
227
|
+
product_name
|
228
|
+
site_code
|
229
|
+
incoming_site_number
|
230
|
+
invoice_date
|
231
|
+
invoice_number
|
232
|
+
purchased_in_country_code
|
233
|
+
purchased_in_country
|
234
|
+
site_group_id
|
235
|
+
vehicle_registration_number
|
236
|
+
fee_type_id
|
237
|
+
line_item_description
|
238
|
+
cards
|
239
|
+
sort_order
|
240
|
+
from_date
|
241
|
+
to_date
|
242
|
+
period
|
243
|
+
posting_date_from
|
244
|
+
posting_date_to
|
245
|
+
transaction_item_id
|
246
|
+
fuel_only
|
247
|
+
include_fees
|
248
|
+
is_multipayer
|
249
|
+
valid_invoice_date_only
|
250
|
+
invoice_from_date
|
251
|
+
invoice_to_date
|
252
|
+
hosting_collecting_company_number
|
253
|
+
search
|
254
|
+
transaction_id
|
255
|
+
]
|
256
|
+
end
|
257
|
+
|
258
|
+
# An array for nullable fields
|
259
|
+
def self.nullables
|
260
|
+
%w[
|
261
|
+
col_co_code
|
262
|
+
payer_number
|
263
|
+
account_id
|
264
|
+
account_number
|
265
|
+
driver_name
|
266
|
+
card_group_id
|
267
|
+
card_pan
|
268
|
+
product_code
|
269
|
+
product_name
|
270
|
+
site_code
|
271
|
+
incoming_site_number
|
272
|
+
invoice_date
|
273
|
+
invoice_number
|
274
|
+
purchased_in_country_code
|
275
|
+
purchased_in_country
|
276
|
+
site_group_id
|
277
|
+
vehicle_registration_number
|
278
|
+
fee_type_id
|
279
|
+
line_item_description
|
280
|
+
from_date
|
281
|
+
to_date
|
282
|
+
posting_date_from
|
283
|
+
posting_date_to
|
284
|
+
transaction_item_id
|
285
|
+
fuel_only
|
286
|
+
include_fees
|
287
|
+
invoice_from_date
|
288
|
+
invoice_to_date
|
289
|
+
hosting_collecting_company_number
|
290
|
+
search
|
291
|
+
transaction_id
|
292
|
+
]
|
293
|
+
end
|
294
|
+
|
295
|
+
def initialize(col_co_code = nil, invoice_status = nil, payer_number = nil,
|
296
|
+
account_id = SKIP, account_number = SKIP, driver_name = SKIP,
|
297
|
+
card_group_id = SKIP, card_pan = SKIP, product_code = SKIP,
|
298
|
+
product_name = SKIP, site_code = SKIP,
|
299
|
+
incoming_site_number = SKIP, invoice_date = SKIP,
|
300
|
+
invoice_number = SKIP, purchased_in_country_code = SKIP,
|
301
|
+
purchased_in_country = SKIP, site_group_id = SKIP,
|
302
|
+
vehicle_registration_number = SKIP, fee_type_id = SKIP,
|
303
|
+
line_item_description = SKIP, cards = SKIP,
|
304
|
+
sort_order = SKIP, from_date = SKIP, to_date = SKIP,
|
305
|
+
period = SKIP, posting_date_from = SKIP,
|
306
|
+
posting_date_to = SKIP, transaction_item_id = SKIP,
|
307
|
+
fuel_only = false, include_fees = SKIP, is_multipayer = SKIP,
|
308
|
+
valid_invoice_date_only = false, invoice_from_date = SKIP,
|
309
|
+
invoice_to_date = SKIP,
|
310
|
+
hosting_collecting_company_number = SKIP, search = SKIP,
|
311
|
+
transaction_id = SKIP)
|
312
|
+
@col_co_code = col_co_code
|
313
|
+
@invoice_status = invoice_status
|
314
|
+
@payer_number = payer_number
|
315
|
+
@account_id = account_id unless account_id == SKIP
|
316
|
+
@account_number = account_number unless account_number == SKIP
|
317
|
+
@driver_name = driver_name unless driver_name == SKIP
|
318
|
+
@card_group_id = card_group_id unless card_group_id == SKIP
|
319
|
+
@card_pan = card_pan unless card_pan == SKIP
|
320
|
+
@product_code = product_code unless product_code == SKIP
|
321
|
+
@product_name = product_name unless product_name == SKIP
|
322
|
+
@site_code = site_code unless site_code == SKIP
|
323
|
+
@incoming_site_number = incoming_site_number unless incoming_site_number == SKIP
|
324
|
+
@invoice_date = invoice_date unless invoice_date == SKIP
|
325
|
+
@invoice_number = invoice_number unless invoice_number == SKIP
|
326
|
+
unless purchased_in_country_code == SKIP
|
327
|
+
@purchased_in_country_code =
|
328
|
+
purchased_in_country_code
|
329
|
+
end
|
330
|
+
@purchased_in_country = purchased_in_country unless purchased_in_country == SKIP
|
331
|
+
@site_group_id = site_group_id unless site_group_id == SKIP
|
332
|
+
unless vehicle_registration_number == SKIP
|
333
|
+
@vehicle_registration_number =
|
334
|
+
vehicle_registration_number
|
335
|
+
end
|
336
|
+
@fee_type_id = fee_type_id unless fee_type_id == SKIP
|
337
|
+
@line_item_description = line_item_description unless line_item_description == SKIP
|
338
|
+
@cards = cards unless cards == SKIP
|
339
|
+
@sort_order = sort_order unless sort_order == SKIP
|
340
|
+
@from_date = from_date unless from_date == SKIP
|
341
|
+
@to_date = to_date unless to_date == SKIP
|
342
|
+
@period = period unless period == SKIP
|
343
|
+
@posting_date_from = posting_date_from unless posting_date_from == SKIP
|
344
|
+
@posting_date_to = posting_date_to unless posting_date_to == SKIP
|
345
|
+
@transaction_item_id = transaction_item_id unless transaction_item_id == SKIP
|
346
|
+
@fuel_only = fuel_only unless fuel_only == SKIP
|
347
|
+
@include_fees = include_fees unless include_fees == SKIP
|
348
|
+
@is_multipayer = is_multipayer unless is_multipayer == SKIP
|
349
|
+
@valid_invoice_date_only = valid_invoice_date_only unless valid_invoice_date_only == SKIP
|
350
|
+
@invoice_from_date = invoice_from_date unless invoice_from_date == SKIP
|
351
|
+
@invoice_to_date = invoice_to_date unless invoice_to_date == SKIP
|
352
|
+
unless hosting_collecting_company_number == SKIP
|
353
|
+
@hosting_collecting_company_number =
|
354
|
+
hosting_collecting_company_number
|
355
|
+
end
|
356
|
+
@search = search unless search == SKIP
|
357
|
+
@transaction_id = transaction_id unless transaction_id == SKIP
|
358
|
+
end
|
359
|
+
|
360
|
+
# Creates an instance of the object from a hash.
|
361
|
+
def self.from_hash(hash)
|
362
|
+
return nil unless hash
|
363
|
+
|
364
|
+
# Extract variables from the hash.
|
365
|
+
col_co_code = hash.key?('ColCoCode') ? hash['ColCoCode'] : nil
|
366
|
+
invoice_status = hash.key?('InvoiceStatus') ? hash['InvoiceStatus'] : nil
|
367
|
+
payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : nil
|
368
|
+
account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP
|
369
|
+
account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP
|
370
|
+
driver_name = hash.key?('DriverName') ? hash['DriverName'] : SKIP
|
371
|
+
card_group_id = hash.key?('CardGroupId') ? hash['CardGroupId'] : SKIP
|
372
|
+
card_pan = hash.key?('CardPAN') ? hash['CardPAN'] : SKIP
|
373
|
+
product_code = hash.key?('ProductCode') ? hash['ProductCode'] : SKIP
|
374
|
+
product_name = hash.key?('ProductName') ? hash['ProductName'] : SKIP
|
375
|
+
site_code = hash.key?('SiteCode') ? hash['SiteCode'] : SKIP
|
376
|
+
incoming_site_number =
|
377
|
+
hash.key?('IncomingSiteNumber') ? hash['IncomingSiteNumber'] : SKIP
|
378
|
+
invoice_date = hash.key?('InvoiceDate') ? hash['InvoiceDate'] : SKIP
|
379
|
+
invoice_number = hash.key?('InvoiceNumber') ? hash['InvoiceNumber'] : SKIP
|
380
|
+
purchased_in_country_code =
|
381
|
+
hash.key?('PurchasedInCountryCode') ? hash['PurchasedInCountryCode'] : SKIP
|
382
|
+
purchased_in_country =
|
383
|
+
hash.key?('PurchasedInCountry') ? hash['PurchasedInCountry'] : SKIP
|
384
|
+
site_group_id = hash.key?('SiteGroupId') ? hash['SiteGroupId'] : SKIP
|
385
|
+
vehicle_registration_number =
|
386
|
+
hash.key?('VehicleRegistrationNumber') ? hash['VehicleRegistrationNumber'] : SKIP
|
387
|
+
fee_type_id = hash.key?('FeeTypeId') ? hash['FeeTypeId'] : SKIP
|
388
|
+
line_item_description =
|
389
|
+
hash.key?('LineItemDescription') ? hash['LineItemDescription'] : SKIP
|
390
|
+
cards = hash.key?('Cards') ? hash['Cards'] : SKIP
|
391
|
+
sort_order = hash.key?('SortOrder') ? hash['SortOrder'] : SKIP
|
392
|
+
from_date = hash.key?('FromDate') ? hash['FromDate'] : SKIP
|
393
|
+
to_date = hash.key?('ToDate') ? hash['ToDate'] : SKIP
|
394
|
+
period = hash.key?('Period') ? hash['Period'] : SKIP
|
395
|
+
posting_date_from =
|
396
|
+
hash.key?('PostingDateFrom') ? hash['PostingDateFrom'] : SKIP
|
397
|
+
posting_date_to =
|
398
|
+
hash.key?('PostingDateTo') ? hash['PostingDateTo'] : SKIP
|
399
|
+
transaction_item_id =
|
400
|
+
hash.key?('TransactionItemId') ? hash['TransactionItemId'] : SKIP
|
401
|
+
fuel_only = hash['FuelOnly'] ||= false
|
402
|
+
include_fees = hash.key?('IncludeFees') ? hash['IncludeFees'] : SKIP
|
403
|
+
is_multipayer = hash.key?('IsMultipayer') ? hash['IsMultipayer'] : SKIP
|
404
|
+
valid_invoice_date_only = hash['ValidInvoiceDateOnly'] ||= false
|
405
|
+
invoice_from_date =
|
406
|
+
hash.key?('InvoiceFromDate') ? hash['InvoiceFromDate'] : SKIP
|
407
|
+
invoice_to_date =
|
408
|
+
hash.key?('InvoiceToDate') ? hash['InvoiceToDate'] : SKIP
|
409
|
+
hosting_collecting_company_number =
|
410
|
+
hash.key?('HostingCollectingCompanyNumber') ? hash['HostingCollectingCompanyNumber'] : SKIP
|
411
|
+
search = hash.key?('Search') ? hash['Search'] : SKIP
|
412
|
+
transaction_id = hash.key?('TransactionId') ? hash['TransactionId'] : SKIP
|
413
|
+
|
414
|
+
# Create object from extracted values.
|
415
|
+
Filters.new(col_co_code,
|
416
|
+
invoice_status,
|
417
|
+
payer_number,
|
418
|
+
account_id,
|
419
|
+
account_number,
|
420
|
+
driver_name,
|
421
|
+
card_group_id,
|
422
|
+
card_pan,
|
423
|
+
product_code,
|
424
|
+
product_name,
|
425
|
+
site_code,
|
426
|
+
incoming_site_number,
|
427
|
+
invoice_date,
|
428
|
+
invoice_number,
|
429
|
+
purchased_in_country_code,
|
430
|
+
purchased_in_country,
|
431
|
+
site_group_id,
|
432
|
+
vehicle_registration_number,
|
433
|
+
fee_type_id,
|
434
|
+
line_item_description,
|
435
|
+
cards,
|
436
|
+
sort_order,
|
437
|
+
from_date,
|
438
|
+
to_date,
|
439
|
+
period,
|
440
|
+
posting_date_from,
|
441
|
+
posting_date_to,
|
442
|
+
transaction_item_id,
|
443
|
+
fuel_only,
|
444
|
+
include_fees,
|
445
|
+
is_multipayer,
|
446
|
+
valid_invoice_date_only,
|
447
|
+
invoice_from_date,
|
448
|
+
invoice_to_date,
|
449
|
+
hosting_collecting_company_number,
|
450
|
+
search,
|
451
|
+
transaction_id)
|
452
|
+
end
|
453
|
+
end
|
454
|
+
end
|
@@ -62,8 +62,7 @@ module ShellDataReportingApIs
|
|
62
62
|
]
|
63
63
|
end
|
64
64
|
|
65
|
-
def initialize(currency_code = SKIP,
|
66
|
-
currency_symbol = SKIP,
|
65
|
+
def initialize(currency_code = SKIP, currency_symbol = SKIP,
|
67
66
|
invoice_exchange_rate = SKIP,
|
68
67
|
credit_limit_exchange_rate = SKIP)
|
69
68
|
@currency_code = currency_code unless currency_code == SKIP
|
@@ -0,0 +1,96 @@
|
|
1
|
+
# shell_data_reporting_ap_is
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module ShellDataReportingApIs
|
7
|
+
# FinanceCurrency2 Model.
|
8
|
+
class FinanceCurrency2 < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# Currency ISO Code used for the Finance Widget.
|
13
|
+
# @return [String]
|
14
|
+
attr_accessor :currency_code
|
15
|
+
|
16
|
+
# Currency Symbol
|
17
|
+
# @return [String]
|
18
|
+
attr_accessor :currency_symbol
|
19
|
+
|
20
|
+
# Factor to be used for converting the amounts in invoice currency to
|
21
|
+
# finance widget currency. (If finance currency is same as invoice currency,
|
22
|
+
# then the value of this field will be “1” so that the value does not
|
23
|
+
# change)
|
24
|
+
# @return [Float]
|
25
|
+
attr_accessor :invoice_exchange_rate
|
26
|
+
|
27
|
+
# Factor to be used for converting the amounts in credit limit currency to
|
28
|
+
# finance widget currency. (If finance currency is same as credit limit
|
29
|
+
# currency, then the value of this field will be “1” so that the value does
|
30
|
+
# not change)
|
31
|
+
# @return [Float]
|
32
|
+
attr_accessor :credit_limit_exchange_rate
|
33
|
+
|
34
|
+
# A mapping from model property names to API property names.
|
35
|
+
def self.names
|
36
|
+
@_hash = {} if @_hash.nil?
|
37
|
+
@_hash['currency_code'] = 'CurrencyCode'
|
38
|
+
@_hash['currency_symbol'] = 'CurrencySymbol'
|
39
|
+
@_hash['invoice_exchange_rate'] = 'Invoice_ExchangeRate'
|
40
|
+
@_hash['credit_limit_exchange_rate'] = 'CreditLimit_ExchangeRate'
|
41
|
+
@_hash
|
42
|
+
end
|
43
|
+
|
44
|
+
# An array for optional fields
|
45
|
+
def self.optionals
|
46
|
+
%w[
|
47
|
+
currency_code
|
48
|
+
currency_symbol
|
49
|
+
invoice_exchange_rate
|
50
|
+
credit_limit_exchange_rate
|
51
|
+
]
|
52
|
+
end
|
53
|
+
|
54
|
+
# An array for nullable fields
|
55
|
+
def self.nullables
|
56
|
+
%w[
|
57
|
+
currency_code
|
58
|
+
currency_symbol
|
59
|
+
invoice_exchange_rate
|
60
|
+
credit_limit_exchange_rate
|
61
|
+
]
|
62
|
+
end
|
63
|
+
|
64
|
+
def initialize(currency_code = SKIP, currency_symbol = SKIP,
|
65
|
+
invoice_exchange_rate = SKIP,
|
66
|
+
credit_limit_exchange_rate = SKIP)
|
67
|
+
@currency_code = currency_code unless currency_code == SKIP
|
68
|
+
@currency_symbol = currency_symbol unless currency_symbol == SKIP
|
69
|
+
@invoice_exchange_rate = invoice_exchange_rate unless invoice_exchange_rate == SKIP
|
70
|
+
unless credit_limit_exchange_rate == SKIP
|
71
|
+
@credit_limit_exchange_rate =
|
72
|
+
credit_limit_exchange_rate
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
# Creates an instance of the object from a hash.
|
77
|
+
def self.from_hash(hash)
|
78
|
+
return nil unless hash
|
79
|
+
|
80
|
+
# Extract variables from the hash.
|
81
|
+
currency_code = hash.key?('CurrencyCode') ? hash['CurrencyCode'] : SKIP
|
82
|
+
currency_symbol =
|
83
|
+
hash.key?('CurrencySymbol') ? hash['CurrencySymbol'] : SKIP
|
84
|
+
invoice_exchange_rate =
|
85
|
+
hash.key?('Invoice_ExchangeRate') ? hash['Invoice_ExchangeRate'] : SKIP
|
86
|
+
credit_limit_exchange_rate =
|
87
|
+
hash.key?('CreditLimit_ExchangeRate') ? hash['CreditLimit_ExchangeRate'] : SKIP
|
88
|
+
|
89
|
+
# Create object from extracted values.
|
90
|
+
FinanceCurrency2.new(currency_code,
|
91
|
+
currency_symbol,
|
92
|
+
invoice_exchange_rate,
|
93
|
+
credit_limit_exchange_rate)
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
@@ -0,0 +1,104 @@
|
|
1
|
+
# shell_data_reporting_ap_is
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module ShellDataReportingApIs
|
7
|
+
# FleetmanagementV1UserLoggedinuserRequest Model.
|
8
|
+
class FleetmanagementV1UserLoggedinuserRequest < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# True/False. The output will include the payer group information only when
|
13
|
+
# true is passed.
|
14
|
+
# @return [TrueClass | FalseClass]
|
15
|
+
attr_accessor :include_payer_group
|
16
|
+
|
17
|
+
# True/False. The output will include the EID (Electronic Invoice data)
|
18
|
+
# information only when true is passed..
|
19
|
+
# @return [TrueClass | FalseClass]
|
20
|
+
attr_accessor :include_eid_details
|
21
|
+
|
22
|
+
# Name of the API on which user access needs to be validated
|
23
|
+
# Optional.
|
24
|
+
# @return [String]
|
25
|
+
attr_accessor :requested_api_name
|
26
|
+
|
27
|
+
# Payer id of the customer.</br>
|
28
|
+
# Optional.</br>
|
29
|
+
# This input is a search criterion.</br>
|
30
|
+
# Note: If PayerId or PayerNumber is provided in the input, the given payer
|
31
|
+
# will be available in the output if the user has access to the given payer.
|
32
|
+
# @return [Integer]
|
33
|
+
attr_accessor :payer_id
|
34
|
+
|
35
|
+
# PayerNumber of the customer.</br>
|
36
|
+
# Optional</br>
|
37
|
+
# This input is a search criterion.</br>
|
38
|
+
# Note: If Payerid or PayerNumber is provided in the input, the given payer
|
39
|
+
# will be available in the output if the user has access to the given payer.
|
40
|
+
# @return [String]
|
41
|
+
attr_accessor :payer_number
|
42
|
+
|
43
|
+
# A mapping from model property names to API property names.
|
44
|
+
def self.names
|
45
|
+
@_hash = {} if @_hash.nil?
|
46
|
+
@_hash['include_payer_group'] = 'IncludePayerGroup'
|
47
|
+
@_hash['include_eid_details'] = 'IncludeEIDDetails'
|
48
|
+
@_hash['requested_api_name'] = 'RequestedAPIName'
|
49
|
+
@_hash['payer_id'] = 'PayerId'
|
50
|
+
@_hash['payer_number'] = 'PayerNumber'
|
51
|
+
@_hash
|
52
|
+
end
|
53
|
+
|
54
|
+
# An array for optional fields
|
55
|
+
def self.optionals
|
56
|
+
%w[
|
57
|
+
include_payer_group
|
58
|
+
include_eid_details
|
59
|
+
requested_api_name
|
60
|
+
payer_id
|
61
|
+
payer_number
|
62
|
+
]
|
63
|
+
end
|
64
|
+
|
65
|
+
# An array for nullable fields
|
66
|
+
def self.nullables
|
67
|
+
%w[
|
68
|
+
requested_api_name
|
69
|
+
payer_id
|
70
|
+
payer_number
|
71
|
+
]
|
72
|
+
end
|
73
|
+
|
74
|
+
def initialize(include_payer_group = false, include_eid_details = false,
|
75
|
+
requested_api_name = SKIP, payer_id = SKIP,
|
76
|
+
payer_number = SKIP)
|
77
|
+
@include_payer_group = include_payer_group unless include_payer_group == SKIP
|
78
|
+
@include_eid_details = include_eid_details unless include_eid_details == SKIP
|
79
|
+
@requested_api_name = requested_api_name unless requested_api_name == SKIP
|
80
|
+
@payer_id = payer_id unless payer_id == SKIP
|
81
|
+
@payer_number = payer_number unless payer_number == SKIP
|
82
|
+
end
|
83
|
+
|
84
|
+
# Creates an instance of the object from a hash.
|
85
|
+
def self.from_hash(hash)
|
86
|
+
return nil unless hash
|
87
|
+
|
88
|
+
# Extract variables from the hash.
|
89
|
+
include_payer_group = hash['IncludePayerGroup'] ||= false
|
90
|
+
include_eid_details = hash['IncludeEIDDetails'] ||= false
|
91
|
+
requested_api_name =
|
92
|
+
hash.key?('RequestedAPIName') ? hash['RequestedAPIName'] : SKIP
|
93
|
+
payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP
|
94
|
+
payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
|
95
|
+
|
96
|
+
# Create object from extracted values.
|
97
|
+
FleetmanagementV1UserLoggedinuserRequest.new(include_payer_group,
|
98
|
+
include_eid_details,
|
99
|
+
requested_api_name,
|
100
|
+
payer_id,
|
101
|
+
payer_number)
|
102
|
+
end
|
103
|
+
end
|
104
|
+
end
|
@@ -47,9 +47,7 @@ module ShellDataReportingApIs
|
|
47
47
|
[]
|
48
48
|
end
|
49
49
|
|
50
|
-
def initialize(card_id = SKIP,
|
51
|
-
pan = SKIP,
|
52
|
-
expiry_date = SKIP)
|
50
|
+
def initialize(card_id = SKIP, pan = SKIP, expiry_date = SKIP)
|
53
51
|
@card_id = card_id unless card_id == SKIP
|
54
52
|
@pan = pan unless pan == SKIP
|
55
53
|
@expiry_date = expiry_date unless expiry_date == SKIP
|