Skip to content

Commit 82d0804

Browse files
authored
Merge pull request #30 from CyberSource/payer-auth
Payer auth API changes
2 parents 4893bb5 + df675ea commit 82d0804

File tree

633 files changed

+79406
-33437
lines changed

Some content is hidden

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

633 files changed

+79406
-33437
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.7"
34+
"cybersource/rest-client-php": "0.0.8"
3535
}
3636
}
3737
```

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.7",
3+
"version": "0.0.8",
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/DecisionManagerApi.md

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

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7-
[**createDecisionManagerCase**](DecisionManagerApi.md#createDecisionManagerCase) | **POST** /risk/v1/decisions | Create Decision Manager case
7+
[**createDecisionManagerCase**](DecisionManagerApi.md#createDecisionManagerCase) | **POST** /risk/v1/decisions | Create Decision Manager Case
88

99

1010
# **createDecisionManagerCase**
1111
> \CyberSource\Model\RiskV1DecisionsPost201Response createDecisionManagerCase($createDecisionManagerCaseRequest)
1212
13-
Create Decision Manager case
13+
Create Decision Manager Case
1414

1515
This is the combined request to the Decision Manager Service for a transaction sent to Cybersource. Decision Manager will return a decision based on the request values.
1616

docs/Api/InstrumentIdentifierApi.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Method | HTTP request | Description
66
------------- | ------------- | -------------
77
[**createInstrumentIdentifier**](InstrumentIdentifierApi.md#createInstrumentIdentifier) | **POST** /tms/v1/instrumentidentifiers | Create an Instrument Identifier
88
[**deleteInstrumentIdentifier**](InstrumentIdentifierApi.md#deleteInstrumentIdentifier) | **DELETE** /tms/v1/instrumentidentifiers/{tokenId} | Delete an Instrument Identifier
9-
[**getAllPaymentInstruments**](InstrumentIdentifierApi.md#getAllPaymentInstruments) | **GET** /tms/v1/instrumentidentifiers/{tokenId}/paymentinstruments | Retrieve all Payment Instruments associated with an Instrument Identifier
9+
[**getAllPaymentInstruments**](InstrumentIdentifierApi.md#getAllPaymentInstruments) | **GET** /tms/v1/instrumentidentifiers/{tokenId}/paymentinstruments | Retrieve all Payment Instruments
1010
[**getInstrumentIdentifier**](InstrumentIdentifierApi.md#getInstrumentIdentifier) | **GET** /tms/v1/instrumentidentifiers/{tokenId} | Retrieve an Instrument Identifier
1111
[**updateInstrumentIdentifier**](InstrumentIdentifierApi.md#updateInstrumentIdentifier) | **PATCH** /tms/v1/instrumentidentifiers/{tokenId} | Update a Instrument Identifier
1212

@@ -103,7 +103,7 @@ No authorization required
103103
# **getAllPaymentInstruments**
104104
> \CyberSource\Model\TmsV1InstrumentIdentifiersPaymentInstrumentsGet200Response getAllPaymentInstruments($profileId, $tokenId, $offset, $limit)
105105
106-
Retrieve all Payment Instruments associated with an Instrument Identifier
106+
Retrieve all Payment Instruments
107107

108108
### Example
109109
```php

docs/Api/PayerAuthenticationApi.md

