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
@@ -35,9 +35,9 @@ module ShellDataReportingApIs
|
|
35
35
|
|
36
36
|
# Document type
|
37
37
|
# String containing one of the following values:
|
38
|
-
# •
|
39
|
-
# •
|
40
|
-
# •
|
38
|
+
# • NAT (National)
|
39
|
+
# • INT (International)
|
40
|
+
# • SOA (Statement of Account)
|
41
41
|
# @return [String]
|
42
42
|
attr_accessor :document_type
|
43
43
|
|
@@ -132,19 +132,12 @@ module ShellDataReportingApIs
|
|
132
132
|
]
|
133
133
|
end
|
134
134
|
|
135
|
-
def initialize(document_reference = SKIP,
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
gross_amount = SKIP,
|
142
|
-
net_amount = SKIP,
|
143
|
-
tax_amount = SKIP,
|
144
|
-
currency_code = SKIP,
|
145
|
-
invoice_status = SKIP,
|
146
|
-
invoice_date = SKIP,
|
147
|
-
due_date = SKIP,
|
135
|
+
def initialize(document_reference = SKIP, invoice_number = SKIP,
|
136
|
+
payer_name = SKIP, account_number = SKIP,
|
137
|
+
account_name = SKIP, document_type = SKIP,
|
138
|
+
gross_amount = SKIP, net_amount = SKIP, tax_amount = SKIP,
|
139
|
+
currency_code = SKIP, invoice_status = SKIP,
|
140
|
+
invoice_date = SKIP, due_date = SKIP,
|
148
141
|
vat_country_iso_code = SKIP)
|
149
142
|
@document_reference = document_reference unless document_reference == SKIP
|
150
143
|
@invoice_number = invoice_number unless invoice_number == SKIP
|
@@ -44,9 +44,7 @@ module ShellDataReportingApIs
|
|
44
44
|
[]
|
45
45
|
end
|
46
46
|
|
47
|
-
def initialize(filters = SKIP,
|
48
|
-
page = SKIP,
|
49
|
-
page_size = SKIP)
|
47
|
+
def initialize(filters = SKIP, page = SKIP, page_size = SKIP)
|
50
48
|
@filters = filters unless filters == SKIP
|
51
49
|
@page = page unless page == SKIP
|
52
50
|
@page_size = page_size unless page_size == SKIP
|
@@ -70,13 +70,9 @@ module ShellDataReportingApIs
|
|
70
70
|
[]
|
71
71
|
end
|
72
72
|
|
73
|
-
def initialize(request_id = SKIP,
|
74
|
-
|
75
|
-
|
76
|
-
total_records = SKIP,
|
77
|
-
total_records_on_page = SKIP,
|
78
|
-
is_first_page = SKIP,
|
79
|
-
is_last_page = SKIP)
|
73
|
+
def initialize(request_id = SKIP, status = SKIP, data = SKIP,
|
74
|
+
total_records = SKIP, total_records_on_page = SKIP,
|
75
|
+
is_first_page = SKIP, is_last_page = SKIP)
|
80
76
|
@request_id = request_id unless request_id == SKIP
|
81
77
|
@status = status unless status == SKIP
|
82
78
|
@data = data unless data == SKIP
|
@@ -139,17 +139,10 @@ module ShellDataReportingApIs
|
|
139
139
|
]
|
140
140
|
end
|
141
141
|
|
142
|
-
def initialize(col_co_code = SKIP,
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
to_date = SKIP,
|
147
|
-
period = SKIP,
|
148
|
-
invoice_date = SKIP,
|
149
|
-
invoice_status = SKIP,
|
150
|
-
sort_by = SKIP,
|
151
|
-
col_co_id = SKIP,
|
152
|
-
payer_id = SKIP)
|
142
|
+
def initialize(col_co_code = SKIP, payer_number = SKIP,
|
143
|
+
invoice_number = SKIP, from_date = SKIP, to_date = SKIP,
|
144
|
+
period = SKIP, invoice_date = SKIP, invoice_status = SKIP,
|
145
|
+
sort_by = SKIP, col_co_id = SKIP, payer_id = SKIP)
|
153
146
|
@col_co_code = col_co_code unless col_co_code == SKIP
|
154
147
|
@payer_number = payer_number unless payer_number == SKIP
|
155
148
|
@invoice_number = invoice_number unless invoice_number == SKIP
|
@@ -49,9 +49,9 @@ module ShellDataReportingApIs
|
|
49
49
|
|
50
50
|
# Due date for payment. Format: yyyyMMdd
|
51
51
|
# Note:
|
52
|
-
# •
|
53
|
-
# •
|
54
|
-
# the SoA
|
52
|
+
# • Clients to convert this to appropriate DateTime type.
|
53
|
+
# • SoA due date is considered as the latest due date of the invoices
|
54
|
+
# within the SoA
|
55
55
|
# @return [String]
|
56
56
|
attr_accessor :due_date
|
57
57
|
|
@@ -62,10 +62,10 @@ module ShellDataReportingApIs
|
|
62
62
|
attr_accessor :invoiced_on_behalf_of
|
63
63
|
|
64
64
|
# Status of the document. Valid values –
|
65
|
-
# 1.
|
66
|
-
# 2.
|
65
|
+
# 1. Paid – Fully paid all Invoices with in the SOA.
|
66
|
+
# 2. Overdue – At least one invoice payment due date is less than current
|
67
67
|
# date with in the SOA.
|
68
|
-
# 3.
|
68
|
+
# 3. Due – At least one invoice is due for payment and is within the due
|
69
69
|
# date. There is no invoice overdue for payment.
|
70
70
|
# @return [String]
|
71
71
|
attr_accessor :status
|
@@ -138,18 +138,11 @@ module ShellDataReportingApIs
|
|
138
138
|
]
|
139
139
|
end
|
140
140
|
|
141
|
-
def initialize(statement_of_account_id = SKIP,
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
amount_due = SKIP,
|
147
|
-
amount_overdue = SKIP,
|
148
|
-
currency_code = SKIP,
|
149
|
-
currency_symbol = SKIP,
|
150
|
-
due_date = SKIP,
|
151
|
-
invoiced_on_behalf_of = SKIP,
|
152
|
-
status = SKIP,
|
141
|
+
def initialize(statement_of_account_id = SKIP, so_a_reference_number = SKIP,
|
142
|
+
statement_date = SKIP, payer_id = SKIP, payer_number = SKIP,
|
143
|
+
amount_due = SKIP, amount_overdue = SKIP,
|
144
|
+
currency_code = SKIP, currency_symbol = SKIP,
|
145
|
+
due_date = SKIP, invoiced_on_behalf_of = SKIP, status = SKIP,
|
153
146
|
gross_amount_customer_currency = SKIP,
|
154
147
|
document_reference_number = SKIP)
|
155
148
|
@statement_of_account_id = statement_of_account_id unless statement_of_account_id == SKIP
|
@@ -44,9 +44,7 @@ module ShellDataReportingApIs
|
|
44
44
|
[]
|
45
45
|
end
|
46
46
|
|
47
|
-
def initialize(filters = SKIP,
|
48
|
-
page = SKIP,
|
49
|
-
page_size = SKIP)
|
47
|
+
def initialize(filters = SKIP, page = SKIP, page_size = SKIP)
|
50
48
|
@filters = filters unless filters == SKIP
|
51
49
|
@page = page unless page == SKIP
|
52
50
|
@page_size = page_size unless page_size == SKIP
|
@@ -69,13 +69,8 @@ module ShellDataReportingApIs
|
|
69
69
|
[]
|
70
70
|
end
|
71
71
|
|
72
|
-
def initialize(request_id = SKIP,
|
73
|
-
|
74
|
-
data = SKIP,
|
75
|
-
page = SKIP,
|
76
|
-
total_records = SKIP,
|
77
|
-
total_pages = SKIP,
|
78
|
-
page_size = SKIP)
|
72
|
+
def initialize(request_id = SKIP, status = SKIP, data = SKIP, page = SKIP,
|
73
|
+
total_records = SKIP, total_pages = SKIP, page_size = SKIP)
|
79
74
|
@request_id = request_id unless request_id == SKIP
|
80
75
|
@status = status unless status == SKIP
|
81
76
|
@data = data unless data == SKIP
|
@@ -45,8 +45,7 @@ module ShellDataReportingApIs
|
|
45
45
|
]
|
46
46
|
end
|
47
47
|
|
48
|
-
def initialize(latitude = SKIP,
|
49
|
-
longitude = SKIP)
|
48
|
+
def initialize(latitude = SKIP, longitude = SKIP)
|
50
49
|
@latitude = latitude unless latitude == SKIP
|
51
50
|
@longitude = longitude unless longitude == SKIP
|
52
51
|
end
|
@@ -63,5 +62,15 @@ module ShellDataReportingApIs
|
|
63
62
|
SiteLocation.new(latitude,
|
64
63
|
longitude)
|
65
64
|
end
|
65
|
+
|
66
|
+
# Validates an instance of the object from a given value.
|
67
|
+
# @param [SiteLocation | Hash] The value against the validation is performed.
|
68
|
+
def self.validate(value)
|
69
|
+
return true if value.instance_of? self
|
70
|
+
|
71
|
+
return false unless value.instance_of? Hash
|
72
|
+
|
73
|
+
true
|
74
|
+
end
|
66
75
|
end
|
67
76
|
end
|
@@ -117,15 +117,12 @@ module ShellDataReportingApIs
|
|
117
117
|
]
|
118
118
|
end
|
119
119
|
|
120
|
-
def initialize(col_co_code = SKIP,
|
121
|
-
payer_id = SKIP,
|
122
|
-
payer_number = SKIP,
|
120
|
+
def initialize(col_co_code = SKIP, payer_id = SKIP, payer_number = SKIP,
|
123
121
|
include_monthly_invoice_trend = SKIP,
|
124
122
|
include_past_statement_of_accounts = SKIP,
|
125
123
|
due_or_over_due_soa_documents_only = SKIP,
|
126
124
|
number_of_soa_documents = SKIP,
|
127
|
-
include_account_invoices_summary = SKIP,
|
128
|
-
col_co_id = SKIP,
|
125
|
+
include_account_invoices_summary = SKIP, col_co_id = SKIP,
|
129
126
|
accounts = SKIP)
|
130
127
|
@col_co_code = col_co_code unless col_co_code == SKIP
|
131
128
|
@payer_id = payer_id unless payer_id == SKIP
|
@@ -9,23 +9,23 @@ module ShellDataReportingApIs
|
|
9
9
|
SKIP = Object.new
|
10
10
|
private_constant :SKIP
|
11
11
|
|
12
|
-
#
|
13
|
-
# @return [
|
12
|
+
# TODO: Write general description for this method
|
13
|
+
# @return [LastStatementOfAccount2]
|
14
14
|
attr_accessor :last_statement_of_account
|
15
15
|
|
16
|
-
#
|
16
|
+
# TODO: Write general description for this method
|
17
17
|
# @return [Array[MonthlyInvoiceTrend]]
|
18
18
|
attr_accessor :monthly_invoice_trend
|
19
19
|
|
20
|
-
#
|
20
|
+
# TODO: Write general description for this method
|
21
21
|
# @return [Array[PastStatementOfAccounts]]
|
22
22
|
attr_accessor :past_statement_of_accounts
|
23
23
|
|
24
|
-
#
|
24
|
+
# TODO: Write general description for this method
|
25
25
|
# @return [Array[PaymentsSinceLastSOA]]
|
26
26
|
attr_accessor :payments_since_last_soa
|
27
27
|
|
28
|
-
#
|
28
|
+
# TODO: Write general description for this method
|
29
29
|
# @return [Array[InvoicesSummaries]]
|
30
30
|
attr_accessor :invoices_summaries
|
31
31
|
|
@@ -63,8 +63,7 @@ module ShellDataReportingApIs
|
|
63
63
|
def initialize(last_statement_of_account = SKIP,
|
64
64
|
monthly_invoice_trend = SKIP,
|
65
65
|
past_statement_of_accounts = SKIP,
|
66
|
-
payments_since_last_soa = SKIP,
|
67
|
-
invoices_summaries = SKIP)
|
66
|
+
payments_since_last_soa = SKIP, invoices_summaries = SKIP)
|
68
67
|
unless last_statement_of_account == SKIP
|
69
68
|
@last_statement_of_account =
|
70
69
|
last_statement_of_account
|
@@ -84,7 +83,7 @@ module ShellDataReportingApIs
|
|
84
83
|
|
85
84
|
# Extract variables from the hash.
|
86
85
|
if hash['LastStatementOfAccount']
|
87
|
-
last_statement_of_account =
|
86
|
+
last_statement_of_account = LastStatementOfAccount2.from_hash(hash['LastStatementOfAccount'])
|
88
87
|
end
|
89
88
|
# Parameter is an array, so we need to iterate through it
|
90
89
|
monthly_invoice_trend = nil
|
@@ -45,9 +45,7 @@ module ShellDataReportingApIs
|
|
45
45
|
[]
|
46
46
|
end
|
47
47
|
|
48
|
-
def initialize(request_id = SKIP,
|
49
|
-
status = SKIP,
|
50
|
-
data = SKIP)
|
48
|
+
def initialize(request_id = SKIP, status = SKIP, data = SKIP)
|
51
49
|
@request_id = request_id unless request_id == SKIP
|
52
50
|
@status = status unless status == SKIP
|
53
51
|
@data = data unless data == SKIP
|
@@ -35,10 +35,10 @@ module ShellDataReportingApIs
|
|
35
35
|
|
36
36
|
# Tiered pricing group period.
|
37
37
|
# Possible Values
|
38
|
-
# 1.
|
39
|
-
# 2.
|
40
|
-
# 3.
|
41
|
-
# 4.
|
38
|
+
# 1. Monthly
|
39
|
+
# 2. Quarterly
|
40
|
+
# 3. Semi Annually
|
41
|
+
# 4. Annual
|
42
42
|
# @return [String]
|
43
43
|
attr_accessor :tiered_pricing_group_period
|
44
44
|
|
@@ -103,15 +103,11 @@ module ShellDataReportingApIs
|
|
103
103
|
]
|
104
104
|
end
|
105
105
|
|
106
|
-
def initialize(tier_price_list_id = SKIP,
|
107
|
-
|
108
|
-
tier_min = SKIP,
|
109
|
-
tier_max = SKIP,
|
106
|
+
def initialize(tier_price_list_id = SKIP, price_list_description = SKIP,
|
107
|
+
tier_min = SKIP, tier_max = SKIP,
|
110
108
|
tiered_pricing_group_name = SKIP,
|
111
|
-
tiered_pricing_group_period = SKIP,
|
112
|
-
|
113
|
-
price_per_unit = SKIP,
|
114
|
-
price_per_unit_after_discount = SKIP)
|
109
|
+
tiered_pricing_group_period = SKIP, discount_value = SKIP,
|
110
|
+
price_per_unit = SKIP, price_per_unit_after_discount = SKIP)
|
115
111
|
@tier_price_list_id = tier_price_list_id unless tier_price_list_id == SKIP
|
116
112
|
@price_list_description = price_list_description unless price_list_description == SKIP
|
117
113
|
@tier_min = tier_min unless tier_min == SKIP
|
@@ -182,8 +182,8 @@ module ShellDataReportingApIs
|
|
182
182
|
# @return [String]
|
183
183
|
attr_accessor :site_country
|
184
184
|
|
185
|
-
#
|
186
|
-
# @return [
|
185
|
+
# Site Country
|
186
|
+
# @return [Location]
|
187
187
|
attr_accessor :location
|
188
188
|
|
189
189
|
# Card Group Name
|
@@ -398,13 +398,13 @@ module ShellDataReportingApIs
|
|
398
398
|
attr_accessor :crm_number
|
399
399
|
|
400
400
|
# Sales Item Dispute Status if disputed
|
401
|
-
# 0
|
402
|
-
# 1
|
403
|
-
# 2
|
404
|
-
# 3
|
405
|
-
# 4
|
406
|
-
# 5
|
407
|
-
# 6
|
401
|
+
# 0 No Dispute
|
402
|
+
# 1 In Dispute
|
403
|
+
# 2 Re-Instated
|
404
|
+
# 3 Adjusted
|
405
|
+
# 4 Written Off by Colco
|
406
|
+
# 5 Written Off by Delco
|
407
|
+
# 6 Charged Back to Site
|
408
408
|
# @return [String]
|
409
409
|
attr_accessor :dispute_status
|
410
410
|
|
@@ -764,106 +764,61 @@ module ShellDataReportingApIs
|
|
764
764
|
]
|
765
765
|
end
|
766
766
|
|
767
|
-
def initialize(sales_item_id = SKIP,
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
|
773
|
-
|
774
|
-
card_expiry = SKIP,
|
775
|
-
transaction_time = SKIP,
|
776
|
-
utc_offset = SKIP,
|
777
|
-
fleet_id_input = SKIP,
|
778
|
-
odometer_input = SKIP,
|
779
|
-
driver_name = SKIP,
|
780
|
-
vehicle_registration = SKIP,
|
781
|
-
invoice_currency_code = SKIP,
|
767
|
+
def initialize(sales_item_id = SKIP, card_id = SKIP, product_id = SKIP,
|
768
|
+
transaction_guid = SKIP, transaction_date = SKIP,
|
769
|
+
customer_invoice_value_total_gross = SKIP, card_pan = SKIP,
|
770
|
+
card_expiry = SKIP, transaction_time = SKIP,
|
771
|
+
utc_offset = SKIP, fleet_id_input = SKIP,
|
772
|
+
odometer_input = SKIP, driver_name = SKIP,
|
773
|
+
vehicle_registration = SKIP, invoice_currency_code = SKIP,
|
782
774
|
invoice_currency_symbol = SKIP,
|
783
775
|
transaction_currency_code = SKIP,
|
784
776
|
transaction_currency_symbol = SKIP,
|
785
|
-
transaction_net_amount = SKIP,
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
purchased_in_country = SKIP,
|
792
|
-
account_id = SKIP,
|
793
|
-
account_number = SKIP,
|
794
|
-
account_name = SKIP,
|
795
|
-
account_short_name = SKIP,
|
796
|
-
quantity = SKIP,
|
777
|
+
transaction_net_amount = SKIP, transaction_tax = SKIP,
|
778
|
+
transaction_gross_amount = SKIP, invoice_net_amount = SKIP,
|
779
|
+
invoice_tax = SKIP, invoice_gross_amount = SKIP,
|
780
|
+
purchased_in_country = SKIP, account_id = SKIP,
|
781
|
+
account_number = SKIP, account_name = SKIP,
|
782
|
+
account_short_name = SKIP, quantity = SKIP,
|
797
783
|
fuel_product = SKIP,
|
798
784
|
unit_price_in_transaction_currency = SKIP,
|
799
785
|
unit_price_in_invoice_currency = SKIP,
|
800
786
|
unit_discount_transaction_currency = SKIP,
|
801
|
-
unit_discount_invoice_currency = SKIP,
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
del_co_exchange_rate = SKIP,
|
816
|
-
col_co_exchange_rate = SKIP,
|
817
|
-
is_shell_site = SKIP,
|
818
|
-
network = SKIP,
|
819
|
-
site_group_id = SKIP,
|
820
|
-
site_group_name = SKIP,
|
821
|
-
posting_date = SKIP,
|
822
|
-
issuer_code = SKIP,
|
823
|
-
purchased_in_country_code = SKIP,
|
824
|
-
customer_country_code = SKIP,
|
825
|
-
customer_country = SKIP,
|
826
|
-
release_code = SKIP,
|
827
|
-
card_group_id = SKIP,
|
828
|
-
card_sequence_number = SKIP,
|
829
|
-
check_digit = SKIP,
|
830
|
-
fleet_id_description = SKIP,
|
831
|
-
vat_rate = SKIP,
|
787
|
+
unit_discount_invoice_currency = SKIP, is_invoiced = SKIP,
|
788
|
+
invoice_number = SKIP, invoice_date = SKIP, site_code = SKIP,
|
789
|
+
site_name = SKIP, site_country = SKIP, location = SKIP,
|
790
|
+
card_group_name = SKIP, receipt_number = SKIP,
|
791
|
+
product_code = SKIP, product_name = SKIP,
|
792
|
+
product_group_id = SKIP, product_group_name = SKIP,
|
793
|
+
del_co_exchange_rate = SKIP, col_co_exchange_rate = SKIP,
|
794
|
+
is_shell_site = SKIP, network = SKIP, site_group_id = SKIP,
|
795
|
+
site_group_name = SKIP, posting_date = SKIP,
|
796
|
+
issuer_code = SKIP, purchased_in_country_code = SKIP,
|
797
|
+
customer_country_code = SKIP, customer_country = SKIP,
|
798
|
+
release_code = SKIP, card_group_id = SKIP,
|
799
|
+
card_sequence_number = SKIP, check_digit = SKIP,
|
800
|
+
fleet_id_description = SKIP, vat_rate = SKIP,
|
832
801
|
vat_category = SKIP,
|
833
802
|
effective_discount_in_trx_currency = SKIP,
|
834
|
-
transaction_type = SKIP,
|
835
|
-
|
836
|
-
vat_applicable = SKIP,
|
837
|
-
net_invoice_indicator = SKIP,
|
803
|
+
transaction_type = SKIP, pin_indicator = SKIP,
|
804
|
+
vat_applicable = SKIP, net_invoice_indicator = SKIP,
|
838
805
|
customer_currency_code = SKIP,
|
839
806
|
customer_currency_symbol = SKIP,
|
840
807
|
effective_unit_discount_in_customer_currency = SKIP,
|
841
808
|
effective_discount_in_customer_currency = SKIP,
|
842
809
|
va_ton_net_amount_in_customer_currency = SKIP,
|
843
|
-
discount_type = SKIP,
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
|
851
|
-
payer_name = SKIP,
|
852
|
-
card_expiry_period = SKIP,
|
853
|
-
authorisation_code = SKIP,
|
854
|
-
transaction_id = SKIP,
|
855
|
-
transaction_line = SKIP,
|
856
|
-
allow_clearing = SKIP,
|
857
|
-
crm_number = SKIP,
|
858
|
-
dispute_status = SKIP,
|
859
|
-
rebate_rate = SKIP,
|
810
|
+
discount_type = SKIP, transaction_status = SKIP,
|
811
|
+
payer_group = SKIP, refund_flag = SKIP,
|
812
|
+
original_sales_item_id = SKIP, delco_name = SKIP,
|
813
|
+
delco_code = SKIP, payer_number = SKIP, payer_name = SKIP,
|
814
|
+
card_expiry_period = SKIP, authorisation_code = SKIP,
|
815
|
+
transaction_id = SKIP, transaction_line = SKIP,
|
816
|
+
allow_clearing = SKIP, crm_number = SKIP,
|
817
|
+
dispute_status = SKIP, rebate_rate = SKIP,
|
860
818
|
del_co_to_col_co_exchange_rate = SKIP,
|
861
|
-
net_euro_amount = SKIP,
|
862
|
-
|
863
|
-
|
864
|
-
parent_customer_number = SKIP,
|
865
|
-
va_ton_net_amount = SKIP,
|
866
|
-
vat_country = SKIP)
|
819
|
+
net_euro_amount = SKIP, euro_rebate_amount = SKIP,
|
820
|
+
euro_vat_amount = SKIP, parent_customer_number = SKIP,
|
821
|
+
va_ton_net_amount = SKIP, vat_country = SKIP)
|
867
822
|
@sales_item_id = sales_item_id unless sales_item_id == SKIP
|
868
823
|
@card_id = card_id unless card_id == SKIP
|
869
824
|
@product_id = product_id unless product_id == SKIP
|
@@ -1071,7 +1026,7 @@ module ShellDataReportingApIs
|
|
1071
1026
|
site_code = hash.key?('SiteCode') ? hash['SiteCode'] : SKIP
|
1072
1027
|
site_name = hash.key?('SiteName') ? hash['SiteName'] : SKIP
|
1073
1028
|
site_country = hash.key?('SiteCountry') ? hash['SiteCountry'] : SKIP
|
1074
|
-
location =
|
1029
|
+
location = Location.from_hash(hash['Location']) if hash['Location']
|
1075
1030
|
card_group_name =
|
1076
1031
|
hash.key?('CardGroupName') ? hash['CardGroupName'] : SKIP
|
1077
1032
|
receipt_number = hash.key?('ReceiptNumber') ? hash['ReceiptNumber'] : SKIP
|
@@ -90,18 +90,18 @@ module ShellDataReportingApIs
|
|
90
90
|
# value or usage to be identified in the given transactions date range. It
|
91
91
|
# is only applied when the Output Type is specified as "Cards".
|
92
92
|
# Mandatory when Output Type is Cards
|
93
|
-
# 1.
|
94
|
-
# 2.
|
95
|
-
# 3.
|
96
|
-
# 4.
|
93
|
+
# 1. Month
|
94
|
+
# 2. Week
|
95
|
+
# 3. Day
|
96
|
+
# 4. Date Range
|
97
97
|
# @return [Integer]
|
98
98
|
attr_accessor :exception_period
|
99
99
|
|
100
100
|
# Output Type for Exceptions.
|
101
101
|
# Mandatory.
|
102
102
|
# Possible values:
|
103
|
-
# 1.
|
104
|
-
# 2.
|
103
|
+
# 1. Transactions
|
104
|
+
# 2. Cards
|
105
105
|
# @return [Integer]
|
106
106
|
attr_accessor :output_type
|
107
107
|
|
@@ -172,21 +172,12 @@ module ShellDataReportingApIs
|
|
172
172
|
[]
|
173
173
|
end
|
174
174
|
|
175
|
-
def initialize(transactions_from_date = nil,
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
payer_id = SKIP,
|
182
|
-
payer_number = SKIP,
|
183
|
-
accounts = SKIP,
|
184
|
-
value = SKIP,
|
185
|
-
products = SKIP,
|
186
|
-
exception_period = SKIP,
|
187
|
-
fuel_only = SKIP,
|
188
|
-
site_group_ids = SKIP,
|
189
|
-
use_field_id = SKIP)
|
175
|
+
def initialize(transactions_from_date = nil, transactions_to_date = nil,
|
176
|
+
condition = nil, output_type = nil, col_co_id = SKIP,
|
177
|
+
col_co_code = SKIP, payer_id = SKIP, payer_number = SKIP,
|
178
|
+
accounts = SKIP, value = SKIP, products = SKIP,
|
179
|
+
exception_period = SKIP, fuel_only = SKIP,
|
180
|
+
site_group_ids = SKIP, use_field_id = SKIP)
|
190
181
|
@col_co_id = col_co_id unless col_co_id == SKIP
|
191
182
|
@col_co_code = col_co_code unless col_co_code == SKIP
|
192
183
|
@payer_id = payer_id unless payer_id == SKIP
|
@@ -52,10 +52,8 @@ module ShellDataReportingApIs
|
|
52
52
|
]
|
53
53
|
end
|
54
54
|
|
55
|
-
def initialize(card_exceptions = SKIP,
|
56
|
-
|
57
|
-
error = SKIP,
|
58
|
-
request_id = SKIP)
|
55
|
+
def initialize(card_exceptions = SKIP, transaction_exceptions = SKIP,
|
56
|
+
error = SKIP, request_id = SKIP)
|
59
57
|
@card_exceptions = card_exceptions unless card_exceptions == SKIP
|
60
58
|
@transaction_exceptions = transaction_exceptions unless transaction_exceptions == SKIP
|
61
59
|
@error = error unless error == SKIP
|
@@ -106,10 +106,10 @@ module ShellDataReportingApIs
|
|
106
106
|
|
107
107
|
# Fee items Period. This is ignored when FromDate/Todate is supplied on the
|
108
108
|
# request.
|
109
|
-
# 1.
|
110
|
-
# 2.
|
111
|
-
# 3.
|
112
|
-
# 4.
|
109
|
+
# 1. Last 7 Days
|
110
|
+
# 2. Last 30 Days
|
111
|
+
# 3. Last 90 Days
|
112
|
+
# 4. Last 180 Days
|
113
113
|
# Example : Pass 1 for Last 7 days fee items
|
114
114
|
# @return [Integer]
|
115
115
|
attr_accessor :period
|
@@ -121,11 +121,11 @@ module ShellDataReportingApIs
|
|
121
121
|
# Product Id
|
122
122
|
# Optional
|
123
123
|
# Example: Sample list of product ids and description.
|
124
|
-
# 100
|
125
|
-
# 102
|
126
|
-
# 103
|
127
|
-
# 104
|
128
|
-
# 105
|
124
|
+
# 100 Service fee
|
125
|
+
# 102 Invoice production fee
|
126
|
+
# 103 Account fee
|
127
|
+
# 104 Transaction fee
|
128
|
+
# 105 Card membership fee
|
129
129
|
# @return [Integer]
|
130
130
|
attr_accessor :product_id
|
131
131
|
|
@@ -149,10 +149,10 @@ module ShellDataReportingApIs
|
|
149
149
|
attr_accessor :line_item_description
|
150
150
|
|
151
151
|
# Allowed Sorting Options:
|
152
|
-
# •
|
153
|
-
# •
|
154
|
-
# •
|
155
|
-
# •
|
152
|
+
# • FeeDateAscending
|
153
|
+
# • FeeDateDescending
|
154
|
+
# • NetAmountAscending
|
155
|
+
# • NetAmountDescending
|
156
156
|
# Optional.
|
157
157
|
# Default: 1
|
158
158
|
# @return [String]
|
@@ -243,26 +243,14 @@ module ShellDataReportingApIs
|
|
243
243
|
]
|
244
244
|
end
|
245
245
|
|
246
|
-
def initialize(col_co_id = SKIP,
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
fee_type_group = SKIP,
|
255
|
-
fee_type_id = SKIP,
|
256
|
-
from_date = SKIP,
|
257
|
-
to_date = SKIP,
|
258
|
-
period = SKIP,
|
259
|
-
include_cancelled_items = SKIP,
|
260
|
-
product_id = SKIP,
|
261
|
-
product_code = SKIP,
|
262
|
-
line_item_description = SKIP,
|
263
|
-
sort_order = SKIP,
|
264
|
-
current_page = SKIP,
|
265
|
-
page_size = SKIP)
|
246
|
+
def initialize(col_co_id = SKIP, col_co_code = SKIP, payer_id = SKIP,
|
247
|
+
payer_number = SKIP, accounts = SKIP, card_id = SKIP,
|
248
|
+
card_pan = SKIP, invoice_status = SKIP,
|
249
|
+
fee_type_group = SKIP, fee_type_id = SKIP, from_date = SKIP,
|
250
|
+
to_date = SKIP, period = SKIP,
|
251
|
+
include_cancelled_items = SKIP, product_id = SKIP,
|
252
|
+
product_code = SKIP, line_item_description = SKIP,
|
253
|
+
sort_order = SKIP, current_page = SKIP, page_size = SKIP)
|
266
254
|
@col_co_id = col_co_id unless col_co_id == SKIP
|
267
255
|
@col_co_code = col_co_code unless col_co_code == SKIP
|
268
256
|
@payer_id = payer_id unless payer_id == SKIP
|