Skip to content

Commit 6d9d3f7

Browse files
committed
+ Loosened JWT dependency
+ October 2021 SDK Changes
1 parent ead3603 commit 6d9d3f7

File tree

72 files changed

+6244
-100
lines changed

Some content is hidden

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

72 files changed

+6244
-100
lines changed

cybersource_rest_client.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Gem::Specification.new do |s|
3232
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
3333
s.add_runtime_dependency 'activesupport', '~> 6.0', '>= 6.0.3.2'
3434
s.add_runtime_dependency 'interface','~> 1.0', '>= 1.0.4'
35-
s.add_runtime_dependency 'jwt', '~> 2.1.0'
35+
s.add_runtime_dependency 'jwt', '~> 2.1'
3636
s.add_runtime_dependency 'addressable', '~> 2.3', '>= 2.3.0'
3737

3838
s.add_development_dependency 'simplecov'

docs/ChargebackDetailsApi.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# CyberSource::ChargebackDetailsApi
2+
3+
All URIs are relative to *https://apitest.cybersource.com*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**get_chargeback_details**](ChargebackDetailsApi.md#get_chargeback_details) | **GET** /reporting/v3/chargeback-details | Get Chargeback Details
8+
9+
10+
# **get_chargeback_details**
11+
> ReportingV3ChargebackDetailsGet200Response get_chargeback_details(start_time, end_time, opts)
12+
13+
Get Chargeback Details
14+
15+
Chargeback Detail Report Description
16+
17+
### Example
18+
```ruby
19+
# load the gem
20+
require 'cybersource_rest_client'
21+
22+
api_instance = CyberSource::ChargebackDetailsApi.new
23+
24+
start_time = DateTime.parse("2013-10-20T19:20:30+01:00") # DateTime | Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)
25+
26+
end_time = DateTime.parse("2013-10-20T19:20:30+01:00") # DateTime | Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)
27+
28+
opts = {
29+
organization_id: "organization_id_example" # String | Valid Organization Id
30+
}
31+
32+
begin
33+
#Get Chargeback Details
34+
result = api_instance.get_chargeback_details(start_time, end_time, opts)
35+
p result
36+
rescue CyberSource::ApiError => e
37+
puts "Exception when calling ChargebackDetailsApi->get_chargeback_details: #{e}"
38+
end
39+
```
40+
41+
### Parameters
42+
43+
Name | Type | Description | Notes
44+
------------- | ------------- | ------------- | -------------
45+
**start_time** | **DateTime**| Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) |
46+
**end_time** | **DateTime**| Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) |
47+
**organization_id** | **String**| Valid Organization Id | [optional]
48+
49+
### Return type
50+
51+
[**ReportingV3ChargebackDetailsGet200Response**](ReportingV3ChargebackDetailsGet200Response.md)
52+
53+
### Authorization
54+
55+
No authorization required
56+
57+
### HTTP request headers
58+
59+
- **Content-Type**: application/json;charset=utf-8
60+
- **Accept**: application/hal+json, application/xml
61+
62+
63+

docs/ChargebackSummariesApi.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# CyberSource::ChargebackSummariesApi
2+
3+
All URIs are relative to *https://apitest.cybersource.com*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**get_chargeback_summaries**](ChargebackSummariesApi.md#get_chargeback_summaries) | **GET** /reporting/v3/chargeback-summaries | Get Chargeback Summaries
8+
9+
10+
# **get_chargeback_summaries**
11+
> ReportingV3ChargebackSummariesGet200Response get_chargeback_summaries(start_time, end_time, opts)
12+
13+
Get Chargeback Summaries
14+
15+
Chargeback Summary Report Description
16+
17+
### Example
18+
```ruby
19+
# load the gem
20+
require 'cybersource_rest_client'
21+
22+
api_instance = CyberSource::ChargebackSummariesApi.new
23+
24+
start_time = DateTime.parse("2013-10-20T19:20:30+01:00") # DateTime | Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)
25+
26+
end_time = DateTime.parse("2013-10-20T19:20:30+01:00") # DateTime | Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)
27+
28+
opts = {
29+
organization_id: "organization_id_example" # String | Valid Organization Id
30+
}
31+
32+
begin
33+
#Get Chargeback Summaries
34+
result = api_instance.get_chargeback_summaries(start_time, end_time, opts)
35+
p result
36+
rescue CyberSource::ApiError => e
37+
puts "Exception when calling ChargebackSummariesApi->get_chargeback_summaries: #{e}"
38+
end
39+
```
40+
41+
### Parameters
42+
43+
Name | Type | Description | Notes
44+
------------- | ------------- | ------------- | -------------
45+
**start_time** | **DateTime**| Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) |
46+
**end_time** | **DateTime**| Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) |
47+
**organization_id** | **String**| Valid Organization Id | [optional]
48+
49+
### Return type
50+
51+
[**ReportingV3ChargebackSummariesGet200Response**](ReportingV3ChargebackSummariesGet200Response.md)
52+
53+
### Authorization
54+
55+
No authorization required
56+
57+
### HTTP request headers
58+
59+
- **Content-Type**: application/json;charset=utf-8
60+
- **Accept**: application/hal+json, application/xml
61+
62+
63+

