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
@@ -9,19 +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
|
-
#
|
16
|
+
# Account Id on which restriction is applied.
|
17
|
+
# Example: 123456
|
18
|
+
# @return [Integer]
|
19
|
+
attr_accessor :account_id
|
20
|
+
|
21
|
+
# Account Number on which restriction is applied.
|
22
|
+
# Example: GB000000123
|
23
|
+
# @return [String]
|
24
|
+
attr_accessor :account_number
|
25
|
+
|
26
|
+
# Status of the card usage restriction submitted to Gateway. Based on the
|
27
|
+
# response from Gateway value will be set as either “Success” or “Failed”.
|
28
|
+
# @return [String]
|
29
|
+
attr_accessor :usage_restriction_status
|
30
|
+
|
31
|
+
# Response for the usage restriction in case of an error. This field will
|
32
|
+
# have a value only when “UsageRestrictionStatus” is “Failed”.
|
17
33
|
# @return [String]
|
18
|
-
attr_accessor :
|
34
|
+
attr_accessor :usage_restriction_description
|
35
|
+
|
36
|
+
# Response for the usage restriction in case of an error. This field will
|
37
|
+
# have a value only when “UsageRestrictionStatus” is “Failed”.
|
38
|
+
# @return [ErrorStatus]
|
39
|
+
attr_accessor :error
|
19
40
|
|
20
41
|
# A mapping from model property names to API property names.
|
21
42
|
def self.names
|
22
43
|
@_hash = {} if @_hash.nil?
|
23
44
|
@_hash['request_id'] = 'RequestId'
|
24
|
-
@_hash['
|
45
|
+
@_hash['account_id'] = 'AccountId'
|
46
|
+
@_hash['account_number'] = 'AccountNumber'
|
47
|
+
@_hash['usage_restriction_status'] = 'UsageRestrictionStatus'
|
48
|
+
@_hash['usage_restriction_description'] = 'UsageRestrictionDescription'
|
49
|
+
@_hash['error'] = 'Error'
|
25
50
|
@_hash
|
26
51
|
end
|
27
52
|
|
@@ -29,19 +54,33 @@ module ShellCardManagementApIs
|
|
29
54
|
def self.optionals
|
30
55
|
%w[
|
31
56
|
request_id
|
32
|
-
|
57
|
+
account_id
|
58
|
+
account_number
|
59
|
+
usage_restriction_status
|
60
|
+
usage_restriction_description
|
61
|
+
error
|
33
62
|
]
|
34
63
|
end
|
35
64
|
|
36
65
|
# An array for nullable fields
|
37
66
|
def self.nullables
|
38
|
-
[
|
67
|
+
%w[
|
68
|
+
request_id
|
69
|
+
]
|
39
70
|
end
|
40
71
|
|
41
|
-
def initialize(request_id = SKIP,
|
42
|
-
|
72
|
+
def initialize(request_id = SKIP, account_id = SKIP, account_number = SKIP,
|
73
|
+
usage_restriction_status = SKIP,
|
74
|
+
usage_restriction_description = SKIP, error = SKIP)
|
43
75
|
@request_id = request_id unless request_id == SKIP
|
44
|
-
@
|
76
|
+
@account_id = account_id unless account_id == SKIP
|
77
|
+
@account_number = account_number unless account_number == SKIP
|
78
|
+
@usage_restriction_status = usage_restriction_status unless usage_restriction_status == SKIP
|
79
|
+
unless usage_restriction_description == SKIP
|
80
|
+
@usage_restriction_description =
|
81
|
+
usage_restriction_description
|
82
|
+
end
|
83
|
+
@error = error unless error == SKIP
|
45
84
|
end
|
46
85
|
|
47
86
|
# Creates an instance of the object from a hash.
|
@@ -50,11 +89,21 @@ module ShellCardManagementApIs
|
|
50
89
|
|
51
90
|
# Extract variables from the hash.
|
52
91
|
request_id = hash.key?('RequestId') ? hash['RequestId'] : SKIP
|
53
|
-
|
92
|
+
account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP
|
93
|
+
account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP
|
94
|
+
usage_restriction_status =
|
95
|
+
hash.key?('UsageRestrictionStatus') ? hash['UsageRestrictionStatus'] : SKIP
|
96
|
+
usage_restriction_description =
|
97
|
+
hash.key?('UsageRestrictionDescription') ? hash['UsageRestrictionDescription'] : SKIP
|
98
|
+
error = ErrorStatus.from_hash(hash['Error']) if hash['Error']
|
54
99
|
|
55
100
|
# Create object from extracted values.
|
56
101
|
AccountRestrictionResponse.new(request_id,
|
57
|
-
|
102
|
+
account_id,
|
103
|
+
account_number,
|
104
|
+
usage_restriction_status,
|
105
|
+
usage_restriction_description,
|
106
|
+
error)
|
58
107
|
end
|
59
108
|
end
|
60
109
|
end
|
@@ -21,7 +21,8 @@ module ShellCardManagementApIs
|
|
21
21
|
|
22
22
|
# The limit associated with this velocity with the correct number of digits
|
23
23
|
# after the decimal point according to the minor denomination of the
|
24
|
-
# currency of the card issuer
|
24
|
+
# currency of the card issuer.
|
25
|
+
# Example: 1500.55
|
25
26
|
# @return [Float]
|
26
27
|
attr_accessor :limit
|
27
28
|
|
@@ -29,6 +30,7 @@ module ShellCardManagementApIs
|
|
29
30
|
# number of digits after the decimal point according to the minor
|
30
31
|
# denomination of the currency of the card issuer (except for COUNT type
|
31
32
|
# velocity). Not present for PERTRX period.
|
33
|
+
# Example: 1100.55
|
32
34
|
# @return [Float]
|
33
35
|
attr_accessor :accumulation
|
34
36
|
|
@@ -36,10 +38,12 @@ module ShellCardManagementApIs
|
|
36
38
|
# number of digits after the decimal point according to the minor
|
37
39
|
# denomination of the currency of the card issuer (except for COUNT type
|
38
40
|
# velocity). Not present for PERTRX period.
|
41
|
+
# Example: 400.55
|
39
42
|
# @return [Float]
|
40
43
|
attr_accessor :balance
|
41
44
|
|
42
45
|
# Indicate if the limit is overridden or default. (false for default).
|
46
|
+
# Example: false
|
43
47
|
# @return [TrueClass | FalseClass]
|
44
48
|
attr_accessor :override
|
45
49
|
|
@@ -54,6 +58,8 @@ module ShellCardManagementApIs
|
|
54
58
|
# it or below. 0 indicates no alerts will be sent. Not present if not set
|
55
59
|
# (issuer value threshold limit applies if available). Not present for COUNT
|
56
60
|
# type velocity.
|
61
|
+
# Example: 50.55
|
62
|
+
# This is an optional output field.
|
57
63
|
# @return [Float]
|
58
64
|
attr_accessor :threshold
|
59
65
|
|
@@ -87,26 +93,12 @@ module ShellCardManagementApIs
|
|
87
93
|
|
88
94
|
# An array for nullable fields
|
89
95
|
def self.nullables
|
90
|
-
|
91
|
-
type
|
92
|
-
period
|
93
|
-
limit
|
94
|
-
accumulation
|
95
|
-
balance
|
96
|
-
override
|
97
|
-
product_group
|
98
|
-
threshold
|
99
|
-
]
|
96
|
+
[]
|
100
97
|
end
|
101
98
|
|
102
|
-
def initialize(type = SKIP,
|
103
|
-
|
104
|
-
|
105
|
-
accumulation = SKIP,
|
106
|
-
balance = SKIP,
|
107
|
-
override = SKIP,
|
108
|
-
product_group = SKIP,
|
109
|
-
threshold = SKIP)
|
99
|
+
def initialize(type = SKIP, period = SKIP, limit = SKIP,
|
100
|
+
accumulation = SKIP, balance = SKIP, override = SKIP,
|
101
|
+
product_group = SKIP, threshold = SKIP)
|
110
102
|
@type = type unless type == SKIP
|
111
103
|
@period = period unless period == SKIP
|
112
104
|
@limit = limit unless limit == SKIP
|
@@ -43,8 +43,7 @@ module ShellCardManagementApIs
|
|
43
43
|
]
|
44
44
|
end
|
45
45
|
|
46
|
-
def initialize(account_id = SKIP,
|
47
|
-
account_number = SKIP)
|
46
|
+
def initialize(account_id = SKIP, account_number = SKIP)
|
48
47
|
@account_id = account_id unless account_id == SKIP
|
49
48
|
@account_number = account_number unless account_number == SKIP
|
50
49
|
end
|
@@ -111,17 +111,10 @@ module ShellCardManagementApIs
|
|
111
111
|
]
|
112
112
|
end
|
113
113
|
|
114
|
-
def initialize(address_id = SKIP,
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
zip_code = SKIP,
|
119
|
-
city = SKIP,
|
120
|
-
region_id = SKIP,
|
121
|
-
country_iso_code = SKIP,
|
122
|
-
country = SKIP,
|
123
|
-
telephone = SKIP,
|
124
|
-
email_address = SKIP,
|
114
|
+
def initialize(address_id = SKIP, address_line1 = SKIP,
|
115
|
+
address_line2 = SKIP, address_line3 = SKIP, zip_code = SKIP,
|
116
|
+
city = SKIP, region_id = SKIP, country_iso_code = SKIP,
|
117
|
+
country = SKIP, telephone = SKIP, email_address = SKIP,
|
125
118
|
fax = SKIP)
|
126
119
|
@address_id = address_id unless address_id == SKIP
|
127
120
|
@address_line1 = address_line1 unless address_line1 == SKIP
|
@@ -71,14 +71,26 @@ module ShellCardManagementApIs
|
|
71
71
|
# @return [Integer]
|
72
72
|
attr_accessor :page_size
|
73
73
|
|
74
|
-
#
|
75
|
-
# Optional
|
76
|
-
#
|
77
|
-
#
|
78
|
-
#
|
79
|
-
#
|
80
|
-
#
|
81
|
-
#
|
74
|
+
# Type of requests to be fetched.
|
75
|
+
# Optional
|
76
|
+
# Allowed values:
|
77
|
+
# • OrderCard
|
78
|
+
# • CreateCardGroup
|
79
|
+
# • PINReminder
|
80
|
+
# • MoveCard
|
81
|
+
# • UpdateCardStatus
|
82
|
+
# • UpdateCardGroup
|
83
|
+
# • AutoRenew
|
84
|
+
# • BulkCardOrder
|
85
|
+
# • BulkCardBlock
|
86
|
+
# • BulkCardOrderMultiAccount
|
87
|
+
# • MobilePaymentRegistration
|
88
|
+
# • UpdateCompanyInfo
|
89
|
+
# • BCOSummary
|
90
|
+
# • BCOMultiAccountSummary
|
91
|
+
# • BCBSummary
|
92
|
+
# • FundTransfer
|
93
|
+
# • DeliveryAddressUpdate
|
82
94
|
# @return [Array[String]]
|
83
95
|
attr_accessor :requested_operation
|
84
96
|
|
@@ -185,19 +197,11 @@ module ShellCardManagementApIs
|
|
185
197
|
]
|
186
198
|
end
|
187
199
|
|
188
|
-
def initialize(status = SKIP,
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
col_co_id = SKIP,
|
194
|
-
accounts = SKIP,
|
195
|
-
page_size = SKIP,
|
196
|
-
requested_operation = SKIP,
|
197
|
-
sort_order = SKIP,
|
198
|
-
search_text = SKIP,
|
199
|
-
current_page = SKIP,
|
200
|
-
from_date = SKIP,
|
200
|
+
def initialize(status = SKIP, payer_number = SKIP, payer_id = SKIP,
|
201
|
+
account_number = SKIP, col_co_code = SKIP, col_co_id = SKIP,
|
202
|
+
accounts = SKIP, page_size = SKIP,
|
203
|
+
requested_operation = SKIP, sort_order = SKIP,
|
204
|
+
search_text = SKIP, current_page = SKIP, from_date = SKIP,
|
201
205
|
to_date = SKIP)
|
202
206
|
@status = status unless status == SKIP
|
203
207
|
@payer_number = payer_number unless payer_number == SKIP
|
@@ -64,12 +64,8 @@ module ShellCardManagementApIs
|
|
64
64
|
[]
|
65
65
|
end
|
66
66
|
|
67
|
-
def initialize(audits = SKIP,
|
68
|
-
|
69
|
-
row_count = SKIP,
|
70
|
-
total_pages = SKIP,
|
71
|
-
error = SKIP,
|
72
|
-
request_id = SKIP)
|
67
|
+
def initialize(audits = SKIP, current_page = SKIP, row_count = SKIP,
|
68
|
+
total_pages = SKIP, error = SKIP, request_id = SKIP)
|
73
69
|
@audits = audits unless audits == SKIP
|
74
70
|
@current_page = current_page unless current_page == SKIP
|
75
71
|
@row_count = row_count unless row_count == SKIP
|
@@ -297,8 +297,7 @@ module ShellCardManagementApIs
|
|
297
297
|
]
|
298
298
|
end
|
299
299
|
|
300
|
-
def initialize(account_id = SKIP,
|
301
|
-
account_number = SKIP,
|
300
|
+
def initialize(account_id = SKIP, account_number = SKIP,
|
302
301
|
additional_information1 = SKIP,
|
303
302
|
additional_information2 = SKIP,
|
304
303
|
additional_information3 = SKIP,
|
@@ -307,26 +306,14 @@ module ShellCardManagementApIs
|
|
307
306
|
additional_information6 = SKIP,
|
308
307
|
additional_information7 = SKIP,
|
309
308
|
additional_information8 = SKIP,
|
310
|
-
additional_information9 = SKIP,
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
global_request_id = SKIP,
|
319
|
-
pan = SKIP,
|
320
|
-
payer_id = SKIP,
|
321
|
-
payer_number = SKIP,
|
322
|
-
processed_on = SKIP,
|
323
|
-
requested_by = SKIP,
|
324
|
-
requested_operation = SKIP,
|
325
|
-
request_reference = SKIP,
|
326
|
-
request_type = SKIP,
|
327
|
-
status = SKIP,
|
328
|
-
submitted_on = SKIP,
|
329
|
-
sub_request_reference = SKIP,
|
309
|
+
additional_information9 = SKIP, card_group_id = SKIP,
|
310
|
+
card_group_name = SKIP, card_id = SKIP, col_co_code = SKIP,
|
311
|
+
col_co_id = SKIP, error_code = SKIP, error_string = SKIP,
|
312
|
+
global_request_id = SKIP, pan = SKIP, payer_id = SKIP,
|
313
|
+
payer_number = SKIP, processed_on = SKIP,
|
314
|
+
requested_by = SKIP, requested_operation = SKIP,
|
315
|
+
request_reference = SKIP, request_type = SKIP, status = SKIP,
|
316
|
+
submitted_on = SKIP, sub_request_reference = SKIP,
|
330
317
|
user_display_name = SKIP)
|
331
318
|
@account_id = account_id unless account_id == SKIP
|
332
319
|
@account_number = account_number unless account_number == SKIP
|
@@ -68,11 +68,8 @@ module ShellCardManagementApIs
|
|
68
68
|
[]
|
69
69
|
end
|
70
70
|
|
71
|
-
def initialize(col_co_id = SKIP,
|
72
|
-
|
73
|
-
payer_number = SKIP,
|
74
|
-
payer_id = SKIP,
|
75
|
-
auto_renew_cards = SKIP)
|
71
|
+
def initialize(col_co_id = SKIP, col_co_code = SKIP, payer_number = SKIP,
|
72
|
+
payer_id = SKIP, auto_renew_cards = SKIP)
|
76
73
|
@col_co_id = col_co_id unless col_co_id == SKIP
|
77
74
|
@col_co_code = col_co_code unless col_co_code == SKIP
|
78
75
|
@payer_number = payer_number unless payer_number == SKIP
|
data/lib/shell_card_management_ap_is/models/auto_renew_card_request_auto_renew_cards_items.rb
CHANGED
@@ -63,11 +63,8 @@ module ShellCardManagementApIs
|
|
63
63
|
[]
|
64
64
|
end
|
65
65
|
|
66
|
-
def initialize(reissue_setting = nil,
|
67
|
-
|
68
|
-
account_id = SKIP,
|
69
|
-
pan = SKIP,
|
70
|
-
card_id = SKIP)
|
66
|
+
def initialize(reissue_setting = nil, account_number = SKIP,
|
67
|
+
account_id = SKIP, pan = SKIP, card_id = SKIP)
|
71
68
|
@account_number = account_number unless account_number == SKIP
|
72
69
|
@account_id = account_id unless account_id == SKIP
|
73
70
|
@pan = pan unless pan == SKIP
|
@@ -53,9 +53,7 @@ module ShellCardManagementApIs
|
|
53
53
|
[]
|
54
54
|
end
|
55
55
|
|
56
|
-
def initialize(main_reference = SKIP,
|
57
|
-
request_id = SKIP,
|
58
|
-
status = SKIP,
|
56
|
+
def initialize(main_reference = SKIP, request_id = SKIP, status = SKIP,
|
59
57
|
data = SKIP)
|
60
58
|
@main_reference = main_reference unless main_reference == SKIP
|
61
59
|
@request_id = request_id unless request_id == SKIP
|
@@ -41,8 +41,7 @@ module ShellCardManagementApIs
|
|
41
41
|
]
|
42
42
|
end
|
43
43
|
|
44
|
-
def initialize(auto_renew_reference_id = SKIP,
|
45
|
-
card_id_and_pan = SKIP)
|
44
|
+
def initialize(auto_renew_reference_id = SKIP, card_id_and_pan = SKIP)
|
46
45
|
@auto_renew_reference_id = auto_renew_reference_id unless auto_renew_reference_id == SKIP
|
47
46
|
@card_id_and_pan = card_id_and_pan unless card_id_and_pan == SKIP
|
48
47
|
end
|
@@ -123,19 +123,11 @@ module ShellCardManagementApIs
|
|
123
123
|
]
|
124
124
|
end
|
125
125
|
|
126
|
-
def initialize(account_number = SKIP,
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
iban = SKIP,
|
132
|
-
currency_code = SKIP,
|
133
|
-
currency_symbol = SKIP,
|
134
|
-
country_iso_code = SKIP,
|
135
|
-
country = SKIP,
|
136
|
-
sort_code = SKIP,
|
137
|
-
swift_code = SKIP,
|
138
|
-
bank_type = SKIP)
|
126
|
+
def initialize(account_number = SKIP, bank_name = SKIP, account_name = SKIP,
|
127
|
+
date_effective = SKIP, date_terminated = SKIP, iban = SKIP,
|
128
|
+
currency_code = SKIP, currency_symbol = SKIP,
|
129
|
+
country_iso_code = SKIP, country = SKIP, sort_code = SKIP,
|
130
|
+
swift_code = SKIP, bank_type = SKIP)
|
139
131
|
@account_number = account_number unless account_number == SKIP
|
140
132
|
@bank_name = bank_name unless bank_name == SKIP
|
141
133
|
@account_name = account_name unless account_name == SKIP
|
@@ -4,12 +4,12 @@
|
|
4
4
|
# ( https://apimatic.io ).
|
5
5
|
|
6
6
|
module ShellCardManagementApIs
|
7
|
-
#
|
8
|
-
class
|
7
|
+
# BudleDetailsRequest Model.
|
8
|
+
class BudleDetailsRequest < BaseModel
|
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
|
@@ -26,10 +26,10 @@ module ShellCardManagementApIs
|
|
26
26
|
# @return [Integer]
|
27
27
|
attr_accessor :col_co_code
|
28
28
|
|
29
|
-
# Payer Id
|
29
|
+
# Payer Id of the selected payer.
|
30
30
|
# Optional if PayerNumber is passed else Mandatory
|
31
31
|
# Example: 123456
|
32
|
-
# @return [
|
32
|
+
# @return [String]
|
33
33
|
attr_accessor :payer_id
|
34
34
|
|
35
35
|
# Payer Number of the selected payer.
|
@@ -38,17 +38,24 @@ module ShellCardManagementApIs
|
|
38
38
|
# @return [String]
|
39
39
|
attr_accessor :payer_number
|
40
40
|
|
41
|
-
#
|
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
47
|
# Account Number of the customer.
|
47
|
-
# Optional if
|
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
|
|
53
|
+
# Bundle Id associated with account
|
54
|
+
# Mandatory.
|
55
|
+
# Example: 835662721
|
56
|
+
# @return [String]
|
57
|
+
attr_accessor :bundle_id
|
58
|
+
|
52
59
|
# A mapping from model property names to API property names.
|
53
60
|
def self.names
|
54
61
|
@_hash = {} if @_hash.nil?
|
@@ -58,6 +65,7 @@ module ShellCardManagementApIs
|
|
58
65
|
@_hash['payer_number'] = 'PayerNumber'
|
59
66
|
@_hash['account_id'] = 'AccountId'
|
60
67
|
@_hash['account_number'] = 'AccountNumber'
|
68
|
+
@_hash['bundle_id'] = 'BundleId'
|
61
69
|
@_hash
|
62
70
|
end
|
63
71
|
|
@@ -70,28 +78,25 @@ module ShellCardManagementApIs
|
|
70
78
|
payer_number
|
71
79
|
account_id
|
72
80
|
account_number
|
81
|
+
bundle_id
|
73
82
|
]
|
74
83
|
end
|
75
84
|
|
76
85
|
# An array for nullable fields
|
77
86
|
def self.nullables
|
78
|
-
|
79
|
-
col_co_id
|
80
|
-
]
|
87
|
+
[]
|
81
88
|
end
|
82
89
|
|
83
|
-
def initialize(col_co_id = SKIP,
|
84
|
-
|
85
|
-
|
86
|
-
payer_number = SKIP,
|
87
|
-
account_id = SKIP,
|
88
|
-
account_number = SKIP)
|
90
|
+
def initialize(col_co_id = SKIP, col_co_code = SKIP, payer_id = SKIP,
|
91
|
+
payer_number = SKIP, account_id = SKIP,
|
92
|
+
account_number = SKIP, bundle_id = SKIP)
|
89
93
|
@col_co_id = col_co_id unless col_co_id == SKIP
|
90
94
|
@col_co_code = col_co_code unless col_co_code == SKIP
|
91
95
|
@payer_id = payer_id unless payer_id == SKIP
|
92
96
|
@payer_number = payer_number unless payer_number == SKIP
|
93
97
|
@account_id = account_id unless account_id == SKIP
|
94
98
|
@account_number = account_number unless account_number == SKIP
|
99
|
+
@bundle_id = bundle_id unless bundle_id == SKIP
|
95
100
|
end
|
96
101
|
|
97
102
|
# Creates an instance of the object from a hash.
|
@@ -105,14 +110,16 @@ module ShellCardManagementApIs
|
|
105
110
|
payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
|
106
111
|
account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP
|
107
112
|
account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP
|
113
|
+
bundle_id = hash.key?('BundleId') ? hash['BundleId'] : SKIP
|
108
114
|
|
109
115
|
# Create object from extracted values.
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
+
BudleDetailsRequest.new(col_co_id,
|
117
|
+
col_co_code,
|
118
|
+
payer_id,
|
119
|
+
payer_number,
|
120
|
+
account_id,
|
121
|
+
account_number,
|
122
|
+
bundle_id)
|
116
123
|
end
|
117
124
|
end
|
118
125
|
end
|
@@ -4,12 +4,13 @@
|
|
4
4
|
# ( https://apimatic.io ).
|
5
5
|
|
6
6
|
module ShellCardManagementApIs
|
7
|
-
#
|
8
|
-
class
|
7
|
+
# BundleCardRestrictionStatus Model.
|
8
|
+
class BundleCardRestrictionStatus < BaseModel
|
9
9
|
SKIP = Object.new
|
10
10
|
private_constant :SKIP
|
11
11
|
|
12
12
|
# Card PAN.
|
13
|
+
# Example: 7002051006629890645
|
13
14
|
# @return [String]
|
14
15
|
attr_accessor :pan
|
15
16
|
|
@@ -44,7 +45,7 @@ module ShellCardManagementApIs
|
|
44
45
|
pan = hash.key?('PAN') ? hash['PAN'] : SKIP
|
45
46
|
|
46
47
|
# Create object from extracted values.
|
47
|
-
|
48
|
+
BundleCardRestrictionStatus.new(pan)
|
48
49
|
end
|
49
50
|
end
|
50
51
|
end
|