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.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +15 -16
  3. data/lib/shell_card_management_ap_is/controllers/base_controller.rb +9 -9
  4. data/lib/shell_card_management_ap_is/controllers/card_controller.rb +383 -378
  5. data/lib/shell_card_management_ap_is/controllers/customer_controller.rb +234 -225
  6. data/lib/shell_card_management_ap_is/controllers/o_auth_authorization_controller.rb +9 -9
  7. data/lib/shell_card_management_ap_is/controllers/restriction_controller.rb +256 -248
  8. data/lib/shell_card_management_ap_is/exceptions/error_object_exception.rb +15 -15
  9. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_customer_customer403_error_exception.rb +15 -15
  10. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_customer_payers400_error_exception.rb +15 -15
  11. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_customer_payers404_error_exception.rb +15 -15
  12. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser400_error_exception.rb +15 -15
  13. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser401_error_exception.rb +15 -15
  14. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser403_error_exception.rb +15 -15
  15. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser404_error_exception.rb +15 -15
  16. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser500_error_exception.rb +15 -15
  17. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v2_restriction_searchcard401_error_exception.rb +15 -15
  18. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v2_restriction_searchcard500_error_exception.rb +15 -15
  19. data/lib/shell_card_management_ap_is/exceptions/o_auth_provider_exception.rb +15 -15
  20. data/lib/shell_card_management_ap_is/models/account_request.rb +11 -11
  21. data/lib/shell_card_management_ap_is/models/account_response_accounts_items.rb +8 -8
  22. data/lib/shell_card_management_ap_is/models/account_restriction_request.rb +3 -4
  23. data/lib/shell_card_management_ap_is/models/audit_request.rb +29 -29
  24. data/lib/shell_card_management_ap_is/models/audit_response_audits_items.rb +41 -41
  25. data/lib/shell_card_management_ap_is/models/auto_renew_card_request_auto_renew_cards_items.rb +12 -1
  26. data/lib/shell_card_management_ap_is/models/auto_renew_card_response_data_items.rb +13 -2
  27. data/lib/shell_card_management_ap_is/models/base_model.rb +76 -28
  28. data/lib/shell_card_management_ap_is/models/bundle_restriction.rb +35 -22
  29. data/lib/shell_card_management_ap_is/models/bundle_restriction_update.rb +6 -8
  30. data/lib/shell_card_management_ap_is/models/bundled_restrictions_list.rb +10 -16
  31. data/lib/shell_card_management_ap_is/models/card.rb +25 -6
  32. data/lib/shell_card_management_ap_is/models/card_detail.rb +24 -24
  33. data/lib/shell_card_management_ap_is/models/card_group_request.rb +3 -3
  34. data/lib/shell_card_management_ap_is/models/card_settings.rb +10 -10
  35. data/lib/shell_card_management_ap_is/models/create_bundle_request.rb +2 -3
  36. data/lib/shell_card_management_ap_is/models/customer_detail_response.rb +18 -18
  37. data/lib/shell_card_management_ap_is/models/day_time_restriction.rb +2 -2
  38. data/lib/shell_card_management_ap_is/models/day_time_restrictions.rb +132 -0
  39. data/lib/shell_card_management_ap_is/models/filters.rb +6 -6
  40. data/lib/shell_card_management_ap_is/models/filters1.rb +6 -6
  41. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_customer_payers400_error1.rb +50 -0
  42. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_customer_payers404_error1.rb +50 -0
  43. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser400_error1.rb +50 -0
  44. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser401_error1.rb +50 -0
  45. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser404_error1.rb +50 -0
  46. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser500_error1.rb +50 -0
  47. data/lib/shell_card_management_ap_is/models/fleetmanagement_v2_restriction_searchcard401_error1.rb +50 -0
  48. data/lib/shell_card_management_ap_is/models/fleetmanagement_v2_restriction_searchcard500_error1.rb +50 -0
  49. data/lib/shell_card_management_ap_is/models/logged_in_user_response.rb +3 -3
  50. data/lib/shell_card_management_ap_is/models/order_card_enquiry.rb +27 -6
  51. data/lib/shell_card_management_ap_is/models/payer_details.rb +10 -10
  52. data/lib/shell_card_management_ap_is/models/payer_request.rb +6 -6
  53. data/lib/shell_card_management_ap_is/models/pin_advice_types.rb +4 -4
  54. data/lib/shell_card_management_ap_is/models/pin_reminder_card_details.rb +11 -11
  55. data/lib/shell_card_management_ap_is/models/purchase_category1_all_of0.rb +8 -8
  56. data/lib/shell_card_management_ap_is/models/replace_card_settings.rb +10 -10
  57. data/lib/shell_card_management_ap_is/models/restriction.rb +10 -16
  58. data/lib/shell_card_management_ap_is/models/restriction_cards_list.rb +21 -17
  59. data/lib/shell_card_management_ap_is/models/schedule_card_block_cards_items.rb +39 -27
  60. data/lib/shell_card_management_ap_is/models/search_card.rb +13 -2
  61. data/lib/shell_card_management_ap_is/models/search_request.rb +6 -6
  62. data/lib/shell_card_management_ap_is/models/submitted_card.rb +22 -1
  63. data/lib/shell_card_management_ap_is/models/summary_request.rb +6 -6
  64. data/lib/shell_card_management_ap_is/models/update_bundle_request.rb +7 -7
  65. data/lib/shell_card_management_ap_is/models/update_card.rb +11 -60
  66. data/lib/shell_card_management_ap_is/models/update_card_group_request.rb +3 -3
  67. data/lib/shell_card_management_ap_is/models/update_card_renewal_address.rb +2 -2
  68. data/lib/shell_card_management_ap_is/models/update_card_renewal_address2.rb +2 -2
  69. data/lib/shell_card_management_ap_is/models/update_m_pay_reg_status_request_m_pay_requests_items.rb +1 -1
  70. data/lib/shell_card_management_ap_is/models/usage_restriction.rb +2 -2
  71. data/lib/shell_card_management_ap_is/utilities/file_wrapper.rb +9 -9
  72. data/lib/shell_card_management_ap_is.rb +17 -0
  73. metadata +17 -8
