card-management-sdk 1.1.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +15 -16
- data/lib/shell_card_management_ap_is/controllers/base_controller.rb +9 -9
- data/lib/shell_card_management_ap_is/controllers/card_controller.rb +383 -378
- data/lib/shell_card_management_ap_is/controllers/customer_controller.rb +234 -225
- data/lib/shell_card_management_ap_is/controllers/o_auth_authorization_controller.rb +9 -9
- data/lib/shell_card_management_ap_is/controllers/restriction_controller.rb +256 -248
- data/lib/shell_card_management_ap_is/exceptions/error_object_exception.rb +15 -15
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_customer_customer403_error_exception.rb +15 -15
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_customer_payers400_error_exception.rb +15 -15
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_customer_payers404_error_exception.rb +15 -15
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser400_error_exception.rb +15 -15
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser401_error_exception.rb +15 -15
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser403_error_exception.rb +15 -15
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser404_error_exception.rb +15 -15
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser500_error_exception.rb +15 -15
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v2_restriction_searchcard401_error_exception.rb +15 -15
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v2_restriction_searchcard500_error_exception.rb +15 -15
- data/lib/shell_card_management_ap_is/exceptions/o_auth_provider_exception.rb +15 -15
- data/lib/shell_card_management_ap_is/models/account_request.rb +11 -11
- data/lib/shell_card_management_ap_is/models/account_response_accounts_items.rb +8 -8
- data/lib/shell_card_management_ap_is/models/account_restriction_request.rb +3 -4
- data/lib/shell_card_management_ap_is/models/audit_request.rb +29 -29
- data/lib/shell_card_management_ap_is/models/audit_response_audits_items.rb +41 -41
- data/lib/shell_card_management_ap_is/models/auto_renew_card_request_auto_renew_cards_items.rb +12 -1
- data/lib/shell_card_management_ap_is/models/auto_renew_card_response_data_items.rb +13 -2
- data/lib/shell_card_management_ap_is/models/base_model.rb +76 -28
- data/lib/shell_card_management_ap_is/models/bundle_restriction.rb +35 -22
- data/lib/shell_card_management_ap_is/models/bundle_restriction_update.rb +6 -8
- data/lib/shell_card_management_ap_is/models/bundled_restrictions_list.rb +10 -16
- data/lib/shell_card_management_ap_is/models/card.rb +25 -6
- data/lib/shell_card_management_ap_is/models/card_detail.rb +24 -24
- data/lib/shell_card_management_ap_is/models/card_group_request.rb +3 -3
- data/lib/shell_card_management_ap_is/models/card_settings.rb +10 -10
- data/lib/shell_card_management_ap_is/models/create_bundle_request.rb +2 -3
- data/lib/shell_card_management_ap_is/models/customer_detail_response.rb +18 -18
- data/lib/shell_card_management_ap_is/models/day_time_restriction.rb +2 -2
- data/lib/shell_card_management_ap_is/models/day_time_restrictions.rb +132 -0
- data/lib/shell_card_management_ap_is/models/filters.rb +6 -6
- data/lib/shell_card_management_ap_is/models/filters1.rb +6 -6
- data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_customer_payers400_error1.rb +50 -0
- data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_customer_payers404_error1.rb +50 -0
- data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser400_error1.rb +50 -0
- data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser401_error1.rb +50 -0
- data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser404_error1.rb +50 -0
- data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser500_error1.rb +50 -0
- data/lib/shell_card_management_ap_is/models/fleetmanagement_v2_restriction_searchcard401_error1.rb +50 -0
- data/lib/shell_card_management_ap_is/models/fleetmanagement_v2_restriction_searchcard500_error1.rb +50 -0
- data/lib/shell_card_management_ap_is/models/logged_in_user_response.rb +3 -3
- data/lib/shell_card_management_ap_is/models/order_card_enquiry.rb +27 -6
- data/lib/shell_card_management_ap_is/models/payer_details.rb +10 -10
- data/lib/shell_card_management_ap_is/models/payer_request.rb +6 -6
- data/lib/shell_card_management_ap_is/models/pin_advice_types.rb +4 -4
- data/lib/shell_card_management_ap_is/models/pin_reminder_card_details.rb +11 -11
- data/lib/shell_card_management_ap_is/models/purchase_category1_all_of0.rb +8 -8
- data/lib/shell_card_management_ap_is/models/replace_card_settings.rb +10 -10
- data/lib/shell_card_management_ap_is/models/restriction.rb +10 -16
- data/lib/shell_card_management_ap_is/models/restriction_cards_list.rb +21 -17
- data/lib/shell_card_management_ap_is/models/schedule_card_block_cards_items.rb +39 -27
- data/lib/shell_card_management_ap_is/models/search_card.rb +13 -2
- data/lib/shell_card_management_ap_is/models/search_request.rb +6 -6
- data/lib/shell_card_management_ap_is/models/submitted_card.rb +22 -1
- data/lib/shell_card_management_ap_is/models/summary_request.rb +6 -6
- data/lib/shell_card_management_ap_is/models/update_bundle_request.rb +7 -7
- data/lib/shell_card_management_ap_is/models/update_card.rb +11 -60
- data/lib/shell_card_management_ap_is/models/update_card_group_request.rb +3 -3
- data/lib/shell_card_management_ap_is/models/update_card_renewal_address.rb +2 -2
- data/lib/shell_card_management_ap_is/models/update_card_renewal_address2.rb +2 -2
- data/lib/shell_card_management_ap_is/models/update_m_pay_reg_status_request_m_pay_requests_items.rb +1 -1
- data/lib/shell_card_management_ap_is/models/usage_restriction.rb +2 -2
- data/lib/shell_card_management_ap_is/utilities/file_wrapper.rb +9 -9
- data/lib/shell_card_management_ap_is.rb +17 -0
- metadata +17 -8
@@ -22,21 +22,21 @@ module ShellCardManagementApIs
|
|
22
22
|
# Indicates overall status of the request. Allowed values: SUCCES, FAILED,
|
23
23
|
# PARTIAL_SUCCESS
|
24
24
|
# @return [Array[ErrorDetails]]
|
25
|
-
attr_accessor :errors
|
26
|
-
|
27
|
-
# The constructor.
|
28
|
-
# @param [String] The reason for raising an exception.
|
29
|
-
# @param [HttpResponse] The HttpReponse of the API call.
|
30
|
-
def initialize(reason, response)
|
31
|
-
super(reason, response)
|
32
|
-
hash = APIHelper.json_deserialize(@response.raw_body)
|
33
|
-
unbox(hash)
|
34
|
-
end
|
35
|
-
|
36
|
-
# Populates this object by extracting properties from a hash.
|
37
|
-
# @param [Hash] The deserialized response sent by the server in the
|
38
|
-
# response body.
|
39
|
-
def unbox(hash)
|
25
|
+
attr_accessor :errors
|
26
|
+
|
27
|
+
# The constructor.
|
28
|
+
# @param [String] The reason for raising an exception.
|
29
|
+
# @param [HttpResponse] The HttpReponse of the API call.
|
30
|
+
def initialize(reason, response)
|
31
|
+
super(reason, response)
|
32
|
+
hash = APIHelper.json_deserialize(@response.raw_body)
|
33
|
+
unbox(hash)
|
34
|
+
end
|
35
|
+
|
36
|
+
# Populates this object by extracting properties from a hash.
|
37
|
+
# @param [Hash] The deserialized response sent by the server in the
|
38
|
+
# response body.
|
39
|
+
def unbox(hash)
|
40
40
|
@request_id = hash.key?('RequestId') ? hash['RequestId'] : SKIP
|
41
41
|
@status = hash.key?('Status') ? hash['Status'] : SKIP
|
42
42
|
# Parameter is an array, so we need to iterate through it
|
@@ -11,21 +11,21 @@ module ShellCardManagementApIs
|
|
11
11
|
|
12
12
|
# TODO: Write general description for this method
|
13
13
|
# @return [ErrorUserAccessError]
|
14
|
-
attr_accessor :error
|
15
|
-
|
16
|
-
# The constructor.
|
17
|
-
# @param [String] The reason for raising an exception.
|
18
|
-
# @param [HttpResponse] The HttpReponse of the API call.
|
19
|
-
def initialize(reason, response)
|
20
|
-
super(reason, response)
|
21
|
-
hash = APIHelper.json_deserialize(@response.raw_body)
|
22
|
-
unbox(hash)
|
23
|
-
end
|
24
|
-
|
25
|
-
# Populates this object by extracting properties from a hash.
|
26
|
-
# @param [Hash] The deserialized response sent by the server in the
|
27
|
-
# response body.
|
28
|
-
def unbox(hash)
|
14
|
+
attr_accessor :error
|
15
|
+
|
16
|
+
# The constructor.
|
17
|
+
# @param [String] The reason for raising an exception.
|
18
|
+
# @param [HttpResponse] The HttpReponse of the API call.
|
19
|
+
def initialize(reason, response)
|
20
|
+
super(reason, response)
|
21
|
+
hash = APIHelper.json_deserialize(@response.raw_body)
|
22
|
+
unbox(hash)
|
23
|
+
end
|
24
|
+
|
25
|
+
# Populates this object by extracting properties from a hash.
|
26
|
+
# @param [Hash] The deserialized response sent by the server in the
|
27
|
+
# response body.
|
28
|
+
def unbox(hash)
|
29
29
|
@error = ErrorUserAccessError.from_hash(hash['Error']) if hash['Error']
|
30
30
|
end
|
31
31
|
end
|
@@ -11,21 +11,21 @@ module ShellCardManagementApIs
|
|
11
11
|
|
12
12
|
# TODO: Write general description for this method
|
13
13
|
# @return [Fault]
|
14
|
-
attr_accessor :fault
|
15
|
-
|
16
|
-
# The constructor.
|
17
|
-
# @param [String] The reason for raising an exception.
|
18
|
-
# @param [HttpResponse] The HttpReponse of the API call.
|
19
|
-
def initialize(reason, response)
|
20
|
-
super(reason, response)
|
21
|
-
hash = APIHelper.json_deserialize(@response.raw_body)
|
22
|
-
unbox(hash)
|
23
|
-
end
|
24
|
-
|
25
|
-
# Populates this object by extracting properties from a hash.
|
26
|
-
# @param [Hash] The deserialized response sent by the server in the
|
27
|
-
# response body.
|
28
|
-
def unbox(hash)
|
14
|
+
attr_accessor :fault
|
15
|
+
|
16
|
+
# The constructor.
|
17
|
+
# @param [String] The reason for raising an exception.
|
18
|
+
# @param [HttpResponse] The HttpReponse of the API call.
|
19
|
+
def initialize(reason, response)
|
20
|
+
super(reason, response)
|
21
|
+
hash = APIHelper.json_deserialize(@response.raw_body)
|
22
|
+
unbox(hash)
|
23
|
+
end
|
24
|
+
|
25
|
+
# Populates this object by extracting properties from a hash.
|
26
|
+
# @param [Hash] The deserialized response sent by the server in the
|
27
|
+
# response body.
|
28
|
+
def unbox(hash)
|
29
29
|
@fault = Fault.from_hash(hash['fault']) if hash['fault']
|
30
30
|
end
|
31
31
|
end
|
@@ -11,21 +11,21 @@ module ShellCardManagementApIs
|
|
11
11
|
|
12
12
|
# TODO: Write general description for this method
|
13
13
|
# @return [Fault]
|
14
|
-
attr_accessor :fault
|
15
|
-
|
16
|
-
# The constructor.
|
17
|
-
# @param [String] The reason for raising an exception.
|
18
|
-
# @param [HttpResponse] The HttpReponse of the API call.
|
19
|
-
def initialize(reason, response)
|
20
|
-
super(reason, response)
|
21
|
-
hash = APIHelper.json_deserialize(@response.raw_body)
|
22
|
-
unbox(hash)
|
23
|
-
end
|
24
|
-
|
25
|
-
# Populates this object by extracting properties from a hash.
|
26
|
-
# @param [Hash] The deserialized response sent by the server in the
|
27
|
-
# response body.
|
28
|
-
def unbox(hash)
|
14
|
+
attr_accessor :fault
|
15
|
+
|
16
|
+
# The constructor.
|
17
|
+
# @param [String] The reason for raising an exception.
|
18
|
+
# @param [HttpResponse] The HttpReponse of the API call.
|
19
|
+
def initialize(reason, response)
|
20
|
+
super(reason, response)
|
21
|
+
hash = APIHelper.json_deserialize(@response.raw_body)
|
22
|
+
unbox(hash)
|
23
|
+
end
|
24
|
+
|
25
|
+
# Populates this object by extracting properties from a hash.
|
26
|
+
# @param [Hash] The deserialized response sent by the server in the
|
27
|
+
# response body.
|
28
|
+
def unbox(hash)
|
29
29
|
@fault = Fault.from_hash(hash['fault']) if hash['fault']
|
30
30
|
end
|
31
31
|
end
|
@@ -11,21 +11,21 @@ module ShellCardManagementApIs
|
|
11
11
|
|
12
12
|
# TODO: Write general description for this method
|
13
13
|
# @return [Fault]
|
14
|
-
attr_accessor :fault
|
15
|
-
|
16
|
-
# The constructor.
|
17
|
-
# @param [String] The reason for raising an exception.
|
18
|
-
# @param [HttpResponse] The HttpReponse of the API call.
|
19
|
-
def initialize(reason, response)
|
20
|
-
super(reason, response)
|
21
|
-
hash = APIHelper.json_deserialize(@response.raw_body)
|
22
|
-
unbox(hash)
|
23
|
-
end
|
24
|
-
|
25
|
-
# Populates this object by extracting properties from a hash.
|
26
|
-
# @param [Hash] The deserialized response sent by the server in the
|
27
|
-
# response body.
|
28
|
-
def unbox(hash)
|
14
|
+
attr_accessor :fault
|
15
|
+
|
16
|
+
# The constructor.
|
17
|
+
# @param [String] The reason for raising an exception.
|
18
|
+
# @param [HttpResponse] The HttpReponse of the API call.
|
19
|
+
def initialize(reason, response)
|
20
|
+
super(reason, response)
|
21
|
+
hash = APIHelper.json_deserialize(@response.raw_body)
|
22
|
+
unbox(hash)
|
23
|
+
end
|
24
|
+
|
25
|
+
# Populates this object by extracting properties from a hash.
|
26
|
+
# @param [Hash] The deserialized response sent by the server in the
|
27
|
+
# response body.
|
28
|
+
def unbox(hash)
|
29
29
|
@fault = Fault.from_hash(hash['fault']) if hash['fault']
|
30
30
|
end
|
31
31
|
end
|
@@ -11,21 +11,21 @@ module ShellCardManagementApIs
|
|
11
11
|
|
12
12
|
# TODO: Write general description for this method
|
13
13
|
# @return [Fault]
|
14
|
-
attr_accessor :fault
|
15
|
-
|
16
|
-
# The constructor.
|
17
|
-
# @param [String] The reason for raising an exception.
|
18
|
-
# @param [HttpResponse] The HttpReponse of the API call.
|
19
|
-
def initialize(reason, response)
|
20
|
-
super(reason, response)
|
21
|
-
hash = APIHelper.json_deserialize(@response.raw_body)
|
22
|
-
unbox(hash)
|
23
|
-
end
|
24
|
-
|
25
|
-
# Populates this object by extracting properties from a hash.
|
26
|
-
# @param [Hash] The deserialized response sent by the server in the
|
27
|
-
# response body.
|
28
|
-
def unbox(hash)
|
14
|
+
attr_accessor :fault
|
15
|
+
|
16
|
+
# The constructor.
|
17
|
+
# @param [String] The reason for raising an exception.
|
18
|
+
# @param [HttpResponse] The HttpReponse of the API call.
|
19
|
+
def initialize(reason, response)
|
20
|
+
super(reason, response)
|
21
|
+
hash = APIHelper.json_deserialize(@response.raw_body)
|
22
|
+
unbox(hash)
|
23
|
+
end
|
24
|
+
|
25
|
+
# Populates this object by extracting properties from a hash.
|
26
|
+
# @param [Hash] The deserialized response sent by the server in the
|
27
|
+
# response body.
|
28
|
+
def unbox(hash)
|
29
29
|
@fault = Fault.from_hash(hash['fault']) if hash['fault']
|
30
30
|
end
|
31
31
|
end
|
@@ -11,21 +11,21 @@ module ShellCardManagementApIs
|
|
11
11
|
|
12
12
|
# TODO: Write general description for this method
|
13
13
|
# @return [ErrorUserAccessError]
|
14
|
-
attr_accessor :error
|
15
|
-
|
16
|
-
# The constructor.
|
17
|
-
# @param [String] The reason for raising an exception.
|
18
|
-
# @param [HttpResponse] The HttpReponse of the API call.
|
19
|
-
def initialize(reason, response)
|
20
|
-
super(reason, response)
|
21
|
-
hash = APIHelper.json_deserialize(@response.raw_body)
|
22
|
-
unbox(hash)
|
23
|
-
end
|
24
|
-
|
25
|
-
# Populates this object by extracting properties from a hash.
|
26
|
-
# @param [Hash] The deserialized response sent by the server in the
|
27
|
-
# response body.
|
28
|
-
def unbox(hash)
|
14
|
+
attr_accessor :error
|
15
|
+
|
16
|
+
# The constructor.
|
17
|
+
# @param [String] The reason for raising an exception.
|
18
|
+
# @param [HttpResponse] The HttpReponse of the API call.
|
19
|
+
def initialize(reason, response)
|
20
|
+
super(reason, response)
|
21
|
+
hash = APIHelper.json_deserialize(@response.raw_body)
|
22
|
+
unbox(hash)
|
23
|
+
end
|
24
|
+
|
25
|
+
# Populates this object by extracting properties from a hash.
|
26
|
+
# @param [Hash] The deserialized response sent by the server in the
|
27
|
+
# response body.
|
28
|
+
def unbox(hash)
|
29
29
|
@error = ErrorUserAccessError.from_hash(hash['Error']) if hash['Error']
|
30
30
|
end
|
31
31
|
end
|
@@ -11,21 +11,21 @@ module ShellCardManagementApIs
|
|
11
11
|
|
12
12
|
# TODO: Write general description for this method
|
13
13
|
# @return [Fault]
|
14
|
-
attr_accessor :fault
|
15
|
-
|
16
|
-
# The constructor.
|
17
|
-
# @param [String] The reason for raising an exception.
|
18
|
-
# @param [HttpResponse] The HttpReponse of the API call.
|
19
|
-
def initialize(reason, response)
|
20
|
-
super(reason, response)
|
21
|
-
hash = APIHelper.json_deserialize(@response.raw_body)
|
22
|
-
unbox(hash)
|
23
|
-
end
|
24
|
-
|
25
|
-
# Populates this object by extracting properties from a hash.
|
26
|
-
# @param [Hash] The deserialized response sent by the server in the
|
27
|
-
# response body.
|
28
|
-
def unbox(hash)
|
14
|
+
attr_accessor :fault
|
15
|
+
|
16
|
+
# The constructor.
|
17
|
+
# @param [String] The reason for raising an exception.
|
18
|
+
# @param [HttpResponse] The HttpReponse of the API call.
|
19
|
+
def initialize(reason, response)
|
20
|
+
super(reason, response)
|
21
|
+
hash = APIHelper.json_deserialize(@response.raw_body)
|
22
|
+
unbox(hash)
|
23
|
+
end
|
24
|
+
|
25
|
+
# Populates this object by extracting properties from a hash.
|
26
|
+
# @param [Hash] The deserialized response sent by the server in the
|
27
|
+
# response body.
|
28
|
+
def unbox(hash)
|
29
29
|
@fault = Fault.from_hash(hash['fault']) if hash['fault']
|
30
30
|
end
|
31
31
|
end
|
@@ -11,21 +11,21 @@ module ShellCardManagementApIs
|
|
11
11
|
|
12
12
|
# TODO: Write general description for this method
|
13
13
|
# @return [Fault]
|
14
|
-
attr_accessor :fault
|
15
|
-
|
16
|
-
# The constructor.
|
17
|
-
# @param [String] The reason for raising an exception.
|
18
|
-
# @param [HttpResponse] The HttpReponse of the API call.
|
19
|
-
def initialize(reason, response)
|
20
|
-
super(reason, response)
|
21
|
-
hash = APIHelper.json_deserialize(@response.raw_body)
|
22
|
-
unbox(hash)
|
23
|
-
end
|
24
|
-
|
25
|
-
# Populates this object by extracting properties from a hash.
|
26
|
-
# @param [Hash] The deserialized response sent by the server in the
|
27
|
-
# response body.
|
28
|
-
def unbox(hash)
|
14
|
+
attr_accessor :fault
|
15
|
+
|
16
|
+
# The constructor.
|
17
|
+
# @param [String] The reason for raising an exception.
|
18
|
+
# @param [HttpResponse] The HttpReponse of the API call.
|
19
|
+
def initialize(reason, response)
|
20
|
+
super(reason, response)
|
21
|
+
hash = APIHelper.json_deserialize(@response.raw_body)
|
22
|
+
unbox(hash)
|
23
|
+
end
|
24
|
+
|
25
|
+
# Populates this object by extracting properties from a hash.
|
26
|
+
# @param [Hash] The deserialized response sent by the server in the
|
27
|
+
# response body.
|
28
|
+
def unbox(hash)
|
29
29
|
@fault = Fault.from_hash(hash['fault']) if hash['fault']
|
30
30
|
end
|
31
31
|
end
|
@@ -11,21 +11,21 @@ module ShellCardManagementApIs
|
|
11
11
|
|
12
12
|
# TODO: Write general description for this method
|
13
13
|
# @return [Fault]
|
14
|
-
attr_accessor :fault
|
15
|
-
|
16
|
-
# The constructor.
|
17
|
-
# @param [String] The reason for raising an exception.
|
18
|
-
# @param [HttpResponse] The HttpReponse of the API call.
|
19
|
-
def initialize(reason, response)
|
20
|
-
super(reason, response)
|
21
|
-
hash = APIHelper.json_deserialize(@response.raw_body)
|
22
|
-
unbox(hash)
|
23
|
-
end
|
24
|
-
|
25
|
-
# Populates this object by extracting properties from a hash.
|
26
|
-
# @param [Hash] The deserialized response sent by the server in the
|
27
|
-
# response body.
|
28
|
-
def unbox(hash)
|
14
|
+
attr_accessor :fault
|
15
|
+
|
16
|
+
# The constructor.
|
17
|
+
# @param [String] The reason for raising an exception.
|
18
|
+
# @param [HttpResponse] The HttpReponse of the API call.
|
19
|
+
def initialize(reason, response)
|
20
|
+
super(reason, response)
|
21
|
+
hash = APIHelper.json_deserialize(@response.raw_body)
|
22
|
+
unbox(hash)
|
23
|
+
end
|
24
|
+
|
25
|
+
# Populates this object by extracting properties from a hash.
|
26
|
+
# @param [Hash] The deserialized response sent by the server in the
|
27
|
+
# response body.
|
28
|
+
def unbox(hash)
|
29
29
|
@fault = Fault.from_hash(hash['fault']) if hash['fault']
|
30
30
|
end
|
31
31
|
end
|
@@ -11,21 +11,21 @@ module ShellCardManagementApIs
|
|
11
11
|
|
12
12
|
# TODO: Write general description for this method
|
13
13
|
# @return [Fault]
|
14
|
-
attr_accessor :fault
|
15
|
-
|
16
|
-
# The constructor.
|
17
|
-
# @param [String] The reason for raising an exception.
|
18
|
-
# @param [HttpResponse] The HttpReponse of the API call.
|
19
|
-
def initialize(reason, response)
|
20
|
-
super(reason, response)
|
21
|
-
hash = APIHelper.json_deserialize(@response.raw_body)
|
22
|
-
unbox(hash)
|
23
|
-
end
|
24
|
-
|
25
|
-
# Populates this object by extracting properties from a hash.
|
26
|
-
# @param [Hash] The deserialized response sent by the server in the
|
27
|
-
# response body.
|
28
|
-
def unbox(hash)
|
14
|
+
attr_accessor :fault
|
15
|
+
|
16
|
+
# The constructor.
|
17
|
+
# @param [String] The reason for raising an exception.
|
18
|
+
# @param [HttpResponse] The HttpReponse of the API call.
|
19
|
+
def initialize(reason, response)
|
20
|
+
super(reason, response)
|
21
|
+
hash = APIHelper.json_deserialize(@response.raw_body)
|
22
|
+
unbox(hash)
|
23
|
+
end
|
24
|
+
|
25
|
+
# Populates this object by extracting properties from a hash.
|
26
|
+
# @param [Hash] The deserialized response sent by the server in the
|
27
|
+
# response body.
|
28
|
+
def unbox(hash)
|
29
29
|
@fault = Fault.from_hash(hash['fault']) if hash['fault']
|
30
30
|
end
|
31
31
|
end
|
@@ -24,21 +24,21 @@ module ShellCardManagementApIs
|
|
24
24
|
# about the error, used to provide the client developer with additional
|
25
25
|
# information about the error.
|
26
26
|
# @return [String]
|
27
|
-
attr_accessor :error_uri
|
28
|
-
|
29
|
-
# The constructor.
|
30
|
-
# @param [String] The reason for raising an exception.
|
31
|
-
# @param [HttpResponse] The HttpReponse of the API call.
|
32
|
-
def initialize(reason, response)
|
33
|
-
super(reason, response)
|
34
|
-
hash = APIHelper.json_deserialize(@response.raw_body)
|
35
|
-
unbox(hash)
|
36
|
-
end
|
37
|
-
|
38
|
-
# Populates this object by extracting properties from a hash.
|
39
|
-
# @param [Hash] The deserialized response sent by the server in the
|
40
|
-
# response body.
|
41
|
-
def unbox(hash)
|
27
|
+
attr_accessor :error_uri
|
28
|
+
|
29
|
+
# The constructor.
|
30
|
+
# @param [String] The reason for raising an exception.
|
31
|
+
# @param [HttpResponse] The HttpReponse of the API call.
|
32
|
+
def initialize(reason, response)
|
33
|
+
super(reason, response)
|
34
|
+
hash = APIHelper.json_deserialize(@response.raw_body)
|
35
|
+
unbox(hash)
|
36
|
+
end
|
37
|
+
|
38
|
+
# Populates this object by extracting properties from a hash.
|
39
|
+
# @param [Hash] The deserialized response sent by the server in the
|
40
|
+
# response body.
|
41
|
+
def unbox(hash)
|
42
42
|
@error = hash.key?('error') ? hash['error'] : nil
|
43
43
|
@error_description =
|
44
44
|
hash.key?('error_description') ? hash['error_description'] : SKIP
|
@@ -13,12 +13,12 @@ module ShellCardManagementApIs
|
|
13
13
|
# Optional if StatusList is passed, else mandatory.
|
14
14
|
# Ignored if StatusList is passed.
|
15
15
|
# Allowed values:
|
16
|
-
# •
|
17
|
-
# •
|
18
|
-
# •
|
19
|
-
# •
|
20
|
-
# •
|
21
|
-
# •
|
16
|
+
# • ALL
|
17
|
+
# • ACTIVE
|
18
|
+
# • BLOCKED
|
19
|
+
# • CANCELLED
|
20
|
+
# • CREDITLOCK
|
21
|
+
# • DELINQUENCYLOCK
|
22
22
|
# @return [String]
|
23
23
|
attr_accessor :status
|
24
24
|
|
@@ -100,11 +100,11 @@ module ShellCardManagementApIs
|
|
100
100
|
# Optional
|
101
101
|
# Multiple statuses are allowed to be included in the search criteria.
|
102
102
|
# Allowed values:
|
103
|
-
# •
|
104
|
-
# •
|
105
|
-
# •
|
106
|
-
# •
|
107
|
-
# •
|
103
|
+
# • ACTIVE
|
104
|
+
# • BLOCKED
|
105
|
+
# • CANCELLED
|
106
|
+
# • CREDITLOCK
|
107
|
+
# • DELINQUENCYLOCK
|
108
108
|
# @return [Array[String]]
|
109
109
|
attr_accessor :status_list
|
110
110
|
|
@@ -32,10 +32,10 @@ module ShellCardManagementApIs
|
|
32
32
|
# Billing/Invoice frequency. The frequency in which the transactions will be
|
33
33
|
# considered for invoicing in a bulling run
|
34
34
|
# E.g.:
|
35
|
-
# 1
|
36
|
-
# 2
|
37
|
-
# 3
|
38
|
-
# 4
|
35
|
+
# 1 Daily (all days)
|
36
|
+
# 2 Daily (only working days)
|
37
|
+
# 3 Weekly - Monday
|
38
|
+
# 4 Weekly – Tuesday
|
39
39
|
# Etc.
|
40
40
|
# @return [String]
|
41
41
|
attr_accessor :billing_frequency_type
|
@@ -46,10 +46,10 @@ module ShellCardManagementApIs
|
|
46
46
|
attr_accessor :billing_frequency_type_id
|
47
47
|
|
48
48
|
# Frequency at which the billing process is triggered. E.g.:
|
49
|
-
# 1
|
50
|
-
# 2
|
51
|
-
# 3
|
52
|
-
# 4
|
49
|
+
# 1 Daily (all days)
|
50
|
+
# 2 Daily (only working days)
|
51
|
+
# 3 Weekly - Monday
|
52
|
+
# 4 Weekly – Tuesday
|
53
53
|
# Etc.
|
54
54
|
# @return [String]
|
55
55
|
attr_accessor :billing_run_frequency
|
@@ -61,7 +61,7 @@ module ShellCardManagementApIs
|
|
61
61
|
# If true, the usage restrictions applied on the account will be removed.
|
62
62
|
# Optional
|
63
63
|
# Default: False
|
64
|
-
# @return [
|
64
|
+
# @return [Object]
|
65
65
|
attr_accessor :usage_restrictions
|
66
66
|
|
67
67
|
# A mapping from model property names to API property names.
|
@@ -102,7 +102,6 @@ module ShellCardManagementApIs
|
|
102
102
|
account_id
|
103
103
|
account_number
|
104
104
|
reset_usage_restrictions
|
105
|
-
usage_restrictions
|
106
105
|
]
|
107
106
|
end
|
108
107
|
|
@@ -133,8 +132,8 @@ module ShellCardManagementApIs
|
|
133
132
|
account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP
|
134
133
|
reset_usage_restrictions =
|
135
134
|
hash.key?('ResetUsageRestrictions') ? hash['ResetUsageRestrictions'] : SKIP
|
136
|
-
usage_restrictions =
|
137
|
-
hash['UsageRestrictions']
|
135
|
+
usage_restrictions =
|
136
|
+
hash.key?('UsageRestrictions') ? hash['UsageRestrictions'] : SKIP
|
138
137
|
|
139
138
|
# Create object from extracted values.
|
140
139
|
AccountRestrictionRequest.new(col_co_id,
|
@@ -10,14 +10,14 @@ module ShellCardManagementApIs
|
|
10
10
|
private_constant :SKIP
|
11
11
|
|
12
12
|
# Status of requests to be fetched.
|
13
|
-
# •
|
14
|
-
# •
|
15
|
-
# •
|
16
|
-
# •
|
17
|
-
# •
|
18
|
-
# •
|
19
|
-
# •
|
20
|
-
# •
|
13
|
+
# • Success
|
14
|
+
# • Failed
|
15
|
+
# • InProgress
|
16
|
+
# • Submitted
|
17
|
+
# • Rejected
|
18
|
+
# • PendingApproval
|
19
|
+
# • All
|
20
|
+
# • MailedToCSC
|
21
21
|
# Optional
|
22
22
|
# If not passed “All” will be considered as the default value.
|
23
23
|
# @return [String]
|
@@ -74,31 +74,31 @@ module ShellCardManagementApIs
|
|
74
74
|
# Type of requests to be fetched.
|
75
75
|
# Optional
|
76
76
|
# Allowed values:
|
77
|
-
# •
|
78
|
-
# •
|
79
|
-
# •
|
80
|
-
# •
|
81
|
-
# •
|
82
|
-
# •
|
83
|
-
# •
|
84
|
-
# •
|
85
|
-
# •
|
86
|
-
# •
|
87
|
-
# •
|
88
|
-
# •
|
89
|
-
# •
|
90
|
-
# •
|
91
|
-
# •
|
92
|
-
# •
|
93
|
-
# •
|
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
|
94
94
|
# @return [Array[String]]
|
95
95
|
attr_accessor :requested_operation
|
96
96
|
|
97
97
|
# Allowed Sorting Options:
|
98
|
-
# 1.
|
99
|
-
# 2.
|
100
|
-
# 3.
|
101
|
-
# 4.
|
98
|
+
# 1. SubmittedDateDescending
|
99
|
+
# 2. SubmittedDateAscending
|
100
|
+
# 3. AccountNumberAscending
|
101
|
+
# 4. AccountNumberDescending
|
102
102
|
# Optional: Default value is 1
|
103
103
|
# Example value to be passed: 1,3
|
104
104
|
# @return [String]
|