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.
- checksums.yaml +4 -4
- data/README.md +14 -15
- data/lib/shell_card_management_ap_is/controllers/base_controller.rb +9 -9
- data/lib/shell_card_management_ap_is/controllers/card_controller.rb +383 -378
- data/lib/shell_card_management_ap_is/controllers/customer_controller.rb +234 -225
- data/lib/shell_card_management_ap_is/controllers/o_auth_authorization_controller.rb +9 -9
- data/lib/shell_card_management_ap_is/controllers/restriction_controller.rb +256 -248
- data/lib/shell_card_management_ap_is/exceptions/error_object_exception.rb +15 -15
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_customer_customer403_error_exception.rb +15 -15
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_customer_payers400_error_exception.rb +15 -15
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_customer_payers404_error_exception.rb +15 -15
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser400_error_exception.rb +15 -15
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser401_error_exception.rb +15 -15
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser403_error_exception.rb +15 -15
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser404_error_exception.rb +15 -15
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser500_error_exception.rb +15 -15
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v2_restriction_searchcard401_error_exception.rb +15 -15
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v2_restriction_searchcard500_error_exception.rb +15 -15
- data/lib/shell_card_management_ap_is/exceptions/o_auth_provider_exception.rb +15 -15
- data/lib/shell_card_management_ap_is/models/account_request.rb +11 -11
- data/lib/shell_card_management_ap_is/models/account_response_accounts_items.rb +8 -8
- data/lib/shell_card_management_ap_is/models/account_restriction_request.rb +3 -4
- data/lib/shell_card_management_ap_is/models/audit_request.rb +29 -29
- data/lib/shell_card_management_ap_is/models/audit_response_audits_items.rb +41 -41
- data/lib/shell_card_management_ap_is/models/auto_renew_card_request_auto_renew_cards_items.rb +12 -1
- data/lib/shell_card_management_ap_is/models/auto_renew_card_response_data_items.rb +13 -2
- data/lib/shell_card_management_ap_is/models/bundle_restriction.rb +35 -22
- data/lib/shell_card_management_ap_is/models/bundle_restriction_update.rb +6 -8
- data/lib/shell_card_management_ap_is/models/bundled_restrictions_list.rb +10 -16
- data/lib/shell_card_management_ap_is/models/card.rb +25 -6
- data/lib/shell_card_management_ap_is/models/card_detail.rb +29 -27
- data/lib/shell_card_management_ap_is/models/card_details_response.rb +160 -8
- data/lib/shell_card_management_ap_is/models/card_group_request.rb +3 -3
- data/lib/shell_card_management_ap_is/models/card_settings.rb +10 -10
- data/lib/shell_card_management_ap_is/models/create_bundle_request.rb +2 -3
- data/lib/shell_card_management_ap_is/models/customer_detail_response.rb +18 -18
- data/lib/shell_card_management_ap_is/models/day_time_restriction.rb +2 -2
- data/lib/shell_card_management_ap_is/models/day_time_restrictions.rb +132 -0
- data/lib/shell_card_management_ap_is/models/filters.rb +6 -6
- data/lib/shell_card_management_ap_is/models/filters1.rb +6 -6
- data/lib/shell_card_management_ap_is/models/filters2.rb +9 -3
- data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_customer_payers400_error1.rb +50 -0
- data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_customer_payers404_error1.rb +50 -0
- data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser400_error1.rb +50 -0
- data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser401_error1.rb +50 -0
- data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser404_error1.rb +50 -0
- data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser500_error1.rb +50 -0
- data/lib/shell_card_management_ap_is/models/fleetmanagement_v2_restriction_searchcard401_error1.rb +50 -0
- data/lib/shell_card_management_ap_is/models/fleetmanagement_v2_restriction_searchcard500_error1.rb +50 -0
- data/lib/shell_card_management_ap_is/models/logged_in_user_response.rb +3 -3
- data/lib/shell_card_management_ap_is/models/order_card_enquiry.rb +27 -6
- data/lib/shell_card_management_ap_is/models/order_card_enquiry_req.rb +9 -3
- data/lib/shell_card_management_ap_is/models/payer_details.rb +10 -10
- data/lib/shell_card_management_ap_is/models/payer_request.rb +6 -6
- data/lib/shell_card_management_ap_is/models/pin_advice_types.rb +4 -4
- data/lib/shell_card_management_ap_is/models/pin_reminder_card_details.rb +11 -11
- data/lib/shell_card_management_ap_is/models/purchase_category1_all_of0.rb +8 -8
- data/lib/shell_card_management_ap_is/models/replace_card_settings.rb +10 -10
- data/lib/shell_card_management_ap_is/models/restriction.rb +10 -16
- data/lib/shell_card_management_ap_is/models/restriction_cards_list.rb +21 -17
- data/lib/shell_card_management_ap_is/models/schedule_card_block_cards_items.rb +39 -27
- data/lib/shell_card_management_ap_is/models/search_card.rb +13 -2
- data/lib/shell_card_management_ap_is/models/search_request.rb +6 -6
- data/lib/shell_card_management_ap_is/models/submitted_card.rb +22 -1
- data/lib/shell_card_management_ap_is/models/summary_request.rb +6 -6
- data/lib/shell_card_management_ap_is/models/update_bundle_request.rb +7 -7
- data/lib/shell_card_management_ap_is/models/update_card.rb +11 -1
- data/lib/shell_card_management_ap_is/models/update_card_group_request.rb +3 -3
- data/lib/shell_card_management_ap_is/models/update_card_renewal_address.rb +2 -2
- data/lib/shell_card_management_ap_is/models/update_card_renewal_address2.rb +2 -2
- data/lib/shell_card_management_ap_is/models/update_m_pay_reg_status_request_m_pay_requests_items.rb +1 -1
- data/lib/shell_card_management_ap_is/models/usage_restriction.rb +2 -2
- data/lib/shell_card_management_ap_is/utilities/file_wrapper.rb +9 -9
- data/lib/shell_card_management_ap_is.rb +17 -0
- metadata +17 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5c05f096a109c51ab89c60ca4c2bed2d4afc9e0d00ced3b489c258706440b53
|
4
|
+
data.tar.gz: e2ae507c33be41d818ecebc705d8871b85f387b93759c0273b241ad3b83425f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '084c7f36b7dfbfd41cb9bdf4c7db135766e2f897afe70ab3822ab0d0a0627f83a227c009cb90cccecc147bcfd28d4adfcefd8f4f5f1d71bdb93a8766d2710b58'
|
7
|
+
data.tar.gz: 412a5044dee928b4737c2006417a8e0e42805aba31f7c841fbf3fd94e71af94a9ff0e19324bf6ee7c67a16ea3f3a4ae3228d0127c4ada6a15bcc8191be4089b4
|
data/README.md
CHANGED
@@ -16,20 +16,20 @@ Go to the Shell Developer Portal: [https://developer.shell.com](https://develope
|
|
16
16
|
Install the gem from the command line:
|
17
17
|
|
18
18
|
```ruby
|
19
|
-
gem install card-management-sdk -v 1.
|
19
|
+
gem install card-management-sdk -v 1.2.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.
|
25
|
+
gem 'card-management-sdk', '1.2.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.
|
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).
|
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.
|
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)
|
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.
|
49
|
-
| `bearer_token_credentials` | [`BearerTokenCredentials`](https://www.github.com/sdks-io/card-management-ruby-sdk/tree/1.
|
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 |
|
50
50
|
|
51
51
|
The API client can be initialized as follows:
|
52
52
|
|
@@ -79,19 +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.
|
83
|
-
* [`BearerToken (OAuth 2 Client Credentials Grant)`](https://www.github.com/sdks-io/card-management-ruby-sdk/tree/1.
|
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)
|
84
84
|
|
85
85
|
## List of APIs
|
86
86
|
|
87
|
-
* [
|
88
|
-
* [
|
89
|
-
* [
|
90
|
-
* [Card](https://www.github.com/sdks-io/card-management-ruby-sdk/tree/1.1.0/doc/controllers/card.md)
|
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)
|
91
90
|
|
92
91
|
## Classes Documentation
|
93
92
|
|
94
|
-
* [Utility Classes](https://www.github.com/sdks-io/card-management-ruby-sdk/tree/1.
|
95
|
-
* [HttpResponse](https://www.github.com/sdks-io/card-management-ruby-sdk/tree/1.
|
96
|
-
* [HttpRequest](https://www.github.com/sdks-io/card-management-ruby-sdk/tree/1.
|
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)
|
97
96
|
|
@@ -30,15 +30,15 @@ module ShellCardManagementApIs
|
|
30
30
|
end
|
31
31
|
|
32
32
|
# Creates a new builder for the Api Call instance.
|
33
|
-
# @return [ApiCall] The instance of ApiCall.
|
34
|
-
def new_api_call_builder
|
35
|
-
@api_call.new_builder
|
36
|
-
end
|
37
|
-
|
38
|
-
# Creates a new instance of the request builder.
|
39
|
-
# @param [String] http_method The HTTP method to use in the request.
|
40
|
-
# @param [String] path The endpoint path to use in the request.
|
41
|
-
# @param [String] server The server to extract the base uri for the request.
|
33
|
+
# @return [ApiCall] The instance of ApiCall.
|
34
|
+
def new_api_call_builder
|
35
|
+
@api_call.new_builder
|
36
|
+
end
|
37
|
+
|
38
|
+
# Creates a new instance of the request builder.
|
39
|
+
# @param [String] http_method The HTTP method to use in the request.
|
40
|
+
# @param [String] path The endpoint path to use in the request.
|
41
|
+
# @param [String] server The server to extract the base uri for the request.
|
42
42
|
# @return [RequestBuilder] The instance of RequestBuilder.
|
43
43
|
def new_request_builder(http_method, path, server)
|
44
44
|
RequestBuilder.new
|