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
@@ -271,9 +271,9 @@ module ShellCardManagementApIs
|
|
271
271
|
# If ‘ALL’, API will return cards with ReIssueSetting value True & False
|
272
272
|
# both.<br />
|
273
273
|
# Allowed Values:<br />
|
274
|
-
# 1.
|
275
|
-
# 2.
|
276
|
-
# 3.
|
274
|
+
# 1. All<br />
|
275
|
+
# 2. True<br />
|
276
|
+
# 3. False
|
277
277
|
# @return [String]
|
278
278
|
attr_accessor :reissue_setting
|
279
279
|
|
@@ -288,9 +288,9 @@ module ShellCardManagementApIs
|
|
288
288
|
# If ‘ALL’, API will return cards with ReIssueSetting value True & False
|
289
289
|
# both.<br />
|
290
290
|
# Allowed Values:<br />
|
291
|
-
# 1.
|
292
|
-
# 2.
|
293
|
-
# 3.
|
291
|
+
# 1. All<br />
|
292
|
+
# 2. True<br />
|
293
|
+
# 3. False
|
294
294
|
# @return [String]
|
295
295
|
attr_accessor :request_id
|
296
296
|
|
@@ -406,41 +406,23 @@ module ShellCardManagementApIs
|
|
406
406
|
]
|
407
407
|
end
|
408
408
|
|
409
|
-
def initialize(card_status = nil,
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
card_group_name = SKIP,
|
420
|
-
expiring_in_days = SKIP,
|
421
|
-
issued_after = SKIP,
|
422
|
-
pan_ends_with = SKIP,
|
423
|
-
driver_name = SKIP,
|
424
|
-
vehicle_registration_number = SKIP,
|
425
|
-
include_cards = SKIP,
|
426
|
-
exclude_cards = SKIP,
|
427
|
-
exclude_bundle_id = SKIP,
|
428
|
-
card_segment = SKIP,
|
429
|
-
purchase_category_code = SKIP,
|
430
|
-
card_type_code = SKIP,
|
409
|
+
def initialize(card_status = nil, request_id = nil, account_id = SKIP,
|
410
|
+
account_number = SKIP, col_co_code = SKIP,
|
411
|
+
col_co_country_code = SKIP, col_co_id = SKIP,
|
412
|
+
payer_id = SKIP, payer_number = SKIP, card_group_id = SKIP,
|
413
|
+
card_group_name = SKIP, expiring_in_days = SKIP,
|
414
|
+
issued_after = SKIP, pan_ends_with = SKIP,
|
415
|
+
driver_name = SKIP, vehicle_registration_number = SKIP,
|
416
|
+
include_cards = SKIP, exclude_cards = SKIP,
|
417
|
+
exclude_bundle_id = SKIP, card_segment = SKIP,
|
418
|
+
purchase_category_code = SKIP, card_type_code = SKIP,
|
431
419
|
exclude_pending_renewal_cards = SKIP,
|
432
420
|
exclude_cancelled_cards = SKIP,
|
433
|
-
exclude_replaced_cards = SKIP,
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
effective_date = SKIP,
|
439
|
-
network = SKIP,
|
440
|
-
coverage = SKIP,
|
441
|
-
expiry_month = SKIP,
|
442
|
-
exclude_old_cards = SKIP,
|
443
|
-
reissue_setting = SKIP)
|
421
|
+
exclude_replaced_cards = SKIP, exclude_fraud_cards = SKIP,
|
422
|
+
exclude_card_group_id = SKIP, exclude_card_group_name = SKIP,
|
423
|
+
creation_date = SKIP, effective_date = SKIP, network = SKIP,
|
424
|
+
coverage = SKIP, expiry_month = SKIP,
|
425
|
+
exclude_old_cards = SKIP, reissue_setting = SKIP)
|
444
426
|
@account_id = account_id unless account_id == SKIP
|
445
427
|
@account_number = account_number unless account_number == SKIP
|
446
428
|
@col_co_code = col_co_code unless col_co_code == SKIP
|
@@ -115,18 +115,12 @@ module ShellCardManagementApIs
|
|
115
115
|
]
|
116
116
|
end
|
117
117
|
|
118
|
-
def initialize(active_cards = SKIP,
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
expiring_cards = SKIP,
|
123
|
-
fraud_cards = SKIP,
|
124
|
-
new_cards = SKIP,
|
125
|
-
renewal_pending_cards = SKIP,
|
126
|
-
replaced_cards = SKIP,
|
118
|
+
def initialize(active_cards = SKIP, blocked_cards = SKIP,
|
119
|
+
cancelled_cards = SKIP, expired_cards = SKIP,
|
120
|
+
expiring_cards = SKIP, fraud_cards = SKIP, new_cards = SKIP,
|
121
|
+
renewal_pending_cards = SKIP, replaced_cards = SKIP,
|
127
122
|
temporary_block_by_customer = SKIP,
|
128
|
-
temporary_block_by_shell = SKIP,
|
129
|
-
total_cards = SKIP)
|
123
|
+
temporary_block_by_shell = SKIP, total_cards = SKIP)
|
130
124
|
@active_cards = active_cards unless active_cards == SKIP
|
131
125
|
@blocked_cards = blocked_cards unless blocked_cards == SKIP
|
132
126
|
@cancelled_cards = cancelled_cards unless cancelled_cards == SKIP
|
@@ -4,11 +4,15 @@
|
|
4
4
|
# ( https://apimatic.io ).
|
5
5
|
|
6
6
|
module ShellCardManagementApIs
|
7
|
-
#
|
8
|
-
class
|
7
|
+
# SummaryofbundleResponse Model.
|
8
|
+
class SummaryofbundleResponse < BaseModel
|
9
9
|
SKIP = Object.new
|
10
10
|
private_constant :SKIP
|
11
11
|
|
12
|
+
# Request Id of the API call
|
13
|
+
# @return [String]
|
14
|
+
attr_accessor :request_id
|
15
|
+
|
12
16
|
# Payer Id of the bundles and cards.
|
13
17
|
# Example: 123456
|
14
18
|
# @return [Integer]
|
@@ -19,8 +23,8 @@ module ShellCardManagementApIs
|
|
19
23
|
# @return [String]
|
20
24
|
attr_accessor :payer_number
|
21
25
|
|
22
|
-
#
|
23
|
-
# Example:
|
26
|
+
# Payer Number of the bundles and cards.
|
27
|
+
# Example: GB000000123
|
24
28
|
# @return [Integer]
|
25
29
|
attr_accessor :account_id
|
26
30
|
|
@@ -33,51 +37,54 @@ module ShellCardManagementApIs
|
|
33
37
|
# @return [Integer]
|
34
38
|
attr_accessor :count_of_cards_not_in_bundle
|
35
39
|
|
36
|
-
#
|
37
|
-
# @return [
|
40
|
+
# Count of cards that are not part of the bundle in a given account.
|
41
|
+
# @return [CardBundle]
|
38
42
|
attr_accessor :card_bundles
|
39
43
|
|
44
|
+
# Count of cards that are not part of the bundle in a given account.
|
45
|
+
# @return [ErrorStatus]
|
46
|
+
attr_accessor :error
|
47
|
+
|
40
48
|
# A mapping from model property names to API property names.
|
41
49
|
def self.names
|
42
50
|
@_hash = {} if @_hash.nil?
|
51
|
+
@_hash['request_id'] = 'RequestId'
|
43
52
|
@_hash['payer_id'] = 'PayerId'
|
44
53
|
@_hash['payer_number'] = 'PayerNumber'
|
45
54
|
@_hash['account_id'] = 'AccountId'
|
46
55
|
@_hash['account_number'] = 'AccountNumber'
|
47
56
|
@_hash['count_of_cards_not_in_bundle'] = 'CountOfCardsNotInBundle'
|
48
57
|
@_hash['card_bundles'] = 'CardBundles'
|
58
|
+
@_hash['error'] = 'Error'
|
49
59
|
@_hash
|
50
60
|
end
|
51
61
|
|
52
62
|
# An array for optional fields
|
53
63
|
def self.optionals
|
54
64
|
%w[
|
65
|
+
request_id
|
55
66
|
payer_id
|
56
67
|
payer_number
|
57
68
|
account_id
|
58
69
|
account_number
|
59
70
|
count_of_cards_not_in_bundle
|
60
71
|
card_bundles
|
72
|
+
error
|
61
73
|
]
|
62
74
|
end
|
63
75
|
|
64
76
|
# An array for nullable fields
|
65
77
|
def self.nullables
|
66
78
|
%w[
|
67
|
-
|
68
|
-
payer_number
|
69
|
-
account_id
|
70
|
-
account_number
|
71
|
-
count_of_cards_not_in_bundle
|
79
|
+
request_id
|
72
80
|
]
|
73
81
|
end
|
74
82
|
|
75
|
-
def initialize(payer_id = SKIP,
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
card_bundles = SKIP)
|
83
|
+
def initialize(request_id = SKIP, payer_id = SKIP, payer_number = SKIP,
|
84
|
+
account_id = SKIP, account_number = SKIP,
|
85
|
+
count_of_cards_not_in_bundle = SKIP, card_bundles = SKIP,
|
86
|
+
error = SKIP)
|
87
|
+
@request_id = request_id unless request_id == SKIP
|
81
88
|
@payer_id = payer_id unless payer_id == SKIP
|
82
89
|
@payer_number = payer_number unless payer_number == SKIP
|
83
90
|
@account_id = account_id unless account_id == SKIP
|
@@ -87,6 +94,7 @@ module ShellCardManagementApIs
|
|
87
94
|
count_of_cards_not_in_bundle
|
88
95
|
end
|
89
96
|
@card_bundles = card_bundles unless card_bundles == SKIP
|
97
|
+
@error = error unless error == SKIP
|
90
98
|
end
|
91
99
|
|
92
100
|
# Creates an instance of the object from a hash.
|
@@ -94,30 +102,25 @@ module ShellCardManagementApIs
|
|
94
102
|
return nil unless hash
|
95
103
|
|
96
104
|
# Extract variables from the hash.
|
105
|
+
request_id = hash.key?('RequestId') ? hash['RequestId'] : SKIP
|
97
106
|
payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP
|
98
107
|
payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
|
99
108
|
account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP
|
100
109
|
account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP
|
101
110
|
count_of_cards_not_in_bundle =
|
102
111
|
hash.key?('CountOfCardsNotInBundle') ? hash['CountOfCardsNotInBundle'] : SKIP
|
103
|
-
|
104
|
-
|
105
|
-
unless hash['CardBundles'].nil?
|
106
|
-
card_bundles = []
|
107
|
-
hash['CardBundles'].each do |structure|
|
108
|
-
card_bundles << (SummaryOfBundleResponseDataItemsCardBundlesItems.from_hash(structure) if structure)
|
109
|
-
end
|
110
|
-
end
|
111
|
-
|
112
|
-
card_bundles = SKIP unless hash.key?('CardBundles')
|
112
|
+
card_bundles = CardBundle.from_hash(hash['CardBundles']) if hash['CardBundles']
|
113
|
+
error = ErrorStatus.from_hash(hash['Error']) if hash['Error']
|
113
114
|
|
114
115
|
# Create object from extracted values.
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
116
|
+
SummaryofbundleResponse.new(request_id,
|
117
|
+
payer_id,
|
118
|
+
payer_number,
|
119
|
+
account_id,
|
120
|
+
account_number,
|
121
|
+
count_of_cards_not_in_bundle,
|
122
|
+
card_bundles,
|
123
|
+
error)
|
121
124
|
end
|
122
125
|
end
|
123
126
|
end
|
data/lib/shell_card_management_ap_is/models/{summaryof_bundle.rb → summaryofbundler_request.rb}
RENAMED
@@ -4,8 +4,8 @@
|
|
4
4
|
# ( https://apimatic.io ).
|
5
5
|
|
6
6
|
module ShellCardManagementApIs
|
7
|
-
#
|
8
|
-
class
|
7
|
+
# SummaryofbundlerRequest Model.
|
8
|
+
class SummaryofbundlerRequest < BaseModel
|
9
9
|
SKIP = Object.new
|
10
10
|
private_constant :SKIP
|
11
11
|
|
@@ -13,6 +13,7 @@ module ShellCardManagementApIs
|
|
13
13
|
# Optional if ColCoCode is passed else Mandatory.
|
14
14
|
# Example:
|
15
15
|
# 1 for Philippines
|
16
|
+
# 5 for UK
|
16
17
|
# @return [Integer]
|
17
18
|
attr_accessor :col_co_id
|
18
19
|
|
@@ -25,32 +26,34 @@ module ShellCardManagementApIs
|
|
25
26
|
# @return [Integer]
|
26
27
|
attr_accessor :col_co_code
|
27
28
|
|
29
|
+
# Payer Id of the selected payer.
|
30
|
+
# Optional if PayerNumber is passed else Mandatory
|
31
|
+
# Example: 123456
|
32
|
+
# @return [Integer]
|
33
|
+
attr_accessor :payer_id
|
34
|
+
|
28
35
|
# Payer Number of the selected payer.
|
29
|
-
#
|
36
|
+
# Optional if PayerId is passed else Mandatory
|
30
37
|
# Example: GB000000123
|
31
38
|
# @return [String]
|
32
39
|
attr_accessor :payer_number
|
33
40
|
|
34
|
-
#
|
35
|
-
#
|
36
|
-
# Example: 123456
|
37
|
-
# @return [Integer]
|
38
|
-
attr_accessor :payer_id
|
39
|
-
|
40
|
-
# Account ID of the customer.
|
41
|
-
# Either AccountId or AccountNumber or both must be passed.
|
41
|
+
# Account Id of the customer.
|
42
|
+
# Optional if Account Number is passed else Mandatory
|
42
43
|
# Example: 123456
|
43
44
|
# @return [Integer]
|
44
45
|
attr_accessor :account_id
|
45
46
|
|
46
|
-
# Account Number of the customer.
|
47
|
-
#
|
47
|
+
# Account Number of the customer.
|
48
|
+
# Optional if Account Id is passed else Mandatory
|
48
49
|
# Example: GB000000123
|
49
50
|
# @return [String]
|
50
51
|
attr_accessor :account_number
|
51
52
|
|
52
|
-
#
|
53
|
-
#
|
53
|
+
# List of Bundle Id associated with account
|
54
|
+
# Optional.
|
55
|
+
# When not present all the bundles in the given account will be returned in
|
56
|
+
# the response.
|
54
57
|
# @return [Array[String]]
|
55
58
|
attr_accessor :bundle_id
|
56
59
|
|
@@ -59,8 +62,8 @@ module ShellCardManagementApIs
|
|
59
62
|
@_hash = {} if @_hash.nil?
|
60
63
|
@_hash['col_co_id'] = 'ColCoId'
|
61
64
|
@_hash['col_co_code'] = 'ColCoCode'
|
62
|
-
@_hash['payer_number'] = 'PayerNumber'
|
63
65
|
@_hash['payer_id'] = 'PayerId'
|
66
|
+
@_hash['payer_number'] = 'PayerNumber'
|
64
67
|
@_hash['account_id'] = 'AccountId'
|
65
68
|
@_hash['account_number'] = 'AccountNumber'
|
66
69
|
@_hash['bundle_id'] = 'BundleId'
|
@@ -72,32 +75,36 @@ module ShellCardManagementApIs
|
|
72
75
|
%w[
|
73
76
|
col_co_id
|
74
77
|
col_co_code
|
75
|
-
payer_number
|
76
78
|
payer_id
|
79
|
+
payer_number
|
77
80
|
account_id
|
78
81
|
account_number
|
82
|
+
bundle_id
|
79
83
|
]
|
80
84
|
end
|
81
85
|
|
82
86
|
# An array for nullable fields
|
83
87
|
def self.nullables
|
84
|
-
[
|
88
|
+
%w[
|
89
|
+
col_co_id
|
90
|
+
col_co_code
|
91
|
+
payer_id
|
92
|
+
payer_number
|
93
|
+
account_id
|
94
|
+
account_number
|
95
|
+
]
|
85
96
|
end
|
86
97
|
|
87
|
-
def initialize(
|
88
|
-
|
89
|
-
|
90
|
-
payer_number = SKIP,
|
91
|
-
payer_id = SKIP,
|
92
|
-
account_id = SKIP,
|
93
|
-
account_number = SKIP)
|
98
|
+
def initialize(col_co_id = SKIP, col_co_code = SKIP, payer_id = SKIP,
|
99
|
+
payer_number = SKIP, account_id = SKIP,
|
100
|
+
account_number = SKIP, bundle_id = SKIP)
|
94
101
|
@col_co_id = col_co_id unless col_co_id == SKIP
|
95
102
|
@col_co_code = col_co_code unless col_co_code == SKIP
|
96
|
-
@payer_number = payer_number unless payer_number == SKIP
|
97
103
|
@payer_id = payer_id unless payer_id == SKIP
|
104
|
+
@payer_number = payer_number unless payer_number == SKIP
|
98
105
|
@account_id = account_id unless account_id == SKIP
|
99
106
|
@account_number = account_number unless account_number == SKIP
|
100
|
-
@bundle_id = bundle_id
|
107
|
+
@bundle_id = bundle_id unless bundle_id == SKIP
|
101
108
|
end
|
102
109
|
|
103
110
|
# Creates an instance of the object from a hash.
|
@@ -105,22 +112,22 @@ module ShellCardManagementApIs
|
|
105
112
|
return nil unless hash
|
106
113
|
|
107
114
|
# Extract variables from the hash.
|
108
|
-
bundle_id = hash.key?('BundleId') ? hash['BundleId'] : nil
|
109
115
|
col_co_id = hash.key?('ColCoId') ? hash['ColCoId'] : SKIP
|
110
116
|
col_co_code = hash.key?('ColCoCode') ? hash['ColCoCode'] : SKIP
|
111
|
-
payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
|
112
117
|
payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP
|
118
|
+
payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
|
113
119
|
account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP
|
114
120
|
account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP
|
121
|
+
bundle_id = hash.key?('BundleId') ? hash['BundleId'] : SKIP
|
115
122
|
|
116
123
|
# Create object from extracted values.
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
+
SummaryofbundlerRequest.new(col_co_id,
|
125
|
+
col_co_code,
|
126
|
+
payer_id,
|
127
|
+
payer_number,
|
128
|
+
account_id,
|
129
|
+
account_number,
|
130
|
+
bundle_id)
|
124
131
|
end
|
125
132
|
end
|
126
133
|
end
|
@@ -9,7 +9,7 @@ module ShellCardManagementApIs
|
|
9
9
|
SKIP = Object.new
|
10
10
|
private_constant :SKIP
|
11
11
|
|
12
|
-
# Collecting Company Id
|
12
|
+
# Collecting Company Id of the selected payer.
|
13
13
|
# Optional if ColCoCode is passed else Mandatory.
|
14
14
|
# Example:
|
15
15
|
# 1 for Philippines
|
@@ -17,18 +17,39 @@ module ShellCardManagementApIs
|
|
17
17
|
# @return [Integer]
|
18
18
|
attr_accessor :col_co_id
|
19
19
|
|
20
|
+
# Collecting Company Code of the selected payer.
|
21
|
+
# Mandatory for serviced OUs such as Romania, Latvia, Lithuania, Estonia,
|
22
|
+
# Ukraine etc. It is optional for other countries if ColCoID is provided.
|
23
|
+
# Example:
|
24
|
+
# 86 for Philippines
|
25
|
+
# 5 for UK
|
26
|
+
# @return [Integer]
|
27
|
+
attr_accessor :col_co_code
|
28
|
+
|
20
29
|
# Payer Id of the selected payer.
|
21
30
|
# Either PayerId or PayerNumber or both must be passed.
|
22
31
|
# Example: 123456
|
23
|
-
# @return [
|
32
|
+
# @return [String]
|
24
33
|
attr_accessor :payer_id
|
25
34
|
|
35
|
+
# Payer Number of the selected payer.
|
36
|
+
# Either PayerId or PayerNumber or both must be passed.
|
37
|
+
# Example: GB000000123
|
38
|
+
# @return [String]
|
39
|
+
attr_accessor :payer_number
|
40
|
+
|
26
41
|
# Account ID of the customer.
|
27
42
|
# Either AccountId or AccountNumber or both must be passed.
|
28
43
|
# Example: 123456
|
29
44
|
# @return [Integer]
|
30
45
|
attr_accessor :account_id
|
31
46
|
|
47
|
+
# Account Number of the customer.
|
48
|
+
# Either AccountId or AccountNumber or both must be passed.
|
49
|
+
# Example: GB000000123
|
50
|
+
# @return [String]
|
51
|
+
attr_accessor :account_number
|
52
|
+
|
32
53
|
# Identifier of the bundle in Gateway.
|
33
54
|
# Mandatory
|
34
55
|
# @return [String]
|
@@ -37,9 +58,9 @@ module ShellCardManagementApIs
|
|
37
58
|
# The value indicates the action to be performed with the request.
|
38
59
|
# Mandatory
|
39
60
|
# Allowed values:
|
40
|
-
# •
|
41
|
-
# •
|
42
|
-
# •
|
61
|
+
# • Add
|
62
|
+
# • Update
|
63
|
+
# • Remove
|
43
64
|
# @return [String]
|
44
65
|
attr_accessor :request_action
|
45
66
|
|
@@ -47,7 +68,7 @@ module ShellCardManagementApIs
|
|
47
68
|
# Mandatory for Add / Remove request action. Ignored for Update action.
|
48
69
|
# Example: 7002051006629890645
|
49
70
|
# When PAN matches with multiple cards, the restriction will be applied on
|
50
|
-
# the latest issued card
|
71
|
+
# the latest issued card.
|
51
72
|
# @return [Array[String]]
|
52
73
|
attr_accessor :cards
|
53
74
|
|
@@ -55,8 +76,8 @@ module ShellCardManagementApIs
|
|
55
76
|
# restrictions on the list of cards being added or removed.
|
56
77
|
# Mandatory for Add / Remove request action. Ignored for Update action.
|
57
78
|
# Allowed values:
|
58
|
-
# •
|
59
|
-
# •
|
79
|
+
# • Update
|
80
|
+
# • None
|
60
81
|
# @return [String]
|
61
82
|
attr_accessor :usage_restriction_action
|
62
83
|
|
@@ -64,46 +85,25 @@ module ShellCardManagementApIs
|
|
64
85
|
# restrictions on the list of cards being added or removed.
|
65
86
|
# Mandatory for Add / Remove request action. Ignored for Update action.
|
66
87
|
# Allowed values:
|
67
|
-
# •
|
68
|
-
# •
|
69
|
-
# @return [
|
88
|
+
# • Update
|
89
|
+
# • None
|
90
|
+
# @return [BundleRestrictionUpdate]
|
70
91
|
attr_accessor :restrictions
|
71
92
|
|
72
|
-
# Collecting Company Code (Shell Code) of the selected payer.
|
73
|
-
# Mandatory for serviced OUs such as Romania, Latvia, Lithuania, Estonia,
|
74
|
-
# Ukraine etc. It is optional for other countries if ColCoID is provided.
|
75
|
-
# Example:
|
76
|
-
# 86 for Philippines
|
77
|
-
# 5 for UK
|
78
|
-
# @return [Integer]
|
79
|
-
attr_accessor :col_co_code
|
80
|
-
|
81
|
-
# Payer Number of the selected payer.
|
82
|
-
# Either PayerId or PayerNumber or both must be passed.
|
83
|
-
# Example: GB000000123
|
84
|
-
# @return [String]
|
85
|
-
attr_accessor :payer_number
|
86
|
-
|
87
|
-
# Account Number of the customer.
|
88
|
-
# Either AccountId or AccountNumber or both must be passed.
|
89
|
-
# Example: GB000000123
|
90
|
-
# @return [String]
|
91
|
-
attr_accessor :account_number
|
92
|
-
|
93
93
|
# A mapping from model property names to API property names.
|
94
94
|
def self.names
|
95
95
|
@_hash = {} if @_hash.nil?
|
96
96
|
@_hash['col_co_id'] = 'ColCoId'
|
97
|
+
@_hash['col_co_code'] = 'ColCoCode'
|
97
98
|
@_hash['payer_id'] = 'PayerId'
|
99
|
+
@_hash['payer_number'] = 'PayerNumber'
|
98
100
|
@_hash['account_id'] = 'AccountId'
|
101
|
+
@_hash['account_number'] = 'AccountNumber'
|
99
102
|
@_hash['bundle_id'] = 'BundleId'
|
100
103
|
@_hash['request_action'] = 'RequestAction'
|
101
104
|
@_hash['cards'] = 'Cards'
|
102
105
|
@_hash['usage_restriction_action'] = 'UsageRestrictionAction'
|
103
106
|
@_hash['restrictions'] = 'Restrictions'
|
104
|
-
@_hash['col_co_code'] = 'ColCoCode'
|
105
|
-
@_hash['payer_number'] = 'PayerNumber'
|
106
|
-
@_hash['account_number'] = 'AccountNumber'
|
107
107
|
@_hash
|
108
108
|
end
|
109
109
|
|
@@ -111,14 +111,12 @@ module ShellCardManagementApIs
|
|
111
111
|
def self.optionals
|
112
112
|
%w[
|
113
113
|
col_co_id
|
114
|
-
payer_id
|
115
|
-
account_id
|
116
|
-
cards
|
117
|
-
usage_restriction_action
|
118
|
-
restrictions
|
119
114
|
col_co_code
|
115
|
+
payer_id
|
120
116
|
payer_number
|
117
|
+
account_id
|
121
118
|
account_number
|
119
|
+
restrictions
|
122
120
|
]
|
123
121
|
end
|
124
122
|
|
@@ -126,37 +124,33 @@ module ShellCardManagementApIs
|
|
126
124
|
def self.nullables
|
127
125
|
%w[
|
128
126
|
col_co_id
|
129
|
-
payer_id
|
130
|
-
account_id
|
131
|
-
request_action
|
132
127
|
col_co_code
|
128
|
+
payer_id
|
133
129
|
payer_number
|
130
|
+
account_id
|
134
131
|
account_number
|
132
|
+
bundle_id
|
133
|
+
request_action
|
134
|
+
usage_restriction_action
|
135
135
|
]
|
136
136
|
end
|
137
137
|
|
138
|
-
def initialize(bundle_id = nil,
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
cards = SKIP,
|
144
|
-
usage_restriction_action = SKIP,
|
145
|
-
restrictions = SKIP,
|
146
|
-
col_co_code = SKIP,
|
147
|
-
payer_number = SKIP,
|
148
|
-
account_number = SKIP)
|
138
|
+
def initialize(bundle_id = nil, request_action = nil, cards = nil,
|
139
|
+
usage_restriction_action = nil, col_co_id = SKIP,
|
140
|
+
col_co_code = SKIP, payer_id = SKIP, payer_number = SKIP,
|
141
|
+
account_id = SKIP, account_number = SKIP,
|
142
|
+
restrictions = SKIP)
|
149
143
|
@col_co_id = col_co_id unless col_co_id == SKIP
|
144
|
+
@col_co_code = col_co_code unless col_co_code == SKIP
|
150
145
|
@payer_id = payer_id unless payer_id == SKIP
|
146
|
+
@payer_number = payer_number unless payer_number == SKIP
|
151
147
|
@account_id = account_id unless account_id == SKIP
|
148
|
+
@account_number = account_number unless account_number == SKIP
|
152
149
|
@bundle_id = bundle_id
|
153
150
|
@request_action = request_action
|
154
|
-
@cards = cards
|
155
|
-
@usage_restriction_action = usage_restriction_action
|
151
|
+
@cards = cards
|
152
|
+
@usage_restriction_action = usage_restriction_action
|
156
153
|
@restrictions = restrictions unless restrictions == SKIP
|
157
|
-
@col_co_code = col_co_code unless col_co_code == SKIP
|
158
|
-
@payer_number = payer_number unless payer_number == SKIP
|
159
|
-
@account_number = account_number unless account_number == SKIP
|
160
154
|
end
|
161
155
|
|
162
156
|
# Creates an instance of the object from a hash.
|
@@ -166,29 +160,30 @@ module ShellCardManagementApIs
|
|
166
160
|
# Extract variables from the hash.
|
167
161
|
bundle_id = hash.key?('BundleId') ? hash['BundleId'] : nil
|
168
162
|
request_action = hash.key?('RequestAction') ? hash['RequestAction'] : nil
|
169
|
-
|
170
|
-
payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP
|
171
|
-
account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP
|
172
|
-
cards = hash.key?('Cards') ? hash['Cards'] : SKIP
|
163
|
+
cards = hash.key?('Cards') ? hash['Cards'] : nil
|
173
164
|
usage_restriction_action =
|
174
|
-
hash.key?('UsageRestrictionAction') ? hash['UsageRestrictionAction'] :
|
175
|
-
|
165
|
+
hash.key?('UsageRestrictionAction') ? hash['UsageRestrictionAction'] : nil
|
166
|
+
col_co_id = hash.key?('ColCoId') ? hash['ColCoId'] : SKIP
|
176
167
|
col_co_code = hash.key?('ColCoCode') ? hash['ColCoCode'] : SKIP
|
168
|
+
payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP
|
177
169
|
payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
|
170
|
+
account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP
|
178
171
|
account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP
|
172
|
+
restrictions = BundleRestrictionUpdate.from_hash(hash['Restrictions']) if
|
173
|
+
hash['Restrictions']
|
179
174
|
|
180
175
|
# Create object from extracted values.
|
181
176
|
UpdateBundleRequest.new(bundle_id,
|
182
177
|
request_action,
|
183
|
-
col_co_id,
|
184
|
-
payer_id,
|
185
|
-
account_id,
|
186
178
|
cards,
|
187
179
|
usage_restriction_action,
|
188
|
-
|
180
|
+
col_co_id,
|
189
181
|
col_co_code,
|
182
|
+
payer_id,
|
190
183
|
payer_number,
|
191
|
-
|
184
|
+
account_id,
|
185
|
+
account_number,
|
186
|
+
restrictions)
|
192
187
|
end
|
193
188
|
end
|
194
189
|
end
|