Skip to content

Commit bb2d03c

Browse files
authored
Merge pull request #63 from CyberSource/dec2020
December 2020 Release
2 parents 9384824 + e63a688 commit bb2d03c

File tree

406 files changed

+2214
-16392
lines changed

Some content is hidden

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

406 files changed

+2214
-16392
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.18"
34+
"cybersource/rest-client-php": "0.0.19"
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.18",
3+
"version": "0.0.19",
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: 49 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Method | HTTP request | Description
99
[**getInstrumentIdentifierPaymentInstrumentsList**](InstrumentIdentifierApi.md#getInstrumentIdentifierPaymentInstrumentsList) | **GET** /tms/v1/instrumentidentifiers/{instrumentIdentifierTokenId}/paymentinstruments | List Payment Instruments for an Instrument Identifier
1010
[**patchInstrumentIdentifier**](InstrumentIdentifierApi.md#patchInstrumentIdentifier) | **PATCH** /tms/v1/instrumentidentifiers/{instrumentIdentifierTokenId} | Update an Instrument Identifier
1111
[**postInstrumentIdentifier**](InstrumentIdentifierApi.md#postInstrumentIdentifier) | **POST** /tms/v1/instrumentidentifiers | Create an Instrument Identifier
12+
[**postInstrumentIdentifierEnrollment**](InstrumentIdentifierApi.md#postInstrumentIdentifierEnrollment) | **POST** /tms/v1/instrumentidentifiers/{instrumentIdentifierTokenId}/enrollment | Enroll an Instrument Identifier for Network Tokenization
1213

1314

1415
# **deleteInstrumentIdentifier**
@@ -209,7 +210,7 @@ Create an Instrument Identifier
209210
require_once(__DIR__ . '/vendor/autoload.php');
210211

211212
$api_instance = new CyberSource\Api\InstrumentIdentifierApi();
212-
$postInstrumentIdentifierRequest = new \CyberSource\Model\PostInstrumentIdentifierRequest(); // \CyberSource\Model\PostInstrumentIdentifierRequest | Please specify either a Card, Bank Account or Enrollable Card
213+
$postInstrumentIdentifierRequest = new \CyberSource\Model\PostInstrumentIdentifierRequest(); // \CyberSource\Model\PostInstrumentIdentifierRequest | Specify either a Card, Bank Account or Enrollable Card
213214
$profileId = "profileId_example"; // string | The id of a profile containing user specific TMS configuration.
214215

215216
try {
@@ -225,7 +226,7 @@ try {
225226

226227
Name | Type | Description | Notes
227228
------------- | ------------- | ------------- | -------------
228-
**postInstrumentIdentifierRequest** | [**\CyberSource\Model\PostInstrumentIdentifierRequest**](../Model/PostInstrumentIdentifierRequest.md)| Please specify either a Card, Bank Account or Enrollable Card |
229+
**postInstrumentIdentifierRequest** | [**\CyberSource\Model\PostInstrumentIdentifierRequest**](../Model/PostInstrumentIdentifierRequest.md)| Specify either a Card, Bank Account or Enrollable Card |
229230
**profileId** | **string**| The id of a profile containing user specific TMS configuration. | [optional]
230231

231232
### Return type
@@ -243,3 +244,49 @@ No authorization required
243244

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

247+
# **postInstrumentIdentifierEnrollment**
248+
> postInstrumentIdentifierEnrollment($instrumentIdentifierTokenId, $postInstrumentIdentifierEnrollmentRequest, $profileId)
249+
250+
Enroll an Instrument Identifier for Network Tokenization
251+
252+
### Example
253+
```php
254+
<?php
255+
require_once(__DIR__ . '/vendor/autoload.php');
256+
257+
$api_instance = new CyberSource\Api\InstrumentIdentifierApi();
258+
$instrumentIdentifierTokenId = "instrumentIdentifierTokenId_example"; // string | The TokenId of a Instrument Identifier.
259+
$postInstrumentIdentifierEnrollmentRequest = new \CyberSource\Model\PostInstrumentIdentifierEnrollmentRequest(); // \CyberSource\Model\PostInstrumentIdentifierEnrollmentRequest | Specify Enrollable Card details
260+
$profileId = "profileId_example"; // string | The id of a profile containing user specific TMS configuration.
261+
262+
try {
263+
$api_instance->postInstrumentIdentifierEnrollment($instrumentIdentifierTokenId, $postInstrumentIdentifierEnrollmentRequest, $profileId);
264+
} catch (Exception $e) {
265+
echo 'Exception when calling InstrumentIdentifierApi->postInstrumentIdentifierEnrollment: ', $e->getMessage(), PHP_EOL;
266+
}
267+
?>
268+
```
269+
270+
### Parameters
271+
272+
Name | Type | Description | Notes
273+
------------- | ------------- | ------------- | -------------
274+
**instrumentIdentifierTokenId** | **string**| The TokenId of a Instrument Identifier. |
275+
**postInstrumentIdentifierEnrollmentRequest** | [**\CyberSource\Model\PostInstrumentIdentifierEnrollmentRequest**](../Model/PostInstrumentIdentifierEnrollmentRequest.md)| Specify Enrollable Card details |
276+
**profileId** | **string**| The id of a profile containing user specific TMS configuration. | [optional]
277+
278+
### Return type
279+
280+
void (empty response body)
281+
282+
### Authorization
283+
284+
No authorization required
285+
286+
### HTTP request headers
287+
288+
- **Content-Type**: application/json;charset=utf-8
289+
- **Accept**: application/json;charset=utf-8
290+
291+
[[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)
292+
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# PostInstrumentIdentifierEnrollmentRequest
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**links** | [**\CyberSource\Model\Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierLinks**](Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierLinks.md) | | [optional]
7+
**id** | **string** | The id of the Instrument Identifier Token. | [optional]
8+
**object** | **string** | The type of token. Valid values: - instrumentIdentifier | [optional]
9+
**state** | **string** | Issuers state for the card number. Valid values: - ACTIVE - CLOSED : The account has been closed. | [optional]
10+
**type** | **string** | The type of Instrument Identifier. Valid values: - enrollable card | [optional]
11+
**card** | [**\CyberSource\Model\Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierCard**](Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierCard.md) | | [optional]
12+
**bankAccount** | [**\CyberSource\Model\Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierBankAccount**](Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierBankAccount.md) | | [optional]
13+
**tokenizedCard** | [**\CyberSource\Model\Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierTokenizedCard**](Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierTokenizedCard.md) | | [optional]
14+
**issuer** | [**\CyberSource\Model\Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierIssuer**](Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierIssuer.md) | | [optional]
15+
**processingInformation** | [**\CyberSource\Model\Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierProcessingInformation**](Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierProcessingInformation.md) | | [optional]
16+
**billTo** | [**\CyberSource\Model\Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierBillTo**](Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierBillTo.md) | | [optional]
17+
**metadata** | [**\CyberSource\Model\Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierMetadata**](Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierMetadata.md) | | [optional]
18+
19+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
20+
21+

docs/Model/TssV2TransactionsGet200ResponseProcessingInformation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**paymentSolution** | **string** | Type of digital payment solution for the transaction. Possible Values: - &#x60;visacheckout&#x60;: Visa Checkout. This value is required for Visa Checkout transactions. For details, see &#x60;payment_solution&#x60; field description in [Visa Checkout Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/VCO_SCMP_API/html/) - &#x60;001&#x60;: Apple Pay. - &#x60;004&#x60;: Cybersource In-App Solution. - &#x60;005&#x60;: Masterpass. This value is required for Masterpass transactions on OmniPay Direct. For details, see \&quot;Masterpass\&quot; in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) - &#x60;006&#x60;: Android Pay. - &#x60;007&#x60;: Chase Pay. - &#x60;008&#x60;: Samsung Pay. - &#x60;012&#x60;: Google Pay. | [optional]
6+
**paymentSolution** | **string** | Type of digital payment solution for the transaction. | [optional]
77
**commerceIndicator** | **string** | Type of transaction. Some payment card companies use this information when determining discount rates. #### Used by **Authorization** Required payer authentication transactions; otherwise, optional. **Credit** Required for standalone credits on Chase Paymentech solutions; otherwise, optional. Only &#x60;internet&#x60;, &#x60;moto&#x60;, &#x60;install&#x60;, &#x60;recurring&#x60;, and &#x60;recurring_internet&#x60; are valid values. #### Ingenico ePayments When you omit this field for Ingenico ePayments, the processor uses the default transaction type they have on file for you instead of the default value (listed in Appendix I, \&quot;Commerce Indicators,\&quot; on page 441.) #### Payer Authentication Transactions For the possible values and requirements, see \&quot;Payer Authentication,\&quot; page 195. #### Other Types of Transactions See Appendix I, \&quot;Commerce Indicators,\&quot; on page 441. #### Card Present You must set this field to &#x60;retail&#x60;. This field is required for a card-present transaction. Note that this should ONLY be used when the cardholder and card are present at the time of the transaction. For all keyed transactions originated from a POS terminal where the cardholder and card are not present, commerceIndicator should be submitted as “moto\&quot; | [optional]
88
**businessApplicationId** | **string** | Payouts transaction type. Required for OCT transactions. This field is a pass-through, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. **Note** When the request includes this field, this value overrides the information in your CyberSource account. For valid values, see the &#x60;invoiceHeader_businessApplicationID&#x60; field description in [Payouts Using the Simple Order API.](http://apps.cybersource.com/library/documentation/dev_guides/payouts_SO/Payouts_SO_API.pdf) | [optional]
99
**authorizationOptions** | [**\CyberSource\Model\TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions**](TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions.md) | | [optional]

docs/Model/V1FileDetailsGet200ResponseFileDetails.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
99
**lastModifiedTime** | [**\DateTime**](\DateTime.md) | Date and time for the file in PST | [optional]
1010
**date** | [**\DateTime**](Date.md) | Date and time for the file in PST | [optional]
1111
**mimeType** | **string** | &#39;File extension&#39; Valid values: - &#39;application/xml&#39; - &#39;text/csv&#39; - &#39;application/pdf&#39; - &#39;application/octet-stream&#39; | [optional]
12-
**size** | **int** | Size of the file in bytes | [optional]
12+
**size** | **float** | Size of the file in bytes | [optional]
1313

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

generator/cybersource-php-template/model_generic.mustache

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -157,18 +157,6 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}} {{/parentSchema}}imple
157157
{{/isContainer}}
158158
{{/isEnum}}
159159
{{#hasValidation}}
160-
{{#maxLength}}
161-
if ({{^required}}!is_null($this->container['{{name}}']) && {{/required}}(strlen($this->container['{{name}}']) > {{maxLength}})) {
162-
$invalid_properties[] = "invalid value for '{{name}}', the character length must be smaller than or equal to {{{maxLength}}}.";
163-
}
164-
165-
{{/maxLength}}
166-
{{#minLength}}
167-
if ({{^required}}!is_null($this->container['{{name}}']) && {{/required}}(strlen($this->container['{{name}}']) < {{minLength}})) {
168-
$invalid_properties[] = "invalid value for '{{name}}', the character length must be bigger than or equal to {{{minLength}}}.";
169-
}
170-
171-
{{/minLength}}
172160
{{#maximum}}
173161
if ({{^required}}!is_null($this->container['{{name}}']) && {{/required}}($this->container['{{name}}'] >{{#exclusiveMaximum}}={{/exclusiveMaximum}} {{maximum}})) {
174162
$invalid_properties[] = "invalid value for '{{name}}', must be smaller than {{^exclusiveMaximum}}or equal to {{/exclusiveMaximum}}{{maximum}}.";
@@ -233,16 +221,6 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}} {{/parentSchema}}imple
233221
{{/isContainer}}
234222
{{/isEnum}}
235223
{{#hasValidation}}
236-
{{#maxLength}}
237-
if (strlen($this->container['{{name}}']) > {{maxLength}}) {
238-
return false;
239-
}
240-
{{/maxLength}}
241-
{{#minLength}}
242-
if (strlen($this->container['{{name}}']) < {{minLength}}) {
243-
return false;
244-
}
245-
{{/minLength}}
246224
{{#maximum}}
247225
if ($this->container['{{name}}'] >{{#exclusiveMaximum}}={{/exclusiveMaximum}} {{maximum}}) {
248226
return false;
@@ -315,15 +293,6 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}} {{/parentSchema}}imple
315293
{{/isContainer}}
316294
{{/isEnum}}
317295
{{#hasValidation}}
318-
{{#maxLength}}
319-
if ({{^required}}!is_null(${{name}}) && {{/required}}(strlen(${{name}}) > {{maxLength}})) {
320-
throw new \InvalidArgumentException('invalid length for ${{name}} when calling {{classname}}.{{operationId}}, must be smaller than or equal to {{maxLength}}.');
321-
}{{/maxLength}}
322-
{{#minLength}}
323-
if ({{^required}}!is_null(${{name}}) && {{/required}}(strlen(${{name}}) < {{minLength}})) {
324-
throw new \InvalidArgumentException('invalid length for ${{name}} when calling {{classname}}.{{operationId}}, must be bigger than or equal to {{minLength}}.');
325-
}
326-
{{/minLength}}
327296
{{#maximum}}
328297
if ({{^required}}!is_null(${{name}}) && {{/required}}(${{name}} >{{#exclusiveMaximum}}={{/exclusiveMaximum}} {{maximum}})) {
329298
throw new \InvalidArgumentException('invalid value for ${{name}} when calling {{classname}}.{{operationId}}, must be smaller than {{^exclusiveMaximum}}or equal to {{/exclusiveMaximum}}{{maximum}}.');

0 commit comments

Comments
 (0)