Skip to content

Commit 417cf8e

Browse files
authored
Merge pull request #174 from CyberSource/release-jan25
spec changes
2 parents 29dae1a + 36612ff commit 417cf8e

File tree

276 files changed

+15822
-6759
lines changed

Some content is hidden

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

276 files changed

+15822
-6759
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ override the new secure-http default setting)*.
2929
{
3030
"require": {
3131
"php": ">=8.0.0",
32-
"cybersource/rest-client-php": "0.0.57"
32+
"cybersource/rest-client-php": "0.0.58"
3333
}
3434
}
3535
```

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.57",
3+
"version": "0.0.58",
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/InstrumentIdentifierApi.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ No authorization required
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

6161
# **getInstrumentIdentifier**
62-
> \CyberSource\Model\PostInstrumentIdentifierRequest getInstrumentIdentifier($instrumentIdentifierId, $profileId)
62+
> \CyberSource\Model\PostInstrumentIdentifierRequest getInstrumentIdentifier($instrumentIdentifierId, $profileId, $retrieveBinDetails)
6363
6464
Retrieve an Instrument Identifier
6565

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

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

9395
### Return type
9496

@@ -106,7 +108,7 @@ No authorization required
106108
[[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)
107109

108110
# **getInstrumentIdentifierPaymentInstrumentsList**
109-
> \CyberSource\Model\PaymentInstrumentList1 getInstrumentIdentifierPaymentInstrumentsList($instrumentIdentifierId, $profileId, $offset, $limit)
111+
> \CyberSource\Model\PaymentInstrumentList1 getInstrumentIdentifierPaymentInstrumentsList($instrumentIdentifierId, $profileId, $retrieveBinDetails, $offset, $limit)
110112
111113
List Payment Instruments for an Instrument Identifier
112114

@@ -120,11 +122,12 @@ require_once(__DIR__ . '/vendor/autoload.php');
120122
$api_instance = new CyberSource\Api\InstrumentIdentifierApi();
121123
$instrumentIdentifierId = "instrumentIdentifierId_example"; // string | The Id of an Instrument Identifier.
122124
$profileId = "profileId_example"; // string | The Id of a profile containing user specific TMS configuration.
125+
$retrieveBinDetails = true; // bool | Retrieve the Bin Details of PAN or network token
123126
$offset = 0; // int | Starting record in zero-based dataset that should be returned as the first object in the array. Default is 0.
124127
$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.
125128

126129
try {
127-
$result = $api_instance->getInstrumentIdentifierPaymentInstrumentsList($instrumentIdentifierId, $profileId, $offset, $limit);
130+
$result = $api_instance->getInstrumentIdentifierPaymentInstrumentsList($instrumentIdentifierId, $profileId, $retrieveBinDetails, $offset, $limit);
128131
print_r($result);
129132
} catch (Exception $e) {
130133
echo 'Exception when calling InstrumentIdentifierApi->getInstrumentIdentifierPaymentInstrumentsList: ', $e->getMessage(), PHP_EOL;
@@ -138,6 +141,7 @@ Name | Type | Description | Notes
138141
------------- | ------------- | ------------- | -------------
139142
**instrumentIdentifierId** | **string**| The Id of an Instrument Identifier. |
140143
**profileId** | **string**| The Id of a profile containing user specific TMS configuration. | [optional]
144+
**retrieveBinDetails** | **bool**| Retrieve the Bin Details of PAN or network token | [optional]
141145
**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]
142146
**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]
143147

@@ -157,7 +161,7 @@ No authorization required
157161
[[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)
158162

159163
# **patchInstrumentIdentifier**
160-
> \CyberSource\Model\PatchInstrumentIdentifierRequest patchInstrumentIdentifier($instrumentIdentifierId, $patchInstrumentIdentifierRequest, $profileId, $ifMatch)
164+
> \CyberSource\Model\PatchInstrumentIdentifierRequest patchInstrumentIdentifier($instrumentIdentifierId, $patchInstrumentIdentifierRequest, $profileId, $retrieveBinDetails, $ifMatch)
161165
162166
Update an Instrument Identifier
163167

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

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

195201
### Return type
@@ -208,7 +214,7 @@ No authorization required
208214
[[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)
209215

210216
# **postInstrumentIdentifier**
211-
> \CyberSource\Model\PostInstrumentIdentifierRequest postInstrumentIdentifier($postInstrumentIdentifierRequest, $profileId)
217+
> \CyberSource\Model\PostInstrumentIdentifierRequest postInstrumentIdentifier($postInstrumentIdentifierRequest, $profileId, $retrieveBinDetails)
212218
213219
Create an Instrument Identifier
214220

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

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

242250
### Return type
243251

docs/Api/PaymentInstrumentApi.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ No authorization required
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

5959
# **getPaymentInstrument**
60-
> \CyberSource\Model\PostPaymentInstrumentRequest getPaymentInstrument($paymentInstrumentId, $profileId)
60+
> \CyberSource\Model\PostPaymentInstrumentRequest getPaymentInstrument($paymentInstrumentId, $profileId, $retrieveBinDetails)
6161
6262
Retrieve a Payment Instrument
6363

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

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

9193
### Return type
9294

@@ -104,7 +106,7 @@ No authorization required
104106
[[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)
105107

106108
# **patchPaymentInstrument**
107-
> \CyberSource\Model\PatchPaymentInstrumentRequest patchPaymentInstrument($paymentInstrumentId, $patchPaymentInstrumentRequest, $profileId, $ifMatch)
109+
> \CyberSource\Model\PatchPaymentInstrumentRequest patchPaymentInstrument($paymentInstrumentId, $patchPaymentInstrumentRequest, $profileId, $retrieveBinDetails, $ifMatch)
108110
109111
Update a Payment Instrument
110112

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

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

142146
### Return type
@@ -155,7 +159,7 @@ No authorization required
155159
[[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)
156160

157161
# **postPaymentInstrument**
158-
> \CyberSource\Model\PostPaymentInstrumentRequest postPaymentInstrument($postPaymentInstrumentRequest, $profileId)
162+
> \CyberSource\Model\PostPaymentInstrumentRequest postPaymentInstrument($postPaymentInstrumentRequest, $profileId, $retrieveBinDetails)
159163
160164
Create a Payment Instrument
161165

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

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

189195
### Return type
190196

docs/Model/CreatePaymentRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Name | Type | Description | Notes
2929
**riskInformation** | [**\CyberSource\Model\Ptsv2paymentsRiskInformation**](Ptsv2paymentsRiskInformation.md) | | [optional]
3030
**acquirerInformation** | [**\CyberSource\Model\Ptsv2paymentsAcquirerInformation**](Ptsv2paymentsAcquirerInformation.md) | | [optional]
3131
**recurringPaymentInformation** | [**\CyberSource\Model\Ptsv2paymentsRecurringPaymentInformation**](Ptsv2paymentsRecurringPaymentInformation.md) | | [optional]
32+
**unscheduledPaymentInformation** | [**\CyberSource\Model\Ptsv2paymentsUnscheduledPaymentInformation**](Ptsv2paymentsUnscheduledPaymentInformation.md) | | [optional]
3233
**hostedPaymentInformation** | [**\CyberSource\Model\Ptsv2paymentsHostedPaymentInformation**](Ptsv2paymentsHostedPaymentInformation.md) | | [optional]
3334
**watchlistScreeningInformation** | [**\CyberSource\Model\Ptsv2paymentsWatchlistScreeningInformation**](Ptsv2paymentsWatchlistScreeningInformation.md) | | [optional]
3435

docs/Model/GenerateCaptureContextRequest.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**clientVersion** | **string** | Specify the version of Microform that you want to use. | [optional]
77
**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]
8-
**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]
9-
**checkoutApiInitialization** | [**\CyberSource\Model\Microformv2sessionsCheckoutApiInitialization**](Microformv2sessionsCheckoutApiInitialization.md) | | [optional]
8+
**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]
9+
**allowedPaymentTypes** | **string[]** | The payment types that are allowed for the merchant. Possible values when launching Microform: - CARD - CHECK <br><br> | [optional]
1010

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

0 commit comments

Comments
 (0)