card-management-sdk 1.0.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +27 -19
- data/lib/shell_card_management_ap_is/client.rb +2 -3
- data/lib/shell_card_management_ap_is/configuration.rb +15 -22
- data/lib/shell_card_management_ap_is/controllers/base_controller.rb +9 -9
- data/lib/shell_card_management_ap_is/controllers/card_controller.rb +434 -434
- data/lib/shell_card_management_ap_is/controllers/customer_controller.rb +261 -262
- data/lib/shell_card_management_ap_is/controllers/o_auth_authorization_controller.rb +11 -11
- data/lib/shell_card_management_ap_is/controllers/restriction_controller.rb +421 -291
- data/lib/shell_card_management_ap_is/exceptions/error_object_exception.rb +15 -15
- data/lib/shell_card_management_ap_is/exceptions/{error_user_access_error1_exception.rb → fleetmanagement_v1_customer_customer403_error_exception.rb} +17 -17
- data/lib/shell_card_management_ap_is/exceptions/{default_error_exception.rb → fleetmanagement_v1_customer_payers400_error_exception.rb} +20 -20
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_customer_payers404_error_exception.rb +32 -0
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser400_error_exception.rb +32 -0
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser401_error_exception.rb +32 -0
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser403_error_exception.rb +32 -0
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser404_error_exception.rb +32 -0
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser500_error_exception.rb +32 -0
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v2_restriction_searchcard401_error_exception.rb +32 -0
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v2_restriction_searchcard500_error_exception.rb +32 -0
- data/lib/shell_card_management_ap_is/exceptions/o_auth_provider_exception.rb +15 -15
- data/lib/shell_card_management_ap_is/http/auth/bearer_token.rb +54 -10
- data/lib/shell_card_management_ap_is/models/account_access.rb +3 -8
- data/lib/shell_card_management_ap_is/models/account_request.rb +17 -26
- data/lib/shell_card_management_ap_is/models/account_response.rb +2 -6
- data/lib/shell_card_management_ap_is/models/account_response_accounts_items.rb +29 -53
- data/lib/shell_card_management_ap_is/models/account_restriction_request.rb +28 -10
- data/lib/shell_card_management_ap_is/models/account_restriction_response.rb +60 -11
- data/lib/shell_card_management_ap_is/models/account_velocity_limit.rb +11 -19
- data/lib/shell_card_management_ap_is/models/accounts.rb +1 -2
- data/lib/shell_card_management_ap_is/models/address.rb +4 -11
- data/lib/shell_card_management_ap_is/models/audit_request.rb +37 -33
- data/lib/shell_card_management_ap_is/models/audit_response.rb +2 -6
- data/lib/shell_card_management_ap_is/models/audit_response_audits_items.rb +50 -63
- data/lib/shell_card_management_ap_is/models/auto_renew_card_request.rb +2 -5
- data/lib/shell_card_management_ap_is/models/auto_renew_card_request_auto_renew_cards_items.rb +13 -5
- data/lib/shell_card_management_ap_is/models/auto_renew_card_response.rb +1 -3
- data/lib/shell_card_management_ap_is/models/auto_renew_card_response_data_items.rb +13 -3
- data/lib/shell_card_management_ap_is/models/bank_account.rb +5 -13
- data/lib/shell_card_management_ap_is/models/{search_account_limit_request_filters.rb → budle_details_request.rb} +29 -22
- data/lib/shell_card_management_ap_is/models/{create_bundle_response_data_items_cards_items.rb → bundle_card_restriction_status.rb} +4 -3
- data/lib/shell_card_management_ap_is/models/bundle_details_response.rb +181 -0
- data/lib/shell_card_management_ap_is/models/bundle_restriction.rb +86 -103
- data/lib/shell_card_management_ap_is/models/bundle_restriction_update.rb +185 -0
- data/lib/shell_card_management_ap_is/models/bundled_details_product_list.rb +116 -0
- data/lib/shell_card_management_ap_is/models/bundled_restrictions_list.rb +82 -0
- data/lib/shell_card_management_ap_is/models/cancel_card_request.rb +1 -3
- data/lib/shell_card_management_ap_is/models/cancel_card_response.rb +3 -6
- data/lib/shell_card_management_ap_is/models/card.rb +43 -51
- data/lib/shell_card_management_ap_is/models/card_block_schedule.rb +1 -2
- data/lib/shell_card_management_ap_is/models/{summary_of_bundle_response_data_items_card_bundles_items.rb → card_bundle.rb} +11 -18
- data/lib/shell_card_management_ap_is/models/card_contact.rb +222 -0
- data/lib/shell_card_management_ap_is/models/card_day_time_restrictions.rb +3 -9
- data/lib/shell_card_management_ap_is/models/card_delivery_address.rb +218 -0
- data/lib/shell_card_management_ap_is/models/card_delivery_contact.rb +7 -14
- data/lib/shell_card_management_ap_is/models/card_detail.rb +50 -61
- data/lib/shell_card_management_ap_is/models/card_details_request.rb +6 -14
- data/lib/shell_card_management_ap_is/models/card_details_response.rb +52 -89
- data/lib/shell_card_management_ap_is/models/card_details_response_card_block_schedules_items_all_of0.rb +1 -2
- data/lib/shell_card_management_ap_is/models/card_details_response_card_delivery_address.rb +6 -15
- data/lib/shell_card_management_ap_is/models/card_details_response_fuel_sets_items.rb +1 -2
- data/lib/shell_card_management_ap_is/models/card_details_response_non_fuel_sets_items.rb +1 -2
- data/lib/shell_card_management_ap_is/models/card_details_response_pin_delivery_address.rb +6 -15
- data/lib/shell_card_management_ap_is/models/card_group_request.rb +6 -12
- data/lib/shell_card_management_ap_is/models/card_group_response.rb +2 -6
- data/lib/shell_card_management_ap_is/models/card_group_response_card_groups_items.rb +10 -20
- data/lib/shell_card_management_ap_is/models/card_management_v1_cancel_request.rb +104 -0
- data/lib/shell_card_management_ap_is/models/card_management_v1_ordercard_request.rb +59 -0
- data/lib/shell_card_management_ap_is/models/card_management_v1_pinreminder_request.rb +130 -0
- data/lib/shell_card_management_ap_is/models/card_management_v1_updatestatus_request.rb +122 -0
- data/lib/shell_card_management_ap_is/models/card_move_request.rb +4 -9
- data/lib/shell_card_management_ap_is/models/card_move_request_cards_items.rb +1 -3
- data/lib/shell_card_management_ap_is/models/card_move_response.rb +2 -4
- data/lib/shell_card_management_ap_is/models/card_move_response_error_cards_items.rb +2 -5
- data/lib/shell_card_management_ap_is/models/card_move_response_successful_requests_items.rb +2 -5
- data/lib/shell_card_management_ap_is/models/{restriction_card_request.rb → card_restriction_req.rb} +42 -50
- data/lib/shell_card_management_ap_is/models/card_restriction_response.rb +96 -0
- data/lib/shell_card_management_ap_is/models/card_search_response.rb +2 -7
- data/lib/shell_card_management_ap_is/models/card_settings.rb +626 -0
- data/lib/shell_card_management_ap_is/models/card_summary_request.rb +3 -5
- data/lib/shell_card_management_ap_is/models/card_summary_response.rb +1 -3
- data/lib/shell_card_management_ap_is/models/card_type_request.rb +3 -7
- data/lib/shell_card_management_ap_is/models/card_type_response.rb +1 -3
- data/lib/shell_card_management_ap_is/models/card_type_response_customer_card_types_items.rb +15 -31
- data/lib/shell_card_management_ap_is/models/card_type_response_error.rb +1 -2
- data/lib/shell_card_management_ap_is/models/card_usage_restrictions.rb +5 -10
- data/lib/shell_card_management_ap_is/models/col_co_access.rb +2 -4
- data/lib/shell_card_management_ap_is/models/{location_restrictions_country_restrictions.rb → country_restriction.rb} +20 -21
- data/lib/shell_card_management_ap_is/models/create_bundle_request.rb +64 -62
- data/lib/shell_card_management_ap_is/models/create_bundle_response.rb +122 -47
- data/lib/shell_card_management_ap_is/models/create_card_group_request.rb +3 -9
- data/lib/shell_card_management_ap_is/models/create_card_group_request_cards_items.rb +1 -3
- data/lib/shell_card_management_ap_is/models/create_card_group_response.rb +2 -5
- data/lib/shell_card_management_ap_is/models/create_card_group_response_error_cards_items.rb +1 -3
- data/lib/shell_card_management_ap_is/models/create_card_group_response_successful_requests_items.rb +1 -3
- data/lib/shell_card_management_ap_is/models/create_card_response.rb +1 -2
- data/lib/shell_card_management_ap_is/models/customer_contract.rb +1 -2
- data/lib/shell_card_management_ap_is/models/customer_detail_request.rb +2 -5
- data/lib/shell_card_management_ap_is/models/customer_detail_response.rb +31 -45
- data/lib/shell_card_management_ap_is/models/day_time_restriction.rb +133 -0
- data/lib/shell_card_management_ap_is/models/day_time_restrictions.rb +52 -82
- data/lib/shell_card_management_ap_is/models/{summary_of_bundle_request.rb → default_error.rb} +10 -10
- data/lib/shell_card_management_ap_is/models/default_error_fault.rb +4 -5
- data/lib/shell_card_management_ap_is/models/delete_bundle_request.rb +14 -16
- data/lib/shell_card_management_ap_is/models/delete_bundle_response.rb +9 -10
- data/lib/shell_card_management_ap_is/models/delivery_address_update.rb +13 -11
- data/lib/shell_card_management_ap_is/models/delivery_address_update_references.rb +2 -5
- data/lib/shell_card_management_ap_is/models/delivery_address_update_references2.rb +98 -0
- data/lib/shell_card_management_ap_is/models/delivery_address_update_request.rb +3 -7
- data/lib/shell_card_management_ap_is/models/delivery_address_update_response.rb +5 -14
- data/lib/shell_card_management_ap_is/models/delivery_addresses.rb +7 -18
- data/lib/shell_card_management_ap_is/models/detail.rb +50 -0
- data/lib/shell_card_management_ap_is/models/eid_access.rb +1 -2
- data/lib/shell_card_management_ap_is/models/error_details.rb +1 -3
- data/lib/shell_card_management_ap_is/models/error_status.rb +1 -2
- data/lib/shell_card_management_ap_is/models/error_user_access_error.rb +1 -2
- data/lib/shell_card_management_ap_is/models/fault.rb +59 -0
- data/lib/shell_card_management_ap_is/models/filters.rb +702 -0
- data/lib/shell_card_management_ap_is/models/filters1.rb +579 -0
- data/lib/shell_card_management_ap_is/models/filters2.rb +200 -0
- data/lib/shell_card_management_ap_is/models/finance_currency.rb +1 -2
- data/lib/shell_card_management_ap_is/models/finance_currency2.rb +96 -0
- data/lib/shell_card_management_ap_is/models/{restriction_search_card_request.rb → fleetmanagement_v1_customer_payers400_error1.rb} +10 -10
- data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_customer_payers404_error1.rb +50 -0
- data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser400_error1.rb +50 -0
- data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser401_error1.rb +50 -0
- data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser404_error1.rb +50 -0
- data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser500_error1.rb +50 -0
- data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser_request.rb +104 -0
- data/lib/shell_card_management_ap_is/models/fleetmanagement_v2_restriction_searchcard401_error1.rb +50 -0
- data/lib/shell_card_management_ap_is/models/fleetmanagement_v2_restriction_searchcard500_error1.rb +50 -0
- data/lib/shell_card_management_ap_is/models/generate_pin_key_response.rb +1 -2
- data/lib/shell_card_management_ap_is/models/invoice_distribution_method.rb +2 -4
- data/lib/shell_card_management_ap_is/models/{location_restrictions.rb → location_restriction.rb} +20 -35
- data/lib/shell_card_management_ap_is/models/logged_in_user_request.rb +2 -4
- data/lib/shell_card_management_ap_is/models/logged_in_user_response.rb +12 -25
- data/lib/shell_card_management_ap_is/models/{location_restrictions_network_restrictions_items.rb → network_restriction.rb} +18 -20
- data/lib/shell_card_management_ap_is/models/o_auth_token.rb +2 -6
- data/lib/shell_card_management_ap_is/models/order_card_enquiry.rb +48 -45
- data/lib/shell_card_management_ap_is/models/order_card_enquiry_req.rb +5 -12
- data/lib/shell_card_management_ap_is/models/order_card_enquiry_request.rb +3 -4
- data/lib/shell_card_management_ap_is/models/order_card_enquiry_response.rb +1 -3
- data/lib/shell_card_management_ap_is/models/order_card_response.rb +1 -3
- data/lib/shell_card_management_ap_is/models/{location_restrictions_partner_site_restrictions_items.rb → partner_site_restriction.rb} +10 -12
- data/lib/shell_card_management_ap_is/models/payer_access.rb +3 -8
- data/lib/shell_card_management_ap_is/models/payer_details.rb +55 -96
- data/lib/shell_card_management_ap_is/models/payer_request.rb +9 -12
- data/lib/shell_card_management_ap_is/models/payer_response.rb +2 -6
- data/lib/shell_card_management_ap_is/models/payers.rb +2 -5
- data/lib/shell_card_management_ap_is/models/pin_advice_types.rb +5 -6
- data/lib/shell_card_management_ap_is/models/pin_contact.rb +234 -0
- data/lib/shell_card_management_ap_is/models/pin_deliver_to.rb +161 -0
- data/lib/shell_card_management_ap_is/models/pin_delivery_address.rb +222 -0
- data/lib/shell_card_management_ap_is/models/pin_delivery_contact.rb +7 -14
- data/lib/shell_card_management_ap_is/models/pin_delivery_details.rb +4 -11
- data/lib/shell_card_management_ap_is/models/pin_reminder_card_details.rb +19 -17
- data/lib/shell_card_management_ap_is/models/pin_reminder_reference.rb +2 -5
- data/lib/shell_card_management_ap_is/models/pin_reminder_request.rb +2 -6
- data/lib/shell_card_management_ap_is/models/pin_reminder_response.rb +1 -3
- data/lib/shell_card_management_ap_is/models/product_all_of0.rb +1 -2
- data/lib/shell_card_management_ap_is/models/product_group.rb +2 -6
- data/lib/shell_card_management_ap_is/models/{product_restrictions.rb → product_restriction_card.rb} +9 -12
- data/lib/shell_card_management_ap_is/models/purchase_categories.rb +1 -4
- data/lib/shell_card_management_ap_is/models/purchase_category1_all_of0.rb +10 -15
- data/lib/shell_card_management_ap_is/models/purchase_category_request.rb +2 -5
- data/lib/shell_card_management_ap_is/models/purchase_category_response.rb +1 -2
- data/lib/shell_card_management_ap_is/models/replace_card_settings.rb +25 -40
- data/lib/shell_card_management_ap_is/models/restriction.rb +82 -0
- data/lib/shell_card_management_ap_is/models/{restriction_search_card_response_data_items.rb → restriction_card_list.rb} +284 -328
- data/lib/shell_card_management_ap_is/models/{restriction_card_request_cards_items.rb → restriction_cards_list.rb} +69 -82
- data/lib/shell_card_management_ap_is/models/restriction_product.rb +62 -0
- data/lib/shell_card_management_ap_is/models/{restriction_card_response_data_items.rb → restrictioncards_res.rb} +100 -114
- data/lib/shell_card_management_ap_is/models/role.rb +3 -6
- data/lib/shell_card_management_ap_is/models/schedule_card_block_cards_items.rb +42 -39
- data/lib/shell_card_management_ap_is/models/schedule_card_block_request.rb +1 -2
- data/lib/shell_card_management_ap_is/models/schedule_card_block_response.rb +1 -3
- data/lib/shell_card_management_ap_is/models/schedule_card_block_response_data_items.rb +1 -3
- data/lib/shell_card_management_ap_is/models/search_account_limit_request.rb +79 -10
- data/lib/shell_card_management_ap_is/models/search_account_limit_response.rb +74 -20
- data/lib/shell_card_management_ap_is/models/search_card.rb +13 -3
- data/lib/shell_card_management_ap_is/models/search_card_request.rb +4 -6
- data/lib/shell_card_management_ap_is/models/{restriction_search_card_request_filters_cards_items.rb → search_card_restriction.rb} +19 -16
- data/lib/shell_card_management_ap_is/models/{restriction_search_card_request_filters.rb → search_card_restriction_req.rb} +72 -71
- data/lib/shell_card_management_ap_is/models/search_card_restriction_res.rb +89 -0
- data/lib/shell_card_management_ap_is/models/search_product_restriction.rb +3 -4
- data/lib/shell_card_management_ap_is/models/search_request.rb +25 -47
- data/lib/shell_card_management_ap_is/models/{location_restrictions_shell_site_restrictions_items.rb → shell_site_restriction.rb} +10 -17
- data/lib/shell_card_management_ap_is/models/submitted_card.rb +24 -9
- data/lib/shell_card_management_ap_is/models/summary_request.rb +21 -39
- data/lib/shell_card_management_ap_is/models/summary_response.rb +5 -11
- data/lib/shell_card_management_ap_is/models/{summary_of_bundle_response_data_items.rb → summaryofbundle_response.rb} +36 -33
- data/lib/shell_card_management_ap_is/models/{summaryof_bundle.rb → summaryofbundler_request.rb} +43 -36
- data/lib/shell_card_management_ap_is/models/update_bundle_request.rb +65 -70
- data/lib/shell_card_management_ap_is/models/update_bundle_response.rb +75 -21
- data/lib/shell_card_management_ap_is/models/update_card.rb +31 -20
- data/lib/shell_card_management_ap_is/models/update_card_group_request.rb +9 -17
- data/lib/shell_card_management_ap_is/models/update_card_group_response.rb +3 -6
- data/lib/shell_card_management_ap_is/models/update_card_group_response_move_card_references_items.rb +1 -3
- data/lib/shell_card_management_ap_is/models/update_card_renewal_address.rb +5 -11
- data/lib/shell_card_management_ap_is/models/update_card_renewal_address2.rb +155 -0
- data/lib/shell_card_management_ap_is/models/update_card_status_request.rb +1 -3
- data/lib/shell_card_management_ap_is/models/update_card_status_response.rb +2 -5
- data/lib/shell_card_management_ap_is/models/update_m_pay_reg_status_request.rb +2 -5
- data/lib/shell_card_management_ap_is/models/update_m_pay_reg_status_request_m_pay_requests_items.rb +3 -5
- data/lib/shell_card_management_ap_is/models/update_m_pay_reg_status_response.rb +1 -2
- data/lib/shell_card_management_ap_is/models/usage_restriction.rb +1127 -0
- data/lib/shell_card_management_ap_is/models/{usage_restrictions.rb → usage_restrictions_card.rb} +74 -131
- data/lib/shell_card_management_ap_is/utilities/file_wrapper.rb +9 -9
- data/lib/shell_card_management_ap_is.rb +139 -95
- metadata +74 -38
- data/lib/shell_card_management_ap_is/models/create_bundle_request_restrictions.rb +0 -147
- data/lib/shell_card_management_ap_is/models/create_bundle_response_data_items.rb +0 -125
- data/lib/shell_card_management_ap_is/models/restriction_card_response.rb +0 -91
- data/lib/shell_card_management_ap_is/models/restriction_search_card_response.rb +0 -79
- data/lib/shell_card_management_ap_is/models/search_account_limit_response_data.rb +0 -106
- data/lib/shell_card_management_ap_is/models/search_card_response_restrictions.rb +0 -99
- data/lib/shell_card_management_ap_is/models/summary_of_bundle_response.rb +0 -79
- data/lib/shell_card_management_ap_is/models/url_enum.rb +0 -23
@@ -4,140 +4,101 @@
|
|
4
4
|
# ( https://apimatic.io ).
|
5
5
|
|
6
6
|
module ShellCardManagementApIs
|
7
|
-
#
|
8
|
-
class
|
7
|
+
# RestrictionCardList Model.
|
8
|
+
class RestrictionCardList < BaseModel
|
9
9
|
SKIP = Object.new
|
10
10
|
private_constant :SKIP
|
11
11
|
|
12
|
-
#
|
12
|
+
# Unique Card Id
|
13
13
|
# @return [Integer]
|
14
|
-
attr_accessor :
|
15
|
-
|
16
|
-
# Bundle Id associated with card
|
17
|
-
# @return [SearchCardResponseRestrictions]
|
18
|
-
attr_accessor :restrictions
|
14
|
+
attr_accessor :card_id
|
19
15
|
|
20
|
-
#
|
16
|
+
# Card PAN
|
21
17
|
# @return [String]
|
22
|
-
attr_accessor :
|
18
|
+
attr_accessor :pan
|
23
19
|
|
24
|
-
#
|
20
|
+
# Expiry date of the card
|
21
|
+
# Format: yyyyMMdd
|
22
|
+
# Note: Clients to convert this to appropriate DateTime type.
|
25
23
|
# @return [String]
|
26
|
-
attr_accessor :
|
24
|
+
attr_accessor :expiry_date
|
27
25
|
|
28
|
-
#
|
26
|
+
# Card Status id
|
29
27
|
# @return [Integer]
|
30
|
-
attr_accessor :
|
28
|
+
attr_accessor :status_id
|
31
29
|
|
32
|
-
#
|
30
|
+
# Status Description (Active, Temporarily Blocked, etc.,)
|
33
31
|
# @return [String]
|
34
|
-
attr_accessor :
|
32
|
+
attr_accessor :status_description
|
35
33
|
|
36
|
-
#
|
34
|
+
# Driver name
|
35
|
+
# Example: ANDREW GILBERRY
|
37
36
|
# @return [String]
|
38
|
-
attr_accessor :
|
37
|
+
attr_accessor :driver_name
|
39
38
|
|
40
|
-
#
|
39
|
+
# Vehicle registration number
|
40
|
+
# Example: MV65YLH
|
41
41
|
# @return [String]
|
42
|
-
attr_accessor :
|
43
|
-
|
44
|
-
# Unique Card
|
45
|
-
# @return [Integer]
|
46
|
-
attr_accessor :card_id
|
42
|
+
attr_accessor :vrn
|
47
43
|
|
48
|
-
#
|
44
|
+
# Issue date
|
45
|
+
# Format: yyyyMMdd
|
46
|
+
# Note: Clients to convert this to appropriate DateTime type.
|
49
47
|
# @return [String]
|
50
|
-
attr_accessor :
|
48
|
+
attr_accessor :issue_date
|
51
49
|
|
52
|
-
#
|
53
|
-
# Example Id & Description:
|
54
|
-
# 1 - Philippines CRT 7077861
|
55
|
-
# 2- Philippines Fleet 7002861
|
56
|
-
# 5-SHELL FLEET- HONG KONG 7002821
|
57
|
-
# 6-SHELL NHF- HONG KONG 7002821
|
58
|
-
# 7-SHELL CRT- HONG KONG 7077821
|
50
|
+
# Issue Number
|
59
51
|
# @return [Integer]
|
60
|
-
attr_accessor :
|
52
|
+
attr_accessor :issue_number
|
61
53
|
|
62
|
-
#
|
63
|
-
# Example
|
64
|
-
#
|
65
|
-
|
66
|
-
|
67
|
-
#
|
68
|
-
#
|
54
|
+
# Account ID
|
55
|
+
# Example: 29484
|
56
|
+
# @return [Integer]
|
57
|
+
attr_accessor :account_id
|
58
|
+
|
59
|
+
# Account Number
|
60
|
+
# Example: GB99215176
|
69
61
|
# @return [String]
|
70
|
-
attr_accessor :
|
62
|
+
attr_accessor :account_number
|
71
63
|
|
72
|
-
#
|
64
|
+
# Account Name
|
65
|
+
# Example: MATTHEW ALGIE & COMPANY LIMITED
|
73
66
|
# @return [String]
|
74
|
-
attr_accessor :
|
67
|
+
attr_accessor :account_name
|
75
68
|
|
76
|
-
#
|
69
|
+
# Account Short Name
|
77
70
|
# @return [String]
|
78
|
-
attr_accessor :
|
71
|
+
attr_accessor :account_short_name
|
79
72
|
|
80
73
|
# ISO currency code of the Customer Currency
|
74
|
+
# Example: GBP
|
81
75
|
# @return [String]
|
82
76
|
attr_accessor :currency_code
|
83
77
|
|
84
|
-
#
|
78
|
+
# ISO currency code of the country.
|
79
|
+
# Example: GBP
|
85
80
|
# @return [String]
|
86
|
-
attr_accessor :
|
81
|
+
attr_accessor :col_co_currency_code
|
87
82
|
|
88
|
-
#
|
83
|
+
# Currency symbol of the country.
|
84
|
+
# Example: £, $
|
89
85
|
# @return [String]
|
90
|
-
attr_accessor :
|
86
|
+
attr_accessor :col_co_currency_symbol
|
91
87
|
|
92
|
-
#
|
93
|
-
#
|
88
|
+
# ISO currency code of the country.
|
89
|
+
# Example: GBP
|
94
90
|
# @return [String]
|
95
|
-
attr_accessor :
|
96
|
-
|
97
|
-
# True if it is a CRT type card, else false
|
98
|
-
# @return [TrueClass | FalseClass]
|
99
|
-
attr_accessor :is_crt
|
100
|
-
|
101
|
-
# True if it is a Fleet type card, else false
|
102
|
-
# @return [TrueClass | FalseClass]
|
103
|
-
attr_accessor :is_fleet
|
104
|
-
|
105
|
-
# True if it is an international card, else false
|
106
|
-
# @return [TrueClass | FalseClass]
|
107
|
-
attr_accessor :is_international
|
108
|
-
|
109
|
-
# True if it is a national card, else false
|
110
|
-
# @return [TrueClass | FalseClass]
|
111
|
-
attr_accessor :is_national
|
112
|
-
|
113
|
-
# True if it is allowed at all partner sites, else false
|
114
|
-
# @return [TrueClass | FalseClass]
|
115
|
-
attr_accessor :is_partner_sites_included
|
116
|
-
|
117
|
-
# True if it is only allowed at Shell sites, else false
|
118
|
-
# @return [TrueClass | FalseClass]
|
119
|
-
attr_accessor :is_shell_sites_only
|
91
|
+
attr_accessor :restriction_currency_code
|
120
92
|
|
121
|
-
#
|
122
|
-
#
|
93
|
+
# Currency symbol of the country.
|
94
|
+
# Example: £, $
|
123
95
|
# @return [String]
|
124
|
-
attr_accessor :
|
125
|
-
|
126
|
-
# Issue Number
|
127
|
-
# @return [Integer]
|
128
|
-
attr_accessor :issue_number
|
129
|
-
|
130
|
-
# True if a new card is issued with the same PAN, else false
|
131
|
-
# @return [TrueClass | FalseClass]
|
132
|
-
attr_accessor :is_superseded
|
133
|
-
|
134
|
-
# True if it is a virtual card, else false
|
135
|
-
# @return [TrueClass | FalseClass]
|
136
|
-
attr_accessor :is_virtual_card
|
96
|
+
attr_accessor :restriction_currency_symbol
|
137
97
|
|
138
|
-
#
|
98
|
+
# Purchase category Id
|
99
|
+
# Example: 123, 124, etc.,
|
139
100
|
# @return [String]
|
140
|
-
attr_accessor :
|
101
|
+
attr_accessor :purchase_category_id
|
141
102
|
|
142
103
|
# Purchase category code
|
143
104
|
# Example:
|
@@ -153,10 +114,6 @@ module ShellCardManagementApIs
|
|
153
114
|
# @return [String]
|
154
115
|
attr_accessor :purchase_category_code
|
155
116
|
|
156
|
-
# Purchase category Id
|
157
|
-
# @return [Integer]
|
158
|
-
attr_accessor :purchase_category_id
|
159
|
-
|
160
117
|
# Purchase category name
|
161
118
|
# Example:
|
162
119
|
# 0 - All Fuels (without VP) and Lubricants
|
@@ -171,17 +128,76 @@ module ShellCardManagementApIs
|
|
171
128
|
# @return [String]
|
172
129
|
attr_accessor :purchase_category_name
|
173
130
|
|
174
|
-
#
|
175
|
-
#
|
176
|
-
|
131
|
+
# True/False
|
132
|
+
# True if a new card is issued with the same PAN, else false
|
133
|
+
# @return [TrueClass | FalseClass]
|
134
|
+
attr_accessor :is_superseded
|
177
135
|
|
178
|
-
#
|
136
|
+
# True/False
|
137
|
+
# True if it is a virtual card, else false
|
138
|
+
# @return [TrueClass | FalseClass]
|
139
|
+
attr_accessor :is_virtual_card
|
140
|
+
|
141
|
+
# True/False
|
142
|
+
# True if it is a national card, else false
|
143
|
+
# @return [TrueClass | FalseClass]
|
144
|
+
attr_accessor :is_national
|
145
|
+
|
146
|
+
# True/False
|
147
|
+
# True if it is an international card, else false
|
148
|
+
# @return [TrueClass | FalseClass]
|
149
|
+
attr_accessor :is_international
|
150
|
+
|
151
|
+
# True/False
|
152
|
+
# True if it is a CRT type card, else false
|
153
|
+
# @return [TrueClass | FalseClass]
|
154
|
+
attr_accessor :is_crt
|
155
|
+
|
156
|
+
# True/False
|
157
|
+
# True if it is a Fleet type card, else false
|
158
|
+
# @return [TrueClass | FalseClass]
|
159
|
+
attr_accessor :is_fleet
|
160
|
+
|
161
|
+
# True/False
|
162
|
+
# True if it is only allowed at Shell sites, else false
|
163
|
+
# @return [TrueClass | FalseClass]
|
164
|
+
attr_accessor :is_shell_sites_only
|
165
|
+
|
166
|
+
# True/False
|
167
|
+
# True if it is allowed at all partner sites, else false
|
168
|
+
# @return [TrueClass | FalseClass]
|
169
|
+
attr_accessor :is_partner_sites_included
|
170
|
+
|
171
|
+
# Card Type ID
|
172
|
+
# Example Id & Description:
|
173
|
+
# 1 - Philippines CRT 7077861
|
174
|
+
# 2- Philippines Fleet 7002861
|
175
|
+
# 5-SHELL FLEET- HONG KONG 7002821
|
176
|
+
# 6-SHELL NHF- HONG KONG 7002821
|
177
|
+
# 7-SHELL CRT- HONG KONG 7077821
|
179
178
|
# @return [Integer]
|
180
|
-
attr_accessor :
|
179
|
+
attr_accessor :card_type_id
|
181
180
|
|
182
|
-
#
|
181
|
+
# ISO code of the card i.e. first 7 digits of the PAN
|
183
182
|
# @return [String]
|
184
|
-
attr_accessor :
|
183
|
+
attr_accessor :card_type_code
|
184
|
+
|
185
|
+
# Card Type Name
|
186
|
+
# Example Id & Description:
|
187
|
+
# 1 - Philippines CRT 7077861
|
188
|
+
# 2- Philippines Fleet 7002861
|
189
|
+
# 5-SHELL FLEET- HONG KONG 7002821
|
190
|
+
# 6-SHELL NHF- HONG KONG 7002821
|
191
|
+
# 7-SHELL CRT- HONG KONG 7077821
|
192
|
+
# @return [String]
|
193
|
+
attr_accessor :card_type_name
|
194
|
+
|
195
|
+
# Bundle Id associated with card in the Gateway.
|
196
|
+
# This field will have a null value if the card is not associated with any
|
197
|
+
# bundle of IncludeBundleDetails in request is false.
|
198
|
+
# If the search is based on a bundle Id, the same will be returned.
|
199
|
+
# @return [String]
|
200
|
+
attr_accessor :bundle_id
|
185
201
|
|
186
202
|
# Id of the medium type identifier.
|
187
203
|
# Example: 1,2,4
|
@@ -212,41 +228,39 @@ module ShellCardManagementApIs
|
|
212
228
|
# A mapping from model property names to API property names.
|
213
229
|
def self.names
|
214
230
|
@_hash = {} if @_hash.nil?
|
215
|
-
@_hash['
|
216
|
-
@_hash['
|
217
|
-
@_hash['
|
218
|
-
@_hash['
|
231
|
+
@_hash['card_id'] = 'CardId'
|
232
|
+
@_hash['pan'] = 'PAN'
|
233
|
+
@_hash['expiry_date'] = 'ExpiryDate'
|
234
|
+
@_hash['status_id'] = 'StatusId'
|
235
|
+
@_hash['status_description'] = 'StatusDescription'
|
236
|
+
@_hash['driver_name'] = 'DriverName'
|
237
|
+
@_hash['vrn'] = 'VRN'
|
238
|
+
@_hash['issue_date'] = 'IssueDate'
|
239
|
+
@_hash['issue_number'] = 'IssueNumber'
|
219
240
|
@_hash['account_id'] = 'AccountId'
|
220
|
-
@_hash['account_name'] = 'AccountName'
|
221
241
|
@_hash['account_number'] = 'AccountNumber'
|
242
|
+
@_hash['account_name'] = 'AccountName'
|
222
243
|
@_hash['account_short_name'] = 'AccountShortName'
|
223
|
-
@_hash['
|
224
|
-
@_hash['card_type_code'] = 'CardTypeCode'
|
225
|
-
@_hash['card_type_id'] = 'CardTypeId'
|
226
|
-
@_hash['card_type_name'] = 'CardTypeName'
|
244
|
+
@_hash['currency_code'] = 'CurrencyCode'
|
227
245
|
@_hash['col_co_currency_code'] = 'ColCoCurrencyCode'
|
228
246
|
@_hash['col_co_currency_symbol'] = 'ColCoCurrencySymbol'
|
229
|
-
@_hash['
|
230
|
-
@_hash['
|
231
|
-
@_hash['
|
232
|
-
@_hash['
|
247
|
+
@_hash['restriction_currency_code'] = 'RestrictionCurrencyCode'
|
248
|
+
@_hash['restriction_currency_symbol'] = 'RestrictionCurrencySymbol'
|
249
|
+
@_hash['purchase_category_id'] = 'PurchaseCategoryId'
|
250
|
+
@_hash['purchase_category_code'] = 'PurchaseCategoryCode'
|
251
|
+
@_hash['purchase_category_name'] = 'PurchaseCategoryName'
|
252
|
+
@_hash['is_superseded'] = 'IsSuperseded'
|
253
|
+
@_hash['is_virtual_card'] = 'IsVirtualCard'
|
254
|
+
@_hash['is_national'] = 'IsNational'
|
255
|
+
@_hash['is_international'] = 'IsInternational'
|
233
256
|
@_hash['is_crt'] = 'IsCRT'
|
234
257
|
@_hash['is_fleet'] = 'IsFleet'
|
235
|
-
@_hash['is_international'] = 'IsInternational'
|
236
|
-
@_hash['is_national'] = 'IsNational'
|
237
|
-
@_hash['is_partner_sites_included'] = 'IsPartnerSitesIncluded'
|
238
258
|
@_hash['is_shell_sites_only'] = 'IsShellSitesOnly'
|
239
|
-
@_hash['
|
240
|
-
@_hash['
|
241
|
-
@_hash['
|
242
|
-
@_hash['
|
243
|
-
@_hash['
|
244
|
-
@_hash['purchase_category_code'] = 'PurchaseCategoryCode'
|
245
|
-
@_hash['purchase_category_id'] = 'PurchaseCategoryId'
|
246
|
-
@_hash['purchase_category_name'] = 'PurchaseCategoryName'
|
247
|
-
@_hash['status_description'] = 'StatusDescription'
|
248
|
-
@_hash['status_id'] = 'StatusId'
|
249
|
-
@_hash['vrn'] = 'VRN'
|
259
|
+
@_hash['is_partner_sites_included'] = 'IsPartnerSitesIncluded'
|
260
|
+
@_hash['card_type_id'] = 'CardTypeId'
|
261
|
+
@_hash['card_type_code'] = 'CardTypeCode'
|
262
|
+
@_hash['card_type_name'] = 'CardTypeName'
|
263
|
+
@_hash['bundle_id'] = 'BundleId'
|
250
264
|
@_hash['medium_type_id'] = 'MediumTypeID'
|
251
265
|
@_hash['medium_type'] = 'MediumType'
|
252
266
|
@_hash
|
@@ -255,41 +269,39 @@ module ShellCardManagementApIs
|
|
255
269
|
# An array for optional fields
|
256
270
|
def self.optionals
|
257
271
|
%w[
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
272
|
+
card_id
|
273
|
+
pan
|
274
|
+
expiry_date
|
275
|
+
status_id
|
276
|
+
status_description
|
277
|
+
driver_name
|
278
|
+
vrn
|
279
|
+
issue_date
|
280
|
+
issue_number
|
262
281
|
account_id
|
263
|
-
account_name
|
264
282
|
account_number
|
283
|
+
account_name
|
265
284
|
account_short_name
|
266
|
-
|
267
|
-
card_type_code
|
268
|
-
card_type_id
|
269
|
-
card_type_name
|
285
|
+
currency_code
|
270
286
|
col_co_currency_code
|
271
287
|
col_co_currency_symbol
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
288
|
+
restriction_currency_code
|
289
|
+
restriction_currency_symbol
|
290
|
+
purchase_category_id
|
291
|
+
purchase_category_code
|
292
|
+
purchase_category_name
|
293
|
+
is_superseded
|
294
|
+
is_virtual_card
|
295
|
+
is_national
|
296
|
+
is_international
|
276
297
|
is_crt
|
277
298
|
is_fleet
|
278
|
-
is_international
|
279
|
-
is_national
|
280
|
-
is_partner_sites_included
|
281
299
|
is_shell_sites_only
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
purchase_category_code
|
288
|
-
purchase_category_id
|
289
|
-
purchase_category_name
|
290
|
-
status_description
|
291
|
-
status_id
|
292
|
-
vrn
|
300
|
+
is_partner_sites_included
|
301
|
+
card_type_id
|
302
|
+
card_type_code
|
303
|
+
card_type_name
|
304
|
+
bundle_id
|
293
305
|
medium_type_id
|
294
306
|
medium_type
|
295
307
|
]
|
@@ -297,76 +309,42 @@ module ShellCardManagementApIs
|
|
297
309
|
|
298
310
|
# An array for nullable fields
|
299
311
|
def self.nullables
|
300
|
-
|
301
|
-
restriction_currency_code
|
302
|
-
restriction_currency_symbol
|
303
|
-
account_id
|
304
|
-
account_name
|
305
|
-
account_number
|
306
|
-
account_short_name
|
307
|
-
card_id
|
308
|
-
card_type_code
|
309
|
-
card_type_id
|
310
|
-
card_type_name
|
311
|
-
col_co_currency_code
|
312
|
-
col_co_currency_symbol
|
313
|
-
currency_code
|
314
|
-
currency_symbol
|
315
|
-
driver_name
|
316
|
-
expiry_date
|
317
|
-
issue_date
|
318
|
-
issue_number
|
319
|
-
pan
|
320
|
-
purchase_category_code
|
321
|
-
purchase_category_id
|
322
|
-
purchase_category_name
|
323
|
-
status_description
|
324
|
-
status_id
|
325
|
-
vrn
|
326
|
-
medium_type_id
|
327
|
-
medium_type
|
328
|
-
]
|
312
|
+
[]
|
329
313
|
end
|
330
314
|
|
331
|
-
def initialize(
|
332
|
-
|
315
|
+
def initialize(card_id = SKIP, pan = SKIP, expiry_date = SKIP,
|
316
|
+
status_id = SKIP, status_description = SKIP,
|
317
|
+
driver_name = SKIP, vrn = SKIP, issue_date = SKIP,
|
318
|
+
issue_number = SKIP, account_id = SKIP,
|
319
|
+
account_number = SKIP, account_name = SKIP,
|
320
|
+
account_short_name = SKIP, currency_code = SKIP,
|
321
|
+
col_co_currency_code = SKIP, col_co_currency_symbol = SKIP,
|
333
322
|
restriction_currency_code = SKIP,
|
334
323
|
restriction_currency_symbol = SKIP,
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
card_type_code = SKIP,
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
pan = SKIP,
|
360
|
-
purchase_category_code = SKIP,
|
361
|
-
purchase_category_id = SKIP,
|
362
|
-
purchase_category_name = SKIP,
|
363
|
-
status_description = SKIP,
|
364
|
-
status_id = SKIP,
|
365
|
-
vrn = SKIP,
|
366
|
-
medium_type_id = SKIP,
|
367
|
-
medium_type = SKIP)
|
368
|
-
@bundle_id = bundle_id unless bundle_id == SKIP
|
369
|
-
@restrictions = restrictions unless restrictions == SKIP
|
324
|
+
purchase_category_id = SKIP, purchase_category_code = SKIP,
|
325
|
+
purchase_category_name = SKIP, is_superseded = SKIP,
|
326
|
+
is_virtual_card = SKIP, is_national = SKIP,
|
327
|
+
is_international = SKIP, is_crt = SKIP, is_fleet = SKIP,
|
328
|
+
is_shell_sites_only = SKIP, is_partner_sites_included = SKIP,
|
329
|
+
card_type_id = SKIP, card_type_code = SKIP,
|
330
|
+
card_type_name = SKIP, bundle_id = SKIP,
|
331
|
+
medium_type_id = SKIP, medium_type = SKIP)
|
332
|
+
@card_id = card_id unless card_id == SKIP
|
333
|
+
@pan = pan unless pan == SKIP
|
334
|
+
@expiry_date = expiry_date unless expiry_date == SKIP
|
335
|
+
@status_id = status_id unless status_id == SKIP
|
336
|
+
@status_description = status_description unless status_description == SKIP
|
337
|
+
@driver_name = driver_name unless driver_name == SKIP
|
338
|
+
@vrn = vrn unless vrn == SKIP
|
339
|
+
@issue_date = issue_date unless issue_date == SKIP
|
340
|
+
@issue_number = issue_number unless issue_number == SKIP
|
341
|
+
@account_id = account_id unless account_id == SKIP
|
342
|
+
@account_number = account_number unless account_number == SKIP
|
343
|
+
@account_name = account_name unless account_name == SKIP
|
344
|
+
@account_short_name = account_short_name unless account_short_name == SKIP
|
345
|
+
@currency_code = currency_code unless currency_code == SKIP
|
346
|
+
@col_co_currency_code = col_co_currency_code unless col_co_currency_code == SKIP
|
347
|
+
@col_co_currency_symbol = col_co_currency_symbol unless col_co_currency_symbol == SKIP
|
370
348
|
unless restriction_currency_code == SKIP
|
371
349
|
@restriction_currency_code =
|
372
350
|
restriction_currency_code
|
@@ -375,40 +353,24 @@ module ShellCardManagementApIs
|
|
375
353
|
@restriction_currency_symbol =
|
376
354
|
restriction_currency_symbol
|
377
355
|
end
|
378
|
-
@
|
379
|
-
@
|
380
|
-
@
|
381
|
-
@
|
382
|
-
@
|
383
|
-
@
|
384
|
-
@
|
385
|
-
@card_type_name = card_type_name unless card_type_name == SKIP
|
386
|
-
@col_co_currency_code = col_co_currency_code unless col_co_currency_code == SKIP
|
387
|
-
@col_co_currency_symbol = col_co_currency_symbol unless col_co_currency_symbol == SKIP
|
388
|
-
@currency_code = currency_code unless currency_code == SKIP
|
389
|
-
@currency_symbol = currency_symbol unless currency_symbol == SKIP
|
390
|
-
@driver_name = driver_name unless driver_name == SKIP
|
391
|
-
@expiry_date = expiry_date unless expiry_date == SKIP
|
356
|
+
@purchase_category_id = purchase_category_id unless purchase_category_id == SKIP
|
357
|
+
@purchase_category_code = purchase_category_code unless purchase_category_code == SKIP
|
358
|
+
@purchase_category_name = purchase_category_name unless purchase_category_name == SKIP
|
359
|
+
@is_superseded = is_superseded unless is_superseded == SKIP
|
360
|
+
@is_virtual_card = is_virtual_card unless is_virtual_card == SKIP
|
361
|
+
@is_national = is_national unless is_national == SKIP
|
362
|
+
@is_international = is_international unless is_international == SKIP
|
392
363
|
@is_crt = is_crt unless is_crt == SKIP
|
393
364
|
@is_fleet = is_fleet unless is_fleet == SKIP
|
394
|
-
@
|
395
|
-
@is_national = is_national unless is_national == SKIP
|
365
|
+
@is_shell_sites_only = is_shell_sites_only unless is_shell_sites_only == SKIP
|
396
366
|
unless is_partner_sites_included == SKIP
|
397
367
|
@is_partner_sites_included =
|
398
368
|
is_partner_sites_included
|
399
369
|
end
|
400
|
-
@
|
401
|
-
@
|
402
|
-
@
|
403
|
-
@
|
404
|
-
@is_virtual_card = is_virtual_card unless is_virtual_card == SKIP
|
405
|
-
@pan = pan unless pan == SKIP
|
406
|
-
@purchase_category_code = purchase_category_code unless purchase_category_code == SKIP
|
407
|
-
@purchase_category_id = purchase_category_id unless purchase_category_id == SKIP
|
408
|
-
@purchase_category_name = purchase_category_name unless purchase_category_name == SKIP
|
409
|
-
@status_description = status_description unless status_description == SKIP
|
410
|
-
@status_id = status_id unless status_id == SKIP
|
411
|
-
@vrn = vrn unless vrn == SKIP
|
370
|
+
@card_type_id = card_type_id unless card_type_id == SKIP
|
371
|
+
@card_type_code = card_type_code unless card_type_code == SKIP
|
372
|
+
@card_type_name = card_type_name unless card_type_name == SKIP
|
373
|
+
@bundle_id = bundle_id unless bundle_id == SKIP
|
412
374
|
@medium_type_id = medium_type_id unless medium_type_id == SKIP
|
413
375
|
@medium_type = medium_type unless medium_type == SKIP
|
414
376
|
end
|
@@ -418,97 +380,91 @@ module ShellCardManagementApIs
|
|
418
380
|
return nil unless hash
|
419
381
|
|
420
382
|
# Extract variables from the hash.
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
383
|
+
card_id = hash.key?('CardId') ? hash['CardId'] : SKIP
|
384
|
+
pan = hash.key?('PAN') ? hash['PAN'] : SKIP
|
385
|
+
expiry_date = hash.key?('ExpiryDate') ? hash['ExpiryDate'] : SKIP
|
386
|
+
status_id = hash.key?('StatusId') ? hash['StatusId'] : SKIP
|
387
|
+
status_description =
|
388
|
+
hash.key?('StatusDescription') ? hash['StatusDescription'] : SKIP
|
389
|
+
driver_name = hash.key?('DriverName') ? hash['DriverName'] : SKIP
|
390
|
+
vrn = hash.key?('VRN') ? hash['VRN'] : SKIP
|
391
|
+
issue_date = hash.key?('IssueDate') ? hash['IssueDate'] : SKIP
|
392
|
+
issue_number = hash.key?('IssueNumber') ? hash['IssueNumber'] : SKIP
|
428
393
|
account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP
|
429
|
-
account_name = hash.key?('AccountName') ? hash['AccountName'] : SKIP
|
430
394
|
account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP
|
395
|
+
account_name = hash.key?('AccountName') ? hash['AccountName'] : SKIP
|
431
396
|
account_short_name =
|
432
397
|
hash.key?('AccountShortName') ? hash['AccountShortName'] : SKIP
|
433
|
-
|
434
|
-
card_type_code = hash.key?('CardTypeCode') ? hash['CardTypeCode'] : SKIP
|
435
|
-
card_type_id = hash.key?('CardTypeId') ? hash['CardTypeId'] : SKIP
|
436
|
-
card_type_name = hash.key?('CardTypeName') ? hash['CardTypeName'] : SKIP
|
398
|
+
currency_code = hash.key?('CurrencyCode') ? hash['CurrencyCode'] : SKIP
|
437
399
|
col_co_currency_code =
|
438
400
|
hash.key?('ColCoCurrencyCode') ? hash['ColCoCurrencyCode'] : SKIP
|
439
401
|
col_co_currency_symbol =
|
440
402
|
hash.key?('ColCoCurrencySymbol') ? hash['ColCoCurrencySymbol'] : SKIP
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
expiry_date = hash.key?('ExpiryDate') ? hash['ExpiryDate'] : SKIP
|
446
|
-
is_crt = hash.key?('IsCRT') ? hash['IsCRT'] : SKIP
|
447
|
-
is_fleet = hash.key?('IsFleet') ? hash['IsFleet'] : SKIP
|
448
|
-
is_international =
|
449
|
-
hash.key?('IsInternational') ? hash['IsInternational'] : SKIP
|
450
|
-
is_national = hash.key?('IsNational') ? hash['IsNational'] : SKIP
|
451
|
-
is_partner_sites_included =
|
452
|
-
hash.key?('IsPartnerSitesIncluded') ? hash['IsPartnerSitesIncluded'] : SKIP
|
453
|
-
is_shell_sites_only =
|
454
|
-
hash.key?('IsShellSitesOnly') ? hash['IsShellSitesOnly'] : SKIP
|
455
|
-
issue_date = hash.key?('IssueDate') ? hash['IssueDate'] : SKIP
|
456
|
-
issue_number = hash.key?('IssueNumber') ? hash['IssueNumber'] : SKIP
|
457
|
-
is_superseded = hash.key?('IsSuperseded') ? hash['IsSuperseded'] : SKIP
|
458
|
-
is_virtual_card =
|
459
|
-
hash.key?('IsVirtualCard') ? hash['IsVirtualCard'] : SKIP
|
460
|
-
pan = hash.key?('PAN') ? hash['PAN'] : SKIP
|
461
|
-
purchase_category_code =
|
462
|
-
hash.key?('PurchaseCategoryCode') ? hash['PurchaseCategoryCode'] : SKIP
|
403
|
+
restriction_currency_code =
|
404
|
+
hash.key?('RestrictionCurrencyCode') ? hash['RestrictionCurrencyCode'] : SKIP
|
405
|
+
restriction_currency_symbol =
|
406
|
+
hash.key?('RestrictionCurrencySymbol') ? hash['RestrictionCurrencySymbol'] : SKIP
|
463
407
|
purchase_category_id =
|
464
408
|
hash.key?('PurchaseCategoryId') ? hash['PurchaseCategoryId'] : SKIP
|
409
|
+
purchase_category_code =
|
410
|
+
hash.key?('PurchaseCategoryCode') ? hash['PurchaseCategoryCode'] : SKIP
|
465
411
|
purchase_category_name =
|
466
412
|
hash.key?('PurchaseCategoryName') ? hash['PurchaseCategoryName'] : SKIP
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
413
|
+
is_superseded = hash.key?('IsSuperseded') ? hash['IsSuperseded'] : SKIP
|
414
|
+
is_virtual_card =
|
415
|
+
hash.key?('IsVirtualCard') ? hash['IsVirtualCard'] : SKIP
|
416
|
+
is_national = hash.key?('IsNational') ? hash['IsNational'] : SKIP
|
417
|
+
is_international =
|
418
|
+
hash.key?('IsInternational') ? hash['IsInternational'] : SKIP
|
419
|
+
is_crt = hash.key?('IsCRT') ? hash['IsCRT'] : SKIP
|
420
|
+
is_fleet = hash.key?('IsFleet') ? hash['IsFleet'] : SKIP
|
421
|
+
is_shell_sites_only =
|
422
|
+
hash.key?('IsShellSitesOnly') ? hash['IsShellSitesOnly'] : SKIP
|
423
|
+
is_partner_sites_included =
|
424
|
+
hash.key?('IsPartnerSitesIncluded') ? hash['IsPartnerSitesIncluded'] : SKIP
|
425
|
+
card_type_id = hash.key?('CardTypeId') ? hash['CardTypeId'] : SKIP
|
426
|
+
card_type_code = hash.key?('CardTypeCode') ? hash['CardTypeCode'] : SKIP
|
427
|
+
card_type_name = hash.key?('CardTypeName') ? hash['CardTypeName'] : SKIP
|
428
|
+
bundle_id = hash.key?('BundleId') ? hash['BundleId'] : SKIP
|
471
429
|
medium_type_id = hash.key?('MediumTypeID') ? hash['MediumTypeID'] : SKIP
|
472
430
|
medium_type = hash.key?('MediumType') ? hash['MediumType'] : SKIP
|
473
431
|
|
474
432
|
# Create object from extracted values.
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
medium_type_id,
|
511
|
-
medium_type)
|
433
|
+
RestrictionCardList.new(card_id,
|
434
|
+
pan,
|
435
|
+
expiry_date,
|
436
|
+
status_id,
|
437
|
+
status_description,
|
438
|
+
driver_name,
|
439
|
+
vrn,
|
440
|
+
issue_date,
|
441
|
+
issue_number,
|
442
|
+
account_id,
|
443
|
+
account_number,
|
444
|
+
account_name,
|
445
|
+
account_short_name,
|
446
|
+
currency_code,
|
447
|
+
col_co_currency_code,
|
448
|
+
col_co_currency_symbol,
|
449
|
+
restriction_currency_code,
|
450
|
+
restriction_currency_symbol,
|
451
|
+
purchase_category_id,
|
452
|
+
purchase_category_code,
|
453
|
+
purchase_category_name,
|
454
|
+
is_superseded,
|
455
|
+
is_virtual_card,
|
456
|
+
is_national,
|
457
|
+
is_international,
|
458
|
+
is_crt,
|
459
|
+
is_fleet,
|
460
|
+
is_shell_sites_only,
|
461
|
+
is_partner_sites_included,
|
462
|
+
card_type_id,
|
463
|
+
card_type_code,
|
464
|
+
card_type_name,
|
465
|
+
bundle_id,
|
466
|
+
medium_type_id,
|
467
|
+
medium_type)
|
512
468
|
end
|
513
469
|
end
|
514
470
|
end
|