1
0
mirror of synced 2024-11-21 21:06:07 +03:00

payment create model

This commit is contained in:
Pavel 2021-08-25 15:34:01 +03:00
parent 3d666332c3
commit fe3dd0134a
3 changed files with 138 additions and 0 deletions

View 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';
}

View 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;
}

View File

@ -82,4 +82,12 @@ class Item
* @JMS\SerializedName("productCode") * @JMS\SerializedName("productCode")
*/ */
public $productCode; public $productCode;
/**
* @var string
*
* @JMS\Type("string")
* @JMS\SerializedName("markingCode")
*/
public $markingCode;
} }