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
@@ -52,8 +52,32 @@ module ShellCardManagementApIs
52
52
  # @return [String]
53
53
  attr_accessor :pan
54
54
 
55
- # Card PAN. In the response body the PAN will be masked if the option is
56
- # enabled in the Shell Card Platform.
55
+ # Possible Id’s and description:
56
+ # * 1 Active
57
+ # * 7 Blocked Card
58
+ # * 8 Expired
59
+ # * 9 Cancelled
60
+ # * 10 New
61
+ # * 23 Pending Renewal
62
+ # * 31 Replaced
63
+ # * 41 Temporary Block (Customer)
64
+ # * 42 Temporary Block (Shell)
65
+ # * 43 Fraud
66
+ # * 101 Active (Block in progress) *
67
+ # * 102 Blocked Card (Unblock in progress) *
68
+ # * 103 Active (Cancel in progress) *
69
+ # * 104 Active (Marked as damaged) *
70
+ # * 105 New (Cancel as damaged) *
71
+ # * 106 Active(Scheduled for block) ”#
72
+ # * 107 Blocked Card(Scheduled for unblock)*#
73
+ # * 108 Blocked Card (Cancel in progress) *
74
+ # > Note:
75
+ # • Items marked with * are intermediate statuses to indicate that there
76
+ # are pending requests in progress. , The response can contain these
77
+ # intermediate statuses only if the IncludeIntermediateStatus flag is true.
78
+ # • The placeholder “<Shell Card Platform Status>” in the items marked with
79
+ # # will be replaced with the Shell Card Platform status description. E.g.,
80
+ # “Active (Scheduled for block)”
57
81
  # @return [CardDetailsResponseStatusIdEnum]
58
82
  attr_accessor :status_id
59
83
 
@@ -94,7 +118,9 @@ module ShellCardManagementApIs
94
118
  # @return [TrueClass | FalseClass]
95
119
  attr_accessor :fleet_id_prompt
96
120
 
97
- # True if fleet id input is enabled, else false
121
+ # PIN type:
122
+ # * `Card` - Card PIN
123
+ # * `Fleet` - Fleet PIN
98
124
  # @return [CardDetailsResponsePINTypeEnum]
99
125
  attr_accessor :pin_type
100
126
 
@@ -126,19 +152,143 @@ module ShellCardManagementApIs
126
152
  # @return [Object]
127
153
  attr_accessor :reissue_setting
128
154
 
129
- # Issue number of the card
155
+ # POS language identifier. Language Id:
156
+ # * `1` - German
157
+ # * `2` - French
158
+ # * `3` - Bulgarian
159
+ # * `4` - Croatian
160
+ # * `5` - Czech
161
+ # * `6` - Danish
162
+ # * `7` - Finnish
163
+ # * `8` - English
164
+ # * `9` - Greek
165
+ # * `10` - Chinese
166
+ # * `11` - Hungarian
167
+ # * `12` - Italian
168
+ # * `13` - Luxembourgish
169
+ # * `14` - Malay
170
+ # * `15` - Dutch
171
+ # * `16` - Norwegian, Bokmal
172
+ # * `17` - Urdu
173
+ # * `18` - Polish
174
+ # * `19` - Portuguese
175
+ # * `20` - Romanian
176
+ # * `21` - Russian
177
+ # * `22` - Slovak
178
+ # * `23` - Slovenian
179
+ # * `24` - Spanish
180
+ # * `25` - Swedish
181
+ # * `26` - Turkish
182
+ # * `27` - Thai
183
+ # * `28` - Filipino
184
+ # * `29` - Estonian
185
+ # * `30` - Latvian
186
+ # * `31` - Lithuanian
130
187
  # @return [CardDetailsResponseInternationalPOSLanguageIDEnum]
131
188
  attr_accessor :international_pos_language_id
132
189
 
