Skip to content

Commit 56ea379

Browse files
authored
Merge pull request #35 from CyberSource/aug2019
Update to v0.0.10
2 parents ac1f1bc + 513dc95 commit 56ea379

File tree

200 files changed

+19741
-15599
lines changed

Some content is hidden

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

200 files changed

+19741
-15599
lines changed

README.md

Lines changed: 1 addition & 1 deletion
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.9"
34+
"cybersource/rest-client-php": "0.0.10"
3535
}
3636
}
3737
```

composer.json

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

docs/Api/ConversionDetailsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ No authorization required
5252
### HTTP request headers
5353

5454
- **Content-Type**: application/json;charset=utf-8
55-
- **Accept**: application/hal+json
55+
- **Accept**: application/hal+json, application/xml
5656

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

docs/Api/DownloadDTDApi.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# CyberSource\DownloadDTDApi
2+
3+
All URIs are relative to *https://apitest.cybersource.com*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**getDTDV2**](DownloadDTDApi.md#getDTDV2) | **GET** /dtds/{reportDefinitionNameVersion} | Used to download DTDs for reports
8+
9+
10+
# **getDTDV2**
11+
> getDTDV2($reportDefinitionNameVersion)
12+
13+
Used to download DTDs for reports
14+
15+
Downloads DTDs for reports on no-auth.
16+
17+
### Example
18+
```php
19+
<?php
20+
require_once(__DIR__ . '/vendor/autoload.php');
21+
22+
$api_instance = new CyberSource\Api\DownloadDTDApi();
23+
$reportDefinitionNameVersion = "reportDefinitionNameVersion_example"; // string | Name and version of DTD file to download. Some DTDs only have one version. In that case version name is not needed. Some example values are ctdr-1.0, tdr, pbdr-1.1
24+
25+
try {
26+
$api_instance->getDTDV2($reportDefinitionNameVersion);
27+
} catch (Exception $e) {
28+
echo 'Exception when calling DownloadDTDApi->getDTDV2: ', $e->getMessage(), PHP_EOL;
29+
}
30+
?>
31+
```
32+
33+
### Parameters
34+
35+
Name | Type | Description | Notes
36+
------------- | ------------- | ------------- | -------------
37+
**reportDefinitionNameVersion** | **string**| Name and version of DTD file to download. Some DTDs only have one version. In that case version name is not needed. Some example values are ctdr-1.0, tdr, pbdr-1.1 |
38+
39+
### Return type
40+
41+
void (empty response body)
42+
43+
### Authorization
44+
45+
No authorization required
46+
47+
### HTTP request headers
48+
49+
- **Content-Type**: application/json;charset=utf-8
50+
- **Accept**: application/xml-dtd
51+
52+
[[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)
53+

docs/Api/DownloadXSDApi.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# CyberSource\DownloadXSDApi
2+
3+
All URIs are relative to *https://apitest.cybersource.com*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**getXSDV2**](DownloadXSDApi.md#getXSDV2) | **GET** /xsds/{reportDefinitionNameVersion} | Used to download XSDs for reports
8+
9+
10+
# **getXSDV2**
11+
> getXSDV2($reportDefinitionNameVersion)
12+
13+
Used to download XSDs for reports
14+
15+
Downloads XSDs for reports on no-auth.
16+
17+
### Example
18+
```php
19+
<?php
20+
require_once(__DIR__ . '/vendor/autoload.php');
21+
22+
$api_instance = new CyberSource\Api\DownloadXSDApi();
23+
$reportDefinitionNameVersion = "reportDefinitionNameVersion_example"; // string | Name and version of XSD file to download. Some XSDs only have one version. In that case version name is not needed. Some example values are DecisionManagerDetailReport, DecisionManagerTypes
24+
25+
try {
26+
$api_instance->getXSDV2($reportDefinitionNameVersion);
27+
} catch (Exception $e) {
28+
echo 'Exception when calling DownloadXSDApi->getXSDV2: ', $e->getMessage(), PHP_EOL;
29+
}
30+
?>
31+
```
32+
33+
### Parameters
34+
35+
Name | Type | Description | Notes
36+
------------- | ------------- | ------------- | -------------
37+
**reportDefinitionNameVersion** | **string**| Name and version of XSD file to download. Some XSDs only have one version. In that case version name is not needed. Some example values are DecisionManagerDetailReport, DecisionManagerTypes |
38+
39+
### Return type
40+
41+
void (empty response body)
42+
43+
### Authorization
44+
45+
No authorization required
46+
47+
### HTTP request headers
48+
49+
- **Content-Type**: application/json;charset=utf-8
50+
- **Accept**: text/xml
51+
52+
[[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)
53+

docs/Api/NetFundingsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ No authorization required
5454
### HTTP request headers
5555

5656
- **Content-Type**: application/json;charset=utf-8
57-
- **Accept**: application/hal+json
57+
- **Accept**: application/hal+json, application/xml
5858

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

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# CyberSource\PaymentBatchSummariesApi
2+
3+
All URIs are relative to *https://apitest.cybersource.com*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**getPaymentBatchSummary**](PaymentBatchSummariesApi.md#getPaymentBatchSummary) | **GET** /reporting/v3/payment-batch-summaries | Get payment batch summary data
8+
9+
10+
# **getPaymentBatchSummary**
11+
> \CyberSource\Model\ReportingV3PaymentBatchSummariesGet200Response getPaymentBatchSummary($startTime, $endTime, $organizationId, $rollUp, $breakdown, $startDayOfWeek)
12+
13+
Get payment batch summary data
14+
15+
Scope can be either account/merchant or reseller.
16+
17+
### Example
18+
```php
19+
<?php
20+
require_once(__DIR__ . '/vendor/autoload.php');
21+
22+
$api_instance = new CyberSource\Api\PaymentBatchSummariesApi();
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.[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)
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.[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+
$organizationId = "organizationId_example"; // string | Valid Cybersource Organization Id
26+
$rollUp = "rollUp_example"; // string | Conditional - RollUp for data for day/week/month. Required while getting breakdown data for a Merchant
27+
$breakdown = "breakdown_example"; // string | Conditional - Breakdown on account_rollup/all_merchant/selected_merchant. Required while getting breakdown data for a Merchant.
28+
$startDayOfWeek = 56; // int | Optional - Start day of week to breakdown data for weeks in a month
29+
30+
try {
31+
$result = $api_instance->getPaymentBatchSummary($startTime, $endTime, $organizationId, $rollUp, $breakdown, $startDayOfWeek);
32+
print_r($result);
33+
} catch (Exception $e) {
34+
echo 'Exception when calling PaymentBatchSummariesApi->getPaymentBatchSummary: ', $e->getMessage(), PHP_EOL;
35+
}
36+
?>
37+
```
38+
39+
### Parameters
40+
41+
Name | Type | Description | Notes
42+
------------- | ------------- | ------------- | -------------
43+
**startTime** | **\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&#39;T&#39;HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) |
44+
**endTime** | **\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&#39;T&#39;HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) |
45+
**organizationId** | **string**| Valid Cybersource Organization Id | [optional]
46+
**rollUp** | **string**| Conditional - RollUp for data for day/week/month. Required while getting breakdown data for a Merchant | [optional]
47+
**breakdown** | **string**| Conditional - Breakdown on account_rollup/all_merchant/selected_merchant. Required while getting breakdown data for a Merchant. | [optional]
48+
**startDayOfWeek** | **int**| Optional - Start day of week to breakdown data for weeks in a month | [optional]
49+
50+
### Return type
51+
52+
[**\CyberSource\Model\ReportingV3PaymentBatchSummariesGet200Response**](../Model/ReportingV3PaymentBatchSummariesGet200Response.md)
53+
54+
### Authorization
55+
56+
No authorization required
57+
58+
### HTTP request headers
59+
60+
- **Content-Type**: application/json;charset=utf-8
61+
- **Accept**: application/hal+json
62+
63+
[[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)
64+

docs/Api/TransactionBatchesApi.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,59 @@ All URIs are relative to *https://apitest.cybersource.com*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7+
[**getTransactionBatchDetails**](TransactionBatchesApi.md#getTransactionBatchDetails) | **GET** /pts/v1/transaction-batch-details/{id} | Get transaction details for a given batch id
78
[**getTransactionBatchId**](TransactionBatchesApi.md#getTransactionBatchId) | **GET** /pts/v1/transaction-batches/{id} | Get individual batch file
89
[**getTransactionBatches**](TransactionBatchesApi.md#getTransactionBatches) | **GET** /pts/v1/transaction-batches | Get a list of batch files
910

1011

12+
# **getTransactionBatchDetails**
13+
> getTransactionBatchDetails($id, $uploadDate, $status)
14+
15+
Get transaction details for a given batch id
16+
17+
Provides real-time detailed status information about the transactions that you previously uploaded in the Business Center or processed with the Offline Transaction File Submission service.
18+
19+
### Example
20+
```php
21+
<?php
22+
require_once(__DIR__ . '/vendor/autoload.php');
23+
24+
$api_instance = new CyberSource\Api\TransactionBatchesApi();
25+
$id = "id_example"; // string | The batch id assigned for the template.
26+
$uploadDate = new \DateTime("2013-10-20"); // \DateTime | Date in which the original batch file was uploaded. Date must be 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
27+
$status = "status_example"; // string | Allows you to filter by rejected response. Valid values: - Rejected
28+
29+
try {
30+
$api_instance->getTransactionBatchDetails($id, $uploadDate, $status);
31+
} catch (Exception $e) {
32+
echo 'Exception when calling TransactionBatchesApi->getTransactionBatchDetails: ', $e->getMessage(), PHP_EOL;
33+
}
34+
?>
35+
```
36+
37+
### Parameters
38+
39+
Name | Type | Description | Notes
40+
------------- | ------------- | ------------- | -------------
41+
**id** | **string**| The batch id assigned for the template. |
42+
**uploadDate** | **\DateTime**| Date in which the original batch file was uploaded. Date must be 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 | [optional]
43+
**status** | **string**| Allows you to filter by rejected response. Valid values: - Rejected | [optional]
44+
45+
### Return type
46+
47+
void (empty response body)
48+
49+
### Authorization
50+
51+
No authorization required
52+
53+
### HTTP request headers
54+
55+
- **Content-Type**: application/json;charset=utf-8
56+
- **Accept**: text/csv, application/xml
57+
58+
[[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)
59+
1160
# **getTransactionBatchId**
1261
> \CyberSource\Model\PtsV1TransactionBatchesIdGet200Response getTransactionBatchId($id)
1362

docs/Model/CreateInstrumentIdentifierRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**type** | **string** | Type of Card | [optional]
77
**card** | [**\CyberSource\Model\Tmsv1instrumentidentifiersCard**](Tmsv1instrumentidentifiersCard.md) | | [optional]
8+
**bankAccount** | [**\CyberSource\Model\Tmsv1instrumentidentifiersBankAccount**](Tmsv1instrumentidentifiersBankAccount.md) | | [optional]
89
**billTo** | [**\CyberSource\Model\Tmsv1instrumentidentifiersBillTo**](Tmsv1instrumentidentifiersBillTo.md) | | [optional]
910

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

docs/Model/EmbeddedInstrumentIdentifier.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**links** | [**\CyberSource\Model\TmsV1InstrumentIdentifiersPost200ResponseLinks**](TmsV1InstrumentIdentifiersPost200ResponseLinks.md) | | [optional]
77
**object** | **string** | &#39;Describes type of token.&#39; Valid values: - instrumentIdentifier | [optional]
8-
**state** | **string** | &#39;Current state of the token.&#39; Valid values: - ACTIVE - CLOSED | [optional]
8+
**state** | **string** | &#39;Current state of the token.&#39; Valid values: - ACTIVE - CLOSED | [optional]
99
**id** | **string** | The ID of the existing instrument identifier to be linked to the newly created payment instrument. | [optional]
1010
**card** | [**\CyberSource\Model\TmsV1InstrumentIdentifiersPost200ResponseCard**](TmsV1InstrumentIdentifiersPost200ResponseCard.md) | | [optional]
11-
**bankAccount** | [**\CyberSource\Model\TmsV1InstrumentIdentifiersPost200ResponseBankAccount**](TmsV1InstrumentIdentifiersPost200ResponseBankAccount.md) | | [optional]
11+
**bankAccount** | [**\CyberSource\Model\Tmsv1instrumentidentifiersBankAccount**](Tmsv1instrumentidentifiersBankAccount.md) | | [optional]
1212
**processingInformation** | [**\CyberSource\Model\TmsV1InstrumentIdentifiersPost200ResponseProcessingInformation**](TmsV1InstrumentIdentifiersPost200ResponseProcessingInformation.md) | | [optional]
1313
**metadata** | [**\CyberSource\Model\TmsV1InstrumentIdentifiersPost200ResponseMetadata**](TmsV1InstrumentIdentifiersPost200ResponseMetadata.md) | | [optional]
1414

0 commit comments

Comments
 (0)