card-management-sdk 1.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f5c05f096a109c51ab89c60ca4c2bed2d4afc9e0d00ced3b489c258706440b53
4
- data.tar.gz: e2ae507c33be41d818ecebc705d8871b85f387b93759c0273b241ad3b83425f1
3
+ metadata.gz: 926edc280c1d8c5c91ad5060d020c654dd803ae01fd908fc7a5218f780263ca9
4
+ data.tar.gz: 6c17d8bc9a8f54cc415b37823e93ac6a06b966bbde399332417901b3a11aee16
5
5
  SHA512:
6
- metadata.gz: '084c7f36b7dfbfd41cb9bdf4c7db135766e2f897afe70ab3822ab0d0a0627f83a227c009cb90cccecc147bcfd28d4adfcefd8f4f5f1d71bdb93a8766d2710b58'
7
- data.tar.gz: 412a5044dee928b4737c2006417a8e0e42805aba31f7c841fbf3fd94e71af94a9ff0e19324bf6ee7c67a16ea3f3a4ae3228d0127c4ada6a15bcc8191be4089b4
6
+ metadata.gz: 0b778d481bf46815382087dfa61ec8ef71f935aea8fc6036da8a924d2607891f7710d5fe764bb6974a5901c31fc0b6c6b4c2e336e84f2b18e08997befc9a230b
7
+ data.tar.gz: c171b9c0090ed46499ddfc3d3cf869831735f1aa03cbce97f2a9c499a23f2cb6eb82f03e89a679717f94ce523ddc2833169d3e258f55a14c255fcb651da8fe9b
data/README.md CHANGED
@@ -15,21 +15,21 @@ Go to the Shell Developer Portal: [https://developer.shell.com](https://develope
15
15
 
16
16
  Install the gem from the command line:
17
17
 
18
- ```ruby
19
- gem install card-management-sdk -v 1.2.0
18
+ ```bash
19
+ gem install card-management-sdk -v 1.3.0
20
20
  ```
21
21
 
22
22
  Or add the gem to your Gemfile and run `bundle`:
23
23
 
24
24
  ```ruby
25
- gem 'card-management-sdk', '1.2.0'
25
+ gem 'card-management-sdk', '1.3.0'
26
26
  ```
27
27
 
28
- For additional gem details, see the [RubyGems page for the card-management-sdk gem](https://rubygems.org/gems/card-management-sdk/versions/1.2.0).
28
+ For additional gem details, see the [RubyGems page for the card-management-sdk gem](https://rubygems.org/gems/card-management-sdk/versions/1.3.0).
29
29
 
30
30
  ## Initialize the API Client
31
31
 
32
- **_Note:_** Documentation for the client can be found [here.](https://www.github.com/sdks-io/card-management-ruby-sdk/tree/1.2.0/doc/client.md)
32
+ **_Note:_** Documentation for the client can be found [here.](https://www.github.com/sdks-io/card-management-ruby-sdk/tree/1.3.0/doc/client.md)
33
33
 
34
34
  The following parameters are configurable for the API Client:
35
35
 
@@ -45,8 +45,8 @@ The following parameters are configurable for the API Client:
45
45
  | `retry_statuses` | `Array` | A list of HTTP statuses to retry. <br> **Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524]** |
46
46
  | `retry_methods` | `Array` | A list of HTTP methods to retry. <br> **Default: %i[get put]** |
47
47
  | `http_callback` | `HttpCallBack` | The Http CallBack allows defining callables for pre and post API calls. |
48
- | `basic_auth_credentials` | [`BasicAuthCredentials`](https://www.github.com/sdks-io/card-management-ruby-sdk/tree/1.2.0/doc/auth/basic-authentication.md) | The credential object for Basic Authentication |
49
- | `bearer_token_credentials` | [`BearerTokenCredentials`](https://www.github.com/sdks-io/card-management-ruby-sdk/tree/1.2.0/doc/auth/oauth-2-client-credentials-grant.md) | The credential object for OAuth 2 Client Credentials Grant |
48
+ | `basic_auth_credentials` | [`BasicAuthCredentials`](https://www.github.com/sdks-io/card-management-ruby-sdk/tree/1.3.0/doc/auth/basic-authentication.md) | The credential object for Basic Authentication |
49
+ | `bearer_token_credentials` | [`BearerTokenCredentials`](https://www.github.com/sdks-io/card-management-ruby-sdk/tree/1.3.0/doc/auth/oauth-2-client-credentials-grant.md) | The credential object for OAuth 2 Client Credentials Grant |
50
50
 
51
51
  The API client can be initialized as follows:
52
52
 
@@ -79,18 +79,18 @@ The SDK can be configured to use a different environment for making API calls. A
79
79
 
80
80
  This API uses the following authentication schemes.
81
81
 
82
- * [`BasicAuth (Basic Authentication)`](https://www.github.com/sdks-io/card-management-ruby-sdk/tree/1.2.0/doc/auth/basic-authentication.md)
83
- * [`BearerToken (OAuth 2 Client Credentials Grant)`](https://www.github.com/sdks-io/card-management-ruby-sdk/tree/1.2.0/doc/auth/oauth-2-client-credentials-grant.md)
82
+ * [`BasicAuth (Basic Authentication)`](https://www.github.com/sdks-io/card-management-ruby-sdk/tree/1.3.0/doc/auth/basic-authentication.md)
83
+ * [`BearerToken (OAuth 2 Client Credentials Grant)`](https://www.github.com/sdks-io/card-management-ruby-sdk/tree/1.3.0/doc/auth/oauth-2-client-credentials-grant.md)
84
84
 
85
85
  ## List of APIs
86
86
 
87
- * [Customer](https://www.github.com/sdks-io/card-management-ruby-sdk/tree/1.2.0/doc/controllers/customer.md)
88
- * [Restriction](https://www.github.com/sdks-io/card-management-ruby-sdk/tree/1.2.0/doc/controllers/restriction.md)
89
- * [Card](https://www.github.com/sdks-io/card-management-ruby-sdk/tree/1.2.0/doc/controllers/card.md)
87
+ * [Customer](https://www.github.com/sdks-io/card-management-ruby-sdk/tree/1.3.0/doc/controllers/customer.md)
88
+ * [Restriction](https://www.github.com/sdks-io/card-management-ruby-sdk/tree/1.3.0/doc/controllers/restriction.md)
89
+ * [Card](https://www.github.com/sdks-io/card-management-ruby-sdk/tree/1.3.0/doc/controllers/card.md)
90
90
 
91
91
  ## Classes Documentation
92
92
 
93
- * [Utility Classes](https://www.github.com/sdks-io/card-management-ruby-sdk/tree/1.2.0/doc/utility-classes.md)
94
- * [HttpResponse](https://www.github.com/sdks-io/card-management-ruby-sdk/tree/1.2.0/doc/http-response.md)
95
- * [HttpRequest](https://www.github.com/sdks-io/card-management-ruby-sdk/tree/1.2.0/doc/http-request.md)
93
+ * [Utility Classes](https://www.github.com/sdks-io/card-management-ruby-sdk/tree/1.3.0/doc/utility-classes.md)
94
+ * [HttpResponse](https://www.github.com/sdks-io/card-management-ruby-sdk/tree/1.3.0/doc/http-response.md)
95
+ * [HttpRequest](https://www.github.com/sdks-io/card-management-ruby-sdk/tree/1.3.0/doc/http-request.md)
96
96
 
@@ -5,6 +5,7 @@
5
5
 
6
6
  module ShellCardManagementApIs
7
7
  # Base model.
8
+ # rubocop:disable all
8
9
  class BaseModel < CoreLibrary::BaseModel
9
10
  # Returns a Hash representation of the current object.
10
11
  def to_hash
@@ -15,48 +16,95 @@ module ShellCardManagementApIs
15
16
  instance_variables.each do |name|
16
17
  value = instance_variable_get(name)
17
18
  name = name[1..]
18
- key = self.class.names.key?(name) ? self.class.names[name] : name
19
- optional_fields = self.class.optionals
20
- nullable_fields = self.class.nullables
21
- if value.nil?
22
- next unless nullable_fields.include?(name)
23
-
24
- if !optional_fields.include?(name) && !nullable_fields.include?(name)
25
- raise ArgumentError,
26
- "`#{name}` cannot be nil in `#{self.class}`. Please specify a valid value."
19
+ if name == 'additional_properties'
20
+ additional_properties = process_additional_properties(value, self.class.names)
21
+ hash.merge!(additional_properties)
22
+ else
23
+ key = self.class.names.key?(name) ? self.class.names[name] : name
24
+ optional_fields = self.class.optionals
25
+ nullable_fields = self.class.nullables
26
+ if value.nil?
27
+ next unless nullable_fields.include?(name)
28
+
29
+ if !optional_fields.include?(name) && !nullable_fields.include?(name)
30
+ raise ArgumentError,
31
+ "`#{name}` cannot be nil in `#{self.class}`. Please specify a valid value."
32
+ end
27
33
  end
28
- end
29
34
 
30
- hash[key] = nil
31
- unless value.nil?
32
- if respond_to?("to_custom_#{name}")
33
- if (value.instance_of? Array) || (value.instance_of? Hash)
34
- params = [hash, key]
35
- hash[key] = send("to_custom_#{name}", *params)
35
+ hash[key] = nil
36
+ unless value.nil?
37
+ if respond_to?("to_custom_#{name}")
38
+ if (value.instance_of? Array) || (value.instance_of? Hash)
39
+ params = [hash, key]
40
+ hash[key] = send("to_custom_#{name}", *params)
41
+ else
42
+ hash[key] = send("to_custom_#{name}")
43
+ end
44
+ elsif respond_to?("to_union_type_#{name}")
45
+ hash[key] = send("to_union_type_#{name}")
46
+ elsif value.instance_of? Array
47
+ hash[key] = value.map { |v| v.is_a?(BaseModel) ? v.to_hash : v }
48
+ elsif value.instance_of? Hash
49
+ hash[key] = {}
50
+ value.each do |k, v|
51
+ hash[key][k] = v.is_a?(BaseModel) ? v.to_hash : v
52
+ end
36
53
  else
37
- hash[key] = send("to_custom_#{name}")
54
+ hash[key] = value.is_a?(BaseModel) ? value.to_hash : value
38
55
  end
39
- elsif respond_to?("to_union_type_#{name}")
40
- hash[key] = send("to_union_type_#{name}")
41
- elsif value.instance_of? Array
42
- hash[key] = value.map { |v| v.is_a?(BaseModel) ? v.to_hash : v }
43
- elsif value.instance_of? Hash
44
- hash[key] = {}
45
- value.each do |k, v|
46
- hash[key][k] = v.is_a?(BaseModel) ? v.to_hash : v
47
- end
48
- else
49
- hash[key] = value.is_a?(BaseModel) ? value.to_hash : value
50
56
  end
51
57
  end
52
58
  end
53
59
  hash
54
60
  end
55
61
 
62
+ # Processes additional properties, ensuring no conflicts with existing properties.
63
+ def process_additional_properties(additional_properties, existing_prop_names)
64
+ hash = {}
65
+ additional_properties.each do |name, value|
66
+ check_for_conflict(name, existing_prop_names)
67
+
68
+ hash[name] = if value.is_a?(Array)
69
+ process_array(value)
70
+ elsif value.is_a?(Hash)
71
+ process_hash(value)
72
+ else
73
+ process_basic_value(value)
74
+ end
75
+ end
76
+ hash
77
+ end
78
+
79
+ # Checks if an additional property conflicts with a model's existing property.
80
+ def check_for_conflict(name, existing_prop_names)
81
+ return unless existing_prop_names.key?(name)
82
+
83
+ raise ArgumentError, "An additional property key, '#{name}' conflicts with one of the model's properties"
84
+ end
85
+
86
+ # Processes an array of values, recursively calling `to_hash` on BaseModel objects.
87
+ def process_array(value)
88
+ value.map { |v| v.is_a?(BaseModel) ? v.to_hash : v }
89
+ end
90
+
91
+ # Processes a hash of values, recursively calling `to_hash` on BaseModel objects.
92
+ def process_hash(value)
93
+ value.transform_values do |v|
94
+ v.is_a?(BaseModel) ? v.to_hash : v
95
+ end
96
+ end
97
+
98
+ # Processes a basic value (non-array, non-hash).
99
+ def process_basic_value(value)
100
+ value.is_a?(BaseModel) ? value.to_hash : value
101
+ end
102
+
56
103
  # Returns a JSON representation of the curent object.
57
104
  def to_json(options = {})
58
105
  hash = to_hash
59
106
  hash.to_json(options)
60
107
  end
61
108
  end
109
+ # rubocop:enable all
62
110
  end
@@ -343,11 +343,9 @@ module ShellCardManagementApIs
343
343
  # @return [String]
344
344
  attr_accessor :client_reference_id
345
345
 
346
- # Whether to reissue card automatically when nearing the expiry.
347
- # Allowed values: -
348
- # 1. As per card type setting (Default).
349
- # 2. Card will be Reissued when nearing its expiry date.
350
- # 3. Card will not be Reissued.
346
+ # This is the Client Reference Id of card in the order which needs to be
347
+ # passed by the client.This will be playback in the ordercard enquiry<br />
348
+ # Optional
351
349
  # @return [CardDetailAutoRenewEnum]
352
350
  attr_accessor :auto_renew
353
351
 
@@ -52,32 +52,8 @@ module ShellCardManagementApIs
52
52
  # @return [String]
53
53
  attr_accessor :pan
54
54
 
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)”
55
+ # Card PAN. In the response body the PAN will be masked if the option is
56
+ # enabled in the Shell Card Platform.
81
57
  # @return [CardDetailsResponseStatusIdEnum]