@@ -57,6 +57,12 @@ module ShellCardManagementApIs
57
57
  # @return [String]
58
58
  attr_accessor :pan
59
59
 
60
+ # Card PAN ID.
61
+ # Optional if CardId is given, else mandatory.
62
+ # Note: PANID is ignored if CardId is given.
63
+ # @return [String]
64
+ attr_accessor :panid
65
+
60
66
  # Expiry date of the card.
61
67
  # Optional if CardId is passed, else Mandatory.
62
68
  # Format: yyyyMMdd
@@ -67,32 +73,32 @@ module ShellCardManagementApIs
67
73
  # Action
68
74
  # Mandatory
69
75
  # Possible values are:
70
- # • AddOrUpdate – adds a new request or updates any existing requests, with
71
- # overlapping dates, for the card
72
- # • AddAndOverwriteAll - all the existing requests of the given card will be
73
- # removed and a new request with the specified FromDate and ToDate will be
74
- # added.
75
- # • Delete – deletes any existing request with the same start date and end
76
- # date for the card
77
- # • DeleteAll – deletes all saved future dated requests (all block and
76
+ # • AddOrUpdate – adds a new request or updates any existing requests,
77
+ # with overlapping dates, for the card
78
+ # • AddAndOverwriteAll - all the existing requests of the given card will
79
+ # be removed and a new request with the specified FromDate and ToDate will
80
+ # be added.
81
+ # • Delete – deletes any existing request with the same start date and
82
+ # end date for the card
83
+ # • DeleteAll – deletes all saved future dated requests (all block and
78
84
  # unblock requests) of the card.
79
85
  # @return [String]
80
86
  attr_accessor :action
81
87
 
82
88
  # Effective start date of Block / Unblock
83
89
  # Allowed Formats: –
84
- # • yyyyMMdd
85
- # • yyyyMMdd HH:mm
90
+ # • yyyyMMdd
91
+ # • yyyyMMdd HH:mm
86
92
  # Eg: 20230512 14:30, 20230512
87
93
  # Optional
88
94
  # Default value:
89
- # • If the card status is “Active” then Current date & Time
90
- # • If the card status is “TemporaryBlock (Customer)” then null.
95
+ # • If the card status is “Active” then Current date & Time
96
+ # • If the card status is “TemporaryBlock (Customer)” then null.
91
97
  # Note:
92
- # • Time is considered only when “IsTimeSupported” is true else it will be
93
- # treated as a date.
94
- # • Time will be passed in UTC time-zone.
95
- # • If the Card Status is “Temporary Block (Customer)” and FromDate is
98
+ # • Time is considered only when “IsTimeSupported” is true else it will
99
+ # be treated as a date.
100
+ # • Time will be passed in UTC time-zone.
101
+ # • If the Card Status is “Temporary Block (Customer)” and FromDate is
96
102
  # provided – The fromdate & time is considered as starting period of unblock
97
103
  # request.
98
104
  # @return [String]
@@ -100,20 +106,21 @@ module ShellCardManagementApIs
100
106
 
