Skip to content

Commit

Permalink
Merge pull request #19 from CyberSource/mar2019rel
Browse files Browse the repository at this point in the history
New version of the SDK
  • Loading branch information
gnongsie authored Mar 5, 2019
2 parents 65a148a + 5ddc72d commit 7d623f9
Show file tree
Hide file tree
Showing 521 changed files with 41,869 additions and 6,313 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ override the new secure-http default setting)*.
{
"require": {
"php": ">=5.6",
"cybersource/rest-client-php": "0.0.3"
"cybersource/rest-client-php": "0.0.4"
}
}
```
Expand Down
54 changes: 54 additions & 0 deletions autoload.php
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;
}
});
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cybersource/rest-client-php",
"version": "0.0.3",
"version": "0.0.4",
"description": "Client SDK for CyberSource REST APIs",
"keywords": [
"cybersource", "payments", "ecommerce", "merchant", "merchants", "authorizenet", "visa", "payment", "payment-gateway", "payment-integration", "payment-module", "payment-processing", "payment-service", "payment-methods"
Expand Down
58 changes: 58 additions & 0 deletions docs/Api/ConversionDetailsApi.md
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&#39;T&#39;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&#39;T&#39;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)

60 changes: 60 additions & 0 deletions docs/Api/NetFundingsApi.md
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&#39;T&#39;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&#39;T&#39;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)

2 changes: 1 addition & 1 deletion docs/Api/NotificationOfChangesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Method | HTTP request | Description
Get Notification Of Changes

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

### Example
```php
Expand Down
8 changes: 4 additions & 4 deletions docs/Api/PaymentInstrumentsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ No authorization required
[[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)

# **tmsV1PaymentinstrumentsTokenIdGet**
> \CyberSource\Model\TmsV1PaymentinstrumentsPost201Response tmsV1PaymentinstrumentsTokenIdGet($profileId, $tokenId)
> \CyberSource\Model\TmsV1PaymentinstrumentsGet200Response tmsV1PaymentinstrumentsTokenIdGet($profileId, $tokenId)
Retrieve a Payment Instrument

Expand Down Expand Up @@ -181,7 +181,7 @@ Name | Type | Description | Notes

### Return type

[**\CyberSource\Model\TmsV1PaymentinstrumentsPost201Response**](../Model/TmsV1PaymentinstrumentsPost201Response.md)
[**\CyberSource\Model\TmsV1PaymentinstrumentsGet200Response**](../Model/TmsV1PaymentinstrumentsGet200Response.md)

### Authorization

Expand All @@ -195,7 +195,7 @@ No authorization required
[[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)

# **tmsV1PaymentinstrumentsTokenIdPatch**
> \CyberSource\Model\TmsV1PaymentinstrumentsPost201Response tmsV1PaymentinstrumentsTokenIdPatch($profileId, $tokenId, $body)
> \CyberSource\Model\TmsV1PaymentinstrumentsGet200Response tmsV1PaymentinstrumentsTokenIdPatch($profileId, $tokenId, $body)
Update a Payment Instrument

Expand Down Expand Up @@ -228,7 +228,7 @@ Name | Type | Description | Notes

### Return type

[**\CyberSource\Model\TmsV1PaymentinstrumentsPost201Response**](../Model/TmsV1PaymentinstrumentsPost201Response.md)
[**\CyberSource\Model\TmsV1PaymentinstrumentsGet200Response**](../Model/TmsV1PaymentinstrumentsGet200Response.md)

### Authorization

Expand Down
7 changes: 4 additions & 3 deletions docs/Api/ProcessAPayoutApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Method | HTTP request | Description


# **octCreatePayment**
> octCreatePayment($octCreatePaymentRequest)
> \CyberSource\Model\PtsV2PayoutsPost201Response octCreatePayment($octCreatePaymentRequest)
Process a Payout

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

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

### Return type

void (empty response body)
[**\CyberSource\Model\PtsV2PayoutsPost201Response**](../Model/PtsV2PayoutsPost201Response.md)

### Authorization

Expand Down
9 changes: 5 additions & 4 deletions docs/Api/PurchaseAndRefundDetailsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ Method | HTTP request | Description


# **getPurchaseAndRefundDetails**
> getPurchaseAndRefundDetails($startTime, $endTime, $organizationId, $paymentSubtype, $viewBy, $groupName, $offset, $limit)
> \CyberSource\Model\ReportingV3PurchaseRefundDetailsGet200Response getPurchaseAndRefundDetails($startTime, $endTime, $organizationId, $paymentSubtype, $viewBy, $groupName, $offset, $limit)
Get Purchase and Refund details

Purchase And Refund Details Description
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.

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

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

### Return type

void (empty response body)
[**\CyberSource\Model\ReportingV3PurchaseRefundDetailsGet200Response**](../Model/ReportingV3PurchaseRefundDetailsGet200Response.md)

### Authorization

Expand Down
8 changes: 4 additions & 4 deletions docs/Api/ReportDefinitionsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ All URIs are relative to *https://apitest.cybersource.com*

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


# **getResourceInfoByReportDefinition**
> \CyberSource\Model\ReportingV3ReportDefinitionsNameGet200Response getResourceInfoByReportDefinition($reportDefinitionName, $organizationId)
Get a single report definition information
Get report definition

The report definition name must be used as path parameter exclusive of each other
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/)

### Example
```php
Expand Down Expand Up @@ -60,7 +60,7 @@ No authorization required
Get reporting resource information


View a list of supported reports and their attributes before subscribing to them.

### Example
```php
Expand Down
4 changes: 2 additions & 2 deletions docs/Api/ReportDownloadsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Method | HTTP request | Description
Download a report

Download a report for the given report name on the specified date
Download a report using the unique report name and date.

### Example
```php
Expand Down Expand Up @@ -51,7 +51,7 @@ No authorization required
### HTTP request headers

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

[[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)

Loading

0 comments on commit 7d623f9

Please sign in to comment.