Skip to content

Commit 8bafca9

Browse files
authored
Merge pull request #120 from CyberSource/feature/jan23-release
Jan23 release updates
2 parents b519c9d + a79d377 commit 8bafca9

File tree

302 files changed

+35546
-325
lines changed

Some content is hidden

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

302 files changed

+35546
-325
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.37"
34+
"cybersource/rest-client-php": "0.0.38"
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.37",
3+
"version": "0.0.38",
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/PaymentsApi.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Method | HTTP request | Description
66
------------- | ------------- | -------------
77
[**createPayment**](PaymentsApi.md#createPayment) | **POST** /pts/v2/payments | Process a Payment
88
[**incrementAuth**](PaymentsApi.md#incrementAuth) | **PATCH** /pts/v2/payments/{id} | Increment an Authorization
9+
[**refreshPaymentStatus**](PaymentsApi.md#refreshPaymentStatus) | **POST** /pts/v2/refresh-payment-status/{id} | Check a Payment Status
910

1011

1112
# **createPayment**
@@ -100,3 +101,50 @@ No authorization required
100101

101102
[[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)
102103

104+
# **refreshPaymentStatus**
105+
> \CyberSource\Model\PtsV2PaymentsPost201Response1 refreshPaymentStatus($id, $refreshPaymentStatusRequest)
106+
107+
Check a Payment Status
108+
109+
Checks and updates the payment status
110+
111+
### Example
112+
```php
113+
<?php
114+
require_once(__DIR__ . '/vendor/autoload.php');
115+
116+
$api_instance = new CyberSource\Api\PaymentsApi();
117+
$id = "id_example"; // string | The payment id whose status needs to be checked and updated.
118+
$refreshPaymentStatusRequest = new \CyberSource\Model\RefreshPaymentStatusRequest(); // \CyberSource\Model\RefreshPaymentStatusRequest |
119+
120+
try {
121+
$result = $api_instance->refreshPaymentStatus($id, $refreshPaymentStatusRequest);
122+
print_r($result);
123+
} catch (Exception $e) {
124+
echo 'Exception when calling PaymentsApi->refreshPaymentStatus: ', $e->getMessage(), PHP_EOL;
125+
}
126+
?>
127+
```
128+
129+
### Parameters
130+
131+
Name | Type | Description | Notes
132+
------------- | ------------- | ------------- | -------------
133+
**id** | **string**| The payment id whose status needs to be checked and updated. |
134+
**refreshPaymentStatusRequest** | [**\CyberSource\Model\RefreshPaymentStatusRequest**](../Model/RefreshPaymentStatusRequest.md)| |
135+
136+
### Return type
137+
138+
[**\CyberSource\Model\PtsV2PaymentsPost201Response1**](../Model/PtsV2PaymentsPost201Response1.md)
139+
140+
### Authorization
141+
142+
No authorization required
143+
144+
### HTTP request headers
145+
146+
- **Content-Type**: application/json;charset=utf-8
147+
- **Accept**: application/hal+json;charset=utf-8
148+
149+
[[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)
150+

docs/Api/Push_FundsApi.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# CyberSource\Push_FundsApi
2+
3+
All URIs are relative to *https://apitest.cybersource.com*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**createPushFundsTransfer**](Push_FundsApi.md#createPushFundsTransfer) | **POST** /pts/v1/push-funds-transfer | Process a Push Funds Transfer
8+
9+
10+
# **createPushFundsTransfer**
11+
> \CyberSource\Model\PushFunds201Response createPushFundsTransfer($pushFundsRequest, $contentType, $xRequestid, $vCMerchantId, $vCPermissions, $vCCorrelationId, $vCOrganizationId)
12+
13+
Process a Push Funds Transfer
14+
15+
Receive funds using an Original Credit Transaction (OCT).
16+
17+
### Example
18+
```php
19+
<?php
20+
require_once(__DIR__ . '/vendor/autoload.php');
21+
22+
$api_instance = new CyberSource\Api\Push_FundsApi();
23+
$pushFundsRequest = new \CyberSource\Model\PushFundsRequest(); // \CyberSource\Model\PushFundsRequest |
24+
$contentType = "contentType_example"; // string |
25+
$xRequestid = "xRequestid_example"; // string |
26+
$vCMerchantId = "vCMerchantId_example"; // string |
27+
$vCPermissions = "vCPermissions_example"; // string |
28+
$vCCorrelationId = "vCCorrelationId_example"; // string |
29+
$vCOrganizationId = "vCOrganizationId_example"; // string |
30+
31+
try {
32+
$result = $api_instance->createPushFundsTransfer($pushFundsRequest, $contentType, $xRequestid, $vCMerchantId, $vCPermissions, $vCCorrelationId, $vCOrganizationId);
33+
print_r($result);
34+
} catch (Exception $e) {
35+
echo 'Exception when calling Push_FundsApi->createPushFundsTransfer: ', $e->getMessage(), PHP_EOL;
36+
}
37+
?>
38+
```
39+
40+
### Parameters
41+
42+
Name | Type | Description | Notes
43+
------------- | ------------- | ------------- | -------------
44+
**pushFundsRequest** | [**\CyberSource\Model\PushFundsRequest**](../Model/PushFundsRequest.md)| |
45+
**contentType** | **string**| |
46+
**xRequestid** | **string**| |
47+
**vCMerchantId** | **string**| |
48+
**vCPermissions** | **string**| |
49+
**vCCorrelationId** | **string**| |
50+
**vCOrganizationId** | **string**| |
51+
52+
### Return type
53+
54+
[**\CyberSource\Model\PushFunds201Response**](../Model/PushFunds201Response.md)
55+
56+
### Authorization
57+
58+
No authorization required
59+
60+
### HTTP request headers
61+
62+
- **Content-Type**: application/json;charset=utf-8
63+
- **Accept**: application/hal+json;charset=utf-8
64+
65+
[[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)
66+

docs/Model/Invoicingv2invoicesOrderInformationAmountDetailsTaxDetails.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**type** | **string** | Indicates the type of tax data for the _taxDetails_ object. Possible values: - &#x60;alternate&#x60; - &#x60;local&#x60; - &#x60;national&#x60; - &#x60;vat&#x60; - &#x60;other&#x60; For processor-specific details, see the &#x60;alternate_tax_amount&#x60;, &#x60;local_tax&#x60;, &#x60;national_tax&#x60; or &#x60;vat_tax_amount&#x60; field descriptions in [Level II and Level III Processing Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html/) | [optional]
7-
**amount** | **string** | Indicates the amount of tax based on the &#x60;type&#x60; field as described in the table below: | type | type description | | ------------- |:-------------:| | &#x60;alternate&#x60; | Total amount of alternate tax for the order. | | &#x60;local&#x60; | Sales tax for the order. | | &#x60;national&#x60; | National tax for the order. | | &#x60;vat&#x60; | Total amount of value added tax (VAT) included in the order. | | &#x60;other&#x60; | Other tax. | | [optional]
6+
**type** | **string** | Indicates the type of tax data for the _taxDetails_ object. Possible values: - &#x60;alternate&#x60; - &#x60;local&#x60; - &#x60;national&#x60; - &#x60;vat&#x60; - &#x60;other&#x60; - &#x60;green&#x60; For processor-specific details, see the &#x60;alternate_tax_amount&#x60;, &#x60;local_tax&#x60;, &#x60;national_tax&#x60; or &#x60;vat_tax_amount&#x60; field descriptions in [Level II and Level III Processing Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html/) | [optional]
7+
**amount** | **string** | Indicates the amount of tax based on the &#x60;type&#x60; field as described in the table below: | type | type description | | ------------- |:-------------:| | &#x60;alternate&#x60; | Total amount of alternate tax for the order. | | &#x60;local&#x60; | Sales tax for the order. | | &#x60;national&#x60; | National tax for the order. | | &#x60;vat&#x60; | Total amount of value added tax (VAT) included in the order. | | &#x60;other&#x60; | Other tax. | | &#x60;green&#x60; | Green tax amount for Korean Processing. | | [optional]
88
**rate** | **string** | Rate of VAT or other tax for the order. Example 0.040 (&#x3D;4%) Valid range: 0.01 to 0.99 (1% to 99%, with only whole percentage values accepted; values with additional decimal places will be truncated) For processor-specific details, see the &#x60;alternate_tax_amount&#x60;, &#x60;vat_rate&#x60;, &#x60;vat_tax_rate&#x60;, &#x60;local_tax&#x60;, &#x60;national_tax&#x60;, &#x60;vat_tax_amount&#x60; or &#x60;other_tax#_rate&#x60; field descriptions in the [Level II and Level III Processing Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html/) | [optional]
99

1010
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# PtsV2PaymentsPost201Response1
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**id** | **string** | An unique identification number generated by Cybersource to identify the submitted request. Returned by all services. It is also appended to the endpoint of the resource. On incremental authorizations, this value with be the same as the identification number returned in the original authorization response. | [optional]
7+
**status** | **string** | The status of the submitted transaction. Possible values: - AUTHORIZED - PARTIAL_AUTHORIZED - AUTHORIZED_PENDING_REVIEW - AUTHORIZED_RISK_DECLINED - PENDING_AUTHENTICATION - PENDING_REVIEW - DECLINED - INVALID_REQUEST | [optional]
8+
**submitTimeUtc** | **string** | Time of request in UTC. Format: &#x60;YYYY-MM-DDThh:mm:ssZ&#x60; **Example** &#x60;2016-08-11T22:47:57Z&#x60; equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The &#x60;T&#x60; separates the date and the time. The &#x60;Z&#x60; indicates UTC. Returned by Cybersource for all services. | [optional]
9+
**processorInformation** | [**\CyberSource\Model\PtsV2PaymentsPost201Response1ProcessorInformation**](PtsV2PaymentsPost201Response1ProcessorInformation.md) | | [optional]
10+
**reconciliationId** | **string** | Reference number for the transaction. Depending on how your Cybersource account is configured, this value could either be provided in the API request or generated by CyberSource. The actual value used in the request to the processor is provided back to you by Cybersource in the response. | [optional]
11+
**paymentInformation** | [**\CyberSource\Model\PtsV2PaymentsPost201Response1PaymentInformation**](PtsV2PaymentsPost201Response1PaymentInformation.md) | | [optional]
12+
**orderInformation** | [**\CyberSource\Model\PtsV2PaymentsPost201Response1OrderInformation**](PtsV2PaymentsPost201Response1OrderInformation.md) | | [optional]
13+
**clientReferenceInformation** | [**\CyberSource\Model\PtsV2IncrementalAuthorizationPatch201ResponseClientReferenceInformation**](PtsV2IncrementalAuthorizationPatch201ResponseClientReferenceInformation.md) | | [optional]
14+
15+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
16+
17+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# PtsV2PaymentsPost201Response1OrderInformation
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**billTo** | [**\CyberSource\Model\PtsV2PaymentsPost201Response1OrderInformationBillTo**](PtsV2PaymentsPost201Response1OrderInformationBillTo.md) | | [optional]
7+
**shipTo** | [**\CyberSource\Model\PtsV2PaymentsPost201Response1OrderInformationShipTo**](PtsV2PaymentsPost201Response1OrderInformationShipTo.md) | | [optional]
8+
9+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10+
11+

0 commit comments

Comments
 (0)