133
- # Issue number of the card
190
+ # POS language code. Language code:
191
+ # * `deu` - German
192
+ # * `fra` - French
193
+ # * `bul` - Bulgarian
194
+ # * `hrv` - Croatian
195
+ # * `ces` - Czech
196
+ # * `dan` - Danish
197
+ # * `fin` - Finnish
198
+ # * `eng` - English
199
+ # * `ell` - Greek
200
+ # * `zho` - Chinese
201
+ # * `hun` - Hungarian
202
+ # * `ita` - Italian
203
+ # * `ltz` - Luxembourgish
204
+ # * `msa` - Malay
205
+ # * `nld` - Dutch
206
+ # * `nob` - Norwegian, Bokmal
207
+ # * `urd` - Urdu
208
+ # * `pol` - Polish
209
+ # * `por` - Portuguese
210
+ # * `ron` - Romanian
211
+ # * `rus` - Russian
212
+ # * `slk` - Slovak
213
+ # * `slv` - Slovenian
214
+ # * `spa` - Spanish
215
+ # * `swe` - Swedish
216
+ # * `tur` - Turkish
217
+ # * `tha` - Thai
218
+ # * `fil` - Filipino
219
+ # * `est` - Estonian
220
+ # * `lav` - Latvian
221
+ # * `lit` - Lithuanian
134
222
  # @return [CardDetailsResponseInternationalPOSLanguageCodeEnum]
135
223
  attr_accessor :international_pos_language_code
136
224
 
137
- # Issue number of the card
225
+ # POS language identifier. Language Id:
226
+ # * `1` - German
227
+ # * `2` - French
228
+ # * `3` - Bulgarian
229
+ # * `4` - Croatian
230
+ # * `5` - Czech
231
+ # * `6` - Danish
232
+ # * `7` - Finnish
233
+ # * `8` - English
234
+ # * `9` - Greek
235
+ # * `10` - Chinese
236
+ # * `11` - Hungarian
237
+ # * `12` - Italian
238
+ # * `13` - Luxembourgish
239
+ # * `14` - Malay
240
+ # * `15` - Dutch
241
+ # * `16` - Norwegian, Bokmal
242
+ # * `17` - Urdu
243
+ # * `18` - Polish
244
+ # * `19` - Portuguese
245
+ # * `20` - Romanian
246
+ # * `21` - Russian
247
+ # * `22` - Slovak
248
+ # * `23` - Slovenian
249
+ # * `24` - Spanish
250
+ # * `25` - Swedish
251
+ # * `26` - Turkish
252
+ # * `27` - Thai
253
+ # * `28` - Filipino
254
+ # * `29` - Estonian
255
+ # * `30` - Latvian
256
+ # * `31` - Lithuanian
138
257
  # @return [CardDetailsResponseInternationalPOSLanguageIDEnum]
139
258
  attr_accessor :local_pos_language_id
140
259
 
141
- # Issue number of the card
260
+ # POS language code. Language code:
261
+ # * `deu` - German
262
+ # * `fra` - French
263
+ # * `bul` - Bulgarian
264
+ # * `hrv` - Croatian
265
+ # * `ces` - Czech
266
+ # * `dan` - Danish
267
+ # * `fin` - Finnish
268
+ # * `eng` - English
269
+ # * `ell` - Greek
270
+ # * `zho` - Chinese
271
+ # * `hun` - Hungarian
272
+ # * `ita` - Italian
273
+ # * `ltz` - Luxembourgish
274
+ # * `msa` - Malay
275
+ # * `nld` - Dutch
276
+ # * `nob` - Norwegian, Bokmal
277
+ # * `urd` - Urdu
278
+ # * `pol` - Polish
279
+ # * `por` - Portuguese
280
+ # * `ron` - Romanian
281
+ # * `rus` - Russian
282
+ # * `slk` - Slovak
283
+ # * `slv` - Slovenian
284
+ # * `spa` - Spanish
285
+ # * `swe` - Swedish
286
+ # * `tur` - Turkish
287
+ # * `tha` - Thai
288
+ # * `fil` - Filipino
289
+ # * `est` - Estonian
290
+ # * `lav` - Latvian
291
+ # * `lit` - Lithuanian
142
292
  # @return [CardDetailsResponseInternationalPOSLanguageCodeEnum]
143
293
  attr_accessor :local_pos_language_code
144
294
 
@@ -291,7 +441,9 @@ module ShellCardManagementApIs
291
441
  # @return [Integer]
292
442
  attr_accessor :renewed_card_issue_number
293
443
 
294
- # Renewed card issue number.
444
+ # Reissue setting of the renewed new card. Reissue Setting:
445
+ # * `True` - Card will be sent to production
446
+ # * `False` - Parent Card is Dormant or the Card is not to be produced
295
447
  # @return [CardDetailsResponseRenewedCardReissueSettingEnum]
