From fe3dd0134ac2533f198d86621c102b14a4767b5c Mon Sep 17 00:00:00 2001 From: Neur0toxine Date: Wed, 25 Aug 2021 15:34:01 +0300 Subject: [PATCH] payment create model --- src/Enum/Payments/PaymentInvoiceType.php | 21 ++++ src/Model/Callback/Entity/Payments/Create.php | 109 ++++++++++++++++++ src/Model/Callback/Response/Payments/Item.php | 8 ++ 3 files changed, 138 insertions(+) create mode 100644 src/Enum/Payments/PaymentInvoiceType.php create mode 100644 src/Model/Callback/Entity/Payments/Create.php diff --git a/src/Enum/Payments/PaymentInvoiceType.php b/src/Enum/Payments/PaymentInvoiceType.php new file mode 100644 index 0000000..8a96faf --- /dev/null +++ b/src/Enum/Payments/PaymentInvoiceType.php @@ -0,0 +1,21 @@ +") + * @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; +} diff --git a/src/Model/Callback/Response/Payments/Item.php b/src/Model/Callback/Response/Payments/Item.php index 60b354d..47d85db 100644 --- a/src/Model/Callback/Response/Payments/Item.php +++ b/src/Model/Callback/Response/Payments/Item.php @@ -82,4 +82,12 @@ class Item * @JMS\SerializedName("productCode") */ public $productCode; + + /** + * @var string + * + * @JMS\Type("string") + * @JMS\SerializedName("markingCode") + */ + public $markingCode; }