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
data/lib/shell_card_management_ap_is/models/create_card_group_response_successful_requests_items.rb
CHANGED
@@ -45,9 +45,7 @@ module ShellCardManagementApIs
|
|
45
45
|
[]
|
46
46
|
end
|
47
47
|
|
48
|
-
def initialize(card_id = SKIP,
|
49
|
-
pan = SKIP,
|
50
|
-
reference = SKIP)
|
48
|
+
def initialize(card_id = SKIP, pan = SKIP, reference = SKIP)
|
51
49
|
@card_id = card_id unless card_id == SKIP
|
52
50
|
@pan = pan unless pan == SKIP
|
53
51
|
@reference = reference unless reference == SKIP
|
@@ -42,8 +42,7 @@ module ShellCardManagementApIs
|
|
42
42
|
]
|
43
43
|
end
|
44
44
|
|
45
|
-
def initialize(driver_and_vrn = SKIP,
|
46
|
-
order_card_reference = SKIP)
|
45
|
+
def initialize(driver_and_vrn = SKIP, order_card_reference = SKIP)
|
47
46
|
@driver_and_vrn = driver_and_vrn unless driver_and_vrn == SKIP
|
48
47
|
@order_card_reference = order_card_reference unless order_card_reference == SKIP
|
49
48
|
end
|
@@ -41,8 +41,7 @@ module ShellCardManagementApIs
|
|
41
41
|
]
|
42
42
|
end
|
43
43
|
|
44
|
-
def initialize(partner_id = SKIP,
|
45
|
-
partner_name = SKIP)
|
44
|
+
def initialize(partner_id = SKIP, partner_name = SKIP)
|
46
45
|
@partner_id = partner_id unless partner_id == SKIP
|
47
46
|
@partner_name = partner_name unless partner_name == SKIP
|
48
47
|
end
|
@@ -85,11 +85,8 @@ module ShellCardManagementApIs
|
|
85
85
|
]
|
86
86
|
end
|
87
87
|
|
88
|
-
def initialize(col_co_id = SKIP,
|
89
|
-
|
90
|
-
payer_id = SKIP,
|
91
|
-
payer_number = SKIP,
|
92
|
-
account_id = SKIP,
|
88
|
+
def initialize(col_co_id = SKIP, col_co_code = SKIP, payer_id = SKIP,
|
89
|
+
payer_number = SKIP, account_id = SKIP,
|
93
90
|
account_number = SKIP)
|
94
91
|
@col_co_id = col_co_id unless col_co_id == SKIP
|
95
92
|
@col_co_code = col_co_code unless col_co_code == SKIP
|
@@ -54,20 +54,20 @@ module ShellCardManagementApIs
|
|
54
54
|
attr_accessor :billing_address
|
55
55
|
|
56
56
|
# Card group position at –
|
57
|
-
# •
|
58
|
-
# •
|
57
|
+
# • Payer – Payer level
|
58
|
+
# • Account – Account level
|
59
59
|
# @return [String]
|
60
60
|
attr_accessor :card_group_position
|
61
61
|
|
62
62
|
# Card group position at –
|
63
|
-
# •
|
64
|
-
# •
|
63
|
+
# • Payer – Payer level
|
64
|
+
# • Account – Account level
|
65
65
|
# @return [Address]
|
66
66
|
attr_accessor :correspondence_address
|
67
67
|
|
68
68
|
# Card group position at –
|
69
|
-
# •
|
70
|
-
# •
|
69
|
+
# • Payer – Payer level
|
70
|
+
# • Account – Account level
|
71
71
|
# @return [Array[DeliveryAddresses]]
|
72
72
|
attr_accessor :delivery_addresses
|
73
73
|
|
@@ -132,28 +132,28 @@ module ShellCardManagementApIs
|
|
132
132
|
|
133
133
|
# Default PIN AdviceType of the customer.
|
134
134
|
# Possible Values:
|
135
|
-
# 1.
|
136
|
-
# 2.
|
137
|
-
# 3.
|
138
|
-
# 4.
|
135
|
+
# 1. Paper
|
136
|
+
# 2. Email
|
137
|
+
# 3. SMS
|
138
|
+
# 4. None
|
139
139
|
# @return [Integer]
|
140
140
|
attr_accessor :default_pin_advice_type
|
141
141
|
|
142
142
|
# Default PIN AdviceType of the customer.
|
143
143
|
# Possible Values:
|
144
|
-
# 1.
|
145
|
-
# 2.
|
146
|
-
# 3.
|
147
|
-
# 4.
|
144
|
+
# 1. Paper
|
145
|
+
# 2. Email
|
146
|
+
# 3. SMS
|
147
|
+
# 4. None
|
148
148
|
# @return [Array[PINAdviceTypes]]
|
149
149
|
attr_accessor :pin_advice_types
|
150
150
|
|
151
151
|
# Default PIN AdviceType of the customer.
|
152
152
|
# Possible Values:
|
153
|
-
# 1.
|
154
|
-
# 2.
|
155
|
-
# 3.
|
156
|
-
# 4.
|
153
|
+
# 1. Paper
|
154
|
+
# 2. Email
|
155
|
+
# 3. SMS
|
156
|
+
# 4. None
|
157
157
|
# @return [ErrorStatus]
|
158
158
|
attr_accessor :error
|
159
159
|
|
@@ -267,33 +267,19 @@ module ShellCardManagementApIs
|
|
267
267
|
]
|
268
268
|
end
|
269
269
|
|
270
|
-
def initialize(account_id = SKIP,
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
invoice_customer_id = SKIP,
|
284
|
-
invoice_customer_short_name = SKIP,
|
285
|
-
is_invoice_point = SKIP,
|
286
|
-
marketing_segmentation = SKIP,
|
287
|
-
vat_number = SKIP,
|
288
|
-
payer_id = SKIP,
|
289
|
-
payer_name = SKIP,
|
290
|
-
payer_number = SKIP,
|
291
|
-
self_selected_pin = SKIP,
|
292
|
-
status = SKIP,
|
293
|
-
default_pin_advice_type = SKIP,
|
294
|
-
pin_advice_types = SKIP,
|
295
|
-
error = SKIP,
|
296
|
-
request_id = SKIP,
|
270
|
+
def initialize(account_id = SKIP, account_name = SKIP,
|
271
|
+
account_number = SKIP, account_short_name = SKIP,
|
272
|
+
account_trading_name = SKIP, allow_fleet_id_input = SKIP,
|
273
|
+
band = SKIP, billing_address = SKIP,
|
274
|
+
card_group_position = SKIP, correspondence_address = SKIP,
|
275
|
+
delivery_addresses = SKIP, fleet_pin = SKIP,
|
276
|
+
full_name = SKIP, invoice_customer_id = SKIP,
|
277
|
+
invoice_customer_short_name = SKIP, is_invoice_point = SKIP,
|
278
|
+
marketing_segmentation = SKIP, vat_number = SKIP,
|
279
|
+
payer_id = SKIP, payer_name = SKIP, payer_number = SKIP,
|
280
|
+
self_selected_pin = SKIP, status = SKIP,
|
281
|
+
default_pin_advice_type = SKIP, pin_advice_types = SKIP,
|
282
|
+
error = SKIP, request_id = SKIP,
|
297
283
|
pin_change_allowed_by_cardholder = SKIP,
|
298
284
|
pin_change_allowed_from_fleet_pin = SKIP)
|
299
285
|
@account_id = account_id unless account_id == SKIP
|
@@ -0,0 +1,133 @@
|
|
1
|
+
# shell_card_management_ap_is
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module ShellCardManagementApIs
|
7
|
+
# Details of the day/time restrictions such as weekdays and time range in
|
8
|
+
# which transactions should be allowed on the card.
|
9
|
+
class DayTimeRestriction < BaseModel
|
10
|
+
SKIP = Object.new
|
11
|
+
private_constant :SKIP
|
12
|
+
|
13
|
+
# True if card could be used on a Monday, else false
|
14
|
+
# @return [TrueClass | FalseClass]
|
15
|
+
attr_accessor :monday
|
16
|
+
|
17
|
+
# True if card could be used on a Tuesday, else false.
|
18
|
+
# @return [TrueClass | FalseClass]
|
19
|
+
attr_accessor :tuesday
|
20
|
+
|
21
|
+
# True if card could be used on a Wednesday, else false.
|
22
|
+
# @return [TrueClass | FalseClass]
|
23
|
+
attr_accessor :wednesday
|
24
|
+
|
25
|
+
# True if card could be used on a Thursday, else false
|
26
|
+
# @return [TrueClass | FalseClass]
|
27
|
+
attr_accessor :thursday
|
28
|
+
|
29
|
+
# True if card could be used on a Friday, else false
|
30
|
+
# @return [TrueClass | FalseClass]
|
31
|
+
attr_accessor :friday
|
32
|
+
|
33
|
+
# True if card could be used on a Saturday, else false
|
34
|
+
# @return [TrueClass | FalseClass]
|
35
|
+
attr_accessor :saturday
|
36
|
+
|
37
|
+
# True if card could be used on a Sunday, else false.
|
38
|
+
# @return [TrueClass | FalseClass]
|
39
|
+
attr_accessor :sunday
|
40
|
+
|
41
|
+
# Card could be used from this time in a day.
|
42
|
+
# Format: HH:mm (24-hour format)
|
43
|
+
# Note:
|
44
|
+
# 1. Clients to convert this to appropriate DateTime or TimeSpan type.
|
45
|
+
# “00:00” is the lowest time value and “23:59” is the highest time value.
|
46
|
+
# @return [String]
|
47
|
+
attr_accessor :time_from
|
48
|
+
|
49
|
+
# Card could be used up to this time in a day.
|
50
|
+
# Format: HH:mm (24-hour format)
|
51
|
+
# Note:
|
52
|
+
# 1. Clients to convert this to appropriate DateTime or TimeSpan type.
|
53
|
+
# “00:00” is the lowest time value and “23:59” is the highest time value.
|
54
|
+
# @return [String]
|
55
|
+
attr_accessor :time_to
|
56
|
+
|
57
|
+
# A mapping from model property names to API property names.
|
58
|
+
def self.names
|
59
|
+
@_hash = {} if @_hash.nil?
|
60
|
+
@_hash['monday'] = 'Monday'
|
61
|
+
@_hash['tuesday'] = 'Tuesday'
|
62
|
+
@_hash['wednesday'] = 'Wednesday'
|
63
|
+
@_hash['thursday'] = 'Thursday'
|
64
|
+
@_hash['friday'] = 'Friday'
|
65
|
+
@_hash['saturday'] = 'Saturday'
|
66
|
+
@_hash['sunday'] = 'Sunday'
|
67
|
+
@_hash['time_from'] = 'TimeFrom'
|
68
|
+
@_hash['time_to'] = 'TimeTo'
|
69
|
+
@_hash
|
70
|
+
end
|
71
|
+
|
72
|
+
# An array for optional fields
|
73
|
+
def self.optionals
|
74
|
+
%w[
|
75
|
+
monday
|
76
|
+
tuesday
|
77
|
+
wednesday
|
78
|
+
thursday
|
79
|
+
friday
|
80
|
+
saturday
|
81
|
+
sunday
|
82
|
+
time_from
|
83
|
+
time_to
|
84
|
+
]
|
85
|
+
end
|
86
|
+
|
87
|
+
# An array for nullable fields
|
88
|
+
def self.nullables
|
89
|
+
[]
|
90
|
+
end
|
91
|
+
|
92
|
+
def initialize(monday = SKIP, tuesday = SKIP, wednesday = SKIP,
|
93
|
+
thursday = SKIP, friday = SKIP, saturday = SKIP,
|
94
|
+
sunday = SKIP, time_from = SKIP, time_to = SKIP)
|
95
|
+
@monday = monday unless monday == SKIP
|
96
|
+
@tuesday = tuesday unless tuesday == SKIP
|
97
|
+
@wednesday = wednesday unless wednesday == SKIP
|
98
|
+
@thursday = thursday unless thursday == SKIP
|
99
|
+
@friday = friday unless friday == SKIP
|
100
|
+
@saturday = saturday unless saturday == SKIP
|
101
|
+
@sunday = sunday unless sunday == SKIP
|
102
|
+
@time_from = time_from unless time_from == SKIP
|
103
|
+
@time_to = time_to unless time_to == SKIP
|
104
|
+
end
|
105
|
+
|
106
|
+
# Creates an instance of the object from a hash.
|
107
|
+
def self.from_hash(hash)
|
108
|
+
return nil unless hash
|
109
|
+
|
110
|
+
# Extract variables from the hash.
|
111
|
+
monday = hash.key?('Monday') ? hash['Monday'] : SKIP
|
112
|
+
tuesday = hash.key?('Tuesday') ? hash['Tuesday'] : SKIP
|
113
|
+
wednesday = hash.key?('Wednesday') ? hash['Wednesday'] : SKIP
|
114
|
+
thursday = hash.key?('Thursday') ? hash['Thursday'] : SKIP
|
115
|
+
friday = hash.key?('Friday') ? hash['Friday'] : SKIP
|
116
|
+
saturday = hash.key?('Saturday') ? hash['Saturday'] : SKIP
|
117
|
+
sunday = hash.key?('Sunday') ? hash['Sunday'] : SKIP
|
118
|
+
time_from = hash.key?('TimeFrom') ? hash['TimeFrom'] : SKIP
|
119
|
+
time_to = hash.key?('TimeTo') ? hash['TimeTo'] : SKIP
|
120
|
+
|
121
|
+
# Create object from extracted values.
|
122
|
+
DayTimeRestriction.new(monday,
|
123
|
+
tuesday,
|
124
|
+
wednesday,
|
125
|
+
thursday,
|
126
|
+
friday,
|
127
|
+
saturday,
|
128
|
+
sunday,
|
129
|
+
time_from,
|
130
|
+
time_to)
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|
@@ -4,132 +4,102 @@
|
|
4
4
|
# ( https://apimatic.io ).
|
5
5
|
|
6
6
|
module ShellCardManagementApIs
|
7
|
-
#
|
8
|
-
# bundle. Mandatory if respective action is set as “Add”. The details of
|
9
|
-
# DayTimeRestriction entity is given below.
|
7
|
+
# DayTimeRestrictions Model.
|
10
8
|
class DayTimeRestrictions < BaseModel
|
11
9
|
SKIP = Object.new
|
12
10
|
private_constant :SKIP
|
13
11
|
|
14
|
-
# True
|
15
|
-
# True if card could be used on a Friday, else false.
|
16
|
-
# Default value: false.
|
17
|
-
# @return [TrueClass | FalseClass]
|
18
|
-
attr_accessor :friday
|
19
|
-
|
20
|
-
# True/False.
|
21
|
-
# True if card could be used on a Monday, else false.
|
22
|
-
# Default value: false.
|
12
|
+
# True if card could be used on a Monday, else false
|
23
13
|
# @return [TrueClass | FalseClass]
|
24
14
|
attr_accessor :monday
|
25
15
|
|
26
|
-
# True
|
27
|
-
# True if card could be used on a Saturday, else false.
|
28
|
-
# Default value: false.
|
16
|
+
# True if card could be used on a Tuesday, else false.
|
29
17
|
# @return [TrueClass | FalseClass]
|
30
|
-
attr_accessor :
|
18
|
+
attr_accessor :tuesday
|
31
19
|
|
32
|
-
# True
|
33
|
-
# True if card could be used on a Sunday, else false.
|
34
|
-
# Default value: false.
|
20
|
+
# True if card could be used on a Wednesday, else false.
|
35
21
|
# @return [TrueClass | FalseClass]
|
36
|
-
attr_accessor :
|
22
|
+
attr_accessor :wednesday
|
37
23
|
|
38
|
-
# True
|
39
|
-
# True if card could be used on a Thursday, else false.
|
40
|
-
# Default value: false.
|
24
|
+
# True if card could be used on a Thursday, else false
|
41
25
|
# @return [TrueClass | FalseClass]
|
42
26
|
attr_accessor :thursday
|
43
27
|
|
28
|
+
# True if card could be used on a Friday, else false
|
29
|
+
# @return [TrueClass | FalseClass]
|
30
|
+
attr_accessor :friday
|
31
|
+
|
32
|
+
# True if card could be used on a Saturday, else false
|
33
|
+
# @return [TrueClass | FalseClass]
|
34
|
+
attr_accessor :saturday
|
35
|
+
|
36
|
+
# True if card could be used on a Sunday, else false.
|
37
|
+
# @return [TrueClass | FalseClass]
|
38
|
+
attr_accessor :sunday
|
39
|
+
|
44
40
|
# Card could be used from this time in a day.
|
45
|
-
# Mandatory if TimeTo is passed, else optional.
|
46
41
|
# Format: HH:mm (24-hour format)
|
47
42
|
# Note:
|
48
|
-
#
|
49
|
-
#
|
50
|
-
# To allow card to be used throughout the day pass null in TimeFrom and
|
51
|
-
# TimeTo.
|
43
|
+
# 1. Clients to convert this to appropriate DateTime or TimeSpan type.
|
44
|
+
# “00:00” is the lowest time value and “23:59” is the highest time value.
|
52
45
|
# @return [String]
|
53
46
|
attr_accessor :time_from
|
54
47
|
|
55
48
|
# Card could be used up to this time in a day.
|
56
|
-
# Mandatory if TimeFrom is passed, else optional.
|
57
49
|
# Format: HH:mm (24-hour format)
|
58
50
|
# Note:
|
59
|
-
#
|
60
|
-
#
|
61
|
-
# TimeTo.
|
51
|
+
# 1. Clients to convert this to appropriate DateTime or TimeSpan type.
|
52
|
+
# “00:00” is the lowest time value and “23:59” is the highest time value.
|
62
53
|
# @return [String]
|
63
54
|
attr_accessor :time_to
|
64
55
|
|
65
|
-
# True/False.
|
66
|
-
# True if card could be used on a Tuesday, else false.
|
67
|
-
# Default value: false.
|
68
|
-
# @return [TrueClass | FalseClass]
|
69
|
-
attr_accessor :tuesday
|
70
|
-
|
71
|
-
# True/False.
|
72
|
-
# True if card could be used on a Wednesday, else false.
|
73
|
-
# Default value: false.
|
74
|
-
# @return [TrueClass | FalseClass]
|
75
|
-
attr_accessor :wednesday
|
76
|
-
|
77
56
|
# A mapping from model property names to API property names.
|
78
57
|
def self.names
|
79
58
|
@_hash = {} if @_hash.nil?
|
80
|
-
@_hash['friday'] = 'Friday'
|
81
59
|
@_hash['monday'] = 'Monday'
|
60
|
+
@_hash['tuesday'] = 'Tuesday'
|
61
|
+
@_hash['wednesday'] = 'Wednesday'
|
62
|
+
@_hash['thursday'] = 'Thursday'
|
63
|
+
@_hash['friday'] = 'Friday'
|
82
64
|
@_hash['saturday'] = 'Saturday'
|
83
65
|
@_hash['sunday'] = 'Sunday'
|
84
|
-
@_hash['thursday'] = 'Thursday'
|
85
66
|
@_hash['time_from'] = 'TimeFrom'
|
86
67
|
@_hash['time_to'] = 'TimeTo'
|
87
|
-
@_hash['tuesday'] = 'Tuesday'
|
88
|
-
@_hash['wednesday'] = 'Wednesday'
|
89
68
|
@_hash
|
90
69
|
end
|
91
70
|
|
92
71
|
# An array for optional fields
|
93
72
|
def self.optionals
|
94
73
|
%w[
|
95
|
-
friday
|
96
74
|
monday
|
75
|
+
tuesday
|
76
|
+
wednesday
|
77
|
+
thursday
|
78
|
+
friday
|
97
79
|
saturday
|
98
80
|
sunday
|
99
|
-
thursday
|
100
81
|
time_from
|
101
82
|
time_to
|
102
|
-
tuesday
|
103
|
-
wednesday
|
104
83
|
]
|
105
84
|
end
|
106
85
|
|
107
86
|
# An array for nullable fields
|
108
87
|
def self.nullables
|
109
|
-
|
110
|
-
time_from
|
111
|
-
time_to
|
112
|
-
]
|
88
|
+
[]
|
113
89
|
end
|
114
90
|
|
115
|
-
def initialize(
|
116
|
-
|
117
|
-
|
118
|
-
sunday = false,
|
119
|
-
thursday = false,
|
120
|
-
time_from = SKIP,
|
121
|
-
time_to = SKIP,
|
122
|
-
tuesday = false,
|
123
|
-
wednesday = false)
|
124
|
-
@friday = friday unless friday == SKIP
|
91
|
+
def initialize(monday = SKIP, tuesday = SKIP, wednesday = SKIP,
|
92
|
+
thursday = SKIP, friday = SKIP, saturday = SKIP,
|
93
|
+
sunday = SKIP, time_from = SKIP, time_to = SKIP)
|
125
94
|
@monday = monday unless monday == SKIP
|
95
|
+
@tuesday = tuesday unless tuesday == SKIP
|
96
|
+
@wednesday = wednesday unless wednesday == SKIP
|
97
|
+
@thursday = thursday unless thursday == SKIP
|
98
|
+
@friday = friday unless friday == SKIP
|
126
99
|
@saturday = saturday unless saturday == SKIP
|
127
100
|
@sunday = sunday unless sunday == SKIP
|
128
|
-
@thursday = thursday unless thursday == SKIP
|
129
101
|
@time_from = time_from unless time_from == SKIP
|
130
102
|
@time_to = time_to unless time_to == SKIP
|
131
|
-
@tuesday = tuesday unless tuesday == SKIP
|
132
|
-
@wednesday = wednesday unless wednesday == SKIP
|
133
103
|
end
|
134
104
|
|
135
105
|
# Creates an instance of the object from a hash.
|
@@ -137,26 +107,26 @@ module ShellCardManagementApIs
|
|
137
107
|
return nil unless hash
|
138
108
|
|
139
109
|
# Extract variables from the hash.
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
110
|
+
monday = hash.key?('Monday') ? hash['Monday'] : SKIP
|
111
|
+
tuesday = hash.key?('Tuesday') ? hash['Tuesday'] : SKIP
|
112
|
+
wednesday = hash.key?('Wednesday') ? hash['Wednesday'] : SKIP
|
113
|
+
thursday = hash.key?('Thursday') ? hash['Thursday'] : SKIP
|
114
|
+
friday = hash.key?('Friday') ? hash['Friday'] : SKIP
|
115
|
+
saturday = hash.key?('Saturday') ? hash['Saturday'] : SKIP
|
116
|
+
sunday = hash.key?('Sunday') ? hash['Sunday'] : SKIP
|
145
117
|
time_from = hash.key?('TimeFrom') ? hash['TimeFrom'] : SKIP
|
146
118
|
time_to = hash.key?('TimeTo') ? hash['TimeTo'] : SKIP
|
147
|
-
tuesday = hash['Tuesday'] ||= false
|
148
|
-
wednesday = hash['Wednesday'] ||= false
|
149
119
|
|
150
120
|
# Create object from extracted values.
|
151
|
-
DayTimeRestrictions.new(
|
152
|
-
|
121
|
+
DayTimeRestrictions.new(monday,
|
122
|
+
tuesday,
|
123
|
+
wednesday,
|
124
|
+
thursday,
|
125
|
+
friday,
|
153
126
|
saturday,
|
154
127
|
sunday,
|
155
|
-
thursday,
|
156
128
|
time_from,
|
157
|
-
time_to
|
158
|
-
tuesday,
|
159
|
-
wednesday)
|
129
|
+
time_to)
|
160
130
|
end
|
161
131
|
end
|
162
132
|
end
|
data/lib/shell_card_management_ap_is/models/{summary_of_bundle_request.rb → default_error.rb}
RENAMED
@@ -4,26 +4,26 @@
|
|
4
4
|
# ( https://apimatic.io ).
|
5
5
|
|
6
6
|
module ShellCardManagementApIs
|
7
|
-
#
|
8
|
-
class
|
7
|
+
# Error response
|
8
|
+
class DefaultError < BaseModel
|
9
9
|
SKIP = Object.new
|
10
10
|
private_constant :SKIP
|
11
11
|
|
12
12
|
# TODO: Write general description for this method
|
13
|
-
# @return [
|
14
|
-
attr_accessor :
|
13
|
+
# @return [Fault]
|
14
|
+
attr_accessor :fault
|
15
15
|
|
16
16
|
# A mapping from model property names to API property names.
|
17
17
|
def self.names
|
18
18
|
@_hash = {} if @_hash.nil?
|
19
|
-
@_hash['
|
19
|
+
@_hash['fault'] = 'fault'
|
20
20
|
@_hash
|
21
21
|
end
|
22
22
|
|
23
23
|
# An array for optional fields
|
24
24
|
def self.optionals
|
25
25
|
%w[
|
26
|
-
|
26
|
+
fault
|
27
27
|
]
|
28
28
|
end
|
29
29
|
|
@@ -32,8 +32,8 @@ module ShellCardManagementApIs
|
|
32
32
|
[]
|
33
33
|
end
|
34
34
|
|
35
|
-
def initialize(
|
36
|
-
@
|
35
|
+
def initialize(fault = SKIP)
|
36
|
+
@fault = fault unless fault == SKIP
|
37
37
|
end
|
38
38
|
|
39
39
|
# Creates an instance of the object from a hash.
|
@@ -41,10 +41,10 @@ module ShellCardManagementApIs
|
|
41
41
|
return nil unless hash
|
42
42
|
|
43
43
|
# Extract variables from the hash.
|
44
|
-
|
44
|
+
fault = Fault.from_hash(hash['fault']) if hash['fault']
|
45
45
|
|
46
46
|
# Create object from extracted values.
|
47
|
-
|
47
|
+
DefaultError.new(fault)
|
48
48
|
end
|
49
49
|
end
|
50
50
|
end
|
@@ -13,8 +13,8 @@ module ShellCardManagementApIs
|
|
13
13
|
# @return [String]
|
14
14
|
attr_accessor :faultstring
|
15
15
|
|
16
|
-
#
|
17
|
-
# @return [
|
16
|
+
# Error Description
|
17
|
+
# @return [Detail]
|
18
18
|
attr_accessor :detail
|
19
19
|
|
20
20
|
# A mapping from model property names to API property names.
|
@@ -38,8 +38,7 @@ module ShellCardManagementApIs
|
|
38
38
|
[]
|
39
39
|
end
|
40
40
|
|
41
|
-
def initialize(faultstring = SKIP,
|
42
|
-
detail = SKIP)
|
41
|
+
def initialize(faultstring = SKIP, detail = SKIP)
|
43
42
|
@faultstring = faultstring unless faultstring == SKIP
|
44
43
|
@detail = detail unless detail == SKIP
|
45
44
|
end
|
@@ -50,7 +49,7 @@ module ShellCardManagementApIs
|
|
50
49
|
|
51
50
|
# Extract variables from the hash.
|
52
51
|
faultstring = hash.key?('faultstring') ? hash['faultstring'] : SKIP
|
53
|
-
detail =
|
52
|
+
detail = Detail.from_hash(hash['detail']) if hash['detail']
|
54
53
|
|
55
54
|
# Create object from extracted values.
|
56
55
|
DefaultErrorFault.new(faultstring,
|
@@ -9,12 +9,14 @@ module ShellCardManagementApIs
|
|
9
9
|
SKIP = Object.new
|
10
10
|
private_constant :SKIP
|
11
11
|
|
12
|
-
# Collecting Company
|
13
|
-
#
|
12
|
+
# Collecting Company Code (Shell Code) of the selected payer.
|
13
|
+
# Mandatory for serviced OUs such as Romania, Latvia, Lithuania, Estonia,
|
14
|
+
# Ukraine etc. It is optional for other countries if ColCoID is provided.
|
14
15
|
# Example:
|
15
|
-
#
|
16
|
+
# 86 for Philippines
|
17
|
+
# 5 for UK
|
16
18
|
# @return [Integer]
|
17
|
-
attr_accessor :
|
19
|
+
attr_accessor :col_co_code
|
18
20
|
|
19
21
|
# Collecting Company Code (Shell Code) of the selected payer.
|
20
22
|
# Mandatory for serviced OUs such as Romania, Latvia, Lithuania, Estonia,
|
@@ -23,7 +25,7 @@ module ShellCardManagementApIs
|
|
23
25
|
# 86 for Philippines
|
24
26
|
# 5 for UK
|
25
27
|
# @return [Integer]
|
26
|
-
attr_accessor :
|
28
|
+
attr_accessor :col_co_id
|
27
29
|
|
28
30
|
# Payer Number of the selected payer.
|
29
31
|
# Either PayerId or PayerNumber or both must be passed.
|
@@ -57,8 +59,8 @@ module ShellCardManagementApIs
|
|
57
59
|
# A mapping from model property names to API property names.
|
58
60
|
def self.names
|
59
61
|
@_hash = {} if @_hash.nil?
|
60
|
-
@_hash['col_co_id'] = 'ColCoId'
|
61
62
|
@_hash['col_co_code'] = 'ColCoCode'
|
63
|
+
@_hash['col_co_id'] = 'ColCoId'
|
62
64
|
@_hash['payer_number'] = 'PayerNumber'
|
63
65
|
@_hash['payer_id'] = 'PayerId'
|
64
66
|
@_hash['account_id'] = 'AccountId'
|
@@ -70,8 +72,8 @@ module ShellCardManagementApIs
|
|
70
72
|
# An array for optional fields
|
71
73
|
def self.optionals
|
72
74
|
%w[
|
73
|
-
col_co_id
|
74
75
|
col_co_code
|
76
|
+
col_co_id
|
75
77
|
payer_number
|
76
78
|
payer_id
|
77
79
|
account_id
|
@@ -84,15 +86,11 @@ module ShellCardManagementApIs
|
|
84
86
|
[]
|
85
87
|
end
|
86
88
|
|
87
|
-
def initialize(bundle_id = nil,
|
88
|
-
|
89
|
-
col_co_code = SKIP,
|
90
|
-
payer_number = SKIP,
|
91
|
-
payer_id = SKIP,
|
92
|
-
account_id = SKIP,
|
89
|
+
def initialize(bundle_id = nil, col_co_code = SKIP, col_co_id = SKIP,
|
90
|
+
payer_number = SKIP, payer_id = SKIP, account_id = SKIP,
|
93
91
|
account_number = SKIP)
|
94
|
-
@col_co_id = col_co_id unless col_co_id == SKIP
|
95
92
|
@col_co_code = col_co_code unless col_co_code == SKIP
|
93
|
+
@col_co_id = col_co_id unless col_co_id == SKIP
|
96
94
|
@payer_number = payer_number unless payer_number == SKIP
|
97
95
|
@payer_id = payer_id unless payer_id == SKIP
|
98
96
|
@account_id = account_id unless account_id == SKIP
|
@@ -106,8 +104,8 @@ module ShellCardManagementApIs
|
|
106
104
|
|
107
105
|
# Extract variables from the hash.
|
108
106
|
bundle_id = hash.key?('BundleId') ? hash['BundleId'] : nil
|
109
|
-
col_co_id = hash.key?('ColCoId') ? hash['ColCoId'] : SKIP
|
110
107
|
col_co_code = hash.key?('ColCoCode') ? hash['ColCoCode'] : SKIP
|
108
|
+
col_co_id = hash.key?('ColCoId') ? hash['ColCoId'] : SKIP
|
111
109
|
payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
|
112
110
|
payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP
|
113
111
|
account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP
|
@@ -115,8 +113,8 @@ module ShellCardManagementApIs
|
|
115
113
|
|
116
114
|
# Create object from extracted values.
|
117
115
|
DeleteBundleRequest.new(bundle_id,
|
118
|
-
col_co_id,
|
119
116
|
col_co_code,
|
117
|
+
col_co_id,
|
120
118
|
payer_number,
|
121
119
|
payer_id,
|
122
120
|
account_id,
|