296
448
  attr_accessor :renewed_card_reissue_setting
297
449
 
@@ -57,9 +57,9 @@ module ShellCardManagementApIs
57
57
  # Card Group Status
58
58
  # Mandatory
59
59
  # Allowed values:
60
- # • ALL
61
- # • TERMINATED
62
- # • ACTIVE
60
+ # • ALL
61
+ # • TERMINATED
62
+ # • ACTIVE
63
63
  # @return [String]
64
64
  attr_accessor :status
65
65
 
@@ -58,9 +58,9 @@ module ShellCardManagementApIs
58
58
  # Card delivery type.<br />
59
59
  # Mandatory <br />
60
60
  # Allowed Value: <br />
61
- # 1. Customer Address(Default) <br />
62
- # 2. New Delivery Address <br />
63
- # 3. Old Card Address
61
+ # 1. Customer Address(Default) <br />
62
+ # 2. New Delivery Address <br />
63
+ # 3. Old Card Address
64
64
  # @return [Integer]
65
65
  attr_accessor :card_delivery_type
66
66
 
@@ -153,19 +153,19 @@ module ShellCardManagementApIs
153
153
  # PIN delivery address type selection.<br />
154
154
  # Optional<br />
155
155
  # Allowed Values:<br />
156
- # 1. Customer Address(Default)<br />
157
- # 2. Card Address<br />
158
- # 3. New Delivery Address
156
+ # 1. Customer Address(Default)<br />
157
+ # 2. Card Address<br />
158
+ # 3. New Delivery Address
159
159
  # @return [Integer]
160
160
  attr_accessor :pin_delivery_address_type
161
161
 
162
162
  # PIN delivery method.<br />
163
163
  # Mandatory when OrderReplacement Is true.<br />
164
164
  # Allowed Values:<br />
165
- # 1. Paper<br />
166
- # 2. Email<br />
167
- # 3. SMS<br />
168
- # 4. None
165
+ # 1. Paper<br />
166
+ # 2. Email<br />
167
+ # 3. SMS<br />
168
+ # 4. None
169
169
  # @return [Integer]
170
170
  attr_accessor :pin_advice_type
171
171
 
@@ -73,7 +73,7 @@ module ShellCardManagementApIs
73
73
  # Example: 7002051006629890645
74
74
  # When PAN matches with multiple cards, the restriction will be applied on
75
75
  # the latest issued card.
76
- # @return [BundleRestriction]
76
+ # @return [Object]
77
77
  attr_accessor :restrictions
78
78
 
79
79
  # A mapping from model property names to API property names.
@@ -117,7 +117,6 @@ module ShellCardManagementApIs
117
117
  account_id
118
118
  account_number
119
119
  external_bundle_id
120
- restrictions
121
120
  ]
122
121
  end
123
122
 
@@ -152,7 +151,7 @@ module ShellCardManagementApIs
152
151
  hash.key?('ExternalBundleId') ? hash['ExternalBundleId'] : SKIP
153
152
  description = hash.key?('Description') ? hash['Description'] : SKIP
154
153
  cards = hash.key?('Cards') ? hash['Cards'] : SKIP
155
- restrictions = BundleRestriction.from_hash(hash['Restrictions']) if hash['Restrictions']
154
+ restrictions = hash.key?('Restrictions') ? hash['Restrictions'] : SKIP
156
155
 
157
156
  # Create object from extracted values.
