forked from LiveCarta/PayPal-PHP-Server-SDK
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
462eda52e0 | ||
|
|
f6cd8b4d4f |
22
LICENSE
22
LICENSE
@@ -1,35 +1,35 @@
|
||||
The PayPal Server SDK is released under the following license:
|
||||
|
||||
Copyright (c) 2024 PAYPAL, INC.
|
||||
Copyright (c) 2024 PAYPAL, INC.
|
||||
|
||||
SDK LICENSE
|
||||
SDK LICENSE
|
||||
|
||||
NOTICE TO USER: PayPal, Inc. is providing the Software and Documentation for use under the terms of this Agreement. Any use, reproduction, modification or distribution of the Software or Documentation, or any derivatives or portions hereof, constitutes your acceptance of this Agreement.
|
||||
As used in this Agreement, "PayPal" means PayPal, Inc. "Software" means the software code accompanying this agreement. "Documentation" means the documents, specifications and all other items accompanying this Agreement other than the Software.
|
||||
As used in this Agreement, "PayPal" means PayPal, Inc. "Software" means the software code accompanying this agreement. "Documentation" means the documents, specifications and all other items accompanying this Agreement other than the Software.
|
||||
|
||||
1. LICENSE GRANT
|
||||
1. LICENSE GRANT
|
||||
Subject to the terms of this Agreement, PayPal hereby grants you a non-exclusive, worldwide, royalty free license to use, reproduce, prepare derivative works from, publicly display, publicly perform, distribute and sublicense the Software for any purpose, other than perpetration of any fraud or violation of any law, statute, ordinance, or regulation (for example, those governing financial services, consumer protections, unfair competition, anti-discrimination or false advertising), provided the copyright notice below appears in a conspicuous location within the source code of the distributed Software and this license is distributed in the supporting documentation of the Software you distribute. Furthermore, you must comply with all third party licenses in order to use the third party software contained in the Software.
|
||||
Subject to the terms of this Agreement, PayPal hereby grants you a non-exclusive, worldwide, royalty free license to use, reproduce, publicly display, publicly perform, distribute and sublicense the Documentation for any purpose, other than perpetration of any fraud or violation of any law, statute, ordinance, or regulation (for example, those governing financial services, consumer protections, unfair competition, anti-discrimination or false advertising). You may not modify the Documentation.
|
||||
No title to the intellectual property in the Software or Documentation is transferred to you under the terms of this Agreement. You do not acquire any rights to the Software or the Documentation except as expressly set forth in this Agreement.
|
||||
Nothing in this Agreement provides you with any right, title, or license to use PayPal’s or any third party’s copyright, patent, trademark, trade secret, or other intellectual property rights, or rights of publicity or privacy, beyond the rights specifically granted herein. You may not infringe PayPal’s or any third party’s copyright, patent, trademark, trade secret, or other intellectual property rights, or rights of publicity or privacy.
|
||||
Nothing in this Agreement provides you with any right, title, or license to use PayPal’s or any third party’s copyright, patent, trademark, trade secret, or other intellectual property rights, or rights of publicity or privacy, beyond the rights specifically granted herein. You may not infringe PayPal’s or any third party’s copyright, patent, trademark, trade secret, or other intellectual property rights, or rights of publicity or privacy.
|
||||
If you choose to distribute the Software in a commercial product, you do so with the understanding that you agree to defend, indemnify and hold harmless PayPal and its suppliers against any losses, damages and costs arising from the claims, lawsuits or other legal actions arising out of such distribution. You may distribute the Software in object code form under your own license, provided that your license agreement:
|
||||
(a) complies with the terms and conditions of this license agreement;
|
||||
(a) complies with the terms and conditions of this license agreement;
|
||||
(b) effectively disclaims all warranties and conditions, express or implied, on behalf of PayPal;
|
||||
(c) effectively excludes all liability for damages on behalf of PayPal;
|
||||
(d) states that any provisions that differ from this Agreement are offered by you alone and not PayPal; and
|
||||
(e) states that the Software is available from you or PayPal and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange.
|
||||
(e) states that the Software is available from you or PayPal and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange.
|
||||
|
||||
2. DISCLAIMER OF WARRANTY
|
||||
PAYPAL LICENSES THE SOFTWARE AND DOCUMENTATION TO YOU ONLY ON AN "AS IS" BASIS WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. PAYPAL MAKES NO WARRANTY THAT THE SOFTWARE OR DOCUMENTATION WILL BE ERROR-FREE. Each user of the Software or Documentation is solely responsible for determining the appropriateness of using and distributing the Software and Documentation and assumes all risks associated with its exercise of rights under this Agreement, including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs, or equipment, and unavailability or interruption of operations. Use of the Software and Documentation is made with the understanding that PayPal will not provide you with any technical or customer support or maintenance. Some states or jurisdictions do not allow the exclusion of implied warranties or limitations on how long an implied warranty may last, so the above limitations may not apply to you. To the extent permissible, any implied warranties are limited to ninety (90) days.
|
||||
|
||||
3. LIMITATION OF LIABILITY
|
||||
PAYPAL AND ITS SUPPLIERS SHALL NOT BE LIABLE FOR LOSS OR DAMAGE ARISING OUT OF THIS AGREEMENT OR FROM THE USE OF THE SOFTWARE OR DOCUMENTATION. IN NO EVENT WILL PAYPAL OR ITS SUPPLIERS BE LIABLE TO YOU OR ANY THIRD PARTY FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, INCIDENTAL, OR SPECIAL DAMAGES INCLUDING LOST PROFITS, LOST SAVINGS, COSTS, FEES, OR EXPENSES OF ANY KIND ARISING OUT OF ANY PROVISION OF THIS AGREEMENT OR THE USE OR THE INABILITY TO USE THE SOFTWARE OR DOCUMENTATION, HOWEVER CAUSED AND UNDER ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY OR TORT INCLUDING NEGLIGENCE (OR OTHERWISE), EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. PAYPAL'S AGGREGATE LIABILITY AND THAT OF ITS SUPPLIERS UNDER OR IN CONNECTION WITH THIS AGREEMENT SHALL BE LIMITED TO THE AMOUNT PAID BY YOU FOR THE SOFTWARE AND DOCUMENTATION.
|
||||
PAYPAL AND ITS SUPPLIERS SHALL NOT BE LIABLE FOR LOSS OR DAMAGE ARISING OUT OF THIS AGREEMENT OR FROM THE USE OF THE SOFTWARE OR DOCUMENTATION. IN NO EVENT WILL PAYPAL OR ITS SUPPLIERS BE LIABLE TO YOU OR ANY THIRD PARTY FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, INCIDENTAL, OR SPECIAL DAMAGES INCLUDING LOST PROFITS, LOST SAVINGS, COSTS, FEES, OR EXPENSES OF ANY KIND ARISING OUT OF ANY PROVISION OF THIS AGREEMENT OR THE USE OR THE INABILITY TO USE THE SOFTWARE OR DOCUMENTATION, HOWEVER CAUSED AND UNDER ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY OR TORT INCLUDING NEGLIGENCE (OR OTHERWISE), EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. PAYPAL'S AGGREGATE LIABILITY AND THAT OF ITS SUPPLIERS UNDER OR IN CONNECTION WITH THIS AGREEMENT SHALL BE LIMITED TO THE AMOUNT PAID BY YOU FOR THE SOFTWARE AND DOCUMENTATION.
|
||||
|
||||
4. TRADEMARK USAGE
|
||||
PayPal is a trademark PayPal, Inc. in the United States and other countries. Such trademarks may not be used to endorse or promote any product unless expressly permitted under separate agreement with PayPal.
|
||||
PayPal is a trademark PayPal, Inc. in the United States and other countries. Such trademarks may not be used to endorse or promote any product unless expressly permitted under separate agreement with PayPal.
|
||||
|
||||
5. TERM
|
||||
Your rights under this Agreement shall terminate if you fail to comply with any of the material terms or conditions of this Agreement and do not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all your rights under this Agreement terminate, you agree to cease use and distribution of the Software and Documentation as soon as reasonably practicable.
|
||||
Your rights under this Agreement shall terminate if you fail to comply with any of the material terms or conditions of this Agreement and do not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all your rights under this Agreement terminate, you agree to cease use and distribution of the Software and Documentation as soon as reasonably practicable.
|
||||
|
||||
6. GOVERNING LAW AND JURISDICTION.
|
||||
6. GOVERNING LAW AND JURISDICTION.
|
||||
This Agreement is governed by the statutes and laws of the State of California, without regard to the conflicts of law principles thereof. If any part of this Agreement is found void and unenforceable, it will not affect the validity of the balance of the Agreement, which shall remain valid and enforceable according to its terms. Any dispute arising out of or related to this Agreement shall be brought in the courts of Santa Clara County, California, USA.
|
||||
51
README.md
51
README.md
@@ -1,24 +1,9 @@
|
||||
|
||||
# Getting Started with PayPal Server SDK
|
||||
# Getting Started with paypal server sdk
|
||||
|
||||
## Introduction
|
||||
|
||||
### ⚠️ Beta Release Notice
|
||||
|
||||
This version is considered a **beta release**. While we have done our best to ensure stability and functionality, there may still be bugs, incomplete features, or breaking changes in future updates.
|
||||
|
||||
#### Important Notes
|
||||
|
||||
- **Available Features:** This SDK currently contains only 3 of PayPal's API endpoints. Additional endpoints and functionality will be added in the future.
|
||||
- **API Changes:** Expect potential changes in APIs and features as we finalize the product.
|
||||
|
||||
### Information
|
||||
|
||||
The PayPal Server SDK provides integration access to the PayPal REST APIs. The API endpoints are divided into distinct controllers:
|
||||
|
||||
- Orders Controller: <a href="https://developer.paypal.com/docs/api/orders/v2/">Orders API v2</a>
|
||||
- Payments Controller: <a href="https://developer.paypal.com/docs/api/payments/v2/">Payments API v2</a>
|
||||
- Vault Controller: <a href="https://developer.paypal.com/docs/api/payment-tokens/v3/">Payment Method Tokens API v3</a> *Available in the US only.*
|
||||
An order represents a payment between two or more parties. Use the Orders API to create, update, retrieve, authorize, and capture orders., Call the Payments API to authorize payments, capture authorized payments, refund payments that have already been captured, and show payment information. Use the Payments API in conjunction with the <a href="/docs/api/orders/v2/">Orders API</a>. For more information, see the <a href="/docs/checkout/">PayPal Checkout Overview</a>., The Payment Method Tokens API saves payment methods so payers don't have to enter details for future transactions. Payers can check out faster or pay without being present after they agree to save a payment method.<br><br>The API associates a payment method with a temporary setup token. Pass the setup token to the API to exchange the setup token for a permanent token.<br><br>The permanent token represents a payment method that's saved to the vault. This token can be used repeatedly for checkout or recurring transactions such as subscriptions.<br><br>The Payment Method Tokens API is available in the US only.
|
||||
|
||||
Find out more here: [https://developer.paypal.com/docs/api/orders/v2/](https://developer.paypal.com/docs/api/orders/v2/)
|
||||
|
||||
@@ -27,23 +12,23 @@ Find out more here: [https://developer.paypal.com/docs/api/orders/v2/](https://d
|
||||
Run the following command to install the package and automatically add the dependency to your composer.json file:
|
||||
|
||||
```php
|
||||
composer require "paypal/paypal-server-sdk:0.6.0"
|
||||
composer require "paypal/paypal-server-sdk:0.5.0"
|
||||
```
|
||||
|
||||
Or add it to the composer.json file manually as given below:
|
||||
|
||||
```php
|
||||
"require": {
|
||||
"paypal/paypal-server-sdk": "0.6.0"
|
||||
"paypal/paypal-server-sdk": "0.5.0"
|
||||
}
|
||||
```
|
||||
|
||||
You can also view the package at:
|
||||
https://packagist.org/packages/paypal/paypal-server-sdk#0.6.0
|
||||
https://packagist.org/packages/paypal/paypal-server-sdk#0.5.0
|
||||
|
||||
## Initialize the API Client
|
||||
|
||||
**_Note:_** Documentation for the client can be found [here.](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.6.0/doc/client.md)
|
||||
**_Note:_** Documentation for the client can be found [here.](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.5.0/doc/client.md)
|
||||
|
||||
The following parameters are configurable for the API Client:
|
||||
|
||||
@@ -59,8 +44,8 @@ The following parameters are configurable for the API Client:
|
||||
| `retryOnTimeout` | `bool` | Whether to retry on request timeout.<br>*Default*: `true` |
|
||||
| `httpStatusCodesToRetry` | `array` | Http status codes to retry against.<br>*Default*: `408, 413, 429, 500, 502, 503, 504, 521, 522, 524` |
|
||||
| `httpMethodsToRetry` | `array` | Http methods to retry against.<br>*Default*: `'GET', 'PUT'` |
|
||||
| `loggingConfiguration` | [`LoggingConfigurationBuilder`](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.6.0/doc/logging-configuration-builder.md) | Represents the logging configurations for API calls |
|
||||
| `clientCredentialsAuth` | [`ClientCredentialsAuth`](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.6.0/doc/auth/oauth-2-client-credentials-grant.md) | The Credentials Setter for OAuth 2 Client Credentials Grant |
|
||||
| `loggingConfiguration` | [`LoggingConfigurationBuilder`](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.5.0/doc/logging-configuration-builder.md) | Represents the logging configurations for API calls |
|
||||
| `clientCredentialsAuth` | [`ClientCredentialsAuth`](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.5.0/doc/auth/oauth-2-client-credentials-grant.md) | The Credentials Setter for OAuth 2 Client Credentials Grant |
|
||||
|
||||
The API client can be initialized as follows:
|
||||
|
||||
@@ -105,20 +90,20 @@ The SDK can be configured to use a different environment for making API calls. A
|
||||
|
||||
This API uses the following authentication schemes.
|
||||
|
||||
* [`Oauth2 (OAuth 2 Client Credentials Grant)`](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.6.0/doc/auth/oauth-2-client-credentials-grant.md)
|
||||
* [`Oauth2 (OAuth 2 Client Credentials Grant)`](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.5.0/doc/auth/oauth-2-client-credentials-grant.md)
|
||||
|
||||
## List of APIs
|
||||
|
||||
* [Orders](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.6.0/doc/controllers/orders.md)
|
||||
* [Payments](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.6.0/doc/controllers/payments.md)
|
||||
* [Vault](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.6.0/doc/controllers/vault.md)
|
||||
* [Orders](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.5.0/doc/controllers/orders.md)
|
||||
* [Payments](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.5.0/doc/controllers/payments.md)
|
||||
* [Vault](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.5.0/doc/controllers/vault.md)
|
||||
|
||||
## Classes Documentation
|
||||
|
||||
* [ApiException](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.6.0/doc/api-exception.md)
|
||||
* [HttpRequest](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.6.0/doc/http-request.md)
|
||||
* [HttpResponse](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.6.0/doc/http-response.md)
|
||||
* [LoggingConfigurationBuilder](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.6.0/doc/logging-configuration-builder.md)
|
||||
* [RequestLoggingConfigurationBuilder](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.6.0/doc/request-logging-configuration-builder.md)
|
||||
* [ResponseLoggingConfigurationBuilder](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.6.0/doc/response-logging-configuration-builder.md)
|
||||
* [ApiException](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.5.0/doc/api-exception.md)
|
||||
* [HttpRequest](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.5.0/doc/http-request.md)
|
||||
* [HttpResponse](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.5.0/doc/http-response.md)
|
||||
* [LoggingConfigurationBuilder](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.5.0/doc/logging-configuration-builder.md)
|
||||
* [RequestLoggingConfigurationBuilder](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.5.0/doc/request-logging-configuration-builder.md)
|
||||
* [ResponseLoggingConfigurationBuilder](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.5.0/doc/response-logging-configuration-builder.md)
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ API calls return an `ApiResponse` object that includes the following fields:
|
||||
| `getHeaders` | Headers of the HTTP response as a Hash |
|
||||
| `getResult` | The deserialized body of the HTTP response as a String |
|
||||
|
||||
## PayPal Server SDK Client
|
||||
## paypal server sdk Client
|
||||
|
||||
The gateway for the SDK. This class acts as a factory for the Controllers and also holds the configuration of the SDK.
|
||||
|
||||
|
||||
@@ -12,110 +12,16 @@ $ordersController = $client->getOrdersController();
|
||||
|
||||
## Methods
|
||||
|
||||
* [Orders Authorize](../../doc/controllers/orders.md#orders-authorize)
|
||||
* [Orders Track Create](../../doc/controllers/orders.md#orders-track-create)
|
||||
* [Orders Create](../../doc/controllers/orders.md#orders-create)
|
||||
* [Orders Patch](../../doc/controllers/orders.md#orders-patch)
|
||||
* [Orders Capture](../../doc/controllers/orders.md#orders-capture)
|
||||
* [Orders Get](../../doc/controllers/orders.md#orders-get)
|
||||
* [Orders Patch](../../doc/controllers/orders.md#orders-patch)
|
||||
* [Orders Confirm](../../doc/controllers/orders.md#orders-confirm)
|
||||
* [Orders Authorize](../../doc/controllers/orders.md#orders-authorize)
|
||||
* [Orders Capture](../../doc/controllers/orders.md#orders-capture)
|
||||
* [Orders Track Create](../../doc/controllers/orders.md#orders-track-create)
|
||||
* [Orders Trackers Patch](../../doc/controllers/orders.md#orders-trackers-patch)
|
||||
|
||||
|
||||
# Orders Authorize
|
||||
|
||||
Authorizes payment for an order. To successfully authorize payment for an order, the buyer must first approve the order or a valid payment_source must be provided in the request. A buyer can approve the order upon being redirected to the rel:approve URL that was returned in the HATEOAS links in the create order response.<blockquote><strong>Note:</strong> For error handling and troubleshooting, see <a href="https://developer.paypal.com/api/rest/reference/orders/v2/errors/#authorize-order">Orders v2 errors</a>.</blockquote>
|
||||
|
||||
```php
|
||||
function ordersAuthorize(array $options): ApiResponse
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Tags | Description |
|
||||
| --- | --- | --- | --- |
|
||||
| `id` | `string` | Template, Required | The ID of the order for which to authorize.<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `36`, *Pattern*: `^[A-Z0-9]+$` |
|
||||
| `paypalRequestId` | `?string` | Header, Optional | The server stores keys for 6 hours. The API callers can request the times to up to 72 hours by speaking to their Account Manager.<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `108` |
|
||||
| `prefer` | `?string` | Header, Optional | The preferred server response upon successful completion of the request. Value is:<ul><li><code>return=minimal</code>. The server returns a minimal response to optimize communication between the API caller and the server. A minimal response includes the <code>id</code>, <code>status</code> and HATEOAS links.</li><li><code>return=representation</code>. The server returns a complete resource representation, including the current state of the resource.</li></ul><br>**Default**: `'return=minimal'`<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `25`, *Pattern*: `^[a-zA-Z=,-]*$` |
|
||||
| `paypalClientMetadataId` | `?string` | Header, Optional | **Constraints**: *Minimum Length*: `1`, *Maximum Length*: `36` |
|
||||
| `paypalAuthAssertion` | `?string` | Header, Optional | An API-caller-provided JSON Web Token (JWT) assertion that identifies the merchant. For details, see <a href="https://developer.paypal.com/api/rest/requests/#paypal-auth-assertion">PayPal-Auth-Assertion</a>. |
|
||||
| `body` | [`?OrderAuthorizeRequest`](../../doc/models/order-authorize-request.md) | Body, Optional | - |
|
||||
|
||||
## Response Type
|
||||
|
||||
This method returns a `PaypalServerSdkLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`OrderAuthorizeResponse`](../../doc/models/order-authorize-response.md).
|
||||
|
||||
## Example Usage
|
||||
|
||||
```php
|
||||
$collect = [
|
||||
'id' => 'id0',
|
||||
'prefer' => 'return=minimal'
|
||||
];
|
||||
|
||||
$apiResponse = $ordersController->ordersAuthorize($collect);
|
||||
```
|
||||
|
||||
## Errors
|
||||
|
||||
| HTTP Status Code | Error Description | Exception Class |
|
||||
| --- | --- | --- |
|
||||
| 400 | Request is not well-formed, syntactically incorrect, or violates schema. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 401 | Authentication failed due to missing authorization header, or invalid authentication credentials. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 403 | The authorized payment failed due to insufficient permissions. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 404 | The specified resource does not exist. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 422 | The requested action could not be performed, semantically incorrect, or failed business validation. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 500 | An internal server error has occurred. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| Default | The error response. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
|
||||
|
||||
# Orders Track Create
|
||||
|
||||
Adds tracking information for an Order.
|
||||
|
||||
```php
|
||||
function ordersTrackCreate(array $options): ApiResponse
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Tags | Description |
|
||||
| --- | --- | --- | --- |
|
||||
| `id` | `string` | Template, Required | The ID of the order that the tracking information is associated with.<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `36`, *Pattern*: `^[A-Z0-9]+$` |
|
||||
| `body` | [`OrderTrackerRequest`](../../doc/models/order-tracker-request.md) | Body, Required | - |
|
||||
| `paypalAuthAssertion` | `?string` | Header, Optional | An API-caller-provided JSON Web Token (JWT) assertion that identifies the merchant. For details, see <a href="https://developer.paypal.com/api/rest/requests/#paypal-auth-assertion">PayPal-Auth-Assertion</a>. |
|
||||
|
||||
## Response Type
|
||||
|
||||
This method returns a `PaypalServerSdkLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`Order`](../../doc/models/order.md).
|
||||
|
||||
## Example Usage
|
||||
|
||||
```php
|
||||
$collect = [
|
||||
'id' => 'id0',
|
||||
'body' => OrderTrackerRequestBuilder::init(
|
||||
'capture_id8'
|
||||
)
|
||||
->notifyPayer(false)
|
||||
->build()
|
||||
];
|
||||
|
||||
$apiResponse = $ordersController->ordersTrackCreate($collect);
|
||||
```
|
||||
|
||||
## Errors
|
||||
|
||||
| HTTP Status Code | Error Description | Exception Class |
|
||||
| --- | --- | --- |
|
||||
| 400 | Request is not well-formed, syntactically incorrect, or violates schema. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 403 | Authorization failed due to insufficient permissions. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 404 | The specified resource does not exist. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 422 | The requested action could not be performed, semantically incorrect, or failed business validation. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 500 | An internal server error has occurred. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| Default | The error response. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
|
||||
|
||||
# Orders Create
|
||||
|
||||
Creates an order. Merchants and partners can add Level 2 and 3 data to payments to reduce risk and payment processing costs. For more information about processing payments, see <a href="https://developer.paypal.com/docs/checkout/advanced/processing/">checkout</a> or <a href="https://developer.paypal.com/docs/multiparty/checkout/advanced/processing/">multiparty checkout</a>.<blockquote><strong>Note:</strong> For error handling and troubleshooting, see <a href="https://developer.paypal.com/api/rest/reference/orders/v2/errors/#create-order">Orders v2 errors</a>.</blockquote>
|
||||
@@ -129,9 +35,9 @@ function ordersCreate(array $options): ApiResponse
|
||||
| Parameter | Type | Tags | Description |
|
||||
| --- | --- | --- | --- |
|
||||
| `body` | [`OrderRequest`](../../doc/models/order-request.md) | Body, Required | - |
|
||||
| `paypalRequestId` | `?string` | Header, Optional | The server stores keys for 6 hours. The API callers can request the times to up to 72 hours by speaking to their Account Manager.<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `108` |
|
||||
| `paypalPartnerAttributionId` | `?string` | Header, Optional | **Constraints**: *Minimum Length*: `1`, *Maximum Length*: `36` |
|
||||
| `paypalClientMetadataId` | `?string` | Header, Optional | **Constraints**: *Minimum Length*: `1`, *Maximum Length*: `36` |
|
||||
| `payPalRequestId` | `?string` | Header, Optional | The server stores keys for 6 hours. The API callers can request the times to up to 72 hours by speaking to their Account Manager.<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `108` |
|
||||
| `payPalPartnerAttributionId` | `?string` | Header, Optional | **Constraints**: *Minimum Length*: `1`, *Maximum Length*: `36` |
|
||||
| `payPalClientMetadataId` | `?string` | Header, Optional | **Constraints**: *Minimum Length*: `1`, *Maximum Length*: `36` |
|
||||
| `prefer` | `?string` | Header, Optional | The preferred server response upon successful completion of the request. Value is:<ul><li><code>return=minimal</code>. The server returns a minimal response to optimize communication between the API caller and the server. A minimal response includes the <code>id</code>, <code>status</code> and HATEOAS links.</li><li><code>return=representation</code>. The server returns a complete resource representation, including the current state of the resource.</li></ul><br>**Default**: `'return=minimal'`<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `25`, *Pattern*: `^[a-zA-Z=,-]*$` |
|
||||
|
||||
## Response Type
|
||||
@@ -169,6 +75,44 @@ $apiResponse = $ordersController->ordersCreate($collect);
|
||||
| Default | The error response. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
|
||||
|
||||
# Orders Get
|
||||
|
||||
Shows details for an order, by ID.<blockquote><strong>Note:</strong> For error handling and troubleshooting, see <a href="https://developer.paypal.com/api/rest/reference/orders/v2/errors/#get-order">Orders v2 errors</a>.</blockquote>
|
||||
|
||||
```php
|
||||
function ordersGet(array $options): ApiResponse
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Tags | Description |
|
||||
| --- | --- | --- | --- |
|
||||
| `id` | `string` | Template, Required | The ID of the order for which to show details.<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `36`, *Pattern*: `^[A-Z0-9]+$` |
|
||||
| `fields` | `?string` | Query, Optional | A comma-separated list of fields that should be returned for the order. Valid filter field is `payment_source`.<br>**Constraints**: *Pattern*: `^[a-z_]*$` |
|
||||
|
||||
## Response Type
|
||||
|
||||
This method returns a `PaypalServerSdkLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`Order`](../../doc/models/order.md).
|
||||
|
||||
## Example Usage
|
||||
|
||||
```php
|
||||
$collect = [
|
||||
'id' => 'id0'
|
||||
];
|
||||
|
||||
$apiResponse = $ordersController->ordersGet($collect);
|
||||
```
|
||||
|
||||
## Errors
|
||||
|
||||
| HTTP Status Code | Error Description | Exception Class |
|
||||
| --- | --- | --- |
|
||||
| 401 | Authentication failed due to missing authorization header, or invalid authentication credentials. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 404 | The specified resource does not exist. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| Default | The error response. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
|
||||
|
||||
# Orders Patch
|
||||
|
||||
Updates an order with a `CREATED` or `APPROVED` status. You cannot update an order with the `COMPLETED` status.<br/><br/>To make an update, you must provide a `reference_id`. If you omit this value with an order that contains only one purchase unit, PayPal sets the value to `default` which enables you to use the path: <code>\"/purchase_units/@reference_id=='default'/{attribute-or-object}\"</code>. Merchants and partners can add Level 2 and 3 data to payments to reduce risk and payment processing costs. For more information about processing payments, see <a href="https://developer.paypal.com/docs/checkout/advanced/processing/">checkout</a> or <a href="https://developer.paypal.com/docs/multiparty/checkout/advanced/processing/">multiparty checkout</a>.<blockquote><strong>Note:</strong> For error handling and troubleshooting, see <a href="https://developer.paypal.com/api/rest/reference/orders/v2/errors/#patch-order">Orders v2 errors</a>.</blockquote>Patchable attributes or objects:<br/><br/><table><thead><th>Attribute</th><th>Op</th><th>Notes</th></thead><tbody><tr><td><code>intent</code></td><td>replace</td><td></td></tr><tr><td><code>payer</code></td><td>replace, add</td><td>Using replace op for <code>payer</code> will replace the whole <code>payer</code> object with the value sent in request.</td></tr><tr><td><code>purchase_units</code></td><td>replace, add</td><td></td></tr><tr><td><code>purchase_units[].custom_id</code></td><td>replace, add, remove</td><td></td></tr><tr><td><code>purchase_units[].description</code></td><td>replace, add, remove</td><td></td></tr><tr><td><code>purchase_units[].payee.email</code></td><td>replace</td><td></td></tr><tr><td><code>purchase_units[].shipping.name</code></td><td>replace, add</td><td></td></tr><tr><td><code>purchase_units[].shipping.email_address</code></td><td>replace, add</td><td></td></tr><tr><td><code>purchase_units[].shipping.phone_number</code></td><td>replace, add</td><td></td></tr><tr><td><code>purchase_units[].shipping.options</code></td><td>replace, add</td><td></td></tr><tr><td><code>purchase_units[].shipping.address</code></td><td>replace, add</td><td></td></tr><tr><td><code>purchase_units[].shipping.type</code></td><td>replace, add</td><td></td></tr><tr><td><code>purchase_units[].soft_descriptor</code></td><td>replace, remove</td><td></td></tr><tr><td><code>purchase_units[].amount</code></td><td>replace</td><td></td></tr><tr><td><code>purchase_units[].items</code></td><td>replace, add, remove</td><td></td></tr><tr><td><code>purchase_units[].invoice_id</code></td><td>replace, add, remove</td><td></td></tr><tr><td><code>purchase_units[].payment_instruction</code></td><td>replace</td><td></td></tr><tr><td><code>purchase_units[].payment_instruction.disbursement_mode</code></td><td>replace</td><td>By default, <code>disbursement_mode</code> is <code>INSTANT</code>.</td></tr><tr><td><code>purchase_units[].payment_instruction.payee_receivable_fx_rate_id</code></td><td>replace, add, remove</td><td></td></tr><tr><td><code>purchase_units[].payment_instruction.platform_fees</code></td><td>replace, add, remove</td><td></td></tr><tr><td><code>purchase_units[].supplementary_data.airline</code></td><td>replace, add, remove</td><td></td></tr><tr><td><code>purchase_units[].supplementary_data.card</code></td><td>replace, add, remove</td><td></td></tr><tr><td><code>application_context.client_configuration</code></td><td>replace, add</td><td></td></tr></tbody></table>
|
||||
@@ -214,6 +158,101 @@ $apiResponse = $ordersController->ordersPatch($collect);
|
||||
| Default | The error response. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
|
||||
|
||||
# Orders Confirm
|
||||
|
||||
Payer confirms their intent to pay for the the Order with the given payment source.
|
||||
|
||||
```php
|
||||
function ordersConfirm(array $options): ApiResponse
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Tags | Description |
|
||||
| --- | --- | --- | --- |
|
||||
| `id` | `string` | Template, Required | The ID of the order for which the payer confirms their intent to pay.<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `36`, *Pattern*: `^[A-Z0-9]+$` |
|
||||
| `payPalClientMetadataId` | `?string` | Header, Optional | **Constraints**: *Minimum Length*: `1`, *Maximum Length*: `36` |
|
||||
| `prefer` | `?string` | Header, Optional | The preferred server response upon successful completion of the request. Value is:<ul><li><code>return=minimal</code>. The server returns a minimal response to optimize communication between the API caller and the server. A minimal response includes the <code>id</code>, <code>status</code> and HATEOAS links.</li><li><code>return=representation</code>. The server returns a complete resource representation, including the current state of the resource.</li></ul><br>**Default**: `'return=minimal'`<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `25`, *Pattern*: `^[a-zA-Z=]*$` |
|
||||
| `body` | [`?ConfirmOrderRequest`](../../doc/models/confirm-order-request.md) | Body, Optional | - |
|
||||
|
||||
## Response Type
|
||||
|
||||
This method returns a `PaypalServerSdkLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`Order`](../../doc/models/order.md).
|
||||
|
||||
## Example Usage
|
||||
|
||||
```php
|
||||
$collect = [
|
||||
'id' => 'id0',
|
||||
'prefer' => 'return=minimal',
|
||||
'body' => ConfirmOrderRequestBuilder::init(
|
||||
PaymentSourceBuilder::init()->build()
|
||||
)
|
||||
->processingInstruction(ProcessingInstruction::NO_INSTRUCTION)
|
||||
->build()
|
||||
];
|
||||
|
||||
$apiResponse = $ordersController->ordersConfirm($collect);
|
||||
```
|
||||
|
||||
## Errors
|
||||
|
||||
| HTTP Status Code | Error Description | Exception Class |
|
||||
| --- | --- | --- |
|
||||
| 400 | Request is not well-formed, syntactically incorrect, or violates schema. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 403 | Authorization failed due to insufficient permissions. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 422 | The requested action could not be performed, semantically incorrect, or failed business validation. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 500 | An internal server error has occurred. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| Default | The error response. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
|
||||
|
||||
# Orders Authorize
|
||||
|
||||
Authorizes payment for an order. To successfully authorize payment for an order, the buyer must first approve the order or a valid payment_source must be provided in the request. A buyer can approve the order upon being redirected to the rel:approve URL that was returned in the HATEOAS links in the create order response.<blockquote><strong>Note:</strong> For error handling and troubleshooting, see <a href="https://developer.paypal.com/api/rest/reference/orders/v2/errors/#authorize-order">Orders v2 errors</a>.</blockquote>
|
||||
|
||||
```php
|
||||
function ordersAuthorize(array $options): ApiResponse
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Tags | Description |
|
||||
| --- | --- | --- | --- |
|
||||
| `id` | `string` | Template, Required | The ID of the order for which to authorize.<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `36`, *Pattern*: `^[A-Z0-9]+$` |
|
||||
| `payPalRequestId` | `?string` | Header, Optional | The server stores keys for 6 hours. The API callers can request the times to up to 72 hours by speaking to their Account Manager.<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `108` |
|
||||
| `prefer` | `?string` | Header, Optional | The preferred server response upon successful completion of the request. Value is:<ul><li><code>return=minimal</code>. The server returns a minimal response to optimize communication between the API caller and the server. A minimal response includes the <code>id</code>, <code>status</code> and HATEOAS links.</li><li><code>return=representation</code>. The server returns a complete resource representation, including the current state of the resource.</li></ul><br>**Default**: `'return=minimal'`<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `25`, *Pattern*: `^[a-zA-Z=,-]*$` |
|
||||
| `payPalClientMetadataId` | `?string` | Header, Optional | **Constraints**: *Minimum Length*: `1`, *Maximum Length*: `36` |
|
||||
| `payPalAuthAssertion` | `?string` | Header, Optional | An API-caller-provided JSON Web Token (JWT) assertion that identifies the merchant. For details, see <a href="https://developer.paypal.com/api/rest/requests/#paypal-auth-assertion">PayPal-Auth-Assertion</a>. |
|
||||
| `body` | [`?OrderAuthorizeRequest`](../../doc/models/order-authorize-request.md) | Body, Optional | - |
|
||||
|
||||
## Response Type
|
||||
|
||||
This method returns a `PaypalServerSdkLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`OrderAuthorizeResponse`](../../doc/models/order-authorize-response.md).
|
||||
|
||||
## Example Usage
|
||||
|
||||
```php
|
||||
$collect = [
|
||||
'id' => 'id0',
|
||||
'prefer' => 'return=minimal'
|
||||
];
|
||||
|
||||
$apiResponse = $ordersController->ordersAuthorize($collect);
|
||||
```
|
||||
|
||||
## Errors
|
||||
|
||||
| HTTP Status Code | Error Description | Exception Class |
|
||||
| --- | --- | --- |
|
||||
| 400 | Request is not well-formed, syntactically incorrect, or violates schema. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 401 | Authentication failed due to missing authorization header, or invalid authentication credentials. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 403 | The authorized payment failed due to insufficient permissions. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 404 | The specified resource does not exist. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 422 | The requested action could not be performed, semantically incorrect, or failed business validation. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 500 | An internal server error has occurred. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| Default | The error response. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
|
||||
|
||||
# Orders Capture
|
||||
|
||||
Captures payment for an order. To successfully capture payment for an order, the buyer must first approve the order or a valid payment_source must be provided in the request. A buyer can approve the order upon being redirected to the rel:approve URL that was returned in the HATEOAS links in the create order response.<blockquote><strong>Note:</strong> For error handling and troubleshooting, see <a href="https://developer.paypal.com/api/rest/reference/orders/v2/errors/#capture-order">Orders v2 errors</a>.</blockquote>
|
||||
@@ -227,10 +266,10 @@ function ordersCapture(array $options): ApiResponse
|
||||
| Parameter | Type | Tags | Description |
|
||||
| --- | --- | --- | --- |
|
||||
| `id` | `string` | Template, Required | The ID of the order for which to capture a payment.<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `36`, *Pattern*: `^[A-Z0-9]+$` |
|
||||
| `paypalRequestId` | `?string` | Header, Optional | The server stores keys for 6 hours. The API callers can request the times to up to 72 hours by speaking to their Account Manager.<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `108` |
|
||||
| `payPalRequestId` | `?string` | Header, Optional | The server stores keys for 6 hours. The API callers can request the times to up to 72 hours by speaking to their Account Manager.<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `108` |
|
||||
| `prefer` | `?string` | Header, Optional | The preferred server response upon successful completion of the request. Value is:<ul><li><code>return=minimal</code>. The server returns a minimal response to optimize communication between the API caller and the server. A minimal response includes the <code>id</code>, <code>status</code> and HATEOAS links.</li><li><code>return=representation</code>. The server returns a complete resource representation, including the current state of the resource.</li></ul><br>**Default**: `'return=minimal'`<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `25`, *Pattern*: `^[a-zA-Z=,-]*$` |
|
||||
| `paypalClientMetadataId` | `?string` | Header, Optional | **Constraints**: *Minimum Length*: `1`, *Maximum Length*: `36` |
|
||||
| `paypalAuthAssertion` | `?string` | Header, Optional | An API-caller-provided JSON Web Token (JWT) assertion that identifies the merchant. For details, see <a href="https://developer.paypal.com/api/rest/requests/#paypal-auth-assertion">PayPal-Auth-Assertion</a>. |
|
||||
| `payPalClientMetadataId` | `?string` | Header, Optional | **Constraints**: *Minimum Length*: `1`, *Maximum Length*: `36` |
|
||||
| `payPalAuthAssertion` | `?string` | Header, Optional | An API-caller-provided JSON Web Token (JWT) assertion that identifies the merchant. For details, see <a href="https://developer.paypal.com/api/rest/requests/#paypal-auth-assertion">PayPal-Auth-Assertion</a>. |
|
||||
| `body` | [`?OrderCaptureRequest`](../../doc/models/order-capture-request.md) | Body, Optional | - |
|
||||
|
||||
## Response Type
|
||||
@@ -261,60 +300,21 @@ $apiResponse = $ordersController->ordersCapture($collect);
|
||||
| Default | The error response. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
|
||||
|
||||
# Orders Get
|
||||
# Orders Track Create
|
||||
|
||||
Shows details for an order, by ID.<blockquote><strong>Note:</strong> For error handling and troubleshooting, see <a href="https://developer.paypal.com/api/rest/reference/orders/v2/errors/#get-order">Orders v2 errors</a>.</blockquote>
|
||||
Adds tracking information for an Order.
|
||||
|
||||
```php
|
||||
function ordersGet(array $options): ApiResponse
|
||||
function ordersTrackCreate(array $options): ApiResponse
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Tags | Description |
|
||||
| --- | --- | --- | --- |
|
||||
| `id` | `string` | Template, Required | The ID of the order for which to show details.<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `36`, *Pattern*: `^[A-Z0-9]+$` |
|
||||
| `fields` | `?string` | Query, Optional | A comma-separated list of fields that should be returned for the order. Valid filter field is `payment_source`.<br>**Constraints**: *Pattern*: `^[a-z_]*$` |
|
||||
|
||||
## Response Type
|
||||
|
||||
This method returns a `PaypalServerSdkLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`Order`](../../doc/models/order.md).
|
||||
|
||||
## Example Usage
|
||||
|
||||
```php
|
||||
$collect = [
|
||||
'id' => 'id0'
|
||||
];
|
||||
|
||||
$apiResponse = $ordersController->ordersGet($collect);
|
||||
```
|
||||
|
||||
## Errors
|
||||
|
||||
| HTTP Status Code | Error Description | Exception Class |
|
||||
| --- | --- | --- |
|
||||
| 401 | Authentication failed due to missing authorization header, or invalid authentication credentials. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 404 | The specified resource does not exist. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| Default | The error response. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
|
||||
|
||||
# Orders Confirm
|
||||
|
||||
Payer confirms their intent to pay for the the Order with the given payment source.
|
||||
|
||||
```php
|
||||
function ordersConfirm(array $options): ApiResponse
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Tags | Description |
|
||||
| --- | --- | --- | --- |
|
||||
| `id` | `string` | Template, Required | The ID of the order for which the payer confirms their intent to pay.<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `36`, *Pattern*: `^[A-Z0-9]+$` |
|
||||
| `paypalClientMetadataId` | `?string` | Header, Optional | **Constraints**: *Minimum Length*: `1`, *Maximum Length*: `36` |
|
||||
| `prefer` | `?string` | Header, Optional | The preferred server response upon successful completion of the request. Value is:<ul><li><code>return=minimal</code>. The server returns a minimal response to optimize communication between the API caller and the server. A minimal response includes the <code>id</code>, <code>status</code> and HATEOAS links.</li><li><code>return=representation</code>. The server returns a complete resource representation, including the current state of the resource.</li></ul><br>**Default**: `'return=minimal'`<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `25`, *Pattern*: `^[a-zA-Z=]*$` |
|
||||
| `body` | [`?ConfirmOrderRequest`](../../doc/models/confirm-order-request.md) | Body, Optional | - |
|
||||
| `id` | `string` | Template, Required | The ID of the order that the tracking information is associated with.<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `36`, *Pattern*: `^[A-Z0-9]+$` |
|
||||
| `body` | [`OrderTrackerRequest`](../../doc/models/order-tracker-request.md) | Body, Required | - |
|
||||
| `payPalAuthAssertion` | `?string` | Header, Optional | An API-caller-provided JSON Web Token (JWT) assertion that identifies the merchant. For details, see <a href="https://developer.paypal.com/api/rest/requests/#paypal-auth-assertion">PayPal-Auth-Assertion</a>. |
|
||||
|
||||
## Response Type
|
||||
|
||||
@@ -325,15 +325,14 @@ This method returns a `PaypalServerSdkLib\Utils\ApiResponse` instance. The `getR
|
||||
```php
|
||||
$collect = [
|
||||
'id' => 'id0',
|
||||
'prefer' => 'return=minimal',
|
||||
'body' => ConfirmOrderRequestBuilder::init(
|
||||
PaymentSourceBuilder::init()->build()
|
||||
'body' => OrderTrackerRequestBuilder::init(
|
||||
'capture_id8'
|
||||
)
|
||||
->processingInstruction(ProcessingInstruction::NO_INSTRUCTION)
|
||||
->notifyPayer(false)
|
||||
->build()
|
||||
];
|
||||
|
||||
$apiResponse = $ordersController->ordersConfirm($collect);
|
||||
$apiResponse = $ordersController->ordersTrackCreate($collect);
|
||||
```
|
||||
|
||||
## Errors
|
||||
@@ -342,6 +341,7 @@ $apiResponse = $ordersController->ordersConfirm($collect);
|
||||
| --- | --- | --- |
|
||||
| 400 | Request is not well-formed, syntactically incorrect, or violates schema. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 403 | Authorization failed due to insufficient permissions. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 404 | The specified resource does not exist. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 422 | The requested action could not be performed, semantically incorrect, or failed business validation. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 500 | An internal server error has occurred. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| Default | The error response. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
|
||||
@@ -14,8 +14,8 @@ $paymentsController = $client->getPaymentsController();
|
||||
|
||||
* [Authorizations Get](../../doc/controllers/payments.md#authorizations-get)
|
||||
* [Authorizations Capture](../../doc/controllers/payments.md#authorizations-capture)
|
||||
* [Authorizations Void](../../doc/controllers/payments.md#authorizations-void)
|
||||
* [Authorizations Reauthorize](../../doc/controllers/payments.md#authorizations-reauthorize)
|
||||
* [Authorizations Void](../../doc/controllers/payments.md#authorizations-void)
|
||||
* [Captures Get](../../doc/controllers/payments.md#captures-get)
|
||||
* [Captures Refund](../../doc/controllers/payments.md#captures-refund)
|
||||
* [Refunds Get](../../doc/controllers/payments.md#refunds-get)
|
||||
@@ -71,7 +71,7 @@ function authorizationsCapture(array $options): ApiResponse
|
||||
| Parameter | Type | Tags | Description |
|
||||
| --- | --- | --- | --- |
|
||||
| `authorizationId` | `string` | Template, Required | The PayPal-generated ID for the authorized payment to capture. |
|
||||
| `paypalRequestId` | `?string` | Header, Optional | The server stores keys for 45 days. |
|
||||
| `payPalRequestId` | `?string` | Header, Optional | The server stores keys for 45 days. |
|
||||
| `prefer` | `?string` | Header, Optional | The preferred server response upon successful completion of the request. Value is:<ul><li><code>return=minimal</code>. The server returns a minimal response to optimize communication between the API caller and the server. A minimal response includes the <code>id</code>, <code>status</code> and HATEOAS links.</li><li><code>return=representation</code>. The server returns a complete resource representation, including the current state of the resource.</li></ul><br>**Default**: `'return=minimal'` |
|
||||
| `body` | [`?CaptureRequest`](../../doc/models/capture-request.md) | Body, Optional | - |
|
||||
|
||||
@@ -107,51 +107,6 @@ $apiResponse = $paymentsController->authorizationsCapture($collect);
|
||||
| Default | The error response. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
|
||||
|
||||
# Authorizations Void
|
||||
|
||||
Voids, or cancels, an authorized payment, by ID. You cannot void an authorized payment that has been fully captured.
|
||||
|
||||
```php
|
||||
function authorizationsVoid(array $options): ApiResponse
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Tags | Description |
|
||||
| --- | --- | --- | --- |
|
||||
| `authorizationId` | `string` | Template, Required | The PayPal-generated ID for the authorized payment to void. |
|
||||
| `paypalAuthAssertion` | `?string` | Header, Optional | An API-caller-provided JSON Web Token (JWT) assertion that identifies the merchant. For details, see [PayPal-Auth-Assertion](/docs/api/reference/api-requests/#paypal-auth-assertion).<blockquote><strong>Note:</strong>For three party transactions in which a partner is managing the API calls on behalf of a merchant, the partner must identify the merchant using either a PayPal-Auth-Assertion header or an access token with target_subject.</blockquote> |
|
||||
| `prefer` | `?string` | Header, Optional | The preferred server response upon successful completion of the request. Value is:<ul><li><code>return=minimal</code>. The server returns a minimal response to optimize communication between the API caller and the server. A minimal response includes the <code>id</code>, <code>status</code> and HATEOAS links.</li><li><code>return=representation</code>. The server returns a complete resource representation, including the current state of the resource.</li></ul><br>**Default**: `'return=minimal'` |
|
||||
|
||||
## Response Type
|
||||
|
||||
This method returns a `PaypalServerSdkLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`?PaymentAuthorization`](../../doc/models/payment-authorization.md).
|
||||
|
||||
## Example Usage
|
||||
|
||||
```php
|
||||
$collect = [
|
||||
'authorizationId' => 'authorization_id8',
|
||||
'prefer' => 'return=minimal'
|
||||
];
|
||||
|
||||
$apiResponse = $paymentsController->authorizationsVoid($collect);
|
||||
```
|
||||
|
||||
## Errors
|
||||
|
||||
| HTTP Status Code | Error Description | Exception Class |
|
||||
| --- | --- | --- |
|
||||
| 400 | The request failed because it is not well-formed or is syntactically incorrect or violates schema. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 401 | Authentication failed due to missing authorization header, or invalid authentication credentials. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 403 | The request failed because the caller has insufficient permissions. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 404 | The request failed because the resource does not exist. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 409 | The request failed because a previous call for the given resource is in progress. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 422 | The request failed because it either is semantically incorrect or failed business validation. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 500 | The request failed because an internal server error occurred. | `ApiException` |
|
||||
| Default | The error response. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
|
||||
|
||||
# Authorizations Reauthorize
|
||||
|
||||
Reauthorizes an authorized PayPal account payment, by ID. To ensure that funds are still available, reauthorize a payment after its initial three-day honor period expires. Within the 29-day authorization period, you can issue multiple re-authorizations after the honor period expires.<br/><br/>If 30 days have transpired since the date of the original authorization, you must create an authorized payment instead of reauthorizing the original authorized payment.<br/><br/>A reauthorized payment itself has a new honor period of three days.<br/><br/>You can reauthorize an authorized payment from 4 to 29 days after the 3-day honor period. The allowed amount depends on context and geography, for example in US it is up to 115% of the original authorized amount, not to exceed an increase of $75 USD.<br/><br/>Supports only the `amount` request parameter.<blockquote><strong>Note:</strong> This request is currently not supported for Partner use cases.</blockquote>
|
||||
@@ -165,7 +120,7 @@ function authorizationsReauthorize(array $options): ApiResponse
|
||||
| Parameter | Type | Tags | Description |
|
||||
| --- | --- | --- | --- |
|
||||
| `authorizationId` | `string` | Template, Required | The PayPal-generated ID for the authorized payment to reauthorize. |
|
||||
| `paypalRequestId` | `?string` | Header, Optional | The server stores keys for 45 days. |
|
||||
| `payPalRequestId` | `?string` | Header, Optional | The server stores keys for 45 days. |
|
||||
| `prefer` | `?string` | Header, Optional | The preferred server response upon successful completion of the request. Value is:<ul><li><code>return=minimal</code>. The server returns a minimal response to optimize communication between the API caller and the server. A minimal response includes the <code>id</code>, <code>status</code> and HATEOAS links.</li><li><code>return=representation</code>. The server returns a complete resource representation, including the current state of the resource.</li></ul><br>**Default**: `'return=minimal'` |
|
||||
| `body` | [`?ReauthorizeRequest`](../../doc/models/reauthorize-request.md) | Body, Optional | - |
|
||||
|
||||
@@ -197,6 +152,51 @@ $apiResponse = $paymentsController->authorizationsReauthorize($collect);
|
||||
| Default | The error response. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
|
||||
|
||||
# Authorizations Void
|
||||
|
||||
Voids, or cancels, an authorized payment, by ID. You cannot void an authorized payment that has been fully captured.
|
||||
|
||||
```php
|
||||
function authorizationsVoid(array $options): ApiResponse
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Tags | Description |
|
||||
| --- | --- | --- | --- |
|
||||
| `authorizationId` | `string` | Template, Required | The PayPal-generated ID for the authorized payment to void. |
|
||||
| `payPalAuthAssertion` | `?string` | Header, Optional | An API-caller-provided JSON Web Token (JWT) assertion that identifies the merchant. For details, see [PayPal-Auth-Assertion](/docs/api/reference/api-requests/#paypal-auth-assertion).<blockquote><strong>Note:</strong>For three party transactions in which a partner is managing the API calls on behalf of a merchant, the partner must identify the merchant using either a PayPal-Auth-Assertion header or an access token with target_subject.</blockquote> |
|
||||
| `prefer` | `?string` | Header, Optional | The preferred server response upon successful completion of the request. Value is:<ul><li><code>return=minimal</code>. The server returns a minimal response to optimize communication between the API caller and the server. A minimal response includes the <code>id</code>, <code>status</code> and HATEOAS links.</li><li><code>return=representation</code>. The server returns a complete resource representation, including the current state of the resource.</li></ul><br>**Default**: `'return=minimal'` |
|
||||
|
||||
## Response Type
|
||||
|
||||
This method returns a `PaypalServerSdkLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`?PaymentAuthorization`](../../doc/models/payment-authorization.md).
|
||||
|
||||
## Example Usage
|
||||
|
||||
```php
|
||||
$collect = [
|
||||
'authorizationId' => 'authorization_id8',
|
||||
'prefer' => 'return=minimal'
|
||||
];
|
||||
|
||||
$apiResponse = $paymentsController->authorizationsVoid($collect);
|
||||
```
|
||||
|
||||
## Errors
|
||||
|
||||
| HTTP Status Code | Error Description | Exception Class |
|
||||
| --- | --- | --- |
|
||||
| 400 | The request failed because it is not well-formed or is syntactically incorrect or violates schema. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 401 | Authentication failed due to missing authorization header, or invalid authentication credentials. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 403 | The request failed because the caller has insufficient permissions. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 404 | The request failed because the resource does not exist. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 409 | The request failed because a previous call for the given resource is in progress. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 422 | The request failed because it either is semantically incorrect or failed business validation. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 500 | The request failed because an internal server error occurred. | `ApiException` |
|
||||
| Default | The error response. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
|
||||
|
||||
# Captures Get
|
||||
|
||||
Shows details for a captured payment, by ID.
|
||||
@@ -247,9 +247,9 @@ function capturesRefund(array $options): ApiResponse
|
||||
| Parameter | Type | Tags | Description |
|
||||
| --- | --- | --- | --- |
|
||||
| `captureId` | `string` | Template, Required | The PayPal-generated ID for the captured payment to refund. |
|
||||
| `paypalRequestId` | `?string` | Header, Optional | The server stores keys for 45 days. |
|
||||
| `payPalRequestId` | `?string` | Header, Optional | The server stores keys for 45 days. |
|
||||
| `prefer` | `?string` | Header, Optional | The preferred server response upon successful completion of the request. Value is:<ul><li><code>return=minimal</code>. The server returns a minimal response to optimize communication between the API caller and the server. A minimal response includes the <code>id</code>, <code>status</code> and HATEOAS links.</li><li><code>return=representation</code>. The server returns a complete resource representation, including the current state of the resource.</li></ul><br>**Default**: `'return=minimal'` |
|
||||
| `paypalAuthAssertion` | `?string` | Header, Optional | An API-caller-provided JSON Web Token (JWT) assertion that identifies the merchant. For details, see [PayPal-Auth-Assertion](/docs/api/reference/api-requests/#paypal-auth-assertion).<blockquote><strong>Note:</strong>For three party transactions in which a partner is managing the API calls on behalf of a merchant, the partner must identify the merchant using either a PayPal-Auth-Assertion header or an access token with target_subject.</blockquote> |
|
||||
| `payPalAuthAssertion` | `?string` | Header, Optional | An API-caller-provided JSON Web Token (JWT) assertion that identifies the merchant. For details, see [PayPal-Auth-Assertion](/docs/api/reference/api-requests/#paypal-auth-assertion).<blockquote><strong>Note:</strong>For three party transactions in which a partner is managing the API calls on behalf of a merchant, the partner must identify the merchant using either a PayPal-Auth-Assertion header or an access token with target_subject.</blockquote> |
|
||||
| `body` | [`?RefundRequest`](../../doc/models/refund-request.md) | Body, Optional | - |
|
||||
|
||||
## Response Type
|
||||
|
||||
@@ -12,14 +12,57 @@ $vaultController = $client->getVaultController();
|
||||
|
||||
## Methods
|
||||
|
||||
* [Payment-Tokens Create](../../doc/controllers/vault.md#payment-tokens-create)
|
||||
* [Customer Payment-Tokens Get](../../doc/controllers/vault.md#customer-payment-tokens-get)
|
||||
* [Payment-Tokens Get](../../doc/controllers/vault.md#payment-tokens-get)
|
||||
* [Payment-Tokens Create](../../doc/controllers/vault.md#payment-tokens-create)
|
||||
* [Setup-Tokens Create](../../doc/controllers/vault.md#setup-tokens-create)
|
||||
* [Payment-Tokens Delete](../../doc/controllers/vault.md#payment-tokens-delete)
|
||||
* [Setup-Tokens Create](../../doc/controllers/vault.md#setup-tokens-create)
|
||||
* [Setup-Tokens Get](../../doc/controllers/vault.md#setup-tokens-get)
|
||||
|
||||
|
||||
# Payment-Tokens Create
|
||||
|
||||
Creates a Payment Token from the given payment source and adds it to the Vault of the associated customer.
|
||||
|
||||
```php
|
||||
function paymentTokensCreate(array $options): ApiResponse
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Tags | Description |
|
||||
| --- | --- | --- | --- |
|
||||
| `payPalRequestId` | `string` | Header, Required | The server stores keys for 3 hours. |
|
||||
| `body` | [`PaymentTokenRequest`](../../doc/models/payment-token-request.md) | Body, Required | Payment Token creation with a financial instrument and an optional customer_id. |
|
||||
|
||||
## Response Type
|
||||
|
||||
This method returns a `PaypalServerSdkLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`PaymentTokenResponse`](../../doc/models/payment-token-response.md).
|
||||
|
||||
## Example Usage
|
||||
|
||||
```php
|
||||
$collect = [
|
||||
'payPalRequestId' => 'PayPal-Request-Id6',
|
||||
'body' => PaymentTokenRequestBuilder::init(
|
||||
PaymentTokenRequestPaymentSourceBuilder::init()->build()
|
||||
)->build()
|
||||
];
|
||||
|
||||
$apiResponse = $vaultController->paymentTokensCreate($collect);
|
||||
```
|
||||
|
||||
## Errors
|
||||
|
||||
| HTTP Status Code | Error Description | Exception Class |
|
||||
| --- | --- | --- |
|
||||
| 400 | Request is not well-formed, syntactically incorrect, or violates schema. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 403 | Authorization failed due to insufficient permissions. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 404 | Request contains reference to resources that do not exist. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 422 | The requested action could not be performed, semantically incorrect, or failed business validation. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 500 | An internal server error has occurred. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
|
||||
|
||||
# Customer Payment-Tokens Get
|
||||
|
||||
Returns all payment tokens for a customer.
|
||||
@@ -99,91 +142,6 @@ $apiResponse = $vaultController->paymentTokensGet($id);
|
||||
| 500 | An internal server error has occurred. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
|
||||
|
||||
# Payment-Tokens Create
|
||||
|
||||
Creates a Payment Token from the given payment source and adds it to the Vault of the associated customer.
|
||||
|
||||
```php
|
||||
function paymentTokensCreate(array $options): ApiResponse
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Tags | Description |
|
||||
| --- | --- | --- | --- |
|
||||
| `paypalRequestId` | `string` | Header, Required | The server stores keys for 3 hours. |
|
||||
| `body` | [`PaymentTokenRequest`](../../doc/models/payment-token-request.md) | Body, Required | Payment Token creation with a financial instrument and an optional customer_id. |
|
||||
|
||||
## Response Type
|
||||
|
||||
This method returns a `PaypalServerSdkLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`PaymentTokenResponse`](../../doc/models/payment-token-response.md).
|
||||
|
||||
## Example Usage
|
||||
|
||||
```php
|
||||
$collect = [
|
||||
'paypalRequestId' => 'PayPal-Request-Id6',
|
||||
'body' => PaymentTokenRequestBuilder::init(
|
||||
PaymentTokenRequestPaymentSourceBuilder::init()->build()
|
||||
)->build()
|
||||
];
|
||||
|
||||
$apiResponse = $vaultController->paymentTokensCreate($collect);
|
||||
```
|
||||
|
||||
## Errors
|
||||
|
||||
| HTTP Status Code | Error Description | Exception Class |
|
||||
| --- | --- | --- |
|
||||
| 400 | Request is not well-formed, syntactically incorrect, or violates schema. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 403 | Authorization failed due to insufficient permissions. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 404 | Request contains reference to resources that do not exist. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 422 | The requested action could not be performed, semantically incorrect, or failed business validation. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 500 | An internal server error has occurred. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
|
||||
|
||||
# Setup-Tokens Create
|
||||
|
||||
Creates a Setup Token from the given payment source and adds it to the Vault of the associated customer.
|
||||
|
||||
```php
|
||||
function setupTokensCreate(array $options): ApiResponse
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Tags | Description |
|
||||
| --- | --- | --- | --- |
|
||||
| `paypalRequestId` | `string` | Header, Required | The server stores keys for 3 hours. |
|
||||
| `body` | [`SetupTokenRequest`](../../doc/models/setup-token-request.md) | Body, Required | Setup Token creation with a instrument type optional financial instrument details and customer_id. |
|
||||
|
||||
## Response Type
|
||||
|
||||
This method returns a `PaypalServerSdkLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`SetupTokenResponse`](../../doc/models/setup-token-response.md).
|
||||
|
||||
## Example Usage
|
||||
|
||||
```php
|
||||
$collect = [
|
||||
'paypalRequestId' => 'PayPal-Request-Id6',
|
||||
'body' => SetupTokenRequestBuilder::init(
|
||||
SetupTokenRequestPaymentSourceBuilder::init()->build()
|
||||
)->build()
|
||||
];
|
||||
|
||||
$apiResponse = $vaultController->setupTokensCreate($collect);
|
||||
```
|
||||
|
||||
## Errors
|
||||
|
||||
| HTTP Status Code | Error Description | Exception Class |
|
||||
| --- | --- | --- |
|
||||
| 400 | Request is not well-formed, syntactically incorrect, or violates schema. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 403 | Authorization failed due to insufficient permissions. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 422 | The requested action could not be performed, semantically incorrect, or failed business validation. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 500 | An internal server error has occurred. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
|
||||
|
||||
# Payment-Tokens Delete
|
||||
|
||||
Delete the payment token associated with the payment token id.
|
||||
@@ -219,6 +177,48 @@ $apiResponse = $vaultController->paymentTokensDelete($id);
|
||||
| 500 | An internal server error has occurred. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
|
||||
|
||||
# Setup-Tokens Create
|
||||
|
||||
Creates a Setup Token from the given payment source and adds it to the Vault of the associated customer.
|
||||
|
||||
```php
|
||||
function setupTokensCreate(array $options): ApiResponse
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Tags | Description |
|
||||
| --- | --- | --- | --- |
|
||||
| `payPalRequestId` | `string` | Header, Required | The server stores keys for 3 hours. |
|
||||
| `body` | [`SetupTokenRequest`](../../doc/models/setup-token-request.md) | Body, Required | Setup Token creation with a instrument type optional financial instrument details and customer_id. |
|
||||
|
||||
## Response Type
|
||||
|
||||
This method returns a `PaypalServerSdkLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`SetupTokenResponse`](../../doc/models/setup-token-response.md).
|
||||
|
||||
## Example Usage
|
||||
|
||||
```php
|
||||
$collect = [
|
||||
'payPalRequestId' => 'PayPal-Request-Id6',
|
||||
'body' => SetupTokenRequestBuilder::init(
|
||||
SetupTokenRequestPaymentSourceBuilder::init()->build()
|
||||
)->build()
|
||||
];
|
||||
|
||||
$apiResponse = $vaultController->setupTokensCreate($collect);
|
||||
```
|
||||
|
||||
## Errors
|
||||
|
||||
| HTTP Status Code | Error Description | Exception Class |
|
||||
| --- | --- | --- |
|
||||
| 400 | Request is not well-formed, syntactically incorrect, or violates schema. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 403 | Authorization failed due to insufficient permissions. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 422 | The requested action could not be performed, semantically incorrect, or failed business validation. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
| 500 | An internal server error has occurred. | [`ErrorException`](../../doc/models/error-exception.md) |
|
||||
|
||||
|
||||
# Setup-Tokens Get
|
||||
|
||||
Returns a readable representation of temporarily vaulted payment source associated with the setup token id.
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
|
||||
# Avs Code
|
||||
# AVS Code
|
||||
|
||||
The address verification code for Visa, Discover, Mastercard, or American Express transactions.
|
||||
|
||||
## Enumeration
|
||||
|
||||
`AvsCode`
|
||||
`AVSCode`
|
||||
|
||||
## Fields
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
|
||||
# Blik Experience Context
|
||||
# BLIK Experience Context
|
||||
|
||||
Customizes the payer experience during the approval process for the BLIK payment.
|
||||
|
||||
## Structure
|
||||
|
||||
`BlikExperienceContext`
|
||||
`BLIKExperienceContext`
|
||||
|
||||
## Fields
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
|
||||
# Blik Level 0 Payment Object
|
||||
# BLIK Level 0 Payment Object
|
||||
|
||||
Information used to pay using BLIK level_0 flow.
|
||||
|
||||
## Structure
|
||||
|
||||
`BlikLevel0PaymentObject`
|
||||
`BLIKLevel0PaymentObject`
|
||||
|
||||
## Fields
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
|
||||
# Blik One Click Payment Object
|
||||
# BLIK One Click Payment Object
|
||||
|
||||
Information used to pay using BLIK one-click flow.
|
||||
|
||||
## Structure
|
||||
|
||||
`BlikOneClickPaymentObject`
|
||||
`BLIKOneClickPaymentObject`
|
||||
|
||||
## Fields
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
|
||||
# Blik One Click Payment Request
|
||||
# BLIK One Click Payment Request
|
||||
|
||||
Information used to pay using BLIK one-click flow.
|
||||
|
||||
## Structure
|
||||
|
||||
`BlikOneClickPaymentRequest`
|
||||
`BLIKOneClickPaymentRequest`
|
||||
|
||||
## Fields
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
|
||||
# Blik Payment Object
|
||||
# BLIK Payment Object
|
||||
|
||||
Information used to pay using BLIK.
|
||||
|
||||
## Structure
|
||||
|
||||
`BlikPaymentObject`
|
||||
`BLIKPaymentObject`
|
||||
|
||||
## Fields
|
||||
|
||||
@@ -14,7 +14,7 @@ Information used to pay using BLIK.
|
||||
| `name` | `?string` | Optional | The full name representation like Mr J Smith.<br>**Constraints**: *Minimum Length*: `3`, *Maximum Length*: `300` | getName(): ?string | setName(?string name): void |
|
||||
| `countryCode` | `?string` | Optional | The [two-character ISO 3166-1 code](/api/rest/reference/country-codes/) that identifies the country or region.<blockquote><strong>Note:</strong> The country code for Great Britain is <code>GB</code> and not <code>UK</code> as used in the top-level domain names for that country. Use the `C2` country code for China worldwide for comparable uncontrolled price (CUP) method, bank card, and cross-border transactions.</blockquote><br>**Constraints**: *Minimum Length*: `2`, *Maximum Length*: `2`, *Pattern*: `^([A-Z]{2}\|C2)$` | getCountryCode(): ?string | setCountryCode(?string countryCode): void |
|
||||
| `email` | `?string` | Optional | The internationalized email address.<blockquote><strong>Note:</strong> Up to 64 characters are allowed before and 255 characters are allowed after the <code>@</code> sign. However, the generally accepted maximum length for an email address is 254 characters. The pattern verifies that an unquoted <code>@</code> sign exists.</blockquote><br>**Constraints**: *Minimum Length*: `3`, *Maximum Length*: `254`, *Pattern*: ``^(?:[A-Za-z0-9!#$%&'*+/=?^_`{\|}~-]+(?:\.[A-Za-z0-9!#$%&'*+/=?^_`{\|}~-]+)*\|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]\|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\.)+[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\|\[(?:(?:25[0-5]\|2[0-4][0-9]\|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]\|2[0-4][0-9]\|[01]?[0-9][0-9]?\|[A-Za-z0-9-]*[A-Za-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]\|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$`` | getEmail(): ?string | setEmail(?string email): void |
|
||||
| `oneClick` | [`?BlikOneClickPaymentObject`](../../doc/models/blik-one-click-payment-object.md) | Optional | Information used to pay using BLIK one-click flow. | getOneClick(): ?BlikOneClickPaymentObject | setOneClick(?BlikOneClickPaymentObject oneClick): void |
|
||||
| `oneClick` | [`?BLIKOneClickPaymentObject`](../../doc/models/blik-one-click-payment-object.md) | Optional | Information used to pay using BLIK one-click flow. | getOneClick(): ?BLIKOneClickPaymentObject | setOneClick(?BLIKOneClickPaymentObject oneClick): void |
|
||||
|
||||
## Example (as JSON)
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
|
||||
# Blik Payment Request
|
||||
# BLIK Payment Request
|
||||
|
||||
Information needed to pay using BLIK.
|
||||
|
||||
## Structure
|
||||
|
||||
`BlikPaymentRequest`
|
||||
`BLIKPaymentRequest`
|
||||
|
||||
## Fields
|
||||
|
||||
@@ -14,9 +14,9 @@ Information needed to pay using BLIK.
|
||||
| `name` | `string` | Required | The full name representation like Mr J Smith.<br>**Constraints**: *Minimum Length*: `3`, *Maximum Length*: `300` | getName(): string | setName(string name): void |
|
||||
| `countryCode` | `string` | Required | The [two-character ISO 3166-1 code](/api/rest/reference/country-codes/) that identifies the country or region.<blockquote><strong>Note:</strong> The country code for Great Britain is <code>GB</code> and not <code>UK</code> as used in the top-level domain names for that country. Use the `C2` country code for China worldwide for comparable uncontrolled price (CUP) method, bank card, and cross-border transactions.</blockquote><br>**Constraints**: *Minimum Length*: `2`, *Maximum Length*: `2`, *Pattern*: `^([A-Z]{2}\|C2)$` | getCountryCode(): string | setCountryCode(string countryCode): void |
|
||||
| `email` | `?string` | Optional | The internationalized email address.<blockquote><strong>Note:</strong> Up to 64 characters are allowed before and 255 characters are allowed after the <code>@</code> sign. However, the generally accepted maximum length for an email address is 254 characters. The pattern verifies that an unquoted <code>@</code> sign exists.</blockquote><br>**Constraints**: *Minimum Length*: `3`, *Maximum Length*: `254`, *Pattern*: ``^(?:[A-Za-z0-9!#$%&'*+/=?^_`{\|}~-]+(?:\.[A-Za-z0-9!#$%&'*+/=?^_`{\|}~-]+)*\|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]\|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\.)+[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\|\[(?:(?:25[0-5]\|2[0-4][0-9]\|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]\|2[0-4][0-9]\|[01]?[0-9][0-9]?\|[A-Za-z0-9-]*[A-Za-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]\|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$`` | getEmail(): ?string | setEmail(?string email): void |
|
||||
| `experienceContext` | [`?BlikExperienceContext`](../../doc/models/blik-experience-context.md) | Optional | Customizes the payer experience during the approval process for the BLIK payment. | getExperienceContext(): ?BlikExperienceContext | setExperienceContext(?BlikExperienceContext experienceContext): void |
|
||||
| `level0` | [`?BlikLevel0PaymentObject`](../../doc/models/blik-level-0-payment-object.md) | Optional | Information used to pay using BLIK level_0 flow. | getLevel0(): ?BlikLevel0PaymentObject | setLevel0(?BlikLevel0PaymentObject level0): void |
|
||||
| `oneClick` | [`?BlikOneClickPaymentRequest`](../../doc/models/blik-one-click-payment-request.md) | Optional | Information used to pay using BLIK one-click flow. | getOneClick(): ?BlikOneClickPaymentRequest | setOneClick(?BlikOneClickPaymentRequest oneClick): void |
|
||||
| `experienceContext` | [`?BLIKExperienceContext`](../../doc/models/blik-experience-context.md) | Optional | Customizes the payer experience during the approval process for the BLIK payment. | getExperienceContext(): ?BLIKExperienceContext | setExperienceContext(?BLIKExperienceContext experienceContext): void |
|
||||
| `level0` | [`?BLIKLevel0PaymentObject`](../../doc/models/blik-level-0-payment-object.md) | Optional | Information used to pay using BLIK level_0 flow. | getLevel0(): ?BLIKLevel0PaymentObject | setLevel0(?BLIKLevel0PaymentObject level0): void |
|
||||
| `oneClick` | [`?BLIKOneClickPaymentRequest`](../../doc/models/blik-one-click-payment-request.md) | Optional | Information used to pay using BLIK one-click flow. | getOneClick(): ?BLIKOneClickPaymentRequest | setOneClick(?BLIKOneClickPaymentRequest oneClick): void |
|
||||
|
||||
## Example (as JSON)
|
||||
|
||||
|
||||
@@ -11,8 +11,8 @@ The processor response information for payment requests, such as direct credit c
|
||||
|
||||
| Name | Type | Tags | Description | Getter | Setter |
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| `avsCode` | [`?string(AvsCode)`](../../doc/models/avs-code.md) | Optional | The address verification code for Visa, Discover, Mastercard, or American Express transactions. | getAvsCode(): ?string | setAvsCode(?string avsCode): void |
|
||||
| `cvvCode` | [`?string(CvvCode)`](../../doc/models/cvv-code.md) | Optional | The card verification value code for for Visa, Discover, Mastercard, or American Express. | getCvvCode(): ?string | setCvvCode(?string cvvCode): void |
|
||||
| `avsCode` | [`?string(AVSCode)`](../../doc/models/avs-code.md) | Optional | The address verification code for Visa, Discover, Mastercard, or American Express transactions. | getAvsCode(): ?string | setAvsCode(?string avsCode): void |
|
||||
| `cvvCode` | [`?string(CVVCode)`](../../doc/models/cvv-code.md) | Optional | The card verification value code for for Visa, Discover, Mastercard, or American Express. | getCvvCode(): ?string | setCvvCode(?string cvvCode): void |
|
||||
|
||||
## Example (as JSON)
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
|
||||
# Cvv Code
|
||||
# CVV Code
|
||||
|
||||
The card verification value code for for Visa, Discover, Mastercard, or American Express.
|
||||
|
||||
## Enumeration
|
||||
|
||||
`CvvCode`
|
||||
`CVVCode`
|
||||
|
||||
## Fields
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
|
||||
# Eci Flag
|
||||
# ECI Flag
|
||||
|
||||
Electronic Commerce Indicator (ECI). The ECI value is part of the 2 data elements that indicate the transaction was processed electronically. This should be passed on the authorization transaction to the Gateway/Processor.
|
||||
|
||||
## Enumeration
|
||||
|
||||
`EciFlag`
|
||||
`ECIFlag`
|
||||
|
||||
## Fields
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
|
||||
# Eps Payment Object
|
||||
# EPS Payment Object
|
||||
|
||||
Information used to pay using eps.
|
||||
|
||||
## Structure
|
||||
|
||||
`EpsPaymentObject`
|
||||
`EPSPaymentObject`
|
||||
|
||||
## Fields
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
|
||||
# Eps Payment Request
|
||||
# EPS Payment Request
|
||||
|
||||
Information needed to pay using eps.
|
||||
|
||||
## Structure
|
||||
|
||||
`EpsPaymentRequest`
|
||||
`EPSPaymentRequest`
|
||||
|
||||
## Fields
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
|
||||
# Ideal Payment Object
|
||||
# IDEAL Payment Object
|
||||
|
||||
Information used to pay using iDEAL.
|
||||
|
||||
## Structure
|
||||
|
||||
`IdealPaymentObject`
|
||||
`IDEALPaymentObject`
|
||||
|
||||
## Fields
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
|
||||
# Ideal Payment Request
|
||||
# IDEAL Payment Request
|
||||
|
||||
Information needed to pay using iDEAL.
|
||||
|
||||
## Structure
|
||||
|
||||
`IdealPaymentRequest`
|
||||
`IDEALPaymentRequest`
|
||||
|
||||
## Fields
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ The request-related [HATEOAS link](/api/rest/responses/#hateoas-links) informati
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| `href` | `string` | Required | The complete target URL. To make the related call, combine the method with this [URI Template-formatted](https://tools.ietf.org/html/rfc6570) link. For pre-processing, include the `$`, `(`, and `)` characters. The `href` is the key HATEOAS component that links a completed call with a subsequent call. | getHref(): string | setHref(string href): void |
|
||||
| `rel` | `string` | Required | The [link relation type](https://tools.ietf.org/html/rfc5988#section-4), which serves as an ID for a link that unambiguously describes the semantics of the link. See [Link Relations](https://www.iana.org/assignments/link-relations/link-relations.xhtml). | getRel(): string | setRel(string rel): void |
|
||||
| `method` | [`?string(LinkHttpMethod)`](../../doc/models/link-http-method.md) | Optional | The HTTP method required to make the related call. | getMethod(): ?string | setMethod(?string method): void |
|
||||
| `method` | [`?string(LinkHTTPMethod)`](../../doc/models/link-http-method.md) | Optional | The HTTP method required to make the related call. | getMethod(): ?string | setMethod(?string method): void |
|
||||
|
||||
## Example (as JSON)
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
|
||||
# Link Http Method
|
||||
# Link HTTP Method
|
||||
|
||||
The HTTP method required to make the related call.
|
||||
|
||||
## Enumeration
|
||||
|
||||
`LinkHttpMethod`
|
||||
`LinkHTTPMethod`
|
||||
|
||||
## Fields
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
|
||||
# Mybank Payment Object
|
||||
# My Bank Payment Object
|
||||
|
||||
Information used to pay using MyBank.
|
||||
|
||||
## Structure
|
||||
|
||||
`MybankPaymentObject`
|
||||
`MyBankPaymentObject`
|
||||
|
||||
## Fields
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
|
||||
# Mybank Payment Request
|
||||
# My Bank Payment Request
|
||||
|
||||
Information needed to pay using MyBank.
|
||||
|
||||
## Structure
|
||||
|
||||
`MybankPaymentRequest`
|
||||
`MyBankPaymentRequest`
|
||||
|
||||
## Fields
|
||||
|
||||
@@ -14,7 +14,7 @@ The Third Party Network token used to fund a payment.
|
||||
| `number` | `string` | Required | Third party network token number.<br>**Constraints**: *Minimum Length*: `13`, *Maximum Length*: `19`, *Pattern*: `^[0-9]{13,19}$` | getNumber(): string | setNumber(string number): void |
|
||||
| `expiry` | `string` | Required | The year and month, in ISO-8601 `YYYY-MM` date format. See [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6).<br>**Constraints**: *Minimum Length*: `7`, *Maximum Length*: `7`, *Pattern*: `^[0-9]{4}-(0[1-9]\|1[0-2])$` | getExpiry(): string | setExpiry(string expiry): void |
|
||||
| `cryptogram` | `?string` | Optional | An Encrypted one-time use value that's sent along with Network Token. This field is not required to be present for recurring transactions.<br>**Constraints**: *Minimum Length*: `28`, *Maximum Length*: `32`, *Pattern*: `^.*$` | getCryptogram(): ?string | setCryptogram(?string cryptogram): void |
|
||||
| `eciFlag` | [`?string(EciFlag)`](../../doc/models/eci-flag.md) | Optional | Electronic Commerce Indicator (ECI). The ECI value is part of the 2 data elements that indicate the transaction was processed electronically. This should be passed on the authorization transaction to the Gateway/Processor.<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `255`, *Pattern*: `^[0-9A-Z_]+$` | getEciFlag(): ?string | setEciFlag(?string eciFlag): void |
|
||||
| `eciFlag` | [`?string(ECIFlag)`](../../doc/models/eci-flag.md) | Optional | Electronic Commerce Indicator (ECI). The ECI value is part of the 2 data elements that indicate the transaction was processed electronically. This should be passed on the authorization transaction to the Gateway/Processor.<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `255`, *Pattern*: `^[0-9A-Z_]+$` | getEciFlag(): ?string | setEciFlag(?string eciFlag): void |
|
||||
| `tokenRequestorId` | `?string` | Optional | A TRID, or a Token Requestor ID, is an identifier used by merchants to request network tokens from card networks. A TRID is a precursor to obtaining a network token for a credit card primary account number (PAN), and will aid in enabling secure card on file (COF) payments and reducing fraud.<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `11`, *Pattern*: `^[0-9A-Z_]+$` | getTokenRequestorId(): ?string | setTokenRequestorId(?string tokenRequestorId): void |
|
||||
|
||||
## Example (as JSON)
|
||||
|
||||
@@ -13,7 +13,7 @@ The payment source definition.
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| `card` | [`?CardRequest`](../../doc/models/card-request.md) | Optional | The payment card to use to fund a payment. Can be a credit or debit card.<blockquote><strong>Note:</strong> Passing card number, cvv and expiry directly via the API requires <a href="https://www.pcisecuritystandards.org/pci_security/completing_self_assessment"> PCI SAQ D compliance</a>. <br>*PayPal offers a mechanism by which you do not have to take on the <strong>PCI SAQ D</strong> burden by using hosted fields - refer to <a href="https://developer.paypal.com/docs/checkout/advanced/integrate/">this Integration Guide</a>*.</blockquote> | getCard(): ?CardRequest | setCard(?CardRequest card): void |
|
||||
| `token` | [`?Token`](../../doc/models/token.md) | Optional | The tokenized payment source to fund a payment. | getToken(): ?Token | setToken(?Token token): void |
|
||||
| `paypal` | [`?PaypalWallet`](../../doc/models/paypal-wallet.md) | Optional | A resource that identifies a PayPal Wallet is used for payment. | getPaypal(): ?PaypalWallet | setPaypal(?PaypalWallet paypal): void |
|
||||
| `paypal` | [`?PayPalWallet`](../../doc/models/pay-pal-wallet.md) | Optional | A resource that identifies a PayPal Wallet is used for payment. | getPaypal(): ?PayPalWallet | setPaypal(?PayPalWallet paypal): void |
|
||||
| `applePay` | [`?ApplePayRequest`](../../doc/models/apple-pay-request.md) | Optional | Information needed to pay using ApplePay. | getApplePay(): ?ApplePayRequest | setApplePay(?ApplePayRequest applePay): void |
|
||||
| `googlePay` | [`?GooglePayRequest`](../../doc/models/google-pay-request.md) | Optional | Information needed to pay using Google Pay. | getGooglePay(): ?GooglePayRequest | setGooglePay(?GooglePayRequest googlePay): void |
|
||||
| `venmo` | [`?VenmoWalletRequest`](../../doc/models/venmo-wallet-request.md) | Optional | Information needed to pay using Venmo. | getVenmo(): ?VenmoWalletRequest | setVenmo(?VenmoWalletRequest venmo): void |
|
||||
|
||||
@@ -12,7 +12,7 @@ The payment source used to fund the payment.
|
||||
| Name | Type | Tags | Description | Getter | Setter |
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| `card` | [`?CardResponse`](../../doc/models/card-response.md) | Optional | The payment card to use to fund a payment. Card can be a credit or debit card. | getCard(): ?CardResponse | setCard(?CardResponse card): void |
|
||||
| `paypal` | [`?PaypalWalletResponse`](../../doc/models/paypal-wallet-response.md) | Optional | The PayPal Wallet response. | getPaypal(): ?PaypalWalletResponse | setPaypal(?PaypalWalletResponse paypal): void |
|
||||
| `paypal` | [`?PayPalWalletResponse`](../../doc/models/pay-pal-wallet-response.md) | Optional | The PayPal Wallet response. | getPaypal(): ?PayPalWalletResponse | setPaypal(?PayPalWalletResponse paypal): void |
|
||||
| `applePay` | [`?ApplePayPaymentObject`](../../doc/models/apple-pay-payment-object.md) | Optional | Information needed to pay using ApplePay. | getApplePay(): ?ApplePayPaymentObject | setApplePay(?ApplePayPaymentObject applePay): void |
|
||||
| `googlePay` | [`?GooglePayWalletResponse`](../../doc/models/google-pay-wallet-response.md) | Optional | Google Pay Wallet payment data. | getGooglePay(): ?GooglePayWalletResponse | setGooglePay(?GooglePayWalletResponse googlePay): void |
|
||||
| `venmo` | [`?VenmoWalletResponse`](../../doc/models/venmo-wallet-response.md) | Optional | Venmo wallet response. | getVenmo(): ?VenmoWalletResponse | setVenmo(?VenmoWalletResponse venmo): void |
|
||||
|
||||
@@ -13,7 +13,7 @@ The payment source definition.
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| `card` | [`?CardRequest`](../../doc/models/card-request.md) | Optional | The payment card to use to fund a payment. Can be a credit or debit card.<blockquote><strong>Note:</strong> Passing card number, cvv and expiry directly via the API requires <a href="https://www.pcisecuritystandards.org/pci_security/completing_self_assessment"> PCI SAQ D compliance</a>. <br>*PayPal offers a mechanism by which you do not have to take on the <strong>PCI SAQ D</strong> burden by using hosted fields - refer to <a href="https://developer.paypal.com/docs/checkout/advanced/integrate/">this Integration Guide</a>*.</blockquote> | getCard(): ?CardRequest | setCard(?CardRequest card): void |
|
||||
| `token` | [`?Token`](../../doc/models/token.md) | Optional | The tokenized payment source to fund a payment. | getToken(): ?Token | setToken(?Token token): void |
|
||||
| `paypal` | [`?PaypalWallet`](../../doc/models/paypal-wallet.md) | Optional | A resource that identifies a PayPal Wallet is used for payment. | getPaypal(): ?PaypalWallet | setPaypal(?PaypalWallet paypal): void |
|
||||
| `paypal` | [`?PayPalWallet`](../../doc/models/pay-pal-wallet.md) | Optional | A resource that identifies a PayPal Wallet is used for payment. | getPaypal(): ?PayPalWallet | setPaypal(?PayPalWallet paypal): void |
|
||||
| `applePay` | [`?ApplePayRequest`](../../doc/models/apple-pay-request.md) | Optional | Information needed to pay using ApplePay. | getApplePay(): ?ApplePayRequest | setApplePay(?ApplePayRequest applePay): void |
|
||||
| `googlePay` | [`?GooglePayRequest`](../../doc/models/google-pay-request.md) | Optional | Information needed to pay using Google Pay. | getGooglePay(): ?GooglePayRequest | setGooglePay(?GooglePayRequest googlePay): void |
|
||||
| `venmo` | [`?VenmoWalletRequest`](../../doc/models/venmo-wallet-request.md) | Optional | Information needed to pay using Venmo. | getVenmo(): ?VenmoWalletRequest | setVenmo(?VenmoWalletRequest venmo): void |
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
|
||||
# Pa Res Status
|
||||
# PA Res Status
|
||||
|
||||
Transactions status result identifier. The outcome of the issuer's authentication.
|
||||
|
||||
## Enumeration
|
||||
|
||||
`PaResStatus`
|
||||
`PAResStatus`
|
||||
|
||||
## Fields
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
|
||||
# Paypal Experience Landing Page
|
||||
# Pay Pal Experience Landing Page
|
||||
|
||||
The type of landing page to show on the PayPal site for customer checkout.
|
||||
|
||||
## Enumeration
|
||||
|
||||
`PaypalExperienceLandingPage`
|
||||
`PayPalExperienceLandingPage`
|
||||
|
||||
## Fields
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
|
||||
# Paypal Experience User Action
|
||||
# Pay Pal Experience User Action
|
||||
|
||||
Configures a <strong>Continue</strong> or <strong>Pay Now</strong> checkout flow.
|
||||
|
||||
## Enumeration
|
||||
|
||||
`PaypalExperienceUserAction`
|
||||
`PayPalExperienceUserAction`
|
||||
|
||||
## Fields
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
|
||||
# Paypal Payment Token Customer Type
|
||||
# Pay Pal Payment Token Customer Type
|
||||
|
||||
The customer type associated with the PayPal payment token. This is to indicate whether the customer acting on the merchant / platform is either a business or a consumer.
|
||||
|
||||
## Enumeration
|
||||
|
||||
`PaypalPaymentTokenCustomerType`
|
||||
`PayPalPaymentTokenCustomerType`
|
||||
|
||||
## Fields
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
|
||||
# Paypal Payment Token Usage Pattern
|
||||
# Pay Pal Payment Token Usage Pattern
|
||||
|
||||
Expected business/pricing model for the billing agreement.
|
||||
|
||||
## Enumeration
|
||||
|
||||
`PaypalPaymentTokenUsagePattern`
|
||||
`PayPalPaymentTokenUsagePattern`
|
||||
|
||||
## Fields
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
|
||||
# Paypal Payment Token Usage Type
|
||||
# Pay Pal Payment Token Usage Type
|
||||
|
||||
The usage type associated with the PayPal payment token.
|
||||
|
||||
## Enumeration
|
||||
|
||||
`PaypalPaymentTokenUsageType`
|
||||
`PayPalPaymentTokenUsageType`
|
||||
|
||||
## Fields
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
|
||||
# Paypal Payment Token
|
||||
# Pay Pal Payment Token
|
||||
|
||||
## Structure
|
||||
|
||||
`PaypalPaymentToken`
|
||||
`PayPalPaymentToken`
|
||||
|
||||
## Fields
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
|
||||
# Paypal Wallet Account Verification Status
|
||||
# Pay Pal Wallet Account Verification Status
|
||||
|
||||
The account status indicates whether the buyer has verified the financial details associated with their PayPal account.
|
||||
|
||||
## Enumeration
|
||||
|
||||
`PaypalWalletAccountVerificationStatus`
|
||||
`PayPalWalletAccountVerificationStatus`
|
||||
|
||||
## Fields
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
|
||||
# Paypal Wallet Attributes Response
|
||||
# Pay Pal Wallet Attributes Response
|
||||
|
||||
Additional attributes associated with the use of a PayPal Wallet.
|
||||
|
||||
## Structure
|
||||
|
||||
`PaypalWalletAttributesResponse`
|
||||
`PayPalWalletAttributesResponse`
|
||||
|
||||
## Fields
|
||||
|
||||
| Name | Type | Tags | Description | Getter | Setter |
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| `vault` | [`?PaypalWalletVaultResponse`](../../doc/models/paypal-wallet-vault-response.md) | Optional | The details about a saved PayPal Wallet payment source. | getVault(): ?PaypalWalletVaultResponse | setVault(?PaypalWalletVaultResponse vault): void |
|
||||
| `vault` | [`?PayPalWalletVaultResponse`](../../doc/models/pay-pal-wallet-vault-response.md) | Optional | The details about a saved PayPal Wallet payment source. | getVault(): ?PayPalWalletVaultResponse | setVault(?PayPalWalletVaultResponse vault): void |
|
||||
| `cobrandedCards` | [`?(CobrandedCard[])`](../../doc/models/cobranded-card.md) | Optional | An array of merchant cobranded cards used by buyer to complete an order. This array will be present if a merchant has onboarded their cobranded card with PayPal and provided corresponding label(s).<br>**Constraints**: *Minimum Items*: `0`, *Maximum Items*: `25` | getCobrandedCards(): ?array | setCobrandedCards(?array cobrandedCards): void |
|
||||
|
||||
## Example (as JSON)
|
||||
@@ -1,18 +1,18 @@
|
||||
|
||||
# Paypal Wallet Attributes
|
||||
# Pay Pal Wallet Attributes
|
||||
|
||||
Additional attributes associated with the use of this PayPal Wallet.
|
||||
|
||||
## Structure
|
||||
|
||||
`PaypalWalletAttributes`
|
||||
`PayPalWalletAttributes`
|
||||
|
||||
## Fields
|
||||
|
||||
| Name | Type | Tags | Description | Getter | Setter |
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| `customer` | [`?PaypalWalletCustomerRequest`](../../doc/models/paypal-wallet-customer-request.md) | Optional | - | getCustomer(): ?PaypalWalletCustomerRequest | setCustomer(?PaypalWalletCustomerRequest customer): void |
|
||||
| `vault` | [`?PaypalWalletVaultInstruction`](../../doc/models/paypal-wallet-vault-instruction.md) | Optional | - | getVault(): ?PaypalWalletVaultInstruction | setVault(?PaypalWalletVaultInstruction vault): void |
|
||||
| `customer` | [`?PayPalWalletCustomerRequest`](../../doc/models/pay-pal-wallet-customer-request.md) | Optional | - | getCustomer(): ?PayPalWalletCustomerRequest | setCustomer(?PayPalWalletCustomerRequest customer): void |
|
||||
| `vault` | [`?PayPalWalletVaultInstruction`](../../doc/models/pay-pal-wallet-vault-instruction.md) | Optional | - | getVault(): ?PayPalWalletVaultInstruction | setVault(?PayPalWalletVaultInstruction vault): void |
|
||||
|
||||
## Example (as JSON)
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
|
||||
# Paypal Wallet Customer Request
|
||||
# Pay Pal Wallet Customer Request
|
||||
|
||||
## Structure
|
||||
|
||||
`PaypalWalletCustomerRequest`
|
||||
`PayPalWalletCustomerRequest`
|
||||
|
||||
## Fields
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
|
||||
# Paypal Wallet Customer
|
||||
# Pay Pal Wallet Customer
|
||||
|
||||
The details about a customer in PayPal's system of record.
|
||||
|
||||
## Structure
|
||||
|
||||
`PaypalWalletCustomer`
|
||||
`PayPalWalletCustomer`
|
||||
|
||||
## Fields
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
|
||||
# Paypal Wallet Experience Context
|
||||
# Pay Pal Wallet Experience Context
|
||||
|
||||
Customizes the payer experience during the approval process for payment with PayPal.<blockquote><strong>Note:</strong> Partners and Marketplaces might configure <code>brand_name</code> and <code>shipping_preference</code> during partner account setup, which overrides the request values.</blockquote>
|
||||
|
||||
## Structure
|
||||
|
||||
`PaypalWalletExperienceContext`
|
||||
`PayPalWalletExperienceContext`
|
||||
|
||||
## Fields
|
||||
|
||||
@@ -16,8 +16,8 @@ Customizes the payer experience during the approval process for payment with Pay
|
||||
| `shippingPreference` | [`?string(ShippingPreference)`](../../doc/models/shipping-preference.md) | Optional | The location from which the shipping address is derived.<br>**Default**: `ShippingPreference::GET_FROM_FILE`<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `24`, *Pattern*: `^[A-Z_]+$` | getShippingPreference(): ?string | setShippingPreference(?string shippingPreference): void |
|
||||
| `returnUrl` | `?string` | Optional | Describes the URL. | getReturnUrl(): ?string | setReturnUrl(?string returnUrl): void |
|
||||
| `cancelUrl` | `?string` | Optional | Describes the URL. | getCancelUrl(): ?string | setCancelUrl(?string cancelUrl): void |
|
||||
| `landingPage` | [`?string(PaypalExperienceLandingPage)`](../../doc/models/paypal-experience-landing-page.md) | Optional | The type of landing page to show on the PayPal site for customer checkout.<br>**Default**: `PaypalExperienceLandingPage::NO_PREFERENCE`<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `13`, *Pattern*: `^[0-9A-Z_]+$` | getLandingPage(): ?string | setLandingPage(?string landingPage): void |
|
||||
| `userAction` | [`?string(PaypalExperienceUserAction)`](../../doc/models/paypal-experience-user-action.md) | Optional | Configures a <strong>Continue</strong> or <strong>Pay Now</strong> checkout flow.<br>**Default**: `PaypalExperienceUserAction::CONTINUE_`<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `8`, *Pattern*: `^[0-9A-Z_]+$` | getUserAction(): ?string | setUserAction(?string userAction): void |
|
||||
| `landingPage` | [`?string(PayPalExperienceLandingPage)`](../../doc/models/pay-pal-experience-landing-page.md) | Optional | The type of landing page to show on the PayPal site for customer checkout.<br>**Default**: `PayPalExperienceLandingPage::NO_PREFERENCE`<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `13`, *Pattern*: `^[0-9A-Z_]+$` | getLandingPage(): ?string | setLandingPage(?string landingPage): void |
|
||||
| `userAction` | [`?string(PayPalExperienceUserAction)`](../../doc/models/pay-pal-experience-user-action.md) | Optional | Configures a <strong>Continue</strong> or <strong>Pay Now</strong> checkout flow.<br>**Default**: `PayPalExperienceUserAction::CONTINUE_`<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `8`, *Pattern*: `^[0-9A-Z_]+$` | getUserAction(): ?string | setUserAction(?string userAction): void |
|
||||
| `paymentMethodPreference` | [`?string(PayeePaymentMethodPreference)`](../../doc/models/payee-payment-method-preference.md) | Optional | The merchant-preferred payment methods.<br>**Default**: `PayeePaymentMethodPreference::UNRESTRICTED`<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `255`, *Pattern*: `^[0-9A-Z_]+$` | getPaymentMethodPreference(): ?string | setPaymentMethodPreference(?string paymentMethodPreference): void |
|
||||
|
||||
## Example (as JSON)
|
||||
@@ -1,11 +1,11 @@
|
||||
|
||||
# Paypal Wallet Response
|
||||
# Pay Pal Wallet Response
|
||||
|
||||
The PayPal Wallet response.
|
||||
|
||||
## Structure
|
||||
|
||||
`PaypalWalletResponse`
|
||||
`PayPalWalletResponse`
|
||||
|
||||
## Fields
|
||||
|
||||
@@ -13,7 +13,7 @@ The PayPal Wallet response.
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| `emailAddress` | `?string` | Optional | The internationalized email address.<blockquote><strong>Note:</strong> Up to 64 characters are allowed before and 255 characters are allowed after the <code>@</code> sign. However, the generally accepted maximum length for an email address is 254 characters. The pattern verifies that an unquoted <code>@</code> sign exists.</blockquote><br>**Constraints**: *Minimum Length*: `3`, *Maximum Length*: `254`, *Pattern*: ``(?:[a-zA-Z0-9!#$%&'*+/=?^_`{\|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{\|}~-]+)*\|(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]\|\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\|\[(?:(?:(2(5[0-5]\|[0-4][0-9])\|1[0-9][0-9]\|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]\|[0-4][0-9])\|1[0-9][0-9]\|[1-9]?[0-9])\|[a-zA-Z0-9-]*[a-zA-Z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]\|\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])`` | getEmailAddress(): ?string | setEmailAddress(?string emailAddress): void |
|
||||
| `accountId` | `?string` | Optional | The PayPal payer ID, which is a masked version of the PayPal account number intended for use with third parties. The account number is reversibly encrypted and a proprietary variant of Base32 is used to encode the result.<br>**Constraints**: *Minimum Length*: `13`, *Maximum Length*: `13`, *Pattern*: `^[2-9A-HJ-NP-Z]{13}$` | getAccountId(): ?string | setAccountId(?string accountId): void |
|
||||
| `accountStatus` | [`?string(PaypalWalletAccountVerificationStatus)`](../../doc/models/paypal-wallet-account-verification-status.md) | Optional | The account status indicates whether the buyer has verified the financial details associated with their PayPal account.<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `255`, *Pattern*: `^[A-Z_]+$` | getAccountStatus(): ?string | setAccountStatus(?string accountStatus): void |
|
||||
| `accountStatus` | [`?string(PayPalWalletAccountVerificationStatus)`](../../doc/models/pay-pal-wallet-account-verification-status.md) | Optional | The account status indicates whether the buyer has verified the financial details associated with their PayPal account.<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `255`, *Pattern*: `^[A-Z_]+$` | getAccountStatus(): ?string | setAccountStatus(?string accountStatus): void |
|
||||
| `name` | [`?Name`](../../doc/models/name.md) | Optional | The name of the party. | getName(): ?Name | setName(?Name name): void |
|
||||
| `phoneType` | [`?string(PhoneType)`](../../doc/models/phone-type.md) | Optional | The phone type. | getPhoneType(): ?string | setPhoneType(?string phoneType): void |
|
||||
| `phoneNumber` | [`?PhoneNumber`](../../doc/models/phone-number.md) | Optional | The phone number in its canonical international [E.164 numbering plan format](https://www.itu.int/rec/T-REC-E.164/en). | getPhoneNumber(): ?PhoneNumber | setPhoneNumber(?PhoneNumber phoneNumber): void |
|
||||
@@ -21,7 +21,7 @@ The PayPal Wallet response.
|
||||
| `businessName` | `?string` | Optional | The business name of the PayPal account holder (populated for business accounts only)<br>**Constraints**: *Minimum Length*: `0`, *Maximum Length*: `300`, *Pattern*: `^.*$` | getBusinessName(): ?string | setBusinessName(?string businessName): void |
|
||||
| `taxInfo` | [`?TaxInfo`](../../doc/models/tax-info.md) | Optional | The tax ID of the customer. The customer is also known as the payer. Both `tax_id` and `tax_id_type` are required. | getTaxInfo(): ?TaxInfo | setTaxInfo(?TaxInfo taxInfo): void |
|
||||
| `address` | [`?Address`](../../doc/models/address.md) | Optional | The portable international postal address. Maps to [AddressValidationMetadata](https://github.com/googlei18n/libaddressinput/wiki/AddressValidationMetadata) and HTML 5.1 [Autofilling form controls: the autocomplete attribute](https://www.w3.org/TR/html51/sec-forms.html#autofilling-form-controls-the-autocomplete-attribute). | getAddress(): ?Address | setAddress(?Address address): void |
|
||||
| `attributes` | [`?PaypalWalletAttributesResponse`](../../doc/models/paypal-wallet-attributes-response.md) | Optional | Additional attributes associated with the use of a PayPal Wallet. | getAttributes(): ?PaypalWalletAttributesResponse | setAttributes(?PaypalWalletAttributesResponse attributes): void |
|
||||
| `attributes` | [`?PayPalWalletAttributesResponse`](../../doc/models/pay-pal-wallet-attributes-response.md) | Optional | Additional attributes associated with the use of a PayPal Wallet. | getAttributes(): ?PayPalWalletAttributesResponse | setAttributes(?PayPalWalletAttributesResponse attributes): void |
|
||||
|
||||
## Example (as JSON)
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
|
||||
# Paypal Wallet Vault Instruction
|
||||
# Pay Pal Wallet Vault Instruction
|
||||
|
||||
## Structure
|
||||
|
||||
`PaypalWalletVaultInstruction`
|
||||
`PayPalWalletVaultInstruction`
|
||||
|
||||
## Fields
|
||||
|
||||
@@ -11,9 +11,9 @@
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| `storeInVault` | [`?string(StoreInVaultInstruction)`](../../doc/models/store-in-vault-instruction.md) | Optional | Defines how and when the payment source gets vaulted.<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `255`, *Pattern*: `^[0-9A-Z_]+$` | getStoreInVault(): ?string | setStoreInVault(?string storeInVault): void |
|
||||
| `description` | `?string` | Optional | The description displayed to PayPal consumer on the approval flow for PayPal, as well as on the PayPal payment token management experience on PayPal.com.<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `128` | getDescription(): ?string | setDescription(?string description): void |
|
||||
| `usagePattern` | [`?string(PaypalPaymentTokenUsagePattern)`](../../doc/models/paypal-payment-token-usage-pattern.md) | Optional | Expected business/pricing model for the billing agreement.<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `30` | getUsagePattern(): ?string | setUsagePattern(?string usagePattern): void |
|
||||
| `usageType` | [`string(PaypalPaymentTokenUsageType)`](../../doc/models/paypal-payment-token-usage-type.md) | Required | The usage type associated with the PayPal payment token.<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `255`, *Pattern*: `^[0-9A-Z_]+$` | getUsageType(): string | setUsageType(string usageType): void |
|
||||
| `customerType` | [`?string(PaypalPaymentTokenCustomerType)`](../../doc/models/paypal-payment-token-customer-type.md) | Optional | The customer type associated with the PayPal payment token. This is to indicate whether the customer acting on the merchant / platform is either a business or a consumer.<br>**Default**: `PaypalPaymentTokenCustomerType::CONSUMER`<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `255`, *Pattern*: `^[0-9A-Z_]+$` | getCustomerType(): ?string | setCustomerType(?string customerType): void |
|
||||
| `usagePattern` | [`?string(PayPalPaymentTokenUsagePattern)`](../../doc/models/pay-pal-payment-token-usage-pattern.md) | Optional | Expected business/pricing model for the billing agreement.<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `30` | getUsagePattern(): ?string | setUsagePattern(?string usagePattern): void |
|
||||
| `usageType` | [`string(PayPalPaymentTokenUsageType)`](../../doc/models/pay-pal-payment-token-usage-type.md) | Required | The usage type associated with the PayPal payment token.<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `255`, *Pattern*: `^[0-9A-Z_]+$` | getUsageType(): string | setUsageType(string usageType): void |
|
||||
| `customerType` | [`?string(PayPalPaymentTokenCustomerType)`](../../doc/models/pay-pal-payment-token-customer-type.md) | Optional | The customer type associated with the PayPal payment token. This is to indicate whether the customer acting on the merchant / platform is either a business or a consumer.<br>**Default**: `PayPalPaymentTokenCustomerType::CONSUMER`<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `255`, *Pattern*: `^[0-9A-Z_]+$` | getCustomerType(): ?string | setCustomerType(?string customerType): void |
|
||||
| `permitMultiplePaymentTokens` | `?bool` | Optional | Create multiple payment tokens for the same payer, merchant/platform combination. Use this when the customer has not logged in at merchant/platform. The payment token thus generated, can then also be used to create the customer account at merchant/platform. Use this also when multiple payment tokens are required for the same payer, different customer at merchant/platform. This helps to identify customers distinctly even though they may share the same PayPal account. This only applies to PayPal payment source.<br>**Default**: `false` | getPermitMultiplePaymentTokens(): ?bool | setPermitMultiplePaymentTokens(?bool permitMultiplePaymentTokens): void |
|
||||
|
||||
## Example (as JSON)
|
||||
@@ -1,20 +1,20 @@
|
||||
|
||||
# Paypal Wallet Vault Response
|
||||
# Pay Pal Wallet Vault Response
|
||||
|
||||
The details about a saved PayPal Wallet payment source.
|
||||
|
||||
## Structure
|
||||
|
||||
`PaypalWalletVaultResponse`
|
||||
`PayPalWalletVaultResponse`
|
||||
|
||||
## Fields
|
||||
|
||||
| Name | Type | Tags | Description | Getter | Setter |
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| `id` | `?string` | Optional | The PayPal-generated ID for the saved payment source.<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `255` | getId(): ?string | setId(?string id): void |
|
||||
| `status` | [`?string(PaypalWalletVaultStatus)`](../../doc/models/paypal-wallet-vault-status.md) | Optional | The vault status.<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `255`, *Pattern*: `^[0-9A-Z_]+$` | getStatus(): ?string | setStatus(?string status): void |
|
||||
| `status` | [`?string(PayPalWalletVaultStatus)`](../../doc/models/pay-pal-wallet-vault-status.md) | Optional | The vault status.<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `255`, *Pattern*: `^[0-9A-Z_]+$` | getStatus(): ?string | setStatus(?string status): void |
|
||||
| `links` | [`?(LinkDescription[])`](../../doc/models/link-description.md) | Optional | An array of request-related HATEOAS links.<br>**Constraints**: *Minimum Items*: `1`, *Maximum Items*: `10` | getLinks(): ?array | setLinks(?array links): void |
|
||||
| `customer` | [`?PaypalWalletCustomer`](../../doc/models/paypal-wallet-customer.md) | Optional | The details about a customer in PayPal's system of record. | getCustomer(): ?PaypalWalletCustomer | setCustomer(?PaypalWalletCustomer customer): void |
|
||||
| `customer` | [`?PayPalWalletCustomer`](../../doc/models/pay-pal-wallet-customer.md) | Optional | The details about a customer in PayPal's system of record. | getCustomer(): ?PayPalWalletCustomer | setCustomer(?PayPalWalletCustomer customer): void |
|
||||
|
||||
## Example (as JSON)
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
|
||||
# Paypal Wallet Vault Status
|
||||
# Pay Pal Wallet Vault Status
|
||||
|
||||
The vault status.
|
||||
|
||||
## Enumeration
|
||||
|
||||
`PaypalWalletVaultStatus`
|
||||
`PayPalWalletVaultStatus`
|
||||
|
||||
## Fields
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
|
||||
# Paypal Wallet
|
||||
# Pay Pal Wallet
|
||||
|
||||
A resource that identifies a PayPal Wallet is used for payment.
|
||||
|
||||
## Structure
|
||||
|
||||
`PaypalWallet`
|
||||
`PayPalWallet`
|
||||
|
||||
## Fields
|
||||
|
||||
@@ -18,8 +18,8 @@ A resource that identifies a PayPal Wallet is used for payment.
|
||||
| `birthDate` | `?string` | Optional | The stand-alone date, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). To represent special legal values, such as a date of birth, you should use dates with no associated time or time-zone data. Whenever possible, use the standard `date_time` type. This regular expression does not validate all dates. For example, February 31 is valid and nothing is known about leap years.<br>**Constraints**: *Minimum Length*: `10`, *Maximum Length*: `10`, *Pattern*: `^[0-9]{4}-(0[1-9]\|1[0-2])-(0[1-9]\|[1-2][0-9]\|3[0-1])$` | getBirthDate(): ?string | setBirthDate(?string birthDate): void |
|
||||
| `taxInfo` | [`?TaxInfo`](../../doc/models/tax-info.md) | Optional | The tax ID of the customer. The customer is also known as the payer. Both `tax_id` and `tax_id_type` are required. | getTaxInfo(): ?TaxInfo | setTaxInfo(?TaxInfo taxInfo): void |
|
||||
| `address` | [`?Address`](../../doc/models/address.md) | Optional | The portable international postal address. Maps to [AddressValidationMetadata](https://github.com/googlei18n/libaddressinput/wiki/AddressValidationMetadata) and HTML 5.1 [Autofilling form controls: the autocomplete attribute](https://www.w3.org/TR/html51/sec-forms.html#autofilling-form-controls-the-autocomplete-attribute). | getAddress(): ?Address | setAddress(?Address address): void |
|
||||
| `attributes` | [`?PaypalWalletAttributes`](../../doc/models/paypal-wallet-attributes.md) | Optional | Additional attributes associated with the use of this PayPal Wallet. | getAttributes(): ?PaypalWalletAttributes | setAttributes(?PaypalWalletAttributes attributes): void |
|
||||
| `experienceContext` | [`?PaypalWalletExperienceContext`](../../doc/models/paypal-wallet-experience-context.md) | Optional | Customizes the payer experience during the approval process for payment with PayPal.<blockquote><strong>Note:</strong> Partners and Marketplaces might configure <code>brand_name</code> and <code>shipping_preference</code> during partner account setup, which overrides the request values.</blockquote> | getExperienceContext(): ?PaypalWalletExperienceContext | setExperienceContext(?PaypalWalletExperienceContext experienceContext): void |
|
||||
| `attributes` | [`?PayPalWalletAttributes`](../../doc/models/pay-pal-wallet-attributes.md) | Optional | Additional attributes associated with the use of this PayPal Wallet. | getAttributes(): ?PayPalWalletAttributes | setAttributes(?PayPalWalletAttributes attributes): void |
|
||||
| `experienceContext` | [`?PayPalWalletExperienceContext`](../../doc/models/pay-pal-wallet-experience-context.md) | Optional | Customizes the payer experience during the approval process for payment with PayPal.<blockquote><strong>Note:</strong> Partners and Marketplaces might configure <code>brand_name</code> and <code>shipping_preference</code> during partner account setup, which overrides the request values.</blockquote> | getExperienceContext(): ?PayPalWalletExperienceContext | setExperienceContext(?PayPalWalletExperienceContext experienceContext): void |
|
||||
| `billingAgreementId` | `?string` | Optional | The PayPal billing agreement ID. References an approved recurring payment for goods or services.<br>**Constraints**: *Minimum Length*: `2`, *Maximum Length*: `128`, *Pattern*: `^[a-zA-Z0-9-]+$` | getBillingAgreementId(): ?string | setBillingAgreementId(?string billingAgreementId): void |
|
||||
|
||||
## Example (as JSON)
|
||||
@@ -12,13 +12,13 @@ The payment source used to fund the payment.
|
||||
| Name | Type | Tags | Description | Getter | Setter |
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| `card` | [`?CardResponse`](../../doc/models/card-response.md) | Optional | The payment card to use to fund a payment. Card can be a credit or debit card. | getCard(): ?CardResponse | setCard(?CardResponse card): void |
|
||||
| `paypal` | [`?PaypalWalletResponse`](../../doc/models/paypal-wallet-response.md) | Optional | The PayPal Wallet response. | getPaypal(): ?PaypalWalletResponse | setPaypal(?PaypalWalletResponse paypal): void |
|
||||
| `paypal` | [`?PayPalWalletResponse`](../../doc/models/pay-pal-wallet-response.md) | Optional | The PayPal Wallet response. | getPaypal(): ?PayPalWalletResponse | setPaypal(?PayPalWalletResponse paypal): void |
|
||||
| `bancontact` | [`?BancontactPaymentObject`](../../doc/models/bancontact-payment-object.md) | Optional | Information used to pay Bancontact. | getBancontact(): ?BancontactPaymentObject | setBancontact(?BancontactPaymentObject bancontact): void |
|
||||
| `blik` | [`?BlikPaymentObject`](../../doc/models/blik-payment-object.md) | Optional | Information used to pay using BLIK. | getBlik(): ?BlikPaymentObject | setBlik(?BlikPaymentObject blik): void |
|
||||
| `eps` | [`?EpsPaymentObject`](../../doc/models/eps-payment-object.md) | Optional | Information used to pay using eps. | getEps(): ?EpsPaymentObject | setEps(?EpsPaymentObject eps): void |
|
||||
| `blik` | [`?BLIKPaymentObject`](../../doc/models/blik-payment-object.md) | Optional | Information used to pay using BLIK. | getBlik(): ?BLIKPaymentObject | setBlik(?BLIKPaymentObject blik): void |
|
||||
| `eps` | [`?EPSPaymentObject`](../../doc/models/eps-payment-object.md) | Optional | Information used to pay using eps. | getEps(): ?EPSPaymentObject | setEps(?EPSPaymentObject eps): void |
|
||||
| `giropay` | [`?GiropayPaymentObject`](../../doc/models/giropay-payment-object.md) | Optional | Information needed to pay using giropay. | getGiropay(): ?GiropayPaymentObject | setGiropay(?GiropayPaymentObject giropay): void |
|
||||
| `ideal` | [`?IdealPaymentObject`](../../doc/models/ideal-payment-object.md) | Optional | Information used to pay using iDEAL. | getIdeal(): ?IdealPaymentObject | setIdeal(?IdealPaymentObject ideal): void |
|
||||
| `mybank` | [`?MybankPaymentObject`](../../doc/models/mybank-payment-object.md) | Optional | Information used to pay using MyBank. | getMybank(): ?MybankPaymentObject | setMybank(?MybankPaymentObject mybank): void |
|
||||
| `ideal` | [`?IDEALPaymentObject`](../../doc/models/ideal-payment-object.md) | Optional | Information used to pay using iDEAL. | getIdeal(): ?IDEALPaymentObject | setIdeal(?IDEALPaymentObject ideal): void |
|
||||
| `mybank` | [`?MyBankPaymentObject`](../../doc/models/my-bank-payment-object.md) | Optional | Information used to pay using MyBank. | getMybank(): ?MyBankPaymentObject | setMybank(?MyBankPaymentObject mybank): void |
|
||||
| `p24` | [`?P24PaymentObject`](../../doc/models/p24-payment-object.md) | Optional | Information used to pay using P24(Przelewy24). | getP24(): ?P24PaymentObject | setP24(?P24PaymentObject p24): void |
|
||||
| `sofort` | [`?SofortPaymentObject`](../../doc/models/sofort-payment-object.md) | Optional | Information used to pay using Sofort. | getSofort(): ?SofortPaymentObject | setSofort(?SofortPaymentObject sofort): void |
|
||||
| `trustly` | [`?TrustlyPaymentObject`](../../doc/models/trustly-payment-object.md) | Optional | Information needed to pay using Trustly. | getTrustly(): ?TrustlyPaymentObject | setTrustly(?TrustlyPaymentObject trustly): void |
|
||||
|
||||
@@ -13,13 +13,13 @@ The payment source definition.
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| `card` | [`?CardRequest`](../../doc/models/card-request.md) | Optional | The payment card to use to fund a payment. Can be a credit or debit card.<blockquote><strong>Note:</strong> Passing card number, cvv and expiry directly via the API requires <a href="https://www.pcisecuritystandards.org/pci_security/completing_self_assessment"> PCI SAQ D compliance</a>. <br>*PayPal offers a mechanism by which you do not have to take on the <strong>PCI SAQ D</strong> burden by using hosted fields - refer to <a href="https://developer.paypal.com/docs/checkout/advanced/integrate/">this Integration Guide</a>*.</blockquote> | getCard(): ?CardRequest | setCard(?CardRequest card): void |
|
||||
| `token` | [`?Token`](../../doc/models/token.md) | Optional | The tokenized payment source to fund a payment. | getToken(): ?Token | setToken(?Token token): void |
|
||||
| `paypal` | [`?PaypalWallet`](../../doc/models/paypal-wallet.md) | Optional | A resource that identifies a PayPal Wallet is used for payment. | getPaypal(): ?PaypalWallet | setPaypal(?PaypalWallet paypal): void |
|
||||
| `paypal` | [`?PayPalWallet`](../../doc/models/pay-pal-wallet.md) | Optional | A resource that identifies a PayPal Wallet is used for payment. | getPaypal(): ?PayPalWallet | setPaypal(?PayPalWallet paypal): void |
|
||||
| `bancontact` | [`?BancontactPaymentRequest`](../../doc/models/bancontact-payment-request.md) | Optional | Information needed to pay using Bancontact. | getBancontact(): ?BancontactPaymentRequest | setBancontact(?BancontactPaymentRequest bancontact): void |
|
||||
| `blik` | [`?BlikPaymentRequest`](../../doc/models/blik-payment-request.md) | Optional | Information needed to pay using BLIK. | getBlik(): ?BlikPaymentRequest | setBlik(?BlikPaymentRequest blik): void |
|
||||
| `eps` | [`?EpsPaymentRequest`](../../doc/models/eps-payment-request.md) | Optional | Information needed to pay using eps. | getEps(): ?EpsPaymentRequest | setEps(?EpsPaymentRequest eps): void |
|
||||
| `blik` | [`?BLIKPaymentRequest`](../../doc/models/blik-payment-request.md) | Optional | Information needed to pay using BLIK. | getBlik(): ?BLIKPaymentRequest | setBlik(?BLIKPaymentRequest blik): void |
|
||||
| `eps` | [`?EPSPaymentRequest`](../../doc/models/eps-payment-request.md) | Optional | Information needed to pay using eps. | getEps(): ?EPSPaymentRequest | setEps(?EPSPaymentRequest eps): void |
|
||||
| `giropay` | [`?GiropayPaymentRequest`](../../doc/models/giropay-payment-request.md) | Optional | Information needed to pay using giropay. | getGiropay(): ?GiropayPaymentRequest | setGiropay(?GiropayPaymentRequest giropay): void |
|
||||
| `ideal` | [`?IdealPaymentRequest`](../../doc/models/ideal-payment-request.md) | Optional | Information needed to pay using iDEAL. | getIdeal(): ?IdealPaymentRequest | setIdeal(?IdealPaymentRequest ideal): void |
|
||||
| `mybank` | [`?MybankPaymentRequest`](../../doc/models/mybank-payment-request.md) | Optional | Information needed to pay using MyBank. | getMybank(): ?MybankPaymentRequest | setMybank(?MybankPaymentRequest mybank): void |
|
||||
| `ideal` | [`?IDEALPaymentRequest`](../../doc/models/ideal-payment-request.md) | Optional | Information needed to pay using iDEAL. | getIdeal(): ?IDEALPaymentRequest | setIdeal(?IDEALPaymentRequest ideal): void |
|
||||
| `mybank` | [`?MyBankPaymentRequest`](../../doc/models/my-bank-payment-request.md) | Optional | Information needed to pay using MyBank. | getMybank(): ?MyBankPaymentRequest | setMybank(?MyBankPaymentRequest mybank): void |
|
||||
| `p24` | [`?P24PaymentRequest`](../../doc/models/p24-payment-request.md) | Optional | Information needed to pay using P24 (Przelewy24). | getP24(): ?P24PaymentRequest | setP24(?P24PaymentRequest p24): void |
|
||||
| `sofort` | [`?SofortPaymentRequest`](../../doc/models/sofort-payment-request.md) | Optional | Information needed to pay using Sofort. | getSofort(): ?SofortPaymentRequest | setSofort(?SofortPaymentRequest sofort): void |
|
||||
| `trustly` | [`?TrustlyPaymentRequest`](../../doc/models/trustly-payment-request.md) | Optional | Information needed to pay using Trustly. | getTrustly(): ?TrustlyPaymentRequest | setTrustly(?TrustlyPaymentRequest trustly): void |
|
||||
|
||||
@@ -12,7 +12,7 @@ The vaulted payment method details.
|
||||
| Name | Type | Tags | Description | Getter | Setter |
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| `card` | [`?CardPaymentToken`](../../doc/models/card-payment-token.md) | Optional | Full representation of a Card Payment Token including network token. | getCard(): ?CardPaymentToken | setCard(?CardPaymentToken card): void |
|
||||
| `paypal` | [`?PaypalPaymentToken`](../../doc/models/paypal-payment-token.md) | Optional | - | getPaypal(): ?PaypalPaymentToken | setPaypal(?PaypalPaymentToken paypal): void |
|
||||
| `paypal` | [`?PayPalPaymentToken`](../../doc/models/pay-pal-payment-token.md) | Optional | - | getPaypal(): ?PayPalPaymentToken | setPaypal(?PayPalPaymentToken paypal): void |
|
||||
| `venmo` | [`?VenmoPaymentToken`](../../doc/models/venmo-payment-token.md) | Optional | - | getVenmo(): ?VenmoPaymentToken | setVenmo(?VenmoPaymentToken venmo): void |
|
||||
| `applePay` | [`?ApplePayPaymentToken`](../../doc/models/apple-pay-payment-token.md) | Optional | A resource representing a response for Apple Pay. | getApplePay(): ?ApplePayPaymentToken | setApplePay(?ApplePayPaymentToken applePay): void |
|
||||
| `bank` | `mixed` | Optional | Full representation of a Bank Payment Token. | getBank(): | setBank( bank): void |
|
||||
|
||||
@@ -11,8 +11,8 @@ The processor response information for payment requests, such as direct credit c
|
||||
|
||||
| Name | Type | Tags | Description | Getter | Setter |
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| `avsCode` | [`?string(AvsCode)`](../../doc/models/avs-code.md) | Optional | The address verification code for Visa, Discover, Mastercard, or American Express transactions. | getAvsCode(): ?string | setAvsCode(?string avsCode): void |
|
||||
| `cvvCode` | [`?string(CvvCode)`](../../doc/models/cvv-code.md) | Optional | The card verification value code for for Visa, Discover, Mastercard, or American Express. | getCvvCode(): ?string | setCvvCode(?string cvvCode): void |
|
||||
| `avsCode` | [`?string(AVSCode)`](../../doc/models/avs-code.md) | Optional | The address verification code for Visa, Discover, Mastercard, or American Express transactions. | getAvsCode(): ?string | setAvsCode(?string avsCode): void |
|
||||
| `cvvCode` | [`?string(CVVCode)`](../../doc/models/cvv-code.md) | Optional | The card verification value code for for Visa, Discover, Mastercard, or American Express. | getCvvCode(): ?string | setCvvCode(?string cvvCode): void |
|
||||
| `responseCode` | [`?string(ProcessorResponseCode)`](../../doc/models/processor-response-code.md) | Optional | Processor response code for the non-PayPal payment processor errors. | getResponseCode(): ?string | setResponseCode(?string responseCode): void |
|
||||
| `paymentAdviceCode` | [`?string(PaymentAdviceCode)`](../../doc/models/payment-advice-code.md) | Optional | The declined payment transactions might have payment advice codes. The card networks, like Visa and Mastercard, return payment advice codes. | getPaymentAdviceCode(): ?string | setPaymentAdviceCode(?string paymentAdviceCode): void |
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ The payment method to vault with the instrument details.
|
||||
| Name | Type | Tags | Description | Getter | Setter |
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| `card` | [`?SetupTokenRequestCard`](../../doc/models/setup-token-request-card.md) | Optional | A Resource representing a request to vault a Card. | getCard(): ?SetupTokenRequestCard | setCard(?SetupTokenRequestCard card): void |
|
||||
| `paypal` | [`?VaultPaypalWalletRequest`](../../doc/models/vault-paypal-wallet-request.md) | Optional | A resource representing a request to vault PayPal Wallet. | getPaypal(): ?VaultPaypalWalletRequest | setPaypal(?VaultPaypalWalletRequest paypal): void |
|
||||
| `paypal` | [`?VaultPayPalWalletRequest`](../../doc/models/vault-pay-pal-wallet-request.md) | Optional | A resource representing a request to vault PayPal Wallet. | getPaypal(): ?VaultPayPalWalletRequest | setPaypal(?VaultPayPalWalletRequest paypal): void |
|
||||
| `venmo` | [`?VaultVenmoRequest`](../../doc/models/vault-venmo-request.md) | Optional | - | getVenmo(): ?VaultVenmoRequest | setVenmo(?VaultVenmoRequest venmo): void |
|
||||
| `token` | [`?VaultTokenRequest`](../../doc/models/vault-token-request.md) | Optional | The Tokenized Payment Source representing a Request to Vault a Token. | getToken(): ?VaultTokenRequest | setToken(?VaultTokenRequest token): void |
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ The setup payment method details.
|
||||
| Name | Type | Tags | Description | Getter | Setter |
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| `card` | [`?SetupTokenResponseCard`](../../doc/models/setup-token-response-card.md) | Optional | - | getCard(): ?SetupTokenResponseCard | setCard(?SetupTokenResponseCard card): void |
|
||||
| `paypal` | [`?PaypalPaymentToken`](../../doc/models/paypal-payment-token.md) | Optional | - | getPaypal(): ?PaypalPaymentToken | setPaypal(?PaypalPaymentToken paypal): void |
|
||||
| `paypal` | [`?PayPalPaymentToken`](../../doc/models/pay-pal-payment-token.md) | Optional | - | getPaypal(): ?PayPalPaymentToken | setPaypal(?PayPalPaymentToken paypal): void |
|
||||
| `venmo` | [`?VenmoPaymentToken`](../../doc/models/venmo-payment-token.md) | Optional | - | getVenmo(): ?VenmoPaymentToken | setVenmo(?VenmoPaymentToken venmo): void |
|
||||
|
||||
## Example (as JSON)
|
||||
|
||||
@@ -11,7 +11,7 @@ Results of 3D Secure Authentication.
|
||||
|
||||
| Name | Type | Tags | Description | Getter | Setter |
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| `authenticationStatus` | [`?string(PaResStatus)`](../../doc/models/pa-res-status.md) | Optional | Transactions status result identifier. The outcome of the issuer's authentication.<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `255`, *Pattern*: `^[0-9A-Z_]+$` | getAuthenticationStatus(): ?string | setAuthenticationStatus(?string authenticationStatus): void |
|
||||
| `authenticationStatus` | [`?string(PAResStatus)`](../../doc/models/pa-res-status.md) | Optional | Transactions status result identifier. The outcome of the issuer's authentication.<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `255`, *Pattern*: `^[0-9A-Z_]+$` | getAuthenticationStatus(): ?string | setAuthenticationStatus(?string authenticationStatus): void |
|
||||
| `enrollmentStatus` | [`?string(EnrollmentStatus)`](../../doc/models/enrollment-status.md) | Optional | Status of Authentication eligibility.<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `255`, *Pattern*: `^[0-9A-Z_]+$` | getEnrollmentStatus(): ?string | setEnrollmentStatus(?string enrollmentStatus): void |
|
||||
|
||||
## Example (as JSON)
|
||||
|
||||
@@ -11,7 +11,7 @@ The Universal Product Code of the item.
|
||||
|
||||
| Name | Type | Tags | Description | Getter | Setter |
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| `type` | [`string(UpcType)`](../../doc/models/upc-type.md) | Required | The Universal Product Code type.<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `5`, *Pattern*: `^[0-9A-Z_-]+$` | getType(): string | setType(string type): void |
|
||||
| `type` | [`string(UPCType)`](../../doc/models/upc-type.md) | Required | The Universal Product Code type.<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `5`, *Pattern*: `^[0-9A-Z_-]+$` | getType(): string | setType(string type): void |
|
||||
| `code` | `string` | Required | The UPC product code of the item.<br>**Constraints**: *Minimum Length*: `6`, *Maximum Length*: `17`, *Pattern*: `^[0-9]{0,17}$` | getCode(): string | setCode(string code): void |
|
||||
|
||||
## Example (as JSON)
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
|
||||
# Upc Type
|
||||
# UPC Type
|
||||
|
||||
The Universal Product Code type.
|
||||
|
||||
## Enumeration
|
||||
|
||||
`UpcType`
|
||||
`UPCType`
|
||||
|
||||
## Fields
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
|
||||
# Vault Paypal Wallet Request
|
||||
# Vault Pay Pal Wallet Request
|
||||
|
||||
A resource representing a request to vault PayPal Wallet.
|
||||
|
||||
## Structure
|
||||
|
||||
`VaultPaypalWalletRequest`
|
||||
`VaultPayPalWalletRequest`
|
||||
|
||||
## Fields
|
||||
|
||||
@@ -23,119 +23,6 @@ use PaypalServerSdkLib\Models\OrderAuthorizeResponse;
|
||||
|
||||
class OrdersController extends BaseController
|
||||
{
|
||||
/**
|
||||
* Authorizes payment for an order. To successfully authorize payment for an order, the buyer must
|
||||
* first approve the order or a valid payment_source must be provided in the request. A buyer can
|
||||
* approve the order upon being redirected to the rel:approve URL that was returned in the HATEOAS
|
||||
* links in the create order response.<blockquote><strong>Note:</strong> For error handling and
|
||||
* troubleshooting, see <a href="https://developer.paypal.
|
||||
* com/api/rest/reference/orders/v2/errors/#authorize-order">Orders v2 errors</a>.</blockquote>
|
||||
*
|
||||
* @param array $options Array with all options for search
|
||||
*
|
||||
* @return ApiResponse Response from the API call
|
||||
*/
|
||||
public function ordersAuthorize(array $options): ApiResponse
|
||||
{
|
||||
$_reqBuilder = $this->requestBuilder(RequestMethod::POST, '/v2/checkout/orders/{id}/authorize')
|
||||
->auth('Oauth2')
|
||||
->parameters(
|
||||
TemplateParam::init('id', $options)->extract('id'),
|
||||
HeaderParam::init('Content-Type', 'application/json'),
|
||||
HeaderParam::init('PayPal-Request-Id', $options)->extract('paypalRequestId'),
|
||||
HeaderParam::init('Prefer', $options)->extract('prefer', 'return=minimal'),
|
||||
HeaderParam::init('PayPal-Client-Metadata-Id', $options)->extract('paypalClientMetadataId'),
|
||||
HeaderParam::init('PayPal-Auth-Assertion', $options)->extract('paypalAuthAssertion'),
|
||||
BodyParam::init($options)->extract('body')
|
||||
);
|
||||
|
||||
$_resHandler = $this->responseHandler()
|
||||
->throwErrorOn(
|
||||
'400',
|
||||
ErrorType::init(
|
||||
'Request is not well-formed, syntactically incorrect, or violates schema.',
|
||||
ErrorException::class
|
||||
)
|
||||
)
|
||||
->throwErrorOn(
|
||||
'401',
|
||||
ErrorType::init(
|
||||
'Authentication failed due to missing authorization header, or invalid auth' .
|
||||
'entication credentials.',
|
||||
ErrorException::class
|
||||
)
|
||||
)
|
||||
->throwErrorOn(
|
||||
'403',
|
||||
ErrorType::init(
|
||||
'The authorized payment failed due to insufficient permissions.',
|
||||
ErrorException::class
|
||||
)
|
||||
)
|
||||
->throwErrorOn('404', ErrorType::init('The specified resource does not exist.', ErrorException::class))
|
||||
->throwErrorOn(
|
||||
'422',
|
||||
ErrorType::init(
|
||||
'The requested action could not be performed, semantically incorrect, or fa' .
|
||||
'iled business validation.',
|
||||
ErrorException::class
|
||||
)
|
||||
)
|
||||
->throwErrorOn('500', ErrorType::init('An internal server error has occurred.', ErrorException::class))
|
||||
->throwErrorOn('0', ErrorType::init('The error response.', ErrorException::class))
|
||||
->type(OrderAuthorizeResponse::class)
|
||||
->returnApiResponse();
|
||||
|
||||
return $this->execute($_reqBuilder, $_resHandler);
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds tracking information for an Order.
|
||||
*
|
||||
* @param array $options Array with all options for search
|
||||
*
|
||||
* @return ApiResponse Response from the API call
|
||||
*/
|
||||
public function ordersTrackCreate(array $options): ApiResponse
|
||||
{
|
||||
$_reqBuilder = $this->requestBuilder(RequestMethod::POST, '/v2/checkout/orders/{id}/track')
|
||||
->auth('Oauth2')
|
||||
->parameters(
|
||||
TemplateParam::init('id', $options)->extract('id'),
|
||||
HeaderParam::init('Content-Type', 'application/json'),
|
||||
BodyParam::init($options)->extract('body'),
|
||||
HeaderParam::init('PayPal-Auth-Assertion', $options)->extract('paypalAuthAssertion')
|
||||
);
|
||||
|
||||
$_resHandler = $this->responseHandler()
|
||||
->throwErrorOn(
|
||||
'400',
|
||||
ErrorType::init(
|
||||
'Request is not well-formed, syntactically incorrect, or violates schema.',
|
||||
ErrorException::class
|
||||
)
|
||||
)
|
||||
->throwErrorOn(
|
||||
'403',
|
||||
ErrorType::init('Authorization failed due to insufficient permissions.', ErrorException::class)
|
||||
)
|
||||
->throwErrorOn('404', ErrorType::init('The specified resource does not exist.', ErrorException::class))
|
||||
->throwErrorOn(
|
||||
'422',
|
||||
ErrorType::init(
|
||||
'The requested action could not be performed, semantically incorrect, or fa' .
|
||||
'iled business validation.',
|
||||
ErrorException::class
|
||||
)
|
||||
)
|
||||
->throwErrorOn('500', ErrorType::init('An internal server error has occurred.', ErrorException::class))
|
||||
->throwErrorOn('0', ErrorType::init('The error response.', ErrorException::class))
|
||||
->type(Order::class)
|
||||
->returnApiResponse();
|
||||
|
||||
return $this->execute($_reqBuilder, $_resHandler);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates an order. Merchants and partners can add Level 2 and 3 data to payments to reduce risk and
|
||||
* payment processing costs. For more information about processing payments, see <a href="https:
|
||||
@@ -156,9 +43,9 @@ class OrdersController extends BaseController
|
||||
->parameters(
|
||||
HeaderParam::init('Content-Type', 'application/json'),
|
||||
BodyParam::init($options)->extract('body'),
|
||||
HeaderParam::init('PayPal-Request-Id', $options)->extract('paypalRequestId'),
|
||||
HeaderParam::init('PayPal-Partner-Attribution-Id', $options)->extract('paypalPartnerAttributionId'),
|
||||
HeaderParam::init('PayPal-Client-Metadata-Id', $options)->extract('paypalClientMetadataId'),
|
||||
HeaderParam::init('PayPal-Request-Id', $options)->extract('payPalRequestId'),
|
||||
HeaderParam::init('PayPal-Partner-Attribution-Id', $options)->extract('payPalPartnerAttributionId'),
|
||||
HeaderParam::init('PayPal-Client-Metadata-Id', $options)->extract('payPalClientMetadataId'),
|
||||
HeaderParam::init('Prefer', $options)->extract('prefer', 'return=minimal')
|
||||
);
|
||||
|
||||
@@ -193,6 +80,41 @@ class OrdersController extends BaseController
|
||||
return $this->execute($_reqBuilder, $_resHandler);
|
||||
}
|
||||
|
||||
/**
|
||||
* Shows details for an order, by ID.<blockquote><strong>Note:</strong> For error handling and
|
||||
* troubleshooting, see <a href="https://developer.paypal.com/api/rest/reference/orders/v2/errors/#get-
|
||||
* order">Orders v2 errors</a>.</blockquote>
|
||||
*
|
||||
* @param array $options Array with all options for search
|
||||
*
|
||||
* @return ApiResponse Response from the API call
|
||||
*/
|
||||
public function ordersGet(array $options): ApiResponse
|
||||
{
|
||||
$_reqBuilder = $this->requestBuilder(RequestMethod::GET, '/v2/checkout/orders/{id}')
|
||||
->auth('Oauth2')
|
||||
->parameters(
|
||||
TemplateParam::init('id', $options)->extract('id'),
|
||||
QueryParam::init('fields', $options)->extract('fields')
|
||||
);
|
||||
|
||||
$_resHandler = $this->responseHandler()
|
||||
->throwErrorOn(
|
||||
'401',
|
||||
ErrorType::init(
|
||||
'Authentication failed due to missing authorization header, or invalid auth' .
|
||||
'entication credentials.',
|
||||
ErrorException::class
|
||||
)
|
||||
)
|
||||
->throwErrorOn('404', ErrorType::init('The specified resource does not exist.', ErrorException::class))
|
||||
->throwErrorOn('0', ErrorType::init('The error response.', ErrorException::class))
|
||||
->type(Order::class)
|
||||
->returnApiResponse();
|
||||
|
||||
return $this->execute($_reqBuilder, $_resHandler);
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates an order with a `CREATED` or `APPROVED` status. You cannot update an order with the
|
||||
* `COMPLETED` status.<br/><br/>To make an update, you must provide a `reference_id`. If you omit this
|
||||
@@ -279,6 +201,122 @@ class OrdersController extends BaseController
|
||||
return $this->execute($_reqBuilder, $_resHandler);
|
||||
}
|
||||
|
||||
/**
|
||||
* Payer confirms their intent to pay for the the Order with the given payment source.
|
||||
*
|
||||
* @param array $options Array with all options for search
|
||||
*
|
||||
* @return ApiResponse Response from the API call
|
||||
*/
|
||||
public function ordersConfirm(array $options): ApiResponse
|
||||
{
|
||||
$_reqBuilder = $this->requestBuilder(
|
||||
RequestMethod::POST,
|
||||
'/v2/checkout/orders/{id}/confirm-payment-source'
|
||||
)
|
||||
->auth('Oauth2')
|
||||
->parameters(
|
||||
TemplateParam::init('id', $options)->extract('id'),
|
||||
HeaderParam::init('Content-Type', 'application/json'),
|
||||
HeaderParam::init('PayPal-Client-Metadata-Id', $options)->extract('payPalClientMetadataId'),
|
||||
HeaderParam::init('Prefer', $options)->extract('prefer', 'return=minimal'),
|
||||
BodyParam::init($options)->extract('body')
|
||||
);
|
||||
|
||||
$_resHandler = $this->responseHandler()
|
||||
->throwErrorOn(
|
||||
'400',
|
||||
ErrorType::init(
|
||||
'Request is not well-formed, syntactically incorrect, or violates schema.',
|
||||
ErrorException::class
|
||||
)
|
||||
)
|
||||
->throwErrorOn(
|
||||
'403',
|
||||
ErrorType::init('Authorization failed due to insufficient permissions.', ErrorException::class)
|
||||
)
|
||||
->throwErrorOn(
|
||||
'422',
|
||||
ErrorType::init(
|
||||
'The requested action could not be performed, semantically incorrect, or fa' .
|
||||
'iled business validation.',
|
||||
ErrorException::class
|
||||
)
|
||||
)
|
||||
->throwErrorOn('500', ErrorType::init('An internal server error has occurred.', ErrorException::class))
|
||||
->throwErrorOn('0', ErrorType::init('The error response.', ErrorException::class))
|
||||
->type(Order::class)
|
||||
->returnApiResponse();
|
||||
|
||||
return $this->execute($_reqBuilder, $_resHandler);
|
||||
}
|
||||
|
||||
/**
|
||||
* Authorizes payment for an order. To successfully authorize payment for an order, the buyer must
|
||||
* first approve the order or a valid payment_source must be provided in the request. A buyer can
|
||||
* approve the order upon being redirected to the rel:approve URL that was returned in the HATEOAS
|
||||
* links in the create order response.<blockquote><strong>Note:</strong> For error handling and
|
||||
* troubleshooting, see <a href="https://developer.paypal.
|
||||
* com/api/rest/reference/orders/v2/errors/#authorize-order">Orders v2 errors</a>.</blockquote>
|
||||
*
|
||||
* @param array $options Array with all options for search
|
||||
*
|
||||
* @return ApiResponse Response from the API call
|
||||
*/
|
||||
public function ordersAuthorize(array $options): ApiResponse
|
||||
{
|
||||
$_reqBuilder = $this->requestBuilder(RequestMethod::POST, '/v2/checkout/orders/{id}/authorize')
|
||||
->auth('Oauth2')
|
||||
->parameters(
|
||||
TemplateParam::init('id', $options)->extract('id'),
|
||||
HeaderParam::init('Content-Type', 'application/json'),
|
||||
HeaderParam::init('PayPal-Request-Id', $options)->extract('payPalRequestId'),
|
||||
HeaderParam::init('Prefer', $options)->extract('prefer', 'return=minimal'),
|
||||
HeaderParam::init('PayPal-Client-Metadata-Id', $options)->extract('payPalClientMetadataId'),
|
||||
HeaderParam::init('PayPal-Auth-Assertion', $options)->extract('payPalAuthAssertion'),
|
||||
BodyParam::init($options)->extract('body')
|
||||
);
|
||||
|
||||
$_resHandler = $this->responseHandler()
|
||||
->throwErrorOn(
|
||||
'400',
|
||||
ErrorType::init(
|
||||
'Request is not well-formed, syntactically incorrect, or violates schema.',
|
||||
ErrorException::class
|
||||
)
|
||||
)
|
||||
->throwErrorOn(
|
||||
'401',
|
||||
ErrorType::init(
|
||||
'Authentication failed due to missing authorization header, or invalid auth' .
|
||||
'entication credentials.',
|
||||
ErrorException::class
|
||||
)
|
||||
)
|
||||
->throwErrorOn(
|
||||
'403',
|
||||
ErrorType::init(
|
||||
'The authorized payment failed due to insufficient permissions.',
|
||||
ErrorException::class
|
||||
)
|
||||
)
|
||||
->throwErrorOn('404', ErrorType::init('The specified resource does not exist.', ErrorException::class))
|
||||
->throwErrorOn(
|
||||
'422',
|
||||
ErrorType::init(
|
||||
'The requested action could not be performed, semantically incorrect, or fa' .
|
||||
'iled business validation.',
|
||||
ErrorException::class
|
||||
)
|
||||
)
|
||||
->throwErrorOn('500', ErrorType::init('An internal server error has occurred.', ErrorException::class))
|
||||
->throwErrorOn('0', ErrorType::init('The error response.', ErrorException::class))
|
||||
->type(OrderAuthorizeResponse::class)
|
||||
->returnApiResponse();
|
||||
|
||||
return $this->execute($_reqBuilder, $_resHandler);
|
||||
}
|
||||
|
||||
/**
|
||||
* Captures payment for an order. To successfully capture payment for an order, the buyer must first
|
||||
* approve the order or a valid payment_source must be provided in the request. A buyer can approve the
|
||||
@@ -298,10 +336,10 @@ class OrdersController extends BaseController
|
||||
->parameters(
|
||||
TemplateParam::init('id', $options)->extract('id'),
|
||||
HeaderParam::init('Content-Type', 'application/json'),
|
||||
HeaderParam::init('PayPal-Request-Id', $options)->extract('paypalRequestId'),
|
||||
HeaderParam::init('PayPal-Request-Id', $options)->extract('payPalRequestId'),
|
||||
HeaderParam::init('Prefer', $options)->extract('prefer', 'return=minimal'),
|
||||
HeaderParam::init('PayPal-Client-Metadata-Id', $options)->extract('paypalClientMetadataId'),
|
||||
HeaderParam::init('PayPal-Auth-Assertion', $options)->extract('paypalAuthAssertion'),
|
||||
HeaderParam::init('PayPal-Client-Metadata-Id', $options)->extract('payPalClientMetadataId'),
|
||||
HeaderParam::init('PayPal-Auth-Assertion', $options)->extract('payPalAuthAssertion'),
|
||||
BodyParam::init($options)->extract('body')
|
||||
);
|
||||
|
||||
@@ -346,60 +384,21 @@ class OrdersController extends BaseController
|
||||
}
|
||||
|
||||
/**
|
||||
* Shows details for an order, by ID.<blockquote><strong>Note:</strong> For error handling and
|
||||
* troubleshooting, see <a href="https://developer.paypal.com/api/rest/reference/orders/v2/errors/#get-
|
||||
* order">Orders v2 errors</a>.</blockquote>
|
||||
* Adds tracking information for an Order.
|
||||
*
|
||||
* @param array $options Array with all options for search
|
||||
*
|
||||
* @return ApiResponse Response from the API call
|
||||
*/
|
||||
public function ordersGet(array $options): ApiResponse
|
||||
public function ordersTrackCreate(array $options): ApiResponse
|
||||
{
|
||||
$_reqBuilder = $this->requestBuilder(RequestMethod::GET, '/v2/checkout/orders/{id}')
|
||||
->auth('Oauth2')
|
||||
->parameters(
|
||||
TemplateParam::init('id', $options)->extract('id'),
|
||||
QueryParam::init('fields', $options)->extract('fields')
|
||||
);
|
||||
|
||||
$_resHandler = $this->responseHandler()
|
||||
->throwErrorOn(
|
||||
'401',
|
||||
ErrorType::init(
|
||||
'Authentication failed due to missing authorization header, or invalid auth' .
|
||||
'entication credentials.',
|
||||
ErrorException::class
|
||||
)
|
||||
)
|
||||
->throwErrorOn('404', ErrorType::init('The specified resource does not exist.', ErrorException::class))
|
||||
->throwErrorOn('0', ErrorType::init('The error response.', ErrorException::class))
|
||||
->type(Order::class)
|
||||
->returnApiResponse();
|
||||
|
||||
return $this->execute($_reqBuilder, $_resHandler);
|
||||
}
|
||||
|
||||
/**
|
||||
* Payer confirms their intent to pay for the the Order with the given payment source.
|
||||
*
|
||||
* @param array $options Array with all options for search
|
||||
*
|
||||
* @return ApiResponse Response from the API call
|
||||
*/
|
||||
public function ordersConfirm(array $options): ApiResponse
|
||||
{
|
||||
$_reqBuilder = $this->requestBuilder(
|
||||
RequestMethod::POST,
|
||||
'/v2/checkout/orders/{id}/confirm-payment-source'
|
||||
)
|
||||
$_reqBuilder = $this->requestBuilder(RequestMethod::POST, '/v2/checkout/orders/{id}/track')
|
||||
->auth('Oauth2')
|
||||
->parameters(
|
||||
TemplateParam::init('id', $options)->extract('id'),
|
||||
HeaderParam::init('Content-Type', 'application/json'),
|
||||
HeaderParam::init('PayPal-Client-Metadata-Id', $options)->extract('paypalClientMetadataId'),
|
||||
HeaderParam::init('Prefer', $options)->extract('prefer', 'return=minimal'),
|
||||
BodyParam::init($options)->extract('body')
|
||||
BodyParam::init($options)->extract('body'),
|
||||
HeaderParam::init('PayPal-Auth-Assertion', $options)->extract('payPalAuthAssertion')
|
||||
);
|
||||
|
||||
$_resHandler = $this->responseHandler()
|
||||
@@ -414,6 +413,7 @@ class OrdersController extends BaseController
|
||||
'403',
|
||||
ErrorType::init('Authorization failed due to insufficient permissions.', ErrorException::class)
|
||||
)
|
||||
->throwErrorOn('404', ErrorType::init('The specified resource does not exist.', ErrorException::class))
|
||||
->throwErrorOn(
|
||||
'422',
|
||||
ErrorType::init(
|
||||
|
||||
@@ -81,7 +81,7 @@ class PaymentsController extends BaseController
|
||||
->parameters(
|
||||
TemplateParam::init('authorization_id', $options)->extract('authorizationId'),
|
||||
HeaderParam::init('Content-Type', 'application/json'),
|
||||
HeaderParam::init('PayPal-Request-Id', $options)->extract('paypalRequestId'),
|
||||
HeaderParam::init('PayPal-Request-Id', $options)->extract('payPalRequestId'),
|
||||
HeaderParam::init('Prefer', $options)->extract('prefer', 'return=minimal'),
|
||||
BodyParam::init($options)->extract('body')
|
||||
);
|
||||
@@ -136,6 +136,82 @@ class PaymentsController extends BaseController
|
||||
return $this->execute($_reqBuilder, $_resHandler);
|
||||
}
|
||||
|
||||
/**
|
||||
* Reauthorizes an authorized PayPal account payment, by ID. To ensure that funds are still available,
|
||||
* reauthorize a payment after its initial three-day honor period expires. Within the 29-day
|
||||
* authorization period, you can issue multiple re-authorizations after the honor period expires.
|
||||
* <br/><br/>If 30 days have transpired since the date of the original authorization, you must create
|
||||
* an authorized payment instead of reauthorizing the original authorized payment.<br/><br/>A
|
||||
* reauthorized payment itself has a new honor period of three days.<br/><br/>You can reauthorize an
|
||||
* authorized payment from 4 to 29 days after the 3-day honor period. The allowed amount depends on
|
||||
* context and geography, for example in US it is up to 115% of the original authorized amount, not to
|
||||
* exceed an increase of $75 USD.<br/><br/>Supports only the `amount` request parameter.
|
||||
* <blockquote><strong>Note:</strong> This request is currently not supported for Partner use cases.
|
||||
* </blockquote>
|
||||
*
|
||||
* @param array $options Array with all options for search
|
||||
*
|
||||
* @return ApiResponse Response from the API call
|
||||
*/
|
||||
public function authorizationsReauthorize(array $options): ApiResponse
|
||||
{
|
||||
$_reqBuilder = $this->requestBuilder(
|
||||
RequestMethod::POST,
|
||||
'/v2/payments/authorizations/{authorization_id}/reauthorize'
|
||||
)
|
||||
->auth('Oauth2')
|
||||
->parameters(
|
||||
TemplateParam::init('authorization_id', $options)->extract('authorizationId'),
|
||||
HeaderParam::init('Content-Type', 'application/json'),
|
||||
HeaderParam::init('PayPal-Request-Id', $options)->extract('payPalRequestId'),
|
||||
HeaderParam::init('Prefer', $options)->extract('prefer', 'return=minimal'),
|
||||
BodyParam::init($options)->extract('body')
|
||||
);
|
||||
|
||||
$_resHandler = $this->responseHandler()
|
||||
->throwErrorOn(
|
||||
'400',
|
||||
ErrorType::init(
|
||||
'The request failed because it is not well-formed or is syntactically incor' .
|
||||
'rect or violates schema.',
|
||||
ErrorException::class
|
||||
)
|
||||
)
|
||||
->throwErrorOn(
|
||||
'401',
|
||||
ErrorType::init(
|
||||
'Authentication failed due to missing authorization header, or invalid auth' .
|
||||
'entication credentials.',
|
||||
ErrorException::class
|
||||
)
|
||||
)
|
||||
->throwErrorOn(
|
||||
'403',
|
||||
ErrorType::init(
|
||||
'The request failed because the caller has insufficient permissions.',
|
||||
ErrorException::class
|
||||
)
|
||||
)
|
||||
->throwErrorOn(
|
||||
'404',
|
||||
ErrorType::init('The request failed because the resource does not exist.', ErrorException::class)
|
||||
)
|
||||
->throwErrorOn(
|
||||
'422',
|
||||
ErrorType::init(
|
||||
'The request failed because it either is semantically incorrect or failed b' .
|
||||
'usiness validation.',
|
||||
ErrorException::class
|
||||
)
|
||||
)
|
||||
->throwErrorOn('500', ErrorType::init('The request failed because an internal server error occurred.'))
|
||||
->throwErrorOn('0', ErrorType::init('The error response.', ErrorException::class))
|
||||
->type(PaymentAuthorization::class)
|
||||
->returnApiResponse();
|
||||
|
||||
return $this->execute($_reqBuilder, $_resHandler);
|
||||
}
|
||||
|
||||
/**
|
||||
* Voids, or cancels, an authorized payment, by ID. You cannot void an authorized payment that has been
|
||||
* fully captured.
|
||||
@@ -153,7 +229,7 @@ class PaymentsController extends BaseController
|
||||
->auth('Oauth2')
|
||||
->parameters(
|
||||
TemplateParam::init('authorization_id', $options)->extract('authorizationId'),
|
||||
HeaderParam::init('PayPal-Auth-Assertion', $options)->extract('paypalAuthAssertion'),
|
||||
HeaderParam::init('PayPal-Auth-Assertion', $options)->extract('payPalAuthAssertion'),
|
||||
HeaderParam::init('Prefer', $options)->extract('prefer', 'return=minimal')
|
||||
);
|
||||
|
||||
@@ -209,82 +285,6 @@ class PaymentsController extends BaseController
|
||||
return $this->execute($_reqBuilder, $_resHandler);
|
||||
}
|
||||
|
||||
/**
|
||||
* Reauthorizes an authorized PayPal account payment, by ID. To ensure that funds are still available,
|
||||
* reauthorize a payment after its initial three-day honor period expires. Within the 29-day
|
||||
* authorization period, you can issue multiple re-authorizations after the honor period expires.
|
||||
* <br/><br/>If 30 days have transpired since the date of the original authorization, you must create
|
||||
* an authorized payment instead of reauthorizing the original authorized payment.<br/><br/>A
|
||||
* reauthorized payment itself has a new honor period of three days.<br/><br/>You can reauthorize an
|
||||
* authorized payment from 4 to 29 days after the 3-day honor period. The allowed amount depends on
|
||||
* context and geography, for example in US it is up to 115% of the original authorized amount, not to
|
||||
* exceed an increase of $75 USD.<br/><br/>Supports only the `amount` request parameter.
|
||||
* <blockquote><strong>Note:</strong> This request is currently not supported for Partner use cases.
|
||||
* </blockquote>
|
||||
*
|
||||
* @param array $options Array with all options for search
|
||||
*
|
||||
* @return ApiResponse Response from the API call
|
||||
*/
|
||||
public function authorizationsReauthorize(array $options): ApiResponse
|
||||
{
|
||||
$_reqBuilder = $this->requestBuilder(
|
||||
RequestMethod::POST,
|
||||
'/v2/payments/authorizations/{authorization_id}/reauthorize'
|
||||
)
|
||||
->auth('Oauth2')
|
||||
->parameters(
|
||||
TemplateParam::init('authorization_id', $options)->extract('authorizationId'),
|
||||
HeaderParam::init('Content-Type', 'application/json'),
|
||||
HeaderParam::init('PayPal-Request-Id', $options)->extract('paypalRequestId'),
|
||||
HeaderParam::init('Prefer', $options)->extract('prefer', 'return=minimal'),
|
||||
BodyParam::init($options)->extract('body')
|
||||
);
|
||||
|
||||
$_resHandler = $this->responseHandler()
|
||||
->throwErrorOn(
|
||||
'400',
|
||||
ErrorType::init(
|
||||
'The request failed because it is not well-formed or is syntactically incor' .
|
||||
'rect or violates schema.',
|
||||
ErrorException::class
|
||||
)
|
||||
)
|
||||
->throwErrorOn(
|
||||
'401',
|
||||
ErrorType::init(
|
||||
'Authentication failed due to missing authorization header, or invalid auth' .
|
||||
'entication credentials.',
|
||||
ErrorException::class
|
||||
)
|
||||
)
|
||||
->throwErrorOn(
|
||||
'403',
|
||||
ErrorType::init(
|
||||
'The request failed because the caller has insufficient permissions.',
|
||||
ErrorException::class
|
||||
)
|
||||
)
|
||||
->throwErrorOn(
|
||||
'404',
|
||||
ErrorType::init('The request failed because the resource does not exist.', ErrorException::class)
|
||||
)
|
||||
->throwErrorOn(
|
||||
'422',
|
||||
ErrorType::init(
|
||||
'The request failed because it either is semantically incorrect or failed b' .
|
||||
'usiness validation.',
|
||||
ErrorException::class
|
||||
)
|
||||
)
|
||||
->throwErrorOn('500', ErrorType::init('The request failed because an internal server error occurred.'))
|
||||
->throwErrorOn('0', ErrorType::init('The error response.', ErrorException::class))
|
||||
->type(PaymentAuthorization::class)
|
||||
->returnApiResponse();
|
||||
|
||||
return $this->execute($_reqBuilder, $_resHandler);
|
||||
}
|
||||
|
||||
/**
|
||||
* Shows details for a captured payment, by ID.
|
||||
*
|
||||
@@ -342,9 +342,9 @@ class PaymentsController extends BaseController
|
||||
->parameters(
|
||||
TemplateParam::init('capture_id', $options)->extract('captureId'),
|
||||
HeaderParam::init('Content-Type', 'application/json'),
|
||||
HeaderParam::init('PayPal-Request-Id', $options)->extract('paypalRequestId'),
|
||||
HeaderParam::init('PayPal-Request-Id', $options)->extract('payPalRequestId'),
|
||||
HeaderParam::init('Prefer', $options)->extract('prefer', 'return=minimal'),
|
||||
HeaderParam::init('PayPal-Auth-Assertion', $options)->extract('paypalAuthAssertion'),
|
||||
HeaderParam::init('PayPal-Auth-Assertion', $options)->extract('payPalAuthAssertion'),
|
||||
BodyParam::init($options)->extract('body')
|
||||
);
|
||||
|
||||
|
||||
@@ -24,6 +24,58 @@ use PaypalServerSdkLib\Models\SetupTokenResponse;
|
||||
|
||||
class VaultController extends BaseController
|
||||
{
|
||||
/**
|
||||
* Creates a Payment Token from the given payment source and adds it to the Vault of the associated
|
||||
* customer.
|
||||
*
|
||||
* @param array $options Array with all options for search
|
||||
*
|
||||
* @return ApiResponse Response from the API call
|
||||
*/
|
||||
public function paymentTokensCreate(array $options): ApiResponse
|
||||
{
|
||||
$_reqBuilder = $this->requestBuilder(RequestMethod::POST, '/v3/vault/payment-tokens')
|
||||
->auth('Oauth2')
|
||||
->parameters(
|
||||
HeaderParam::init('PayPal-Request-Id', $options)->extract('payPalRequestId'),
|
||||
HeaderParam::init('Content-Type', 'application/json'),
|
||||
BodyParam::init($options)->extract('body')
|
||||
);
|
||||
|
||||
$_resHandler = $this->responseHandler()
|
||||
->throwErrorOn(
|
||||
'400',
|
||||
ErrorType::init(
|
||||
'Request is not well-formed, syntactically incorrect, or violates schema.',
|
||||
ErrorException::class
|
||||
)
|
||||
)
|
||||
->throwErrorOn(
|
||||
'403',
|
||||
ErrorType::init('Authorization failed due to insufficient permissions.', ErrorException::class)
|
||||
)
|
||||
->throwErrorOn(
|
||||
'404',
|
||||
ErrorType::init(
|
||||
'Request contains reference to resources that do not exist.',
|
||||
ErrorException::class
|
||||
)
|
||||
)
|
||||
->throwErrorOn(
|
||||
'422',
|
||||
ErrorType::init(
|
||||
'The requested action could not be performed, semantically incorrect, or fa' .
|
||||
'iled business validation.',
|
||||
ErrorException::class
|
||||
)
|
||||
)
|
||||
->throwErrorOn('500', ErrorType::init('An internal server error has occurred.', ErrorException::class))
|
||||
->type(PaymentTokenResponse::class)
|
||||
->returnApiResponse();
|
||||
|
||||
return $this->execute($_reqBuilder, $_resHandler);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns all payment tokens for a customer.
|
||||
*
|
||||
@@ -96,22 +148,17 @@ class VaultController extends BaseController
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a Payment Token from the given payment source and adds it to the Vault of the associated
|
||||
* customer.
|
||||
* Delete the payment token associated with the payment token id.
|
||||
*
|
||||
* @param array $options Array with all options for search
|
||||
* @param string $id ID of the payment token.
|
||||
*
|
||||
* @return ApiResponse Response from the API call
|
||||
*/
|
||||
public function paymentTokensCreate(array $options): ApiResponse
|
||||
public function paymentTokensDelete(string $id): ApiResponse
|
||||
{
|
||||
$_reqBuilder = $this->requestBuilder(RequestMethod::POST, '/v3/vault/payment-tokens')
|
||||
$_reqBuilder = $this->requestBuilder(RequestMethod::DELETE, '/v3/vault/payment-tokens/{id}')
|
||||
->auth('Oauth2')
|
||||
->parameters(
|
||||
HeaderParam::init('PayPal-Request-Id', $options)->extract('paypalRequestId'),
|
||||
HeaderParam::init('Content-Type', 'application/json'),
|
||||
BodyParam::init($options)->extract('body')
|
||||
);
|
||||
->parameters(TemplateParam::init('id', $id));
|
||||
|
||||
$_resHandler = $this->responseHandler()
|
||||
->throwErrorOn(
|
||||
@@ -125,23 +172,7 @@ class VaultController extends BaseController
|
||||
'403',
|
||||
ErrorType::init('Authorization failed due to insufficient permissions.', ErrorException::class)
|
||||
)
|
||||
->throwErrorOn(
|
||||
'404',
|
||||
ErrorType::init(
|
||||
'Request contains reference to resources that do not exist.',
|
||||
ErrorException::class
|
||||
)
|
||||
)
|
||||
->throwErrorOn(
|
||||
'422',
|
||||
ErrorType::init(
|
||||
'The requested action could not be performed, semantically incorrect, or fa' .
|
||||
'iled business validation.',
|
||||
ErrorException::class
|
||||
)
|
||||
)
|
||||
->throwErrorOn('500', ErrorType::init('An internal server error has occurred.', ErrorException::class))
|
||||
->type(PaymentTokenResponse::class)
|
||||
->returnApiResponse();
|
||||
|
||||
return $this->execute($_reqBuilder, $_resHandler);
|
||||
@@ -160,7 +191,7 @@ class VaultController extends BaseController
|
||||
$_reqBuilder = $this->requestBuilder(RequestMethod::POST, '/v3/vault/setup-tokens')
|
||||
->auth('Oauth2')
|
||||
->parameters(
|
||||
HeaderParam::init('PayPal-Request-Id', $options)->extract('paypalRequestId'),
|
||||
HeaderParam::init('PayPal-Request-Id', $options)->extract('payPalRequestId'),
|
||||
HeaderParam::init('Content-Type', 'application/json'),
|
||||
BodyParam::init($options)->extract('body')
|
||||
);
|
||||
@@ -192,37 +223,6 @@ class VaultController extends BaseController
|
||||
return $this->execute($_reqBuilder, $_resHandler);
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete the payment token associated with the payment token id.
|
||||
*
|
||||
* @param string $id ID of the payment token.
|
||||
*
|
||||
* @return ApiResponse Response from the API call
|
||||
*/
|
||||
public function paymentTokensDelete(string $id): ApiResponse
|
||||
{
|
||||
$_reqBuilder = $this->requestBuilder(RequestMethod::DELETE, '/v3/vault/payment-tokens/{id}')
|
||||
->auth('Oauth2')
|
||||
->parameters(TemplateParam::init('id', $id));
|
||||
|
||||
$_resHandler = $this->responseHandler()
|
||||
->throwErrorOn(
|
||||
'400',
|
||||
ErrorType::init(
|
||||
'Request is not well-formed, syntactically incorrect, or violates schema.',
|
||||
ErrorException::class
|
||||
)
|
||||
)
|
||||
->throwErrorOn(
|
||||
'403',
|
||||
ErrorType::init('Authorization failed due to insufficient permissions.', ErrorException::class)
|
||||
)
|
||||
->throwErrorOn('500', ErrorType::init('An internal server error has occurred.', ErrorException::class))
|
||||
->returnApiResponse();
|
||||
|
||||
return $this->execute($_reqBuilder, $_resHandler);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a readable representation of temporarily vaulted payment source associated with the setup
|
||||
* token id.
|
||||
|
||||
@@ -17,7 +17,7 @@ use stdClass;
|
||||
/**
|
||||
* The address verification code for Visa, Discover, Mastercard, or American Express transactions.
|
||||
*/
|
||||
class AvsCode
|
||||
class AVSCode
|
||||
{
|
||||
public const A = 'A';
|
||||
|
||||
@@ -109,6 +109,6 @@ class AvsCode
|
||||
if (CoreHelper::checkValueOrValuesInList($value, self::_ALL_VALUES)) {
|
||||
return $value;
|
||||
}
|
||||
throw new Exception("$value is invalid for AvsCode.");
|
||||
throw new Exception("$value is invalid for AVSCode.");
|
||||
}
|
||||
}
|
||||
@@ -15,7 +15,7 @@ use stdClass;
|
||||
/**
|
||||
* Customizes the payer experience during the approval process for the BLIK payment.
|
||||
*/
|
||||
class BlikExperienceContext implements \JsonSerializable
|
||||
class BLIKExperienceContext implements \JsonSerializable
|
||||
{
|
||||
/**
|
||||
* @var string|null
|
||||
@@ -15,7 +15,7 @@ use stdClass;
|
||||
/**
|
||||
* Information used to pay using BLIK level_0 flow.
|
||||
*/
|
||||
class BlikLevel0PaymentObject implements \JsonSerializable
|
||||
class BLIKLevel0PaymentObject implements \JsonSerializable
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
@@ -15,7 +15,7 @@ use stdClass;
|
||||
/**
|
||||
* Information used to pay using BLIK one-click flow.
|
||||
*/
|
||||
class BlikOneClickPaymentObject implements \JsonSerializable
|
||||
class BLIKOneClickPaymentObject implements \JsonSerializable
|
||||
{
|
||||
/**
|
||||
* @var string|null
|
||||
@@ -15,7 +15,7 @@ use stdClass;
|
||||
/**
|
||||
* Information used to pay using BLIK one-click flow.
|
||||
*/
|
||||
class BlikOneClickPaymentRequest implements \JsonSerializable
|
||||
class BLIKOneClickPaymentRequest implements \JsonSerializable
|
||||
{
|
||||
/**
|
||||
* @var string|null
|
||||
@@ -15,7 +15,7 @@ use stdClass;
|
||||
/**
|
||||
* Information used to pay using BLIK.
|
||||
*/
|
||||
class BlikPaymentObject implements \JsonSerializable
|
||||
class BLIKPaymentObject implements \JsonSerializable
|
||||
{
|
||||
/**
|
||||
* @var string|null
|
||||
@@ -33,7 +33,7 @@ class BlikPaymentObject implements \JsonSerializable
|
||||
private $email;
|
||||
|
||||
/**
|
||||
* @var BlikOneClickPaymentObject|null
|
||||
* @var BLIKOneClickPaymentObject|null
|
||||
*/
|
||||
private $oneClick;
|
||||
|
||||
@@ -115,7 +115,7 @@ class BlikPaymentObject implements \JsonSerializable
|
||||
* Returns One Click.
|
||||
* Information used to pay using BLIK one-click flow.
|
||||
*/
|
||||
public function getOneClick(): ?BlikOneClickPaymentObject
|
||||
public function getOneClick(): ?BLIKOneClickPaymentObject
|
||||
{
|
||||
return $this->oneClick;
|
||||
}
|
||||
@@ -126,7 +126,7 @@ class BlikPaymentObject implements \JsonSerializable
|
||||
*
|
||||
* @maps one_click
|
||||
*/
|
||||
public function setOneClick(?BlikOneClickPaymentObject $oneClick): void
|
||||
public function setOneClick(?BLIKOneClickPaymentObject $oneClick): void
|
||||
{
|
||||
$this->oneClick = $oneClick;
|
||||
}
|
||||
@@ -15,7 +15,7 @@ use stdClass;
|
||||
/**
|
||||
* Information needed to pay using BLIK.
|
||||
*/
|
||||
class BlikPaymentRequest implements \JsonSerializable
|
||||
class BLIKPaymentRequest implements \JsonSerializable
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
@@ -33,17 +33,17 @@ class BlikPaymentRequest implements \JsonSerializable
|
||||
private $email;
|
||||
|
||||
/**
|
||||
* @var BlikExperienceContext|null
|
||||
* @var BLIKExperienceContext|null
|
||||
*/
|
||||
private $experienceContext;
|
||||
|
||||
/**
|
||||
* @var BlikLevel0PaymentObject|null
|
||||
* @var BLIKLevel0PaymentObject|null
|
||||
*/
|
||||
private $level0;
|
||||
|
||||
/**
|
||||
* @var BlikOneClickPaymentRequest|null
|
||||
* @var BLIKOneClickPaymentRequest|null
|
||||
*/
|
||||
private $oneClick;
|
||||
|
||||
@@ -137,7 +137,7 @@ class BlikPaymentRequest implements \JsonSerializable
|
||||
* Returns Experience Context.
|
||||
* Customizes the payer experience during the approval process for the BLIK payment.
|
||||
*/
|
||||
public function getExperienceContext(): ?BlikExperienceContext
|
||||
public function getExperienceContext(): ?BLIKExperienceContext
|
||||
{
|
||||
return $this->experienceContext;
|
||||
}
|
||||
@@ -148,7 +148,7 @@ class BlikPaymentRequest implements \JsonSerializable
|
||||
*
|
||||
* @maps experience_context
|
||||
*/
|
||||
public function setExperienceContext(?BlikExperienceContext $experienceContext): void
|
||||
public function setExperienceContext(?BLIKExperienceContext $experienceContext): void
|
||||
{
|
||||
$this->experienceContext = $experienceContext;
|
||||
}
|
||||
@@ -157,7 +157,7 @@ class BlikPaymentRequest implements \JsonSerializable
|
||||
* Returns Level 0.
|
||||
* Information used to pay using BLIK level_0 flow.
|
||||
*/
|
||||
public function getLevel0(): ?BlikLevel0PaymentObject
|
||||
public function getLevel0(): ?BLIKLevel0PaymentObject
|
||||
{
|
||||
return $this->level0;
|
||||
}
|
||||
@@ -168,7 +168,7 @@ class BlikPaymentRequest implements \JsonSerializable
|
||||
*
|
||||
* @maps level_0
|
||||
*/
|
||||
public function setLevel0(?BlikLevel0PaymentObject $level0): void
|
||||
public function setLevel0(?BLIKLevel0PaymentObject $level0): void
|
||||
{
|
||||
$this->level0 = $level0;
|
||||
}
|
||||
@@ -177,7 +177,7 @@ class BlikPaymentRequest implements \JsonSerializable
|
||||
* Returns One Click.
|
||||
* Information used to pay using BLIK one-click flow.
|
||||
*/
|
||||
public function getOneClick(): ?BlikOneClickPaymentRequest
|
||||
public function getOneClick(): ?BLIKOneClickPaymentRequest
|
||||
{
|
||||
return $this->oneClick;
|
||||
}
|
||||
@@ -188,7 +188,7 @@ class BlikPaymentRequest implements \JsonSerializable
|
||||
*
|
||||
* @maps one_click
|
||||
*/
|
||||
public function setOneClick(?BlikOneClickPaymentRequest $oneClick): void
|
||||
public function setOneClick(?BLIKOneClickPaymentRequest $oneClick): void
|
||||
{
|
||||
$this->oneClick = $oneClick;
|
||||
}
|
||||
@@ -11,31 +11,31 @@ declare(strict_types=1);
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSdkLib\Models\BlikExperienceContext;
|
||||
use PaypalServerSdkLib\Models\BLIKExperienceContext;
|
||||
|
||||
/**
|
||||
* Builder for model BlikExperienceContext
|
||||
* Builder for model BLIKExperienceContext
|
||||
*
|
||||
* @see BlikExperienceContext
|
||||
* @see BLIKExperienceContext
|
||||
*/
|
||||
class BlikExperienceContextBuilder
|
||||
class BLIKExperienceContextBuilder
|
||||
{
|
||||
/**
|
||||
* @var BlikExperienceContext
|
||||
* @var BLIKExperienceContext
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(BlikExperienceContext $instance)
|
||||
private function __construct(BLIKExperienceContext $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new blik experience context Builder object.
|
||||
* Initializes a new blikexperience context Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new BlikExperienceContext());
|
||||
return new self(new BLIKExperienceContext());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -102,9 +102,9 @@ class BlikExperienceContextBuilder
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new blik experience context object.
|
||||
* Initializes a new blikexperience context object.
|
||||
*/
|
||||
public function build(): BlikExperienceContext
|
||||
public function build(): BLIKExperienceContext
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
48
src/Models/Builders/BLIKLevel0PaymentObjectBuilder.php
Normal file
48
src/Models/Builders/BLIKLevel0PaymentObjectBuilder.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSdkLib\Models\BLIKLevel0PaymentObject;
|
||||
|
||||
/**
|
||||
* Builder for model BLIKLevel0PaymentObject
|
||||
*
|
||||
* @see BLIKLevel0PaymentObject
|
||||
*/
|
||||
class BLIKLevel0PaymentObjectBuilder
|
||||
{
|
||||
/**
|
||||
* @var BLIKLevel0PaymentObject
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(BLIKLevel0PaymentObject $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new bliklevel 0 payment object Builder object.
|
||||
*/
|
||||
public static function init(string $authCode): self
|
||||
{
|
||||
return new self(new BLIKLevel0PaymentObject($authCode));
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new bliklevel 0 payment object object.
|
||||
*/
|
||||
public function build(): BLIKLevel0PaymentObject
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
@@ -11,31 +11,31 @@ declare(strict_types=1);
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSdkLib\Models\BlikOneClickPaymentObject;
|
||||
use PaypalServerSdkLib\Models\BLIKOneClickPaymentObject;
|
||||
|
||||
/**
|
||||
* Builder for model BlikOneClickPaymentObject
|
||||
* Builder for model BLIKOneClickPaymentObject
|
||||
*
|
||||
* @see BlikOneClickPaymentObject
|
||||
* @see BLIKOneClickPaymentObject
|
||||
*/
|
||||
class BlikOneClickPaymentObjectBuilder
|
||||
class BLIKOneClickPaymentObjectBuilder
|
||||
{
|
||||
/**
|
||||
* @var BlikOneClickPaymentObject
|
||||
* @var BLIKOneClickPaymentObject
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(BlikOneClickPaymentObject $instance)
|
||||
private function __construct(BLIKOneClickPaymentObject $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new blik one click payment object Builder object.
|
||||
* Initializes a new blikone click payment object Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new BlikOneClickPaymentObject());
|
||||
return new self(new BLIKOneClickPaymentObject());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -48,9 +48,9 @@ class BlikOneClickPaymentObjectBuilder
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new blik one click payment object object.
|
||||
* Initializes a new blikone click payment object object.
|
||||
*/
|
||||
public function build(): BlikOneClickPaymentObject
|
||||
public function build(): BLIKOneClickPaymentObject
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
@@ -11,31 +11,31 @@ declare(strict_types=1);
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSdkLib\Models\BlikOneClickPaymentRequest;
|
||||
use PaypalServerSdkLib\Models\BLIKOneClickPaymentRequest;
|
||||
|
||||
/**
|
||||
* Builder for model BlikOneClickPaymentRequest
|
||||
* Builder for model BLIKOneClickPaymentRequest
|
||||
*
|
||||
* @see BlikOneClickPaymentRequest
|
||||
* @see BLIKOneClickPaymentRequest
|
||||
*/
|
||||
class BlikOneClickPaymentRequestBuilder
|
||||
class BLIKOneClickPaymentRequestBuilder
|
||||
{
|
||||
/**
|
||||
* @var BlikOneClickPaymentRequest
|
||||
* @var BLIKOneClickPaymentRequest
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(BlikOneClickPaymentRequest $instance)
|
||||
private function __construct(BLIKOneClickPaymentRequest $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new blik one click payment request Builder object.
|
||||
* Initializes a new blikone click payment request Builder object.
|
||||
*/
|
||||
public static function init(string $consumerReference): self
|
||||
{
|
||||
return new self(new BlikOneClickPaymentRequest($consumerReference));
|
||||
return new self(new BLIKOneClickPaymentRequest($consumerReference));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -66,9 +66,9 @@ class BlikOneClickPaymentRequestBuilder
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new blik one click payment request object.
|
||||
* Initializes a new blikone click payment request object.
|
||||
*/
|
||||
public function build(): BlikOneClickPaymentRequest
|
||||
public function build(): BLIKOneClickPaymentRequest
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
@@ -11,32 +11,32 @@ declare(strict_types=1);
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSdkLib\Models\BlikOneClickPaymentObject;
|
||||
use PaypalServerSdkLib\Models\BlikPaymentObject;
|
||||
use PaypalServerSdkLib\Models\BLIKOneClickPaymentObject;
|
||||
use PaypalServerSdkLib\Models\BLIKPaymentObject;
|
||||
|
||||
/**
|
||||
* Builder for model BlikPaymentObject
|
||||
* Builder for model BLIKPaymentObject
|
||||
*
|
||||
* @see BlikPaymentObject
|
||||
* @see BLIKPaymentObject
|
||||
*/
|
||||
class BlikPaymentObjectBuilder
|
||||
class BLIKPaymentObjectBuilder
|
||||
{
|
||||
/**
|
||||
* @var BlikPaymentObject
|
||||
* @var BLIKPaymentObject
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(BlikPaymentObject $instance)
|
||||
private function __construct(BLIKPaymentObject $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new blik payment object Builder object.
|
||||
* Initializes a new blikpayment object Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new BlikPaymentObject());
|
||||
return new self(new BLIKPaymentObject());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -69,16 +69,16 @@ class BlikPaymentObjectBuilder
|
||||
/**
|
||||
* Sets one click field.
|
||||
*/
|
||||
public function oneClick(?BlikOneClickPaymentObject $value): self
|
||||
public function oneClick(?BLIKOneClickPaymentObject $value): self
|
||||
{
|
||||
$this->instance->setOneClick($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new blik payment object object.
|
||||
* Initializes a new blikpayment object object.
|
||||
*/
|
||||
public function build(): BlikPaymentObject
|
||||
public function build(): BLIKPaymentObject
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
@@ -11,34 +11,34 @@ declare(strict_types=1);
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSdkLib\Models\BlikExperienceContext;
|
||||
use PaypalServerSdkLib\Models\BlikLevel0PaymentObject;
|
||||
use PaypalServerSdkLib\Models\BlikOneClickPaymentRequest;
|
||||
use PaypalServerSdkLib\Models\BlikPaymentRequest;
|
||||
use PaypalServerSdkLib\Models\BLIKExperienceContext;
|
||||
use PaypalServerSdkLib\Models\BLIKLevel0PaymentObject;
|
||||
use PaypalServerSdkLib\Models\BLIKOneClickPaymentRequest;
|
||||
use PaypalServerSdkLib\Models\BLIKPaymentRequest;
|
||||
|
||||
/**
|
||||
* Builder for model BlikPaymentRequest
|
||||
* Builder for model BLIKPaymentRequest
|
||||
*
|
||||
* @see BlikPaymentRequest
|
||||
* @see BLIKPaymentRequest
|
||||
*/
|
||||
class BlikPaymentRequestBuilder
|
||||
class BLIKPaymentRequestBuilder
|
||||
{
|
||||
/**
|
||||
* @var BlikPaymentRequest
|
||||
* @var BLIKPaymentRequest
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(BlikPaymentRequest $instance)
|
||||
private function __construct(BLIKPaymentRequest $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new blik payment request Builder object.
|
||||
* Initializes a new blikpayment request Builder object.
|
||||
*/
|
||||
public static function init(string $name, string $countryCode): self
|
||||
{
|
||||
return new self(new BlikPaymentRequest($name, $countryCode));
|
||||
return new self(new BLIKPaymentRequest($name, $countryCode));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -53,7 +53,7 @@ class BlikPaymentRequestBuilder
|
||||
/**
|
||||
* Sets experience context field.
|
||||
*/
|
||||
public function experienceContext(?BlikExperienceContext $value): self
|
||||
public function experienceContext(?BLIKExperienceContext $value): self
|
||||
{
|
||||
$this->instance->setExperienceContext($value);
|
||||
return $this;
|
||||
@@ -62,7 +62,7 @@ class BlikPaymentRequestBuilder
|
||||
/**
|
||||
* Sets level 0 field.
|
||||
*/
|
||||
public function level0(?BlikLevel0PaymentObject $value): self
|
||||
public function level0(?BLIKLevel0PaymentObject $value): self
|
||||
{
|
||||
$this->instance->setLevel0($value);
|
||||
return $this;
|
||||
@@ -71,16 +71,16 @@ class BlikPaymentRequestBuilder
|
||||
/**
|
||||
* Sets one click field.
|
||||
*/
|
||||
public function oneClick(?BlikOneClickPaymentRequest $value): self
|
||||
public function oneClick(?BLIKOneClickPaymentRequest $value): self
|
||||
{
|
||||
$this->instance->setOneClick($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new blik payment request object.
|
||||
* Initializes a new blikpayment request object.
|
||||
*/
|
||||
public function build(): BlikPaymentRequest
|
||||
public function build(): BLIKPaymentRequest
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
@@ -1,48 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSdkLib\Models\BlikLevel0PaymentObject;
|
||||
|
||||
/**
|
||||
* Builder for model BlikLevel0PaymentObject
|
||||
*
|
||||
* @see BlikLevel0PaymentObject
|
||||
*/
|
||||
class BlikLevel0PaymentObjectBuilder
|
||||
{
|
||||
/**
|
||||
* @var BlikLevel0PaymentObject
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(BlikLevel0PaymentObject $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new blik level 0 payment object Builder object.
|
||||
*/
|
||||
public static function init(string $authCode): self
|
||||
{
|
||||
return new self(new BlikLevel0PaymentObject($authCode));
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new blik level 0 payment object object.
|
||||
*/
|
||||
public function build(): BlikLevel0PaymentObject
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
@@ -11,31 +11,31 @@ declare(strict_types=1);
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSdkLib\Models\EpsPaymentObject;
|
||||
use PaypalServerSdkLib\Models\EPSPaymentObject;
|
||||
|
||||
/**
|
||||
* Builder for model EpsPaymentObject
|
||||
* Builder for model EPSPaymentObject
|
||||
*
|
||||
* @see EpsPaymentObject
|
||||
* @see EPSPaymentObject
|
||||
*/
|
||||
class EpsPaymentObjectBuilder
|
||||
class EPSPaymentObjectBuilder
|
||||
{
|
||||
/**
|
||||
* @var EpsPaymentObject
|
||||
* @var EPSPaymentObject
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(EpsPaymentObject $instance)
|
||||
private function __construct(EPSPaymentObject $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new eps payment object Builder object.
|
||||
* Initializes a new epspayment object Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new EpsPaymentObject());
|
||||
return new self(new EPSPaymentObject());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -66,9 +66,9 @@ class EpsPaymentObjectBuilder
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new eps payment object object.
|
||||
* Initializes a new epspayment object object.
|
||||
*/
|
||||
public function build(): EpsPaymentObject
|
||||
public function build(): EPSPaymentObject
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
@@ -11,32 +11,32 @@ declare(strict_types=1);
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSdkLib\Models\EpsPaymentRequest;
|
||||
use PaypalServerSdkLib\Models\EPSPaymentRequest;
|
||||
use PaypalServerSdkLib\Models\ExperienceContext;
|
||||
|
||||
/**
|
||||
* Builder for model EpsPaymentRequest
|
||||
* Builder for model EPSPaymentRequest
|
||||
*
|
||||
* @see EpsPaymentRequest
|
||||
* @see EPSPaymentRequest
|
||||
*/
|
||||
class EpsPaymentRequestBuilder
|
||||
class EPSPaymentRequestBuilder
|
||||
{
|
||||
/**
|
||||
* @var EpsPaymentRequest
|
||||
* @var EPSPaymentRequest
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(EpsPaymentRequest $instance)
|
||||
private function __construct(EPSPaymentRequest $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new eps payment request Builder object.
|
||||
* Initializes a new epspayment request Builder object.
|
||||
*/
|
||||
public static function init(string $name, string $countryCode): self
|
||||
{
|
||||
return new self(new EpsPaymentRequest($name, $countryCode));
|
||||
return new self(new EPSPaymentRequest($name, $countryCode));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -49,9 +49,9 @@ class EpsPaymentRequestBuilder
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new eps payment request object.
|
||||
* Initializes a new epspayment request object.
|
||||
*/
|
||||
public function build(): EpsPaymentRequest
|
||||
public function build(): EPSPaymentRequest
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
@@ -11,31 +11,31 @@ declare(strict_types=1);
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSdkLib\Models\IdealPaymentObject;
|
||||
use PaypalServerSdkLib\Models\IDEALPaymentObject;
|
||||
|
||||
/**
|
||||
* Builder for model IdealPaymentObject
|
||||
* Builder for model IDEALPaymentObject
|
||||
*
|
||||
* @see IdealPaymentObject
|
||||
* @see IDEALPaymentObject
|
||||
*/
|
||||
class IdealPaymentObjectBuilder
|
||||
class IDEALPaymentObjectBuilder
|
||||
{
|
||||
/**
|
||||
* @var IdealPaymentObject
|
||||
* @var IDEALPaymentObject
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(IdealPaymentObject $instance)
|
||||
private function __construct(IDEALPaymentObject $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new ideal payment object Builder object.
|
||||
* Initializes a new idealpayment object Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new IdealPaymentObject());
|
||||
return new self(new IDEALPaymentObject());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -75,9 +75,9 @@ class IdealPaymentObjectBuilder
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new ideal payment object object.
|
||||
* Initializes a new idealpayment object object.
|
||||
*/
|
||||
public function build(): IdealPaymentObject
|
||||
public function build(): IDEALPaymentObject
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
@@ -12,31 +12,31 @@ namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSdkLib\Models\ExperienceContext;
|
||||
use PaypalServerSdkLib\Models\IdealPaymentRequest;
|
||||
use PaypalServerSdkLib\Models\IDEALPaymentRequest;
|
||||
|
||||
/**
|
||||
* Builder for model IdealPaymentRequest
|
||||
* Builder for model IDEALPaymentRequest
|
||||
*
|
||||
* @see IdealPaymentRequest
|
||||
* @see IDEALPaymentRequest
|
||||
*/
|
||||
class IdealPaymentRequestBuilder
|
||||
class IDEALPaymentRequestBuilder
|
||||
{
|
||||
/**
|
||||
* @var IdealPaymentRequest
|
||||
* @var IDEALPaymentRequest
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(IdealPaymentRequest $instance)
|
||||
private function __construct(IDEALPaymentRequest $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new ideal payment request Builder object.
|
||||
* Initializes a new idealpayment request Builder object.
|
||||
*/
|
||||
public static function init(string $name, string $countryCode): self
|
||||
{
|
||||
return new self(new IdealPaymentRequest($name, $countryCode));
|
||||
return new self(new IDEALPaymentRequest($name, $countryCode));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -58,9 +58,9 @@ class IdealPaymentRequestBuilder
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new ideal payment request object.
|
||||
* Initializes a new idealpayment request object.
|
||||
*/
|
||||
public function build(): IdealPaymentRequest
|
||||
public function build(): IDEALPaymentRequest
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
@@ -11,31 +11,31 @@ declare(strict_types=1);
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSdkLib\Models\MybankPaymentObject;
|
||||
use PaypalServerSdkLib\Models\MyBankPaymentObject;
|
||||
|
||||
/**
|
||||
* Builder for model MybankPaymentObject
|
||||
* Builder for model MyBankPaymentObject
|
||||
*
|
||||
* @see MybankPaymentObject
|
||||
* @see MyBankPaymentObject
|
||||
*/
|
||||
class MybankPaymentObjectBuilder
|
||||
class MyBankPaymentObjectBuilder
|
||||
{
|
||||
/**
|
||||
* @var MybankPaymentObject
|
||||
* @var MyBankPaymentObject
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(MybankPaymentObject $instance)
|
||||
private function __construct(MyBankPaymentObject $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new mybank payment object Builder object.
|
||||
* Initializes a new my bank payment object Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new MybankPaymentObject());
|
||||
return new self(new MyBankPaymentObject());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -75,9 +75,9 @@ class MybankPaymentObjectBuilder
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new mybank payment object object.
|
||||
* Initializes a new my bank payment object object.
|
||||
*/
|
||||
public function build(): MybankPaymentObject
|
||||
public function build(): MyBankPaymentObject
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
@@ -12,31 +12,31 @@ namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSdkLib\Models\ExperienceContext;
|
||||
use PaypalServerSdkLib\Models\MybankPaymentRequest;
|
||||
use PaypalServerSdkLib\Models\MyBankPaymentRequest;
|
||||
|
||||
/**
|
||||
* Builder for model MybankPaymentRequest
|
||||
* Builder for model MyBankPaymentRequest
|
||||
*
|
||||
* @see MybankPaymentRequest
|
||||
* @see MyBankPaymentRequest
|
||||
*/
|
||||
class MybankPaymentRequestBuilder
|
||||
class MyBankPaymentRequestBuilder
|
||||
{
|
||||
/**
|
||||
* @var MybankPaymentRequest
|
||||
* @var MyBankPaymentRequest
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(MybankPaymentRequest $instance)
|
||||
private function __construct(MyBankPaymentRequest $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new mybank payment request Builder object.
|
||||
* Initializes a new my bank payment request Builder object.
|
||||
*/
|
||||
public static function init(string $name, string $countryCode): self
|
||||
{
|
||||
return new self(new MybankPaymentRequest($name, $countryCode));
|
||||
return new self(new MyBankPaymentRequest($name, $countryCode));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -49,9 +49,9 @@ class MybankPaymentRequestBuilder
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new mybank payment request object.
|
||||
* Initializes a new my bank payment request object.
|
||||
*/
|
||||
public function build(): MybankPaymentRequest
|
||||
public function build(): MyBankPaymentRequest
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
@@ -15,7 +15,7 @@ use PaypalServerSdkLib\Models\ApplePayRequest;
|
||||
use PaypalServerSdkLib\Models\CardRequest;
|
||||
use PaypalServerSdkLib\Models\GooglePayRequest;
|
||||
use PaypalServerSdkLib\Models\OrderAuthorizeRequestPaymentSource;
|
||||
use PaypalServerSdkLib\Models\PaypalWallet;
|
||||
use PaypalServerSdkLib\Models\PayPalWallet;
|
||||
use PaypalServerSdkLib\Models\Token;
|
||||
use PaypalServerSdkLib\Models\VenmoWalletRequest;
|
||||
|
||||
@@ -65,7 +65,7 @@ class OrderAuthorizeRequestPaymentSourceBuilder
|
||||
/**
|
||||
* Sets paypal field.
|
||||
*/
|
||||
public function paypal(?PaypalWallet $value): self
|
||||
public function paypal(?PayPalWallet $value): self
|
||||
{
|
||||
$this->instance->setPaypal($value);
|
||||
return $this;
|
||||
|
||||
@@ -15,7 +15,7 @@ use PaypalServerSdkLib\Models\ApplePayPaymentObject;
|
||||
use PaypalServerSdkLib\Models\CardResponse;
|
||||
use PaypalServerSdkLib\Models\GooglePayWalletResponse;
|
||||
use PaypalServerSdkLib\Models\OrderAuthorizeResponsePaymentSource;
|
||||
use PaypalServerSdkLib\Models\PaypalWalletResponse;
|
||||
use PaypalServerSdkLib\Models\PayPalWalletResponse;
|
||||
use PaypalServerSdkLib\Models\VenmoWalletResponse;
|
||||
|
||||
/**
|
||||
@@ -55,7 +55,7 @@ class OrderAuthorizeResponsePaymentSourceBuilder
|
||||
/**
|
||||
* Sets paypal field.
|
||||
*/
|
||||
public function paypal(?PaypalWalletResponse $value): self
|
||||
public function paypal(?PayPalWalletResponse $value): self
|
||||
{
|
||||
$this->instance->setPaypal($value);
|
||||
return $this;
|
||||
|
||||
@@ -15,7 +15,7 @@ use PaypalServerSdkLib\Models\ApplePayRequest;
|
||||
use PaypalServerSdkLib\Models\CardRequest;
|
||||
use PaypalServerSdkLib\Models\GooglePayRequest;
|
||||
use PaypalServerSdkLib\Models\OrderCaptureRequestPaymentSource;
|
||||
use PaypalServerSdkLib\Models\PaypalWallet;
|
||||
use PaypalServerSdkLib\Models\PayPalWallet;
|
||||
use PaypalServerSdkLib\Models\Token;
|
||||
use PaypalServerSdkLib\Models\VenmoWalletRequest;
|
||||
|
||||
@@ -65,7 +65,7 @@ class OrderCaptureRequestPaymentSourceBuilder
|
||||
/**
|
||||
* Sets paypal field.
|
||||
*/
|
||||
public function paypal(?PaypalWallet $value): self
|
||||
public function paypal(?PayPalWallet $value): self
|
||||
{
|
||||
$this->instance->setPaypal($value);
|
||||
return $this;
|
||||
|
||||
@@ -13,34 +13,34 @@ namespace PaypalServerSdkLib\Models\Builders;
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSdkLib\Models\Address;
|
||||
use PaypalServerSdkLib\Models\Name;
|
||||
use PaypalServerSdkLib\Models\PaypalPaymentToken;
|
||||
use PaypalServerSdkLib\Models\PayPalPaymentToken;
|
||||
use PaypalServerSdkLib\Models\Phone;
|
||||
use PaypalServerSdkLib\Models\PhoneWithType;
|
||||
use PaypalServerSdkLib\Models\VaultedDigitalWalletShippingDetails;
|
||||
|
||||
/**
|
||||
* Builder for model PaypalPaymentToken
|
||||
* Builder for model PayPalPaymentToken
|
||||
*
|
||||
* @see PaypalPaymentToken
|
||||
* @see PayPalPaymentToken
|
||||
*/
|
||||
class PaypalPaymentTokenBuilder
|
||||
class PayPalPaymentTokenBuilder
|
||||
{
|
||||
/**
|
||||
* @var PaypalPaymentToken
|
||||
* @var PayPalPaymentToken
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(PaypalPaymentToken $instance)
|
||||
private function __construct(PayPalPaymentToken $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new paypal payment token Builder object.
|
||||
* Initializes a new pay pal payment token Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new PaypalPaymentToken());
|
||||
return new self(new PayPalPaymentToken());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -152,9 +152,9 @@ class PaypalPaymentTokenBuilder
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new paypal payment token object.
|
||||
* Initializes a new pay pal payment token object.
|
||||
*/
|
||||
public function build(): PaypalPaymentToken
|
||||
public function build(): PayPalPaymentToken
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
68
src/Models/Builders/PayPalWalletAttributesBuilder.php
Normal file
68
src/Models/Builders/PayPalWalletAttributesBuilder.php
Normal file
@@ -0,0 +1,68 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSdkLib\Models\PayPalWalletAttributes;
|
||||
use PaypalServerSdkLib\Models\PayPalWalletCustomerRequest;
|
||||
use PaypalServerSdkLib\Models\PayPalWalletVaultInstruction;
|
||||
|
||||
/**
|
||||
* Builder for model PayPalWalletAttributes
|
||||
*
|
||||
* @see PayPalWalletAttributes
|
||||
*/
|
||||
class PayPalWalletAttributesBuilder
|
||||
{
|
||||
/**
|
||||
* @var PayPalWalletAttributes
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(PayPalWalletAttributes $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new pay pal wallet attributes Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new PayPalWalletAttributes());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets customer field.
|
||||
*/
|
||||
public function customer(?PayPalWalletCustomerRequest $value): self
|
||||
{
|
||||
$this->instance->setCustomer($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets vault field.
|
||||
*/
|
||||
public function vault(?PayPalWalletVaultInstruction $value): self
|
||||
{
|
||||
$this->instance->setVault($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new pay pal wallet attributes object.
|
||||
*/
|
||||
public function build(): PayPalWalletAttributes
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
@@ -11,38 +11,38 @@ declare(strict_types=1);
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSdkLib\Models\PaypalWalletAttributesResponse;
|
||||
use PaypalServerSdkLib\Models\PaypalWalletVaultResponse;
|
||||
use PaypalServerSdkLib\Models\PayPalWalletAttributesResponse;
|
||||
use PaypalServerSdkLib\Models\PayPalWalletVaultResponse;
|
||||
|
||||
/**
|
||||
* Builder for model PaypalWalletAttributesResponse
|
||||
* Builder for model PayPalWalletAttributesResponse
|
||||
*
|
||||
* @see PaypalWalletAttributesResponse
|
||||
* @see PayPalWalletAttributesResponse
|
||||
*/
|
||||
class PaypalWalletAttributesResponseBuilder
|
||||
class PayPalWalletAttributesResponseBuilder
|
||||
{
|
||||
/**
|
||||
* @var PaypalWalletAttributesResponse
|
||||
* @var PayPalWalletAttributesResponse
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(PaypalWalletAttributesResponse $instance)
|
||||
private function __construct(PayPalWalletAttributesResponse $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new paypal wallet attributes response Builder object.
|
||||
* Initializes a new pay pal wallet attributes response Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new PaypalWalletAttributesResponse());
|
||||
return new self(new PayPalWalletAttributesResponse());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets vault field.
|
||||
*/
|
||||
public function vault(?PaypalWalletVaultResponse $value): self
|
||||
public function vault(?PayPalWalletVaultResponse $value): self
|
||||
{
|
||||
$this->instance->setVault($value);
|
||||
return $this;
|
||||
@@ -58,9 +58,9 @@ class PaypalWalletAttributesResponseBuilder
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new paypal wallet attributes response object.
|
||||
* Initializes a new pay pal wallet attributes response object.
|
||||
*/
|
||||
public function build(): PaypalWalletAttributesResponse
|
||||
public function build(): PayPalWalletAttributesResponse
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
@@ -13,35 +13,35 @@ namespace PaypalServerSdkLib\Models\Builders;
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSdkLib\Models\Address;
|
||||
use PaypalServerSdkLib\Models\Name;
|
||||
use PaypalServerSdkLib\Models\PaypalWallet;
|
||||
use PaypalServerSdkLib\Models\PaypalWalletAttributes;
|
||||
use PaypalServerSdkLib\Models\PaypalWalletExperienceContext;
|
||||
use PaypalServerSdkLib\Models\PayPalWallet;
|
||||
use PaypalServerSdkLib\Models\PayPalWalletAttributes;
|
||||
use PaypalServerSdkLib\Models\PayPalWalletExperienceContext;
|
||||
use PaypalServerSdkLib\Models\PhoneWithType;
|
||||
use PaypalServerSdkLib\Models\TaxInfo;
|
||||
|
||||
/**
|
||||
* Builder for model PaypalWallet
|
||||
* Builder for model PayPalWallet
|
||||
*
|
||||
* @see PaypalWallet
|
||||
* @see PayPalWallet
|
||||
*/
|
||||
class PaypalWalletBuilder
|
||||
class PayPalWalletBuilder
|
||||
{
|
||||
/**
|
||||
* @var PaypalWallet
|
||||
* @var PayPalWallet
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(PaypalWallet $instance)
|
||||
private function __construct(PayPalWallet $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new paypal wallet Builder object.
|
||||
* Initializes a new pay pal wallet Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new PaypalWallet());
|
||||
return new self(new PayPalWallet());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -110,7 +110,7 @@ class PaypalWalletBuilder
|
||||
/**
|
||||
* Sets attributes field.
|
||||
*/
|
||||
public function attributes(?PaypalWalletAttributes $value): self
|
||||
public function attributes(?PayPalWalletAttributes $value): self
|
||||
{
|
||||
$this->instance->setAttributes($value);
|
||||
return $this;
|
||||
@@ -119,7 +119,7 @@ class PaypalWalletBuilder
|
||||
/**
|
||||
* Sets experience context field.
|
||||
*/
|
||||
public function experienceContext(?PaypalWalletExperienceContext $value): self
|
||||
public function experienceContext(?PayPalWalletExperienceContext $value): self
|
||||
{
|
||||
$this->instance->setExperienceContext($value);
|
||||
return $this;
|
||||
@@ -135,9 +135,9 @@ class PaypalWalletBuilder
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new paypal wallet object.
|
||||
* Initializes a new pay pal wallet object.
|
||||
*/
|
||||
public function build(): PaypalWallet
|
||||
public function build(): PayPalWallet
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
@@ -11,32 +11,32 @@ declare(strict_types=1);
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSdkLib\Models\PaypalWalletCustomer;
|
||||
use PaypalServerSdkLib\Models\PayPalWalletCustomer;
|
||||
use PaypalServerSdkLib\Models\PhoneWithType;
|
||||
|
||||
/**
|
||||
* Builder for model PaypalWalletCustomer
|
||||
* Builder for model PayPalWalletCustomer
|
||||
*
|
||||
* @see PaypalWalletCustomer
|
||||
* @see PayPalWalletCustomer
|
||||
*/
|
||||
class PaypalWalletCustomerBuilder
|
||||
class PayPalWalletCustomerBuilder
|
||||
{
|
||||
/**
|
||||
* @var PaypalWalletCustomer
|
||||
* @var PayPalWalletCustomer
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(PaypalWalletCustomer $instance)
|
||||
private function __construct(PayPalWalletCustomer $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new paypal wallet customer Builder object.
|
||||
* Initializes a new pay pal wallet customer Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new PaypalWalletCustomer());
|
||||
return new self(new PayPalWalletCustomer());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -76,9 +76,9 @@ class PaypalWalletCustomerBuilder
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new paypal wallet customer object.
|
||||
* Initializes a new pay pal wallet customer object.
|
||||
*/
|
||||
public function build(): PaypalWalletCustomer
|
||||
public function build(): PayPalWalletCustomer
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
@@ -11,32 +11,32 @@ declare(strict_types=1);
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSdkLib\Models\PaypalWalletCustomerRequest;
|
||||
use PaypalServerSdkLib\Models\PayPalWalletCustomerRequest;
|
||||
use PaypalServerSdkLib\Models\PhoneWithType;
|
||||
|
||||
/**
|
||||
* Builder for model PaypalWalletCustomerRequest
|
||||
* Builder for model PayPalWalletCustomerRequest
|
||||
*
|
||||
* @see PaypalWalletCustomerRequest
|
||||
* @see PayPalWalletCustomerRequest
|
||||
*/
|
||||
class PaypalWalletCustomerRequestBuilder
|
||||
class PayPalWalletCustomerRequestBuilder
|
||||
{
|
||||
/**
|
||||
* @var PaypalWalletCustomerRequest
|
||||
* @var PayPalWalletCustomerRequest
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(PaypalWalletCustomerRequest $instance)
|
||||
private function __construct(PayPalWalletCustomerRequest $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new paypal wallet customer request Builder object.
|
||||
* Initializes a new pay pal wallet customer request Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new PaypalWalletCustomerRequest());
|
||||
return new self(new PayPalWalletCustomerRequest());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -76,9 +76,9 @@ class PaypalWalletCustomerRequestBuilder
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new paypal wallet customer request object.
|
||||
* Initializes a new pay pal wallet customer request object.
|
||||
*/
|
||||
public function build(): PaypalWalletCustomerRequest
|
||||
public function build(): PayPalWalletCustomerRequest
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
@@ -11,31 +11,31 @@ declare(strict_types=1);
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSdkLib\Models\PaypalWalletExperienceContext;
|
||||
use PaypalServerSdkLib\Models\PayPalWalletExperienceContext;
|
||||
|
||||
/**
|
||||
* Builder for model PaypalWalletExperienceContext
|
||||
* Builder for model PayPalWalletExperienceContext
|
||||
*
|
||||
* @see PaypalWalletExperienceContext
|
||||
* @see PayPalWalletExperienceContext
|
||||
*/
|
||||
class PaypalWalletExperienceContextBuilder
|
||||
class PayPalWalletExperienceContextBuilder
|
||||
{
|
||||
/**
|
||||
* @var PaypalWalletExperienceContext
|
||||
* @var PayPalWalletExperienceContext
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(PaypalWalletExperienceContext $instance)
|
||||
private function __construct(PayPalWalletExperienceContext $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new paypal wallet experience context Builder object.
|
||||
* Initializes a new pay pal wallet experience context Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new PaypalWalletExperienceContext());
|
||||
return new self(new PayPalWalletExperienceContext());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -111,9 +111,9 @@ class PaypalWalletExperienceContextBuilder
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new paypal wallet experience context object.
|
||||
* Initializes a new pay pal wallet experience context object.
|
||||
*/
|
||||
public function build(): PaypalWalletExperienceContext
|
||||
public function build(): PayPalWalletExperienceContext
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
@@ -13,34 +13,34 @@ namespace PaypalServerSdkLib\Models\Builders;
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSdkLib\Models\Address;
|
||||
use PaypalServerSdkLib\Models\Name;
|
||||
use PaypalServerSdkLib\Models\PaypalWalletAttributesResponse;
|
||||
use PaypalServerSdkLib\Models\PaypalWalletResponse;
|
||||
use PaypalServerSdkLib\Models\PayPalWalletAttributesResponse;
|
||||
use PaypalServerSdkLib\Models\PayPalWalletResponse;
|
||||
use PaypalServerSdkLib\Models\PhoneNumber;
|
||||
use PaypalServerSdkLib\Models\TaxInfo;
|
||||
|
||||
/**
|
||||
* Builder for model PaypalWalletResponse
|
||||
* Builder for model PayPalWalletResponse
|
||||
*
|
||||
* @see PaypalWalletResponse
|
||||
* @see PayPalWalletResponse
|
||||
*/
|
||||
class PaypalWalletResponseBuilder
|
||||
class PayPalWalletResponseBuilder
|
||||
{
|
||||
/**
|
||||
* @var PaypalWalletResponse
|
||||
* @var PayPalWalletResponse
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(PaypalWalletResponse $instance)
|
||||
private function __construct(PayPalWalletResponse $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new paypal wallet response Builder object.
|
||||
* Initializes a new pay pal wallet response Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new PaypalWalletResponse());
|
||||
return new self(new PayPalWalletResponse());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -136,16 +136,16 @@ class PaypalWalletResponseBuilder
|
||||
/**
|
||||
* Sets attributes field.
|
||||
*/
|
||||
public function attributes(?PaypalWalletAttributesResponse $value): self
|
||||
public function attributes(?PayPalWalletAttributesResponse $value): self
|
||||
{
|
||||
$this->instance->setAttributes($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new paypal wallet response object.
|
||||
* Initializes a new pay pal wallet response object.
|
||||
*/
|
||||
public function build(): PaypalWalletResponse
|
||||
public function build(): PayPalWalletResponse
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
@@ -11,31 +11,31 @@ declare(strict_types=1);
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSdkLib\Models\PaypalWalletVaultInstruction;
|
||||
use PaypalServerSdkLib\Models\PayPalWalletVaultInstruction;
|
||||
|
||||
/**
|
||||
* Builder for model PaypalWalletVaultInstruction
|
||||
* Builder for model PayPalWalletVaultInstruction
|
||||
*
|
||||
* @see PaypalWalletVaultInstruction
|
||||
* @see PayPalWalletVaultInstruction
|
||||
*/
|
||||
class PaypalWalletVaultInstructionBuilder
|
||||
class PayPalWalletVaultInstructionBuilder
|
||||
{
|
||||
/**
|
||||
* @var PaypalWalletVaultInstruction
|
||||
* @var PayPalWalletVaultInstruction
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(PaypalWalletVaultInstruction $instance)
|
||||
private function __construct(PayPalWalletVaultInstruction $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new paypal wallet vault instruction Builder object.
|
||||
* Initializes a new pay pal wallet vault instruction Builder object.
|
||||
*/
|
||||
public static function init(string $usageType): self
|
||||
{
|
||||
return new self(new PaypalWalletVaultInstruction($usageType));
|
||||
return new self(new PayPalWalletVaultInstruction($usageType));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -84,9 +84,9 @@ class PaypalWalletVaultInstructionBuilder
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new paypal wallet vault instruction object.
|
||||
* Initializes a new pay pal wallet vault instruction object.
|
||||
*/
|
||||
public function build(): PaypalWalletVaultInstruction
|
||||
public function build(): PayPalWalletVaultInstruction
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
@@ -11,32 +11,32 @@ declare(strict_types=1);
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSdkLib\Models\PaypalWalletCustomer;
|
||||
use PaypalServerSdkLib\Models\PaypalWalletVaultResponse;
|
||||
use PaypalServerSdkLib\Models\PayPalWalletCustomer;
|
||||
use PaypalServerSdkLib\Models\PayPalWalletVaultResponse;
|
||||
|
||||
/**
|
||||
* Builder for model PaypalWalletVaultResponse
|
||||
* Builder for model PayPalWalletVaultResponse
|
||||
*
|
||||
* @see PaypalWalletVaultResponse
|
||||
* @see PayPalWalletVaultResponse
|
||||
*/
|
||||
class PaypalWalletVaultResponseBuilder
|
||||
class PayPalWalletVaultResponseBuilder
|
||||
{
|
||||
/**
|
||||
* @var PaypalWalletVaultResponse
|
||||
* @var PayPalWalletVaultResponse
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(PaypalWalletVaultResponse $instance)
|
||||
private function __construct(PayPalWalletVaultResponse $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new paypal wallet vault response Builder object.
|
||||
* Initializes a new pay pal wallet vault response Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new PaypalWalletVaultResponse());
|
||||
return new self(new PayPalWalletVaultResponse());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -69,16 +69,16 @@ class PaypalWalletVaultResponseBuilder
|
||||
/**
|
||||
* Sets customer field.
|
||||
*/
|
||||
public function customer(?PaypalWalletCustomer $value): self
|
||||
public function customer(?PayPalWalletCustomer $value): self
|
||||
{
|
||||
$this->instance->setCustomer($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new paypal wallet vault response object.
|
||||
* Initializes a new pay pal wallet vault response object.
|
||||
*/
|
||||
public function build(): PaypalWalletVaultResponse
|
||||
public function build(): PayPalWalletVaultResponse
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
@@ -13,16 +13,16 @@ namespace PaypalServerSdkLib\Models\Builders;
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSdkLib\Models\ApplePayRequest;
|
||||
use PaypalServerSdkLib\Models\BancontactPaymentRequest;
|
||||
use PaypalServerSdkLib\Models\BlikPaymentRequest;
|
||||
use PaypalServerSdkLib\Models\BLIKPaymentRequest;
|
||||
use PaypalServerSdkLib\Models\CardRequest;
|
||||
use PaypalServerSdkLib\Models\EpsPaymentRequest;
|
||||
use PaypalServerSdkLib\Models\EPSPaymentRequest;
|
||||
use PaypalServerSdkLib\Models\GiropayPaymentRequest;
|
||||
use PaypalServerSdkLib\Models\GooglePayRequest;
|
||||
use PaypalServerSdkLib\Models\IdealPaymentRequest;
|
||||
use PaypalServerSdkLib\Models\MybankPaymentRequest;
|
||||
use PaypalServerSdkLib\Models\IDEALPaymentRequest;
|
||||
use PaypalServerSdkLib\Models\MyBankPaymentRequest;
|
||||
use PaypalServerSdkLib\Models\P24PaymentRequest;
|
||||
use PaypalServerSdkLib\Models\PaymentSource;
|
||||
use PaypalServerSdkLib\Models\PaypalWallet;
|
||||
use PaypalServerSdkLib\Models\PayPalWallet;
|
||||
use PaypalServerSdkLib\Models\SofortPaymentRequest;
|
||||
use PaypalServerSdkLib\Models\Token;
|
||||
use PaypalServerSdkLib\Models\TrustlyPaymentRequest;
|
||||
@@ -74,7 +74,7 @@ class PaymentSourceBuilder
|
||||
/**
|
||||
* Sets paypal field.
|
||||
*/
|
||||
public function paypal(?PaypalWallet $value): self
|
||||
public function paypal(?PayPalWallet $value): self
|
||||
{
|
||||
$this->instance->setPaypal($value);
|
||||
return $this;
|
||||
@@ -92,7 +92,7 @@ class PaymentSourceBuilder
|
||||
/**
|
||||
* Sets blik field.
|
||||
*/
|
||||
public function blik(?BlikPaymentRequest $value): self
|
||||
public function blik(?BLIKPaymentRequest $value): self
|
||||
{
|
||||
$this->instance->setBlik($value);
|
||||
return $this;
|
||||
@@ -101,7 +101,7 @@ class PaymentSourceBuilder
|
||||
/**
|
||||
* Sets eps field.
|
||||
*/
|
||||
public function eps(?EpsPaymentRequest $value): self
|
||||
public function eps(?EPSPaymentRequest $value): self
|
||||
{
|
||||
$this->instance->setEps($value);
|
||||
return $this;
|
||||
@@ -119,7 +119,7 @@ class PaymentSourceBuilder
|
||||
/**
|
||||
* Sets ideal field.
|
||||
*/
|
||||
public function ideal(?IdealPaymentRequest $value): self
|
||||
public function ideal(?IDEALPaymentRequest $value): self
|
||||
{
|
||||
$this->instance->setIdeal($value);
|
||||
return $this;
|
||||
@@ -128,7 +128,7 @@ class PaymentSourceBuilder
|
||||
/**
|
||||
* Sets mybank field.
|
||||
*/
|
||||
public function mybank(?MybankPaymentRequest $value): self
|
||||
public function mybank(?MyBankPaymentRequest $value): self
|
||||
{
|
||||
$this->instance->setMybank($value);
|
||||
return $this;
|
||||
|
||||
@@ -13,16 +13,16 @@ namespace PaypalServerSdkLib\Models\Builders;
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSdkLib\Models\ApplePayPaymentObject;
|
||||
use PaypalServerSdkLib\Models\BancontactPaymentObject;
|
||||
use PaypalServerSdkLib\Models\BlikPaymentObject;
|
||||
use PaypalServerSdkLib\Models\BLIKPaymentObject;
|
||||
use PaypalServerSdkLib\Models\CardResponse;
|
||||
use PaypalServerSdkLib\Models\EpsPaymentObject;
|
||||
use PaypalServerSdkLib\Models\EPSPaymentObject;
|
||||
use PaypalServerSdkLib\Models\GiropayPaymentObject;
|
||||
use PaypalServerSdkLib\Models\GooglePayWalletResponse;
|
||||
use PaypalServerSdkLib\Models\IdealPaymentObject;
|
||||
use PaypalServerSdkLib\Models\MybankPaymentObject;
|
||||
use PaypalServerSdkLib\Models\IDEALPaymentObject;
|
||||
use PaypalServerSdkLib\Models\MyBankPaymentObject;
|
||||
use PaypalServerSdkLib\Models\P24PaymentObject;
|
||||
use PaypalServerSdkLib\Models\PaymentSourceResponse;
|
||||
use PaypalServerSdkLib\Models\PaypalWalletResponse;
|
||||
use PaypalServerSdkLib\Models\PayPalWalletResponse;
|
||||
use PaypalServerSdkLib\Models\SofortPaymentObject;
|
||||
use PaypalServerSdkLib\Models\TrustlyPaymentObject;
|
||||
use PaypalServerSdkLib\Models\VenmoWalletResponse;
|
||||
@@ -64,7 +64,7 @@ class PaymentSourceResponseBuilder
|
||||
/**
|
||||
* Sets paypal field.
|
||||
*/
|
||||
public function paypal(?PaypalWalletResponse $value): self
|
||||
public function paypal(?PayPalWalletResponse $value): self
|
||||
{
|
||||
$this->instance->setPaypal($value);
|
||||
return $this;
|
||||
@@ -82,7 +82,7 @@ class PaymentSourceResponseBuilder
|
||||
/**
|
||||
* Sets blik field.
|
||||
*/
|
||||
public function blik(?BlikPaymentObject $value): self
|
||||
public function blik(?BLIKPaymentObject $value): self
|
||||
{
|
||||
$this->instance->setBlik($value);
|
||||
return $this;
|
||||
@@ -91,7 +91,7 @@ class PaymentSourceResponseBuilder
|
||||
/**
|
||||
* Sets eps field.
|
||||
*/
|
||||
public function eps(?EpsPaymentObject $value): self
|
||||
public function eps(?EPSPaymentObject $value): self
|
||||
{
|
||||
$this->instance->setEps($value);
|
||||
return $this;
|
||||
@@ -109,7 +109,7 @@ class PaymentSourceResponseBuilder
|
||||
/**
|
||||
* Sets ideal field.
|
||||
*/
|
||||
public function ideal(?IdealPaymentObject $value): self
|
||||
public function ideal(?IDEALPaymentObject $value): self
|
||||
{
|
||||
$this->instance->setIdeal($value);
|
||||
return $this;
|
||||
@@ -118,7 +118,7 @@ class PaymentSourceResponseBuilder
|
||||
/**
|
||||
* Sets mybank field.
|
||||
*/
|
||||
public function mybank(?MybankPaymentObject $value): self
|
||||
public function mybank(?MyBankPaymentObject $value): self
|
||||
{
|
||||
$this->instance->setMybank($value);
|
||||
return $this;
|
||||
|
||||
@@ -14,7 +14,7 @@ use Core\Utils\CoreHelper;
|
||||
use PaypalServerSdkLib\Models\ApplePayPaymentToken;
|
||||
use PaypalServerSdkLib\Models\CardPaymentToken;
|
||||
use PaypalServerSdkLib\Models\PaymentTokenResponsePaymentSource;
|
||||
use PaypalServerSdkLib\Models\PaypalPaymentToken;
|
||||
use PaypalServerSdkLib\Models\PayPalPaymentToken;
|
||||
use PaypalServerSdkLib\Models\VenmoPaymentToken;
|
||||
|
||||
/**
|
||||
@@ -54,7 +54,7 @@ class PaymentTokenResponsePaymentSourceBuilder
|
||||
/**
|
||||
* Sets paypal field.
|
||||
*/
|
||||
public function paypal(?PaypalPaymentToken $value): self
|
||||
public function paypal(?PayPalPaymentToken $value): self
|
||||
{
|
||||
$this->instance->setPaypal($value);
|
||||
return $this;
|
||||
|
||||
@@ -1,68 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSdkLib\Models\PaypalWalletAttributes;
|
||||
use PaypalServerSdkLib\Models\PaypalWalletCustomerRequest;
|
||||
use PaypalServerSdkLib\Models\PaypalWalletVaultInstruction;
|
||||
|
||||
/**
|
||||
* Builder for model PaypalWalletAttributes
|
||||
*
|
||||
* @see PaypalWalletAttributes
|
||||
*/
|
||||
class PaypalWalletAttributesBuilder
|
||||
{
|
||||
/**
|
||||
* @var PaypalWalletAttributes
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(PaypalWalletAttributes $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new paypal wallet attributes Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new PaypalWalletAttributes());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets customer field.
|
||||
*/
|
||||
public function customer(?PaypalWalletCustomerRequest $value): self
|
||||
{
|
||||
$this->instance->setCustomer($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets vault field.
|
||||
*/
|
||||
public function vault(?PaypalWalletVaultInstruction $value): self
|
||||
{
|
||||
$this->instance->setVault($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new paypal wallet attributes object.
|
||||
*/
|
||||
public function build(): PaypalWalletAttributes
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
@@ -13,7 +13,7 @@ namespace PaypalServerSdkLib\Models\Builders;
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSdkLib\Models\SetupTokenRequestCard;
|
||||
use PaypalServerSdkLib\Models\SetupTokenRequestPaymentSource;
|
||||
use PaypalServerSdkLib\Models\VaultPaypalWalletRequest;
|
||||
use PaypalServerSdkLib\Models\VaultPayPalWalletRequest;
|
||||
use PaypalServerSdkLib\Models\VaultTokenRequest;
|
||||
use PaypalServerSdkLib\Models\VaultVenmoRequest;
|
||||
|
||||
@@ -54,7 +54,7 @@ class SetupTokenRequestPaymentSourceBuilder
|
||||
/**
|
||||
* Sets paypal field.
|
||||
*/
|
||||
public function paypal(?VaultPaypalWalletRequest $value): self
|
||||
public function paypal(?VaultPayPalWalletRequest $value): self
|
||||
{
|
||||
$this->instance->setPaypal($value);
|
||||
return $this;
|
||||
|
||||
@@ -11,7 +11,7 @@ declare(strict_types=1);
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSdkLib\Models\PaypalPaymentToken;
|
||||
use PaypalServerSdkLib\Models\PayPalPaymentToken;
|
||||
use PaypalServerSdkLib\Models\SetupTokenResponseCard;
|
||||
use PaypalServerSdkLib\Models\SetupTokenResponsePaymentSource;
|
||||
use PaypalServerSdkLib\Models\VenmoPaymentToken;
|
||||
@@ -53,7 +53,7 @@ class SetupTokenResponsePaymentSourceBuilder
|
||||
/**
|
||||
* Sets paypal field.
|
||||
*/
|
||||
public function paypal(?PaypalPaymentToken $value): self
|
||||
public function paypal(?PayPalPaymentToken $value): self
|
||||
{
|
||||
$this->instance->setPaypal($value);
|
||||
return $this;
|
||||
|
||||
@@ -13,31 +13,31 @@ namespace PaypalServerSdkLib\Models\Builders;
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSdkLib\Models\VaultedDigitalWalletShippingDetails;
|
||||
use PaypalServerSdkLib\Models\VaultExperienceContext;
|
||||
use PaypalServerSdkLib\Models\VaultPaypalWalletRequest;
|
||||
use PaypalServerSdkLib\Models\VaultPayPalWalletRequest;
|
||||
|
||||
/**
|
||||
* Builder for model VaultPaypalWalletRequest
|
||||
* Builder for model VaultPayPalWalletRequest
|
||||
*
|
||||
* @see VaultPaypalWalletRequest
|
||||
* @see VaultPayPalWalletRequest
|
||||
*/
|
||||
class VaultPaypalWalletRequestBuilder
|
||||
class VaultPayPalWalletRequestBuilder
|
||||
{
|
||||
/**
|
||||
* @var VaultPaypalWalletRequest
|
||||
* @var VaultPayPalWalletRequest
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(VaultPaypalWalletRequest $instance)
|
||||
private function __construct(VaultPayPalWalletRequest $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new vault paypal wallet request Builder object.
|
||||
* Initializes a new vault pay pal wallet request Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new VaultPaypalWalletRequest());
|
||||
return new self(new VaultPayPalWalletRequest());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -95,9 +95,9 @@ class VaultPaypalWalletRequestBuilder
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new vault paypal wallet request object.
|
||||
* Initializes a new vault pay pal wallet request object.
|
||||
*/
|
||||
public function build(): VaultPaypalWalletRequest
|
||||
public function build(): VaultPayPalWalletRequest
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
@@ -17,7 +17,7 @@ use stdClass;
|
||||
/**
|
||||
* The card verification value code for for Visa, Discover, Mastercard, or American Express.
|
||||
*/
|
||||
class CvvCode
|
||||
class CVVCode
|
||||
{
|
||||
public const E = 'E';
|
||||
|
||||
@@ -79,6 +79,6 @@ class CvvCode
|
||||
if (CoreHelper::checkValueOrValuesInList($value, self::_ALL_VALUES)) {
|
||||
return $value;
|
||||
}
|
||||
throw new Exception("$value is invalid for CvvCode.");
|
||||
throw new Exception("$value is invalid for CVVCode.");
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user