Skip to content

Commit 0e4089e

Browse files
authored
Merge pull request #81 from CyberSource/nov-release
Nov release
2 parents 7f7770b + 449ee08 commit 0e4089e

File tree

73 files changed

+4671
-353
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+4671
-353
lines changed

cybersource_rest_client.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ require "cybersource_rest_client/version"
1717

1818
Gem::Specification.new do |s|
1919
s.name = "cybersource_rest_client"
20-
s.version = "0.0.47"
20+
s.version = "0.0.48"
2121
s.platform = Gem::Platform::RUBY
2222
s.authors = ["CyberSource"]
2323
s.email = ["[email protected]"]

docs/AsymmetricKeyManagementApi.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Method | HTTP request | Description
77
[**create_p12_keys**](AsymmetricKeyManagementApi.md#create_p12_keys) | **POST** /kms/v2/keys-asym | Create one or more PKCS12 keys
88
[**delete_bulk_p12_keys**](AsymmetricKeyManagementApi.md#delete_bulk_p12_keys) | **POST** /kms/v2/keys-asym/deletes | Delete one or more PKCS12 keys
99
[**get_p12_key_details**](AsymmetricKeyManagementApi.md#get_p12_key_details) | **GET** /kms/v2/keys-asym/{keyId} | Retrieves PKCS12 key details
10+
[**update_asym_key**](AsymmetricKeyManagementApi.md#update_asym_key) | **PATCH** /kms/v2/keys-asym/{keyId} | Activate or De-activate Asymmetric Key
1011

1112

1213
# **create_p12_keys**
@@ -150,3 +151,53 @@ No authorization required
150151

151152

152153

154+
# **update_asym_key**
155+
> Object update_asym_key(key_id, update_asym_keys_request)
156+
157+
Activate or De-activate Asymmetric Key
158+
159+
Activate or De-activate Asymmetric Key
160+
161+
### Example
162+
```ruby
163+
# load the gem
164+
require 'cybersource_rest_client'
165+
166+
api_instance = CyberSource::AsymmetricKeyManagementApi.new
167+
168+
key_id = "key_id_example" # String | Key ID.
169+
170+
update_asym_keys_request = CyberSource::UpdateAsymKeysRequest.new # UpdateAsymKeysRequest |
171+
172+
173+
begin
174+
#Activate or De-activate Asymmetric Key
175+
result = api_instance.update_asym_key(key_id, update_asym_keys_request)
176+
p result
177+
rescue CyberSource::ApiError => e
178+
puts "Exception when calling AsymmetricKeyManagementApi->update_asym_key: #{e}"
179+
end
180+
```
181+
182+
### Parameters
183+
184+
Name | Type | Description | Notes
185+
------------- | ------------- | ------------- | -------------
186+
**key_id** | **String**| Key ID. |
187+
**update_asym_keys_request** | [**UpdateAsymKeysRequest**](UpdateAsymKeysRequest.md)| |
188+
189+
### Return type
190+
191+
**Object**
192+
193+
### Authorization
194+
195+
No authorization required
196+
197+
### HTTP request headers
198+
199+
- **Content-Type**: application/json;charset=utf-8
200+
- **Accept**: application/hal+json;charset=utf-8
201+
202+
203+

docs/CreateSearchRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
88
**timezone** | **String** | Merchant’s time zone in ISO standard, using the TZ database format. For example: `America/Chicago` | [optional]
99
**query** | **String** | String that contains the filters and variables for which you want to search. For information about supported field-filters and operators, see the [Query Filters]( https://developer.cybersource.com/api/developer-guides/dita-txn-search-details-rest-api-dev-guide-102718/txn-search-intro/txn-filtering.html) section of the Transaction Search Developer Guide. | [optional]
1010
**offset** | **Integer** | Controls the starting point within the collection of results, which defaults to 0. The first item in the collection is retrieved by setting a zero offset. For example, if you have a collection of 15 items to be retrieved from a resource and you specify limit=5, you can retrieve the entire set of results in 3 successive requests by varying the offset value like this: `offset=0` `offset=5` `offset=10` **Note:** If an offset larger than the number of results is provided, this will result in no embedded object being returned. | [optional]
11-
**limit** | **Integer** | Controls the maximum number of items that may be returned for a single request. The default is 20, the maximum is 2000. | [optional]
11+
**limit** | **Integer** | Controls the maximum number of items that may be returned for a single request. The default is 20, the maximum is 2500. | [optional]
1212
**sort** | **String** | A comma separated list of the following form: `submitTimeUtc:desc` | [optional]
1313

1414

docs/InlineResponse200.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# CyberSource::InlineResponse200
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**submit_time_utc** | **String** | Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. | [optional]
7+
**total_count** | **Integer** | Specifies the total number of items found based on the request | [optional]
8+
**offset** | **Integer** | Specifies the record offset from the records are returned part of the response | [optional]
9+
**limit** | **Integer** | Specifies the maximum number of records requested part of the response | [optional]
10+
**sort** | **String** | Specifies a comma separated list of field names based on which the result is sorted. | [optional]
11+
**keys** | [**Array<InlineResponse200Keys>**](InlineResponse200Keys.md) | | [optional]
12+
13+

docs/InlineResponse200Keys.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# CyberSource::InlineResponse200Keys
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**organization_id** | **String** | Merchant Id | [optional]
7+
**merchant_name** | **String** | Merchant Name | [optional]
8+
**key_id** | **String** | Key Id | [optional]
9+
**key_type** | **String** | Key Type | [optional]
10+
**status** | **String** | Status can be active/inactive | [optional]
11+
**expiration_date** | **Date** | Expiry Date. example - 2028-07-15 22:11:56 UTC | [optional]
12+
**date_added** | **Date** | Date Addded. example - 2018-04-25 22:11:56 UTC | [optional]
13+
**added_by** | **String** | Added By | [optional]
14+
**date_modified** | **Date** | Modified Date. | [optional]
15+
**modified_by** | **String** | Modified By | [optional]
16+
**version** | **String** | Version | [optional]
17+
**serial_number** | **String** | Serial Number | [optional]
18+
**issuer_name** | **String** | Issuer Name | [optional]
19+
20+

docs/InlineResponse4003.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**correlation_id** | **String** | | [optional]
7-
**details** | [**Array<InlineResponse4003Details>**](InlineResponse4003Details.md) | | [optional]
8-
**information_link** | **String** | | [optional]
9-
**message** | **String** | |
10-
**reason** | **String** | |
6+
**submit_time_utc** | **String** | Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The `T` separates the date and the time. The `Z` indicates UTC. Returned by Cybersource for all services. | [optional]
7+
**status** | **String** | The status of the submitted transaction. Possible values: - INVALID_REQUEST | [optional]
8+
**reason** | **String** | The reason of the status. Possible values: - MISSING_FIELD - INVALID_DATA | [optional]
9+
**message** | **String** | The detail message related to the status and reason listed above. | [optional]
10+
**details** | [**Array<PtsV2PaymentsPost201ResponseErrorInformationDetails>**](PtsV2PaymentsPost201ResponseErrorInformationDetails.md) | | [optional]
1111

1212

docs/InlineResponse4004.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# CyberSource::InlineResponse4004
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**correlation_id** | **String** | | [optional]
7+
**details** | [**Array<InlineResponse4004Details>**](InlineResponse4004Details.md) | | [optional]
8+
**information_link** | **String** | | [optional]
9+
**message** | **String** | |
10+
**reason** | **String** | |
11+
12+

docs/InlineResponse4003Details.md renamed to docs/InlineResponse4004Details.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# CyberSource::InlineResponse4003Details
1+
# CyberSource::InlineResponse4004Details
22

33
## Properties
44
Name | Type | Description | Notes

docs/InlineResponse500.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# CyberSource::InlineResponse500
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**submit_time_utc** | **String** | Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The `T` separates the date and the time. The `Z` indicates UTC. Returned by Cybersource for all services. | [optional]
7+
**status** | **String** | The status of the submitted request. Possible values: - SERVER_ERROR | [optional]
8+
**reason** | **String** | The reason of the status. Possible values: - SYSTEM_ERROR - SERVER_TIMEOUT - SERVICE_TIMEOUT | [optional]
9+
**message** | **String** | The detail message related to the status and reason listed above. | [optional]
10+
11+

docs/KeymanagementApi.md

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# CyberSource::KeymanagementApi
2+
3+
All URIs are relative to *https://apitest.cybersource.com*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**search_keys**](KeymanagementApi.md#search_keys) | **GET** /kms/v2/keys | Search Keys
8+
9+
10+
# **search_keys**
11+
> InlineResponse200 search_keys(opts)
12+
13+
Search Keys
14+
15+
Search one or more Keys
16+
17+
### Example
18+
```ruby
19+
# load the gem
20+
require 'cybersource_rest_client'
21+
22+
api_instance = CyberSource::KeymanagementApi.new
23+
24+
opts = {
25+
offset: 56, # Integer | This allows you to specify the page offset from the resulting list resultset you want the records to be returned
26+
limit: 56, # Integer | This allows you to specify the total number of records to be returned off the resulting list resultset
27+
sort: "sort_example", # String | This allows you to specify a comma separated list of fields in the order which the resulting list resultset must be sorted.
28+
organization_ids: ["organization_ids_example"], # Array<String> | List of Orgaization Ids to search. The maximum size of the organization Ids list is 1. The maximum length of Organization Id is 30.
29+
key_ids: ["key_ids_example"], # Array<String> | List of Key Ids to search. The maximum size of the Key Ids list is 1
30+
key_types: ["key_types_example"], # Array<String> | Key Type, Possible values - certificate, password, pgp and scmp_api. When Key Type is provided atleast one more filter needs to be provided
31+
expiration_start_date: DateTime.parse("2013-10-20T19:20:30+01:00"), # DateTime | Expiry Filter Start Date. When Expiration Date filter is provided, atleast one more filter needs to be provided
32+
expiration_end_date: DateTime.parse("2013-10-20T19:20:30+01:00") # DateTime | Expiry Filter End Date. When Expiration Date filter is provided, atleast one more filter needs to be provided
33+
}
34+
35+
begin
36+
#Search Keys
37+
result = api_instance.search_keys(opts)
38+
p result
39+
rescue CyberSource::ApiError => e
40+
puts "Exception when calling KeymanagementApi->search_keys: #{e}"
41+
end
42+
```
43+
44+
### Parameters
45+
46+
Name | Type | Description | Notes
47+
------------- | ------------- | ------------- | -------------
48+
**offset** | **Integer**| This allows you to specify the page offset from the resulting list resultset you want the records to be returned | [optional]
49+
**limit** | **Integer**| This allows you to specify the total number of records to be returned off the resulting list resultset | [optional]
50+
**sort** | **String**| This allows you to specify a comma separated list of fields in the order which the resulting list resultset must be sorted. | [optional]
51+
**organization_ids** | [**Array&lt;String&gt;**](String.md)| List of Orgaization Ids to search. The maximum size of the organization Ids list is 1. The maximum length of Organization Id is 30. | [optional]
52+
**key_ids** | [**Array&lt;String&gt;**](String.md)| List of Key Ids to search. The maximum size of the Key Ids list is 1 | [optional]
53+
**key_types** | [**Array&lt;String&gt;**](String.md)| Key Type, Possible values - certificate, password, pgp and scmp_api. When Key Type is provided atleast one more filter needs to be provided | [optional]
54+
**expiration_start_date** | **DateTime**| Expiry Filter Start Date. When Expiration Date filter is provided, atleast one more filter needs to be provided | [optional]
55+
**expiration_end_date** | **DateTime**| Expiry Filter End Date. When Expiration Date filter is provided, atleast one more filter needs to be provided | [optional]
56+
57+
### Return type
58+
59+
[**InlineResponse200**](InlineResponse200.md)
60+
61+
### Authorization
62+
63+
No authorization required
64+
65+
### HTTP request headers
66+
67+
- **Content-Type**: application/json;charset=utf-8
68+
- **Accept**: application/hal+json;charset=utf-8
69+
70+
71+

0 commit comments

Comments
 (0)