+100
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
# CyberSource\PayerAuthenticationApi
2+
3+
All URIs are relative to *https://apitest.cybersource.com*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**checkPayerAuthEnrollment**](PayerAuthenticationApi.md#checkPayerAuthEnrollment) | **POST** /risk/v1/authentications | Check payer auth enrollment
8+
[**validateAuthenticationResults**](PayerAuthenticationApi.md#validateAuthenticationResults) | **POST** /risk/v1/authentication-results | Validate authentication results
9+
10+
11+
# **checkPayerAuthEnrollment**
12+
> \CyberSource\Model\RiskV1AuthenticationsPost201Response checkPayerAuthEnrollment($checkPayerAuthEnrollmentRequest)
13+
14+
Check payer auth enrollment
15+
16+
This call verifies that the card is enrolled in a card authentication program.
17+
18+
### Example
19+
```php
20+
<?php
21+
require_once(__DIR__ . '/vendor/autoload.php');
22+
23+
$api_instance = new CyberSource\Api\PayerAuthenticationApi();
24+
$checkPayerAuthEnrollmentRequest = new \CyberSource\Model\CheckPayerAuthEnrollmentRequest(); // \CyberSource\Model\CheckPayerAuthEnrollmentRequest |
25+
26+
try {
27+
$result = $api_instance->checkPayerAuthEnrollment($checkPayerAuthEnrollmentRequest);
28+
print_r($result);
29+
} catch (Exception $e) {
30+
echo 'Exception when calling PayerAuthenticationApi->checkPayerAuthEnrollment: ', $e->getMessage(), PHP_EOL;
31+
}
32+
?>
33+
```
34+
35+
### Parameters
36+
37+
Name | Type | Description | Notes
38+
------------- | ------------- | ------------- | -------------
39+
**checkPayerAuthEnrollmentRequest** | [**\CyberSource\Model\CheckPayerAuthEnrollmentRequest**](../Model/CheckPayerAuthEnrollmentRequest.md)| |
40+
41+
### Return type
42+
43+
[**\CyberSource\Model\RiskV1AuthenticationsPost201Response**](../Model/RiskV1AuthenticationsPost201Response.md)
44+
45+
### Authorization
46+
47+
No authorization required
48+
49+
### HTTP request headers
50+
51+
- **Content-Type**: application/json;charset=utf-8
52+
- **Accept**: application/json;charset=utf-8
53+
54+
[[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)
55+
56+
# **validateAuthenticationResults**
57+
> \CyberSource\Model\RiskV1AuthenticationResultsPost201Response validateAuthenticationResults($request)
58+
59+
Validate authentication results
60+
61+
This call retrieves and validates the authentication results from issuer and allows the merchant to proceed with processing the payment.
62+
63+
### Example
64+
```php
65+
<?php
66+
require_once(__DIR__ . '/vendor/autoload.php');
67+
68+
$api_instance = new CyberSource\Api\PayerAuthenticationApi();
69+
$request = new \CyberSource\Model\Request(); // \CyberSource\Model\Request |
70+
71+
try {
72+
$result = $api_instance->validateAuthenticationResults($request);
73+
print_r($result);
74+
} catch (Exception $e) {
75+
echo 'Exception when calling PayerAuthenticationApi->validateAuthenticationResults: ', $e->getMessage(), PHP_EOL;
76+
}
77+
?>
78+
```
79+
80+
### Parameters
81+
82+
Name | Type | Description | Notes
83+
------------- | ------------- | ------------- | -------------
84+
**request** | [**\CyberSource\Model\Request**](../Model/Request.md)| |
85+
86+
### Return type
87+
88+
[**\CyberSource\Model\RiskV1AuthenticationResultsPost201Response**](../Model/RiskV1AuthenticationResultsPost201Response.md)
89+
90+
### Authorization
91+
92+
No authorization required
93+
94+
### HTTP request headers
95+
96+
- **Content-Type**: application/json;charset=utf-8
97+
- **Accept**: application/json;charset=utf-8
98+
99+
[[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)
100+

docs/Api/PaymentBatchSummariesApi.md

-64
This file was deleted.

docs/Api/ReversalApi.md

-46
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ All URIs are relative to *https://apitest.cybersource.com*
55
Method | HTTP request | Description
66
------------- | ------------- | -------------
77
[**authReversal**](ReversalApi.md#authReversal) | **POST** /pts/v2/payments/{id}/reversals | Process an Authorization Reversal
8-
[**mitReversal**](ReversalApi.md#mitReversal) | **POST** /pts/v2/reversals/ | Merchant Initiated Reversal
98

109

1110
# **authReversal**
@@ -55,48 +54,3 @@ No authorization required
5554

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

58-
# **mitReversal**
59-
> \CyberSource\Model\PtsV2PaymentsReversalsPost201Response mitReversal($mitReversalRequest)
60-
61-
Merchant Initiated Reversal
62-
63-
This is to reverse a previous payment that merchant does not receive a reply.
64-
65-
### Example
66-
```php
67-
<?php
68-
require_once(__DIR__ . '/vendor/autoload.php');
69-
70-
$api_instance = new CyberSource\Api\ReversalApi();
71-
$mitReversalRequest = new \CyberSource\Model\MitReversalRequest(); // \CyberSource\Model\MitReversalRequest |
72-
73-
try {
74-
$result = $api_instance->mitReversal($mitReversalRequest);
75-
print_r($result);
76-
} catch (Exception $e) {
77-
echo 'Exception when calling ReversalApi->mitReversal: ', $e->getMessage(), PHP_EOL;
78-
}
79-
?>
80-
```
81-
82-
### Parameters
83-
84-
Name | Type | Description | Notes
85-
------------- | ------------- | ------------- | -------------
86-
**mitReversalRequest** | [**\CyberSource\Model\MitReversalRequest**](../Model/MitReversalRequest.md)| |
87-
88-
### Return type
89-
90-
[**\CyberSource\Model\PtsV2PaymentsReversalsPost201Response**](../Model/PtsV2PaymentsReversalsPost201Response.md)
91-
92-
### Authorization
93-
94-
No authorization required
95-
96-
### HTTP request headers
97-
98-
- **Content-Type**: application/json;charset=utf-8
99-
- **Accept**: application/json;charset=utf-8
100-
101-
[[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)
102-

docs/Api/TransactionBatchesApi.md

+2-51
Original file line numberDiff line numberDiff line change
@@ -4,59 +4,10 @@ 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 | Filters batch response.
87
[**getTransactionBatchId**](TransactionBatchesApi.md#getTransactionBatchId) | **GET** /pts/v1/transaction-batches/{id} | Get individual batch file
9-
[**getTransactionBatches**](TransactionBatchesApi.md#getTransactionBatches) | **GET** /pts/v1/transaction-batches | Get a list of batch files
8+
[**getTransactionBatches**](TransactionBatchesApi.md#getTransactionBatches) | **GET** /pts/v1/transaction-batches | Gets a list of batch files
109

1110

12-
# **getTransactionBatchDetails**
13-
> getTransactionBatchDetails($transactionBatchId, $uploadDate, $status)
14-
15-
Filters batch response.
16-
17-
Filters batch response.
18-
19-
### Example
20-
```php
21-
<?php
22-
require_once(__DIR__ . '/vendor/autoload.php');
23-
24-
$api_instance = new CyberSource\Api\TransactionBatchesApi();
25-
$transactionBatchId = "transactionBatchId_example"; // string | Transaction Batch Id, this is unique.
26-
$uploadDate = new \DateTime("2013-10-20"); // \DateTime | Date in which the original batch file was uploaded. Date must be in ISO-8601 format.
27-
$status = "status_example"; // string | Allows you to filter by rejected response.
28-
29-
try {
30-
$api_instance->getTransactionBatchDetails($transactionBatchId, $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-
**transactionBatchId** | **string**| Transaction Batch Id, this is unique. |
42-
**uploadDate** | **\DateTime**| Date in which the original batch file was uploaded. Date must be in ISO-8601 format. | [optional]
43-
**status** | **string**| Allows you to filter by rejected response. | [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/vnd.cybersource.map-csv
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-
6011
# **getTransactionBatchId**
6112
> \CyberSource\Model\PtsV1TransactionBatchesIdGet200Response getTransactionBatchId($id)
6213
@@ -105,7 +56,7 @@ No authorization required
10556
# **getTransactionBatches**
10657
> \CyberSource\Model\PtsV1TransactionBatchesGet200Response getTransactionBatches($startTime, $endTime)
10758
108-
Get a list of batch files
59+
Gets a list of batch files
10960

11061
Provide the search range
11162

docs/Api/UserManagementApi.md

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

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7-
[**getUsers**](UserManagementApi.md#getUsers) | **GET** /ums/v1/users | Get user based on organization Id, username, permission and role
7+
[**getUsers**](UserManagementApi.md#getUsers) | **GET** /ums/v1/users | Get user information
88

99

1010
# **getUsers**
1111
> \CyberSource\Model\UmsV1UsersGet200Response getUsers($organizationId, $userName, $permissionId, $roleId)
1212
13-
Get user based on organization Id, username, permission and role
13+
Get user information
1414

1515
This endpoint is to get all the user information depending on the filter criteria passed in the query.
1616

0 commit comments

Comments
 (0)