payment create model
This commit is contained in:
parent
3d666332c3
commit
fe3dd0134a
21
src/Enum/Payments/PaymentInvoiceType.php
Normal file
21
src/Enum/Payments/PaymentInvoiceType.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* PHP 7.3
|
||||
*
|
||||
* @category PaymentInvoiceType
|
||||
* @package RetailCrm\Api\Enum\Payments
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Api\Enum\Payments;
|
||||
|
||||
/**
|
||||
* Class PaymentInvoiceType
|
||||
*
|
||||
* @category PaymentInvoiceType
|
||||
* @package RetailCrm\Api\Enum\Payments
|
||||
*/
|
||||
final class PaymentInvoiceType
|
||||
{
|
||||
public const LINK = 'link';
|
||||
}
|
109
src/Model/Callback/Entity/Payments/Create.php
Normal file
109
src/Model/Callback/Entity/Payments/Create.php
Normal file
@ -0,0 +1,109 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* PHP 7.3
|
||||
*
|
||||
* @category Create
|
||||
* @package RetailCrm\Api\Model\Callback\Entity\Payments
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Api\Model\Callback\Entity\Payments;
|
||||
|
||||
use RetailCrm\Api\Component\Serializer\Annotation as JMS;
|
||||
|
||||
/**
|
||||
* Class Create
|
||||
*
|
||||
* @category Create
|
||||
* @package RetailCrm\Api\Model\Callback\Entity\Payments
|
||||
*/
|
||||
class Create
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @JMS\Type("string")
|
||||
* @JMS\SerializedName("shopId")
|
||||
*/
|
||||
public $shopId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @JMS\Type("string")
|
||||
* @JMS\SerializedName("invoiceUuid")
|
||||
*/
|
||||
public $invoiceUuid;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @JMS\Type("string")
|
||||
* @JMS\SerializedName("invoiceType")
|
||||
*/
|
||||
public $invoiceType;
|
||||
|
||||
/**
|
||||
* @var float
|
||||
*
|
||||
* @JMS\Type("float")
|
||||
* @JMS\SerializedName("amount")
|
||||
*/
|
||||
public $amount;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @JMS\Type("string")
|
||||
* @JMS\SerializedName("currency")
|
||||
*/
|
||||
public $currency;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @JMS\Type("string")
|
||||
* @JMS\SerializedName("orderNumber")
|
||||
*/
|
||||
public $orderNumber;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @JMS\Type("int")
|
||||
* @JMS\SerializedName("orderId")
|
||||
*/
|
||||
public $orderId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @JMS\Type("string")
|
||||
* @JMS\SerializedName("siteUrl")
|
||||
*/
|
||||
public $siteUrl;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @JMS\Type("string")
|
||||
* @JMS\SerializedName("returnUrl")
|
||||
*/
|
||||
public $returnUrl;
|
||||
|
||||
/**
|
||||
* @var \RetailCrm\Api\Model\Callback\Response\Payments\Item[]
|
||||
*
|
||||
* @JMS\Type("array<RetailCrm\Api\Model\Callback\Response\Payments\Item>")
|
||||
* @JMS\SerializedName("items")
|
||||
*/
|
||||
public $items;
|
||||
|
||||
/**
|
||||
* @var \RetailCrm\Api\Model\Entity\Customers\Customer
|
||||
*
|
||||
* @JMS\Type("RetailCrm\Api\Model\Entity\Customers\Customer")
|
||||
* @JMS\SerializedName("customer")
|
||||
*/
|
||||
public $customer;
|
||||
}
|
@ -82,4 +82,12 @@ class Item
|
||||
* @JMS\SerializedName("productCode")
|
||||
*/
|
||||
public $productCode;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @JMS\Type("string")
|
||||
* @JMS\SerializedName("markingCode")
|
||||
*/
|
||||
public $markingCode;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user