card-management-sdk 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +14 -15
  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/bundle_restriction.rb +35 -22
  28. data/lib/shell_card_management_ap_is/models/bundle_restriction_update.rb +6 -8
  29. data/lib/shell_card_management_ap_is/models/bundled_restrictions_list.rb +10 -16
  30. data/lib/shell_card_management_ap_is/models/card.rb +25 -6
  31. data/lib/shell_card_management_ap_is/models/card_detail.rb +29 -27
  32. data/lib/shell_card_management_ap_is/models/card_details_response.rb +160 -8
  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/filters2.rb +9 -3
  42. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_customer_payers400_error1.rb +50 -0
  43. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_customer_payers404_error1.rb +50 -0
  44. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser400_error1.rb +50 -0
  45. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser401_error1.rb +50 -0
  46. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser404_error1.rb +50 -0
  47. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser500_error1.rb +50 -0
  48. data/lib/shell_card_management_ap_is/models/fleetmanagement_v2_restriction_searchcard401_error1.rb +50 -0
  49. data/lib/shell_card_management_ap_is/models/fleetmanagement_v2_restriction_searchcard500_error1.rb +50 -0
  50. data/lib/shell_card_management_ap_is/models/logged_in_user_response.rb +3 -3
  51. data/lib/shell_card_management_ap_is/models/order_card_enquiry.rb +27 -6
  52. data/lib/shell_card_management_ap_is/models/order_card_enquiry_req.rb +9 -3
  53. data/lib/shell_card_management_ap_is/models/payer_details.rb +10 -10
  54. data/lib/shell_card_management_ap_is/models/payer_request.rb +6 -6
  55. data/lib/shell_card_management_ap_is/models/pin_advice_types.rb +4 -4
  56. data/lib/shell_card_management_ap_is/models/pin_reminder_card_details.rb +11 -11
  57. data/lib/shell_card_management_ap_is/models/purchase_category1_all_of0.rb +8 -8
  58. data/lib/shell_card_management_ap_is/models/replace_card_settings.rb +10 -10
  59. data/lib/shell_card_management_ap_is/models/restriction.rb +10 -16
  60. data/lib/shell_card_management_ap_is/models/restriction_cards_list.rb +21 -17
  61. data/lib/shell_card_management_ap_is/models/schedule_card_block_cards_items.rb +39 -27
  62. data/lib/shell_card_management_ap_is/models/search_card.rb +13 -2
  63. data/lib/shell_card_management_ap_is/models/search_request.rb +6 -6
  64. data/lib/shell_card_management_ap_is/models/submitted_card.rb +22 -1
  65. data/lib/shell_card_management_ap_is/models/summary_request.rb +6 -6
  66. data/lib/shell_card_management_ap_is/models/update_bundle_request.rb +7 -7
  67. data/lib/shell_card_management_ap_is/models/update_card.rb +11 -1
  68. data/lib/shell_card_management_ap_is/models/update_card_group_request.rb +3 -3
  69. data/lib/shell_card_management_ap_is/models/update_card_renewal_address.rb +2 -2
  70. data/lib/shell_card_management_ap_is/models/update_card_renewal_address2.rb +2 -2
  71. data/lib/shell_card_management_ap_is/models/update_m_pay_reg_status_request_m_pay_requests_items.rb +1 -1
  72. data/lib/shell_card_management_ap_is/models/usage_restriction.rb +2 -2
  73. data/lib/shell_card_management_ap_is/utilities/file_wrapper.rb +9 -9
  74. data/lib/shell_card_management_ap_is.rb +17 -0
  75. metadata +17 -8
@@ -9,23 +9,19 @@ module ShellCardManagementApIs
9
9
  SKIP = Object.new
10
10
  private_constant :SKIP
11
11
 
12
- # Details of the usage restrictions such as day/week/month value and volume
13
- # restrictions applied on the card.
14
- # @return [UsageRestriction]
12
+ # TODO: Write general description for this method
13
+ # @return [Object]
15
14
  attr_accessor :usage_restrictions
16
15
 
17
- # Details of the day/time restrictions such as weekdays and time range in
18
- # which transactions should be allowed on the card.
19
- # @return [DayTimeRestriction]
16
+ # TODO: Write general description for this method
17
+ # @return [DayTimeRestrictions]
20
18
  attr_accessor :day_time_restrictions
21
19
 