docs/ConversionDetailsApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ start_time = DateTime.parse("2013-10-20T19:20:30+01:00") # DateTime | Valid repo
2626
end_time = DateTime.parse("2013-10-20T19:20:30+01:00") # DateTime | Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)
2727

2828
opts = {
29-
organization_id: "organization_id_example" # String | Valid Cybersource Organization Id
29+
organization_id: "organization_id_example" # String | Valid Organization Id
3030
}
3131

3232
begin
@@ -44,7 +44,7 @@ Name | Type | Description | Notes
4444
------------- | ------------- | ------------- | -------------
4545
**start_time** | **DateTime**| Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) |
4646
**end_time** | **DateTime**| Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) |
47-
**organization_id** | **String**| Valid Cybersource Organization Id | [optional]
47+
**organization_id** | **String**| Valid Organization Id | [optional]
4848

4949
### Return type
5050

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# CyberSource::InterchangeClearingLevelDetailsApi
2+
3+
All URIs are relative to *https://apitest.cybersource.com*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**get_interchange_clearing_level_details**](InterchangeClearingLevelDetailsApi.md#get_interchange_clearing_level_details) | **GET** /reporting/v3/interchange-clearing-level-details | Interchange Clearing Level data for an account or a merchant
8+
9+
10+
# **get_interchange_clearing_level_details**
11+
> ReportingV3InterchangeClearingLevelDetailsGet200Response get_interchange_clearing_level_details(start_time, end_time, opts)
12+
13+
Interchange Clearing Level data for an account or a merchant
14+
15+
Interchange Clearing Level data for an account or a merchant
16+
17+
### Example
18+
```ruby
19+
# load the gem
20+
require 'cybersource_rest_client'
21+
22+
api_instance = CyberSource::InterchangeClearingLevelDetailsApi.new
23+
24+
start_time = DateTime.parse("2013-10-20T19:20:30+01:00") # DateTime | Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)
25+
26+
end_time = DateTime.parse("2013-10-20T19:20:30+01:00") # DateTime | Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)
27+
28+
opts = {
29+
organization_id: "organization_id_example" # String | Valid Organization Id
30+
}
31+
32+
begin
33+
#Interchange Clearing Level data for an account or a merchant
34+
result = api_instance.get_interchange_clearing_level_details(start_time, end_time, opts)
35+
p result
36+
rescue CyberSource::ApiError => e
37+
puts "Exception when calling InterchangeClearingLevelDetailsApi->get_interchange_clearing_level_details: #{e}"
38+
end
39+
```
40+
41+
### Parameters
42+
43+
Name | Type | Description | Notes
44+
------------- | ------------- | ------------- | -------------
45+
**start_time** | **DateTime**| Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) |
46+
**end_time** | **DateTime**| Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) |
47+
**organization_id** | **String**| Valid Organization Id | [optional]
48+
49+
### Return type
50+
51+
[**ReportingV3InterchangeClearingLevelDetailsGet200Response**](ReportingV3InterchangeClearingLevelDetailsGet200Response.md)
52+
53+
### Authorization
54+
55+
No authorization required
56+
57+
### HTTP request headers
58+
59+
- **Content-Type**: application/json;charset=utf-8
60+
- **Accept**: application/hal+json, application/xml
61+
62+
63+

docs/NetFundingsApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ start_time = DateTime.parse("2013-10-20T19:20:30+01:00") # DateTime | Valid repo
2626
end_time = DateTime.parse("2013-10-20T19:20:30+01:00") # DateTime | Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)
2727

2828
opts = {
29-
organization_id: "organization_id_example", # String | Valid Cybersource Organization Id
29+
organization_id: "organization_id_example", # String | Valid Organization Id
3030
group_name: "group_name_example" # String | Valid CyberSource Group Name.
3131
}
3232

@@ -45,7 +45,7 @@ Name | Type | Description | Notes
4545
------------- | ------------- | ------------- | -------------
4646
**start_time** | **DateTime**| Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) |
4747
**end_time** | **DateTime**| Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) |
48-
**organization_id** | **String**| Valid Cybersource Organization Id | [optional]
48+
**organization_id** | **String**| Valid Organization Id | [optional]
4949
**group_name** | **String**| Valid CyberSource Group Name. | [optional]
5050

5151
### Return type

docs/PaymentBatchSummariesApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ start_time = DateTime.parse("2013-10-20T19:20:30+01:00") # DateTime | Valid repo
2626
end_time = DateTime.parse("2013-10-20T19:20:30+01:00") # DateTime | Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)
2727