101
107
  # Effective end date of Block / Unblock
102
108
  # Allowed Formats: –
103
- # • yyyyMMdd
104
- # • yyyyMMdd HH:mm
109
+ # • yyyyMMdd
110
+ # • yyyyMMdd HH:mm
105
111
  # Eg: 20230512 14:30, 20230512
106
112
  # Optional – When the Card status is Active else mandatory.
107
113
  # When not provided, the card will remain blocked until manually unblocked.
108
114
  # Note:
109
- # • Time is considered only when the “IsTimeSupported” flag is set as true,
110
- # else it will be considered as only date.
111
- # • Date & Time passed in the request will be considered in UTC time-zone.
112
- # • If the card is currently in ‘Temporary Block (Customer)’ status, then
115
+ # • Time is considered only when the “IsTimeSupported” flag is set as
116
+ # true, else it will be considered as only date.
117
+ # • Date & Time passed in the request will be considered in UTC
118
+ # time-zone.
119
+ # • If the card is currently in ‘Temporary Block (Customer)’ status, then
113
120
  # this date is treated as the unblock date and is mandatory.
114
- # • If the Card Status is “Temporary Block (Customer)” and FromDate & ToDate
115
- # is provided - The request will be considered as a scheduled specific
116
- # period unblock request.
121
+ # • If the Card Status is “Temporary Block (Customer)” and FromDate &
122
+ # ToDate is provided - The request will be considered as a scheduled
123
+ # specific period unblock request.
117
124
  # @return [String]
118
125
  attr_accessor :to_date
119
126
 
@@ -143,6 +150,7 @@ module ShellCardManagementApIs
143
150
  @_hash['payer_number'] = 'PayerNumber'
144
151
  @_hash['card_id'] = 'CardId'
145
152
  @_hash['pan'] = 'PAN'
153
+ @_hash['panid'] = 'PANID'
146
154
  @_hash['card_expiry_date'] = 'CardExpiryDate'
147
155
  @_hash['action'] = 'Action'
148
156
  @_hash['from_date'] = 'FromDate'
@@ -163,6 +171,7 @@ module ShellCardManagementApIs
163
171
  payer_number
164
172
  card_id
165
173
  pan
174
+ panid
166
175
  card_expiry_date
167
176
  from_date
168
177
  to_date
@@ -181,8 +190,8 @@ module ShellCardManagementApIs
181
190
  def initialize(action = nil, col_co_code = SKIP, col_co_id = SKIP,
182
191
  account_id = SKIP, account_number = SKIP, payer_id = SKIP,
183
192
  payer_number = SKIP, card_id = SKIP, pan = SKIP,
184
- card_expiry_date = SKIP, from_date = SKIP, to_date = SKIP,
185
- caller = SKIP, notify_caller = SKIP)
193
+ panid = SKIP, card_expiry_date = SKIP, from_date = SKIP,
194
+ to_date = SKIP, caller = SKIP, notify_caller = SKIP)
186
195
  @col_co_code = col_co_code unless col_co_code == SKIP
187
196
  @col_co_id = col_co_id unless col_co_id == SKIP
188
197
  @account_id = account_id unless account_id == SKIP
@@ -191,6 +200,7 @@ module ShellCardManagementApIs
191
200
  @payer_number = payer_number unless payer_number == SKIP
192
201
  @card_id = card_id unless card_id == SKIP
193
202
  @pan = pan unless pan == SKIP
203
+ @panid = panid unless panid == SKIP
194
204
  @card_expiry_date = card_expiry_date unless card_expiry_date == SKIP
195
205
  @action = action
196
206
  @from_date = from_date unless from_date == SKIP
@@ -213,6 +223,7 @@ module ShellCardManagementApIs
213
223
  payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
214
224
  card_id = hash.key?('CardId') ? hash['CardId'] : SKIP
215
225
  pan = hash.key?('PAN') ? hash['PAN'] : SKIP
226
+ panid = hash.key?('PANID') ? hash['PANID'] : SKIP
216
227
  card_expiry_date =
217
228
  hash.key?('CardExpiryDate') ? hash['CardExpiryDate'] : SKIP
218
229
  from_date = hash.key?('FromDate') ? hash['FromDate'] : SKIP
@@ -230,6 +241,7 @@ module ShellCardManagementApIs
230
241
  payer_number,
231
242
  card_id,
232
243
  pan,
244
+ panid,
233
245
  card_expiry_date,
234
246
  from_date,
235
247
  to_date,
@@ -20,11 +20,18 @@ module ShellCardManagementApIs
20
20
  # @return [String]