22
- # Details of the day/time restrictions such as weekdays and time range in
23
- # which transactions should be allowed on the card.
20
+ # TODO: Write general description for this method
24
21
  # @return [SearchProductRestriction]
25
22
  attr_accessor :product_restrictions
26
23
 
27
- # Details of the day/time restrictions such as weekdays and time range in
28
- # which transactions should be allowed on the card.
24
+ # TODO: Write general description for this method
29
25
  # @return [LocationRestriction]
30
26
  attr_accessor :location_restrictions
31
27
 
@@ -51,9 +47,7 @@ module ShellCardManagementApIs
51
47
 
52
48
  # An array for nullable fields
53
49
  def self.nullables
54
- %w[
55
- usage_restrictions
56
- ]
50
+ []
57
51
  end
58
52
 
59
53
  def initialize(usage_restrictions = SKIP, day_time_restrictions = SKIP,
@@ -69,9 +63,9 @@ module ShellCardManagementApIs
69
63
  return nil unless hash
70
64
 
71
65
  # Extract variables from the hash.
72
- usage_restrictions = UsageRestriction.from_hash(hash['UsageRestrictions']) if
73
- hash['UsageRestrictions']
74
- day_time_restrictions = DayTimeRestriction.from_hash(hash['DayTimeRestrictions']) if
66
+ usage_restrictions =
67
+ hash.key?('UsageRestrictions') ? hash['UsageRestrictions'] : SKIP
68
+ day_time_restrictions = DayTimeRestrictions.from_hash(hash['DayTimeRestrictions']) if
75
69
  hash['DayTimeRestrictions']
76
70
  product_restrictions = SearchProductRestriction.from_hash(hash['ProductRestrictions']) if
77
71
  hash['ProductRestrictions']
@@ -24,7 +24,7 @@ module ShellCardManagementApIs
24
24
  # Optional if CardId is given, else mandatory.
25
25
  # Example: 7002051006629890645
26
26
  # Note:
27
- # • PAN is ignored if CardId is given.
27
+ # • PAN is ignored if CardId is given.
28
28
  # When PAN matches with multiple cards, the restriction will be applied on
29
29
  # the latest issued card.
30
30
  # @return [String]
@@ -66,21 +66,27 @@ module ShellCardManagementApIs
66
66
  # If true, the location restrictions applied on the card will be deleted.
67
67
  # Else, the card restrictions will be updated with the location restrictions
68
68
  # provided in the API.
69
- # @return [UsageRestrictionsCard]
69
+ # @return [Object]
70
70
  attr_accessor :usage_restrictions
71
71
 
72
- # Details of the day/time restrictions such as weekdays and time range in
73
- # which transactions should be allowed on the card.
74
- # @return [DayTimeRestriction]
72
+ # True/False.
73
+ # If true, the location restrictions applied on the card will be deleted.
74
+ # Else, the card restrictions will be updated with the location restrictions
75
+ # provided in the API.
76
+ # @return [DayTimeRestrictions]
75
77
  attr_accessor :day_time_restrictions
76
78
 
77
- # Details of the day/time restrictions such as weekdays and time range in
78
- # which transactions should be allowed on the card.
79
- # @return [ProductRestrictionCard]
79
+ # True/False.
80
+ # If true, the location restrictions applied on the card will be deleted.
81
+ # Else, the card restrictions will be updated with the location restrictions
82
+ # provided in the API.
83
+ # @return [Object]
80
84
  attr_accessor :product_restrictions
81
85
 
82
- # Details of the day/time restrictions such as weekdays and time range in
83
- # which transactions should be allowed on the card.
86
+ # True/False.
87
+ # If true, the location restrictions applied on the card will be deleted.
88
+ # Else, the card restrictions will be updated with the location restrictions
89
+ # provided in the API.
84
90
  # @return [LocationRestriction]
85
91
  attr_accessor :location_restrictions
86
92
 
@@ -127,8 +133,6 @@ module ShellCardManagementApIs
127
133
  reset_day_time_restrictions
128
134
  reset_product_restrictions
129
135
  reset_location_restrictions
130
- usage_restrictions
131
- product_restrictions
132
136
  ]
133
137
  end
134
138
 
@@ -177,12 +181,12 @@ module ShellCardManagementApIs
177
181
  hash.key?('ResetProductRestrictions') ? hash['ResetProductRestrictions'] : SKIP
178
182
  reset_location_restrictions =
