forked from LiveCarta/PayPal-PHP-Server-SDK
Beta Release 0.5.0 (#3)
* Automated commit message * Automated commit message * Automated commit message * Automated commit message --------- Co-authored-by: PayPalServerSDKs <server-sdks@paypal.com>
This commit is contained in:
66
src/Models/Builders/ActivityTimestampsBuilder.php
Normal file
66
src/Models/Builders/ActivityTimestampsBuilder.php
Normal file
@@ -0,0 +1,66 @@
|
||||
<?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\ActivityTimestamps;
|
||||
|
||||
/**
|
||||
* Builder for model ActivityTimestamps
|
||||
*
|
||||
* @see ActivityTimestamps
|
||||
*/
|
||||
class ActivityTimestampsBuilder
|
||||
{
|
||||
/**
|
||||
* @var ActivityTimestamps
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(ActivityTimestamps $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new activity timestamps Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new ActivityTimestamps());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets create time field.
|
||||
*/
|
||||
public function createTime(?string $value): self
|
||||
{
|
||||
$this->instance->setCreateTime($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets update time field.
|
||||
*/
|
||||
public function updateTime(?string $value): self
|
||||
{
|
||||
$this->instance->setUpdateTime($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new activity timestamps object.
|
||||
*/
|
||||
public function build(): ActivityTimestamps
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
93
src/Models/Builders/AddressBuilder.php
Normal file
93
src/Models/Builders/AddressBuilder.php
Normal file
@@ -0,0 +1,93 @@
|
||||
<?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\Address;
|
||||
|
||||
/**
|
||||
* Builder for model Address
|
||||
*
|
||||
* @see Address
|
||||
*/
|
||||
class AddressBuilder
|
||||
{
|
||||
/**
|
||||
* @var Address
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(Address $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new address Builder object.
|
||||
*/
|
||||
public static function init(string $countryCode): self
|
||||
{
|
||||
return new self(new Address($countryCode));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets address line 1 field.
|
||||
*/
|
||||
public function addressLine1(?string $value): self
|
||||
{
|
||||
$this->instance->setAddressLine1($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets address line 2 field.
|
||||
*/
|
||||
public function addressLine2(?string $value): self
|
||||
{
|
||||
$this->instance->setAddressLine2($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets admin area 2 field.
|
||||
*/
|
||||
public function adminArea2(?string $value): self
|
||||
{
|
||||
$this->instance->setAdminArea2($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets admin area 1 field.
|
||||
*/
|
||||
public function adminArea1(?string $value): self
|
||||
{
|
||||
$this->instance->setAdminArea1($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets postal code field.
|
||||
*/
|
||||
public function postalCode(?string $value): self
|
||||
{
|
||||
$this->instance->setPostalCode($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new address object.
|
||||
*/
|
||||
public function build(): Address
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
140
src/Models/Builders/AddressDetailsBuilder.php
Normal file
140
src/Models/Builders/AddressDetailsBuilder.php
Normal file
@@ -0,0 +1,140 @@
|
||||
<?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\AddressDetails;
|
||||
use PaypalServerSDKLib\Models\Name;
|
||||
use PaypalServerSDKLib\Models\Phone;
|
||||
|
||||
/**
|
||||
* Builder for model AddressDetails
|
||||
*
|
||||
* @see AddressDetails
|
||||
*/
|
||||
class AddressDetailsBuilder
|
||||
{
|
||||
/**
|
||||
* @var AddressDetails
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(AddressDetails $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new address details Builder object.
|
||||
*/
|
||||
public static function init(string $countryCode): self
|
||||
{
|
||||
return new self(new AddressDetails($countryCode));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets address line 1 field.
|
||||
*/
|
||||
public function addressLine1(?string $value): self
|
||||
{
|
||||
$this->instance->setAddressLine1($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets address line 2 field.
|
||||
*/
|
||||
public function addressLine2(?string $value): self
|
||||
{
|
||||
$this->instance->setAddressLine2($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets admin area 2 field.
|
||||
*/
|
||||
public function adminArea2(?string $value): self
|
||||
{
|
||||
$this->instance->setAdminArea2($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets admin area 1 field.
|
||||
*/
|
||||
public function adminArea1(?string $value): self
|
||||
{
|
||||
$this->instance->setAdminArea1($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets postal code field.
|
||||
*/
|
||||
public function postalCode(?string $value): self
|
||||
{
|
||||
$this->instance->setPostalCode($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets name field.
|
||||
*/
|
||||
public function name(?Name $value): self
|
||||
{
|
||||
$this->instance->setName($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets id field.
|
||||
*/
|
||||
public function id(?string $value): self
|
||||
{
|
||||
$this->instance->setId($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets company field.
|
||||
*/
|
||||
public function company(?string $value): self
|
||||
{
|
||||
$this->instance->setCompany($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets phone field.
|
||||
*/
|
||||
public function phone(?string $value): self
|
||||
{
|
||||
$this->instance->setPhone($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets phone number field.
|
||||
*/
|
||||
public function phoneNumber(?Phone $value): self
|
||||
{
|
||||
$this->instance->setPhoneNumber($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new address details object.
|
||||
*/
|
||||
public function build(): AddressDetails
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
112
src/Models/Builders/AmountBreakdownBuilder.php
Normal file
112
src/Models/Builders/AmountBreakdownBuilder.php
Normal file
@@ -0,0 +1,112 @@
|
||||
<?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\AmountBreakdown;
|
||||
use PaypalServerSDKLib\Models\Money;
|
||||
|
||||
/**
|
||||
* Builder for model AmountBreakdown
|
||||
*
|
||||
* @see AmountBreakdown
|
||||
*/
|
||||
class AmountBreakdownBuilder
|
||||
{
|
||||
/**
|
||||
* @var AmountBreakdown
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(AmountBreakdown $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new amount breakdown Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new AmountBreakdown());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets item total field.
|
||||
*/
|
||||
public function itemTotal(?Money $value): self
|
||||
{
|
||||
$this->instance->setItemTotal($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets shipping field.
|
||||
*/
|
||||
public function shipping(?Money $value): self
|
||||
{
|
||||
$this->instance->setShipping($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets handling field.
|
||||
*/
|
||||
public function handling(?Money $value): self
|
||||
{
|
||||
$this->instance->setHandling($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets tax total field.
|
||||
*/
|
||||
public function taxTotal(?Money $value): self
|
||||
{
|
||||
$this->instance->setTaxTotal($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets insurance field.
|
||||
*/
|
||||
public function insurance(?Money $value): self
|
||||
{
|
||||
$this->instance->setInsurance($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets shipping discount field.
|
||||
*/
|
||||
public function shippingDiscount(?Money $value): self
|
||||
{
|
||||
$this->instance->setShippingDiscount($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets discount field.
|
||||
*/
|
||||
public function discount(?Money $value): self
|
||||
{
|
||||
$this->instance->setDiscount($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new amount breakdown object.
|
||||
*/
|
||||
public function build(): AmountBreakdown
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
58
src/Models/Builders/AmountWithBreakdownBuilder.php
Normal file
58
src/Models/Builders/AmountWithBreakdownBuilder.php
Normal file
@@ -0,0 +1,58 @@
|
||||
<?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\AmountBreakdown;
|
||||
use PaypalServerSDKLib\Models\AmountWithBreakdown;
|
||||
|
||||
/**
|
||||
* Builder for model AmountWithBreakdown
|
||||
*
|
||||
* @see AmountWithBreakdown
|
||||
*/
|
||||
class AmountWithBreakdownBuilder
|
||||
{
|
||||
/**
|
||||
* @var AmountWithBreakdown
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(AmountWithBreakdown $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new amount with breakdown Builder object.
|
||||
*/
|
||||
public static function init(string $currencyCode, string $value): self
|
||||
{
|
||||
return new self(new AmountWithBreakdown($currencyCode, $value));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets breakdown field.
|
||||
*/
|
||||
public function breakdown(?AmountBreakdown $value): self
|
||||
{
|
||||
$this->instance->setBreakdown($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new amount with breakdown object.
|
||||
*/
|
||||
public function build(): AmountWithBreakdown
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
68
src/Models/Builders/ApplePayAttributesBuilder.php
Normal file
68
src/Models/Builders/ApplePayAttributesBuilder.php
Normal file
@@ -0,0 +1,68 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSDKLib\Models\ApplePayAttributes;
|
||||
use PaypalServerSDKLib\Models\CustomerInformation;
|
||||
use PaypalServerSDKLib\Models\VaultInstruction;
|
||||
|
||||
/**
|
||||
* Builder for model ApplePayAttributes
|
||||
*
|
||||
* @see ApplePayAttributes
|
||||
*/
|
||||
class ApplePayAttributesBuilder
|
||||
{
|
||||
/**
|
||||
* @var ApplePayAttributes
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(ApplePayAttributes $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new apple pay attributes Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new ApplePayAttributes());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets customer field.
|
||||
*/
|
||||
public function customer(?CustomerInformation $value): self
|
||||
{
|
||||
$this->instance->setCustomer($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets vault field.
|
||||
*/
|
||||
public function vault(?VaultInstruction $value): self
|
||||
{
|
||||
$this->instance->setVault($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new apple pay attributes object.
|
||||
*/
|
||||
public function build(): ApplePayAttributes
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
58
src/Models/Builders/ApplePayAttributesResponseBuilder.php
Normal file
58
src/Models/Builders/ApplePayAttributesResponseBuilder.php
Normal file
@@ -0,0 +1,58 @@
|
||||
<?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\ApplePayAttributesResponse;
|
||||
use PaypalServerSDKLib\Models\VaultResponse;
|
||||
|
||||
/**
|
||||
* Builder for model ApplePayAttributesResponse
|
||||
*
|
||||
* @see ApplePayAttributesResponse
|
||||
*/
|
||||
class ApplePayAttributesResponseBuilder
|
||||
{
|
||||
/**
|
||||
* @var ApplePayAttributesResponse
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(ApplePayAttributesResponse $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new apple pay attributes response Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new ApplePayAttributesResponse());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets vault field.
|
||||
*/
|
||||
public function vault(?VaultResponse $value): self
|
||||
{
|
||||
$this->instance->setVault($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new apple pay attributes response object.
|
||||
*/
|
||||
public function build(): ApplePayAttributesResponse
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
94
src/Models/Builders/ApplePayCardBuilder.php
Normal file
94
src/Models/Builders/ApplePayCardBuilder.php
Normal file
@@ -0,0 +1,94 @@
|
||||
<?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\Address;
|
||||
use PaypalServerSDKLib\Models\ApplePayCard;
|
||||
|
||||
/**
|
||||
* Builder for model ApplePayCard
|
||||
*
|
||||
* @see ApplePayCard
|
||||
*/
|
||||
class ApplePayCardBuilder
|
||||
{
|
||||
/**
|
||||
* @var ApplePayCard
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(ApplePayCard $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new apple pay card Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new ApplePayCard());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets name field.
|
||||
*/
|
||||
public function name(?string $value): self
|
||||
{
|
||||
$this->instance->setName($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets last digits field.
|
||||
*/
|
||||
public function lastDigits(?string $value): self
|
||||
{
|
||||
$this->instance->setLastDigits($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets type field.
|
||||
*/
|
||||
public function type(?string $value): self
|
||||
{
|
||||
$this->instance->setType($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets brand field.
|
||||
*/
|
||||
public function brand(?string $value): self
|
||||
{
|
||||
$this->instance->setBrand($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets billing address field.
|
||||
*/
|
||||
public function billingAddress(?Address $value): self
|
||||
{
|
||||
$this->instance->setBillingAddress($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new apple pay card object.
|
||||
*/
|
||||
public function build(): ApplePayCard
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
161
src/Models/Builders/ApplePayCardResponseBuilder.php
Normal file
161
src/Models/Builders/ApplePayCardResponseBuilder.php
Normal file
@@ -0,0 +1,161 @@
|
||||
<?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\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
|
||||
*
|
||||
* @see ApplePayCardResponse
|
||||
*/
|
||||
class ApplePayCardResponseBuilder
|
||||
{
|
||||
/**
|
||||
* @var ApplePayCardResponse
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(ApplePayCardResponse $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new apple pay card response Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new ApplePayCardResponse());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets name field.
|
||||
*/
|
||||
public function name(?string $value): self
|
||||
{
|
||||
$this->instance->setName($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets last digits field.
|
||||
*/
|
||||
public function lastDigits(?string $value): self
|
||||
{
|
||||
$this->instance->setLastDigits($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets brand field.
|
||||
*/
|
||||
public function brand(?string $value): self
|
||||
{
|
||||
$this->instance->setBrand($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets available networks field.
|
||||
*/
|
||||
public function availableNetworks(?array $value): self
|
||||
{
|
||||
$this->instance->setAvailableNetworks($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets type field.
|
||||
*/
|
||||
public function type(?string $value): self
|
||||
{
|
||||
$this->instance->setType($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets authentication result field.
|
||||
*/
|
||||
public function authenticationResult(?AuthenticationResponse $value): self
|
||||
{
|
||||
$this->instance->setAuthenticationResult($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets attributes field.
|
||||
*/
|
||||
public function attributes(?CardAttributesResponse $value): self
|
||||
{
|
||||
$this->instance->setAttributes($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets from request field.
|
||||
*/
|
||||
public function fromRequest(?CardFromRequest $value): self
|
||||
{
|
||||
$this->instance->setFromRequest($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets expiry field.
|
||||
*/
|
||||
public function expiry(?string $value): self
|
||||
{
|
||||
$this->instance->setExpiry($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bin details field.
|
||||
*/
|
||||
public function binDetails(?BinDetails $value): self
|
||||
{
|
||||
$this->instance->setBinDetails($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets billing address field.
|
||||
*/
|
||||
public function billingAddress(?Address $value): self
|
||||
{
|
||||
$this->instance->setBillingAddress($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets country code field.
|
||||
*/
|
||||
public function countryCode(?string $value): self
|
||||
{
|
||||
$this->instance->setCountryCode($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new apple pay card response object.
|
||||
*/
|
||||
public function build(): ApplePayCardResponse
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
87
src/Models/Builders/ApplePayDecryptedTokenDataBuilder.php
Normal file
87
src/Models/Builders/ApplePayDecryptedTokenDataBuilder.php
Normal file
@@ -0,0 +1,87 @@
|
||||
<?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\ApplePayDecryptedTokenData;
|
||||
use PaypalServerSDKLib\Models\ApplePayPaymentData;
|
||||
use PaypalServerSDKLib\Models\ApplePayTokenizedCard;
|
||||
use PaypalServerSDKLib\Models\Money;
|
||||
|
||||
/**
|
||||
* Builder for model ApplePayDecryptedTokenData
|
||||
*
|
||||
* @see ApplePayDecryptedTokenData
|
||||
*/
|
||||
class ApplePayDecryptedTokenDataBuilder
|
||||
{
|
||||
/**
|
||||
* @var ApplePayDecryptedTokenData
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(ApplePayDecryptedTokenData $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new apple pay decrypted token data Builder object.
|
||||
*/
|
||||
public static function init(ApplePayTokenizedCard $tokenizedCard): self
|
||||
{
|
||||
return new self(new ApplePayDecryptedTokenData($tokenizedCard));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets transaction amount field.
|
||||
*/
|
||||
public function transactionAmount(?Money $value): self
|
||||
{
|
||||
$this->instance->setTransactionAmount($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets device manufacturer id field.
|
||||
*/
|
||||
public function deviceManufacturerId(?string $value): self
|
||||
{
|
||||
$this->instance->setDeviceManufacturerId($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payment data type field.
|
||||
*/
|
||||
public function paymentDataType(?string $value): self
|
||||
{
|
||||
$this->instance->setPaymentDataType($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payment data field.
|
||||
*/
|
||||
public function paymentData(?ApplePayPaymentData $value): self
|
||||
{
|
||||
$this->instance->setPaymentData($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new apple pay decrypted token data object.
|
||||
*/
|
||||
public function build(): ApplePayDecryptedTokenData
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
84
src/Models/Builders/ApplePayPaymentDataBuilder.php
Normal file
84
src/Models/Builders/ApplePayPaymentDataBuilder.php
Normal file
@@ -0,0 +1,84 @@
|
||||
<?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\ApplePayPaymentData;
|
||||
|
||||
/**
|
||||
* Builder for model ApplePayPaymentData
|
||||
*
|
||||
* @see ApplePayPaymentData
|
||||
*/
|
||||
class ApplePayPaymentDataBuilder
|
||||
{
|
||||
/**
|
||||
* @var ApplePayPaymentData
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(ApplePayPaymentData $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new apple pay payment data Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new ApplePayPaymentData());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets cryptogram field.
|
||||
*/
|
||||
public function cryptogram(?string $value): self
|
||||
{
|
||||
$this->instance->setCryptogram($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets eci indicator field.
|
||||
*/
|
||||
public function eciIndicator(?string $value): self
|
||||
{
|
||||
$this->instance->setEciIndicator($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets emv data field.
|
||||
*/
|
||||
public function emvData(?string $value): self
|
||||
{
|
||||
$this->instance->setEmvData($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets pin field.
|
||||
*/
|
||||
public function pin(?string $value): self
|
||||
{
|
||||
$this->instance->setPin($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new apple pay payment data object.
|
||||
*/
|
||||
public function build(): ApplePayPaymentData
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
114
src/Models/Builders/ApplePayPaymentObjectBuilder.php
Normal file
114
src/Models/Builders/ApplePayPaymentObjectBuilder.php
Normal file
@@ -0,0 +1,114 @@
|
||||
<?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\ApplePayAttributesResponse;
|
||||
use PaypalServerSDKLib\Models\ApplePayCardResponse;
|
||||
use PaypalServerSDKLib\Models\ApplePayPaymentObject;
|
||||
use PaypalServerSDKLib\Models\PhoneNumber;
|
||||
|
||||
/**
|
||||
* Builder for model ApplePayPaymentObject
|
||||
*
|
||||
* @see ApplePayPaymentObject
|
||||
*/
|
||||
class ApplePayPaymentObjectBuilder
|
||||
{
|
||||
/**
|
||||
* @var ApplePayPaymentObject
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(ApplePayPaymentObject $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new apple pay payment object Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new ApplePayPaymentObject());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets id field.
|
||||
*/
|
||||
public function id(?string $value): self
|
||||
{
|
||||
$this->instance->setId($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets token field.
|
||||
*/
|
||||
public function token(?string $value): self
|
||||
{
|
||||
$this->instance->setToken($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets name field.
|
||||
*/
|
||||
public function name(?string $value): self
|
||||
{
|
||||
$this->instance->setName($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets email address field.
|
||||
*/
|
||||
public function emailAddress(?string $value): self
|
||||
{
|
||||
$this->instance->setEmailAddress($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets phone number field.
|
||||
*/
|
||||
public function phoneNumber(?PhoneNumber $value): self
|
||||
{
|
||||
$this->instance->setPhoneNumber($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets card field.
|
||||
*/
|
||||
public function card(?ApplePayCardResponse $value): self
|
||||
{
|
||||
$this->instance->setCard($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets attributes field.
|
||||
*/
|
||||
public function attributes(?ApplePayAttributesResponse $value): self
|
||||
{
|
||||
$this->instance->setAttributes($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new apple pay payment object object.
|
||||
*/
|
||||
public function build(): ApplePayPaymentObject
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
58
src/Models/Builders/ApplePayPaymentTokenBuilder.php
Normal file
58
src/Models/Builders/ApplePayPaymentTokenBuilder.php
Normal file
@@ -0,0 +1,58 @@
|
||||
<?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\ApplePayCard;
|
||||
use PaypalServerSDKLib\Models\ApplePayPaymentToken;
|
||||
|
||||
/**
|
||||
* Builder for model ApplePayPaymentToken
|
||||
*
|
||||
* @see ApplePayPaymentToken
|
||||
*/
|
||||
class ApplePayPaymentTokenBuilder
|
||||
{
|
||||
/**
|
||||
* @var ApplePayPaymentToken
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(ApplePayPaymentToken $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new apple pay payment token Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new ApplePayPaymentToken());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets card field.
|
||||
*/
|
||||
public function card(?ApplePayCard $value): self
|
||||
{
|
||||
$this->instance->setCard($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new apple pay payment token object.
|
||||
*/
|
||||
public function build(): ApplePayPaymentToken
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
124
src/Models/Builders/ApplePayRequestBuilder.php
Normal file
124
src/Models/Builders/ApplePayRequestBuilder.php
Normal file
@@ -0,0 +1,124 @@
|
||||
<?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\ApplePayAttributes;
|
||||
use PaypalServerSDKLib\Models\ApplePayDecryptedTokenData;
|
||||
use PaypalServerSDKLib\Models\ApplePayRequest;
|
||||
use PaypalServerSDKLib\Models\CardStoredCredential;
|
||||
use PaypalServerSDKLib\Models\PhoneNumber;
|
||||
|
||||
/**
|
||||
* Builder for model ApplePayRequest
|
||||
*
|
||||
* @see ApplePayRequest
|
||||
*/
|
||||
class ApplePayRequestBuilder
|
||||
{
|
||||
/**
|
||||
* @var ApplePayRequest
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(ApplePayRequest $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new apple pay request Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new ApplePayRequest());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets id field.
|
||||
*/
|
||||
public function id(?string $value): self
|
||||
{
|
||||
$this->instance->setId($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets name field.
|
||||
*/
|
||||
public function name(?string $value): self
|
||||
{
|
||||
$this->instance->setName($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets email address field.
|
||||
*/
|
||||
public function emailAddress(?string $value): self
|
||||
{
|
||||
$this->instance->setEmailAddress($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets phone number field.
|
||||
*/
|
||||
public function phoneNumber(?PhoneNumber $value): self
|
||||
{
|
||||
$this->instance->setPhoneNumber($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets decrypted token field.
|
||||
*/
|
||||
public function decryptedToken(?ApplePayDecryptedTokenData $value): self
|
||||
{
|
||||
$this->instance->setDecryptedToken($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets stored credential field.
|
||||
*/
|
||||
public function storedCredential(?CardStoredCredential $value): self
|
||||
{
|
||||
$this->instance->setStoredCredential($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets vault id field.
|
||||
*/
|
||||
public function vaultId(?string $value): self
|
||||
{
|
||||
$this->instance->setVaultId($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets attributes field.
|
||||
*/
|
||||
public function attributes(?ApplePayAttributes $value): self
|
||||
{
|
||||
$this->instance->setAttributes($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new apple pay request object.
|
||||
*/
|
||||
public function build(): ApplePayRequest
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
112
src/Models/Builders/ApplePayTokenizedCardBuilder.php
Normal file
112
src/Models/Builders/ApplePayTokenizedCardBuilder.php
Normal file
@@ -0,0 +1,112 @@
|
||||
<?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\Address;
|
||||
use PaypalServerSDKLib\Models\ApplePayTokenizedCard;
|
||||
|
||||
/**
|
||||
* Builder for model ApplePayTokenizedCard
|
||||
*
|
||||
* @see ApplePayTokenizedCard
|
||||
*/
|
||||
class ApplePayTokenizedCardBuilder
|
||||
{
|
||||
/**
|
||||
* @var ApplePayTokenizedCard
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(ApplePayTokenizedCard $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new apple pay tokenized card Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new ApplePayTokenizedCard());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets name field.
|
||||
*/
|
||||
public function name(?string $value): self
|
||||
{
|
||||
$this->instance->setName($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets number field.
|
||||
*/
|
||||
public function number(?string $value): self
|
||||
{
|
||||
$this->instance->setNumber($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets expiry field.
|
||||
*/
|
||||
public function expiry(?string $value): self
|
||||
{
|
||||
$this->instance->setExpiry($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets card type field.
|
||||
*/
|
||||
public function cardType(?string $value): self
|
||||
{
|
||||
$this->instance->setCardType($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets type field.
|
||||
*/
|
||||
public function type(?string $value): self
|
||||
{
|
||||
$this->instance->setType($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets brand field.
|
||||
*/
|
||||
public function brand(?string $value): self
|
||||
{
|
||||
$this->instance->setBrand($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets billing address field.
|
||||
*/
|
||||
public function billingAddress(?Address $value): self
|
||||
{
|
||||
$this->instance->setBillingAddress($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new apple pay tokenized card object.
|
||||
*/
|
||||
public function build(): ApplePayTokenizedCard
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
66
src/Models/Builders/AssuranceDetailsBuilder.php
Normal file
66
src/Models/Builders/AssuranceDetailsBuilder.php
Normal file
@@ -0,0 +1,66 @@
|
||||
<?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\AssuranceDetails;
|
||||
|
||||
/**
|
||||
* Builder for model AssuranceDetails
|
||||
*
|
||||
* @see AssuranceDetails
|
||||
*/
|
||||
class AssuranceDetailsBuilder
|
||||
{
|
||||
/**
|
||||
* @var AssuranceDetails
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(AssuranceDetails $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new assurance details Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new AssuranceDetails());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets account verified field.
|
||||
*/
|
||||
public function accountVerified(?bool $value): self
|
||||
{
|
||||
$this->instance->setAccountVerified($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets card holder authenticated field.
|
||||
*/
|
||||
public function cardHolderAuthenticated(?bool $value): self
|
||||
{
|
||||
$this->instance->setCardHolderAuthenticated($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new assurance details object.
|
||||
*/
|
||||
public function build(): AssuranceDetails
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
67
src/Models/Builders/AuthenticationResponseBuilder.php
Normal file
67
src/Models/Builders/AuthenticationResponseBuilder.php
Normal file
@@ -0,0 +1,67 @@
|
||||
<?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\AuthenticationResponse;
|
||||
use PaypalServerSDKLib\Models\ThreeDSecureAuthenticationResponse;
|
||||
|
||||
/**
|
||||
* Builder for model AuthenticationResponse
|
||||
*
|
||||
* @see AuthenticationResponse
|
||||
*/
|
||||
class AuthenticationResponseBuilder
|
||||
{
|
||||
/**
|
||||
* @var AuthenticationResponse
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(AuthenticationResponse $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new authentication response Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new AuthenticationResponse());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets liability shift field.
|
||||
*/
|
||||
public function liabilityShift(?string $value): self
|
||||
{
|
||||
$this->instance->setLiabilityShift($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets three d secure field.
|
||||
*/
|
||||
public function threeDSecure(?ThreeDSecureAuthenticationResponse $value): self
|
||||
{
|
||||
$this->instance->setThreeDSecure($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new authentication response object.
|
||||
*/
|
||||
public function build(): AuthenticationResponse
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
160
src/Models/Builders/AuthorizationBuilder.php
Normal file
160
src/Models/Builders/AuthorizationBuilder.php
Normal file
@@ -0,0 +1,160 @@
|
||||
<?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\Authorization;
|
||||
use PaypalServerSDKLib\Models\AuthorizationStatusDetails;
|
||||
use PaypalServerSDKLib\Models\Money;
|
||||
use PaypalServerSDKLib\Models\NetworkTransactionReference;
|
||||
use PaypalServerSDKLib\Models\SellerProtection;
|
||||
|
||||
/**
|
||||
* Builder for model Authorization
|
||||
*
|
||||
* @see Authorization
|
||||
*/
|
||||
class AuthorizationBuilder
|
||||
{
|
||||
/**
|
||||
* @var Authorization
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(Authorization $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new authorization Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new Authorization());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets status field.
|
||||
*/
|
||||
public function status(?string $value): self
|
||||
{
|
||||
$this->instance->setStatus($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets status details field.
|
||||
*/
|
||||
public function statusDetails(?AuthorizationStatusDetails $value): self
|
||||
{
|
||||
$this->instance->setStatusDetails($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets id field.
|
||||
*/
|
||||
public function id(?string $value): self
|
||||
{
|
||||
$this->instance->setId($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets amount field.
|
||||
*/
|
||||
public function amount(?Money $value): self
|
||||
{
|
||||
$this->instance->setAmount($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets invoice id field.
|
||||
*/
|
||||
public function invoiceId(?string $value): self
|
||||
{
|
||||
$this->instance->setInvoiceId($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets custom id field.
|
||||
*/
|
||||
public function customId(?string $value): self
|
||||
{
|
||||
$this->instance->setCustomId($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets network transaction reference field.
|
||||
*/
|
||||
public function networkTransactionReference(?NetworkTransactionReference $value): self
|
||||
{
|
||||
$this->instance->setNetworkTransactionReference($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets seller protection field.
|
||||
*/
|
||||
public function sellerProtection(?SellerProtection $value): self
|
||||
{
|
||||
$this->instance->setSellerProtection($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets expiration time field.
|
||||
*/
|
||||
public function expirationTime(?string $value): self
|
||||
{
|
||||
$this->instance->setExpirationTime($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets links field.
|
||||
*/
|
||||
public function links(?array $value): self
|
||||
{
|
||||
$this->instance->setLinks($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets create time field.
|
||||
*/
|
||||
public function createTime(?string $value): self
|
||||
{
|
||||
$this->instance->setCreateTime($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets update time field.
|
||||
*/
|
||||
public function updateTime(?string $value): self
|
||||
{
|
||||
$this->instance->setUpdateTime($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new authorization object.
|
||||
*/
|
||||
public function build(): Authorization
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
57
src/Models/Builders/AuthorizationStatusDetailsBuilder.php
Normal file
57
src/Models/Builders/AuthorizationStatusDetailsBuilder.php
Normal file
@@ -0,0 +1,57 @@
|
||||
<?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\AuthorizationStatusDetails;
|
||||
|
||||
/**
|
||||
* Builder for model AuthorizationStatusDetails
|
||||
*
|
||||
* @see AuthorizationStatusDetails
|
||||
*/
|
||||
class AuthorizationStatusDetailsBuilder
|
||||
{
|
||||
/**
|
||||
* @var AuthorizationStatusDetails
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(AuthorizationStatusDetails $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new authorization status details Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new AuthorizationStatusDetails());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets reason field.
|
||||
*/
|
||||
public function reason(?string $value): self
|
||||
{
|
||||
$this->instance->setReason($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new authorization status details object.
|
||||
*/
|
||||
public function build(): AuthorizationStatusDetails
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
<?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\AuthorizationStatusDetails;
|
||||
use PaypalServerSDKLib\Models\AuthorizationStatusWithDetails;
|
||||
|
||||
/**
|
||||
* Builder for model AuthorizationStatusWithDetails
|
||||
*
|
||||
* @see AuthorizationStatusWithDetails
|
||||
*/
|
||||
class AuthorizationStatusWithDetailsBuilder
|
||||
{
|
||||
/**
|
||||
* @var AuthorizationStatusWithDetails
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(AuthorizationStatusWithDetails $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new authorization status with details Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new AuthorizationStatusWithDetails());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets status field.
|
||||
*/
|
||||
public function status(?string $value): self
|
||||
{
|
||||
$this->instance->setStatus($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets status details field.
|
||||
*/
|
||||
public function statusDetails(?AuthorizationStatusDetails $value): self
|
||||
{
|
||||
$this->instance->setStatusDetails($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new authorization status with details object.
|
||||
*/
|
||||
public function build(): AuthorizationStatusWithDetails
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
170
src/Models/Builders/AuthorizationWithAdditionalDataBuilder.php
Normal file
170
src/Models/Builders/AuthorizationWithAdditionalDataBuilder.php
Normal file
@@ -0,0 +1,170 @@
|
||||
<?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\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
|
||||
*
|
||||
* @see AuthorizationWithAdditionalData
|
||||
*/
|
||||
class AuthorizationWithAdditionalDataBuilder
|
||||
{
|
||||
/**
|
||||
* @var AuthorizationWithAdditionalData
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(AuthorizationWithAdditionalData $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new authorization with additional data Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new AuthorizationWithAdditionalData());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets status field.
|
||||
*/
|
||||
public function status(?string $value): self
|
||||
{
|
||||
$this->instance->setStatus($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets status details field.
|
||||
*/
|
||||
public function statusDetails(?AuthorizationStatusDetails $value): self
|
||||
{
|
||||
$this->instance->setStatusDetails($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets id field.
|
||||
*/
|
||||
public function id(?string $value): self
|
||||
{
|
||||
$this->instance->setId($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets amount field.
|
||||
*/
|
||||
public function amount(?Money $value): self
|
||||
{
|
||||
$this->instance->setAmount($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets invoice id field.
|
||||
*/
|
||||
public function invoiceId(?string $value): self
|
||||
{
|
||||
$this->instance->setInvoiceId($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets custom id field.
|
||||
*/
|
||||
public function customId(?string $value): self
|
||||
{
|
||||
$this->instance->setCustomId($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets network transaction reference field.
|
||||
*/
|
||||
public function networkTransactionReference(?NetworkTransactionReference $value): self
|
||||
{
|
||||
$this->instance->setNetworkTransactionReference($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets seller protection field.
|
||||
*/
|
||||
public function sellerProtection(?SellerProtection $value): self
|
||||
{
|
||||
$this->instance->setSellerProtection($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets expiration time field.
|
||||
*/
|
||||
public function expirationTime(?string $value): self
|
||||
{
|
||||
$this->instance->setExpirationTime($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets links field.
|
||||
*/
|
||||
public function links(?array $value): self
|
||||
{
|
||||
$this->instance->setLinks($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets create time field.
|
||||
*/
|
||||
public function createTime(?string $value): self
|
||||
{
|
||||
$this->instance->setCreateTime($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets update time field.
|
||||
*/
|
||||
public function updateTime(?string $value): self
|
||||
{
|
||||
$this->instance->setUpdateTime($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets processor response field.
|
||||
*/
|
||||
public function processorResponse(?ProcessorResponse $value): self
|
||||
{
|
||||
$this->instance->setProcessorResponse($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new authorization with additional data object.
|
||||
*/
|
||||
public function build(): AuthorizationWithAdditionalData
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
111
src/Models/Builders/BLIKExperienceContextBuilder.php
Normal file
111
src/Models/Builders/BLIKExperienceContextBuilder.php
Normal file
@@ -0,0 +1,111 @@
|
||||
<?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\BLIKExperienceContext;
|
||||
|
||||
/**
|
||||
* Builder for model BLIKExperienceContext
|
||||
*
|
||||
* @see BLIKExperienceContext
|
||||
*/
|
||||
class BLIKExperienceContextBuilder
|
||||
{
|
||||
/**
|
||||
* @var BLIKExperienceContext
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(BLIKExperienceContext $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new blikexperience context Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new BLIKExperienceContext());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets brand name field.
|
||||
*/
|
||||
public function brandName(?string $value): self
|
||||
{
|
||||
$this->instance->setBrandName($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets locale field.
|
||||
*/
|
||||
public function locale(?string $value): self
|
||||
{
|
||||
$this->instance->setLocale($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets shipping preference field.
|
||||
*/
|
||||
public function shippingPreference(?string $value): self
|
||||
{
|
||||
$this->instance->setShippingPreference($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets return url field.
|
||||
*/
|
||||
public function returnUrl(?string $value): self
|
||||
{
|
||||
$this->instance->setReturnUrl($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets cancel url field.
|
||||
*/
|
||||
public function cancelUrl(?string $value): self
|
||||
{
|
||||
$this->instance->setCancelUrl($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets consumer ip field.
|
||||
*/
|
||||
public function consumerIp(?string $value): self
|
||||
{
|
||||
$this->instance->setConsumerIp($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets consumer user agent field.
|
||||
*/
|
||||
public function consumerUserAgent(?string $value): self
|
||||
{
|
||||
$this->instance->setConsumerUserAgent($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new blikexperience context object.
|
||||
*/
|
||||
public function build(): BLIKExperienceContext
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
48
src/Models/Builders/BLIKLevel0PaymentObjectBuilder.php
Normal file
48
src/Models/Builders/BLIKLevel0PaymentObjectBuilder.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSDKLib\Models\BLIKLevel0PaymentObject;
|
||||
|
||||
/**
|
||||
* Builder for model BLIKLevel0PaymentObject
|
||||
*
|
||||
* @see BLIKLevel0PaymentObject
|
||||
*/
|
||||
class BLIKLevel0PaymentObjectBuilder
|
||||
{
|
||||
/**
|
||||
* @var BLIKLevel0PaymentObject
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(BLIKLevel0PaymentObject $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new bliklevel 0 payment object Builder object.
|
||||
*/
|
||||
public static function init(string $authCode): self
|
||||
{
|
||||
return new self(new BLIKLevel0PaymentObject($authCode));
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new bliklevel 0 payment object object.
|
||||
*/
|
||||
public function build(): BLIKLevel0PaymentObject
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
57
src/Models/Builders/BLIKOneClickPaymentObjectBuilder.php
Normal file
57
src/Models/Builders/BLIKOneClickPaymentObjectBuilder.php
Normal file
@@ -0,0 +1,57 @@
|
||||
<?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\BLIKOneClickPaymentObject;
|
||||
|
||||
/**
|
||||
* Builder for model BLIKOneClickPaymentObject
|
||||
*
|
||||
* @see BLIKOneClickPaymentObject
|
||||
*/
|
||||
class BLIKOneClickPaymentObjectBuilder
|
||||
{
|
||||
/**
|
||||
* @var BLIKOneClickPaymentObject
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(BLIKOneClickPaymentObject $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new blikone click payment object Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new BLIKOneClickPaymentObject());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets consumer reference field.
|
||||
*/
|
||||
public function consumerReference(?string $value): self
|
||||
{
|
||||
$this->instance->setConsumerReference($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new blikone click payment object object.
|
||||
*/
|
||||
public function build(): BLIKOneClickPaymentObject
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
75
src/Models/Builders/BLIKOneClickPaymentRequestBuilder.php
Normal file
75
src/Models/Builders/BLIKOneClickPaymentRequestBuilder.php
Normal file
@@ -0,0 +1,75 @@
|
||||
<?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\BLIKOneClickPaymentRequest;
|
||||
|
||||
/**
|
||||
* Builder for model BLIKOneClickPaymentRequest
|
||||
*
|
||||
* @see BLIKOneClickPaymentRequest
|
||||
*/
|
||||
class BLIKOneClickPaymentRequestBuilder
|
||||
{
|
||||
/**
|
||||
* @var BLIKOneClickPaymentRequest
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(BLIKOneClickPaymentRequest $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new blikone click payment request Builder object.
|
||||
*/
|
||||
public static function init(string $consumerReference): self
|
||||
{
|
||||
return new self(new BLIKOneClickPaymentRequest($consumerReference));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets auth code field.
|
||||
*/
|
||||
public function authCode(?string $value): self
|
||||
{
|
||||
$this->instance->setAuthCode($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets alias label field.
|
||||
*/
|
||||
public function aliasLabel(?string $value): self
|
||||
{
|
||||
$this->instance->setAliasLabel($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets alias key field.
|
||||
*/
|
||||
public function aliasKey(?string $value): self
|
||||
{
|
||||
$this->instance->setAliasKey($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new blikone click payment request object.
|
||||
*/
|
||||
public function build(): BLIKOneClickPaymentRequest
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
85
src/Models/Builders/BLIKPaymentObjectBuilder.php
Normal file
85
src/Models/Builders/BLIKPaymentObjectBuilder.php
Normal file
@@ -0,0 +1,85 @@
|
||||
<?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\BLIKOneClickPaymentObject;
|
||||
use PaypalServerSDKLib\Models\BLIKPaymentObject;
|
||||
|
||||
/**
|
||||
* Builder for model BLIKPaymentObject
|
||||
*
|
||||
* @see BLIKPaymentObject
|
||||
*/
|
||||
class BLIKPaymentObjectBuilder
|
||||
{
|
||||
/**
|
||||
* @var BLIKPaymentObject
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(BLIKPaymentObject $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new blikpayment object Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new BLIKPaymentObject());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets name field.
|
||||
*/
|
||||
public function name(?string $value): self
|
||||
{
|
||||
$this->instance->setName($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets country code field.
|
||||
*/
|
||||
public function countryCode(?string $value): self
|
||||
{
|
||||
$this->instance->setCountryCode($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets email field.
|
||||
*/
|
||||
public function email(?string $value): self
|
||||
{
|
||||
$this->instance->setEmail($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets one click field.
|
||||
*/
|
||||
public function oneClick(?BLIKOneClickPaymentObject $value): self
|
||||
{
|
||||
$this->instance->setOneClick($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new blikpayment object object.
|
||||
*/
|
||||
public function build(): BLIKPaymentObject
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
87
src/Models/Builders/BLIKPaymentRequestBuilder.php
Normal file
87
src/Models/Builders/BLIKPaymentRequestBuilder.php
Normal file
@@ -0,0 +1,87 @@
|
||||
<?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\BLIKExperienceContext;
|
||||
use PaypalServerSDKLib\Models\BLIKLevel0PaymentObject;
|
||||
use PaypalServerSDKLib\Models\BLIKOneClickPaymentRequest;
|
||||
use PaypalServerSDKLib\Models\BLIKPaymentRequest;
|
||||
|
||||
/**
|
||||
* Builder for model BLIKPaymentRequest
|
||||
*
|
||||
* @see BLIKPaymentRequest
|
||||
*/
|
||||
class BLIKPaymentRequestBuilder
|
||||
{
|
||||
/**
|
||||
* @var BLIKPaymentRequest
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(BLIKPaymentRequest $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new blikpayment request Builder object.
|
||||
*/
|
||||
public static function init(string $name, string $countryCode): self
|
||||
{
|
||||
return new self(new BLIKPaymentRequest($name, $countryCode));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets email field.
|
||||
*/
|
||||
public function email(?string $value): self
|
||||
{
|
||||
$this->instance->setEmail($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets experience context field.
|
||||
*/
|
||||
public function experienceContext(?BLIKExperienceContext $value): self
|
||||
{
|
||||
$this->instance->setExperienceContext($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets level 0 field.
|
||||
*/
|
||||
public function level0(?BLIKLevel0PaymentObject $value): self
|
||||
{
|
||||
$this->instance->setLevel0($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets one click field.
|
||||
*/
|
||||
public function oneClick(?BLIKOneClickPaymentRequest $value): self
|
||||
{
|
||||
$this->instance->setOneClick($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new blikpayment request object.
|
||||
*/
|
||||
public function build(): BLIKPaymentRequest
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
93
src/Models/Builders/BancontactPaymentObjectBuilder.php
Normal file
93
src/Models/Builders/BancontactPaymentObjectBuilder.php
Normal file
@@ -0,0 +1,93 @@
|
||||
<?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\BancontactPaymentObject;
|
||||
|
||||
/**
|
||||
* Builder for model BancontactPaymentObject
|
||||
*
|
||||
* @see BancontactPaymentObject
|
||||
*/
|
||||
class BancontactPaymentObjectBuilder
|
||||
{
|
||||
/**
|
||||
* @var BancontactPaymentObject
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(BancontactPaymentObject $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new bancontact payment object Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new BancontactPaymentObject());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets name field.
|
||||
*/
|
||||
public function name(?string $value): self
|
||||
{
|
||||
$this->instance->setName($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets country code field.
|
||||
*/
|
||||
public function countryCode(?string $value): self
|
||||
{
|
||||
$this->instance->setCountryCode($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bic field.
|
||||
*/
|
||||
public function bic(?string $value): self
|
||||
{
|
||||
$this->instance->setBic($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets iban last chars field.
|
||||
*/
|
||||
public function ibanLastChars(?string $value): self
|
||||
{
|
||||
$this->instance->setIbanLastChars($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets card last digits field.
|
||||
*/
|
||||
public function cardLastDigits(?string $value): self
|
||||
{
|
||||
$this->instance->setCardLastDigits($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new bancontact payment object object.
|
||||
*/
|
||||
public function build(): BancontactPaymentObject
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
58
src/Models/Builders/BancontactPaymentRequestBuilder.php
Normal file
58
src/Models/Builders/BancontactPaymentRequestBuilder.php
Normal file
@@ -0,0 +1,58 @@
|
||||
<?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\BancontactPaymentRequest;
|
||||
use PaypalServerSDKLib\Models\ExperienceContext;
|
||||
|
||||
/**
|
||||
* Builder for model BancontactPaymentRequest
|
||||
*
|
||||
* @see BancontactPaymentRequest
|
||||
*/
|
||||
class BancontactPaymentRequestBuilder
|
||||
{
|
||||
/**
|
||||
* @var BancontactPaymentRequest
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(BancontactPaymentRequest $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new bancontact payment request Builder object.
|
||||
*/
|
||||
public static function init(string $name, string $countryCode): self
|
||||
{
|
||||
return new self(new BancontactPaymentRequest($name, $countryCode));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets experience context field.
|
||||
*/
|
||||
public function experienceContext(?ExperienceContext $value): self
|
||||
{
|
||||
$this->instance->setExperienceContext($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new bancontact payment request object.
|
||||
*/
|
||||
public function build(): BancontactPaymentRequest
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
84
src/Models/Builders/BinDetailsBuilder.php
Normal file
84
src/Models/Builders/BinDetailsBuilder.php
Normal file
@@ -0,0 +1,84 @@
|
||||
<?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\BinDetails;
|
||||
|
||||
/**
|
||||
* Builder for model BinDetails
|
||||
*
|
||||
* @see BinDetails
|
||||
*/
|
||||
class BinDetailsBuilder
|
||||
{
|
||||
/**
|
||||
* @var BinDetails
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(BinDetails $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new bin details Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new BinDetails());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bin field.
|
||||
*/
|
||||
public function bin(?string $value): self
|
||||
{
|
||||
$this->instance->setBin($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets issuing bank field.
|
||||
*/
|
||||
public function issuingBank(?string $value): self
|
||||
{
|
||||
$this->instance->setIssuingBank($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bin country code field.
|
||||
*/
|
||||
public function binCountryCode(?string $value): self
|
||||
{
|
||||
$this->instance->setBinCountryCode($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets products field.
|
||||
*/
|
||||
public function products(?array $value): self
|
||||
{
|
||||
$this->instance->setProducts($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new bin details object.
|
||||
*/
|
||||
public function build(): BinDetails
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
189
src/Models/Builders/CaptureBuilder.php
Normal file
189
src/Models/Builders/CaptureBuilder.php
Normal file
@@ -0,0 +1,189 @@
|
||||
<?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\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
|
||||
*
|
||||
* @see Capture
|
||||
*/
|
||||
class CaptureBuilder
|
||||
{
|
||||
/**
|
||||
* @var Capture
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(Capture $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new capture Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new Capture());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets status field.
|
||||
*/
|
||||
public function status(?string $value): self
|
||||
{
|
||||
$this->instance->setStatus($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets status details field.
|
||||
*/
|
||||
public function statusDetails(?CaptureStatusDetails $value): self
|
||||
{
|
||||
$this->instance->setStatusDetails($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets id field.
|
||||
*/
|
||||
public function id(?string $value): self
|
||||
{
|
||||
$this->instance->setId($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets amount field.
|
||||
*/
|
||||
public function amount(?Money $value): self
|
||||
{
|
||||
$this->instance->setAmount($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets invoice id field.
|
||||
*/
|
||||
public function invoiceId(?string $value): self
|
||||
{
|
||||
$this->instance->setInvoiceId($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets custom id field.
|
||||
*/
|
||||
public function customId(?string $value): self
|
||||
{
|
||||
$this->instance->setCustomId($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets network transaction reference field.
|
||||
*/
|
||||
public function networkTransactionReference(?NetworkTransactionReference $value): self
|
||||
{
|
||||
$this->instance->setNetworkTransactionReference($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets seller protection field.
|
||||
*/
|
||||
public function sellerProtection(?SellerProtection $value): self
|
||||
{
|
||||
$this->instance->setSellerProtection($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets final capture field.
|
||||
*/
|
||||
public function finalCapture(?bool $value): self
|
||||
{
|
||||
$this->instance->setFinalCapture($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets seller receivable breakdown field.
|
||||
*/
|
||||
public function sellerReceivableBreakdown(?SellerReceivableBreakdown $value): self
|
||||
{
|
||||
$this->instance->setSellerReceivableBreakdown($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets disbursement mode field.
|
||||
*/
|
||||
public function disbursementMode(?string $value): self
|
||||
{
|
||||
$this->instance->setDisbursementMode($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets links field.
|
||||
*/
|
||||
public function links(?array $value): self
|
||||
{
|
||||
$this->instance->setLinks($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets processor response field.
|
||||
*/
|
||||
public function processorResponse(?ProcessorResponse $value): self
|
||||
{
|
||||
$this->instance->setProcessorResponse($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets create time field.
|
||||
*/
|
||||
public function createTime(?string $value): self
|
||||
{
|
||||
$this->instance->setCreateTime($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets update time field.
|
||||
*/
|
||||
public function updateTime(?string $value): self
|
||||
{
|
||||
$this->instance->setUpdateTime($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new capture object.
|
||||
*/
|
||||
public function build(): Capture
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
75
src/Models/Builders/CapturePaymentInstructionBuilder.php
Normal file
75
src/Models/Builders/CapturePaymentInstructionBuilder.php
Normal file
@@ -0,0 +1,75 @@
|
||||
<?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\CapturePaymentInstruction;
|
||||
|
||||
/**
|
||||
* Builder for model CapturePaymentInstruction
|
||||
*
|
||||
* @see CapturePaymentInstruction
|
||||
*/
|
||||
class CapturePaymentInstructionBuilder
|
||||
{
|
||||
/**
|
||||
* @var CapturePaymentInstruction
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(CapturePaymentInstruction $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new capture payment instruction Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new CapturePaymentInstruction());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets platform fees field.
|
||||
*/
|
||||
public function platformFees(?array $value): self
|
||||
{
|
||||
$this->instance->setPlatformFees($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets disbursement mode field.
|
||||
*/
|
||||
public function disbursementMode(?string $value): self
|
||||
{
|
||||
$this->instance->setDisbursementMode($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payee receivable fx rate id field.
|
||||
*/
|
||||
public function payeeReceivableFxRateId(?string $value): self
|
||||
{
|
||||
$this->instance->setPayeeReceivableFxRateId($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new capture payment instruction object.
|
||||
*/
|
||||
public function build(): CapturePaymentInstruction
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
104
src/Models/Builders/CaptureRequestBuilder.php
Normal file
104
src/Models/Builders/CaptureRequestBuilder.php
Normal file
@@ -0,0 +1,104 @@
|
||||
<?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\CapturePaymentInstruction;
|
||||
use PaypalServerSDKLib\Models\CaptureRequest;
|
||||
use PaypalServerSDKLib\Models\Money;
|
||||
|
||||
/**
|
||||
* Builder for model CaptureRequest
|
||||
*
|
||||
* @see CaptureRequest
|
||||
*/
|
||||
class CaptureRequestBuilder
|
||||
{
|
||||
/**
|
||||
* @var CaptureRequest
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(CaptureRequest $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new capture request Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new CaptureRequest());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets invoice id field.
|
||||
*/
|
||||
public function invoiceId(?string $value): self
|
||||
{
|
||||
$this->instance->setInvoiceId($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets note to payer field.
|
||||
*/
|
||||
public function noteToPayer(?string $value): self
|
||||
{
|
||||
$this->instance->setNoteToPayer($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets amount field.
|
||||
*/
|
||||
public function amount(?Money $value): self
|
||||
{
|
||||
$this->instance->setAmount($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets final capture field.
|
||||
*/
|
||||
public function finalCapture(?bool $value): self
|
||||
{
|
||||
$this->instance->setFinalCapture($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payment instruction field.
|
||||
*/
|
||||
public function paymentInstruction(?CapturePaymentInstruction $value): self
|
||||
{
|
||||
$this->instance->setPaymentInstruction($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets soft descriptor field.
|
||||
*/
|
||||
public function softDescriptor(?string $value): self
|
||||
{
|
||||
$this->instance->setSoftDescriptor($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new capture request object.
|
||||
*/
|
||||
public function build(): CaptureRequest
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
57
src/Models/Builders/CaptureStatusDetailsBuilder.php
Normal file
57
src/Models/Builders/CaptureStatusDetailsBuilder.php
Normal file
@@ -0,0 +1,57 @@
|
||||
<?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\CaptureStatusDetails;
|
||||
|
||||
/**
|
||||
* Builder for model CaptureStatusDetails
|
||||
*
|
||||
* @see CaptureStatusDetails
|
||||
*/
|
||||
class CaptureStatusDetailsBuilder
|
||||
{
|
||||
/**
|
||||
* @var CaptureStatusDetails
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(CaptureStatusDetails $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new capture status details Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new CaptureStatusDetails());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets reason field.
|
||||
*/
|
||||
public function reason(?string $value): self
|
||||
{
|
||||
$this->instance->setReason($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new capture status details object.
|
||||
*/
|
||||
public function build(): CaptureStatusDetails
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
67
src/Models/Builders/CaptureStatusWithDetailsBuilder.php
Normal file
67
src/Models/Builders/CaptureStatusWithDetailsBuilder.php
Normal file
@@ -0,0 +1,67 @@
|
||||
<?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\CaptureStatusDetails;
|
||||
use PaypalServerSDKLib\Models\CaptureStatusWithDetails;
|
||||
|
||||
/**
|
||||
* Builder for model CaptureStatusWithDetails
|
||||
*
|
||||
* @see CaptureStatusWithDetails
|
||||
*/
|
||||
class CaptureStatusWithDetailsBuilder
|
||||
{
|
||||
/**
|
||||
* @var CaptureStatusWithDetails
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(CaptureStatusWithDetails $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new capture status with details Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new CaptureStatusWithDetails());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets status field.
|
||||
*/
|
||||
public function status(?string $value): self
|
||||
{
|
||||
$this->instance->setStatus($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets status details field.
|
||||
*/
|
||||
public function statusDetails(?CaptureStatusDetails $value): self
|
||||
{
|
||||
$this->instance->setStatusDetails($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new capture status with details object.
|
||||
*/
|
||||
public function build(): CaptureStatusWithDetails
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
209
src/Models/Builders/CapturedPaymentBuilder.php
Normal file
209
src/Models/Builders/CapturedPaymentBuilder.php
Normal file
@@ -0,0 +1,209 @@
|
||||
<?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\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
|
||||
*
|
||||
* @see CapturedPayment
|
||||
*/
|
||||
class CapturedPaymentBuilder
|
||||
{
|
||||
/**
|
||||
* @var CapturedPayment
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(CapturedPayment $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new captured payment Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new CapturedPayment());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets status field.
|
||||
*/
|
||||
public function status(?string $value): self
|
||||
{
|
||||
$this->instance->setStatus($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets status details field.
|
||||
*/
|
||||
public function statusDetails(?CaptureStatusDetails $value): self
|
||||
{
|
||||
$this->instance->setStatusDetails($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets id field.
|
||||
*/
|
||||
public function id(?string $value): self
|
||||
{
|
||||
$this->instance->setId($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets amount field.
|
||||
*/
|
||||
public function amount(?Money $value): self
|
||||
{
|
||||
$this->instance->setAmount($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets invoice id field.
|
||||
*/
|
||||
public function invoiceId(?string $value): self
|
||||
{
|
||||
$this->instance->setInvoiceId($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets custom id field.
|
||||
*/
|
||||
public function customId(?string $value): self
|
||||
{
|
||||
$this->instance->setCustomId($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets network transaction reference field.
|
||||
*/
|
||||
public function networkTransactionReference(?NetworkTransactionReference $value): self
|
||||
{
|
||||
$this->instance->setNetworkTransactionReference($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets seller protection field.
|
||||
*/
|
||||
public function sellerProtection(?SellerProtection $value): self
|
||||
{
|
||||
$this->instance->setSellerProtection($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets final capture field.
|
||||
*/
|
||||
public function finalCapture(?bool $value): self
|
||||
{
|
||||
$this->instance->setFinalCapture($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets seller receivable breakdown field.
|
||||
*/
|
||||
public function sellerReceivableBreakdown(?SellerReceivableBreakdown $value): self
|
||||
{
|
||||
$this->instance->setSellerReceivableBreakdown($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets disbursement mode field.
|
||||
*/
|
||||
public function disbursementMode(?string $value): self
|
||||
{
|
||||
$this->instance->setDisbursementMode($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets links field.
|
||||
*/
|
||||
public function links(?array $value): self
|
||||
{
|
||||
$this->instance->setLinks($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets processor response field.
|
||||
*/
|
||||
public function processorResponse(?ProcessorResponse $value): self
|
||||
{
|
||||
$this->instance->setProcessorResponse($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets create time field.
|
||||
*/
|
||||
public function createTime(?string $value): self
|
||||
{
|
||||
$this->instance->setCreateTime($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets update time field.
|
||||
*/
|
||||
public function updateTime(?string $value): self
|
||||
{
|
||||
$this->instance->setUpdateTime($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets supplementary data field.
|
||||
*/
|
||||
public function supplementaryData(?PaymentSupplementaryData $value): self
|
||||
{
|
||||
$this->instance->setSupplementaryData($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payee field.
|
||||
*/
|
||||
public function payee(?Payee $value): self
|
||||
{
|
||||
$this->instance->setPayee($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new captured payment object.
|
||||
*/
|
||||
public function build(): CapturedPayment
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
78
src/Models/Builders/CardAttributesBuilder.php
Normal file
78
src/Models/Builders/CardAttributesBuilder.php
Normal file
@@ -0,0 +1,78 @@
|
||||
<?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\CardAttributes;
|
||||
use PaypalServerSDKLib\Models\CardCustomerInformation;
|
||||
use PaypalServerSDKLib\Models\CardVerification;
|
||||
use PaypalServerSDKLib\Models\VaultInstructionBase;
|
||||
|
||||
/**
|
||||
* Builder for model CardAttributes
|
||||
*
|
||||
* @see CardAttributes
|
||||
*/
|
||||
class CardAttributesBuilder
|
||||
{
|
||||
/**
|
||||
* @var CardAttributes
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(CardAttributes $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new card attributes Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new CardAttributes());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets customer field.
|
||||
*/
|
||||
public function customer(?CardCustomerInformation $value): self
|
||||
{
|
||||
$this->instance->setCustomer($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets vault field.
|
||||
*/
|
||||
public function vault(?VaultInstructionBase $value): self
|
||||
{
|
||||
$this->instance->setVault($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets verification field.
|
||||
*/
|
||||
public function verification(?CardVerification $value): self
|
||||
{
|
||||
$this->instance->setVerification($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new card attributes object.
|
||||
*/
|
||||
public function build(): CardAttributes
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
58
src/Models/Builders/CardAttributesResponseBuilder.php
Normal file
58
src/Models/Builders/CardAttributesResponseBuilder.php
Normal file
@@ -0,0 +1,58 @@
|
||||
<?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\CardAttributesResponse;
|
||||
use PaypalServerSDKLib\Models\CardVaultResponse;
|
||||
|
||||
/**
|
||||
* Builder for model CardAttributesResponse
|
||||
*
|
||||
* @see CardAttributesResponse
|
||||
*/
|
||||
class CardAttributesResponseBuilder
|
||||
{
|
||||
/**
|
||||
* @var CardAttributesResponse
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(CardAttributesResponse $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new card attributes response Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new CardAttributesResponse());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets vault field.
|
||||
*/
|
||||
public function vault(?CardVaultResponse $value): self
|
||||
{
|
||||
$this->instance->setVault($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new card attributes response object.
|
||||
*/
|
||||
public function build(): CardAttributesResponse
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
58
src/Models/Builders/CardAuthenticationResponseBuilder.php
Normal file
58
src/Models/Builders/CardAuthenticationResponseBuilder.php
Normal file
@@ -0,0 +1,58 @@
|
||||
<?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\CardAuthenticationResponse;
|
||||
use PaypalServerSDKLib\Models\ThreeDSecureAuthenticationResponse;
|
||||
|
||||
/**
|
||||
* Builder for model CardAuthenticationResponse
|
||||
*
|
||||
* @see CardAuthenticationResponse
|
||||
*/
|
||||
class CardAuthenticationResponseBuilder
|
||||
{
|
||||
/**
|
||||
* @var CardAuthenticationResponse
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(CardAuthenticationResponse $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new card authentication response Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new CardAuthenticationResponse());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets three d secure field.
|
||||
*/
|
||||
public function threeDSecure(?ThreeDSecureAuthenticationResponse $value): self
|
||||
{
|
||||
$this->instance->setThreeDSecure($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new card authentication response object.
|
||||
*/
|
||||
public function build(): CardAuthenticationResponse
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
85
src/Models/Builders/CardCustomerInformationBuilder.php
Normal file
85
src/Models/Builders/CardCustomerInformationBuilder.php
Normal file
@@ -0,0 +1,85 @@
|
||||
<?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\CardCustomerInformation;
|
||||
use PaypalServerSDKLib\Models\PhoneWithType;
|
||||
|
||||
/**
|
||||
* Builder for model CardCustomerInformation
|
||||
*
|
||||
* @see CardCustomerInformation
|
||||
*/
|
||||
class CardCustomerInformationBuilder
|
||||
{
|
||||
/**
|
||||
* @var CardCustomerInformation
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(CardCustomerInformation $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new card customer information Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new CardCustomerInformation());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets id field.
|
||||
*/
|
||||
public function id(?string $value): self
|
||||
{
|
||||
$this->instance->setId($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets email address field.
|
||||
*/
|
||||
public function emailAddress(?string $value): self
|
||||
{
|
||||
$this->instance->setEmailAddress($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets phone field.
|
||||
*/
|
||||
public function phone(?PhoneWithType $value): self
|
||||
{
|
||||
$this->instance->setPhone($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchant customer id field.
|
||||
*/
|
||||
public function merchantCustomerId(?string $value): self
|
||||
{
|
||||
$this->instance->setMerchantCustomerId($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new card customer information object.
|
||||
*/
|
||||
public function build(): CardCustomerInformation
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
66
src/Models/Builders/CardExperienceContextBuilder.php
Normal file
66
src/Models/Builders/CardExperienceContextBuilder.php
Normal file
@@ -0,0 +1,66 @@
|
||||
<?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\CardExperienceContext;
|
||||
|
||||
/**
|
||||
* Builder for model CardExperienceContext
|
||||
*
|
||||
* @see CardExperienceContext
|
||||
*/
|
||||
class CardExperienceContextBuilder
|
||||
{
|
||||
/**
|
||||
* @var CardExperienceContext
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(CardExperienceContext $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new card experience context Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new CardExperienceContext());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets return url field.
|
||||
*/
|
||||
public function returnUrl(?string $value): self
|
||||
{
|
||||
$this->instance->setReturnUrl($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets cancel url field.
|
||||
*/
|
||||
public function cancelUrl(?string $value): self
|
||||
{
|
||||
$this->instance->setCancelUrl($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new card experience context object.
|
||||
*/
|
||||
public function build(): CardExperienceContext
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
66
src/Models/Builders/CardFromRequestBuilder.php
Normal file
66
src/Models/Builders/CardFromRequestBuilder.php
Normal file
@@ -0,0 +1,66 @@
|
||||
<?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\CardFromRequest;
|
||||
|
||||
/**
|
||||
* Builder for model CardFromRequest
|
||||
*
|
||||
* @see CardFromRequest
|
||||
*/
|
||||
class CardFromRequestBuilder
|
||||
{
|
||||
/**
|
||||
* @var CardFromRequest
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(CardFromRequest $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new card from request Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new CardFromRequest());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets expiry field.
|
||||
*/
|
||||
public function expiry(?string $value): self
|
||||
{
|
||||
$this->instance->setExpiry($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets last digits field.
|
||||
*/
|
||||
public function lastDigits(?string $value): self
|
||||
{
|
||||
$this->instance->setLastDigits($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new card from request object.
|
||||
*/
|
||||
public function build(): CardFromRequest
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
161
src/Models/Builders/CardPaymentTokenBuilder.php
Normal file
161
src/Models/Builders/CardPaymentTokenBuilder.php
Normal file
@@ -0,0 +1,161 @@
|
||||
<?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\AddressDetails;
|
||||
use PaypalServerSDKLib\Models\BinDetails;
|
||||
use PaypalServerSDKLib\Models\CardAuthenticationResponse;
|
||||
use PaypalServerSDKLib\Models\CardPaymentToken;
|
||||
use PaypalServerSDKLib\Models\CardVerificationDetails;
|
||||
use PaypalServerSDKLib\Models\NetworkTransactionReferenceEntity;
|
||||
|
||||
/**
|
||||
* Builder for model CardPaymentToken
|
||||
*
|
||||
* @see CardPaymentToken
|
||||
*/
|
||||
class CardPaymentTokenBuilder
|
||||
{
|
||||
/**
|
||||
* @var CardPaymentToken
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(CardPaymentToken $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new card payment token Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new CardPaymentToken());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets name field.
|
||||
*/
|
||||
public function name(?string $value): self
|
||||
{
|
||||
$this->instance->setName($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets last digits field.
|
||||
*/
|
||||
public function lastDigits(?string $value): self
|
||||
{
|
||||
$this->instance->setLastDigits($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets brand field.
|
||||
*/
|
||||
public function brand(?string $value): self
|
||||
{
|
||||
$this->instance->setBrand($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets expiry field.
|
||||
*/
|
||||
public function expiry(?string $value): self
|
||||
{
|
||||
$this->instance->setExpiry($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets billing address field.
|
||||
*/
|
||||
public function billingAddress(?AddressDetails $value): self
|
||||
{
|
||||
$this->instance->setBillingAddress($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets verification status field.
|
||||
*/
|
||||
public function verificationStatus(?string $value): self
|
||||
{
|
||||
$this->instance->setVerificationStatus($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets verification field.
|
||||
*/
|
||||
public function verification(?CardVerificationDetails $value): self
|
||||
{
|
||||
$this->instance->setVerification($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets network transaction reference field.
|
||||
*/
|
||||
public function networkTransactionReference(?NetworkTransactionReferenceEntity $value): self
|
||||
{
|
||||
$this->instance->setNetworkTransactionReference($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets authentication result field.
|
||||
*/
|
||||
public function authenticationResult(?CardAuthenticationResponse $value): self
|
||||
{
|
||||
$this->instance->setAuthenticationResult($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bin details field.
|
||||
*/
|
||||
public function binDetails(?BinDetails $value): self
|
||||
{
|
||||
$this->instance->setBinDetails($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets type field.
|
||||
*/
|
||||
public function type(?string $value): self
|
||||
{
|
||||
$this->instance->setType($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets network token field.
|
||||
*/
|
||||
public function networkToken($value): self
|
||||
{
|
||||
$this->instance->setNetworkToken($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new card payment token object.
|
||||
*/
|
||||
public function build(): CardPaymentToken
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
152
src/Models/Builders/CardRequestBuilder.php
Normal file
152
src/Models/Builders/CardRequestBuilder.php
Normal file
@@ -0,0 +1,152 @@
|
||||
<?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\Address;
|
||||
use PaypalServerSDKLib\Models\CardAttributes;
|
||||
use PaypalServerSDKLib\Models\CardExperienceContext;
|
||||
use PaypalServerSDKLib\Models\CardRequest;
|
||||
use PaypalServerSDKLib\Models\CardStoredCredential;
|
||||
use PaypalServerSDKLib\Models\NetworkToken;
|
||||
|
||||
/**
|
||||
* Builder for model CardRequest
|
||||
*
|
||||
* @see CardRequest
|
||||
*/
|
||||
class CardRequestBuilder
|
||||
{
|
||||
/**
|
||||
* @var CardRequest
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(CardRequest $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new card request Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new CardRequest());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets name field.
|
||||
*/
|
||||
public function name(?string $value): self
|
||||
{
|
||||
$this->instance->setName($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets number field.
|
||||
*/
|
||||
public function number(?string $value): self
|
||||
{
|
||||
$this->instance->setNumber($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets expiry field.
|
||||
*/
|
||||
public function expiry(?string $value): self
|
||||
{
|
||||
$this->instance->setExpiry($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets security code field.
|
||||
*/
|
||||
public function securityCode(?string $value): self
|
||||
{
|
||||
$this->instance->setSecurityCode($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets billing address field.
|
||||
*/
|
||||
public function billingAddress(?Address $value): self
|
||||
{
|
||||
$this->instance->setBillingAddress($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets attributes field.
|
||||
*/
|
||||
public function attributes(?CardAttributes $value): self
|
||||
{
|
||||
$this->instance->setAttributes($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets vault id field.
|
||||
*/
|
||||
public function vaultId(?string $value): self
|
||||
{
|
||||
$this->instance->setVaultId($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets single use token field.
|
||||
*/
|
||||
public function singleUseToken(?string $value): self
|
||||
{
|
||||
$this->instance->setSingleUseToken($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets stored credential field.
|
||||
*/
|
||||
public function storedCredential(?CardStoredCredential $value): self
|
||||
{
|
||||
$this->instance->setStoredCredential($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets network token field.
|
||||
*/
|
||||
public function networkToken(?NetworkToken $value): self
|
||||
{
|
||||
$this->instance->setNetworkToken($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets experience context field.
|
||||
*/
|
||||
public function experienceContext(?CardExperienceContext $value): self
|
||||
{
|
||||
$this->instance->setExperienceContext($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new card request object.
|
||||
*/
|
||||
public function build(): CardRequest
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
142
src/Models/Builders/CardResponseBuilder.php
Normal file
142
src/Models/Builders/CardResponseBuilder.php
Normal file
@@ -0,0 +1,142 @@
|
||||
<?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\AuthenticationResponse;
|
||||
use PaypalServerSDKLib\Models\BinDetails;
|
||||
use PaypalServerSDKLib\Models\CardAttributesResponse;
|
||||
use PaypalServerSDKLib\Models\CardFromRequest;
|
||||
use PaypalServerSDKLib\Models\CardResponse;
|
||||
|
||||
/**
|
||||
* Builder for model CardResponse
|
||||
*
|
||||
* @see CardResponse
|
||||
*/
|
||||
class CardResponseBuilder
|
||||
{
|
||||
/**
|
||||
* @var CardResponse
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(CardResponse $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new card response Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new CardResponse());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets name field.
|
||||
*/
|
||||
public function name(?string $value): self
|
||||
{
|
||||
$this->instance->setName($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets last digits field.
|
||||
*/
|
||||
public function lastDigits(?string $value): self
|
||||
{
|
||||
$this->instance->setLastDigits($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets brand field.
|
||||
*/
|
||||
public function brand(?string $value): self
|
||||
{
|
||||
$this->instance->setBrand($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets available networks field.
|
||||
*/
|
||||
public function availableNetworks(?array $value): self
|
||||
{
|
||||
$this->instance->setAvailableNetworks($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets type field.
|
||||
*/
|
||||
public function type(?string $value): self
|
||||
{
|
||||
$this->instance->setType($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets authentication result field.
|
||||
*/
|
||||
public function authenticationResult(?AuthenticationResponse $value): self
|
||||
{
|
||||
$this->instance->setAuthenticationResult($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets attributes field.
|
||||
*/
|
||||
public function attributes(?CardAttributesResponse $value): self
|
||||
{
|
||||
$this->instance->setAttributes($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets from request field.
|
||||
*/
|
||||
public function fromRequest(?CardFromRequest $value): self
|
||||
{
|
||||
$this->instance->setFromRequest($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets expiry field.
|
||||
*/
|
||||
public function expiry(?string $value): self
|
||||
{
|
||||
$this->instance->setExpiry($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bin details field.
|
||||
*/
|
||||
public function binDetails(?BinDetails $value): self
|
||||
{
|
||||
$this->instance->setBinDetails($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new card response object.
|
||||
*/
|
||||
public function build(): CardResponse
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
152
src/Models/Builders/CardResponseEntityBuilder.php
Normal file
152
src/Models/Builders/CardResponseEntityBuilder.php
Normal file
@@ -0,0 +1,152 @@
|
||||
<?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\AddressDetails;
|
||||
use PaypalServerSDKLib\Models\BinDetails;
|
||||
use PaypalServerSDKLib\Models\CardAuthenticationResponse;
|
||||
use PaypalServerSDKLib\Models\CardResponseEntity;
|
||||
use PaypalServerSDKLib\Models\CardVerificationDetails;
|
||||
use PaypalServerSDKLib\Models\NetworkTransactionReferenceEntity;
|
||||
|
||||
/**
|
||||
* Builder for model CardResponseEntity
|
||||
*
|
||||
* @see CardResponseEntity
|
||||
*/
|
||||
class CardResponseEntityBuilder
|
||||
{
|
||||
/**
|
||||
* @var CardResponseEntity
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(CardResponseEntity $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new card response entity Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new CardResponseEntity());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets name field.
|
||||
*/
|
||||
public function name(?string $value): self
|
||||
{
|
||||
$this->instance->setName($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets last digits field.
|
||||
*/
|
||||
public function lastDigits(?string $value): self
|
||||
{
|
||||
$this->instance->setLastDigits($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets brand field.
|
||||
*/
|
||||
public function brand(?string $value): self
|
||||
{
|
||||
$this->instance->setBrand($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets expiry field.
|
||||
*/
|
||||
public function expiry(?string $value): self
|
||||
{
|
||||
$this->instance->setExpiry($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets billing address field.
|
||||
*/
|
||||
public function billingAddress(?AddressDetails $value): self
|
||||
{
|
||||
$this->instance->setBillingAddress($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets verification status field.
|
||||
*/
|
||||
public function verificationStatus(?string $value): self
|
||||
{
|
||||
$this->instance->setVerificationStatus($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets verification field.
|
||||
*/
|
||||
public function verification(?CardVerificationDetails $value): self
|
||||
{
|
||||
$this->instance->setVerification($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets network transaction reference field.
|
||||
*/
|
||||
public function networkTransactionReference(?NetworkTransactionReferenceEntity $value): self
|
||||
{
|
||||
$this->instance->setNetworkTransactionReference($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets authentication result field.
|
||||
*/
|
||||
public function authenticationResult(?CardAuthenticationResponse $value): self
|
||||
{
|
||||
$this->instance->setAuthenticationResult($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bin details field.
|
||||
*/
|
||||
public function binDetails(?BinDetails $value): self
|
||||
{
|
||||
$this->instance->setBinDetails($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets type field.
|
||||
*/
|
||||
public function type(?string $value): self
|
||||
{
|
||||
$this->instance->setType($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new card response entity object.
|
||||
*/
|
||||
public function build(): CardResponseEntity
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
67
src/Models/Builders/CardStoredCredentialBuilder.php
Normal file
67
src/Models/Builders/CardStoredCredentialBuilder.php
Normal file
@@ -0,0 +1,67 @@
|
||||
<?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\CardStoredCredential;
|
||||
use PaypalServerSDKLib\Models\NetworkTransactionReference;
|
||||
|
||||
/**
|
||||
* Builder for model CardStoredCredential
|
||||
*
|
||||
* @see CardStoredCredential
|
||||
*/
|
||||
class CardStoredCredentialBuilder
|
||||
{
|
||||
/**
|
||||
* @var CardStoredCredential
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(CardStoredCredential $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new card stored credential Builder object.
|
||||
*/
|
||||
public static function init(string $paymentInitiator, string $paymentType): self
|
||||
{
|
||||
return new self(new CardStoredCredential($paymentInitiator, $paymentType));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets usage field.
|
||||
*/
|
||||
public function usage(?string $value): self
|
||||
{
|
||||
$this->instance->setUsage($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets previous network transaction reference field.
|
||||
*/
|
||||
public function previousNetworkTransactionReference(?NetworkTransactionReference $value): self
|
||||
{
|
||||
$this->instance->setPreviousNetworkTransactionReference($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new card stored credential object.
|
||||
*/
|
||||
public function build(): CardStoredCredential
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
68
src/Models/Builders/CardSupplementaryDataBuilder.php
Normal file
68
src/Models/Builders/CardSupplementaryDataBuilder.php
Normal file
@@ -0,0 +1,68 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSDKLib\Models\CardSupplementaryData;
|
||||
use PaypalServerSDKLib\Models\Level2CardProcessingData;
|
||||
use PaypalServerSDKLib\Models\Level3CardProcessingData;
|
||||
|
||||
/**
|
||||
* Builder for model CardSupplementaryData
|
||||
*
|
||||
* @see CardSupplementaryData
|
||||
*/
|
||||
class CardSupplementaryDataBuilder
|
||||
{
|
||||
/**
|
||||
* @var CardSupplementaryData
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(CardSupplementaryData $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new card supplementary data Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new CardSupplementaryData());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets level 2 field.
|
||||
*/
|
||||
public function level2(?Level2CardProcessingData $value): self
|
||||
{
|
||||
$this->instance->setLevel2($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets level 3 field.
|
||||
*/
|
||||
public function level3(?Level3CardProcessingData $value): self
|
||||
{
|
||||
$this->instance->setLevel3($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new card supplementary data object.
|
||||
*/
|
||||
public function build(): CardSupplementaryData
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
85
src/Models/Builders/CardVaultResponseBuilder.php
Normal file
85
src/Models/Builders/CardVaultResponseBuilder.php
Normal file
@@ -0,0 +1,85 @@
|
||||
<?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\CardCustomerInformation;
|
||||
use PaypalServerSDKLib\Models\CardVaultResponse;
|
||||
|
||||
/**
|
||||
* Builder for model CardVaultResponse
|
||||
*
|
||||
* @see CardVaultResponse
|
||||
*/
|
||||
class CardVaultResponseBuilder
|
||||
{
|
||||
/**
|
||||
* @var CardVaultResponse
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(CardVaultResponse $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new card vault response Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new CardVaultResponse());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets id field.
|
||||
*/
|
||||
public function id(?string $value): self
|
||||
{
|
||||
$this->instance->setId($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets status field.
|
||||
*/
|
||||
public function status(?string $value): self
|
||||
{
|
||||
$this->instance->setStatus($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets links field.
|
||||
*/
|
||||
public function links(?array $value): self
|
||||
{
|
||||
$this->instance->setLinks($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets customer field.
|
||||
*/
|
||||
public function customer(?CardCustomerInformation $value): self
|
||||
{
|
||||
$this->instance->setCustomer($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new card vault response object.
|
||||
*/
|
||||
public function build(): CardVaultResponse
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
57
src/Models/Builders/CardVerificationBuilder.php
Normal file
57
src/Models/Builders/CardVerificationBuilder.php
Normal file
@@ -0,0 +1,57 @@
|
||||
<?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\CardVerification;
|
||||
|
||||
/**
|
||||
* Builder for model CardVerification
|
||||
*
|
||||
* @see CardVerification
|
||||
*/
|
||||
class CardVerificationBuilder
|
||||
{
|
||||
/**
|
||||
* @var CardVerification
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(CardVerification $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new card verification Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new CardVerification());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets method field.
|
||||
*/
|
||||
public function method(?string $value): self
|
||||
{
|
||||
$this->instance->setMethod($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new card verification object.
|
||||
*/
|
||||
public function build(): CardVerification
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
104
src/Models/Builders/CardVerificationDetailsBuilder.php
Normal file
104
src/Models/Builders/CardVerificationDetailsBuilder.php
Normal file
@@ -0,0 +1,104 @@
|
||||
<?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\CardVerificationDetails;
|
||||
use PaypalServerSDKLib\Models\CardVerificationProcessorResponse;
|
||||
use PaypalServerSDKLib\Models\Money;
|
||||
|
||||
/**
|
||||
* Builder for model CardVerificationDetails
|
||||
*
|
||||
* @see CardVerificationDetails
|
||||
*/
|
||||
class CardVerificationDetailsBuilder
|
||||
{
|
||||
/**
|
||||
* @var CardVerificationDetails
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(CardVerificationDetails $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new card verification details Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new CardVerificationDetails());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets network transaction id field.
|
||||
*/
|
||||
public function networkTransactionId(?string $value): self
|
||||
{
|
||||
$this->instance->setNetworkTransactionId($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets date field.
|
||||
*/
|
||||
public function date(?string $value): self
|
||||
{
|
||||
$this->instance->setDate($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets network field.
|
||||
*/
|
||||
public function network(?string $value): self
|
||||
{
|
||||
$this->instance->setNetwork($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets time field.
|
||||
*/
|
||||
public function time(?string $value): self
|
||||
{
|
||||
$this->instance->setTime($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets amount field.
|
||||
*/
|
||||
public function amount(?Money $value): self
|
||||
{
|
||||
$this->instance->setAmount($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets processor response field.
|
||||
*/
|
||||
public function processorResponse(?CardVerificationProcessorResponse $value): self
|
||||
{
|
||||
$this->instance->setProcessorResponse($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new card verification details object.
|
||||
*/
|
||||
public function build(): CardVerificationDetails
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
<?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\CardVerificationProcessorResponse;
|
||||
|
||||
/**
|
||||
* Builder for model CardVerificationProcessorResponse
|
||||
*
|
||||
* @see CardVerificationProcessorResponse
|
||||
*/
|
||||
class CardVerificationProcessorResponseBuilder
|
||||
{
|
||||
/**
|
||||
* @var CardVerificationProcessorResponse
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(CardVerificationProcessorResponse $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new card verification processor response Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new CardVerificationProcessorResponse());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets avs code field.
|
||||
*/
|
||||
public function avsCode(?string $value): self
|
||||
{
|
||||
$this->instance->setAvsCode($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets cvv code field.
|
||||
*/
|
||||
public function cvvCode(?string $value): self
|
||||
{
|
||||
$this->instance->setCvvCode($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new card verification processor response object.
|
||||
*/
|
||||
public function build(): CardVerificationProcessorResponse
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
77
src/Models/Builders/CobrandedCardBuilder.php
Normal file
77
src/Models/Builders/CobrandedCardBuilder.php
Normal file
@@ -0,0 +1,77 @@
|
||||
<?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\CobrandedCard;
|
||||
use PaypalServerSDKLib\Models\Money;
|
||||
use PaypalServerSDKLib\Models\PayeeBase;
|
||||
|
||||
/**
|
||||
* Builder for model CobrandedCard
|
||||
*
|
||||
* @see CobrandedCard
|
||||
*/
|
||||
class CobrandedCardBuilder
|
||||
{
|
||||
/**
|
||||
* @var CobrandedCard
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(CobrandedCard $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new cobranded card Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new CobrandedCard());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets labels field.
|
||||
*/
|
||||
public function labels(?array $value): self
|
||||
{
|
||||
$this->instance->setLabels($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payee field.
|
||||
*/
|
||||
public function payee(?PayeeBase $value): self
|
||||
{
|
||||
$this->instance->setPayee($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets amount field.
|
||||
*/
|
||||
public function amount(?Money $value): self
|
||||
{
|
||||
$this->instance->setAmount($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new cobranded card object.
|
||||
*/
|
||||
public function build(): CobrandedCard
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
68
src/Models/Builders/ConfirmOrderRequestBuilder.php
Normal file
68
src/Models/Builders/ConfirmOrderRequestBuilder.php
Normal file
@@ -0,0 +1,68 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PaypalServerSDKLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PaypalServerSDKLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PaypalServerSDKLib\Models\ConfirmOrderRequest;
|
||||
use PaypalServerSDKLib\Models\OrderConfirmApplicationContext;
|
||||
use PaypalServerSDKLib\Models\PaymentSource;
|
||||
|
||||
/**
|
||||
* Builder for model ConfirmOrderRequest
|
||||
*
|
||||
* @see ConfirmOrderRequest
|
||||
*/
|
||||
class ConfirmOrderRequestBuilder
|
||||
{
|
||||
/**
|
||||
* @var ConfirmOrderRequest
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(ConfirmOrderRequest $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new confirm order request Builder object.
|
||||
*/
|
||||
public static function init(PaymentSource $paymentSource): self
|
||||
{
|
||||
return new self(new ConfirmOrderRequest($paymentSource));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets processing instruction field.
|
||||
*/
|
||||
public function processingInstruction(?string $value): self
|
||||
{
|
||||
$this->instance->setProcessingInstruction($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets application context field.
|
||||
*/
|
||||
public function applicationContext(?OrderConfirmApplicationContext $value): self
|
||||
{
|
||||
$this->instance->setApplicationContext($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new confirm order request object.
|
||||
*/
|
||||
public function build(): ConfirmOrderRequest
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
76
src/Models/Builders/CustomerInformationBuilder.php
Normal file
76
src/Models/Builders/CustomerInformationBuilder.php
Normal file
@@ -0,0 +1,76 @@
|
||||
<?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\CustomerInformation;
|
||||
use PaypalServerSDKLib\Models\PhoneWithType;
|
||||
|
||||
/**
|
||||
* Builder for model CustomerInformation
|
||||
*
|
||||
* @see CustomerInformation
|
||||
*/
|
||||
class CustomerInformationBuilder
|
||||
{
|
||||
/**
|
||||
* @var CustomerInformation
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(CustomerInformation $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new customer information Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new CustomerInformation());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets id field.
|
||||
*/
|
||||
public function id(?string $value): self
|
||||
{
|
||||
$this->instance->setId($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets email address field.
|
||||
*/
|
||||
public function emailAddress(?string $value): self
|
||||
{
|
||||
$this->instance->setEmailAddress($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets phone field.
|
||||
*/
|
||||
public function phone(?PhoneWithType $value): self
|
||||
{
|
||||
$this->instance->setPhone($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new customer information object.
|
||||
*/
|
||||
public function build(): CustomerInformation
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
66
src/Models/Builders/CustomerRequestBuilder.php
Normal file
66
src/Models/Builders/CustomerRequestBuilder.php
Normal file
@@ -0,0 +1,66 @@
|
||||
<?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\CustomerRequest;
|
||||
|
||||
/**
|
||||
* Builder for model CustomerRequest
|
||||
*
|
||||
* @see CustomerRequest
|
||||
*/
|
||||
class CustomerRequestBuilder
|
||||
{
|
||||
/**
|
||||
* @var CustomerRequest
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(CustomerRequest $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new customer request Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new CustomerRequest());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets id field.
|
||||
*/
|
||||
public function id(?string $value): self
|
||||
{
|
||||
$this->instance->setId($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchant customer id field.
|
||||
*/
|
||||
public function merchantCustomerId(?string $value): self
|
||||
{
|
||||
$this->instance->setMerchantCustomerId($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new customer request object.
|
||||
*/
|
||||
public function build(): CustomerRequest
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
<?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\CustomerRequest;
|
||||
use PaypalServerSDKLib\Models\CustomerVaultPaymentTokensResponse;
|
||||
|
||||
/**
|
||||
* Builder for model CustomerVaultPaymentTokensResponse
|
||||
*
|
||||
* @see CustomerVaultPaymentTokensResponse
|
||||
*/
|
||||
class CustomerVaultPaymentTokensResponseBuilder
|
||||
{
|
||||
/**
|
||||
* @var CustomerVaultPaymentTokensResponse
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(CustomerVaultPaymentTokensResponse $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new customer vault payment tokens response Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new CustomerVaultPaymentTokensResponse());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets total items field.
|
||||
*/
|
||||
public function totalItems(?int $value): self
|
||||
{
|
||||
$this->instance->setTotalItems($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets total pages field.
|
||||
*/
|
||||
public function totalPages(?int $value): self
|
||||
{
|
||||
$this->instance->setTotalPages($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets customer field.
|
||||
*/
|
||||
public function customer(?CustomerRequest $value): self
|
||||
{
|
||||
$this->instance->setCustomer($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payment tokens field.
|
||||
*/
|
||||
public function paymentTokens(?array $value): self
|
||||
{
|
||||
$this->instance->setPaymentTokens($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets links field.
|
||||
*/
|
||||
public function links(?array $value): self
|
||||
{
|
||||
$this->instance->setLinks($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new customer vault payment tokens response object.
|
||||
*/
|
||||
public function build(): CustomerVaultPaymentTokensResponse
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
75
src/Models/Builders/EPSPaymentObjectBuilder.php
Normal file
75
src/Models/Builders/EPSPaymentObjectBuilder.php
Normal file
@@ -0,0 +1,75 @@
|
||||
<?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\EPSPaymentObject;
|
||||
|
||||
/**
|
||||
* Builder for model EPSPaymentObject
|
||||
*
|
||||
* @see EPSPaymentObject
|
||||
*/
|
||||
class EPSPaymentObjectBuilder
|
||||
{
|
||||
/**
|
||||
* @var EPSPaymentObject
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(EPSPaymentObject $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new epspayment object Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new EPSPaymentObject());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets name field.
|
||||
*/
|
||||
public function name(?string $value): self
|
||||
{
|
||||
$this->instance->setName($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets country code field.
|
||||
*/
|
||||
public function countryCode(?string $value): self
|
||||
{
|
||||
$this->instance->setCountryCode($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bic field.
|
||||
*/
|
||||
public function bic(?string $value): self
|
||||
{
|
||||
$this->instance->setBic($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new epspayment object object.
|
||||
*/
|
||||
public function build(): EPSPaymentObject
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
58
src/Models/Builders/EPSPaymentRequestBuilder.php
Normal file
58
src/Models/Builders/EPSPaymentRequestBuilder.php
Normal file
@@ -0,0 +1,58 @@
|
||||
<?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\EPSPaymentRequest;
|
||||
use PaypalServerSDKLib\Models\ExperienceContext;
|
||||
|
||||
/**
|
||||
* Builder for model EPSPaymentRequest
|
||||
*
|
||||
* @see EPSPaymentRequest
|
||||
*/
|
||||
class EPSPaymentRequestBuilder
|
||||
{
|
||||
/**
|
||||
* @var EPSPaymentRequest
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(EPSPaymentRequest $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new epspayment request Builder object.
|
||||
*/
|
||||
public static function init(string $name, string $countryCode): self
|
||||
{
|
||||
return new self(new EPSPaymentRequest($name, $countryCode));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets experience context field.
|
||||
*/
|
||||
public function experienceContext(?ExperienceContext $value): self
|
||||
{
|
||||
$this->instance->setExperienceContext($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new epspayment request object.
|
||||
*/
|
||||
public function build(): EPSPaymentRequest
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
93
src/Models/Builders/ErrorDetailsBuilder.php
Normal file
93
src/Models/Builders/ErrorDetailsBuilder.php
Normal file
@@ -0,0 +1,93 @@
|
||||
<?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\ErrorDetails;
|
||||
|
||||
/**
|
||||
* Builder for model ErrorDetails
|
||||
*
|
||||
* @see ErrorDetails
|
||||
*/
|
||||
class ErrorDetailsBuilder
|
||||
{
|
||||
/**
|
||||
* @var ErrorDetails
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(ErrorDetails $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new error details Builder object.
|
||||
*/
|
||||
public static function init(string $issue): self
|
||||
{
|
||||
return new self(new ErrorDetails($issue));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets field field.
|
||||
*/
|
||||
public function field(?string $value): self
|
||||
{
|
||||
$this->instance->setField($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets value field.
|
||||
*/
|
||||
public function value(?string $value): self
|
||||
{
|
||||
$this->instance->setValue($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets location field.
|
||||
*/
|
||||
public function location(?string $value): self
|
||||
{
|
||||
$this->instance->setLocation($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets links field.
|
||||
*/
|
||||
public function links(?array $value): self
|
||||
{
|
||||
$this->instance->setLinks($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets description field.
|
||||
*/
|
||||
public function description(?string $value): self
|
||||
{
|
||||
$this->instance->setDescription($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new error details object.
|
||||
*/
|
||||
public function build(): ErrorDetails
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
75
src/Models/Builders/ExchangeRateBuilder.php
Normal file
75
src/Models/Builders/ExchangeRateBuilder.php
Normal file
@@ -0,0 +1,75 @@
|
||||
<?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\ExchangeRate;
|
||||
|
||||
/**
|
||||
* Builder for model ExchangeRate
|
||||
*
|
||||
* @see ExchangeRate
|
||||
*/
|
||||
class ExchangeRateBuilder
|
||||
{
|
||||
/**
|
||||
* @var ExchangeRate
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(ExchangeRate $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new exchange rate Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new ExchangeRate());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets source currency field.
|
||||
*/
|
||||
public function sourceCurrency(?string $value): self
|
||||
{
|
||||
$this->instance->setSourceCurrency($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets target currency field.
|
||||
*/
|
||||
public function targetCurrency(?string $value): self
|
||||
{
|
||||
$this->instance->setTargetCurrency($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets value field.
|
||||
*/
|
||||
public function value(?string $value): self
|
||||
{
|
||||
$this->instance->setValue($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new exchange rate object.
|
||||
*/
|
||||
public function build(): ExchangeRate
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
93
src/Models/Builders/ExperienceContextBuilder.php
Normal file
93
src/Models/Builders/ExperienceContextBuilder.php
Normal file
@@ -0,0 +1,93 @@
|
||||
<?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\ExperienceContext;
|
||||
|
||||
/**
|
||||
* Builder for model ExperienceContext
|
||||
*
|
||||
* @see ExperienceContext
|
||||
*/
|
||||
class ExperienceContextBuilder
|
||||
{
|
||||
/**
|
||||
* @var ExperienceContext
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(ExperienceContext $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new experience context Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new ExperienceContext());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets brand name field.
|
||||
*/
|
||||
public function brandName(?string $value): self
|
||||
{
|
||||
$this->instance->setBrandName($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets locale field.
|
||||
*/
|
||||
public function locale(?string $value): self
|
||||
{
|
||||
$this->instance->setLocale($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets shipping preference field.
|
||||
*/
|
||||
public function shippingPreference(?string $value): self
|
||||
{
|
||||
$this->instance->setShippingPreference($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets return url field.
|
||||
*/
|
||||
public function returnUrl(?string $value): self
|
||||
{
|
||||
$this->instance->setReturnUrl($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets cancel url field.
|
||||
*/
|
||||
public function cancelUrl(?string $value): self
|
||||
{
|
||||
$this->instance->setCancelUrl($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new experience context object.
|
||||
*/
|
||||
public function build(): ExperienceContext
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
75
src/Models/Builders/GiropayPaymentObjectBuilder.php
Normal file
75
src/Models/Builders/GiropayPaymentObjectBuilder.php
Normal file
@@ -0,0 +1,75 @@
|
||||
<?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\GiropayPaymentObject;
|
||||
|
||||
/**
|
||||
* Builder for model GiropayPaymentObject
|
||||
*
|
||||
* @see GiropayPaymentObject
|
||||
*/
|
||||
class GiropayPaymentObjectBuilder
|
||||
{
|
||||
/**
|
||||
* @var GiropayPaymentObject
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(GiropayPaymentObject $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new giropay payment object Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new GiropayPaymentObject());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets name field.
|
||||
*/
|
||||
public function name(?string $value): self
|
||||
{
|
||||
$this->instance->setName($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets country code field.
|
||||
*/
|
||||
public function countryCode(?string $value): self
|
||||
{
|
||||
$this->instance->setCountryCode($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bic field.
|
||||
*/
|
||||
public function bic(?string $value): self
|
||||
{
|
||||
$this->instance->setBic($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new giropay payment object object.
|
||||
*/
|
||||
public function build(): GiropayPaymentObject
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
58
src/Models/Builders/GiropayPaymentRequestBuilder.php
Normal file
58
src/Models/Builders/GiropayPaymentRequestBuilder.php
Normal file
@@ -0,0 +1,58 @@
|
||||
<?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\ExperienceContext;
|
||||
use PaypalServerSDKLib\Models\GiropayPaymentRequest;
|
||||
|
||||
/**
|
||||
* Builder for model GiropayPaymentRequest
|
||||
*
|
||||
* @see GiropayPaymentRequest
|
||||
*/
|
||||
class GiropayPaymentRequestBuilder
|
||||
{
|
||||
/**
|
||||
* @var GiropayPaymentRequest
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(GiropayPaymentRequest $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new giropay payment request Builder object.
|
||||
*/
|
||||
public static function init(string $name, string $countryCode): self
|
||||
{
|
||||
return new self(new GiropayPaymentRequest($name, $countryCode));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets experience context field.
|
||||
*/
|
||||
public function experienceContext(?ExperienceContext $value): self
|
||||
{
|
||||
$this->instance->setExperienceContext($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new giropay payment request object.
|
||||
*/
|
||||
public function build(): GiropayPaymentRequest
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
58
src/Models/Builders/GooglePayCardAttributesBuilder.php
Normal file
58
src/Models/Builders/GooglePayCardAttributesBuilder.php
Normal file
@@ -0,0 +1,58 @@
|
||||
<?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\CardVerification;
|
||||
use PaypalServerSDKLib\Models\GooglePayCardAttributes;
|
||||
|
||||
/**
|
||||
* Builder for model GooglePayCardAttributes
|
||||
*
|
||||
* @see GooglePayCardAttributes
|
||||
*/
|
||||
class GooglePayCardAttributesBuilder
|
||||
{
|
||||
/**
|
||||
* @var GooglePayCardAttributes
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(GooglePayCardAttributes $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new google pay card attributes Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new GooglePayCardAttributes());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets verification field.
|
||||
*/
|
||||
public function verification(?CardVerification $value): self
|
||||
{
|
||||
$this->instance->setVerification($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new google pay card attributes object.
|
||||
*/
|
||||
public function build(): GooglePayCardAttributes
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
104
src/Models/Builders/GooglePayCardResponseBuilder.php
Normal file
104
src/Models/Builders/GooglePayCardResponseBuilder.php
Normal file
@@ -0,0 +1,104 @@
|
||||
<?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\Address;
|
||||
use PaypalServerSDKLib\Models\AuthenticationResponse;
|
||||
use PaypalServerSDKLib\Models\GooglePayCardResponse;
|
||||
|
||||
/**
|
||||
* Builder for model GooglePayCardResponse
|
||||
*
|
||||
* @see GooglePayCardResponse
|
||||
*/
|
||||
class GooglePayCardResponseBuilder
|
||||
{
|
||||
/**
|
||||
* @var GooglePayCardResponse
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(GooglePayCardResponse $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new google pay card response Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new GooglePayCardResponse());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets name field.
|
||||
*/
|
||||
public function name(?string $value): self
|
||||
{
|
||||
$this->instance->setName($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets last digits field.
|
||||
*/
|
||||
public function lastDigits(?string $value): self
|
||||
{
|
||||
$this->instance->setLastDigits($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets type field.
|
||||
*/
|
||||
public function type(?string $value): self
|
||||
{
|
||||
$this->instance->setType($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets brand field.
|
||||
*/
|
||||
public function brand(?string $value): self
|
||||
{
|
||||
$this->instance->setBrand($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets billing address field.
|
||||
*/
|
||||
public function billingAddress(?Address $value): self
|
||||
{
|
||||
$this->instance->setBillingAddress($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets authentication result field.
|
||||
*/
|
||||
public function authenticationResult(?AuthenticationResponse $value): self
|
||||
{
|
||||
$this->instance->setAuthenticationResult($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new google pay card response object.
|
||||
*/
|
||||
public function build(): GooglePayCardResponse
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
84
src/Models/Builders/GooglePayDecryptedTokenDataBuilder.php
Normal file
84
src/Models/Builders/GooglePayDecryptedTokenDataBuilder.php
Normal file
@@ -0,0 +1,84 @@
|
||||
<?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\GooglePayDecryptedTokenData;
|
||||
|
||||
/**
|
||||
* Builder for model GooglePayDecryptedTokenData
|
||||
*
|
||||
* @see GooglePayDecryptedTokenData
|
||||
*/
|
||||
class GooglePayDecryptedTokenDataBuilder
|
||||
{
|
||||
/**
|
||||
* @var GooglePayDecryptedTokenData
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(GooglePayDecryptedTokenData $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new google pay decrypted token data Builder object.
|
||||
*/
|
||||
public static function init(string $paymentMethod, string $authenticationMethod): self
|
||||
{
|
||||
return new self(new GooglePayDecryptedTokenData($paymentMethod, $authenticationMethod));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets message id field.
|
||||
*/
|
||||
public function messageId(?string $value): self
|
||||
{
|
||||
$this->instance->setMessageId($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets message expiration field.
|
||||
*/
|
||||
public function messageExpiration(?string $value): self
|
||||
{
|
||||
$this->instance->setMessageExpiration($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets cryptogram field.
|
||||
*/
|
||||
public function cryptogram(?string $value): self
|
||||
{
|
||||
$this->instance->setCryptogram($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets eci indicator field.
|
||||
*/
|
||||
public function eciIndicator(?string $value): self
|
||||
{
|
||||
$this->instance->setEciIndicator($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new google pay decrypted token data object.
|
||||
*/
|
||||
public function build(): GooglePayDecryptedTokenData
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
116
src/Models/Builders/GooglePayRequestBuilder.php
Normal file
116
src/Models/Builders/GooglePayRequestBuilder.php
Normal file
@@ -0,0 +1,116 @@
|
||||
<?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\AssuranceDetails;
|
||||
use PaypalServerSDKLib\Models\GooglePayCardAttributes;
|
||||
use PaypalServerSDKLib\Models\GooglePayDecryptedTokenData;
|
||||
use PaypalServerSDKLib\Models\GooglePayRequest;
|
||||
use PaypalServerSDKLib\Models\GooglePayRequestCard;
|
||||
use PaypalServerSDKLib\Models\PhoneNumberWithCountryCode;
|
||||
|
||||
/**
|
||||
* Builder for model GooglePayRequest
|
||||
*
|
||||
* @see GooglePayRequest
|
||||
*/
|
||||
class GooglePayRequestBuilder
|
||||
{
|
||||
/**
|
||||
* @var GooglePayRequest
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(GooglePayRequest $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new google pay request Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new GooglePayRequest());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets name field.
|
||||
*/
|
||||
public function name(?string $value): self
|
||||
{
|
||||
$this->instance->setName($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets email address field.
|
||||
*/
|
||||
public function emailAddress(?string $value): self
|
||||
{
|
||||
$this->instance->setEmailAddress($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets phone number field.
|
||||
*/
|
||||
public function phoneNumber(?PhoneNumberWithCountryCode $value): self
|
||||
{
|
||||
$this->instance->setPhoneNumber($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets card field.
|
||||
*/
|
||||
public function card(?GooglePayRequestCard $value): self
|
||||
{
|
||||
$this->instance->setCard($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets decrypted token field.
|
||||
*/
|
||||
public function decryptedToken(?GooglePayDecryptedTokenData $value): self
|
||||
{
|
||||
$this->instance->setDecryptedToken($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets assurance details field.
|
||||
*/
|
||||
public function assuranceDetails(?AssuranceDetails $value): self
|
||||
{
|
||||
$this->instance->setAssuranceDetails($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets attributes field.
|
||||
*/
|
||||
public function attributes(?GooglePayCardAttributes $value): self
|
||||
{
|
||||
$this->instance->setAttributes($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new google pay request object.
|
||||
*/
|
||||
public function build(): GooglePayRequest
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
85
src/Models/Builders/GooglePayRequestCardBuilder.php
Normal file
85
src/Models/Builders/GooglePayRequestCardBuilder.php
Normal file
@@ -0,0 +1,85 @@
|
||||
<?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\Address;
|
||||
use PaypalServerSDKLib\Models\GooglePayRequestCard;
|
||||
|
||||
/**
|
||||
* Builder for model GooglePayRequestCard
|
||||
*
|
||||
* @see GooglePayRequestCard
|
||||
*/
|
||||
class GooglePayRequestCardBuilder
|
||||
{
|
||||
/**
|
||||
* @var GooglePayRequestCard
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(GooglePayRequestCard $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new google pay request card Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new GooglePayRequestCard());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets name field.
|
||||
*/
|
||||
public function name(?string $value): self
|
||||
{
|
||||
$this->instance->setName($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets type field.
|
||||
*/
|
||||
public function type(?string $value): self
|
||||
{
|
||||
$this->instance->setType($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets brand field.
|
||||
*/
|
||||
public function brand(?string $value): self
|
||||
{
|
||||
$this->instance->setBrand($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets billing address field.
|
||||
*/
|
||||
public function billingAddress(?Address $value): self
|
||||
{
|
||||
$this->instance->setBillingAddress($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new google pay request card object.
|
||||
*/
|
||||
public function build(): GooglePayRequestCard
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
86
src/Models/Builders/GooglePayWalletResponseBuilder.php
Normal file
86
src/Models/Builders/GooglePayWalletResponseBuilder.php
Normal file
@@ -0,0 +1,86 @@
|
||||
<?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\GooglePayCardResponse;
|
||||
use PaypalServerSDKLib\Models\GooglePayWalletResponse;
|
||||
use PaypalServerSDKLib\Models\PhoneNumberWithCountryCode;
|
||||
|
||||
/**
|
||||
* Builder for model GooglePayWalletResponse
|
||||
*
|
||||
* @see GooglePayWalletResponse
|
||||
*/
|
||||
class GooglePayWalletResponseBuilder
|
||||
{
|
||||
/**
|
||||
* @var GooglePayWalletResponse
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(GooglePayWalletResponse $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new google pay wallet response Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new GooglePayWalletResponse());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets name field.
|
||||
*/
|
||||
public function name(?string $value): self
|
||||
{
|
||||
$this->instance->setName($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets email address field.
|
||||
*/
|
||||
public function emailAddress(?string $value): self
|
||||
{
|
||||
$this->instance->setEmailAddress($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets phone number field.
|
||||
*/
|
||||
public function phoneNumber(?PhoneNumberWithCountryCode $value): self
|
||||
{
|
||||
$this->instance->setPhoneNumber($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets card field.
|
||||
*/
|
||||
public function card(?GooglePayCardResponse $value): self
|
||||
{
|
||||
$this->instance->setCard($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new google pay wallet response object.
|
||||
*/
|
||||
public function build(): GooglePayWalletResponse
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
84
src/Models/Builders/IDEALPaymentObjectBuilder.php
Normal file
84
src/Models/Builders/IDEALPaymentObjectBuilder.php
Normal file
@@ -0,0 +1,84 @@
|
||||
<?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\IDEALPaymentObject;
|
||||
|
||||
/**
|
||||
* Builder for model IDEALPaymentObject
|
||||
*
|
||||
* @see IDEALPaymentObject
|
||||
*/
|
||||
class IDEALPaymentObjectBuilder
|
||||
{
|
||||
/**
|
||||
* @var IDEALPaymentObject
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(IDEALPaymentObject $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new idealpayment object Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new IDEALPaymentObject());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets name field.
|
||||
*/
|
||||
public function name(?string $value): self
|
||||
{
|
||||
$this->instance->setName($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets country code field.
|
||||
*/
|
||||
public function countryCode(?string $value): self
|
||||
{
|
||||
$this->instance->setCountryCode($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bic field.
|
||||
*/
|
||||
public function bic(?string $value): self
|
||||
{
|
||||
$this->instance->setBic($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets iban last chars field.
|
||||
*/
|
||||
public function ibanLastChars(?string $value): self
|
||||
{
|
||||
$this->instance->setIbanLastChars($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new idealpayment object object.
|
||||
*/
|
||||
public function build(): IDEALPaymentObject
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
67
src/Models/Builders/IDEALPaymentRequestBuilder.php
Normal file
67
src/Models/Builders/IDEALPaymentRequestBuilder.php
Normal file
@@ -0,0 +1,67 @@
|
||||
<?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\ExperienceContext;
|
||||
use PaypalServerSDKLib\Models\IDEALPaymentRequest;
|
||||
|
||||
/**
|
||||
* Builder for model IDEALPaymentRequest
|
||||
*
|
||||
* @see IDEALPaymentRequest
|
||||
*/
|
||||
class IDEALPaymentRequestBuilder
|
||||
{
|
||||
/**
|
||||
* @var IDEALPaymentRequest
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(IDEALPaymentRequest $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new idealpayment request Builder object.
|
||||
*/
|
||||
public static function init(string $name, string $countryCode): self
|
||||
{
|
||||
return new self(new IDEALPaymentRequest($name, $countryCode));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bic field.
|
||||
*/
|
||||
public function bic(?string $value): self
|
||||
{
|
||||
$this->instance->setBic($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets experience context field.
|
||||
*/
|
||||
public function experienceContext(?ExperienceContext $value): self
|
||||
{
|
||||
$this->instance->setExperienceContext($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new idealpayment request object.
|
||||
*/
|
||||
public function build(): IDEALPaymentRequest
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
113
src/Models/Builders/ItemBuilder.php
Normal file
113
src/Models/Builders/ItemBuilder.php
Normal file
@@ -0,0 +1,113 @@
|
||||
<?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\Item;
|
||||
use PaypalServerSDKLib\Models\Money;
|
||||
use PaypalServerSDKLib\Models\UniversalProductCode;
|
||||
|
||||
/**
|
||||
* Builder for model Item
|
||||
*
|
||||
* @see Item
|
||||
*/
|
||||
class ItemBuilder
|
||||
{
|
||||
/**
|
||||
* @var Item
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(Item $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new item Builder object.
|
||||
*/
|
||||
public static function init(string $name, Money $unitAmount, string $quantity): self
|
||||
{
|
||||
return new self(new Item($name, $unitAmount, $quantity));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets tax field.
|
||||
*/
|
||||
public function tax(?Money $value): self
|
||||
{
|
||||
$this->instance->setTax($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets description field.
|
||||
*/
|
||||
public function description(?string $value): self
|
||||
{
|
||||
$this->instance->setDescription($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets sku field.
|
||||
*/
|
||||
public function sku(?string $value): self
|
||||
{
|
||||
$this->instance->setSku($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets url field.
|
||||
*/
|
||||
public function url(?string $value): self
|
||||
{
|
||||
$this->instance->setUrl($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets category field.
|
||||
*/
|
||||
public function category(?string $value): self
|
||||
{
|
||||
$this->instance->setCategory($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets image url field.
|
||||
*/
|
||||
public function imageUrl(?string $value): self
|
||||
{
|
||||
$this->instance->setImageUrl($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets upc field.
|
||||
*/
|
||||
public function upc(?UniversalProductCode $value): self
|
||||
{
|
||||
$this->instance->setUpc($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new item object.
|
||||
*/
|
||||
public function build(): Item
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
67
src/Models/Builders/Level2CardProcessingDataBuilder.php
Normal file
67
src/Models/Builders/Level2CardProcessingDataBuilder.php
Normal file
@@ -0,0 +1,67 @@
|
||||
<?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\Level2CardProcessingData;
|
||||
use PaypalServerSDKLib\Models\Money;
|
||||
|
||||
/**
|
||||
* Builder for model Level2CardProcessingData
|
||||
*
|
||||
* @see Level2CardProcessingData
|
||||
*/
|
||||
class Level2CardProcessingDataBuilder
|
||||
{
|
||||
/**
|
||||
* @var Level2CardProcessingData
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(Level2CardProcessingData $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new level 2 card processing data Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new Level2CardProcessingData());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets invoice id field.
|
||||
*/
|
||||
public function invoiceId(?string $value): self
|
||||
{
|
||||
$this->instance->setInvoiceId($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets tax total field.
|
||||
*/
|
||||
public function taxTotal(?Money $value): self
|
||||
{
|
||||
$this->instance->setTaxTotal($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new level 2 card processing data object.
|
||||
*/
|
||||
public function build(): Level2CardProcessingData
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
104
src/Models/Builders/Level3CardProcessingDataBuilder.php
Normal file
104
src/Models/Builders/Level3CardProcessingDataBuilder.php
Normal file
@@ -0,0 +1,104 @@
|
||||
<?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\Address;
|
||||
use PaypalServerSDKLib\Models\Level3CardProcessingData;
|
||||
use PaypalServerSDKLib\Models\Money;
|
||||
|
||||
/**
|
||||
* Builder for model Level3CardProcessingData
|
||||
*
|
||||
* @see Level3CardProcessingData
|
||||
*/
|
||||
class Level3CardProcessingDataBuilder
|
||||
{
|
||||
/**
|
||||
* @var Level3CardProcessingData
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(Level3CardProcessingData $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new level 3 card processing data Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new Level3CardProcessingData());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets shipping amount field.
|
||||
*/
|
||||
public function shippingAmount(?Money $value): self
|
||||
{
|
||||
$this->instance->setShippingAmount($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets duty amount field.
|
||||
*/
|
||||
public function dutyAmount(?Money $value): self
|
||||
{
|
||||
$this->instance->setDutyAmount($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets discount amount field.
|
||||
*/
|
||||
public function discountAmount(?Money $value): self
|
||||
{
|
||||
$this->instance->setDiscountAmount($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets shipping address field.
|
||||
*/
|
||||
public function shippingAddress(?Address $value): self
|
||||
{
|
||||
$this->instance->setShippingAddress($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets ships from postal code field.
|
||||
*/
|
||||
public function shipsFromPostalCode(?string $value): self
|
||||
{
|
||||
$this->instance->setShipsFromPostalCode($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets line items field.
|
||||
*/
|
||||
public function lineItems(?array $value): self
|
||||
{
|
||||
$this->instance->setLineItems($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new level 3 card processing data object.
|
||||
*/
|
||||
public function build(): Level3CardProcessingData
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
149
src/Models/Builders/LineItemBuilder.php
Normal file
149
src/Models/Builders/LineItemBuilder.php
Normal file
@@ -0,0 +1,149 @@
|
||||
<?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\LineItem;
|
||||
use PaypalServerSDKLib\Models\Money;
|
||||
use PaypalServerSDKLib\Models\UniversalProductCode;
|
||||
|
||||
/**
|
||||
* Builder for model LineItem
|
||||
*
|
||||
* @see LineItem
|
||||
*/
|
||||
class LineItemBuilder
|
||||
{
|
||||
/**
|
||||
* @var LineItem
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(LineItem $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new line item Builder object.
|
||||
*/
|
||||
public static function init(string $name, string $quantity): self
|
||||
{
|
||||
return new self(new LineItem($name, $quantity));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets description field.
|
||||
*/
|
||||
public function description(?string $value): self
|
||||
{
|
||||
$this->instance->setDescription($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets sku field.
|
||||
*/
|
||||
public function sku(?string $value): self
|
||||
{
|
||||
$this->instance->setSku($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets url field.
|
||||
*/
|
||||
public function url(?string $value): self
|
||||
{
|
||||
$this->instance->setUrl($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets image url field.
|
||||
*/
|
||||
public function imageUrl(?string $value): self
|
||||
{
|
||||
$this->instance->setImageUrl($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets upc field.
|
||||
*/
|
||||
public function upc(?UniversalProductCode $value): self
|
||||
{
|
||||
$this->instance->setUpc($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets unit amount field.
|
||||
*/
|
||||
public function unitAmount(?Money $value): self
|
||||
{
|
||||
$this->instance->setUnitAmount($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets tax field.
|
||||
*/
|
||||
public function tax(?Money $value): self
|
||||
{
|
||||
$this->instance->setTax($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets commodity code field.
|
||||
*/
|
||||
public function commodityCode(?string $value): self
|
||||
{
|
||||
$this->instance->setCommodityCode($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets discount amount field.
|
||||
*/
|
||||
public function discountAmount(?Money $value): self
|
||||
{
|
||||
$this->instance->setDiscountAmount($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets total amount field.
|
||||
*/
|
||||
public function totalAmount(?Money $value): self
|
||||
{
|
||||
$this->instance->setTotalAmount($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets unit of measure field.
|
||||
*/
|
||||
public function unitOfMeasure(?string $value): self
|
||||
{
|
||||
$this->instance->setUnitOfMeasure($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new line item object.
|
||||
*/
|
||||
public function build(): LineItem
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
57
src/Models/Builders/LinkDescriptionBuilder.php
Normal file
57
src/Models/Builders/LinkDescriptionBuilder.php
Normal file
@@ -0,0 +1,57 @@
|
||||
<?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\LinkDescription;
|
||||
|
||||
/**
|
||||
* Builder for model LinkDescription
|
||||
*
|
||||
* @see LinkDescription
|
||||
*/
|
||||
class LinkDescriptionBuilder
|
||||
{
|
||||
/**
|
||||
* @var LinkDescription
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(LinkDescription $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new link description Builder object.
|
||||
*/
|
||||
public static function init(string $href, string $rel): self
|
||||
{
|
||||
return new self(new LinkDescription($href, $rel));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets method field.
|
||||
*/
|
||||
public function method(?string $value): self
|
||||
{
|
||||
$this->instance->setMethod($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new link description object.
|
||||
*/
|
||||
public function build(): LinkDescription
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
48
src/Models/Builders/MoneyBuilder.php
Normal file
48
src/Models/Builders/MoneyBuilder.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\Money;
|
||||
|
||||
/**
|
||||
* Builder for model Money
|
||||
*
|
||||
* @see Money
|
||||
*/
|
||||
class MoneyBuilder
|
||||
{
|
||||
/**
|
||||
* @var Money
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(Money $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new money Builder object.
|
||||
*/
|
||||
public static function init(string $currencyCode, string $value): self
|
||||
{
|
||||
return new self(new Money($currencyCode, $value));
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new money object.
|
||||
*/
|
||||
public function build(): Money
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
84
src/Models/Builders/MyBankPaymentObjectBuilder.php
Normal file
84
src/Models/Builders/MyBankPaymentObjectBuilder.php
Normal file
@@ -0,0 +1,84 @@
|
||||
<?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\MyBankPaymentObject;
|
||||
|
||||
/**
|
||||
* Builder for model MyBankPaymentObject
|
||||
*
|
||||
* @see MyBankPaymentObject
|
||||
*/
|
||||
class MyBankPaymentObjectBuilder
|
||||
{
|
||||
/**
|
||||
* @var MyBankPaymentObject
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(MyBankPaymentObject $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new my bank payment object Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new MyBankPaymentObject());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets name field.
|
||||
*/
|
||||
public function name(?string $value): self
|
||||
{
|
||||
$this->instance->setName($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets country code field.
|
||||
*/
|
||||
public function countryCode(?string $value): self
|
||||
{
|
||||
$this->instance->setCountryCode($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bic field.
|
||||
*/
|
||||
public function bic(?string $value): self
|
||||
{
|
||||
$this->instance->setBic($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets iban last chars field.
|
||||
*/
|
||||
public function ibanLastChars(?string $value): self
|
||||
{
|
||||
$this->instance->setIbanLastChars($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new my bank payment object object.
|
||||
*/
|
||||
public function build(): MyBankPaymentObject
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
58
src/Models/Builders/MyBankPaymentRequestBuilder.php
Normal file
58
src/Models/Builders/MyBankPaymentRequestBuilder.php
Normal file
@@ -0,0 +1,58 @@
|
||||
<?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\ExperienceContext;
|
||||
use PaypalServerSDKLib\Models\MyBankPaymentRequest;
|
||||
|
||||
/**
|
||||
* Builder for model MyBankPaymentRequest
|
||||
*
|
||||
* @see MyBankPaymentRequest
|
||||
*/
|
||||
class MyBankPaymentRequestBuilder
|
||||
{
|
||||
/**
|
||||
* @var MyBankPaymentRequest
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(MyBankPaymentRequest $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new my bank payment request Builder object.
|
||||
*/
|
||||
public static function init(string $name, string $countryCode): self
|
||||
{
|
||||
return new self(new MyBankPaymentRequest($name, $countryCode));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets experience context field.
|
||||
*/
|
||||
public function experienceContext(?ExperienceContext $value): self
|
||||
{
|
||||
$this->instance->setExperienceContext($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new my bank payment request object.
|
||||
*/
|
||||
public function build(): MyBankPaymentRequest
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
66
src/Models/Builders/NameBuilder.php
Normal file
66
src/Models/Builders/NameBuilder.php
Normal file
@@ -0,0 +1,66 @@
|
||||
<?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\Name;
|
||||
|
||||
/**
|
||||
* Builder for model Name
|
||||
*
|
||||
* @see Name
|
||||
*/
|
||||
class NameBuilder
|
||||
{
|
||||
/**
|
||||
* @var Name
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(Name $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new name Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new Name());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets given name field.
|
||||
*/
|
||||
public function givenName(?string $value): self
|
||||
{
|
||||
$this->instance->setGivenName($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets surname field.
|
||||
*/
|
||||
public function surname(?string $value): self
|
||||
{
|
||||
$this->instance->setSurname($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new name object.
|
||||
*/
|
||||
public function build(): Name
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
77
src/Models/Builders/NetAmountBreakdownItemBuilder.php
Normal file
77
src/Models/Builders/NetAmountBreakdownItemBuilder.php
Normal file
@@ -0,0 +1,77 @@
|
||||
<?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\ExchangeRate;
|
||||
use PaypalServerSDKLib\Models\Money;
|
||||
use PaypalServerSDKLib\Models\NetAmountBreakdownItem;
|
||||
|
||||
/**
|
||||
* Builder for model NetAmountBreakdownItem
|
||||
*
|
||||
* @see NetAmountBreakdownItem
|
||||
*/
|
||||
class NetAmountBreakdownItemBuilder
|
||||
{
|
||||
/**
|
||||
* @var NetAmountBreakdownItem
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(NetAmountBreakdownItem $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new net amount breakdown item Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new NetAmountBreakdownItem());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payable amount field.
|
||||
*/
|
||||
public function payableAmount(?Money $value): self
|
||||
{
|
||||
$this->instance->setPayableAmount($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets converted amount field.
|
||||
*/
|
||||
public function convertedAmount(?Money $value): self
|
||||
{
|
||||
$this->instance->setConvertedAmount($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets exchange rate field.
|
||||
*/
|
||||
public function exchangeRate(?ExchangeRate $value): self
|
||||
{
|
||||
$this->instance->setExchangeRate($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new net amount breakdown item object.
|
||||
*/
|
||||
public function build(): NetAmountBreakdownItem
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
75
src/Models/Builders/NetworkTokenBuilder.php
Normal file
75
src/Models/Builders/NetworkTokenBuilder.php
Normal file
@@ -0,0 +1,75 @@
|
||||
<?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\NetworkToken;
|
||||
|
||||
/**
|
||||
* Builder for model NetworkToken
|
||||
*
|
||||
* @see NetworkToken
|
||||
*/
|
||||
class NetworkTokenBuilder
|
||||
{
|
||||
/**
|
||||
* @var NetworkToken
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(NetworkToken $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new network token Builder object.
|
||||
*/
|
||||
public static function init(string $number, string $expiry): self
|
||||
{
|
||||
return new self(new NetworkToken($number, $expiry));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets cryptogram field.
|
||||
*/
|
||||
public function cryptogram(?string $value): self
|
||||
{
|
||||
$this->instance->setCryptogram($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets eci flag field.
|
||||
*/
|
||||
public function eciFlag(?string $value): self
|
||||
{
|
||||
$this->instance->setEciFlag($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets token requestor id field.
|
||||
*/
|
||||
public function tokenRequestorId(?string $value): self
|
||||
{
|
||||
$this->instance->setTokenRequestorId($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new network token object.
|
||||
*/
|
||||
public function build(): NetworkToken
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
75
src/Models/Builders/NetworkTransactionReferenceBuilder.php
Normal file
75
src/Models/Builders/NetworkTransactionReferenceBuilder.php
Normal file
@@ -0,0 +1,75 @@
|
||||
<?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\NetworkTransactionReference;
|
||||
|
||||
/**
|
||||
* Builder for model NetworkTransactionReference
|
||||
*
|
||||
* @see NetworkTransactionReference
|
||||
*/
|
||||
class NetworkTransactionReferenceBuilder
|
||||
{
|
||||
/**
|
||||
* @var NetworkTransactionReference
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(NetworkTransactionReference $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new network transaction reference Builder object.
|
||||
*/
|
||||
public static function init(string $id): self
|
||||
{
|
||||
return new self(new NetworkTransactionReference($id));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets date field.
|
||||
*/
|
||||
public function date(?string $value): self
|
||||
{
|
||||
$this->instance->setDate($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets network field.
|
||||
*/
|
||||
public function network(?string $value): self
|
||||
{
|
||||
$this->instance->setNetwork($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets acquirer reference number field.
|
||||
*/
|
||||
public function acquirerReferenceNumber(?string $value): self
|
||||
{
|
||||
$this->instance->setAcquirerReferenceNumber($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new network transaction reference object.
|
||||
*/
|
||||
public function build(): NetworkTransactionReference
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
<?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\NetworkTransactionReferenceEntity;
|
||||
|
||||
/**
|
||||
* Builder for model NetworkTransactionReferenceEntity
|
||||
*
|
||||
* @see NetworkTransactionReferenceEntity
|
||||
*/
|
||||
class NetworkTransactionReferenceEntityBuilder
|
||||
{
|
||||
/**
|
||||
* @var NetworkTransactionReferenceEntity
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(NetworkTransactionReferenceEntity $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new network transaction reference entity Builder object.
|
||||
*/
|
||||
public static function init(string $id): self
|
||||
{
|
||||
return new self(new NetworkTransactionReferenceEntity($id));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets date field.
|
||||
*/
|
||||
public function date(?string $value): self
|
||||
{
|
||||
$this->instance->setDate($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets network field.
|
||||
*/
|
||||
public function network(?string $value): self
|
||||
{
|
||||
$this->instance->setNetwork($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets time field.
|
||||
*/
|
||||
public function time(?string $value): self
|
||||
{
|
||||
$this->instance->setTime($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new network transaction reference entity object.
|
||||
*/
|
||||
public function build(): NetworkTransactionReferenceEntity
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
93
src/Models/Builders/OAuthTokenBuilder.php
Normal file
93
src/Models/Builders/OAuthTokenBuilder.php
Normal file
@@ -0,0 +1,93 @@
|
||||
<?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\OAuthToken;
|
||||
|
||||
/**
|
||||
* Builder for model OAuthToken
|
||||
*
|
||||
* @see OAuthToken
|
||||
*/
|
||||
class OAuthTokenBuilder
|
||||
{
|
||||
/**
|
||||
* @var OAuthToken
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(OAuthToken $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new oauth token Builder object.
|
||||
*/
|
||||
public static function init(string $accessToken, string $tokenType): self
|
||||
{
|
||||
return new self(new OAuthToken($accessToken, $tokenType));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets expires in field.
|
||||
*/
|
||||
public function expiresIn(?int $value): self
|
||||
{
|
||||
$this->instance->setExpiresIn($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets scope field.
|
||||
*/
|
||||
public function scope(?string $value): self
|
||||
{
|
||||
$this->instance->setScope($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets expiry field.
|
||||
*/
|
||||
public function expiry(?int $value): self
|
||||
{
|
||||
$this->instance->setExpiry($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets refresh token field.
|
||||
*/
|
||||
public function refreshToken(?string $value): self
|
||||
{
|
||||
$this->instance->setRefreshToken($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets id token field.
|
||||
*/
|
||||
public function idToken(?string $value): self
|
||||
{
|
||||
$this->instance->setIdToken($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new oauth token object.
|
||||
*/
|
||||
public function build(): OAuthToken
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
131
src/Models/Builders/OrderApplicationContextBuilder.php
Normal file
131
src/Models/Builders/OrderApplicationContextBuilder.php
Normal file
@@ -0,0 +1,131 @@
|
||||
<?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\OrderApplicationContext;
|
||||
use PaypalServerSDKLib\Models\PaymentMethodPreference;
|
||||
use PaypalServerSDKLib\Models\StoredPaymentSource;
|
||||
|
||||
/**
|
||||
* Builder for model OrderApplicationContext
|
||||
*
|
||||
* @see OrderApplicationContext
|
||||
*/
|
||||
class OrderApplicationContextBuilder
|
||||
{
|
||||
/**
|
||||
* @var OrderApplicationContext
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(OrderApplicationContext $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new order application context Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new OrderApplicationContext());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets brand name field.
|
||||
*/
|
||||
public function brandName(?string $value): self
|
||||
{
|
||||
$this->instance->setBrandName($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets locale field.
|
||||
*/
|
||||
public function locale(?string $value): self
|
||||
{
|
||||
$this->instance->setLocale($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets landing page field.
|
||||
*/
|
||||
public function landingPage(?string $value): self
|
||||
{
|
||||
$this->instance->setLandingPage($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets shipping preference field.
|
||||
*/
|
||||
public function shippingPreference(?string $value): self
|
||||
{
|
||||
$this->instance->setShippingPreference($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets user action field.
|
||||
*/
|
||||
public function userAction(?string $value): self
|
||||
{
|
||||
$this->instance->setUserAction($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payment method field.
|
||||
*/
|
||||
public function paymentMethod(?PaymentMethodPreference $value): self
|
||||
{
|
||||
$this->instance->setPaymentMethod($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets return url field.
|
||||
*/
|
||||
public function returnUrl(?string $value): self
|
||||
{
|
||||
$this->instance->setReturnUrl($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets cancel url field.
|
||||
*/
|
||||
public function cancelUrl(?string $value): self
|
||||
{
|
||||
$this->instance->setCancelUrl($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets stored payment source field.
|
||||
*/
|
||||
public function storedPaymentSource(?StoredPaymentSource $value): self
|
||||
{
|
||||
$this->instance->setStoredPaymentSource($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new order application context object.
|
||||
*/
|
||||
public function build(): OrderApplicationContext
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
58
src/Models/Builders/OrderAuthorizeRequestBuilder.php
Normal file
58
src/Models/Builders/OrderAuthorizeRequestBuilder.php
Normal file
@@ -0,0 +1,58 @@
|
||||
<?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\OrderAuthorizeRequest;
|
||||
use PaypalServerSDKLib\Models\OrderAuthorizeRequestPaymentSource;
|
||||
|
||||
/**
|
||||
* Builder for model OrderAuthorizeRequest
|
||||
*
|
||||
* @see OrderAuthorizeRequest
|
||||
*/
|
||||
class OrderAuthorizeRequestBuilder
|
||||
{
|
||||
/**
|
||||
* @var OrderAuthorizeRequest
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(OrderAuthorizeRequest $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new order authorize request Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new OrderAuthorizeRequest());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payment source field.
|
||||
*/
|
||||
public function paymentSource(?OrderAuthorizeRequestPaymentSource $value): self
|
||||
{
|
||||
$this->instance->setPaymentSource($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new order authorize request object.
|
||||
*/
|
||||
public function build(): OrderAuthorizeRequest
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,108 @@
|
||||
<?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\ApplePayRequest;
|
||||
use PaypalServerSDKLib\Models\CardRequest;
|
||||
use PaypalServerSDKLib\Models\GooglePayRequest;
|
||||
use PaypalServerSDKLib\Models\OrderAuthorizeRequestPaymentSource;
|
||||
use PaypalServerSDKLib\Models\PayPalWallet;
|
||||
use PaypalServerSDKLib\Models\Token;
|
||||
use PaypalServerSDKLib\Models\VenmoWalletRequest;
|
||||
|
||||
/**
|
||||
* Builder for model OrderAuthorizeRequestPaymentSource
|
||||
*
|
||||
* @see OrderAuthorizeRequestPaymentSource
|
||||
*/
|
||||
class OrderAuthorizeRequestPaymentSourceBuilder
|
||||
{
|
||||
/**
|
||||
* @var OrderAuthorizeRequestPaymentSource
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(OrderAuthorizeRequestPaymentSource $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new order authorize request payment source Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new OrderAuthorizeRequestPaymentSource());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets card field.
|
||||
*/
|
||||
public function card(?CardRequest $value): self
|
||||
{
|
||||
$this->instance->setCard($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets token field.
|
||||
*/
|
||||
public function token(?Token $value): self
|
||||
{
|
||||
$this->instance->setToken($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets paypal field.
|
||||
*/
|
||||
public function paypal(?PayPalWallet $value): self
|
||||
{
|
||||
$this->instance->setPaypal($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets apple pay field.
|
||||
*/
|
||||
public function applePay(?ApplePayRequest $value): self
|
||||
{
|
||||
$this->instance->setApplePay($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets google pay field.
|
||||
*/
|
||||
public function googlePay(?GooglePayRequest $value): self
|
||||
{
|
||||
$this->instance->setGooglePay($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets venmo field.
|
||||
*/
|
||||
public function venmo(?VenmoWalletRequest $value): self
|
||||
{
|
||||
$this->instance->setVenmo($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new order authorize request payment source object.
|
||||
*/
|
||||
public function build(): OrderAuthorizeRequestPaymentSource
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
140
src/Models/Builders/OrderAuthorizeResponseBuilder.php
Normal file
140
src/Models/Builders/OrderAuthorizeResponseBuilder.php
Normal file
@@ -0,0 +1,140 @@
|
||||
<?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\OrderAuthorizeResponse;
|
||||
use PaypalServerSDKLib\Models\OrderAuthorizeResponsePaymentSource;
|
||||
use PaypalServerSDKLib\Models\Payer;
|
||||
|
||||
/**
|
||||
* Builder for model OrderAuthorizeResponse
|
||||
*
|
||||
* @see OrderAuthorizeResponse
|
||||
*/
|
||||
class OrderAuthorizeResponseBuilder
|
||||
{
|
||||
/**
|
||||
* @var OrderAuthorizeResponse
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(OrderAuthorizeResponse $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new order authorize response Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new OrderAuthorizeResponse());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets create time field.
|
||||
*/
|
||||
public function createTime(?string $value): self
|
||||
{
|
||||
$this->instance->setCreateTime($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets update time field.
|
||||
*/
|
||||
public function updateTime(?string $value): self
|
||||
{
|
||||
$this->instance->setUpdateTime($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets id field.
|
||||
*/
|
||||
public function id(?string $value): self
|
||||
{
|
||||
$this->instance->setId($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payment source field.
|
||||
*/
|
||||
public function paymentSource(?OrderAuthorizeResponsePaymentSource $value): self
|
||||
{
|
||||
$this->instance->setPaymentSource($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets intent field.
|
||||
*/
|
||||
public function intent(?string $value): self
|
||||
{
|
||||
$this->instance->setIntent($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets processing instruction field.
|
||||
*/
|
||||
public function processingInstruction(?string $value): self
|
||||
{
|
||||
$this->instance->setProcessingInstruction($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payer field.
|
||||
*/
|
||||
public function payer(?Payer $value): self
|
||||
{
|
||||
$this->instance->setPayer($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets purchase units field.
|
||||
*/
|
||||
public function purchaseUnits(?array $value): self
|
||||
{
|
||||
$this->instance->setPurchaseUnits($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets status field.
|
||||
*/
|
||||
public function status(?string $value): self
|
||||
{
|
||||
$this->instance->setStatus($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets links field.
|
||||
*/
|
||||
public function links(?array $value): self
|
||||
{
|
||||
$this->instance->setLinks($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new order authorize response object.
|
||||
*/
|
||||
public function build(): OrderAuthorizeResponse
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
<?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\ApplePayPaymentObject;
|
||||
use PaypalServerSDKLib\Models\CardResponse;
|
||||
use PaypalServerSDKLib\Models\GooglePayWalletResponse;
|
||||
use PaypalServerSDKLib\Models\OrderAuthorizeResponsePaymentSource;
|
||||
use PaypalServerSDKLib\Models\PayPalWalletResponse;
|
||||
use PaypalServerSDKLib\Models\VenmoWalletResponse;
|
||||
|
||||
/**
|
||||
* Builder for model OrderAuthorizeResponsePaymentSource
|
||||
*
|
||||
* @see OrderAuthorizeResponsePaymentSource
|
||||
*/
|
||||
class OrderAuthorizeResponsePaymentSourceBuilder
|
||||
{
|
||||
/**
|
||||
* @var OrderAuthorizeResponsePaymentSource
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(OrderAuthorizeResponsePaymentSource $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new order authorize response payment source Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new OrderAuthorizeResponsePaymentSource());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets card field.
|
||||
*/
|
||||
public function card(?CardResponse $value): self
|
||||
{
|
||||
$this->instance->setCard($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets paypal field.
|
||||
*/
|
||||
public function paypal(?PayPalWalletResponse $value): self
|
||||
{
|
||||
$this->instance->setPaypal($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets apple pay field.
|
||||
*/
|
||||
public function applePay(?ApplePayPaymentObject $value): self
|
||||
{
|
||||
$this->instance->setApplePay($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets google pay field.
|
||||
*/
|
||||
public function googlePay(?GooglePayWalletResponse $value): self
|
||||
{
|
||||
$this->instance->setGooglePay($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets venmo field.
|
||||
*/
|
||||
public function venmo(?VenmoWalletResponse $value): self
|
||||
{
|
||||
$this->instance->setVenmo($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new order authorize response payment source object.
|
||||
*/
|
||||
public function build(): OrderAuthorizeResponsePaymentSource
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
140
src/Models/Builders/OrderBuilder.php
Normal file
140
src/Models/Builders/OrderBuilder.php
Normal file
@@ -0,0 +1,140 @@
|
||||
<?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\Order;
|
||||
use PaypalServerSDKLib\Models\Payer;
|
||||
use PaypalServerSDKLib\Models\PaymentSourceResponse;
|
||||
|
||||
/**
|
||||
* Builder for model Order
|
||||
*
|
||||
* @see Order
|
||||
*/
|
||||
class OrderBuilder
|
||||
{
|
||||
/**
|
||||
* @var Order
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(Order $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new order Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new Order());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets create time field.
|
||||
*/
|
||||
public function createTime(?string $value): self
|
||||
{
|
||||
$this->instance->setCreateTime($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets update time field.
|
||||
*/
|
||||
public function updateTime(?string $value): self
|
||||
{
|
||||
$this->instance->setUpdateTime($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets id field.
|
||||
*/
|
||||
public function id(?string $value): self
|
||||
{
|
||||
$this->instance->setId($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payment source field.
|
||||
*/
|
||||
public function paymentSource(?PaymentSourceResponse $value): self
|
||||
{
|
||||
$this->instance->setPaymentSource($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets intent field.
|
||||
*/
|
||||
public function intent(?string $value): self
|
||||
{
|
||||
$this->instance->setIntent($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets processing instruction field.
|
||||
*/
|
||||
public function processingInstruction(?string $value): self
|
||||
{
|
||||
$this->instance->setProcessingInstruction($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payer field.
|
||||
*/
|
||||
public function payer(?Payer $value): self
|
||||
{
|
||||
$this->instance->setPayer($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets purchase units field.
|
||||
*/
|
||||
public function purchaseUnits(?array $value): self
|
||||
{
|
||||
$this->instance->setPurchaseUnits($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets status field.
|
||||
*/
|
||||
public function status(?string $value): self
|
||||
{
|
||||
$this->instance->setStatus($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets links field.
|
||||
*/
|
||||
public function links(?array $value): self
|
||||
{
|
||||
$this->instance->setLinks($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new order object.
|
||||
*/
|
||||
public function build(): Order
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
58
src/Models/Builders/OrderCaptureRequestBuilder.php
Normal file
58
src/Models/Builders/OrderCaptureRequestBuilder.php
Normal file
@@ -0,0 +1,58 @@
|
||||
<?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\OrderCaptureRequest;
|
||||
use PaypalServerSDKLib\Models\OrderCaptureRequestPaymentSource;
|
||||
|
||||
/**
|
||||
* Builder for model OrderCaptureRequest
|
||||
*
|
||||
* @see OrderCaptureRequest
|
||||
*/
|
||||
class OrderCaptureRequestBuilder
|
||||
{
|
||||
/**
|
||||
* @var OrderCaptureRequest
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(OrderCaptureRequest $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new order capture request Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new OrderCaptureRequest());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payment source field.
|
||||
*/
|
||||
public function paymentSource(?OrderCaptureRequestPaymentSource $value): self
|
||||
{
|
||||
$this->instance->setPaymentSource($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new order capture request object.
|
||||
*/
|
||||
public function build(): OrderCaptureRequest
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
108
src/Models/Builders/OrderCaptureRequestPaymentSourceBuilder.php
Normal file
108
src/Models/Builders/OrderCaptureRequestPaymentSourceBuilder.php
Normal file
@@ -0,0 +1,108 @@
|
||||
<?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\ApplePayRequest;
|
||||
use PaypalServerSDKLib\Models\CardRequest;
|
||||
use PaypalServerSDKLib\Models\GooglePayRequest;
|
||||
use PaypalServerSDKLib\Models\OrderCaptureRequestPaymentSource;
|
||||
use PaypalServerSDKLib\Models\PayPalWallet;
|
||||
use PaypalServerSDKLib\Models\Token;
|
||||
use PaypalServerSDKLib\Models\VenmoWalletRequest;
|
||||
|
||||
/**
|
||||
* Builder for model OrderCaptureRequestPaymentSource
|
||||
*
|
||||
* @see OrderCaptureRequestPaymentSource
|
||||
*/
|
||||
class OrderCaptureRequestPaymentSourceBuilder
|
||||
{
|
||||
/**
|
||||
* @var OrderCaptureRequestPaymentSource
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(OrderCaptureRequestPaymentSource $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new order capture request payment source Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new OrderCaptureRequestPaymentSource());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets card field.
|
||||
*/
|
||||
public function card(?CardRequest $value): self
|
||||
{
|
||||
$this->instance->setCard($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets token field.
|
||||
*/
|
||||
public function token(?Token $value): self
|
||||
{
|
||||
$this->instance->setToken($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets paypal field.
|
||||
*/
|
||||
public function paypal(?PayPalWallet $value): self
|
||||
{
|
||||
$this->instance->setPaypal($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets apple pay field.
|
||||
*/
|
||||
public function applePay(?ApplePayRequest $value): self
|
||||
{
|
||||
$this->instance->setApplePay($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets google pay field.
|
||||
*/
|
||||
public function googlePay(?GooglePayRequest $value): self
|
||||
{
|
||||
$this->instance->setGooglePay($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets venmo field.
|
||||
*/
|
||||
public function venmo(?VenmoWalletRequest $value): self
|
||||
{
|
||||
$this->instance->setVenmo($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new order capture request payment source object.
|
||||
*/
|
||||
public function build(): OrderCaptureRequestPaymentSource
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
<?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\OrderConfirmApplicationContext;
|
||||
use PaypalServerSDKLib\Models\StoredPaymentSource;
|
||||
|
||||
/**
|
||||
* Builder for model OrderConfirmApplicationContext
|
||||
*
|
||||
* @see OrderConfirmApplicationContext
|
||||
*/
|
||||
class OrderConfirmApplicationContextBuilder
|
||||
{
|
||||
/**
|
||||
* @var OrderConfirmApplicationContext
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(OrderConfirmApplicationContext $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new order confirm application context Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new OrderConfirmApplicationContext());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets brand name field.
|
||||
*/
|
||||
public function brandName(?string $value): self
|
||||
{
|
||||
$this->instance->setBrandName($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets locale field.
|
||||
*/
|
||||
public function locale(?string $value): self
|
||||
{
|
||||
$this->instance->setLocale($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets return url field.
|
||||
*/
|
||||
public function returnUrl(?string $value): self
|
||||
{
|
||||
$this->instance->setReturnUrl($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets cancel url field.
|
||||
*/
|
||||
public function cancelUrl(?string $value): self
|
||||
{
|
||||
$this->instance->setCancelUrl($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets stored payment source field.
|
||||
*/
|
||||
public function storedPaymentSource(?StoredPaymentSource $value): self
|
||||
{
|
||||
$this->instance->setStoredPaymentSource($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new order confirm application context object.
|
||||
*/
|
||||
public function build(): OrderConfirmApplicationContext
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
78
src/Models/Builders/OrderRequestBuilder.php
Normal file
78
src/Models/Builders/OrderRequestBuilder.php
Normal file
@@ -0,0 +1,78 @@
|
||||
<?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\OrderApplicationContext;
|
||||
use PaypalServerSDKLib\Models\OrderRequest;
|
||||
use PaypalServerSDKLib\Models\Payer;
|
||||
use PaypalServerSDKLib\Models\PaymentSource;
|
||||
|
||||
/**
|
||||
* Builder for model OrderRequest
|
||||
*
|
||||
* @see OrderRequest
|
||||
*/
|
||||
class OrderRequestBuilder
|
||||
{
|
||||
/**
|
||||
* @var OrderRequest
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(OrderRequest $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new order request Builder object.
|
||||
*/
|
||||
public static function init(string $intent, array $purchaseUnits): self
|
||||
{
|
||||
return new self(new OrderRequest($intent, $purchaseUnits));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payer field.
|
||||
*/
|
||||
public function payer(?Payer $value): self
|
||||
{
|
||||
$this->instance->setPayer($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payment source field.
|
||||
*/
|
||||
public function paymentSource(?PaymentSource $value): self
|
||||
{
|
||||
$this->instance->setPaymentSource($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets application context field.
|
||||
*/
|
||||
public function applicationContext(?OrderApplicationContext $value): self
|
||||
{
|
||||
$this->instance->setApplicationContext($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new order request object.
|
||||
*/
|
||||
public function build(): OrderRequest
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
103
src/Models/Builders/OrderTrackerItemBuilder.php
Normal file
103
src/Models/Builders/OrderTrackerItemBuilder.php
Normal file
@@ -0,0 +1,103 @@
|
||||
<?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\OrderTrackerItem;
|
||||
use PaypalServerSDKLib\Models\UniversalProductCode;
|
||||
|
||||
/**
|
||||
* Builder for model OrderTrackerItem
|
||||
*
|
||||
* @see OrderTrackerItem
|
||||
*/
|
||||
class OrderTrackerItemBuilder
|
||||
{
|
||||
/**
|
||||
* @var OrderTrackerItem
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(OrderTrackerItem $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new order tracker item Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new OrderTrackerItem());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets name field.
|
||||
*/
|
||||
public function name(?string $value): self
|
||||
{
|
||||
$this->instance->setName($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets quantity field.
|
||||
*/
|
||||
public function quantity(?string $value): self
|
||||
{
|
||||
$this->instance->setQuantity($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets sku field.
|
||||
*/
|
||||
public function sku(?string $value): self
|
||||
{
|
||||
$this->instance->setSku($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets url field.
|
||||
*/
|
||||
public function url(?string $value): self
|
||||
{
|
||||
$this->instance->setUrl($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets image url field.
|
||||
*/
|
||||
public function imageUrl(?string $value): self
|
||||
{
|
||||
$this->instance->setImageUrl($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets upc field.
|
||||
*/
|
||||
public function upc(?UniversalProductCode $value): self
|
||||
{
|
||||
$this->instance->setUpc($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new order tracker item object.
|
||||
*/
|
||||
public function build(): OrderTrackerItem
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
93
src/Models/Builders/OrderTrackerRequestBuilder.php
Normal file
93
src/Models/Builders/OrderTrackerRequestBuilder.php
Normal file
@@ -0,0 +1,93 @@
|
||||
<?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\OrderTrackerRequest;
|
||||
|
||||
/**
|
||||
* Builder for model OrderTrackerRequest
|
||||
*
|
||||
* @see OrderTrackerRequest
|
||||
*/
|
||||
class OrderTrackerRequestBuilder
|
||||
{
|
||||
/**
|
||||
* @var OrderTrackerRequest
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(OrderTrackerRequest $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new order tracker request Builder object.
|
||||
*/
|
||||
public static function init(string $captureId): self
|
||||
{
|
||||
return new self(new OrderTrackerRequest($captureId));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets tracking number field.
|
||||
*/
|
||||
public function trackingNumber(?string $value): self
|
||||
{
|
||||
$this->instance->setTrackingNumber($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets carrier field.
|
||||
*/
|
||||
public function carrier(?string $value): self
|
||||
{
|
||||
$this->instance->setCarrier($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets carrier name other field.
|
||||
*/
|
||||
public function carrierNameOther(?string $value): self
|
||||
{
|
||||
$this->instance->setCarrierNameOther($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets notify payer field.
|
||||
*/
|
||||
public function notifyPayer(?bool $value): self
|
||||
{
|
||||
$this->instance->setNotifyPayer($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets items field.
|
||||
*/
|
||||
public function items(?array $value): self
|
||||
{
|
||||
$this->instance->setItems($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new order tracker request object.
|
||||
*/
|
||||
public function build(): OrderTrackerRequest
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
102
src/Models/Builders/OrderTrackerResponseBuilder.php
Normal file
102
src/Models/Builders/OrderTrackerResponseBuilder.php
Normal file
@@ -0,0 +1,102 @@
|
||||
<?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\OrderTrackerResponse;
|
||||
|
||||
/**
|
||||
* Builder for model OrderTrackerResponse
|
||||
*
|
||||
* @see OrderTrackerResponse
|
||||
*/
|
||||
class OrderTrackerResponseBuilder
|
||||
{
|
||||
/**
|
||||
* @var OrderTrackerResponse
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(OrderTrackerResponse $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new order tracker response Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new OrderTrackerResponse());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets id field.
|
||||
*/
|
||||
public function id(?string $value): self
|
||||
{
|
||||
$this->instance->setId($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets status field.
|
||||
*/
|
||||
public function status(?string $value): self
|
||||
{
|
||||
$this->instance->setStatus($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets items field.
|
||||
*/
|
||||
public function items(?array $value): self
|
||||
{
|
||||
$this->instance->setItems($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets links field.
|
||||
*/
|
||||
public function links(?array $value): self
|
||||
{
|
||||
$this->instance->setLinks($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets create time field.
|
||||
*/
|
||||
public function createTime(?string $value): self
|
||||
{
|
||||
$this->instance->setCreateTime($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets update time field.
|
||||
*/
|
||||
public function updateTime(?string $value): self
|
||||
{
|
||||
$this->instance->setUpdateTime($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new order tracker response object.
|
||||
*/
|
||||
public function build(): OrderTrackerResponse
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
102
src/Models/Builders/P24PaymentObjectBuilder.php
Normal file
102
src/Models/Builders/P24PaymentObjectBuilder.php
Normal file
@@ -0,0 +1,102 @@
|
||||
<?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\P24PaymentObject;
|
||||
|
||||
/**
|
||||
* Builder for model P24PaymentObject
|
||||
*
|
||||
* @see P24PaymentObject
|
||||
*/
|
||||
class P24PaymentObjectBuilder
|
||||
{
|
||||
/**
|
||||
* @var P24PaymentObject
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(P24PaymentObject $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new p24 payment object Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new P24PaymentObject());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets name field.
|
||||
*/
|
||||
public function name(?string $value): self
|
||||
{
|
||||
$this->instance->setName($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets email field.
|
||||
*/
|
||||
public function email(?string $value): self
|
||||
{
|
||||
$this->instance->setEmail($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets country code field.
|
||||
*/
|
||||
public function countryCode(?string $value): self
|
||||
{
|
||||
$this->instance->setCountryCode($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payment descriptor field.
|
||||
*/
|
||||
public function paymentDescriptor(?string $value): self
|
||||
{
|
||||
$this->instance->setPaymentDescriptor($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets method id field.
|
||||
*/
|
||||
public function methodId(?string $value): self
|
||||
{
|
||||
$this->instance->setMethodId($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets method description field.
|
||||
*/
|
||||
public function methodDescription(?string $value): self
|
||||
{
|
||||
$this->instance->setMethodDescription($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new p24 payment object object.
|
||||
*/
|
||||
public function build(): P24PaymentObject
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user