Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
192 changes: 192 additions & 0 deletions src/Model/Entity/Payments/ApiGetInvoiceResponse.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,192 @@
<?php

/**
* PHP version 7.3
*
* @category ApiGetInvoiceResponse
* @package RetailCrm\Api\Model\Entity\Payments
*/

namespace RetailCrm\Api\Model\Entity\Payments;

use RetailCrm\Api\Component\Serializer\Annotation as JMS;
use RetailCrm\Api\Model\Response\SuccessResponse;

class ApiGetInvoiceResponse
{
/**
* @var string
*
* @JMS\Type("string")
* @JMS\SerializedName("createdAt")
*/
public $createdAt;

/**
* @var int
*
* @JMS\Type("integer")
* @JMS\SerializedName("customerId")
*/
public $customerId;

/**
* @var int
*
* @JMS\Type("integer")
* @JMS\SerializedName("orderId")
*/
public $orderId;

/**
* @var string
*
* @JMS\Type("string")
* @JMS\SerializedName("paymentId")
*/
public $paymentId;

/**
* @var string
*
* @JMS\Type("string")
* @JMS\SerializedName("amount")
*/
public $amount;

/**
* @var string
*
* @JMS\Type("string")
* @JMS\SerializedName("currency")
*/
public $currency;

/**
* @var string
*
* @JMS\Type("string")
* @JMS\SerializedName("email")
*/
public $email;

/**
* @var string
*
* @JMS\Type("string")
* @JMS\SerializedName("phone")
*/
public $phone;

/**
* @var string
*
* @JMS\Type("string")
* @JMS\SerializedName("status")
*/
public $status;

/**
* @var string
*
* @JMS\Type("string")
* @JMS\SerializedName("statusMessage")
*/
public $statusMessage;

/**
* @var string
*
* @JMS\Type("string")
* @JMS\SerializedName("externalId")
*/
public $externalId;

/**
* @var string
*
* @JMS\Type("string")
* @JMS\SerializedName("invoiceUuid")
*/
public $invoiceUuid;

/**
* @var string
*
* @JMS\Type("string")
* @JMS\SerializedName("invoiceType")
*/
public $invoiceType;

/**
* @var string
*
* @JMS\Type("string")
* @JMS\SerializedName("link")
*/
public $link;

/**
* @var string
*
* @JMS\Type("string")
* @JMS\SerializedName("errorMsg")
*/
public $errorMsg;

/**
* @var string
*
* @JMS\Type("string")
* @JMS\SerializedName("paidAt")
*/
public $paidAt;

/**
* @var string
*
* @JMS\Type("string")
* @JMS\SerializedName("expiredAt")
*/
public $expiredAt;

/**
* @var string
*
* @JMS\Type("string")
* @JMS\SerializedName("cancellationDetails")
*/
public $cancellationDetails;

/**
* @var bool
*
* @JMS\Type("bool")
* @JMS\SerializedName("refundable")
*/
public $refundable;

/**
* @var bool
*
* @JMS\Type("bool")
* @JMS\SerializedName("cancellable")
*/
public $cancellable;

/**
* @var \RetailCrm\Api\Model\Entity\Payments\PaymentRefund[]
*
* @JMS\Type("array<RetailCrm\Api\Model\Entity\Payments\PaymentRefund>")
* @JMS\SerializedName("refunds")
*/
public $refunds;

/**
* @var float
*
* @JMS\Type("float")
* @JMS\SerializedName("discountAmount")
*/
public $discountAmount;
}
45 changes: 45 additions & 0 deletions src/Model/Entity/Payments/ApiImportInvoicePaymentRefund.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?php

/**
* PHP version 7.3
*
* @category ApiImportInvoicePaymentRefund
* @package RetailCrm\Api\Model\Entity\Payments
*/

namespace RetailCrm\Api\Model\Entity\Payments;

use RetailCrm\Api\Component\Serializer\Annotation as JMS;

/**
* Class ApiImportInvoicePaymentRefund
*
* @category ApiImportInvoicePaymentRefund
* @package RetailCrm\Api\Model\Entity\Payments
*/
class ApiImportInvoicePaymentRefund extends PaymentRefund
{
/**
* @var string
*
* @JMS\Type("string")
* @JMS\SerializedName("status")
*/
public $status;

/**
* @var string
*
* @JMS\Type("string")
* @JMS\SerializedName("comment")
*/
public $comment;

/**
* @var float
*
* @JMS\Type("float")
* @JMS\SerializedName("amount")
*/
public $amount;
}
101 changes: 101 additions & 0 deletions src/Model/Entity/Payments/ApiImportInvoiceRequest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
<?php

/**
* PHP version 7.3
*
* @category ApiImportInvoiceRequest
* @package RetailCrm\Api\Model\Entity\Payments
*/

namespace RetailCrm\Api\Model\Entity\Payments;

use RetailCrm\Api\Component\Serializer\Annotation as JMS;

/**
* Class ApiImportInvoiceRequest
*
* @category ApiImportInvoiceRequest
* @package RetailCrm\Api\Model\Entity\Payments
*/
class ApiImportInvoiceRequest
{
/**
* @var int
*
* @JMS\Type("int")
* @JMS\SerializedName("paymentId")
*/
public $paymentId;

/**
* @var string
*
* @JMS\Type("string")
* @JMS\SerializedName("externalId")
*/
public $externalId;

/**
* @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("status")
*/
public $status;

/**
* @var string
*
* @JMS\Type("string")
* @JMS\SerializedName("createdAt")
*/
public $createdAt;

/**
* @var string
*
* @JMS\Type("string")
* @JMS\SerializedName("paidAt")
*/
public $paidAt;

/**
* @var float
*
* @JMS\Type("float")
* @JMS\SerializedName("discountAmount")
*/
public $discountAmount;

/**
* @var \RetailCrm\Api\Model\Entity\Payments\ApiImportInvoicePaymentRefund[]
*
* @JMS\Type("array<RetailCrm\Api\Model\Entity\Payments\ApiImportInvoicePaymentRefund>")
* @JMS\SerializedName("refunds")
*/
public $refunds;

/**
* @var bool
*
* @JMS\Type("bool")
* @JMS\SerializedName("refundable")
*/
public $refundable;
}
29 changes: 29 additions & 0 deletions src/Model/Entity/Payments/ApiImportInvoiceResponse.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php

/**
* PHP version 7.3
*
* @category ApiImportInvoiceResponse
* @package RetailCrm\Api\Model\Entity\Payments
*/

namespace RetailCrm\Api\Model\Entity\Payments;

use RetailCrm\Api\Component\Serializer\Annotation as JMS;

/**
* Class ApiImportInvoiceResponse
*
* @category ApiImportInvoiceResponse
* @package RetailCrm\Api\Model\Entity\Payments
*/
class ApiImportInvoiceResponse
{
/**
* @var string
*
* @JMS\Type("string")
* @JMS\SerializedName("invoiceUuid")
*/
public $invoiceUuid;
}
Loading