21
21
  attr_accessor :pan
22
22
 
23
+ # Card PANID
24
+ # optional id cardid given, else mandatory
25
+ # Note: PANID is ignored if CardId is given.
26
+ # @return [Float]
27
+ attr_accessor :panid
28
+
23
29
  # A mapping from model property names to API property names.
24
30
  def self.names
25
31
  @_hash = {} if @_hash.nil?
26
32
  @_hash['card_id'] = 'CardId'
27
33
  @_hash['pan'] = 'PAN'
34
+ @_hash['panid'] = 'PANID'
28
35
  @_hash
29
36
  end
30
37
 
@@ -33,6 +40,7 @@ module ShellCardManagementApIs
33
40
  %w[
34
41
  card_id
35
42
  pan
43
+ panid
36
44
  ]
37
45
  end
38
46
 
@@ -44,9 +52,10 @@ module ShellCardManagementApIs
44
52
  ]
45
53
  end
46
54
 
47
- def initialize(card_id = SKIP, pan = SKIP)
55
+ def initialize(card_id = SKIP, pan = SKIP, panid = SKIP)
48
56
  @card_id = card_id unless card_id == SKIP
49
57
  @pan = pan unless pan == SKIP
58
+ @panid = panid unless panid == SKIP
50
59
  end
51
60
 
52
61
  # Creates an instance of the object from a hash.
@@ -56,10 +65,12 @@ module ShellCardManagementApIs
56
65
  # Extract variables from the hash.
57
66
  card_id = hash.key?('CardId') ? hash['CardId'] : SKIP
58
67
  pan = hash.key?('PAN') ? hash['PAN'] : SKIP
68
+ panid = hash.key?('PANID') ? hash['PANID'] : SKIP
59
69
 
60
70
  # Create object from extracted values.
61
71
  SearchCard.new(card_id,
62
- pan)
72
+ pan,
73
+ panid)
63
74
  end
64
75
  end
65
76
  end
@@ -334,9 +334,9 @@ module ShellCardManagementApIs
334
334
  # If ‘ALL’, API will return cards with ReIssueSetting value True & False
335
335
  # both.<br />
336
336
  # Allowed Values:<br />
337
- # 1. All<br />
338
- # 2. True<br />
339
- # 3. False
337
+ # 1. All<br />
338
+ # 2. True<br />
339
+ # 3. False
340
340
  # @return [String]
341
341
  attr_accessor :reissue_setting
342
342
 
@@ -351,9 +351,9 @@ module ShellCardManagementApIs
351
351
  # If ‘ALL’, API will return cards with ReIssueSetting value True &amp; False
352
352
  # both.<br />
353
353
  # Allowed Values:<br />
354
- # 1. All<br />
355
- # 2. True<br />
356
- # 3. False
354
+ # 1. All<br />
355
+ # 2. True<br />
356
+ # 3. False
357
357
  # @return [String]
358
358
  attr_accessor :request_id
359
359
 
@@ -58,6 +58,14 @@ module ShellCardManagementApIs
58
58
  # @return [String]
59
59
  attr_accessor :pan
60
60
 
61
+ # PANID of the card
62
+ # @return [Float]
63
+ attr_accessor :panid
64
+
65
+ # Card PAN
66
+ # @return [String]
67
+ attr_accessor :masked_pan
68
+
61
69
  # Payer id of the customer.<br />
62
70
  # Optional if PayerNumber is passed, else Mandatory.
63
71
  # @return [Integer]
@@ -80,6 +88,8 @@ module ShellCardManagementApIs
80
88
  @_hash['col_co_code'] = 'ColCoCode'
81
89
  @_hash['col_co_id'] = 'ColCoId'
82
90
  @_hash['pan'] = 'PAN'
91
+ @_hash['panid'] = 'PANID'
92
+ @_hash['masked_pan'] = 'MaskedPAN'
83
93
  @_hash['payer_id'] = 'PayerId'
84
94
  @_hash['payer_number'] = 'PayerNumber'
85
95
  @_hash
@@ -97,6 +107,8 @@ module ShellCardManagementApIs
97
107
  col_co_code
98
108
  col_co_id
99
109
  pan
110
+ panid
111
+ masked_pan
100
112
  payer_id
101
113
  payer_number
102
114
  ]
@@ -114,6 +126,8 @@ module ShellCardManagementApIs
114
126
  col_co_code
115
127
  col_co_id
116
128
  pan
129
+ panid
130
+ masked_pan
117
131
  payer_id
118
132
  payer_number
119
133
  ]
@@ -123,7 +137,8 @@ module ShellCardManagementApIs
123
137
  update_card_reference = SKIP, account_id = SKIP,