2828
opts = {
29-
organization_id: "organization_id_example", # String | Valid Cybersource Organization Id
29+
organization_id: "organization_id_example", # String | Valid Organization Id
3030
roll_up: "roll_up_example", # String | Conditional - RollUp for data for day/week/month. Required while getting breakdown data for a Merchant
3131
breakdown: "breakdown_example", # String | Conditional - Breakdown on account_rollup/all_merchant/selected_merchant. Required while getting breakdown data for a Merchant.
3232
start_day_of_week: 56 # Integer | Optional - Start day of week to breakdown data for weeks in a month
@@ -47,7 +47,7 @@ Name | Type | Description | Notes
4747
------------- | ------------- | ------------- | -------------
4848
**start_time** | **DateTime**| Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) |
4949
**end_time** | **DateTime**| Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) |
50-
**organization_id** | **String**| Valid Cybersource Organization Id | [optional]
50+
**organization_id** | **String**| Valid Organization Id | [optional]
5151
**roll_up** | **String**| Conditional - RollUp for data for day/week/month. Required while getting breakdown data for a Merchant | [optional]
5252
**breakdown** | **String**| Conditional - Breakdown on account_rollup/all_merchant/selected_merchant. Required while getting breakdown data for a Merchant. | [optional]
5353
**start_day_of_week** | **Integer**| Optional - Start day of week to breakdown data for weeks in a month | [optional]

docs/Ptsv2paymentsClientReferenceInformation.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**code** | **String** | Merchant-generated order reference or tracking number. It is recommended that you send a unique value for each transaction so that you can perform meaningful searches for the transaction. #### Used by **Authorization** Required field. #### PIN Debit Requests for PIN debit reversals need to use the same merchant reference number that was used in the transaction that is being reversed. Required field for all PIN Debit requests (purchase, credit, and reversal). #### FDC Nashville Global Certain circumstances can cause the processor to truncate this value to 15 or 17 characters for Level II and Level III processing, which can cause a discrepancy between the value you submit and the value included in some processor reports. | [optional]
7+
**paused_request_id** | **String** | Used to resume a transaction that was paused for an order modification rule to allow for payer authentication to complete. To resume and continue with the authorization/decision service flow, call the services and include the request id from the prior decision call. | [optional]
78
**transaction_id** | **String** | Identifier that you assign to the transaction. Normally generated by a client server to identify a unique API request. **Note** Use this field only if you want to support merchant-initiated reversal and void operations. #### Used by **Authorization, Authorization Reversal, Capture, Credit, and Void** Optional field. #### PIN Debit For a PIN debit reversal, your request must include a request ID or a merchant transaction identifier. Optional field for PIN debit purchase or credit requests. | [optional]
89
**comments** | **String** | Comments | [optional]
910
**partner** | [**Ptsv2paymentsClientReferenceInformationPartner**](Ptsv2paymentsClientReferenceInformationPartner.md) | | [optional]

docs/PurchaseAndRefundDetailsApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ start_time = DateTime.parse("2013-10-20T19:20:30+01:00") # DateTime | Valid repo
2626
end_time = DateTime.parse("2013-10-20T19:20:30+01:00") # DateTime | Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)
2727

2828
opts = {
29-
organization_id: "organization_id_example", # String | Valid Cybersource Organization Id
29+
organization_id: "organization_id_example", # String | Valid Organization Id
3030
payment_subtype: "ALL", # String | Payment Subtypes. - **ALL**: All Payment Subtypes - **VI** : Visa - **MC** : Master Card - **AX** : American Express - **DI** : Discover - **DP** : Pinless Debit
3131
view_by: "requestDate", # String | View results by Request Date or Submission Date. - **requestDate** : Request Date - **submissionDate**: Submission Date
3232
group_name: "group_name_example", # String | Valid CyberSource Group Name.User can define groups using CBAPI and Group Management Module in EBC2. Groups are collection of organizationIds
@@ -49,7 +49,7 @@ Name | Type | Description | Notes
4949
------------- | ------------- | ------------- | -------------
5050
**start_time** | **DateTime**| Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) |
5151
**end_time** | **DateTime**| Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) |
52-
**organization_id** | **String**| Valid Cybersource Organization Id | [optional]
52+
**organization_id** | **String**| Valid Organization Id | [optional]
5353
**payment_subtype** | **String**| Payment Subtypes. - **ALL**: All Payment Subtypes - **VI** : Visa - **MC** : Master Card - **AX** : American Express - **DI** : Discover - **DP** : Pinless Debit | [optional] [default to ALL]
5454
**view_by** | **String**| View results by Request Date or Submission Date. - **requestDate** : Request Date - **submissionDate**: Submission Date | [optional] [default to requestDate]
5555
**group_name** | **String**| Valid CyberSource Group Name.User can define groups using CBAPI and Group Management Module in EBC2. Groups are collection of organizationIds | [optional]

0 commit comments

Comments
 (0)