Skip to content

Commit 4efe0b0

Browse files
authored
Merge pull request #84 from CyberSource/feature/mar-rel-updates
Feature/mar rel updates
2 parents 458946d + e9b69cd commit 4efe0b0

File tree

635 files changed

+44360
-10669
lines changed

Some content is hidden

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

635 files changed

+44360
-10669
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.49"
20+
s.version = "0.0.50"
2121
s.platform = Gem::Platform::RUBY
2222
s.authors = ["CyberSource"]
2323
s.email = ["[email protected]"]
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# CyberSource::Accountupdaterv1batchesIncluded
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**tokens** | [**Array<Accountupdaterv1batchesIncludedTokens>**](Accountupdaterv1batchesIncludedTokens.md) | | [optional]
7+
8+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# CyberSource::Accountupdaterv1batchesIncludedTokens
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**id** | **String** | |
7+
**expiration_month** | **String** | | [optional]
8+
**expiration_year** | **String** | | [optional]
9+
10+

docs/BatchesApi.md

Lines changed: 207 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,207 @@
1+
# CyberSource::BatchesApi
2+
3+
All URIs are relative to *https://apitest.cybersource.com*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**get_batch_report**](BatchesApi.md#get_batch_report) | **GET** /accountupdater/v1/batches/{batchId}/report | Retrieve a Batch Report
8+
[**get_batch_status**](BatchesApi.md#get_batch_status) | **GET** /accountupdater/v1/batches/{batchId}/status | Retrieve a Batch Status
9+
[**get_batches_list**](BatchesApi.md#get_batches_list) | **GET** /accountupdater/v1/batches | List Batches
10+
[**post_batch**](BatchesApi.md#post_batch) | **POST** /accountupdater/v1/batches | Create a Batch
11+
12+
13+
# **get_batch_report**
14+
> InlineResponse20014 get_batch_report(batch_id)
15+
16+
Retrieve a Batch Report
17+
18+
**Get Batch Report**<br>This resource accepts a batch id and returns: - The batch status. - The total number of accepted, rejected, updated records. - The total number of card association responses. - The billable quantities of: - New Account Numbers (NAN) - New Expiry Dates (NED) - Account Closures (ACL) - Contact Card Holders (CCH) - Source record information including token ids, masked card number, expiration dates & card type. - Response record information including response code, reason, token ids, masked card number, expiration dates & card type.
19+
20+
### Example
21+
```ruby
22+
# load the gem
23+
require 'cybersource_rest_client'
24+
25+
api_instance = CyberSource::BatchesApi.new
26+
27+
batch_id = "batch_id_example" # String | Unique identification number assigned to the submitted request.
28+
29+
30+
begin
31+
#Retrieve a Batch Report
32+
result = api_instance.get_batch_report(batch_id)
33+
p result
34+
rescue CyberSource::ApiError => e
35+
puts "Exception when calling BatchesApi->get_batch_report: #{e}"
36+
end
37+
```
38+
39+
### Parameters
40+
41+
Name | Type | Description | Notes
42+
------------- | ------------- | ------------- | -------------
43+
**batch_id** | **String**| Unique identification number assigned to the submitted request. |
44+
45+
### Return type
46+
47+
[**InlineResponse20014**](InlineResponse20014.md)
48+
49+
### Authorization
50+
51+
No authorization required
52+
53+
### HTTP request headers
54+
55+
- **Content-Type**: application/json;charset=utf-8
56+
- **Accept**: application/json;charset=utf-8
57+
58+
59+
60+
# **get_batch_status**
61+
> InlineResponse20013 get_batch_status(batch_id)
62+
63+
Retrieve a Batch Status
64+
65+
**Get Batch Status**<br>This resource accepts a batch id and returns: - The batch status. - The total number of accepted, rejected, updated records. - The total number of card association responses. - The billable quantities of: - New Account Numbers (NAN) - New Expiry Dates (NED) - Account Closures (ACL) - Contact Card Holders (CCH)
66+
67+
### Example
68+
```ruby
69+
# load the gem
70+
require 'cybersource_rest_client'
71+
72+
api_instance = CyberSource::BatchesApi.new
73+
74+
batch_id = "batch_id_example" # String | Unique identification number assigned to the submitted request.
75+
76+
77+
begin
78+
#Retrieve a Batch Status
79+
result = api_instance.get_batch_status(batch_id)
80+
p result
81+
rescue CyberSource::ApiError => e
82+
puts "Exception when calling BatchesApi->get_batch_status: #{e}"
83+
end
84+
```
85+
86+
### Parameters
87+
88+
Name | Type | Description | Notes
89+
------------- | ------------- | ------------- | -------------
90+
**batch_id** | **String**| Unique identification number assigned to the submitted request. |
91+
92+
### Return type
93+
94+
[**InlineResponse20013**](InlineResponse20013.md)
95+
96+
### Authorization
97+
98+
No authorization required
99+
100+
### HTTP request headers
101+
102+
- **Content-Type**: application/json;charset=utf-8
103+
- **Accept**: application/json;charset=utf-8
104+
105+
106+
107+
# **get_batches_list**
108+
> InlineResponse20012 get_batches_list(opts)
109+
110+
List Batches
111+
112+
**List Batches**<br>This resource accepts a optional date range, record offset and limit, returning a paginated response of batches containing: - The batch id. - The batch status. - The batch created / modified dates. - The total number of accepted, rejected, updated records. - The total number of card association responses.
113+
114+
### Example
115+
```ruby
116+
# load the gem
117+
require 'cybersource_rest_client'
118+
119+
api_instance = CyberSource::BatchesApi.new
120+
121+
opts = {
122+
offset: 0, # Integer | Starting record in zero-based dataset that should be returned as the first object in the array.
123+
limit: 20, # Integer | The maximum number that can be returned in the array starting from the offset record in zero-based dataset.
124+
from_date: "from_date_example", # String | ISO-8601 format: yyyyMMddTHHmmssZ
125+
to_date: "to_date_example" # String | ISO-8601 format: yyyyMMddTHHmmssZ
126+
}
127+
128+
begin
129+
#List Batches
130+
result = api_instance.get_batches_list(opts)
131+
p result
132+
rescue CyberSource::ApiError => e
133+
puts "Exception when calling BatchesApi->get_batches_list: #{e}"
134+
end
135+
```
136+
137+
### Parameters
138+
139+
Name | Type | Description | Notes
140+
------------- | ------------- | ------------- | -------------
141+
**offset** | **Integer**| Starting record in zero-based dataset that should be returned as the first object in the array. | [optional] [default to 0]
142+
**limit** | **Integer**| The maximum number that can be returned in the array starting from the offset record in zero-based dataset. | [optional] [default to 20]
143+
**from_date** | **String**| ISO-8601 format: yyyyMMddTHHmmssZ | [optional]
144+
**to_date** | **String**| ISO-8601 format: yyyyMMddTHHmmssZ | [optional]
145+
146+
### Return type
147+
148+
[**InlineResponse20012**](InlineResponse20012.md)
149+
150+
### Authorization
151+
152+
No authorization required
153+
154+
### HTTP request headers
155+
156+
- **Content-Type**: application/json;charset=utf-8
157+
- **Accept**: application/json;charset=utf-8
158+
159+
160+
161+
# **post_batch**
162+
> InlineResponse2022 post_batch(body)
163+
164+
Create a Batch
165+
166+
**Create a Batch**<br>This resource accepts TMS tokens ids of a Customer, Payment Instrument or Instrument Identifier. <br> The card numbers for the supplied tokens ids are then sent to the relevant card associations to check for updates.<br>The following type of batches can be submitted: - **oneOff** batch containing tokens id for Visa or MasterCard card numbers. - **amexRegistration** batch containing tokens id for Amex card numbers. A batch id will be returned on a successful response which can be used to get the batch status and the batch report.
167+
168+
### Example
169+
```ruby
170+
# load the gem
171+
require 'cybersource_rest_client'
172+
173+
api_instance = CyberSource::BatchesApi.new
174+
175+
body = CyberSource::Body.new # Body |
176+
177+
178+
begin
179+
#Create a Batch
180+
result = api_instance.post_batch(body)
181+
p result
182+
rescue CyberSource::ApiError => e
183+
puts "Exception when calling BatchesApi->post_batch: #{e}"
184+
end
185+
```
186+
187+
### Parameters
188+
189+
Name | Type | Description | Notes
190+
------------- | ------------- | ------------- | -------------
191+
**body** | [**Body**](Body.md)| |
192+
193+
### Return type
194+
195+
[**InlineResponse2022**](InlineResponse2022.md)
196+
197+
### Authorization
198+
199+
No authorization required
200+
201+
### HTTP request headers
202+
203+
- **Content-Type**: application/json;charset=utf-8
204+
- **Accept**: application/json;charset=utf-8
205+
206+
207+

docs/Body.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**requestor** | **String** | Identifies the service requesting parsing |
7-
**parsed_tag_limit** | **Integer** | Number of tags to parse for each EMV tag string provided. | [optional]
8-
**emv_details_list** | [**Array&lt;Tssv2transactionsemvTagDetailsEmvDetailsList&gt;**](Tssv2transactionsemvTagDetailsEmvDetailsList.md) | An array of objects, each containing a requestId and the corresponding emvRequestCombinedTags |
6+
**type** | **String** | Valid Values: * oneOff * amexRegistration | [optional] [default to &quot;oneOff&quot;]
7+
**included** | [**Accountupdaterv1batchesIncluded**](Accountupdaterv1batchesIncluded.md) | | [optional]
8+
**merchant_reference** | **String** | Reference used by merchant to identify batch. | [optional]
9+
**notification_email** | **String** | Email used to notify the batch status. |
910

1011

docs/CreatePlanRequest.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# CyberSource::CreatePlanRequest
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**client_reference_information** | [**Rbsv1plansClientReferenceInformation**](Rbsv1plansClientReferenceInformation.md) | | [optional]
7+
**plan_information** | [**Rbsv1plansPlanInformation**](Rbsv1plansPlanInformation.md) | | [optional]
8+
**order_information** | [**Rbsv1plansOrderInformation**](Rbsv1plansOrderInformation.md) | | [optional]
9+
10+

docs/CreateSubscriptionRequest.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# CyberSource::CreateSubscriptionRequest
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**client_reference_information** | [**Rbsv1subscriptionsClientReferenceInformation**](Rbsv1subscriptionsClientReferenceInformation.md) | | [optional]
7+
**processing_information** | [**Rbsv1subscriptionsProcessingInformation**](Rbsv1subscriptionsProcessingInformation.md) | | [optional]
8+
**plan_information** | [**Rbsv1subscriptionsPlanInformation**](Rbsv1subscriptionsPlanInformation.md) | | [optional]
9+
**subscription_information** | [**Rbsv1subscriptionsSubscriptionInformation**](Rbsv1subscriptionsSubscriptionInformation.md) | | [optional]
10+
**payment_information** | [**Rbsv1subscriptionsPaymentInformation**](Rbsv1subscriptionsPaymentInformation.md) | | [optional]
11+
**order_information** | [**InlineResponse200OrderInformation**](InlineResponse200OrderInformation.md) | | [optional]
12+
13+

0 commit comments

Comments
 (0)