Skip to content

Commit 0157f77

Browse files
authored
Merge pull request #14 from CyberSource/mar2019rel
ECheck and Service Fees
2 parents 65b86ec + a30a865 commit 0157f77

File tree

525 files changed

+31227
-4895
lines changed

Some content is hidden

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

525 files changed

+31227
-4895
lines changed
Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,19 @@
11
public
22
class ApiException
33
def apiexception(err,log_Obj)
4-
begin
5-
raise
6-
log_Obj.logger.error(err.message)
7-
if !err.backtrace.to_s.empty?
8-
log_Obj.logger.error(err.backtrace)
9-
end
10-
log_Obj.logger.info('END> =======================================')
11-
puts 'Check log for more details.'
12-
rescue
13-
puts 'Cannot access error details.'
14-
end
4+
log_Obj.logger.error(err.message)
5+
if !err.backtrace.to_s.empty?
6+
log_Obj.logger.error(err.backtrace)
7+
end
8+
log_Obj.logger.info('END> =======================================')
9+
puts 'Check log for more details.'
1510
end
1611
def apiwarning(message,log_Obj)
1712
log_Obj.logger.warn(message)
1813
end
1914
def customerror(message,log_Obj)
20-
begin
21-
raise
22-
log_Obj.logger.error(message)
23-
log_Obj.logger.info('END> =======================================')
24-
puts 'Check log for more details.'
25-
rescue
26-
puts 'Cannot access error details.'
27-
end
15+
log_Obj.logger.error(message)
16+
log_Obj.logger.info('END> =======================================')
17+
puts 'Check log for more details.'
2818
end
2919
end

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.8"
20+
s.version = "0.0.9"
2121
s.platform = Gem::Platform::RUBY
2222
s.authors = ["CyberSource"]
2323
s.email = ["[email protected]"]

docs/CapturePaymentRequest.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
1212
**merchant_information** | [**Ptsv2paymentsidcapturesMerchantInformation**](Ptsv2paymentsidcapturesMerchantInformation.md) | | [optional]
1313
**aggregator_information** | [**Ptsv2paymentsidcapturesAggregatorInformation**](Ptsv2paymentsidcapturesAggregatorInformation.md) | | [optional]
1414
**point_of_sale_information** | [**Ptsv2paymentsidcapturesPointOfSaleInformation**](Ptsv2paymentsidcapturesPointOfSaleInformation.md) | | [optional]
15-
**merchant_defined_information** | [**Array<Ptsv2paymentsMerchantDefinedInformation>**](Ptsv2paymentsMerchantDefinedInformation.md) | Description of this field is not available. | [optional]
15+
**merchant_defined_information** | [**Array<Ptsv2paymentsMerchantDefinedInformation>**](Ptsv2paymentsMerchantDefinedInformation.md) | The description for this field is not available. | [optional]
16+
**installment_information** | [**Ptsv2paymentsidcapturesInstallmentInformation**](Ptsv2paymentsidcapturesInstallmentInformation.md) | | [optional]
1617

1718