124
138
  account_number = SKIP, card_expiry_date = SKIP,
125
139
  card_id = SKIP, col_co_code = SKIP, col_co_id = SKIP,
126
- pan = SKIP, payer_id = SKIP, payer_number = SKIP)
140
+ pan = SKIP, panid = SKIP, masked_pan = SKIP, payer_id = SKIP,
141
+ payer_number = SKIP)
127
142
  unless replacement_card_reference == SKIP
128
143
  @replacement_card_reference =
129
144
  replacement_card_reference
@@ -136,6 +151,8 @@ module ShellCardManagementApIs
136
151
  @col_co_code = col_co_code unless col_co_code == SKIP
137
152
  @col_co_id = col_co_id unless col_co_id == SKIP
138
153
  @pan = pan unless pan == SKIP
154
+ @panid = panid unless panid == SKIP
155
+ @masked_pan = masked_pan unless masked_pan == SKIP
139
156
  @payer_id = payer_id unless payer_id == SKIP
140
157
  @payer_number = payer_number unless payer_number == SKIP
141
158
  end
@@ -157,6 +174,8 @@ module ShellCardManagementApIs
157
174
  col_co_code = hash.key?('ColCoCode') ? hash['ColCoCode'] : SKIP
158
175
  col_co_id = hash.key?('ColCoId') ? hash['ColCoId'] : SKIP
159
176
  pan = hash.key?('PAN') ? hash['PAN'] : SKIP
177
+ panid = hash.key?('PANID') ? hash['PANID'] : SKIP
178
+ masked_pan = hash.key?('MaskedPAN') ? hash['MaskedPAN'] : SKIP
160
179
  payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP
161
180
  payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
162
181
 
@@ -170,6 +189,8 @@ module ShellCardManagementApIs
170
189
  col_co_code,
171
190
  col_co_id,
172
191
  pan,
192
+ panid,
193
+ masked_pan,
173
194
  payer_id,
174
195
  payer_number)
175
196
  end
@@ -271,9 +271,9 @@ module ShellCardManagementApIs
271
271
  # If ‘ALL’, API will return cards with ReIssueSetting value True &amp; False
272
272
  # both.<br />
273
273
  # Allowed Values:<br />
274
- # 1. All<br />
275
- # 2. True<br />
276
- # 3. False
274
+ # 1. All<br />
275
+ # 2. True<br />
276
+ # 3. False
277
277
  # @return [String]
278
278
  attr_accessor :reissue_setting
279
279
 
@@ -288,9 +288,9 @@ module ShellCardManagementApIs
288
288
  # If ‘ALL’, API will return cards with ReIssueSetting value True &amp; False
289
289
  # both.<br />
290
290
  # Allowed Values:<br />
291
- # 1. All<br />
292
- # 2. True<br />
293
- # 3. False
291
+ # 1. All<br />
292
+ # 2. True<br />
293
+ # 3. False
294
294
  # @return [String]
295
295
  attr_accessor :request_id
296
296
 
@@ -58,9 +58,9 @@ module ShellCardManagementApIs
58
58
  # The value indicates the action to be performed with the request.
59
59
  # Mandatory
60
60
  # Allowed values:
61
- # • Add
62
- # • Update
63
- # • Remove
61
+ # • Add
62
+ # • Update
63
+ # • Remove
64
64
  # @return [String]
65
65
  attr_accessor :request_action
66
66
 
@@ -76,8 +76,8 @@ module ShellCardManagementApIs
76
76
  # restrictions on the list of cards being added or removed.
77
77
  # Mandatory for Add / Remove request action. Ignored for Update action.
78
78
  # Allowed values:
79
- # • Update
80
- # • None
79
+ # • Update
80
+ # • None
81
81
  # @return [String]
82
82
  attr_accessor :usage_restriction_action
83
83
 
@@ -85,8 +85,8 @@ module ShellCardManagementApIs
85
85
  # restrictions on the list of cards being added or removed.
86
86
  # Mandatory for Add / Remove request action. Ignored for Update action.
87
87
  # Allowed values:
88
- # • Update
89
- # • None
88
+ # • Update
89
+ # • None
90
90
  # @return [BundleRestrictionUpdate]
91
91
  attr_accessor :restrictions
92
92
 
@@ -81,47 +81,6 @@ module ShellCardManagementApIs
81
81
  # @return [CardSettings]
82
82
  attr_accessor :card_settings
83
83
 