82
58
  attr_accessor :status_id
83
59
 
@@ -118,9 +94,7 @@ module ShellCardManagementApIs
118
94
  # @return [TrueClass | FalseClass]
119
95
  attr_accessor :fleet_id_prompt
120
96
 
121
- # PIN type:
122
- # * `Card` - Card PIN
123
- # * `Fleet` - Fleet PIN
97
+ # True if fleet id input is enabled, else false
124
98
  # @return [CardDetailsResponsePINTypeEnum]
125
99
  attr_accessor :pin_type
126
100
 
@@ -152,143 +126,19 @@ module ShellCardManagementApIs
152
126
  # @return [Object]
153
127
  attr_accessor :reissue_setting
154
128
 
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
129
+ # Issue number of the card
187
130
  # @return [CardDetailsResponseInternationalPOSLanguageIDEnum]
188
131
  attr_accessor :international_pos_language_id
189
132
 
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
133
+ # Issue number of the card
222
134
  # @return [CardDetailsResponseInternationalPOSLanguageCodeEnum]
223
135
  attr_accessor :international_pos_language_code
224
136
 
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
137
+ # Issue number of the card
257
138
  # @return [CardDetailsResponseInternationalPOSLanguageIDEnum]
258
139
  attr_accessor :local_pos_language_id
