card-management-sdk 1.0.0 → 1.1.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 +28 -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/card_controller.rb +227 -232
- data/lib/shell_card_management_ap_is/controllers/customer_controller.rb +135 -145
- data/lib/shell_card_management_ap_is/controllers/o_auth_authorization_controller.rb +2 -2
- data/lib/shell_card_management_ap_is/controllers/restriction_controller.rb +351 -229
- data/lib/shell_card_management_ap_is/exceptions/{error_user_access_error1_exception.rb → fleetmanagement_v1_customer_customer403_error_exception.rb} +2 -2
- data/lib/shell_card_management_ap_is/exceptions/{default_error_exception.rb → fleetmanagement_v1_customer_payers400_error_exception.rb} +5 -5
- 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/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 +6 -15
- 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 +21 -45
- data/lib/shell_card_management_ap_is/models/account_restriction_request.rb +28 -9
- 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 +25 -21
- 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 +9 -22
- 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 +2 -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 +1 -2
- 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 +73 -103
- data/lib/shell_card_management_ap_is/models/bundle_restriction_update.rb +187 -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 +88 -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 +23 -50
- 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 +36 -49
- 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 +60 -249
- 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 +3 -9
- 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 +65 -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 +13 -27
- data/lib/shell_card_management_ap_is/models/day_time_restriction.rb +133 -0
- 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/{restriction_search_card_request.rb → detail.rb} +11 -11
- 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 +194 -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/fleetmanagement_v1_user_loggedinuser_request.rb +104 -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 +9 -22
- 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 +22 -40
- data/lib/shell_card_management_ap_is/models/order_card_enquiry_req.rb +8 -21
- 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 +45 -86
- data/lib/shell_card_management_ap_is/models/payer_request.rb +3 -6
- 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 +1 -2
- 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 +12 -10
- 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 +2 -7
- 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 +15 -30
- data/lib/shell_card_management_ap_is/models/restriction.rb +88 -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} +66 -83
- 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 +5 -14
- 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 +1 -2
- 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 +19 -41
- 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 +4 -10
- data/lib/shell_card_management_ap_is/models/summary_request.rb +15 -33
- 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 +58 -63
- 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 +21 -20
- data/lib/shell_card_management_ap_is/models/update_card_group_request.rb +6 -14
- 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 +3 -9
- 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 +2 -4
- 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.rb +128 -101
- metadata +60 -33
- 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/day_time_restrictions.rb +0 -162
- 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,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]
|
@@ -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
|
|
@@ -66,44 +87,23 @@ module ShellCardManagementApIs
|
|
66
87
|
# Allowed values:
|
67
88
|
# • Update
|
68
89
|
# • None
|
69
|
-
# @return [
|
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
|
@@ -9,24 +9,44 @@ module ShellCardManagementApIs
|
|
9
9
|
SKIP = Object.new
|
10
10
|
private_constant :SKIP
|
11
11
|
|
12
|
-
#
|
12
|
+
# Request Id of the API call
|
13
13
|
# @return [String]
|
14
14
|
attr_accessor :request_id
|
15
15
|
|
16
|
-
# API
|
17
|
-
# @return [
|
18
|
-
attr_accessor :
|
16
|
+
# Request Id of the API call
|
17
|
+
# @return [ErrorStatus]
|
18
|
+
attr_accessor :request_action_status
|
19
|
+
|
20
|
+
# Request Id of the API call
|
21
|
+
# @return [ErrorStatus]
|
22
|
+
attr_accessor :day_time_restriction_status
|
23
|
+
|
24
|
+
# Request Id of the API call
|
25
|
+
# @return [ErrorStatus]
|
26
|
+
attr_accessor :location_restriction_status
|
27
|
+
|
28
|
+
# Request Id of the API call
|
29
|
+
# @return [ErrorStatus]
|
30
|
+
attr_accessor :product_restriction_status
|
19
31
|
|
20
|
-
# API
|
21
|
-
# @return [
|
22
|
-
attr_accessor :
|
32
|
+
# Request Id of the API call
|
33
|
+
# @return [ErrorStatus]
|
34
|
+
attr_accessor :usage_restriction_status
|
35
|
+
|
36
|
+
# Request Id of the API call
|
37
|
+
# @return [ErrorStatus]
|
38
|
+
attr_accessor :error
|
23
39
|
|
24
40
|
# A mapping from model property names to API property names.
|
25
41
|
def self.names
|
26
42
|
@_hash = {} if @_hash.nil?
|
27
43
|
@_hash['request_id'] = 'RequestId'
|
28
|
-
@_hash['
|
29
|
-
@_hash['
|
44
|
+
@_hash['request_action_status'] = 'RequestActionStatus'
|
45
|
+
@_hash['day_time_restriction_status'] = 'DayTimeRestrictionStatus'
|
46
|
+
@_hash['location_restriction_status'] = 'LocationRestrictionStatus'
|
47
|
+
@_hash['product_restriction_status'] = 'ProductRestrictionStatus'
|
48
|
+
@_hash['usage_restriction_status'] = 'UsageRestrictionStatus'
|
49
|
+
@_hash['error'] = 'Error'
|
30
50
|
@_hash
|
31
51
|
end
|
32
52
|
|
@@ -34,22 +54,43 @@ module ShellCardManagementApIs
|
|
34
54
|
def self.optionals
|
35
55
|
%w[
|
36
56
|
request_id
|
37
|
-
|
38
|
-
|
57
|
+
request_action_status
|
58
|
+
day_time_restriction_status
|
59
|
+
location_restriction_status
|
60
|
+
product_restriction_status
|
61
|
+
usage_restriction_status
|
62
|
+
error
|
39
63
|
]
|
40
64
|
end
|
41
65
|
|
42
66
|
# An array for nullable fields
|
43
67
|
def self.nullables
|
44
|
-
[
|
68
|
+
%w[
|
69
|
+
request_id
|
70
|
+
]
|
45
71
|
end
|
46
72
|
|
47
|
-
def initialize(request_id = SKIP,
|
48
|
-
|
49
|
-
|
73
|
+
def initialize(request_id = SKIP, request_action_status = SKIP,
|
74
|
+
day_time_restriction_status = SKIP,
|
75
|
+
location_restriction_status = SKIP,
|
76
|
+
product_restriction_status = SKIP,
|
77
|
+
usage_restriction_status = SKIP, error = SKIP)
|
50
78
|
@request_id = request_id unless request_id == SKIP
|
51
|
-
@
|
52
|
-
|
79
|
+
@request_action_status = request_action_status unless request_action_status == SKIP
|
80
|
+
unless day_time_restriction_status == SKIP
|
81
|
+
@day_time_restriction_status =
|
82
|
+
day_time_restriction_status
|
83
|
+
end
|
84
|
+
unless location_restriction_status == SKIP
|
85
|
+
@location_restriction_status =
|
86
|
+
location_restriction_status
|
87
|
+
end
|
88
|
+
unless product_restriction_status == SKIP
|
89
|
+
@product_restriction_status =
|
90
|
+
product_restriction_status
|
91
|
+
end
|
92
|
+
@usage_restriction_status = usage_restriction_status unless usage_restriction_status == SKIP
|
93
|
+
@error = error unless error == SKIP
|
53
94
|
end
|
54
95
|
|
55
96
|
# Creates an instance of the object from a hash.
|
@@ -58,13 +99,26 @@ module ShellCardManagementApIs
|
|
58
99
|
|
59
100
|
# Extract variables from the hash.
|
60
101
|
request_id = hash.key?('RequestId') ? hash['RequestId'] : SKIP
|
61
|
-
|
62
|
-
|
102
|
+
request_action_status = ErrorStatus.from_hash(hash['RequestActionStatus']) if
|
103
|
+
hash['RequestActionStatus']
|
104
|
+
day_time_restriction_status = ErrorStatus.from_hash(hash['DayTimeRestrictionStatus']) if
|
105
|
+
hash['DayTimeRestrictionStatus']
|
106
|
+
location_restriction_status = ErrorStatus.from_hash(hash['LocationRestrictionStatus']) if
|
107
|
+
hash['LocationRestrictionStatus']
|
108
|
+
product_restriction_status = ErrorStatus.from_hash(hash['ProductRestrictionStatus']) if
|
109
|
+
hash['ProductRestrictionStatus']
|
110
|
+
usage_restriction_status = ErrorStatus.from_hash(hash['UsageRestrictionStatus']) if
|
111
|
+
hash['UsageRestrictionStatus']
|
112
|
+
error = ErrorStatus.from_hash(hash['Error']) if hash['Error']
|
63
113
|
|
64
114
|
# Create object from extracted values.
|
65
115
|
UpdateBundleResponse.new(request_id,
|
66
|
-
|
67
|
-
|
116
|
+
request_action_status,
|
117
|
+
day_time_restriction_status,
|
118
|
+
location_restriction_status,
|
119
|
+
product_restriction_status,
|
120
|
+
usage_restriction_status,
|
121
|
+
error)
|
68
122
|
end
|
69
123
|
end
|
70
124
|
end
|