84
- # Reason id for updating the card status.
85
- # Either Reason ID or Text is madatory when TargetStatus is ‘Block’ or
86
- # ‘Damaged’. Else ignored.
87
- # Possible values:
88
- # 1 (Lost)
89
- # 2 (Stolen)
90
- # 3 (Card no longer required)
91
- # <br>When passed, the reason Id will be mapped to allowed reason IDs
92
- # configured for the card type of the card. If the given reason Id is not
93
- # allowed for certain card types, then the request will be rejected as
94
- # invalid ResonId
95
- # @return [Integer]
96
- attr_accessor :reason_id
97
-
98
- # Reason text for updating the card status.
99
- # Possible Values:
100
- # 1) Lost
101
- # 2) Stolen
102
- # 3) Card no longer required
103
- # Optional – However, either Reason ID or Text is madatory when TargetStatus
104
- # is ‘Block’ or ‘Damaged’. Else, Ignored.
105
- # When Reason Text is passed and the Target Status is either Block or
106
- # Damaged, the text will be validated with the allowed list of values
107
- # configured for the card type of the card. If the text is not allowed,
108
- # request will be rejected as invaid ResonText.
109
- # Note:
110
- # ‘Customer blocked’ will be used as the reason for ‘Temporary Block’.
111
- # @return [String]
112
- attr_accessor :reason_text
113
-
114
- # The list of cards passed in ‘Cards’ parameter will be updated to this
115
- # status.<br />
116
- # Mandatory.<br />
117
- # Allowed values –<br />
118
- # - TemporaryBlock<br />
119
- # - Unblock<br />
120
- # - Block<br />
121
- # - Damaged<br />
122
- # @return [Integer]
123
- attr_accessor :target_status
124
-
125
84
  # Account Id of the customer.<br />
126
85
  # Optional if AccountNumber is passed, else Mandatory.
127
86
  # @return [Integer]
@@ -158,6 +117,10 @@ module ShellCardManagementApIs
158
117
  # @return [String]
159
118
  attr_accessor :pan
160
119
 
120
+ # PANID of the card
121
+ # @return [Float]
122
+ attr_accessor :panid
123
+
161
124
  # Payer id of the customer.<br />
162
125
  # Optional if PayerNumber is passed, else Mandatory.
163
126
  # @return [Integer]
@@ -177,9 +140,6 @@ module ShellCardManagementApIs
177
140
  @_hash['notify_caller_on_sync'] = 'NotifyCallerOnSync'
178
141
  @_hash['order_card_replacement'] = 'OrderCardReplacement'
179
142
  @_hash['card_settings'] = 'CardSettings'
180
- @_hash['reason_id'] = 'ReasonId'
181
- @_hash['reason_text'] = 'ReasonText'
182
- @_hash['target_status'] = 'TargetStatus'
183
143
  @_hash['account_id'] = 'AccountId'
184
144
  @_hash['account_number'] = 'AccountNumber'
185
145
  @_hash['card_expiry_date'] = 'CardExpiryDate'
@@ -187,6 +147,7 @@ module ShellCardManagementApIs
187
147
  @_hash['col_co_code'] = 'ColCoCode'
188
148
  @_hash['col_co_id'] = 'ColCoId'
189
149
  @_hash['pan'] = 'PAN'
150
+ @_hash['panid'] = 'PANID'
190
151
  @_hash['payer_id'] = 'PayerId'
191
152
  @_hash['payer_number'] = 'PayerNumber'
192
153
  @_hash
@@ -201,9 +162,6 @@ module ShellCardManagementApIs
201
162
  notify_caller_on_sync
202
163
  order_card_replacement
203
164
  card_settings
204
- reason_id
205
- reason_text
206
- target_status
207
165
  account_id
208
166
  account_number
209
167
  card_expiry_date
@@ -211,6 +169,7 @@ module ShellCardManagementApIs
211
169
  col_co_code
212
170
  col_co_id
213
171
  pan
172
+ panid
214
173
  payer_id
215
174
  payer_number
216
175
  ]
@@ -220,8 +179,6 @@ module ShellCardManagementApIs
220
179
  def self.nullables
221
180
  %w[
222
181
  caller
223
- reason_text
224
- target_status
225
182
  account_id
226
183
  account_number
227
184
  card_expiry_date
@@ -229,6 +186,7 @@ module ShellCardManagementApIs
229
186
  col_co_code
230
187
  col_co_id
231
188
  pan
189
+ panid
232
190
  payer_id
233
191
  payer_number
234
192
  ]
