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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6ff2ef9f926fbb6afc25ac437c81645c10db4f5427963089c0fdf4e0ad1dc98c
4
- data.tar.gz: 2a2e662890f9e225bfda1cb87d787cd4ca67dc892b365893a0891e7913d37495
3
+ metadata.gz: f5c05f096a109c51ab89c60ca4c2bed2d4afc9e0d00ced3b489c258706440b53
4
+ data.tar.gz: e2ae507c33be41d818ecebc705d8871b85f387b93759c0273b241ad3b83425f1
5
5
  SHA512:
6
- metadata.gz: b93026a7850c80e1320c7f5064efd150a8a61061c46f06297793ffe156e9a028a02a0d325993a3cf4eb54e915e5e8e26a7871eb30710d28b1ea15bacdc7afe2a
7
- data.tar.gz: 7c5abfc733b458ba4f32c49860553859be7a95e4dfdff5b483ec5c189427507eb55dd53371494032e62a18305f144fc2864c682e55e3c7466bd119e73c9aea34
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.1.0
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.1.0'
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.1.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.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.1.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.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.1.0/doc/$a/https://www.github.com/sdks-io/card-management-ruby-sdk/tree/1.1.0/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.1.0/doc/$a/https://www.github.com/sdks-io/card-management-ruby-sdk/tree/1.1.0/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.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.1.0/doc/$a/https://www.github.com/sdks-io/card-management-ruby-sdk/tree/1.1.0/basic-authentication.md)
83
- * [`BearerToken (OAuth 2 Client Credentials Grant)`](https://www.github.com/sdks-io/card-management-ruby-sdk/tree/1.1.0/doc/$a/https://www.github.com/sdks-io/card-management-ruby-sdk/tree/1.1.0/oauth-2-client-credentials-grant.md)
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
- * [O Auth Authorization](https://www.github.com/sdks-io/card-management-ruby-sdk/tree/1.1.0/doc/controllers/o-auth-authorization.md)
88
- * [Customer](https://www.github.com/sdks-io/card-management-ruby-sdk/tree/1.1.0/doc/controllers/customer.md)
89
- * [Restriction](https://www.github.com/sdks-io/card-management-ruby-sdk/tree/1.1.0/doc/controllers/restriction.md)
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.1.0/doc/utility-classes.md)
95
- * [HttpResponse](https://www.github.com/sdks-io/card-management-ruby-sdk/tree/1.1.0/doc/http-response.md)
96
- * [HttpRequest](https://www.github.com/sdks-io/card-management-ruby-sdk/tree/1.1.0/doc/http-request.md)
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