Skip to content

Commit 25e60d5

Browse files
committed
April release : New KMS api.
1 parent cc8960d commit 25e60d5

10 files changed

+920
-219
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# CyberSource::CreateSharedSecretKeysVerifiRequest
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**client_reference_information** | [**Kmsv2keyssymClientReferenceInformation**](Kmsv2keyssymClientReferenceInformation.md) | | [optional]
7+
**key_information** | [**Array<Kmsv2keyssymverifiKeyInformation>**](Kmsv2keyssymverifiKeyInformation.md) | | [optional]
8+
9+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# CyberSource::Kmsv2keyssymverifiKeyInformation
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**organization_id** | **String** | Merchant Id |
7+
**reference_number** | **String** | Reference number is a unique identifier provided by the client along with the organization Id. This is an optional field provided solely for the client’s convenience. If client specifies value for this field in the request, it is expected to be available in the response. | [optional]
8+
**digest_algorithm** | **String** | Algorithm for message signature authentication | [optional] [default to "HMACSHA2"]
9+
10+

docs/SymmetricKeyManagementApi.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ All URIs are relative to *https://apitest.cybersource.com*
55
Method | HTTP request | Description
66
------------- | ------------- | -------------
77
[**create_v2_shared_secret_keys**](SymmetricKeyManagementApi.md#create_v2_shared_secret_keys) | **POST** /kms/v2/keys-sym | Create Shared-Secret Keys
8+
[**create_v2_shared_secret_keys_verifi**](SymmetricKeyManagementApi.md#create_v2_shared_secret_keys_verifi) | **POST** /kms/v2/keys-sym/verifi | Create Shared-Secret Keys as per verifi spec
89
[**delete_bulk_symmetric_keys**](SymmetricKeyManagementApi.md#delete_bulk_symmetric_keys) | **POST** /kms/v2/keys-sym/deletes | Delete one or more Symmetric keys
910
[**get_key_details**](SymmetricKeyManagementApi.md#get_key_details) | **GET** /kms/v2/keys-sym/{keyId} | Retrieves shared secret key details
1011

@@ -56,6 +57,56 @@ No authorization required
5657

5758

5859

60+
# **create_v2_shared_secret_keys_verifi**
61+
> KmsV2KeysSymPost201Response create_v2_shared_secret_keys_verifi(v_ic_domain, create_shared_secret_keys_verifi_request)
62+
63+
Create Shared-Secret Keys as per verifi spec
64+
65+
Create one or more Shared-Secret Keys as per Verifi spec with 32 chars, store digest algo during key generation.
66+
67+
### Example
68+
```ruby
69+
# load the gem
70+
require 'cybersource_rest_client'
71+
72+
api_instance = CyberSource::SymmetricKeyManagementApi.new
73+
74+
v_ic_domain = "v_ic_domain_example" # String | domain
75+
76+
create_shared_secret_keys_verifi_request = CyberSource::CreateSharedSecretKeysVerifiRequest.new # CreateSharedSecretKeysVerifiRequest |
77+
78+
79+
begin
80+
#Create Shared-Secret Keys as per verifi spec
81+
result = api_instance.create_v2_shared_secret_keys_verifi(v_ic_domain, create_shared_secret_keys_verifi_request)
82+
p result
83+
rescue CyberSource::ApiError => e
84+
puts "Exception when calling SymmetricKeyManagementApi->create_v2_shared_secret_keys_verifi: #{e}"
85+
end
86+
```
87+
88+
### Parameters
89+
90+
Name | Type | Description | Notes
91+
------------- | ------------- | ------------- | -------------
92+
**v_ic_domain** | **String**| domain |
93+
**create_shared_secret_keys_verifi_request** | [**CreateSharedSecretKeysVerifiRequest**](CreateSharedSecretKeysVerifiRequest.md)| |
94+
95+
### Return type
96+
97+
[**KmsV2KeysSymPost201Response**](KmsV2KeysSymPost201Response.md)
98+
99+
### Authorization
100+
101+
No authorization required
102+
103+
### HTTP request headers
104+
105+
- **Content-Type**: application/json;charset=utf-8
106+
- **Accept**: application/hal+json;charset=utf-8
107+
108+
109+
59110
# **delete_bulk_symmetric_keys**
60111
> KmsV2KeysSymDeletesPost200Response delete_bulk_symmetric_keys(delete_bulk_symmetric_keys_request)
61112

lib/cybersource_rest_client.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
require 'cybersource_rest_client/models/create_report_subscription_request'
5353
require 'cybersource_rest_client/models/create_search_request'
5454
require 'cybersource_rest_client/models/create_shared_secret_keys_request'
55+
require 'cybersource_rest_client/models/create_shared_secret_keys_verifi_request'
5556
require 'cybersource_rest_client/models/delete_bulk_p12_keys_request'
5657
require 'cybersource_rest_client/models/delete_bulk_symmetric_keys_request'
5758
require 'cybersource_rest_client/models/flex_v1_keys_post200_response'
@@ -123,6 +124,7 @@
123124
require 'cybersource_rest_client/models/kmsv2keyssym_client_reference_information'
124125
require 'cybersource_rest_client/models/kmsv2keyssym_key_information'
125126
require 'cybersource_rest_client/models/kmsv2keyssymdeletes_key_information'
127+
require 'cybersource_rest_client/models/kmsv2keyssymverifi_key_information'
126128
require 'cybersource_rest_client/models/mit_reversal_request'
127129
require 'cybersource_rest_client/models/mit_void_request'
128130
require 'cybersource_rest_client/models/oct_create_payment_request'

0 commit comments

Comments
 (0)