@@ -237,10 +195,9 @@ module ShellCardManagementApIs
237
195
  def initialize(caller = SKIP, is_replacement_chargeable = SKIP,
238
196
  notify_caller = SKIP, notify_caller_on_sync = SKIP,
239
197
  order_card_replacement = SKIP, card_settings = SKIP,
240
- reason_id = SKIP, reason_text = SKIP, target_status = SKIP,
241
198
  account_id = SKIP, account_number = SKIP,
242
199
  card_expiry_date = SKIP, card_id = SKIP, col_co_code = SKIP,
243
- col_co_id = SKIP, pan = SKIP, payer_id = SKIP,
200
+ col_co_id = SKIP, pan = SKIP, panid = SKIP, payer_id = SKIP,
244
201
  payer_number = SKIP)
245
202
  @caller = caller unless caller == SKIP
246
203
  unless is_replacement_chargeable == SKIP
@@ -251,9 +208,6 @@ module ShellCardManagementApIs
251
208
  @notify_caller_on_sync = notify_caller_on_sync unless notify_caller_on_sync == SKIP
252
209
  @order_card_replacement = order_card_replacement unless order_card_replacement == SKIP
253
210
  @card_settings = card_settings unless card_settings == SKIP
254
- @reason_id = reason_id unless reason_id == SKIP
255
- @reason_text = reason_text unless reason_text == SKIP
256
- @target_status = target_status unless target_status == SKIP
257
211
  @account_id = account_id unless account_id == SKIP
258
212
  @account_number = account_number unless account_number == SKIP
259
213
  @card_expiry_date = card_expiry_date unless card_expiry_date == SKIP
@@ -261,6 +215,7 @@ module ShellCardManagementApIs
261
215
  @col_co_code = col_co_code unless col_co_code == SKIP
262
216
  @col_co_id = col_co_id unless col_co_id == SKIP
263
217
  @pan = pan unless pan == SKIP
218
+ @panid = panid unless panid == SKIP
264
219
  @payer_id = payer_id unless payer_id == SKIP
265
220
  @payer_number = payer_number unless payer_number == SKIP
266
221
  end
@@ -279,9 +234,6 @@ module ShellCardManagementApIs
279
234
  order_card_replacement =
280
235
  hash.key?('OrderCardReplacement') ? hash['OrderCardReplacement'] : SKIP
281
236
  card_settings = CardSettings.from_hash(hash['CardSettings']) if hash['CardSettings']
282
- reason_id = hash.key?('ReasonId') ? hash['ReasonId'] : SKIP
283
- reason_text = hash.key?('ReasonText') ? hash['ReasonText'] : SKIP
284
- target_status = hash.key?('TargetStatus') ? hash['TargetStatus'] : SKIP
285
237
  account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP
286
238
  account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP
287
239
  card_expiry_date =
@@ -290,6 +242,7 @@ module ShellCardManagementApIs
290
242
  col_co_code = hash.key?('ColCoCode') ? hash['ColCoCode'] : SKIP
291
243
  col_co_id = hash.key?('ColCoId') ? hash['ColCoId'] : SKIP
292
244
  pan = hash.key?('PAN') ? hash['PAN'] : SKIP
245
+ panid = hash.key?('PANID') ? hash['PANID'] : SKIP
293
246
  payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP
294
247
  payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
295
248
 
@@ -300,9 +253,6 @@ module ShellCardManagementApIs
300
253
  notify_caller_on_sync,
301
254
  order_card_replacement,
302
255
  card_settings,
303
- reason_id,
304
- reason_text,
305
- target_status,
306
256
  account_id,
307
257
  account_number,
308
258
  card_expiry_date,
@@ -310,6 +260,7 @@ module ShellCardManagementApIs
310
260
  col_co_code,
311
261
  col_co_id,
312
262
  pan,
263
+ panid,
313
264
  payer_id,
314
265
  payer_number)
315
266
  end
@@ -72,9 +72,9 @@ module ShellCardManagementApIs
72
72
  # ‘null’.
73
73
  # Optional
74
74
  # Note:
75
- # 1) If a card type is passed, the cardgorup will allow cards with same card
76
- # type to be moved in to the card group.
77
- # 2) Pass ‘-1’ to remove the card type from the card group.
75
+ # 1) If a card type is passed, the cardgorup will allow cards with same
76
+ # card type to be moved in to the card group.
77
+ # 2) Pass ‘-1’ to remove the card type from the card group.
78
78
  # @return [Integer]
79
79
  attr_accessor :card_type_id
80
80
 
@@ -66,8 +66,8 @@ module ShellCardManagementApIs
66
66
  # Max Length: 90
67
67
  # Note: -
68
68
  # Based on the international standard that there can be