docs/ConversionDetailsApi.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# CyberSource::ConversionDetailsApi
2+
3+
All URIs are relative to *https://apitest.cybersource.com*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**get_conversion_detail**](ConversionDetailsApi.md#get_conversion_detail) | **GET** /reporting/v3/conversion-details | Get conversion detail transactions
8+
9+
10+
# **get_conversion_detail**
11+
> ReportingV3ConversionDetailsGet200Response get_conversion_detail(start_time, end_time, opts)
12+
13+
Get conversion detail transactions
14+
15+
Get conversion detail of transactions for a merchant.
16+
17+
### Example
18+
```ruby
19+
# load the gem
20+
require 'cybersource_rest_client'
21+
22+
api_instance = CyberSource::ConversionDetailsApi.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. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX
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. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX
27+
28+
opts = {
29+
organization_id: "organization_id_example" # String | Valid Cybersource Organization Id
30+
}
31+
32+
begin
33+
#Get conversion detail transactions
34+
result = api_instance.get_conversion_detail(start_time, end_time, opts)
35+
p result
36+
rescue CyberSource::ApiError => e
37+
puts "Exception when calling ConversionDetailsApi->get_conversion_detail: #{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. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX |
46+
**end_time** | **DateTime**| Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX |
47+
**organization_id** | **String**| Valid Cybersource Organization Id | [optional]
48+
49+
### Return type
50+
51+
[**ReportingV3ConversionDetailsGet200Response**](ReportingV3ConversionDetailsGet200Response.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
61+
62+
63+

docs/CreateCreditRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ Name | Type | Description | Notes
1212
**merchant_information** | [**Ptsv2paymentsidrefundsMerchantInformation**](Ptsv2paymentsidrefundsMerchantInformation.md) | | [optional]
1313
**aggregator_information** | [**Ptsv2paymentsidcapturesAggregatorInformation**](Ptsv2paymentsidcapturesAggregatorInformation.md) | | [optional]
1414
**point_of_sale_information** | [**Ptsv2creditsPointOfSaleInformation**](Ptsv2creditsPointOfSaleInformation.md) | | [optional]
15-
**merchant_defined_information** | [**Array<Ptsv2paymentsMerchantDefinedInformation>**](Ptsv2paymentsMerchantDefinedInformation.md) | Description of this field is not available. | [optional]
15+
**merchant_defined_information** | [**Array<Ptsv2paymentsMerchantDefinedInformation>**](Ptsv2paymentsMerchantDefinedInformation.md) | The description for this field is not available. | [optional]
1616

1717

docs/CreatePaymentRequest.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**client_reference_information** | [**Ptsv2paymentsClientReferenceInformation**](Ptsv2paymentsClientReferenceInformation.md) | | [optional]
77
**processing_information** | [**Ptsv2paymentsProcessingInformation**](Ptsv2paymentsProcessingInformation.md) | | [optional]
8+
**issuer_information** | [**Ptsv2paymentsIssuerInformation**](Ptsv2paymentsIssuerInformation.md) | | [optional]
89
**payment_information** | [**Ptsv2paymentsPaymentInformation**](Ptsv2paymentsPaymentInformation.md) | | [optional]
910
**order_information** | [**Ptsv2paymentsOrderInformation**](Ptsv2paymentsOrderInformation.md) | | [optional]
1011
**buyer_information** | [**Ptsv2paymentsBuyerInformation**](Ptsv2paymentsBuyerInformation.md) | | [optional]
@@ -14,6 +15,7 @@ Name | Type | Description | Notes
1415
**aggregator_information** | [**Ptsv2paymentsAggregatorInformation**](Ptsv2paymentsAggregatorInformation.md) | | [optional]
1516
**consumer_authentication_information** | [**Ptsv2paymentsConsumerAuthenticationInformation**](Ptsv2paymentsConsumerAuthenticationInformation.md) | | [optional]
1617
**point_of_sale_information** | [**Ptsv2paymentsPointOfSaleInformation**](Ptsv2paymentsPointOfSaleInformation.md) | | [optional]
17-
**merchant_defined_information** | [**Array<Ptsv2paymentsMerchantDefinedInformation>**](Ptsv2paymentsMerchantDefinedInformation.md) | Description of this field is not available. | [optional]
18+
**merchant_defined_information** | [**Array<Ptsv2paymentsMerchantDefinedInformation>**](Ptsv2paymentsMerchantDefinedInformation.md) | The description for this field is not available. | [optional]
19+
**installment_information** | [**Ptsv2paymentsInstallmentInformation**](Ptsv2paymentsInstallmentInformation.md) | | [optional]
1820

1921

docs/InlineResponse400.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**type** | **String** | | [optional]
7-
**message** | **String** | The detailed message related to the type stated above. | [optional]
8-
**details** | [**Tmsv1instrumentidentifiersDetails**](Tmsv1instrumentidentifiersDetails.md) | | [optional]
6+
**code** | **String** | Error code |
7+
**message** | **String** | Error message |
8+
**localization_key** | **String** | Localization Key Name | [optional]
9+
**correlation_id** | **String** | Correlation Id | [optional]
10+
**detail** | **String** | Error Detail | [optional]
11+
**fields** | [**Array<InlineResponse400Fields>**](InlineResponse400Fields.md) | Error fields List | [optional]
912

1013

docs/InlineResponse4001.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# CyberSource::InlineResponse4001
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**type** | **String** | | [optional]
7+
**message** | **String** | The detailed message related to the type stated above. | [optional]
8+
**details** | [**Tmsv1instrumentidentifiersDetails**](Tmsv1instrumentidentifiersDetails.md) | | [optional]
9+
10+

docs/InlineResponse400Fields.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# CyberSource::InlineResponse400Fields
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**path** | **String** | Path of the failed property | [optional]
7+
**message** | **String** | Error description about validation failed field | [optional]
8+
**localization_key** | **String** | Localized Key Name | [optional]
9+
10+

docs/NetFundingsApi.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# CyberSource::NetFundingsApi
2+
3+
All URIs are relative to *https://apitest.cybersource.com*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**get_net_funding_info**](NetFundingsApi.md#get_net_funding_info) | **GET** /reporting/v3/net-fundings | Get Netfunding information for an account or a merchant
8+
9+
10+
# **get_net_funding_info**
11+
> ReportingV3NetFundingsGet200Response get_net_funding_info(start_time, end_time, opts)
12+
13+
Get Netfunding information for an account or a merchant
14+
15+
Get Netfunding information 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::NetFundingsApi.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. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX
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. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX
27+
28+
opts = {
29+
organization_id: "organization_id_example", # String | Valid Cybersource Organization Id
30+
group_name: "group_name_example" # String | Valid CyberSource Group Name.
31+
}
32+
33+
begin
34+
#Get Netfunding information for an account or a merchant
35+
result = api_instance.get_net_funding_info(start_time, end_time, opts)
36+
p result
37+
rescue CyberSource::ApiError => e
38+
puts "Exception when calling NetFundingsApi->get_net_funding_info: #{e}"
39+
end
40+
```
41+
42+
### Parameters
43+
44+
Name | Type | Description | Notes
45+
------------- | ------------- | ------------- | -------------
46+
**start_time** | **DateTime**| Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX |
47+
**end_time** | **DateTime**| Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX |
48+
**organization_id** | **String**| Valid Cybersource Organization Id | [optional]
49+
**group_name** | **String**| Valid CyberSource Group Name. | [optional]
50+
51+
### Return type
52+
53+
[**ReportingV3NetFundingsGet200Response**](ReportingV3NetFundingsGet200Response.md)
54+
55+
### Authorization
56+
57+
No authorization required
58+
59+
### HTTP request headers
60+
61+
- **Content-Type**: application/json;charset=utf-8
62+
- **Accept**: application/hal+json
63+
64+
65+

0 commit comments

Comments
 (0)