158
157
  CreateBundleRequest.new(col_co_id,
@@ -54,20 +54,20 @@ module ShellCardManagementApIs
54
54
  attr_accessor :billing_address
55
55
 
56
56
  # Card group position at –
57
- # • Payer – Payer level
58
- # • Account – Account level
57
+ # • Payer – Payer level
58
+ # • Account – Account level
59
59
  # @return [String]
60
60
  attr_accessor :card_group_position
61
61
 
62
62
  # Card group position at –
63
- # • Payer – Payer level
64
- # • Account – Account level
63
+ # • Payer – Payer level
64
+ # • Account – Account level
65
65
  # @return [Address]
66
66
  attr_accessor :correspondence_address
67
67
 
68
68
  # Card group position at –
69
- # • Payer – Payer level
70
- # • Account – Account level
69
+ # • Payer – Payer level
70
+ # • Account – Account level
71
71
  # @return [Array[DeliveryAddresses]]
72
72
  attr_accessor :delivery_addresses
73
73
 
@@ -132,28 +132,28 @@ module ShellCardManagementApIs
132
132
 
133
133
  # Default PIN AdviceType of the customer.
134
134
  # Possible Values:
135
- # 1. Paper
136
- # 2. Email
137
- # 3. SMS
138
- # 4. None
135
+ # 1. Paper
136
+ # 2. Email
137
+ # 3. SMS
138
+ # 4. None
139
139
  # @return [Integer]
140
140
  attr_accessor :default_pin_advice_type
141
141
 
142
142
  # Default PIN AdviceType of the customer.
143
143
  # Possible Values:
144
- # 1. Paper
145
- # 2. Email
146
- # 3. SMS
147
- # 4. None
144
+ # 1. Paper
145
+ # 2. Email
146
+ # 3. SMS
147
+ # 4. None
148
148
  # @return [Array[PINAdviceTypes]]
149
149
  attr_accessor :pin_advice_types
150
150
 
151
151
  # Default PIN AdviceType of the customer.
152
152
  # Possible Values:
153
- # 1. Paper
154
- # 2. Email
155
- # 3. SMS
156
- # 4. None
153
+ # 1. Paper
154
+ # 2. Email
155
+ # 3. SMS
156
+ # 4. None
157
157
  # @return [ErrorStatus]
158
158
  attr_accessor :error
159
159
 
@@ -41,7 +41,7 @@ module ShellCardManagementApIs
41
41
  # Card could be used from this time in a day.
42
42
  # Format: HH:mm (24-hour format)
43
43
  # Note:
44
- # 1. Clients to convert this to appropriate DateTime or TimeSpan type.
44
+ # 1. Clients to convert this to appropriate DateTime or TimeSpan type.
45
45
  # “00:00” is the lowest time value and “23:59” is the highest time value.
46
46
  # @return [String]
47
47
  attr_accessor :time_from
@@ -49,7 +49,7 @@ module ShellCardManagementApIs
49
49
  # Card could be used up to this time in a day.
50
50
  # Format: HH:mm (24-hour format)
51
51
  # Note:
52
- # 1. Clients to convert this to appropriate DateTime or TimeSpan type.
52
+ # 1. Clients to convert this to appropriate DateTime or TimeSpan type.
53
53
  # “00:00” is the lowest time value and “23:59” is the highest time value.
54
54
  # @return [String]
55
55
  attr_accessor :time_to
@@ -0,0 +1,132 @@
1
+ # shell_card_management_ap_is
2
+ #
3
+ # This file was automatically generated by APIMATIC v2.0
4
+ # ( https://apimatic.io ).
5
+
6
+ module ShellCardManagementApIs
7
+ # DayTimeRestrictions Model.
8
+ class DayTimeRestrictions < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # True if card could be used on a Monday, else false
13
+ # @return [TrueClass | FalseClass]
14
+ attr_accessor :monday
15
+
16
+ # True if card could be used on a Tuesday, else false.
17
+ # @return [TrueClass | FalseClass]
18
+ attr_accessor :tuesday
19
+
20
+ # True if card could be used on a Wednesday, else false.
21
+ # @return [TrueClass | FalseClass]
22
+ attr_accessor :wednesday
23
+
24
+ # True if card could be used on a Thursday, else false
25
+ # @return [TrueClass | FalseClass]
26
+ attr_accessor :thursday
27
+
28
+ # True if card could be used on a Friday, else false
29
+ # @return [TrueClass | FalseClass]
30
+ attr_accessor :friday
31
+
32
+ # True if card could be used on a Saturday, else false
33
+ # @return [TrueClass | FalseClass]
34
+ attr_accessor :saturday
35
+
36
+ # True if card could be used on a Sunday, else false.
37
+ # @return [TrueClass | FalseClass]
38
+ attr_accessor :sunday
39
+
40
+ # Card could be used from this time in a day.
41
+ # Format: HH:mm (24-hour format)
42
+ # Note:
43
+ # 1. Clients to convert this to appropriate DateTime or TimeSpan type.
44
+ # “00:00” is the lowest time value and “23:59” is the highest time value.
45
+ # @return [String]
46
+ attr_accessor :time_from
47
+
48
+ # Card could be used up to this time in a day.
49
+ # Format: HH:mm (24-hour format)
50
+ # Note:
51
+ # 1. Clients to convert this to appropriate DateTime or TimeSpan type.
52
+ # “00:00” is the lowest time value and “23:59” is the highest time value.
53
+ # @return [String]
54
+ attr_accessor :time_to
55
+
56
+ # A mapping from model property names to API property names.
57
+ def self.names
58
+ @_hash = {} if @_hash.nil?
59
+ @_hash['monday'] = 'Monday'
60
+ @_hash['tuesday'] = 'Tuesday'
61
+ @_hash['wednesday'] = 'Wednesday'
62
+ @_hash['thursday'] = 'Thursday'
63
+ @_hash['friday'] = 'Friday'
64
+ @_hash['saturday'] = 'Saturday'
65
+ @_hash['sunday'] = 'Sunday'
66
+ @_hash['time_from'] = 'TimeFrom'
67
+ @_hash['time_to'] = 'TimeTo'
68
+ @_hash
69
+ end
70
+
71
+ # An array for optional fields
72
+ def self.optionals
73
+ %w[
74
+ monday
75
+ tuesday
76
+ wednesday
77
+ thursday
78
+ friday
79
+ saturday
80
+ sunday
81
+ time_from
82
+ time_to
83
+ ]
84
+ end
85
+
86
+ # An array for nullable fields
87
+ def self.nullables
88
+ []
89
+ end
90
+
91
+ def initialize(monday = SKIP, tuesday = SKIP, wednesday = SKIP,
92
+ thursday = SKIP, friday = SKIP, saturday = SKIP,
93
+ sunday = SKIP, time_from = SKIP, time_to = SKIP)
94
+ @monday = monday unless monday == SKIP
95
+ @tuesday = tuesday unless tuesday == SKIP
96
+ @wednesday = wednesday unless wednesday == SKIP
97
+ @thursday = thursday unless thursday == SKIP
98
+ @friday = friday unless friday == SKIP
99
+ @saturday = saturday unless saturday == SKIP
100
+ @sunday = sunday unless sunday == SKIP
101
+ @time_from = time_from unless time_from == SKIP
102
+ @time_to = time_to unless time_to == SKIP
103
+ end
104
+
105
+ # Creates an instance of the object from a hash.
106
+ def self.from_hash(hash)
107
+ return nil unless hash
108
+
109
+ # Extract variables from the hash.
110
+ monday = hash.key?('Monday') ? hash['Monday'] : SKIP
111
+ tuesday = hash.key?('Tuesday') ? hash['Tuesday'] : SKIP
112
+ wednesday = hash.key?('Wednesday') ? hash['Wednesday'] : SKIP
113
+ thursday = hash.key?('Thursday') ? hash['Thursday'] : SKIP
114
+ friday = hash.key?('Friday') ? hash['Friday'] : SKIP
115
+ saturday = hash.key?('Saturday') ? hash['Saturday'] : SKIP
116
+ sunday = hash.key?('Sunday') ? hash['Sunday'] : SKIP
117
+ time_from = hash.key?('TimeFrom') ? hash['TimeFrom'] : SKIP
118
+ time_to = hash.key?('TimeTo') ? hash['TimeTo'] : SKIP
119
+
120
+ # Create object from extracted values.
121
+ DayTimeRestrictions.new(monday,
122
+ tuesday,
123
+ wednesday,
124
+ thursday,
125
+ friday,
126
+ saturday,
127
+ sunday,
128
+ time_from,
129
+ time_to)
130
+ end
131
+ end
132
+ end
@@ -334,9 +334,9 @@ module ShellCardManagementApIs
334
334
  # If ‘ALL’, API will return cards with ReIssueSetting value True &amp; 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
 
@@ -270,9 +270,9 @@ module ShellCardManagementApIs
270
270
  # If ‘ALL’, API will return cards with ReIssueSetting value True &amp; False
271
271
  # both.<br />
272
272
  # Allowed Values:<br />
273
- # 1. All<br />
274
- # 2. True<br />
275
- # 3. False
273
+ # 1. All<br />
274
+ # 2. True<br />
275
+ # 3. False
276
276
  # @return [String]
277
277
  attr_accessor :reissue_setting
278
278
 
@@ -287,9 +287,9 @@ module ShellCardManagementApIs
287
287
  # If ‘ALL’, API will return cards with ReIssueSetting value True &amp; False
288
288
  # both.<br />
289
289
  # Allowed Values:<br />
290
- # 1. All<br />
291
- # 2. True<br />
292
- # 3. False
290
+ # 1. All<br />
291
+ # 2. True<br />
292
+ # 3. False
293
293
  # @return [String]
294
294
  attr_accessor :request_id
295
295
 
@@ -53,9 +53,15 @@ module ShellCardManagementApIs
53
53
  # @return [Integer]
54
54
  attr_accessor :reference_number
55
55
 
56
- # Reference number of the Card Order/ Bulk Card Order/ Order Card
57
- # Request.<br />
58
- # Mandatory when ColCo and Payer fields are not provided. Else, optional.
56
+ # Type of the reference number provided.<br />
57
+ # Mandatory if ReferenceNumber is provided. Else optional.<br />
58
+ # Allowed Values:<br />
59
+ # 1=Main Reference(Main Order Reference Number returned in the output of
60
+ # Card/OrderCard service. <br />
61
+ # 2=Order Card Reference (Reference number for each individual card in the
62
+ # order submitted via Card/OrderCard service. <br />
63
+ # 3=Bulk Order Card Reference (Reference number returned in the response of
64
+ # bulkcardinterface /UploadOrderCardTemplate. )
59
65
  # @return [OrderCardEnquiryReqReferenceTypeEnum]
60
66
  attr_accessor :reference_type
61
67
 
@@ -0,0 +1,50 @@
1
+ # shell_card_management_ap_is
2
+ #
3
+ # This file was automatically generated by APIMATIC v2.0
4
+ # ( https://apimatic.io ).
5
+
6
+ module ShellCardManagementApIs
7
+ # FleetmanagementV1CustomerPayers400Error1 Model.
8
+ class FleetmanagementV1CustomerPayers400Error1 < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # TODO: Write general description for this method
13
+ # @return [Fault]
14
+ attr_accessor :fault
15
+
16
+ # A mapping from model property names to API property names.
17
+ def self.names
18
+ @_hash = {} if @_hash.nil?
19
+ @_hash['fault'] = 'fault'
20
+ @_hash
21
+ end
22
+
23
+ # An array for optional fields
24
+ def self.optionals
25
+ %w[
26
+ fault
27
+ ]
28
+ end
29
+
30
+ # An array for nullable fields
31
+ def self.nullables
32
+ []
33
+ end
34
+
35
+ def initialize(fault = SKIP)
36
+ @fault = fault unless fault == SKIP
37
+ end
38
+
39
+ # Creates an instance of the object from a hash.
40
+ def self.from_hash(hash)
41
+ return nil unless hash
42
+
43
+ # Extract variables from the hash.
44
+ fault = Fault.from_hash(hash['fault']) if hash['fault']
45
+
46
+ # Create object from extracted values.
47
+ FleetmanagementV1CustomerPayers400Error1.new(fault)
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,50 @@
1
+ # shell_card_management_ap_is
2
+ #
3
+ # This file was automatically generated by APIMATIC v2.0
4
+ # ( https://apimatic.io ).
5
+
6
+ module ShellCardManagementApIs
7
+ # FleetmanagementV1CustomerPayers404Error1 Model.
8
+ class FleetmanagementV1CustomerPayers404Error1 < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # TODO: Write general description for this method
13
+ # @return [Fault]
14
+ attr_accessor :fault
15
+
16
+ # A mapping from model property names to API property names.
17
+ def self.names
18
+ @_hash = {} if @_hash.nil?
19
+ @_hash['fault'] = 'fault'
20
+ @_hash
21
+ end
22
+
23
+ # An array for optional fields
24
+ def self.optionals
25
+ %w[
26
+ fault
27
+ ]
28
+ end
29
+
30
+ # An array for nullable fields
31
+ def self.nullables
32
+ []
33
+ end
34
+
35
+ def initialize(fault = SKIP)
36
+ @fault = fault unless fault == SKIP
37
+ end
38
+
39
+ # Creates an instance of the object from a hash.
40
+ def self.from_hash(hash)
41
+ return nil unless hash
42
+
43
+ # Extract variables from the hash.
44
+ fault = Fault.from_hash(hash['fault']) if hash['fault']
45
+
46
+ # Create object from extracted values.
47
+ FleetmanagementV1CustomerPayers404Error1.new(fault)
48
+ end
49
+ end
50
+ end