69
- # • Max Length 64 before the @ (the 'Local part’) =64(minimum of 1)
70
- # • Max Lenth after the (the domain) = 88 (Minimum of 2)
69
+ # • Max Length 64 before the @ (the 'Local part’) =64(minimum of 1)
70
+ # • Max Lenth after the (the domain) = 88 (Minimum of 2)
71
71
  # @return [String]
72
72
  attr_accessor :email_address
73
73
 
@@ -64,8 +64,8 @@ module ShellCardManagementApIs
64
64
  # Max Length: 90
65
65
  # Note: -
66
66
  # Based on the international standard that there can be
67
- # • Max Length 64 before the @ (the 'Local part’) =64(minimum of 1)
68
- # • Max Lenth after the (the domain) = 88 (Minimum of 2)
67
+ # • Max Length 64 before the @ (the 'Local part’) =64(minimum of 1)
68
+ # • Max Lenth after the (the domain) = 88 (Minimum of 2)
69
69
  # @return [String]
70
70
  attr_accessor :email_address
71
71
 
@@ -18,7 +18,7 @@ module ShellCardManagementApIs
18
18
  # Status of mobile payment registration request
19
19
  # Mandatory.
20
20
  # Allowed values –
21
- # • Approved
21
+ # • Approved
22
22
  # • Rejected
23
23
  # @return [String]
24
24
  attr_accessor :status
@@ -12,8 +12,8 @@ module ShellCardManagementApIs
12
12
 
13
13
  # Usage limit is applied on the card from this level.
14
14
  # Valid values –
15
- # • Inherited
16
- # • Card
15
+ # • Inherited
16
+ # • Card
17
17
  # When Card level usage restrictions are not present, the API will return
18
18
  # the inherited restrictions.
19
19
  # Note: -This field is deprecated. Instead, use ‘Override’.
@@ -5,12 +5,12 @@
5
5
 
6
6
  module ShellCardManagementApIs
7
7
  # A utility to allow users to set the content-type for files
8
- class FileWrapper < CoreLibrary::FileWrapper
9
- # The constructor.
10
- # @param [File] file The file to be sent in the request.
11
- # @param [string] content_type The content type of the provided file.
12
- def initialize(file, content_type: 'application/octet-stream')
13
- super
14
- end
15
- end
16
- end
8
+ class FileWrapper < CoreLibrary::FileWrapper
9
+ # The constructor.
10
+ # @param [File] file The file to be sent in the request.
11
+ # @param [string] content_type The content type of the provided file.
12
+ def initialize(file, content_type: 'application/octet-stream')
13
+ super
14
+ end
15
+ end
16
+ end
@@ -249,11 +249,28 @@ require_relative 'shell_card_management_ap_is/models/filters2'
249
249
  require_relative 'shell_card_management_ap_is/models/finance_currency2'
250
250
  require_relative 'shell_card_management_ap_is/models/' \
251
251
  'fleetmanagement_v1_user_loggedinuser_request'
252
+ require_relative 'shell_card_management_ap_is/models/' \
253
+ 'fleetmanagement_v1_user_loggedinuser400_error1'
254
+ require_relative 'shell_card_management_ap_is/models/' \
255
+ 'fleetmanagement_v1_user_loggedinuser401_error1'
256
+ require_relative 'shell_card_management_ap_is/models/' \
257
+ 'fleetmanagement_v1_user_loggedinuser404_error1'
258
+ require_relative 'shell_card_management_ap_is/models/' \
259
+ 'fleetmanagement_v1_user_loggedinuser500_error1'
260
+ require_relative 'shell_card_management_ap_is/models/' \
261
+ 'fleetmanagement_v1_customer_payers400_error1'
262
+ require_relative 'shell_card_management_ap_is/models/' \
263
+ 'fleetmanagement_v1_customer_payers404_error1'
264
+ require_relative 'shell_card_management_ap_is/models/' \
265
+ 'fleetmanagement_v2_restriction_searchcard401_error1'
266
+ require_relative 'shell_card_management_ap_is/models/' \
267
+ 'fleetmanagement_v2_restriction_searchcard500_error1'
252
268
  require_relative 'shell_card_management_ap_is/models/pin_contact'
253
269
  require_relative 'shell_card_management_ap_is/models/pin_deliver_to'
254
270
  require_relative 'shell_card_management_ap_is/models/pin_delivery_address'
255
271
  require_relative 'shell_card_management_ap_is/models/' \
256
272
  'update_card_renewal_address2'
273
+ require_relative 'shell_card_management_ap_is/models/day_time_restrictions'
257
274
  require_relative 'shell_card_management_ap_is/models/o_auth_token'
258
275
  require_relative 'shell_card_management_ap_is/models/' \
259
276
  'card_detail_auto_renew_enum'