forked from LiveCarta/PayPal-PHP-Server-SDK
Automated commit message (#9)
Co-authored-by: PayPalServerSDKs <server-sdks@paypal.com>
This commit is contained in:
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib;
|
||||
namespace PaypalServerSdkLib;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use Core\Utils\JsonHelper;
|
||||
@@ -28,7 +28,7 @@ class ApiHelper
|
||||
public static function getJsonHelper(): JsonHelper
|
||||
{
|
||||
if (self::$jsonHelper == null) {
|
||||
self::$jsonHelper = new JsonHelper([], [], null, 'PaypalServerSDKLib\\Models');
|
||||
self::$jsonHelper = new JsonHelper([], [], null, 'PaypalServerSdkLib\\Models');
|
||||
}
|
||||
return self::$jsonHelper;
|
||||
}
|
||||
|
||||
@@ -3,15 +3,15 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Authentication;
|
||||
namespace PaypalServerSdkLib\Authentication;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSDKLib\Models\OAuthToken;
|
||||
use PaypalServerSdkLib\Models\OAuthToken;
|
||||
|
||||
/**
|
||||
* Utility class for initializing ClientCredentialsAuth security credentials.
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Authentication;
|
||||
namespace PaypalServerSdkLib\Authentication;
|
||||
|
||||
use Closure;
|
||||
use Exception;
|
||||
@@ -18,10 +18,10 @@ use Core\Client;
|
||||
use Core\Request\Parameters\HeaderParam;
|
||||
use Core\Utils\CoreHelper;
|
||||
use InvalidArgumentException;
|
||||
use PaypalServerSDKLib\Models\OAuthToken;
|
||||
use PaypalServerSDKLib\Controllers\OAuthAuthorizationController;
|
||||
use PaypalServerSDKLib\ConfigurationDefaults;
|
||||
use PaypalServerSDKLib\ClientCredentialsAuth;
|
||||
use PaypalServerSdkLib\Models\OAuthToken;
|
||||
use PaypalServerSdkLib\Controllers\OAuthAuthorizationController;
|
||||
use PaypalServerSdkLib\ConfigurationDefaults;
|
||||
use PaypalServerSdkLib\ClientCredentialsAuth;
|
||||
|
||||
/**
|
||||
* Utility class for OAuth 2 authorization and token management
|
||||
|
||||
@@ -3,14 +3,14 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib;
|
||||
namespace PaypalServerSdkLib;
|
||||
|
||||
use PaypalServerSDKLib\Models\OAuthToken;
|
||||
use PaypalServerSdkLib\Models\OAuthToken;
|
||||
|
||||
/**
|
||||
* Interface for defining the behavior of Authentication.
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib;
|
||||
namespace PaypalServerSdkLib;
|
||||
|
||||
use Psr\Log\LogLevel;
|
||||
|
||||
|
||||
@@ -3,16 +3,16 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib;
|
||||
namespace PaypalServerSdkLib;
|
||||
|
||||
use CoreInterfaces\Http\HttpConfigurations;
|
||||
use PaypalServerSDKLib\Authentication\ClientCredentialsAuthCredentialsBuilder;
|
||||
use PaypalServerSDKLib\Logging\LoggingConfigurationBuilder;
|
||||
use PaypalServerSdkLib\Authentication\ClientCredentialsAuthCredentialsBuilder;
|
||||
use PaypalServerSdkLib\Logging\LoggingConfigurationBuilder;
|
||||
|
||||
/**
|
||||
* An interface for all configuration parameters required by the SDK.
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Controllers;
|
||||
namespace PaypalServerSdkLib\Controllers;
|
||||
|
||||
use Core\ApiCall;
|
||||
use Core\Client;
|
||||
|
||||
@@ -3,21 +3,21 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Controllers;
|
||||
namespace PaypalServerSdkLib\Controllers;
|
||||
|
||||
use Core\Request\Parameters\AdditionalFormParams;
|
||||
use Core\Request\Parameters\FormParam;
|
||||
use Core\Request\Parameters\HeaderParam;
|
||||
use Core\Response\Types\ErrorType;
|
||||
use CoreInterfaces\Core\Request\RequestMethod;
|
||||
use PaypalServerSDKLib\Exceptions\OAuthProviderException;
|
||||
use PaypalServerSDKLib\Http\ApiResponse;
|
||||
use PaypalServerSDKLib\Models\OAuthToken;
|
||||
use PaypalServerSdkLib\Exceptions\OAuthProviderException;
|
||||
use PaypalServerSdkLib\Http\ApiResponse;
|
||||
use PaypalServerSdkLib\Models\OAuthToken;
|
||||
|
||||
class OAuthAuthorizationController extends BaseController
|
||||
{
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Controllers;
|
||||
namespace PaypalServerSdkLib\Controllers;
|
||||
|
||||
use Core\Request\Parameters\BodyParam;
|
||||
use Core\Request\Parameters\HeaderParam;
|
||||
@@ -16,13 +16,126 @@ use Core\Request\Parameters\QueryParam;
|
||||
use Core\Request\Parameters\TemplateParam;
|
||||
use Core\Response\Types\ErrorType;
|
||||
use CoreInterfaces\Core\Request\RequestMethod;
|
||||
use PaypalServerSDKLib\Exceptions\ErrorException;
|
||||
use PaypalServerSDKLib\Http\ApiResponse;
|
||||
use PaypalServerSDKLib\Models\Order;
|
||||
use PaypalServerSDKLib\Models\OrderAuthorizeResponse;
|
||||
use PaypalServerSdkLib\Exceptions\ErrorException;
|
||||
use PaypalServerSdkLib\Http\ApiResponse;
|
||||
use PaypalServerSdkLib\Models\Order;
|
||||
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:
|
||||
@@ -43,9 +156,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')
|
||||
);
|
||||
|
||||
@@ -80,41 +193,6 @@ 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
|
||||
@@ -201,122 +279,6 @@ 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
|
||||
@@ -336,10 +298,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')
|
||||
);
|
||||
|
||||
@@ -384,21 +346,60 @@ class OrdersController extends BaseController
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds tracking information for an Order.
|
||||
* 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 ordersTrackCreate(array $options): ApiResponse
|
||||
public function ordersGet(array $options): ApiResponse
|
||||
{
|
||||
$_reqBuilder = $this->requestBuilder(RequestMethod::POST, '/v2/checkout/orders/{id}/track')
|
||||
$_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'
|
||||
)
|
||||
->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')
|
||||
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()
|
||||
@@ -413,7 +414,6 @@ 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(
|
||||
|
||||
@@ -3,23 +3,23 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Controllers;
|
||||
namespace PaypalServerSdkLib\Controllers;
|
||||
|
||||
use Core\Request\Parameters\BodyParam;
|
||||
use Core\Request\Parameters\HeaderParam;
|
||||
use Core\Request\Parameters\TemplateParam;
|
||||
use Core\Response\Types\ErrorType;
|
||||
use CoreInterfaces\Core\Request\RequestMethod;
|
||||
use PaypalServerSDKLib\Exceptions\ErrorException;
|
||||
use PaypalServerSDKLib\Http\ApiResponse;
|
||||
use PaypalServerSDKLib\Models\CapturedPayment;
|
||||
use PaypalServerSDKLib\Models\PaymentAuthorization;
|
||||
use PaypalServerSDKLib\Models\Refund;
|
||||
use PaypalServerSdkLib\Exceptions\ErrorException;
|
||||
use PaypalServerSdkLib\Http\ApiResponse;
|
||||
use PaypalServerSdkLib\Models\CapturedPayment;
|
||||
use PaypalServerSdkLib\Models\PaymentAuthorization;
|
||||
use PaypalServerSdkLib\Models\Refund;
|
||||
|
||||
class PaymentsController extends BaseController
|
||||
{
|
||||
@@ -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,82 +136,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);
|
||||
}
|
||||
|
||||
/**
|
||||
* Voids, or cancels, an authorized payment, by ID. You cannot void an authorized payment that has been
|
||||
* fully captured.
|
||||
@@ -229,7 +153,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')
|
||||
);
|
||||
|
||||
@@ -285,6 +209,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);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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')
|
||||
);
|
||||
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Controllers;
|
||||
namespace PaypalServerSdkLib\Controllers;
|
||||
|
||||
use Core\Request\Parameters\BodyParam;
|
||||
use Core\Request\Parameters\HeaderParam;
|
||||
@@ -16,66 +16,14 @@ use Core\Request\Parameters\QueryParam;
|
||||
use Core\Request\Parameters\TemplateParam;
|
||||
use Core\Response\Types\ErrorType;
|
||||
use CoreInterfaces\Core\Request\RequestMethod;
|
||||
use PaypalServerSDKLib\Exceptions\ErrorException;
|
||||
use PaypalServerSDKLib\Http\ApiResponse;
|
||||
use PaypalServerSDKLib\Models\CustomerVaultPaymentTokensResponse;
|
||||
use PaypalServerSDKLib\Models\PaymentTokenResponse;
|
||||
use PaypalServerSDKLib\Models\SetupTokenResponse;
|
||||
use PaypalServerSdkLib\Exceptions\ErrorException;
|
||||
use PaypalServerSdkLib\Http\ApiResponse;
|
||||
use PaypalServerSdkLib\Models\CustomerVaultPaymentTokensResponse;
|
||||
use PaypalServerSdkLib\Models\PaymentTokenResponse;
|
||||
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.
|
||||
*
|
||||
@@ -148,17 +96,22 @@ class VaultController extends BaseController
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete the payment token associated with the payment token id.
|
||||
* Creates a Payment Token from the given payment source and adds it to the Vault of the associated
|
||||
* customer.
|
||||
*
|
||||
* @param string $id ID of the payment token.
|
||||
* @param array $options Array with all options for search
|
||||
*
|
||||
* @return ApiResponse Response from the API call
|
||||
*/
|
||||
public function paymentTokensDelete(string $id): ApiResponse
|
||||
public function paymentTokensCreate(array $options): ApiResponse
|
||||
{
|
||||
$_reqBuilder = $this->requestBuilder(RequestMethod::DELETE, '/v3/vault/payment-tokens/{id}')
|
||||
$_reqBuilder = $this->requestBuilder(RequestMethod::POST, '/v3/vault/payment-tokens')
|
||||
->auth('Oauth2')
|
||||
->parameters(TemplateParam::init('id', $id));
|
||||
->parameters(
|
||||
HeaderParam::init('PayPal-Request-Id', $options)->extract('paypalRequestId'),
|
||||
HeaderParam::init('Content-Type', 'application/json'),
|
||||
BodyParam::init($options)->extract('body')
|
||||
);
|
||||
|
||||
$_resHandler = $this->responseHandler()
|
||||
->throwErrorOn(
|
||||
@@ -172,7 +125,23 @@ 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);
|
||||
@@ -191,7 +160,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')
|
||||
);
|
||||
@@ -223,6 +192,37 @@ 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.
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib;
|
||||
namespace PaypalServerSdkLib;
|
||||
|
||||
/**
|
||||
* Environments available for API
|
||||
|
||||
@@ -3,16 +3,16 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Exceptions;
|
||||
namespace PaypalServerSdkLib\Exceptions;
|
||||
|
||||
use CoreInterfaces\Sdk\ExceptionInterface;
|
||||
use PaypalServerSDKLib\Http\HttpResponse;
|
||||
use PaypalServerSDKLib\Http\HttpRequest;
|
||||
use PaypalServerSdkLib\Http\HttpResponse;
|
||||
use PaypalServerSdkLib\Http\HttpRequest;
|
||||
|
||||
/**
|
||||
* Thrown when there is a network error or HTTP response status code is not okay.
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Exceptions;
|
||||
namespace PaypalServerSdkLib\Exceptions;
|
||||
|
||||
/**
|
||||
* The error details.
|
||||
@@ -31,27 +31,27 @@ class ErrorException extends ApiException
|
||||
private $debugId;
|
||||
|
||||
/**
|
||||
* @var \PaypalServerSDKLib\Models\ErrorDetails[]|null
|
||||
* @var \PaypalServerSdkLib\Models\ErrorDetails[]|null
|
||||
*/
|
||||
private $details;
|
||||
|
||||
/**
|
||||
* @var \PaypalServerSDKLib\Models\LinkDescription[]|null
|
||||
* @var \PaypalServerSdkLib\Models\LinkDescription[]|null
|
||||
*/
|
||||
private $links;
|
||||
|
||||
/**
|
||||
* @param string $reason
|
||||
* @param \PaypalServerSDKLib\Http\HttpRequest $request
|
||||
* @param \PaypalServerSDKLib\Http\HttpResponse $response
|
||||
* @param \PaypalServerSdkLib\Http\HttpRequest $request
|
||||
* @param \PaypalServerSdkLib\Http\HttpResponse $response
|
||||
* @param string $name
|
||||
* @param string $messageProperty
|
||||
* @param string $debugId
|
||||
*/
|
||||
public function __construct(
|
||||
string $reason,
|
||||
\PaypalServerSDKLib\Http\HttpRequest $request,
|
||||
\PaypalServerSDKLib\Http\HttpResponse $response,
|
||||
\PaypalServerSdkLib\Http\HttpRequest $request,
|
||||
\PaypalServerSdkLib\Http\HttpResponse $response,
|
||||
string $name,
|
||||
string $messageProperty,
|
||||
string $debugId
|
||||
@@ -129,7 +129,7 @@ class ErrorException extends ApiException
|
||||
* Returns Details.
|
||||
* An array of additional details about the error.
|
||||
*
|
||||
* @return \PaypalServerSDKLib\Models\ErrorDetails[]|null
|
||||
* @return \PaypalServerSdkLib\Models\ErrorDetails[]|null
|
||||
*/
|
||||
public function getDetails(): ?array
|
||||
{
|
||||
@@ -142,7 +142,7 @@ class ErrorException extends ApiException
|
||||
*
|
||||
* @maps details
|
||||
*
|
||||
* @param \PaypalServerSDKLib\Models\ErrorDetails[]|null $details
|
||||
* @param \PaypalServerSdkLib\Models\ErrorDetails[]|null $details
|
||||
*/
|
||||
public function setDetails(?array $details): void
|
||||
{
|
||||
@@ -153,7 +153,7 @@ class ErrorException extends ApiException
|
||||
* Returns Links.
|
||||
* An array of request-related [HATEOAS links](/api/rest/responses/#hateoas-links).
|
||||
*
|
||||
* @return \PaypalServerSDKLib\Models\LinkDescription[]|null
|
||||
* @return \PaypalServerSdkLib\Models\LinkDescription[]|null
|
||||
*/
|
||||
public function getLinks(): ?array
|
||||
{
|
||||
@@ -166,7 +166,7 @@ class ErrorException extends ApiException
|
||||
*
|
||||
* @maps links
|
||||
*
|
||||
* @param \PaypalServerSDKLib\Models\LinkDescription[]|null $links
|
||||
* @param \PaypalServerSdkLib\Models\LinkDescription[]|null $links
|
||||
*/
|
||||
public function setLinks(?array $links): void
|
||||
{
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Exceptions;
|
||||
namespace PaypalServerSdkLib\Exceptions;
|
||||
|
||||
/**
|
||||
* OAuth 2 Authorization endpoint exception.
|
||||
@@ -32,14 +32,14 @@ class OAuthProviderException extends ApiException
|
||||
|
||||
/**
|
||||
* @param string $reason
|
||||
* @param \PaypalServerSDKLib\Http\HttpRequest $request
|
||||
* @param \PaypalServerSDKLib\Http\HttpResponse $response
|
||||
* @param \PaypalServerSdkLib\Http\HttpRequest $request
|
||||
* @param \PaypalServerSdkLib\Http\HttpResponse $response
|
||||
* @param string $error
|
||||
*/
|
||||
public function __construct(
|
||||
string $reason,
|
||||
\PaypalServerSDKLib\Http\HttpRequest $request,
|
||||
\PaypalServerSDKLib\Http\HttpResponse $response,
|
||||
\PaypalServerSdkLib\Http\HttpRequest $request,
|
||||
\PaypalServerSdkLib\Http\HttpResponse $response,
|
||||
string $error
|
||||
) {
|
||||
parent::__construct($reason, $request, $response);
|
||||
@@ -61,7 +61,7 @@ class OAuthProviderException extends ApiException
|
||||
*
|
||||
* @required
|
||||
* @maps error
|
||||
* @factory \PaypalServerSDKLib\Models\OAuthProviderError::checkValue
|
||||
* @factory \PaypalServerSdkLib\Models\OAuthProviderError::checkValue
|
||||
*/
|
||||
public function setError(string $error): void
|
||||
{
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Http;
|
||||
namespace PaypalServerSdkLib\Http;
|
||||
|
||||
use Core\Types\Sdk\CoreApiResponse;
|
||||
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Http;
|
||||
namespace PaypalServerSdkLib\Http;
|
||||
|
||||
use Core\Types\Sdk\CoreCallback;
|
||||
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Http;
|
||||
namespace PaypalServerSdkLib\Http;
|
||||
|
||||
use Core\Types\Sdk\CoreContext;
|
||||
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Http;
|
||||
namespace PaypalServerSdkLib\Http;
|
||||
|
||||
use CoreInterfaces\Core\Request\RequestMethod;
|
||||
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Http;
|
||||
namespace PaypalServerSdkLib\Http;
|
||||
|
||||
use Core\Types\Sdk\CoreRequest;
|
||||
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Http;
|
||||
namespace PaypalServerSdkLib\Http;
|
||||
|
||||
use Core\Types\Sdk\CoreResponse;
|
||||
|
||||
|
||||
@@ -3,14 +3,14 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Logging;
|
||||
namespace PaypalServerSdkLib\Logging;
|
||||
|
||||
use PaypalServerSDKLib\ConfigurationDefaults;
|
||||
use PaypalServerSdkLib\ConfigurationDefaults;
|
||||
use Core\Logger\Configuration\LoggingConfiguration;
|
||||
use Core\Logger\ConsoleLogger;
|
||||
use Core\Utils\CoreHelper;
|
||||
|
||||
@@ -3,14 +3,14 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Logging;
|
||||
namespace PaypalServerSdkLib\Logging;
|
||||
|
||||
use PaypalServerSDKLib\ConfigurationDefaults;
|
||||
use PaypalServerSdkLib\ConfigurationDefaults;
|
||||
use Core\Logger\Configuration\RequestConfiguration;
|
||||
use Core\Utils\CoreHelper;
|
||||
|
||||
|
||||
@@ -3,14 +3,14 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Logging;
|
||||
namespace PaypalServerSdkLib\Logging;
|
||||
|
||||
use PaypalServerSDKLib\ConfigurationDefaults;
|
||||
use PaypalServerSdkLib\ConfigurationDefaults;
|
||||
use Core\Logger\Configuration\ResponseConfiguration;
|
||||
use Core\Utils\CoreHelper;
|
||||
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models;
|
||||
namespace PaypalServerSdkLib\Models;
|
||||
|
||||
use stdClass;
|
||||
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models;
|
||||
namespace PaypalServerSdkLib\Models;
|
||||
|
||||
use stdClass;
|
||||
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models;
|
||||
namespace PaypalServerSdkLib\Models;
|
||||
|
||||
use stdClass;
|
||||
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models;
|
||||
namespace PaypalServerSdkLib\Models;
|
||||
|
||||
use stdClass;
|
||||
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models;
|
||||
namespace PaypalServerSdkLib\Models;
|
||||
|
||||
use stdClass;
|
||||
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models;
|
||||
namespace PaypalServerSdkLib\Models;
|
||||
|
||||
use stdClass;
|
||||
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models;
|
||||
namespace PaypalServerSdkLib\Models;
|
||||
|
||||
use stdClass;
|
||||
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models;
|
||||
namespace PaypalServerSdkLib\Models;
|
||||
|
||||
use stdClass;
|
||||
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models;
|
||||
namespace PaypalServerSdkLib\Models;
|
||||
|
||||
use stdClass;
|
||||
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models;
|
||||
namespace PaypalServerSdkLib\Models;
|
||||
|
||||
use stdClass;
|
||||
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models;
|
||||
namespace PaypalServerSdkLib\Models;
|
||||
|
||||
use stdClass;
|
||||
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models;
|
||||
namespace PaypalServerSdkLib\Models;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use Exception;
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models;
|
||||
namespace PaypalServerSdkLib\Models;
|
||||
|
||||
use stdClass;
|
||||
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models;
|
||||
namespace PaypalServerSdkLib\Models;
|
||||
|
||||
use stdClass;
|
||||
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models;
|
||||
namespace PaypalServerSdkLib\Models;
|
||||
|
||||
use stdClass;
|
||||
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models;
|
||||
namespace PaypalServerSdkLib\Models;
|
||||
|
||||
use stdClass;
|
||||
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models;
|
||||
namespace PaypalServerSdkLib\Models;
|
||||
|
||||
use stdClass;
|
||||
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models;
|
||||
namespace PaypalServerSdkLib\Models;
|
||||
|
||||
use stdClass;
|
||||
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models;
|
||||
namespace PaypalServerSdkLib\Models;
|
||||
|
||||
use stdClass;
|
||||
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models;
|
||||
namespace PaypalServerSdkLib\Models;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use Exception;
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models;
|
||||
namespace PaypalServerSdkLib\Models;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use Exception;
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models;
|
||||
namespace PaypalServerSdkLib\Models;
|
||||
|
||||
use stdClass;
|
||||
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models;
|
||||
namespace PaypalServerSdkLib\Models;
|
||||
|
||||
use stdClass;
|
||||
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models;
|
||||
namespace PaypalServerSdkLib\Models;
|
||||
|
||||
use stdClass;
|
||||
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models;
|
||||
namespace PaypalServerSdkLib\Models;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use Exception;
|
||||
@@ -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.");
|
||||
}
|
||||
}
|
||||
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models;
|
||||
namespace PaypalServerSdkLib\Models;
|
||||
|
||||
use stdClass;
|
||||
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models;
|
||||
namespace PaypalServerSdkLib\Models;
|
||||
|
||||
use stdClass;
|
||||
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models;
|
||||
namespace PaypalServerSdkLib\Models;
|
||||
|
||||
use stdClass;
|
||||
|
||||
|
||||
@@ -3,19 +3,19 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models;
|
||||
namespace PaypalServerSdkLib\Models;
|
||||
|
||||
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
|
||||
@@ -3,19 +3,19 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models;
|
||||
namespace PaypalServerSdkLib\Models;
|
||||
|
||||
use stdClass;
|
||||
|
||||
/**
|
||||
* Information used to pay using BLIK level_0 flow.
|
||||
*/
|
||||
class BLIKLevel0PaymentObject implements \JsonSerializable
|
||||
class BlikLevel0PaymentObject implements \JsonSerializable
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
@@ -3,19 +3,19 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models;
|
||||
namespace PaypalServerSdkLib\Models;
|
||||
|
||||
use stdClass;
|
||||
|
||||
/**
|
||||
* Information used to pay using BLIK one-click flow.
|
||||
*/
|
||||
class BLIKOneClickPaymentObject implements \JsonSerializable
|
||||
class BlikOneClickPaymentObject implements \JsonSerializable
|
||||
{
|
||||
/**
|
||||
* @var string|null
|
||||
@@ -3,19 +3,19 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models;
|
||||
namespace PaypalServerSdkLib\Models;
|
||||
|
||||
use stdClass;
|
||||
|
||||
/**
|
||||
* Information used to pay using BLIK one-click flow.
|
||||
*/
|
||||
class BLIKOneClickPaymentRequest implements \JsonSerializable
|
||||
class BlikOneClickPaymentRequest implements \JsonSerializable
|
||||
{
|
||||
/**
|
||||
* @var string|null
|
||||
@@ -3,19 +3,19 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models;
|
||||
namespace PaypalServerSdkLib\Models;
|
||||
|
||||
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;
|
||||
}
|
||||
@@ -3,19 +3,19 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models;
|
||||
namespace PaypalServerSdkLib\Models;
|
||||
|
||||
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;
|
||||
}
|
||||
@@ -3,15 +3,15 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSDKLib\Models\ActivityTimestamps;
|
||||
use PaypalServerSdkLib\Models\ActivityTimestamps;
|
||||
|
||||
/**
|
||||
* Builder for model ActivityTimestamps
|
||||
|
||||
@@ -3,15 +3,15 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSDKLib\Models\Address;
|
||||
use PaypalServerSdkLib\Models\Address;
|
||||
|
||||
/**
|
||||
* Builder for model Address
|
||||
|
||||
@@ -3,17 +3,17 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSDKLib\Models\AddressDetails;
|
||||
use PaypalServerSDKLib\Models\Name;
|
||||
use PaypalServerSDKLib\Models\Phone;
|
||||
use PaypalServerSdkLib\Models\AddressDetails;
|
||||
use PaypalServerSdkLib\Models\Name;
|
||||
use PaypalServerSdkLib\Models\Phone;
|
||||
|
||||
/**
|
||||
* Builder for model AddressDetails
|
||||
|
||||
@@ -3,16 +3,16 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSDKLib\Models\AmountBreakdown;
|
||||
use PaypalServerSDKLib\Models\Money;
|
||||
use PaypalServerSdkLib\Models\AmountBreakdown;
|
||||
use PaypalServerSdkLib\Models\Money;
|
||||
|
||||
/**
|
||||
* Builder for model AmountBreakdown
|
||||
|
||||
@@ -3,16 +3,16 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSDKLib\Models\AmountBreakdown;
|
||||
use PaypalServerSDKLib\Models\AmountWithBreakdown;
|
||||
use PaypalServerSdkLib\Models\AmountBreakdown;
|
||||
use PaypalServerSdkLib\Models\AmountWithBreakdown;
|
||||
|
||||
/**
|
||||
* Builder for model AmountWithBreakdown
|
||||
|
||||
@@ -3,17 +3,17 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSDKLib\Models\ApplePayAttributes;
|
||||
use PaypalServerSDKLib\Models\CustomerInformation;
|
||||
use PaypalServerSDKLib\Models\VaultInstruction;
|
||||
use PaypalServerSdkLib\Models\ApplePayAttributes;
|
||||
use PaypalServerSdkLib\Models\CustomerInformation;
|
||||
use PaypalServerSdkLib\Models\VaultInstruction;
|
||||
|
||||
/**
|
||||
* Builder for model ApplePayAttributes
|
||||
|
||||
@@ -3,16 +3,16 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSDKLib\Models\ApplePayAttributesResponse;
|
||||
use PaypalServerSDKLib\Models\VaultResponse;
|
||||
use PaypalServerSdkLib\Models\ApplePayAttributesResponse;
|
||||
use PaypalServerSdkLib\Models\VaultResponse;
|
||||
|
||||
/**
|
||||
* Builder for model ApplePayAttributesResponse
|
||||
|
||||
@@ -3,16 +3,16 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSDKLib\Models\Address;
|
||||
use PaypalServerSDKLib\Models\ApplePayCard;
|
||||
use PaypalServerSdkLib\Models\Address;
|
||||
use PaypalServerSdkLib\Models\ApplePayCard;
|
||||
|
||||
/**
|
||||
* Builder for model ApplePayCard
|
||||
|
||||
@@ -3,20 +3,20 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSDKLib\Models\Address;
|
||||
use PaypalServerSDKLib\Models\ApplePayCardResponse;
|
||||
use PaypalServerSDKLib\Models\AuthenticationResponse;
|
||||
use PaypalServerSDKLib\Models\BinDetails;
|
||||
use PaypalServerSDKLib\Models\CardAttributesResponse;
|
||||
use PaypalServerSDKLib\Models\CardFromRequest;
|
||||
use PaypalServerSdkLib\Models\Address;
|
||||
use PaypalServerSdkLib\Models\ApplePayCardResponse;
|
||||
use PaypalServerSdkLib\Models\AuthenticationResponse;
|
||||
use PaypalServerSdkLib\Models\BinDetails;
|
||||
use PaypalServerSdkLib\Models\CardAttributesResponse;
|
||||
use PaypalServerSdkLib\Models\CardFromRequest;
|
||||
|
||||
/**
|
||||
* Builder for model ApplePayCardResponse
|
||||
|
||||
@@ -3,18 +3,18 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSDKLib\Models\ApplePayDecryptedTokenData;
|
||||
use PaypalServerSDKLib\Models\ApplePayPaymentData;
|
||||
use PaypalServerSDKLib\Models\ApplePayTokenizedCard;
|
||||
use PaypalServerSDKLib\Models\Money;
|
||||
use PaypalServerSdkLib\Models\ApplePayDecryptedTokenData;
|
||||
use PaypalServerSdkLib\Models\ApplePayPaymentData;
|
||||
use PaypalServerSdkLib\Models\ApplePayTokenizedCard;
|
||||
use PaypalServerSdkLib\Models\Money;
|
||||
|
||||
/**
|
||||
* Builder for model ApplePayDecryptedTokenData
|
||||
|
||||
@@ -3,15 +3,15 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSDKLib\Models\ApplePayPaymentData;
|
||||
use PaypalServerSdkLib\Models\ApplePayPaymentData;
|
||||
|
||||
/**
|
||||
* Builder for model ApplePayPaymentData
|
||||
|
||||
@@ -3,18 +3,18 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSDKLib\Models\ApplePayAttributesResponse;
|
||||
use PaypalServerSDKLib\Models\ApplePayCardResponse;
|
||||
use PaypalServerSDKLib\Models\ApplePayPaymentObject;
|
||||
use PaypalServerSDKLib\Models\PhoneNumber;
|
||||
use PaypalServerSdkLib\Models\ApplePayAttributesResponse;
|
||||
use PaypalServerSdkLib\Models\ApplePayCardResponse;
|
||||
use PaypalServerSdkLib\Models\ApplePayPaymentObject;
|
||||
use PaypalServerSdkLib\Models\PhoneNumber;
|
||||
|
||||
/**
|
||||
* Builder for model ApplePayPaymentObject
|
||||
|
||||
@@ -3,16 +3,16 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSDKLib\Models\ApplePayCard;
|
||||
use PaypalServerSDKLib\Models\ApplePayPaymentToken;
|
||||
use PaypalServerSdkLib\Models\ApplePayCard;
|
||||
use PaypalServerSdkLib\Models\ApplePayPaymentToken;
|
||||
|
||||
/**
|
||||
* Builder for model ApplePayPaymentToken
|
||||
|
||||
@@ -3,19 +3,19 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSDKLib\Models\ApplePayAttributes;
|
||||
use PaypalServerSDKLib\Models\ApplePayDecryptedTokenData;
|
||||
use PaypalServerSDKLib\Models\ApplePayRequest;
|
||||
use PaypalServerSDKLib\Models\CardStoredCredential;
|
||||
use PaypalServerSDKLib\Models\PhoneNumber;
|
||||
use PaypalServerSdkLib\Models\ApplePayAttributes;
|
||||
use PaypalServerSdkLib\Models\ApplePayDecryptedTokenData;
|
||||
use PaypalServerSdkLib\Models\ApplePayRequest;
|
||||
use PaypalServerSdkLib\Models\CardStoredCredential;
|
||||
use PaypalServerSdkLib\Models\PhoneNumber;
|
||||
|
||||
/**
|
||||
* Builder for model ApplePayRequest
|
||||
|
||||
@@ -3,16 +3,16 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSDKLib\Models\Address;
|
||||
use PaypalServerSDKLib\Models\ApplePayTokenizedCard;
|
||||
use PaypalServerSdkLib\Models\Address;
|
||||
use PaypalServerSdkLib\Models\ApplePayTokenizedCard;
|
||||
|
||||
/**
|
||||
* Builder for model ApplePayTokenizedCard
|
||||
|
||||
@@ -3,15 +3,15 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSDKLib\Models\AssuranceDetails;
|
||||
use PaypalServerSdkLib\Models\AssuranceDetails;
|
||||
|
||||
/**
|
||||
* Builder for model AssuranceDetails
|
||||
|
||||
@@ -3,16 +3,16 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSDKLib\Models\AuthenticationResponse;
|
||||
use PaypalServerSDKLib\Models\ThreeDSecureAuthenticationResponse;
|
||||
use PaypalServerSdkLib\Models\AuthenticationResponse;
|
||||
use PaypalServerSdkLib\Models\ThreeDSecureAuthenticationResponse;
|
||||
|
||||
/**
|
||||
* Builder for model AuthenticationResponse
|
||||
|
||||
@@ -3,19 +3,19 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSDKLib\Models\Authorization;
|
||||
use PaypalServerSDKLib\Models\AuthorizationStatusDetails;
|
||||
use PaypalServerSDKLib\Models\Money;
|
||||
use PaypalServerSDKLib\Models\NetworkTransactionReference;
|
||||
use PaypalServerSDKLib\Models\SellerProtection;
|
||||
use PaypalServerSdkLib\Models\Authorization;
|
||||
use PaypalServerSdkLib\Models\AuthorizationStatusDetails;
|
||||
use PaypalServerSdkLib\Models\Money;
|
||||
use PaypalServerSdkLib\Models\NetworkTransactionReference;
|
||||
use PaypalServerSdkLib\Models\SellerProtection;
|
||||
|
||||
/**
|
||||
* Builder for model Authorization
|
||||
|
||||
@@ -3,15 +3,15 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSDKLib\Models\AuthorizationStatusDetails;
|
||||
use PaypalServerSdkLib\Models\AuthorizationStatusDetails;
|
||||
|
||||
/**
|
||||
* Builder for model AuthorizationStatusDetails
|
||||
|
||||
@@ -3,16 +3,16 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSDKLib\Models\AuthorizationStatusDetails;
|
||||
use PaypalServerSDKLib\Models\AuthorizationStatusWithDetails;
|
||||
use PaypalServerSdkLib\Models\AuthorizationStatusDetails;
|
||||
use PaypalServerSdkLib\Models\AuthorizationStatusWithDetails;
|
||||
|
||||
/**
|
||||
* Builder for model AuthorizationStatusWithDetails
|
||||
|
||||
@@ -3,20 +3,20 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSDKLib\Models\AuthorizationStatusDetails;
|
||||
use PaypalServerSDKLib\Models\AuthorizationWithAdditionalData;
|
||||
use PaypalServerSDKLib\Models\Money;
|
||||
use PaypalServerSDKLib\Models\NetworkTransactionReference;
|
||||
use PaypalServerSDKLib\Models\ProcessorResponse;
|
||||
use PaypalServerSDKLib\Models\SellerProtection;
|
||||
use PaypalServerSdkLib\Models\AuthorizationStatusDetails;
|
||||
use PaypalServerSdkLib\Models\AuthorizationWithAdditionalData;
|
||||
use PaypalServerSdkLib\Models\Money;
|
||||
use PaypalServerSdkLib\Models\NetworkTransactionReference;
|
||||
use PaypalServerSdkLib\Models\ProcessorResponse;
|
||||
use PaypalServerSdkLib\Models\SellerProtection;
|
||||
|
||||
/**
|
||||
* Builder for model AuthorizationWithAdditionalData
|
||||
|
||||
@@ -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 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);
|
||||
}
|
||||
}
|
||||
@@ -3,15 +3,15 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSDKLib\Models\BancontactPaymentObject;
|
||||
use PaypalServerSdkLib\Models\BancontactPaymentObject;
|
||||
|
||||
/**
|
||||
* Builder for model BancontactPaymentObject
|
||||
|
||||
@@ -3,16 +3,16 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSDKLib\Models\BancontactPaymentRequest;
|
||||
use PaypalServerSDKLib\Models\ExperienceContext;
|
||||
use PaypalServerSdkLib\Models\BancontactPaymentRequest;
|
||||
use PaypalServerSdkLib\Models\ExperienceContext;
|
||||
|
||||
/**
|
||||
* Builder for model BancontactPaymentRequest
|
||||
|
||||
@@ -3,15 +3,15 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSDKLib\Models\BinDetails;
|
||||
use PaypalServerSdkLib\Models\BinDetails;
|
||||
|
||||
/**
|
||||
* Builder for model BinDetails
|
||||
|
||||
@@ -3,39 +3,39 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
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 blikexperience context Builder object.
|
||||
* Initializes a new blik experience 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 blikexperience context object.
|
||||
* Initializes a new blik experience 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 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);
|
||||
}
|
||||
}
|
||||
@@ -3,39 +3,39 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
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 blikone click payment object Builder object.
|
||||
* Initializes a new blik one 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 blikone click payment object object.
|
||||
* Initializes a new blik one click payment object object.
|
||||
*/
|
||||
public function build(): BLIKOneClickPaymentObject
|
||||
public function build(): BlikOneClickPaymentObject
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
@@ -3,39 +3,39 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
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 blikone click payment request Builder object.
|
||||
* Initializes a new blik one 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 blikone click payment request object.
|
||||
* Initializes a new blik one click payment request object.
|
||||
*/
|
||||
public function build(): BLIKOneClickPaymentRequest
|
||||
public function build(): BlikOneClickPaymentRequest
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
@@ -3,40 +3,40 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
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 blikpayment object Builder object.
|
||||
* Initializes a new blik payment 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 blikpayment object object.
|
||||
* Initializes a new blik payment object object.
|
||||
*/
|
||||
public function build(): BLIKPaymentObject
|
||||
public function build(): BlikPaymentObject
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
@@ -3,42 +3,42 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
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 blikpayment request Builder object.
|
||||
* Initializes a new blik payment 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 blikpayment request object.
|
||||
* Initializes a new blik payment request object.
|
||||
*/
|
||||
public function build(): BLIKPaymentRequest
|
||||
public function build(): BlikPaymentRequest
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
@@ -3,21 +3,21 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSDKLib\Models\Capture;
|
||||
use PaypalServerSDKLib\Models\CaptureStatusDetails;
|
||||
use PaypalServerSDKLib\Models\Money;
|
||||
use PaypalServerSDKLib\Models\NetworkTransactionReference;
|
||||
use PaypalServerSDKLib\Models\ProcessorResponse;
|
||||
use PaypalServerSDKLib\Models\SellerProtection;
|
||||
use PaypalServerSDKLib\Models\SellerReceivableBreakdown;
|
||||
use PaypalServerSdkLib\Models\Capture;
|
||||
use PaypalServerSdkLib\Models\CaptureStatusDetails;
|
||||
use PaypalServerSdkLib\Models\Money;
|
||||
use PaypalServerSdkLib\Models\NetworkTransactionReference;
|
||||
use PaypalServerSdkLib\Models\ProcessorResponse;
|
||||
use PaypalServerSdkLib\Models\SellerProtection;
|
||||
use PaypalServerSdkLib\Models\SellerReceivableBreakdown;
|
||||
|
||||
/**
|
||||
* Builder for model Capture
|
||||
|
||||
@@ -3,15 +3,15 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSDKLib\Models\CapturePaymentInstruction;
|
||||
use PaypalServerSdkLib\Models\CapturePaymentInstruction;
|
||||
|
||||
/**
|
||||
* Builder for model CapturePaymentInstruction
|
||||
|
||||
@@ -3,17 +3,17 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSDKLib\Models\CapturePaymentInstruction;
|
||||
use PaypalServerSDKLib\Models\CaptureRequest;
|
||||
use PaypalServerSDKLib\Models\Money;
|
||||
use PaypalServerSdkLib\Models\CapturePaymentInstruction;
|
||||
use PaypalServerSdkLib\Models\CaptureRequest;
|
||||
use PaypalServerSdkLib\Models\Money;
|
||||
|
||||
/**
|
||||
* Builder for model CaptureRequest
|
||||
|
||||
@@ -3,15 +3,15 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSDKLib\Models\CaptureStatusDetails;
|
||||
use PaypalServerSdkLib\Models\CaptureStatusDetails;
|
||||
|
||||
/**
|
||||
* Builder for model CaptureStatusDetails
|
||||
|
||||
@@ -3,16 +3,16 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSDKLib\Models\CaptureStatusDetails;
|
||||
use PaypalServerSDKLib\Models\CaptureStatusWithDetails;
|
||||
use PaypalServerSdkLib\Models\CaptureStatusDetails;
|
||||
use PaypalServerSdkLib\Models\CaptureStatusWithDetails;
|
||||
|
||||
/**
|
||||
* Builder for model CaptureStatusWithDetails
|
||||
|
||||
@@ -3,23 +3,23 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSDKLib\Models\CapturedPayment;
|
||||
use PaypalServerSDKLib\Models\CaptureStatusDetails;
|
||||
use PaypalServerSDKLib\Models\Money;
|
||||
use PaypalServerSDKLib\Models\NetworkTransactionReference;
|
||||
use PaypalServerSDKLib\Models\Payee;
|
||||
use PaypalServerSDKLib\Models\PaymentSupplementaryData;
|
||||
use PaypalServerSDKLib\Models\ProcessorResponse;
|
||||
use PaypalServerSDKLib\Models\SellerProtection;
|
||||
use PaypalServerSDKLib\Models\SellerReceivableBreakdown;
|
||||
use PaypalServerSdkLib\Models\CapturedPayment;
|
||||
use PaypalServerSdkLib\Models\CaptureStatusDetails;
|
||||
use PaypalServerSdkLib\Models\Money;
|
||||
use PaypalServerSdkLib\Models\NetworkTransactionReference;
|
||||
use PaypalServerSdkLib\Models\Payee;
|
||||
use PaypalServerSdkLib\Models\PaymentSupplementaryData;
|
||||
use PaypalServerSdkLib\Models\ProcessorResponse;
|
||||
use PaypalServerSdkLib\Models\SellerProtection;
|
||||
use PaypalServerSdkLib\Models\SellerReceivableBreakdown;
|
||||
|
||||
/**
|
||||
* Builder for model CapturedPayment
|
||||
|
||||
@@ -3,18 +3,18 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSDKLib\Models\CardAttributes;
|
||||
use PaypalServerSDKLib\Models\CardCustomerInformation;
|
||||
use PaypalServerSDKLib\Models\CardVerification;
|
||||
use PaypalServerSDKLib\Models\VaultInstructionBase;
|
||||
use PaypalServerSdkLib\Models\CardAttributes;
|
||||
use PaypalServerSdkLib\Models\CardCustomerInformation;
|
||||
use PaypalServerSdkLib\Models\CardVerification;
|
||||
use PaypalServerSdkLib\Models\VaultInstructionBase;
|
||||
|
||||
/**
|
||||
* Builder for model CardAttributes
|
||||
|
||||
@@ -3,16 +3,16 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSDKLib\Models\CardAttributesResponse;
|
||||
use PaypalServerSDKLib\Models\CardVaultResponse;
|
||||
use PaypalServerSdkLib\Models\CardAttributesResponse;
|
||||
use PaypalServerSdkLib\Models\CardVaultResponse;
|
||||
|
||||
/**
|
||||
* Builder for model CardAttributesResponse
|
||||
|
||||
@@ -3,16 +3,16 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSDKLib\Models\CardAuthenticationResponse;
|
||||
use PaypalServerSDKLib\Models\ThreeDSecureAuthenticationResponse;
|
||||
use PaypalServerSdkLib\Models\CardAuthenticationResponse;
|
||||
use PaypalServerSdkLib\Models\ThreeDSecureAuthenticationResponse;
|
||||
|
||||
/**
|
||||
* Builder for model CardAuthenticationResponse
|
||||
|
||||
@@ -3,16 +3,16 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSDKLib\Models\CardCustomerInformation;
|
||||
use PaypalServerSDKLib\Models\PhoneWithType;
|
||||
use PaypalServerSdkLib\Models\CardCustomerInformation;
|
||||
use PaypalServerSdkLib\Models\PhoneWithType;
|
||||
|
||||
/**
|
||||
* Builder for model CardCustomerInformation
|
||||
|
||||
@@ -3,15 +3,15 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
* PaypalServerSdkLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
namespace PaypalServerSdkLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSDKLib\Models\CardExperienceContext;
|
||||
use PaypalServerSdkLib\Models\CardExperienceContext;
|
||||
|
||||
/**
|
||||
* Builder for model CardExperienceContext
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user