-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from CyberSource/mar2019rel
New version of the SDK
- Loading branch information
Showing
521 changed files
with
41,869 additions
and
6,313 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<?php | ||
|
||
/** | ||
* CyberSource Flex API | ||
* | ||
* Simple PAN tokenization service | ||
* | ||
* OpenAPI spec version: 0.0.1 | ||
* | ||
* Generated by: https://github.com/swagger-api/swagger-codegen.git | ||
* | ||
*/ | ||
|
||
/** | ||
* An example of a project-specific implementation. | ||
* | ||
* After registering this autoload function with SPL, the following line | ||
* would cause the function to attempt to load the \CyberSource\Baz\Qux class | ||
* from /path/to/project/lib/Baz/Qux.php: | ||
* | ||
* new \CyberSource\Baz\Qux; | ||
* | ||
* @param string $class The fully-qualified class name. | ||
* | ||
* @return void | ||
*/ | ||
spl_autoload_register(function ($class) { | ||
|
||
// project-specific namespace prefix | ||
$prefix = 'CyberSource\\'; | ||
|
||
// base directory for the namespace prefix | ||
$base_dir = __DIR__ . '/lib/'; | ||
|
||
// does the class use the namespace prefix? | ||
$len = strlen($prefix); | ||
if (strncmp($prefix, $class, $len) !== 0) { | ||
// no, move to the next registered autoloader | ||
return; | ||
} | ||
|
||
// get the relative class name | ||
$relative_class = substr($class, $len); | ||
|
||
// replace the namespace prefix with the base directory, replace namespace | ||
// separators with directory separators in the relative class name, append | ||
// with .php | ||
$file = $base_dir . str_replace('\\', '/', $relative_class) . '.php'; | ||
|
||
// if the file exists, require it | ||
if (file_exists($file)) { | ||
require $file; | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# CyberSource\ConversionDetailsApi | ||
|
||
All URIs are relative to *https://apitest.cybersource.com* | ||
|
||
Method | HTTP request | Description | ||
------------- | ------------- | ------------- | ||
[**getConversionDetail**](ConversionDetailsApi.md#getConversionDetail) | **GET** /reporting/v3/conversion-details | Get conversion detail transactions | ||
|
||
|
||
# **getConversionDetail** | ||
> \CyberSource\Model\ReportingV3ConversionDetailsGet200Response getConversionDetail($startTime, $endTime, $organizationId) | ||
Get conversion detail transactions | ||
|
||
Get conversion detail of transactions for a merchant. | ||
|
||
### Example | ||
```php | ||
<?php | ||
require_once(__DIR__ . '/vendor/autoload.php'); | ||
|
||
$api_instance = new CyberSource\Api\ConversionDetailsApi(); | ||
$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 | ||
$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 | ||
$organizationId = "organizationId_example"; // string | Valid Cybersource Organization Id | ||
|
||
try { | ||
$result = $api_instance->getConversionDetail($startTime, $endTime, $organizationId); | ||
print_r($result); | ||
} catch (Exception $e) { | ||
echo 'Exception when calling ConversionDetailsApi->getConversionDetail: ', $e->getMessage(), PHP_EOL; | ||
} | ||
?> | ||
``` | ||
|
||
### Parameters | ||
|
||
Name | Type | Description | Notes | ||
------------- | ------------- | ------------- | ------------- | ||
**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'T'HH:mm:ssXXX | | ||
**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'T'HH:mm:ssXXX | | ||
**organizationId** | **string**| Valid Cybersource Organization Id | [optional] | ||
|
||
### Return type | ||
|
||
[**\CyberSource\Model\ReportingV3ConversionDetailsGet200Response**](../Model/ReportingV3ConversionDetailsGet200Response.md) | ||
|
||
### Authorization | ||
|
||
No authorization required | ||
|
||
### HTTP request headers | ||
|
||
- **Content-Type**: application/json;charset=utf-8 | ||
- **Accept**: application/hal+json | ||
|
||
[[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) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# CyberSource\NetFundingsApi | ||
|
||
All URIs are relative to *https://apitest.cybersource.com* | ||
|
||
Method | HTTP request | Description | ||
------------- | ------------- | ------------- | ||
[**getNetFundingInfo**](NetFundingsApi.md#getNetFundingInfo) | **GET** /reporting/v3/net-fundings | Get Netfunding information for an account or a merchant | ||
|
||
|
||
# **getNetFundingInfo** | ||
> \CyberSource\Model\ReportingV3NetFundingsGet200Response getNetFundingInfo($startTime, $endTime, $organizationId, $groupName) | ||
Get Netfunding information for an account or a merchant | ||
|
||
Get Netfunding information for an account or a merchant. | ||
|
||
### Example | ||
```php | ||
<?php | ||
require_once(__DIR__ . '/vendor/autoload.php'); | ||
|
||
$api_instance = new CyberSource\Api\NetFundingsApi(); | ||
$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 | ||
$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 | ||
$organizationId = "organizationId_example"; // string | Valid Cybersource Organization Id | ||
$groupName = "groupName_example"; // string | Valid CyberSource Group Name. | ||
|
||
try { | ||
$result = $api_instance->getNetFundingInfo($startTime, $endTime, $organizationId, $groupName); | ||
print_r($result); | ||
} catch (Exception $e) { | ||
echo 'Exception when calling NetFundingsApi->getNetFundingInfo: ', $e->getMessage(), PHP_EOL; | ||
} | ||
?> | ||
``` | ||
|
||
### Parameters | ||
|
||
Name | Type | Description | Notes | ||
------------- | ------------- | ------------- | ------------- | ||
**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'T'HH:mm:ssXXX | | ||
**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'T'HH:mm:ssXXX | | ||
**organizationId** | **string**| Valid Cybersource Organization Id | [optional] | ||
**groupName** | **string**| Valid CyberSource Group Name. | [optional] | ||
|
||
### Return type | ||
|
||
[**\CyberSource\Model\ReportingV3NetFundingsGet200Response**](../Model/ReportingV3NetFundingsGet200Response.md) | ||
|
||
### Authorization | ||
|
||
No authorization required | ||
|
||
### HTTP request headers | ||
|
||
- **Content-Type**: application/json;charset=utf-8 | ||
- **Accept**: application/hal+json | ||
|
||
[[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) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.