259
140
 
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
141
+ # Issue number of the card
292
142
  # @return [CardDetailsResponseInternationalPOSLanguageCodeEnum]
293
143
  attr_accessor :local_pos_language_code
294
144
 
@@ -441,9 +291,7 @@ module ShellCardManagementApIs
441
291
  # @return [Integer]
442
292
  attr_accessor :renewed_card_issue_number
443
293
 
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
294
+ # Renewed card issue number.
447
295
  # @return [CardDetailsResponseRenewedCardReissueSettingEnum]
448
296
  attr_accessor :renewed_card_reissue_setting
449
297
 
@@ -53,15 +53,9 @@ module ShellCardManagementApIs
53
53
  # @return [Integer]
54
54
  attr_accessor :reference_number
55
55
 
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. )
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.
65
59
  # @return [OrderCardEnquiryReqReferenceTypeEnum]
66
60
  attr_accessor :reference_type
67
61
 
@@ -54,15 +54,9 @@ module ShellCardManagementApIs
54
54
  # @return [Integer]
55
55
  attr_accessor :reference_number
56
56
 
57
- # Type of the reference number provided.<br />
58
- # Mandatory if ReferenceNumber is provided. Else optional.<br />
59
- # Allowed Values:<br />
60
- # 1=Main Reference(Main Order Reference Number returned in the output of
61
- # Card/OrderCard service. <br />
62
- # 2=Order Card Reference (Reference number for each individual card in the
63
- # order submitted via Card/OrderCard service. <br />
64
- # 3=Bulk Order Card Reference (Reference number returned in the response of
65
- # bulkcardinterface /UploadOrderCardTemplate. )
57
+ # Reference number of the Card Order/ Bulk Card Order/ Order Card
58
+ # Request.<br />
59
+ # Mandatory when ColCo and Payer fields are not provided. Else, optional.
66
60
  # @return [OrderCardEnquiryReqReferenceTypeEnum]
