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
data/lib/shell_card_management_ap_is/models/{usage_restrictions.rb → usage_restrictions_card.rb}
RENAMED
@@ -4,144 +4,95 @@
|
|
4
4
|
# ( https://apimatic.io ).
|
5
5
|
|
6
6
|
module ShellCardManagementApIs
|
7
|
-
#
|
8
|
-
class
|
7
|
+
# UsageRestrictionsCard Model.
|
8
|
+
class UsageRestrictionsCard < BaseModel
|
9
9
|
SKIP = Object.new
|
10
10
|
private_constant :SKIP
|
11
11
|
|
12
12
|
# Maximum spend value (amount) allowed per day.
|
13
13
|
# Optional
|
14
|
-
#
|
15
|
-
#
|
16
|
-
#
|
14
|
+
# It allows null in the input field. If Values is passed as null, apply the
|
15
|
+
# card type limit. However, if the card type limit is NULL for the same
|
16
|
+
# field then No limit will be applied in Gateway.
|
17
17
|
# @return [Float]
|
18
18
|
attr_accessor :daily_spend
|
19
19
|
|
20
20
|
# Maximum spend value (amount) allowed per week.
|
21
21
|
# Optional
|
22
|
-
# The value ‘0’ represents not set. If Values is passed as null, will be
|
23
|
-
# considered as inherited.
|
24
|
-
# Valid range: 0 to 9999999999
|
25
22
|
# @return [Float]
|
26
23
|
attr_accessor :weekly_spend
|
27
24
|
|
28
25
|
# Maximum spend value (amount) allowed per month.
|
29
26
|
# Optional
|
30
|
-
# The value ‘0’ represents not set. If Values is passed as null, will be
|
31
|
-
# considered as inherited.
|
32
|
-
# Valid range: 0 to 9999999999
|
33
27
|
# @return [Float]
|
34
28
|
attr_accessor :monthly_spend
|
35
29
|
|
36
30
|
# Maximum spend value (amount) allowed per transaction.
|
37
31
|
# Optional
|
38
|
-
# The value ‘0’ represents not set. If Values is passed as null, will be
|
39
|
-
# considered as inherited.
|
40
|
-
# Valid range: 0 to 9999999999
|
41
32
|
# @return [Float]
|
42
33
|
attr_accessor :per_transaction_spend
|
43
34
|
|
35
|
+
# Maximum spend value (amount) allowed per annum.
|
36
|
+
# Optional
|
37
|
+
# @return [Float]
|
38
|
+
attr_accessor :annual_spend
|
39
|
+
|
40
|
+
# Maximum spend value (amount) allowed in card’s life time.
|
41
|
+
# Optional
|
42
|
+
# @return [Float]
|
43
|
+
attr_accessor :life_time_spend
|
44
|
+
|
44
45
|
# Maximum volume (quantity) allowed per day.
|
45
46
|
# Optional
|
46
|
-
#
|
47
|
-
# considered as inherited.
|
48
|
-
# Valid range: 0 to 9999999999
|
49
|
-
# @return [Integer]
|
47
|
+
# @return [Float]
|
50
48
|
attr_accessor :daily_volume
|
51
49
|
|
52
50
|
# Maximum volume (quantity) allowed per week.
|
53
51
|
# Optional
|
54
|
-
#
|
55
|
-
# considered as inherited.
|
56
|
-
# Valid range: 0 to 9999999999
|
57
|
-
# @return [Integer]
|
52
|
+
# @return [Float]
|
58
53
|
attr_accessor :weekly_volume
|
59
54
|
|
60
55
|
# Maximum volume (quantity) allowed per month.
|
61
56
|
# Optional
|
62
|
-
#
|
63
|
-
# considered as inherited.
|
64
|
-
# Valid range: 0 to 9999999999
|
65
|
-
# @return [Integer]
|
57
|
+
# @return [Float]
|
66
58
|
attr_accessor :monthly_volume
|
67
59
|
|
68
60
|
# Maximum volume (quantity) allowed per transaction.
|
69
61
|
# Optional
|
70
|
-
#
|
71
|
-
# considered as inherited.
|
72
|
-
# Valid range: 0 to 9999999999
|
73
|
-
# @return [Integer]
|
62
|
+
# @return [Float]
|
74
63
|
attr_accessor :per_transaction_volume
|
75
64
|
|
65
|
+
# Maximum volume (quantity) allowed per annum.
|
66
|
+
# Optional
|
67
|
+
# @return [Float]
|
68
|
+
attr_accessor :annual_volume
|
69
|
+
|
70
|
+
# Maximum volume (quantity) allowed in card’s life time.
|
71
|
+
# Optional
|
72
|
+
# @return [Float]
|
73
|
+
attr_accessor :life_time_volume
|
74
|
+
|
76
75
|
# Maximum number of transactions allowed per day.
|
77
76
|
# Optional
|
78
|
-
# The value ‘0’ represents not set. If Values is passed as null, will be
|
79
|
-
# considered as inherited.
|
80
|
-
# Valid range: 0 to 9999999999
|
81
77
|
# @return [Float]
|
82
78
|
attr_accessor :daily_transaction_count
|
83
79
|
|
84
80
|
# Maximum number of transactions allowed per week.
|
85
81
|
# Optional
|
86
|
-
# The value ‘0’ represents not set. If Values is passed as null, will be
|
87
|
-
# considered as inherited.
|
88
|
-
# Valid range: 0 to 9999999999
|
89
82
|
# @return [Float]
|
90
83
|
attr_accessor :weekly_transaction_count
|
91
84
|
|
92
85
|
# Maximum number of transactions allowed per month.
|
93
86
|
# Optional.
|
94
|
-
# The value ‘0’ represents not set. If Values is passed as null, will be
|
95
|
-
# considered as inherited.
|
96
|
-
# Valid range: 0 to 9999999999
|
97
87
|
# @return [Float]
|
98
88
|
attr_accessor :monthly_transaction_count
|
99
89
|
|
100
|
-
# Maximum
|
101
|
-
# Optional
|
102
|
-
# The value ‘0’ represents not set. If Values is passed as null, will be
|
103
|
-
# considered as inherited.
|
104
|
-
# Valid range: 0 to 9999999999
|
105
|
-
# @return [Float]
|
106
|
-
attr_accessor :annual_spend
|
107
|
-
|
108
|
-
# Maximum spend value (amount) allowed in card’s life time.
|
109
|
-
# Optional
|
110
|
-
# The value ‘0’ represents not set. If Values is passed as null, will be
|
111
|
-
# considered as inherited.
|
112
|
-
# Valid range: 0 to 9999999999
|
113
|
-
# @return [Float]
|
114
|
-
attr_accessor :life_time_spend
|
115
|
-
|
116
|
-
# Maximum volume (quantity) allowed per annum.
|
117
|
-
# Optional
|
118
|
-
# The value ‘0’ represents not set. If Values is passed as null, will be
|
119
|
-
# considered as inherited.
|
120
|
-
# Valid range: 0 to 9999999999
|
121
|
-
# @return [Float]
|
122
|
-
attr_accessor :annual_volume
|
123
|
-
|
124
|
-
# Maximum volume (quantity) allowed in card’s life time.
|
125
|
-
# Optional
|
126
|
-
# The value ‘0’ represents not set. If Values is passed as null, will be
|
127
|
-
# considered as inherited.
|
128
|
-
# Valid range: 0 to 9999999999
|
129
|
-
# @return [Float]
|
130
|
-
attr_accessor :life_time_volume
|
131
|
-
|
132
|
-
# Maximum number of transactions allowed per annum.
|
133
|
-
# Optional.
|
134
|
-
# The value ‘0’ represents not set. If Values is passed as null, will be
|
135
|
-
# considered as inherited.
|
136
|
-
# Valid range: 0 to 9999999999
|
90
|
+
# Maximum number of transactions allowed per annum.
|
137
91
|
# @return [Float]
|
138
92
|
attr_accessor :annual_transaction_count
|
139
93
|
|
140
94
|
# Maximum number of transactions allowed in card’s lifetime.
|
141
95
|
# Optional
|
142
|
-
# The value ‘0’ represents not set. If Values is passed as null, will be
|
143
|
-
# considered as inherited.
|
144
|
-
# Valid range: 0 to 9999999999
|
145
96
|
# @return [Float]
|
146
97
|
attr_accessor :life_time_transaction_count
|
147
98
|
|
@@ -152,17 +103,17 @@ module ShellCardManagementApIs
|
|
152
103
|
@_hash['weekly_spend'] = 'WeeklySpend'
|
153
104
|
@_hash['monthly_spend'] = 'MonthlySpend'
|
154
105
|
@_hash['per_transaction_spend'] = 'PerTransactionSpend'
|
106
|
+
@_hash['annual_spend'] = 'AnnualSpend'
|
107
|
+
@_hash['life_time_spend'] = 'LifeTimeSpend'
|
155
108
|
@_hash['daily_volume'] = 'DailyVolume'
|
156
109
|
@_hash['weekly_volume'] = 'WeeklyVolume'
|
157
110
|
@_hash['monthly_volume'] = 'MonthlyVolume'
|
158
111
|
@_hash['per_transaction_volume'] = 'PerTransactionVolume'
|
112
|
+
@_hash['annual_volume'] = 'AnnualVolume'
|
113
|
+
@_hash['life_time_volume'] = 'LifeTimeVolume'
|
159
114
|
@_hash['daily_transaction_count'] = 'DailyTransactionCount'
|
160
115
|
@_hash['weekly_transaction_count'] = 'WeeklyTransactionCount'
|
161
116
|
@_hash['monthly_transaction_count'] = 'MonthlyTransactionCount'
|
162
|
-
@_hash['annual_spend'] = 'AnnualSpend'
|
163
|
-
@_hash['life_time_spend'] = 'LifeTimeSpend'
|
164
|
-
@_hash['annual_volume'] = 'AnnualVolume'
|
165
|
-
@_hash['life_time_volume'] = 'LifeTimeVolume'
|
166
117
|
@_hash['annual_transaction_count'] = 'AnnualTransactionCount'
|
167
118
|
@_hash['life_time_transaction_count'] = 'LifeTimeTransactionCount'
|
168
119
|
@_hash
|
@@ -175,17 +126,17 @@ module ShellCardManagementApIs
|
|
175
126
|
weekly_spend
|
176
127
|
monthly_spend
|
177
128
|
per_transaction_spend
|
129
|
+
annual_spend
|
130
|
+
life_time_spend
|
178
131
|
daily_volume
|
179
132
|
weekly_volume
|
180
133
|
monthly_volume
|
181
134
|
per_transaction_volume
|
135
|
+
annual_volume
|
136
|
+
life_time_volume
|
182
137
|
daily_transaction_count
|
183
138
|
weekly_transaction_count
|
184
139
|
monthly_transaction_count
|
185
|
-
annual_spend
|
186
|
-
life_time_spend
|
187
|
-
annual_volume
|
188
|
-
life_time_volume
|
189
140
|
annual_transaction_count
|
190
141
|
life_time_transaction_count
|
191
142
|
]
|
@@ -198,57 +149,49 @@ module ShellCardManagementApIs
|
|
198
149
|
weekly_spend
|
199
150
|
monthly_spend
|
200
151
|
per_transaction_spend
|
152
|
+
annual_spend
|
153
|
+
life_time_spend
|
201
154
|
daily_volume
|
202
155
|
weekly_volume
|
203
156
|
monthly_volume
|
204
|
-
|
157
|
+
annual_volume
|
205
158
|
daily_transaction_count
|
206
159
|
weekly_transaction_count
|
207
160
|
monthly_transaction_count
|
208
|
-
annual_spend
|
209
|
-
life_time_spend
|
210
|
-
annual_volume
|
211
|
-
life_time_volume
|
212
161
|
annual_transaction_count
|
213
162
|
life_time_transaction_count
|
214
163
|
]
|
215
164
|
end
|
216
165
|
|
217
|
-
def initialize(daily_spend = SKIP,
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
monthly_volume = SKIP,
|
224
|
-
per_transaction_volume = SKIP,
|
166
|
+
def initialize(daily_spend = SKIP, weekly_spend = SKIP,
|
167
|
+
monthly_spend = SKIP, per_transaction_spend = SKIP,
|
168
|
+
annual_spend = SKIP, life_time_spend = SKIP,
|
169
|
+
daily_volume = SKIP, weekly_volume = SKIP,
|
170
|
+
monthly_volume = SKIP, per_transaction_volume = SKIP,
|
171
|
+
annual_volume = SKIP, life_time_volume = SKIP,
|
225
172
|
daily_transaction_count = SKIP,
|
226
173
|
weekly_transaction_count = SKIP,
|
227
174
|
monthly_transaction_count = SKIP,
|
228
|
-
annual_spend = SKIP,
|
229
|
-
life_time_spend = SKIP,
|
230
|
-
annual_volume = SKIP,
|
231
|
-
life_time_volume = SKIP,
|
232
175
|
annual_transaction_count = SKIP,
|
233
176
|
life_time_transaction_count = SKIP)
|
234
177
|
@daily_spend = daily_spend unless daily_spend == SKIP
|
235
178
|
@weekly_spend = weekly_spend unless weekly_spend == SKIP
|
236
179
|
@monthly_spend = monthly_spend unless monthly_spend == SKIP
|
237
180
|
@per_transaction_spend = per_transaction_spend unless per_transaction_spend == SKIP
|
181
|
+
@annual_spend = annual_spend unless annual_spend == SKIP
|
182
|
+
@life_time_spend = life_time_spend unless life_time_spend == SKIP
|
238
183
|
@daily_volume = daily_volume unless daily_volume == SKIP
|
239
184
|
@weekly_volume = weekly_volume unless weekly_volume == SKIP
|
240
185
|
@monthly_volume = monthly_volume unless monthly_volume == SKIP
|
241
186
|
@per_transaction_volume = per_transaction_volume unless per_transaction_volume == SKIP
|
187
|
+
@annual_volume = annual_volume unless annual_volume == SKIP
|
188
|
+
@life_time_volume = life_time_volume unless life_time_volume == SKIP
|
242
189
|
@daily_transaction_count = daily_transaction_count unless daily_transaction_count == SKIP
|
243
190
|
@weekly_transaction_count = weekly_transaction_count unless weekly_transaction_count == SKIP
|
244
191
|
unless monthly_transaction_count == SKIP
|
245
192
|
@monthly_transaction_count =
|
246
193
|
monthly_transaction_count
|
247
194
|
end
|
248
|
-
@annual_spend = annual_spend unless annual_spend == SKIP
|
249
|
-
@life_time_spend = life_time_spend unless life_time_spend == SKIP
|
250
|
-
@annual_volume = annual_volume unless annual_volume == SKIP
|
251
|
-
@life_time_volume = life_time_volume unless life_time_volume == SKIP
|
252
195
|
@annual_transaction_count = annual_transaction_count unless annual_transaction_count == SKIP
|
253
196
|
unless life_time_transaction_count == SKIP
|
254
197
|
@life_time_transaction_count =
|
@@ -266,46 +209,46 @@ module ShellCardManagementApIs
|
|
266
209
|
monthly_spend = hash.key?('MonthlySpend') ? hash['MonthlySpend'] : SKIP
|
267
210
|
per_transaction_spend =
|
268
211
|
hash.key?('PerTransactionSpend') ? hash['PerTransactionSpend'] : SKIP
|
212
|
+
annual_spend = hash.key?('AnnualSpend') ? hash['AnnualSpend'] : SKIP
|
213
|
+
life_time_spend =
|
214
|
+
hash.key?('LifeTimeSpend') ? hash['LifeTimeSpend'] : SKIP
|
269
215
|
daily_volume = hash.key?('DailyVolume') ? hash['DailyVolume'] : SKIP
|
270
216
|
weekly_volume = hash.key?('WeeklyVolume') ? hash['WeeklyVolume'] : SKIP
|
271
217
|
monthly_volume = hash.key?('MonthlyVolume') ? hash['MonthlyVolume'] : SKIP
|
272
218
|
per_transaction_volume =
|
273
219
|
hash.key?('PerTransactionVolume') ? hash['PerTransactionVolume'] : SKIP
|
220
|
+
annual_volume = hash.key?('AnnualVolume') ? hash['AnnualVolume'] : SKIP
|
221
|
+
life_time_volume =
|
222
|
+
hash.key?('LifeTimeVolume') ? hash['LifeTimeVolume'] : SKIP
|
274
223
|
daily_transaction_count =
|
275
224
|
hash.key?('DailyTransactionCount') ? hash['DailyTransactionCount'] : SKIP
|
276
225
|
weekly_transaction_count =
|
277
226
|
hash.key?('WeeklyTransactionCount') ? hash['WeeklyTransactionCount'] : SKIP
|
278
227
|
monthly_transaction_count =
|
279
228
|
hash.key?('MonthlyTransactionCount') ? hash['MonthlyTransactionCount'] : SKIP
|
280
|
-
annual_spend = hash.key?('AnnualSpend') ? hash['AnnualSpend'] : SKIP
|
281
|
-
life_time_spend =
|
282
|
-
hash.key?('LifeTimeSpend') ? hash['LifeTimeSpend'] : SKIP
|
283
|
-
annual_volume = hash.key?('AnnualVolume') ? hash['AnnualVolume'] : SKIP
|
284
|
-
life_time_volume =
|
285
|
-
hash.key?('LifeTimeVolume') ? hash['LifeTimeVolume'] : SKIP
|
286
229
|
annual_transaction_count =
|
287
230
|
hash.key?('AnnualTransactionCount') ? hash['AnnualTransactionCount'] : SKIP
|
288
231
|
life_time_transaction_count =
|
289
232
|
hash.key?('LifeTimeTransactionCount') ? hash['LifeTimeTransactionCount'] : SKIP
|
290
233
|
|
291
234
|
# Create object from extracted values.
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
235
|
+
UsageRestrictionsCard.new(daily_spend,
|
236
|
+
weekly_spend,
|
237
|
+
monthly_spend,
|
238
|
+
per_transaction_spend,
|
239
|
+
annual_spend,
|
240
|
+
life_time_spend,
|
241
|
+
daily_volume,
|
242
|
+
weekly_volume,
|
243
|
+
monthly_volume,
|
244
|
+
per_transaction_volume,
|
245
|
+
annual_volume,
|
246
|
+
life_time_volume,
|
247
|
+
daily_transaction_count,
|
248
|
+
weekly_transaction_count,
|
249
|
+
monthly_transaction_count,
|
250
|
+
annual_transaction_count,
|
251
|
+
life_time_transaction_count)
|
309
252
|
end
|
310
253
|
end
|
311
254
|
end
|