Skip to content

Commit

Permalink
Merge pull request #174 from CyberSource/release-jan25
Browse files Browse the repository at this point in the history
spec changes
  • Loading branch information
gaubansa authored Feb 5, 2025
2 parents 29dae1a + 36612ff commit 417cf8e
Show file tree
Hide file tree
Showing 276 changed files with 15,822 additions and 6,759 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ override the new secure-http default setting)*.
{
"require": {
"php": ">=8.0.0",
"cybersource/rest-client-php": "0.0.57"
"cybersource/rest-client-php": "0.0.58"
}
}
```
Expand Down
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.57",
"version": "0.0.58",
"description": "Client SDK for CyberSource REST APIs",
"keywords": [
"cybersource", "payments", "ecommerce", "merchant", "merchants", "authorize", "visa", "payment", "payment-gateway", "payment-integration", "payment-module", "payment-processing", "payment-service", "payment-methods"
Expand Down
24 changes: 16 additions & 8 deletions docs/Api/InstrumentIdentifierApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,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)

# **getInstrumentIdentifier**
> \CyberSource\Model\PostInstrumentIdentifierRequest getInstrumentIdentifier($instrumentIdentifierId, $profileId)
> \CyberSource\Model\PostInstrumentIdentifierRequest getInstrumentIdentifier($instrumentIdentifierId, $profileId, $retrieveBinDetails)
Retrieve an Instrument Identifier

Expand All @@ -73,9 +73,10 @@ require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new CyberSource\Api\InstrumentIdentifierApi();
$instrumentIdentifierId = "instrumentIdentifierId_example"; // string | The Id of an Instrument Identifier.
$profileId = "profileId_example"; // string | The Id of a profile containing user specific TMS configuration.
$retrieveBinDetails = true; // bool | Retrieve the Bin Details of PAN or network token

try {
$result = $api_instance->getInstrumentIdentifier($instrumentIdentifierId, $profileId);
$result = $api_instance->getInstrumentIdentifier($instrumentIdentifierId, $profileId, $retrieveBinDetails);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling InstrumentIdentifierApi->getInstrumentIdentifier: ', $e->getMessage(), PHP_EOL;
Expand All @@ -89,6 +90,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**instrumentIdentifierId** | **string**| The Id of an Instrument Identifier. |
**profileId** | **string**| The Id of a profile containing user specific TMS configuration. | [optional]
**retrieveBinDetails** | **bool**| Retrieve the Bin Details of PAN or network token | [optional]

### Return type

Expand All @@ -106,7 +108,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)

# **getInstrumentIdentifierPaymentInstrumentsList**
> \CyberSource\Model\PaymentInstrumentList1 getInstrumentIdentifierPaymentInstrumentsList($instrumentIdentifierId, $profileId, $offset, $limit)
> \CyberSource\Model\PaymentInstrumentList1 getInstrumentIdentifierPaymentInstrumentsList($instrumentIdentifierId, $profileId, $retrieveBinDetails, $offset, $limit)
List Payment Instruments for an Instrument Identifier

Expand All @@ -120,11 +122,12 @@ require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new CyberSource\Api\InstrumentIdentifierApi();
$instrumentIdentifierId = "instrumentIdentifierId_example"; // string | The Id of an Instrument Identifier.
$profileId = "profileId_example"; // string | The Id of a profile containing user specific TMS configuration.
$retrieveBinDetails = true; // bool | Retrieve the Bin Details of PAN or network token
$offset = 0; // int | Starting record in zero-based dataset that should be returned as the first object in the array. Default is 0.
$limit = 20; // int | The maximum number that can be returned in the array starting from the offset record in zero-based dataset. Default is 20, maximum is 100.

try {
$result = $api_instance->getInstrumentIdentifierPaymentInstrumentsList($instrumentIdentifierId, $profileId, $offset, $limit);
$result = $api_instance->getInstrumentIdentifierPaymentInstrumentsList($instrumentIdentifierId, $profileId, $retrieveBinDetails, $offset, $limit);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling InstrumentIdentifierApi->getInstrumentIdentifierPaymentInstrumentsList: ', $e->getMessage(), PHP_EOL;
Expand All @@ -138,6 +141,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**instrumentIdentifierId** | **string**| The Id of an Instrument Identifier. |
**profileId** | **string**| The Id of a profile containing user specific TMS configuration. | [optional]
**retrieveBinDetails** | **bool**| Retrieve the Bin Details of PAN or network token | [optional]
**offset** | **int**| Starting record in zero-based dataset that should be returned as the first object in the array. Default is 0. | [optional] [default to 0]
**limit** | **int**| The maximum number that can be returned in the array starting from the offset record in zero-based dataset. Default is 20, maximum is 100. | [optional] [default to 20]

Expand All @@ -157,7 +161,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)

# **patchInstrumentIdentifier**
> \CyberSource\Model\PatchInstrumentIdentifierRequest patchInstrumentIdentifier($instrumentIdentifierId, $patchInstrumentIdentifierRequest, $profileId, $ifMatch)
> \CyberSource\Model\PatchInstrumentIdentifierRequest patchInstrumentIdentifier($instrumentIdentifierId, $patchInstrumentIdentifierRequest, $profileId, $retrieveBinDetails, $ifMatch)
Update an Instrument Identifier

Expand All @@ -172,10 +176,11 @@ $api_instance = new CyberSource\Api\InstrumentIdentifierApi();
$instrumentIdentifierId = "instrumentIdentifierId_example"; // string | The Id of an Instrument Identifier.
$patchInstrumentIdentifierRequest = new \CyberSource\Model\PatchInstrumentIdentifierRequest(); // \CyberSource\Model\PatchInstrumentIdentifierRequest | Specify the previous transaction Id to update.
$profileId = "profileId_example"; // string | The Id of a profile containing user specific TMS configuration.
$retrieveBinDetails = true; // bool | Retrieve the Bin Details of PAN or network token
$ifMatch = "ifMatch_example"; // string | Contains an ETag value from a GET request to make the request conditional.

try {
$result = $api_instance->patchInstrumentIdentifier($instrumentIdentifierId, $patchInstrumentIdentifierRequest, $profileId, $ifMatch);
$result = $api_instance->patchInstrumentIdentifier($instrumentIdentifierId, $patchInstrumentIdentifierRequest, $profileId, $retrieveBinDetails, $ifMatch);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling InstrumentIdentifierApi->patchInstrumentIdentifier: ', $e->getMessage(), PHP_EOL;
Expand All @@ -190,6 +195,7 @@ Name | Type | Description | Notes
**instrumentIdentifierId** | **string**| The Id of an Instrument Identifier. |
**patchInstrumentIdentifierRequest** | [**\CyberSource\Model\PatchInstrumentIdentifierRequest**](../Model/PatchInstrumentIdentifierRequest.md)| Specify the previous transaction Id to update. |
**profileId** | **string**| The Id of a profile containing user specific TMS configuration. | [optional]
**retrieveBinDetails** | **bool**| Retrieve the Bin Details of PAN or network token | [optional]
**ifMatch** | **string**| Contains an ETag value from a GET request to make the request conditional. | [optional]

### Return type
Expand All @@ -208,7 +214,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)

# **postInstrumentIdentifier**
> \CyberSource\Model\PostInstrumentIdentifierRequest postInstrumentIdentifier($postInstrumentIdentifierRequest, $profileId)
> \CyberSource\Model\PostInstrumentIdentifierRequest postInstrumentIdentifier($postInstrumentIdentifierRequest, $profileId, $retrieveBinDetails)
Create an Instrument Identifier

Expand All @@ -222,9 +228,10 @@ require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new CyberSource\Api\InstrumentIdentifierApi();
$postInstrumentIdentifierRequest = new \CyberSource\Model\PostInstrumentIdentifierRequest(); // \CyberSource\Model\PostInstrumentIdentifierRequest | Specify either a Card, Bank Account or Enrollable Card
$profileId = "profileId_example"; // string | The Id of a profile containing user specific TMS configuration.
$retrieveBinDetails = true; // bool | Retrieve the Bin Details of PAN or network token

try {
$result = $api_instance->postInstrumentIdentifier($postInstrumentIdentifierRequest, $profileId);
$result = $api_instance->postInstrumentIdentifier($postInstrumentIdentifierRequest, $profileId, $retrieveBinDetails);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling InstrumentIdentifierApi->postInstrumentIdentifier: ', $e->getMessage(), PHP_EOL;
Expand All @@ -238,6 +245,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**postInstrumentIdentifierRequest** | [**\CyberSource\Model\PostInstrumentIdentifierRequest**](../Model/PostInstrumentIdentifierRequest.md)| Specify either a Card, Bank Account or Enrollable Card |
**profileId** | **string**| The Id of a profile containing user specific TMS configuration. | [optional]
**retrieveBinDetails** | **bool**| Retrieve the Bin Details of PAN or network token | [optional]

### Return type

Expand Down
18 changes: 12 additions & 6 deletions docs/Api/PaymentInstrumentApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,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)

# **getPaymentInstrument**
> \CyberSource\Model\PostPaymentInstrumentRequest getPaymentInstrument($paymentInstrumentId, $profileId)
> \CyberSource\Model\PostPaymentInstrumentRequest getPaymentInstrument($paymentInstrumentId, $profileId, $retrieveBinDetails)
Retrieve a Payment Instrument

Expand All @@ -71,9 +71,10 @@ require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new CyberSource\Api\PaymentInstrumentApi();
$paymentInstrumentId = "paymentInstrumentId_example"; // string | The Id of a payment instrument.
$profileId = "profileId_example"; // string | The Id of a profile containing user specific TMS configuration.
$retrieveBinDetails = true; // bool | Retrieve the Bin Details of PAN or network token

try {
$result = $api_instance->getPaymentInstrument($paymentInstrumentId, $profileId);
$result = $api_instance->getPaymentInstrument($paymentInstrumentId, $profileId, $retrieveBinDetails);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PaymentInstrumentApi->getPaymentInstrument: ', $e->getMessage(), PHP_EOL;
Expand All @@ -87,6 +88,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**paymentInstrumentId** | **string**| The Id of a payment instrument. |
**profileId** | **string**| The Id of a profile containing user specific TMS configuration. | [optional]
**retrieveBinDetails** | **bool**| Retrieve the Bin Details of PAN or network token | [optional]

### Return type

Expand All @@ -104,7 +106,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)

# **patchPaymentInstrument**
> \CyberSource\Model\PatchPaymentInstrumentRequest patchPaymentInstrument($paymentInstrumentId, $patchPaymentInstrumentRequest, $profileId, $ifMatch)
> \CyberSource\Model\PatchPaymentInstrumentRequest patchPaymentInstrument($paymentInstrumentId, $patchPaymentInstrumentRequest, $profileId, $retrieveBinDetails, $ifMatch)
Update a Payment Instrument

Expand All @@ -119,10 +121,11 @@ $api_instance = new CyberSource\Api\PaymentInstrumentApi();
$paymentInstrumentId = "paymentInstrumentId_example"; // string | The Id of a payment instrument.
$patchPaymentInstrumentRequest = new \CyberSource\Model\PatchPaymentInstrumentRequest(); // \CyberSource\Model\PatchPaymentInstrumentRequest |
$profileId = "profileId_example"; // string | The Id of a profile containing user specific TMS configuration.
$retrieveBinDetails = true; // bool | Retrieve the Bin Details of PAN or network token
$ifMatch = "ifMatch_example"; // string | Contains an ETag value from a GET request to make the request conditional.

try {
$result = $api_instance->patchPaymentInstrument($paymentInstrumentId, $patchPaymentInstrumentRequest, $profileId, $ifMatch);
$result = $api_instance->patchPaymentInstrument($paymentInstrumentId, $patchPaymentInstrumentRequest, $profileId, $retrieveBinDetails, $ifMatch);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PaymentInstrumentApi->patchPaymentInstrument: ', $e->getMessage(), PHP_EOL;
Expand All @@ -137,6 +140,7 @@ Name | Type | Description | Notes
**paymentInstrumentId** | **string**| The Id of a payment instrument. |
**patchPaymentInstrumentRequest** | [**\CyberSource\Model\PatchPaymentInstrumentRequest**](../Model/PatchPaymentInstrumentRequest.md)| |
**profileId** | **string**| The Id of a profile containing user specific TMS configuration. | [optional]
**retrieveBinDetails** | **bool**| Retrieve the Bin Details of PAN or network token | [optional]
**ifMatch** | **string**| Contains an ETag value from a GET request to make the request conditional. | [optional]

### Return type
Expand All @@ -155,7 +159,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)

# **postPaymentInstrument**
> \CyberSource\Model\PostPaymentInstrumentRequest postPaymentInstrument($postPaymentInstrumentRequest, $profileId)
> \CyberSource\Model\PostPaymentInstrumentRequest postPaymentInstrument($postPaymentInstrumentRequest, $profileId, $retrieveBinDetails)
Create a Payment Instrument

Expand All @@ -169,9 +173,10 @@ require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new CyberSource\Api\PaymentInstrumentApi();
$postPaymentInstrumentRequest = new \CyberSource\Model\PostPaymentInstrumentRequest(); // \CyberSource\Model\PostPaymentInstrumentRequest |
$profileId = "profileId_example"; // string | The Id of a profile containing user specific TMS configuration.
$retrieveBinDetails = true; // bool | Retrieve the Bin Details of PAN or network token

try {
$result = $api_instance->postPaymentInstrument($postPaymentInstrumentRequest, $profileId);
$result = $api_instance->postPaymentInstrument($postPaymentInstrumentRequest, $profileId, $retrieveBinDetails);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PaymentInstrumentApi->postPaymentInstrument: ', $e->getMessage(), PHP_EOL;
Expand All @@ -185,6 +190,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**postPaymentInstrumentRequest** | [**\CyberSource\Model\PostPaymentInstrumentRequest**](../Model/PostPaymentInstrumentRequest.md)| |
**profileId** | **string**| The Id of a profile containing user specific TMS configuration. | [optional]
**retrieveBinDetails** | **bool**| Retrieve the Bin Details of PAN or network token | [optional]

### Return type

Expand Down
1 change: 1 addition & 0 deletions docs/Model/CreatePaymentRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Name | Type | Description | Notes
**riskInformation** | [**\CyberSource\Model\Ptsv2paymentsRiskInformation**](Ptsv2paymentsRiskInformation.md) | | [optional]
**acquirerInformation** | [**\CyberSource\Model\Ptsv2paymentsAcquirerInformation**](Ptsv2paymentsAcquirerInformation.md) | | [optional]
**recurringPaymentInformation** | [**\CyberSource\Model\Ptsv2paymentsRecurringPaymentInformation**](Ptsv2paymentsRecurringPaymentInformation.md) | | [optional]
**unscheduledPaymentInformation** | [**\CyberSource\Model\Ptsv2paymentsUnscheduledPaymentInformation**](Ptsv2paymentsUnscheduledPaymentInformation.md) | | [optional]
**hostedPaymentInformation** | [**\CyberSource\Model\Ptsv2paymentsHostedPaymentInformation**](Ptsv2paymentsHostedPaymentInformation.md) | | [optional]
**watchlistScreeningInformation** | [**\CyberSource\Model\Ptsv2paymentsWatchlistScreeningInformation**](Ptsv2paymentsWatchlistScreeningInformation.md) | | [optional]

Expand Down
4 changes: 2 additions & 2 deletions docs/Model/GenerateCaptureContextRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**clientVersion** | **string** | Specify the version of Microform that you want to use. | [optional]
**targetOrigins** | **string[]** | The [target origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin) of the website on which you will be launching Microform is defined by the scheme (protocol), hostname (domain) and port number (if used). You must use https://hostname (unless you use http://localhost) Wildcards are NOT supported. Ensure that subdomains are included. Any valid top-level domain is supported (e.g. .com, .co.uk, .gov.br etc) Examples: - https://example.com - https://subdomain.example.com - https://example.com:8080<br><br> If you are embedding within multiple nested iframes you need to specify the origins of all the browser contexts used, for example: targetOrigins: [ \"https://example.com\", \"https://basket.example.com\", \"https://ecom.example.com\" ] | [optional]
**allowedCardNetworks** | **string[]** | The list of card networks you want to use for this Microform transaction. Microform currently supports the following card networks: - VISA - MASTERCARD - AMEX - CARNET - CARTESBANCAIRES - CUP - DINERSCLUB - DISCOVER - EFTPOS - ELO - JCB - JCREW - MADA - MAESTRO - MEEZA | [optional]
**checkoutApiInitialization** | [**\CyberSource\Model\Microformv2sessionsCheckoutApiInitialization**](Microformv2sessionsCheckoutApiInitialization.md) | | [optional]
**allowedCardNetworks** | **string[]** | The list of card networks you want to use for this Microform transaction. Microform currently supports the following card networks: - VISA - MASTERCARD - AMEX - CARNET - CARTESBANCAIRES - CUP - DINERSCLUB - DISCOVER - EFTPOS - ELO - JCB - JCREW - MADA - MAESTRO - MEEZA **Important:** - When integrating Microform (Accept Card) at least one card network should be specified in the allowedCardNetworks field in the capture context request. - When integrating Microform (Accept Check) the allowedCardNetworks field is not required in the capture context request. - When integrating both Microform (Accept Card) and Microform (Accept Check) at least one card network should be specified in the allowedCardNetworks field in the capture context request. | [optional]
**allowedPaymentTypes** | **string[]** | The payment types that are allowed for the merchant. Possible values when launching Microform: - CARD - CHECK <br><br> | [optional]

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

Expand Down
Loading

0 comments on commit 417cf8e

Please sign in to comment.