67
61
  attr_accessor :reference_type
68
62
 
@@ -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]
@@ -181,9 +140,6 @@ module ShellCardManagementApIs
181
140
  @_hash['notify_caller_on_sync'] = 'NotifyCallerOnSync'
182
141
  @_hash['order_card_replacement'] = 'OrderCardReplacement'
183
142
  @_hash['card_settings'] = 'CardSettings'
184
- @_hash['reason_id'] = 'ReasonId'
185
- @_hash['reason_text'] = 'ReasonText'
186
- @_hash['target_status'] = 'TargetStatus'
187
143
  @_hash['account_id'] = 'AccountId'
188
144
  @_hash['account_number'] = 'AccountNumber'
189
145
  @_hash['card_expiry_date'] = 'CardExpiryDate'
@@ -206,9 +162,6 @@ module ShellCardManagementApIs
206
162
  notify_caller_on_sync
207
163
  order_card_replacement
208
164
  card_settings
209
- reason_id
210
- reason_text
211
- target_status
212
165
  account_id
213
166
  account_number
214
167
  card_expiry_date
@@ -226,8 +179,6 @@ module ShellCardManagementApIs
226
179
  def self.nullables
227
180
  %w[
228
181
  caller
229
- reason_text
230
- target_status
231
182
  account_id
232
183
  account_number
233
184
  card_expiry_date
@@ -244,7 +195,6 @@ module ShellCardManagementApIs
244
195
  def initialize(caller = SKIP, is_replacement_chargeable = SKIP,
245
196
  notify_caller = SKIP, notify_caller_on_sync = SKIP,
246
197
  order_card_replacement = SKIP, card_settings = SKIP,
247
- reason_id = SKIP, reason_text = SKIP, target_status = SKIP,
248
198
  account_id = SKIP, account_number = SKIP,
249
199
  card_expiry_date = SKIP, card_id = SKIP, col_co_code = SKIP,
250
200
  col_co_id = SKIP, pan = SKIP, panid = SKIP, payer_id = SKIP,
@@ -258,9 +208,6 @@ module ShellCardManagementApIs
258
208
  @notify_caller_on_sync = notify_caller_on_sync unless notify_caller_on_sync == SKIP
259
209
  @order_card_replacement = order_card_replacement unless order_card_replacement == SKIP
260
210
  @card_settings = card_settings unless card_settings == SKIP
261
- @reason_id = reason_id unless reason_id == SKIP
262
- @reason_text = reason_text unless reason_text == SKIP
263
- @target_status = target_status unless target_status == SKIP
264
211
  @account_id = account_id unless account_id == SKIP
265
212
  @account_number = account_number unless account_number == SKIP
266
213
  @card_expiry_date = card_expiry_date unless card_expiry_date == SKIP
@@ -287,9 +234,6 @@ module ShellCardManagementApIs
287
234
  order_card_replacement =
288
235
  hash.key?('OrderCardReplacement') ? hash['OrderCardReplacement'] : SKIP
289
236
  card_settings = CardSettings.from_hash(hash['CardSettings']) if hash['CardSettings']
290
- reason_id = hash.key?('ReasonId') ? hash['ReasonId'] : SKIP
291
- reason_text = hash.key?('ReasonText') ? hash['ReasonText'] : SKIP
292
- target_status = hash.key?('TargetStatus') ? hash['TargetStatus'] : SKIP
293
237
  account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP
294
238
  account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP
295
239
  card_expiry_date =
@@ -309,9 +253,6 @@ module ShellCardManagementApIs
309
253
  notify_caller_on_sync,
310
254
  order_card_replacement,
311
255
  card_settings,
312
- reason_id,
313
- reason_text,
314
- target_status,
315
256
  account_id,
316
257
  account_number,
317
258
  card_expiry_date,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: card-management-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - developer sdksio
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-20 00:00:00.000000000 Z
11
+ date: 2024-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: apimatic_core_interfaces
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.3.9
33
+ version: 0.3.11
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.3.9
40
+ version: 0.3.11
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: apimatic_faraday_client_adapter
43
43
  requirement: !ruby/object:Gem::Requirement