179
183
  hash.key?('ResetLocationRestrictions') ? hash['ResetLocationRestrictions'] : SKIP
180
- usage_restrictions = UsageRestrictionsCard.from_hash(hash['UsageRestrictions']) if
181
- hash['UsageRestrictions']
182
- day_time_restrictions = DayTimeRestriction.from_hash(hash['DayTimeRestrictions']) if
184
+ usage_restrictions =
185
+ hash.key?('UsageRestrictions') ? hash['UsageRestrictions'] : SKIP
186
+ day_time_restrictions = DayTimeRestrictions.from_hash(hash['DayTimeRestrictions']) if
183
187
  hash['DayTimeRestrictions']
184
- product_restrictions = ProductRestrictionCard.from_hash(hash['ProductRestrictions']) if
185
- hash['ProductRestrictions']
188
+ product_restrictions =
189
+ hash.key?('ProductRestrictions') ? hash['ProductRestrictions'] : SKIP
186
190
  location_restrictions = LocationRestriction.from_hash(hash['LocationRestrictions']) if
187
191
  hash['LocationRestrictions']
188
192
 
@@ -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
 
@@ -158,6 +158,10 @@ module ShellCardManagementApIs
158
158
  # @return [String]
159
159
  attr_accessor :pan
160
160
 
161
+ # PANID of the card
162
+ # @return [Float]
163
+ attr_accessor :panid
164
+
161
165
  # Payer id of the customer.<br />
162
166
  # Optional if PayerNumber is passed, else Mandatory.
163
167
  # @return [Integer]
@@ -187,6 +191,7 @@ module ShellCardManagementApIs
187
191
  @_hash['col_co_code'] = 'ColCoCode'
188
192
  @_hash['col_co_id'] = 'ColCoId'
189
193
  @_hash['pan'] = 'PAN'
194
+ @_hash['panid'] = 'PANID'
190
195
  @_hash['payer_id'] = 'PayerId'
191
196
  @_hash['payer_number'] = 'PayerNumber'
192
197
  @_hash
@@ -211,6 +216,7 @@ module ShellCardManagementApIs
211
216
  col_co_code
212
217
  col_co_id
213
218
  pan
219
+ panid
214
220
  payer_id
215
221
  payer_number
216
222
  ]
@@ -229,6 +235,7 @@ module ShellCardManagementApIs
229
235
  col_co_code
230
236
  col_co_id
231
237
  pan
238
+ panid
232
239
  payer_id
233
240
  payer_number
234
241
  ]
@@ -240,7 +247,7 @@ module ShellCardManagementApIs
240
247
  reason_id = SKIP, reason_text = SKIP, target_status = SKIP,
241
248
  account_id = SKIP, account_number = SKIP,
242
249
  card_expiry_date = SKIP, card_id = SKIP, col_co_code = SKIP,
243
- col_co_id = SKIP, pan = SKIP, payer_id = SKIP,
250
+ col_co_id = SKIP, pan = SKIP, panid = SKIP, payer_id = SKIP,
244
251
  payer_number = SKIP)
245
252
  @caller = caller unless caller == SKIP
246
253
  unless is_replacement_chargeable == SKIP
@@ -261,6 +268,7 @@ module ShellCardManagementApIs
261
268
  @col_co_code = col_co_code unless col_co_code == SKIP
262
269
  @col_co_id = col_co_id unless col_co_id == SKIP
263
270
  @pan = pan unless pan == SKIP
271
+ @panid = panid unless panid == SKIP
264
272
  @payer_id = payer_id unless payer_id == SKIP
265
273
  @payer_number = payer_number unless payer_number == SKIP
266
274
  end
@@ -290,6 +298,7 @@ module ShellCardManagementApIs
290
298
  col_co_code = hash.key?('ColCoCode') ? hash['ColCoCode'] : SKIP
291
299
  col_co_id = hash.key?('ColCoId') ? hash['ColCoId'] : SKIP
292
300
  pan = hash.key?('PAN') ? hash['PAN'] : SKIP
301
+ panid = hash.key?('PANID') ? hash['PANID'] : SKIP
293
302
  payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP
294
303
  payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
295
304
 
@@ -310,6 +319,7 @@ module ShellCardManagementApIs
310
319
  col_co_code,
311
320
  col_co_id,
312
321
  pan,
322
+ panid,
313
323
  payer_id,
314
324
  payer_number)
315
325
  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