Skip to content

Commit 8477eea

Browse files
committed
2 parents 67b7f75 + 4d2e959 commit 8477eea

File tree

456 files changed

+189036
-7393
lines changed

Some content is hidden

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

456 files changed

+189036
-7393
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.60"
32+
"cybersource/rest-client-php": "0.0.61"
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.60",
3+
"version": "0.0.61",
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/BatchesApi.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Method | HTTP request | Description
1111

1212

1313
# **getBatchReport**
14-
> \CyberSource\Model\InlineResponse2004 getBatchReport($batchId)
14+
> \CyberSource\Model\InlineResponse2007 getBatchReport($batchId)
1515
1616
Retrieve a Batch Report
1717

@@ -42,7 +42,7 @@ Name | Type | Description | Notes
4242

4343
### Return type
4444

45-
[**\CyberSource\Model\InlineResponse2004**](../Model/InlineResponse2004.md)
45+
[**\CyberSource\Model\InlineResponse2007**](../Model/InlineResponse2007.md)
4646

4747
### Authorization
4848

@@ -56,7 +56,7 @@ No authorization required
5656
[[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)
5757

5858
# **getBatchStatus**
59-
> \CyberSource\Model\InlineResponse2003 getBatchStatus($batchId)
59+
> \CyberSource\Model\InlineResponse2006 getBatchStatus($batchId)
6060
6161
Retrieve a Batch Status
6262

@@ -87,7 +87,7 @@ Name | Type | Description | Notes
8787

8888
### Return type
8989

90-
[**\CyberSource\Model\InlineResponse2003**](../Model/InlineResponse2003.md)
90+
[**\CyberSource\Model\InlineResponse2006**](../Model/InlineResponse2006.md)
9191

9292
### Authorization
9393

@@ -101,7 +101,7 @@ No authorization required
101101
[[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)
102102

103103
# **getBatchesList**
104-
> \CyberSource\Model\InlineResponse2002 getBatchesList($offset, $limit, $fromDate, $toDate)
104+
> \CyberSource\Model\InlineResponse2005 getBatchesList($offset, $limit, $fromDate, $toDate)
105105
106106
List Batches
107107

@@ -138,7 +138,7 @@ Name | Type | Description | Notes
138138

139139
### Return type
140140

141-
[**\CyberSource\Model\InlineResponse2002**](../Model/InlineResponse2002.md)
141+
[**\CyberSource\Model\InlineResponse2005**](../Model/InlineResponse2005.md)
142142

143143
### Authorization
144144

@@ -156,7 +156,7 @@ No authorization required
156156
157157
Create a Batch
158158

159-
**Create a Batch**<br>This resource accepts TMS tokens ids of a Customer, Payment Instrument or Instrument Identifier. <br> The card numbers for the supplied tokens ids are then sent to the relevant card associations to check for updates.<br>The following type of batches can be submitted: - **oneOff** batch containing tokens id for Visa or MasterCard card numbers. - **amexRegistration** batch containing tokens id for Amex card numbers. A batch id will be returned on a successful response which can be used to get the batch status and the batch report.
159+
**Create a Batch**<br>This resource accepts TMS tokens ids of a Customer, Payment Instrument or Instrument Identifier. <br> The card numbers for the supplied tokens ids are then sent to the relevant card associations to check for updates.<br>The following type of batches can be submitted: - **oneOff** batch containing tokens id for Visa or MasterCard card numbers. - **amexRegistration** batch containing tokens id for Amex card numbers. A batch id will be returned on a successful response which can be used to get the batch status and the batch report. The availability of API features for a merchant may depend on the portfolio configuration and may need to be enabled at the portfolio level before they can be added to merchant accounts.
160160

161161
### Example
162162
```php

docs/Api/CreateNewWebhooksApi.md

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,101 @@ All URIs are relative to *https://apitest.cybersource.com*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7+
[**findProductsToSubscribe**](CreateNewWebhooksApi.md#findProductsToSubscribe) | **GET** /notification-subscriptions/v2/products/{organizationId} | Find Products You Can Subscribe To
8+
[**notificationSubscriptionsV2WebhooksPost**](CreateNewWebhooksApi.md#notificationSubscriptionsV2WebhooksPost) | **POST** /notification-subscriptions/v2/webhooks | Create a New Webhook Subscription
79
[**saveSymEgressKey**](CreateNewWebhooksApi.md#saveSymEgressKey) | **POST** /kms/egress/v2/keys-sym | Create Webhook Security Keys
810

911

12+
# **findProductsToSubscribe**
13+
> \CyberSource\Model\InlineResponse2003[] findProductsToSubscribe($organizationId)
14+
15+
Find Products You Can Subscribe To
16+
17+
Retrieve a list of products and event types that your account is eligible for. These products and events are the ones that you may subscribe to in the next step of creating webhooks.
18+
19+
### Example
20+
```php
21+
<?php
22+
require_once(__DIR__ . '/vendor/autoload.php');
23+
24+
$api_instance = new CyberSource\Api\CreateNewWebhooksApi();
25+
$organizationId = "organizationId_example"; // string | The Organization Identifier.
26+
27+
try {
28+
$result = $api_instance->findProductsToSubscribe($organizationId);
29+
print_r($result);
30+
} catch (Exception $e) {
31+
echo 'Exception when calling CreateNewWebhooksApi->findProductsToSubscribe: ', $e->getMessage(), PHP_EOL;
32+
}
33+
?>
34+
```
35+
36+
### Parameters
37+
38+
Name | Type | Description | Notes
39+
------------- | ------------- | ------------- | -------------
40+
**organizationId** | **string**| The Organization Identifier. |
41+
42+
### Return type
43+
44+
[**\CyberSource\Model\InlineResponse2003[]**](../Model/InlineResponse2003.md)
45+
46+
### Authorization
47+
48+
No authorization required
49+
50+
### HTTP request headers
51+
52+
- **Content-Type**: application/json;charset=utf-8
53+
- **Accept**: application/hal+json;charset=utf-8
54+
55+
[[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)
56+
57+
# **notificationSubscriptionsV2WebhooksPost**
58+
> \CyberSource\Model\InlineResponse2014 notificationSubscriptionsV2WebhooksPost($createWebhook)
59+
60+
Create a New Webhook Subscription
61+
62+
Create a new webhook subscription. Before creating a webhook, ensure that a signature key has been created. For the example \"Create Webhook using oAuth with Client Credentials\" - for clients who have more than one oAuth Provider and have different client secrets that they would like to config for a given webhook, they may do so by overriding the keyId inside security config of webhook subscription. See the Developer Center examples section titled \"Webhook Security - Create or Store Egress Symmetric Key - Store oAuth Credentials For Symmetric Key\" to store these oAuth credentials that CYBS will need for oAuth. For JWT authentication, attach your oAuth details to the webhook subscription. See the example \"Create Webhook using oAuth with JWT\"
63+
64+
### Example
65+
```php
66+
<?php
67+
require_once(__DIR__ . '/vendor/autoload.php');
68+
69+
$api_instance = new CyberSource\Api\CreateNewWebhooksApi();
70+
$createWebhook = new \CyberSource\Model\CreateWebhook(); // \CyberSource\Model\CreateWebhook | The webhook payload
71+
72+
try {
73+
$result = $api_instance->notificationSubscriptionsV2WebhooksPost($createWebhook);
74+
print_r($result);
75+
} catch (Exception $e) {
76+
echo 'Exception when calling CreateNewWebhooksApi->notificationSubscriptionsV2WebhooksPost: ', $e->getMessage(), PHP_EOL;
77+
}
78+
?>
79+
```
80+
81+
### Parameters
82+
83+
Name | Type | Description | Notes
84+
------------- | ------------- | ------------- | -------------
85+
**createWebhook** | [**\CyberSource\Model\CreateWebhook**](../Model/CreateWebhook.md)| The webhook payload | [optional]
86+
87+
### Return type
88+
89+
[**\CyberSource\Model\InlineResponse2014**](../Model/InlineResponse2014.md)
90+
91+
### Authorization
92+
93+
No authorization required
94+
95+
### HTTP request headers
96+
97+
- **Content-Type**: application/json;charset=utf-8
98+
- **Accept**: application/hal+json;charset=utf-8
99+
100+
[[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)
101+
10102
# **saveSymEgressKey**
11103
> \CyberSource\Model\InlineResponse2013 saveSymEgressKey($vCSenderOrganizationId, $vCPermissions, $vCCorrelationId, $saveSymEgressKey)
12104

docs/Api/CustomerApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ No authorization required
159159
160160
Create a Customer
161161

162-
| | | | | --- | --- | --- | |**Customers**<br>A Customer represents your tokenized customer information.<br>You should associate the Customer Id with the customer account on your systems.<br>A Customer can have one or more [Payment Instruments](#token-management_customer-payment-instrument_create-a-customer-payment-instrumentl) or [Shipping Addresses](#token-management_customer-shipping-address_create-a-customer-shipping-address) with one allocated as the Customers default.<br><br>**Creating a Customer**<br>It is recommended you [create a Customer via a Payment Authorization](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-with-token-create_authorization-with-customer-token-creation_liveconsole-tab-request-body), this can be for a zero amount.<br>The Customer will be created with a Payment Instrument and Shipping Address.<br>You can also [add additional Payment Instruments to a Customer via a Payment Authorization](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-with-token-create_authorization-create-default-payment-instrument-shipping-address-for-existing-customer_liveconsole-tab-request-body).<br>In Europe: You should perform Payer Authentication alongside the Authorization.|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|**Payment Network Tokens**<br>Network tokens perform better than regular card numbers and they are not necessarily invalidated when a cardholder loses their card, or it expires.<br>A Payment Network Token will be automatically created and used in future payments if you are enabled for the service.<br>A Payment Network Token can also be [provisioned for an existing Instrument Identifier](#token-management_instrument-identifier_enroll-an-instrument-identifier-for-payment-network-token).<br>For more information about Payment Network Tokens see the Developer Guide.<br><br>**Payments with Customers**<br>To perform a payment with the Customers default details specify the [Customer Id in the payments request](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-using-tokens_authorization-with-customer-token-id_liveconsole-tab-request-body).<br>To perform a payment with a particular Payment Instrument or Shipping Address <br>specify the [Payment Instrument or Shipping Address Ids in the payments request](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-using-tokens_authorization-with-customer-payment-instrument-and-shipping-address-token-id_liveconsole-tab-request-body).
162+
| | | | | --- | --- | --- | |**Customers**<br>A Customer represents your tokenized customer information.<br>You should associate the Customer Id with the customer account on your systems.<br>A Customer can have one or more [Payment Instruments](#token-management_customer-payment-instrument_create-a-customer-payment-instrumentl) or [Shipping Addresses](#token-management_customer-shipping-address_create-a-customer-shipping-address) with one allocated as the Customers default.<br><br>**Creating a Customer**<br>It is recommended you [create a Customer via a Payment Authorization](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-with-token-create_authorization-with-customer-token-creation_liveconsole-tab-request-body), this can be for a zero amount.<br>The Customer will be created with a Payment Instrument and Shipping Address.<br>You can also [add additional Payment Instruments to a Customer via a Payment Authorization](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-with-token-create_authorization-create-default-payment-instrument-shipping-address-for-existing-customer_liveconsole-tab-request-body).<br>In Europe: You should perform Payer Authentication alongside the Authorization.|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|**Payment Network Tokens**<br>Network tokens perform better than regular card numbers and they are not necessarily invalidated when a cardholder loses their card, or it expires.<br>A Payment Network Token will be automatically created and used in future payments if you are enabled for the service.<br>A Payment Network Token can also be [provisioned for an existing Instrument Identifier](#token-management_instrument-identifier_enroll-an-instrument-identifier-for-payment-network-token).<br>For more information about Payment Network Tokens see the Developer Guide.<br><br>**Payments with Customers**<br>To perform a payment with the Customers default details specify the [Customer Id in the payments request](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-using-tokens_authorization-with-customer-token-id_liveconsole-tab-request-body).<br>To perform a payment with a particular Payment Instrument or Shipping Address <br>specify the [Payment Instrument or Shipping Address Ids in the payments request](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-using-tokens_authorization-with-customer-payment-instrument-and-shipping-address-token-id_liveconsole-tab-request-body). The availability of API features for a merchant may depend on the portfolio configuration and may need to be enabled at the portfolio level before they can be added to merchant accounts.
163163

164164
### Example
165165
```php

docs/Api/DecisionManagerApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Method | HTTP request | Description
1212

1313

1414
# **actionDecisionManagerCase**
15-
> \CyberSource\Model\InlineResponse200 actionDecisionManagerCase($id, $caseManagementActionsRequest)
15+
> \CyberSource\Model\InlineResponse2001 actionDecisionManagerCase($id, $caseManagementActionsRequest)
1616
1717
Take action on a DM post-transactional case
1818

@@ -45,7 +45,7 @@ Name | Type | Description | Notes
4545

4646
### Return type
4747

48-
[**\CyberSource\Model\InlineResponse200**](../Model/InlineResponse200.md)
48+
[**\CyberSource\Model\InlineResponse2001**](../Model/InlineResponse2001.md)
4949

5050
### Authorization
5151

docs/Api/InvoicesApi.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Method | HTTP request | Description
1717
1818
Create a New Invoice
1919

20-
The invoicing product enables you to bill any customer with an email address and accept digital payments securely from any connected device. You can either use the system generated email or use the invoice payment link in your own communication. You can add discounts and taxes for the entire invoice or for each line item. To customize the invoice to match your brand see [Invoice Settings](https://developer.cybersource.com/api-reference-assets/index.html#invoicing_invoice-settings_update-invoice-settings). The invoice payment page uses Unified Checkout to process the payments.
20+
The invoicing product enables you to bill any customer with an email address and accept digital payments securely from any connected device. You can either use the system generated email or use the invoice payment link in your own communication. You can add discounts and taxes for the entire invoice or for each line item. To customize the invoice to match your brand see [Invoice Settings](https://developer.cybersource.com/api-reference-assets/index.html#invoicing_invoice-settings_update-invoice-settings). The invoice payment page uses Unified Checkout to process the payments. The availability of API features for a merchant can depend on the portfolio configuration and may need to be enabled at the portfolio level before they can be added to merchant accounts.
2121

2222
### Example
2323
```php
@@ -72,7 +72,7 @@ require_once(__DIR__ . '/vendor/autoload.php');
7272
$api_instance = new CyberSource\Api\InvoicesApi();
7373
$offset = 56; // int | Page offset number.
7474
$limit = 56; // int | Maximum number of items you would like returned.
75-
$status = "status_example"; // string | The status of the invoice. Possible values: - DRAFT - CREATED - SENT - PARTIAL - PAID - CANCELED - PENDING
75+
$status = "status_example"; // string | The status of the invoice. Possible values: - DRAFT - CREATED - SENT - PARTIAL - PAID - CANCELED
7676

7777
try {
7878
$result = $api_instance->getAllInvoices($offset, $limit, $status);
@@ -89,7 +89,7 @@ Name | Type | Description | Notes
8989
------------- | ------------- | ------------- | -------------
9090
**offset** | **int**| Page offset number. |
9191
**limit** | **int**| Maximum number of items you would like returned. |
92-
**status** | **string**| The status of the invoice. Possible values: - DRAFT - CREATED - SENT - PARTIAL - PAID - CANCELED - PENDING | [optional]
92+
**status** | **string**| The status of the invoice. Possible values: - DRAFT - CREATED - SENT - PARTIAL - PAID - CANCELED | [optional]
9393

9494
### Return type
9595

@@ -152,7 +152,7 @@ No authorization required
152152
[[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)
153153

154154
# **performCancelAction**
155-
> \CyberSource\Model\InvoicingV2InvoicesPost201Response performCancelAction($id)
155+
> \CyberSource\Model\InvoicingV2InvoicesCancel200Response performCancelAction($id)
156156
157157
Cancel an Invoice
158158

@@ -183,7 +183,7 @@ Name | Type | Description | Notes
183183

184184
### Return type
185185

186-
[**\CyberSource\Model\InvoicingV2InvoicesPost201Response**](../Model/InvoicingV2InvoicesPost201Response.md)
186+
[**\CyberSource\Model\InvoicingV2InvoicesCancel200Response**](../Model/InvoicingV2InvoicesCancel200Response.md)
187187

188188
### Authorization
189189

@@ -197,7 +197,7 @@ No authorization required
197197
[[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)
198198

199199
# **performSendAction**
200-
> \CyberSource\Model\InvoicingV2InvoicesPost201Response performSendAction($id)
200+
> \CyberSource\Model\InvoicingV2InvoicesSend200Response performSendAction($id)
201201
202202
Send an Invoice
203203

@@ -228,7 +228,7 @@ Name | Type | Description | Notes
228228

229229
### Return type
230230

231-
[**\CyberSource\Model\InvoicingV2InvoicesPost201Response**](../Model/InvoicingV2InvoicesPost201Response.md)
231+
[**\CyberSource\Model\InvoicingV2InvoicesSend200Response**](../Model/InvoicingV2InvoicesSend200Response.md)
232232

233233
### Authorization
234234

@@ -242,7 +242,7 @@ No authorization required
242242
[[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)
243243

244244
# **updateInvoice**
245-
> \CyberSource\Model\InvoicingV2InvoicesPost201Response updateInvoice($id, $updateInvoiceRequest)
245+
> \CyberSource\Model\InvoicingV2InvoicesPut200Response updateInvoice($id, $updateInvoiceRequest)
246246
247247
Update an Invoice
248248

@@ -275,7 +275,7 @@ Name | Type | Description | Notes
275275

276276
### Return type
277277

278-
[**\CyberSource\Model\InvoicingV2InvoicesPost201Response**](../Model/InvoicingV2InvoicesPost201Response.md)
278+
[**\CyberSource\Model\InvoicingV2InvoicesPut200Response**](../Model/InvoicingV2InvoicesPut200Response.md)
279279

280280
### Authorization
281281

0 commit comments

Comments
 (0)