Skip to content

Commit 7d623f9

Browse files
authored
Merge pull request #19 from CyberSource/mar2019rel
New version of the SDK
2 parents 65a148a + 5ddc72d commit 7d623f9

File tree

521 files changed

+41869
-6313
lines changed

Some content is hidden

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

521 files changed

+41869
-6313
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ override the new secure-http default setting)*.
3131
{
3232
"require": {
3333
"php": ">=5.6",
34-
"cybersource/rest-client-php": "0.0.3"
34+
"cybersource/rest-client-php": "0.0.4"
3535
}
3636
}
3737
```

autoload.php

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<?php
2+
3+
/**
4+
* CyberSource Flex API
5+
*
6+
* Simple PAN tokenization service
7+
*
8+
* OpenAPI spec version: 0.0.1
9+
*
10+
* Generated by: https://github.com/swagger-api/swagger-codegen.git
11+
*
12+
*/
13+
14+
/**
15+
* An example of a project-specific implementation.
16+
*
17+
* After registering this autoload function with SPL, the following line
18+
* would cause the function to attempt to load the \CyberSource\Baz\Qux class
19+
* from /path/to/project/lib/Baz/Qux.php:
20+
*
21+
* new \CyberSource\Baz\Qux;
22+
*
23+
* @param string $class The fully-qualified class name.
24+
*
25+
* @return void
26+
*/
27+
spl_autoload_register(function ($class) {
28+
29+
// project-specific namespace prefix
30+
$prefix = 'CyberSource\\';
31+
32+
// base directory for the namespace prefix
33+
$base_dir = __DIR__ . '/lib/';
34+
35+
// does the class use the namespace prefix?
36+
$len = strlen($prefix);
37+
if (strncmp($prefix, $class, $len) !== 0) {
38+
// no, move to the next registered autoloader
39+
return;
40+
}
41+
42+
// get the relative class name
43+
$relative_class = substr($class, $len);
44+
45+
// replace the namespace prefix with the base directory, replace namespace
46+
// separators with directory separators in the relative class name, append
47+
// with .php
48+
$file = $base_dir . str_replace('\\', '/', $relative_class) . '.php';
49+
50+
// if the file exists, require it
51+
if (file_exists($file)) {
52+
require $file;
53+
}
54+
});

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cybersource/rest-client-php",
3-
"version": "0.0.3",
3+
"version": "0.0.4",
44
"description": "Client SDK for CyberSource REST APIs",
55
"keywords": [
66
"cybersource", "payments", "ecommerce", "merchant", "merchants", "authorizenet", "visa", "payment", "payment-gateway", "payment-integration", "payment-module", "payment-processing", "payment-service", "payment-methods"

docs/Api/ConversionDetailsApi.md

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# CyberSource\ConversionDetailsApi
2+
3+
All URIs are relative to *https://apitest.cybersource.com*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**getConversionDetail**](ConversionDetailsApi.md#getConversionDetail) | **GET** /reporting/v3/conversion-details | Get conversion detail transactions
8+
9+
10+
# **getConversionDetail**
11+
> \CyberSource\Model\ReportingV3ConversionDetailsGet200Response getConversionDetail($startTime, $endTime, $organizationId)
12+
13+
Get conversion detail transactions
14+
15+
Get conversion detail of transactions for a merchant.
16+
17+
### Example
18+
```php
19+
<?php
20+
require_once(__DIR__ . '/vendor/autoload.php');
21+
22+
$api_instance = new CyberSource\Api\ConversionDetailsApi();
23+
$startTime = new \DateTime("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
24+
$endTime = new \DateTime("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
25+
$organizationId = "organizationId_example"; // string | Valid Cybersource Organization Id
26+
27+
try {
28+
$result = $api_instance->getConversionDetail($startTime, $endTime, $organizationId);
29+
print_r($result);
30+
} catch (Exception $e) {
31+
echo 'Exception when calling ConversionDetailsApi->getConversionDetail: ', $e->getMessage(), PHP_EOL;
32+
}
33+
?>
34+
```
35+
36+
### Parameters
37+
38+
Name | Type | Description | Notes
39+
------------- | ------------- | ------------- | -------------
40+
**startTime** | **\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&#39;T&#39;HH:mm:ssXXX |
41+
**endTime** | **\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&#39;T&#39;HH:mm:ssXXX |
42+
**organizationId** | **string**| Valid Cybersource Organization Id | [optional]
43+
44+
### Return type
45+
46+
[**\CyberSource\Model\ReportingV3ConversionDetailsGet200Response**](../Model/ReportingV3ConversionDetailsGet200Response.md)
47+
48+
### Authorization
49+
50+
No authorization required
51+
52+
### HTTP request headers
53+
54+
- **Content-Type**: application/json;charset=utf-8
55+
- **Accept**: application/hal+json
56+
57+
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
58+

docs/Api/NetFundingsApi.md

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# CyberSource\NetFundingsApi
2+
3+
All URIs are relative to *https://apitest.cybersource.com*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**getNetFundingInfo**](NetFundingsApi.md#getNetFundingInfo) | **GET** /reporting/v3/net-fundings | Get Netfunding information for an account or a merchant
8+
9+
10+
# **getNetFundingInfo**
11+
> \CyberSource\Model\ReportingV3NetFundingsGet200Response getNetFundingInfo($startTime, $endTime, $organizationId, $groupName)
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+
```php
19+
<?php
20+
require_once(__DIR__ . '/vendor/autoload.php');
21+
22+
$api_instance = new CyberSource\Api\NetFundingsApi();
23+
$startTime = new \DateTime("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
24+
$endTime = new \DateTime("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
25+
$organizationId = "organizationId_example"; // string | Valid Cybersource Organization Id
26+
$groupName = "groupName_example"; // string | Valid CyberSource Group Name.
27+
28+
try {
29+
$result = $api_instance->getNetFundingInfo($startTime, $endTime, $organizationId, $groupName);
30+
print_r($result);
31+
} catch (Exception $e) {
32+
echo 'Exception when calling NetFundingsApi->getNetFundingInfo: ', $e->getMessage(), PHP_EOL;
33+
}
34+
?>
35+
```
36+
37+
### Parameters
38+
39+
Name | Type | Description | Notes
40+
------------- | ------------- | ------------- | -------------
41+
**startTime** | **\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&#39;T&#39;HH:mm:ssXXX |
42+
**endTime** | **\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&#39;T&#39;HH:mm:ssXXX |
43+
**organizationId** | **string**| Valid Cybersource Organization Id | [optional]
44+
**groupName** | **string**| Valid CyberSource Group Name. | [optional]
45+
46+
### Return type
47+
48+
[**\CyberSource\Model\ReportingV3NetFundingsGet200Response**](../Model/ReportingV3NetFundingsGet200Response.md)
49+
50+
### Authorization
51+
52+
No authorization required
53+
54+
### HTTP request headers
55+
56+
- **Content-Type**: application/json;charset=utf-8
57+
- **Accept**: application/hal+json
58+
59+
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
60+

docs/Api/NotificationOfChangesApi.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Method | HTTP request | Description
1212
1313
Get Notification Of Changes
1414

15-
Notification of Change Report
15+
Download the Notification of Change report. This report shows eCheck-related fields updated as a result of a response to an eCheck settlement transaction.
1616

1717
### Example
1818
```php

docs/Api/PaymentInstrumentsApi.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ No authorization required
150150
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
151151

152152
# **tmsV1PaymentinstrumentsTokenIdGet**
153-
> \CyberSource\Model\TmsV1PaymentinstrumentsPost201Response tmsV1PaymentinstrumentsTokenIdGet($profileId, $tokenId)
153+
> \CyberSource\Model\TmsV1PaymentinstrumentsGet200Response tmsV1PaymentinstrumentsTokenIdGet($profileId, $tokenId)
154154
155155
Retrieve a Payment Instrument
156156

@@ -181,7 +181,7 @@ Name | Type | Description | Notes
181181

182182
### Return type
183183

184-
[**\CyberSource\Model\TmsV1PaymentinstrumentsPost201Response**](../Model/TmsV1PaymentinstrumentsPost201Response.md)
184+
[**\CyberSource\Model\TmsV1PaymentinstrumentsGet200Response**](../Model/TmsV1PaymentinstrumentsGet200Response.md)
185185

186186
### Authorization
187187

@@ -195,7 +195,7 @@ No authorization required
195195
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
196196

197197
# **tmsV1PaymentinstrumentsTokenIdPatch**
198-
> \CyberSource\Model\TmsV1PaymentinstrumentsPost201Response tmsV1PaymentinstrumentsTokenIdPatch($profileId, $tokenId, $body)
198+
> \CyberSource\Model\TmsV1PaymentinstrumentsGet200Response tmsV1PaymentinstrumentsTokenIdPatch($profileId, $tokenId, $body)
199199
200200
Update a Payment Instrument
201201

@@ -228,7 +228,7 @@ Name | Type | Description | Notes
228228

229229
### Return type
230230

231-
[**\CyberSource\Model\TmsV1PaymentinstrumentsPost201Response**](../Model/TmsV1PaymentinstrumentsPost201Response.md)
231+
[**\CyberSource\Model\TmsV1PaymentinstrumentsGet200Response**](../Model/TmsV1PaymentinstrumentsGet200Response.md)
232232

233233
### Authorization
234234

docs/Api/ProcessAPayoutApi.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Method | HTTP request | Description
88

99

1010
# **octCreatePayment**
11-
> octCreatePayment($octCreatePaymentRequest)
11+
> \CyberSource\Model\PtsV2PayoutsPost201Response octCreatePayment($octCreatePaymentRequest)
1212
1313
Process a Payout
1414

@@ -23,7 +23,8 @@ $api_instance = new CyberSource\Api\ProcessAPayoutApi();
2323
$octCreatePaymentRequest = new \CyberSource\Model\PtsV2PayoutsPostResponse(); // \CyberSource\Model\PtsV2PayoutsPostResponse |
2424

2525
try {
26-
$api_instance->octCreatePayment($octCreatePaymentRequest);
26+
$result = $api_instance->octCreatePayment($octCreatePaymentRequest);
27+
print_r($result);
2728
} catch (Exception $e) {
2829
echo 'Exception when calling ProcessAPayoutApi->octCreatePayment: ', $e->getMessage(), PHP_EOL;
2930
}
@@ -38,7 +39,7 @@ Name | Type | Description | Notes
3839

3940
### Return type
4041

41-
void (empty response body)
42+
[**\CyberSource\Model\PtsV2PayoutsPost201Response**](../Model/PtsV2PayoutsPost201Response.md)
4243

4344
### Authorization
4445

docs/Api/PurchaseAndRefundDetailsApi.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ Method | HTTP request | Description
88

99

1010
# **getPurchaseAndRefundDetails**
11-
> getPurchaseAndRefundDetails($startTime, $endTime, $organizationId, $paymentSubtype, $viewBy, $groupName, $offset, $limit)
11+
> \CyberSource\Model\ReportingV3PurchaseRefundDetailsGet200Response getPurchaseAndRefundDetails($startTime, $endTime, $organizationId, $paymentSubtype, $viewBy, $groupName, $offset, $limit)
1212
1313
Get Purchase and Refund details
1414

15-
Purchase And Refund Details Description
15+
Download the Purchase and Refund Details report. This report report includes all purchases and refund transactions, as well as all activities related to transactions resulting in an adjustment to the net proceeds.
1616

1717
### Example
1818
```php
@@ -30,7 +30,8 @@ $offset = 56; // int | Offset of the Purchase and Refund Results.
3030
$limit = 2000; // int | Results count per page. Range(1-2000)
3131

3232
try {
33-
$api_instance->getPurchaseAndRefundDetails($startTime, $endTime, $organizationId, $paymentSubtype, $viewBy, $groupName, $offset, $limit);
33+
$result = $api_instance->getPurchaseAndRefundDetails($startTime, $endTime, $organizationId, $paymentSubtype, $viewBy, $groupName, $offset, $limit);
34+
print_r($result);
3435
} catch (Exception $e) {
3536
echo 'Exception when calling PurchaseAndRefundDetailsApi->getPurchaseAndRefundDetails: ', $e->getMessage(), PHP_EOL;
3637
}
@@ -52,7 +53,7 @@ Name | Type | Description | Notes
5253

5354
### Return type
5455

55-
void (empty response body)
56+
[**\CyberSource\Model\ReportingV3PurchaseRefundDetailsGet200Response**](../Model/ReportingV3PurchaseRefundDetailsGet200Response.md)
5657

5758
### Authorization
5859

docs/Api/ReportDefinitionsApi.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ All URIs are relative to *https://apitest.cybersource.com*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7-
[**getResourceInfoByReportDefinition**](ReportDefinitionsApi.md#getResourceInfoByReportDefinition) | **GET** /reporting/v3/report-definitions/{reportDefinitionName} | Get a single report definition information
7+
[**getResourceInfoByReportDefinition**](ReportDefinitionsApi.md#getResourceInfoByReportDefinition) | **GET** /reporting/v3/report-definitions/{reportDefinitionName} | Get report definition
88
[**getResourceV2Info**](ReportDefinitionsApi.md#getResourceV2Info) | **GET** /reporting/v3/report-definitions | Get reporting resource information
99

1010

1111
# **getResourceInfoByReportDefinition**
1212
> \CyberSource\Model\ReportingV3ReportDefinitionsNameGet200Response getResourceInfoByReportDefinition($reportDefinitionName, $organizationId)
1313
14-
Get a single report definition information
14+
Get report definition
1515

16-
The report definition name must be used as path parameter exclusive of each other
16+
View the attributes of an individual report type. For a list of values for reportDefinitionName, see the [Reporting Developer Guide](https://www.cybersource.com/developers/documentation/reporting_and_reconciliation/)
1717

1818
### Example
1919
```php
@@ -60,7 +60,7 @@ No authorization required
6060
6161
Get reporting resource information
6262

63-
63+
View a list of supported reports and their attributes before subscribing to them.
6464

6565
### Example
6666
```php

docs/Api/ReportDownloadsApi.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Method | HTTP request | Description
1212
1313
Download a report
1414

15-
Download a report for the given report name on the specified date
15+
Download a report using the unique report name and date.
1616

1717
### Example
1818
```php
@@ -51,7 +51,7 @@ No authorization required
5151
### HTTP request headers
5252

5353
- **Content-Type**: application/json;charset=utf-8
54-
- **Accept**: application/xml, test/csv
54+
- **Accept**: application/xml, text/csv
5555

5656
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
5757

0 commit comments

Comments
 (0)