Completed
Push — master ( 854a91...e7b6df )
by Gilmar
31:05 queued 06:02
created

Order::getSchema()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 23
Code Lines 20

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 23
ccs 0
cts 23
cp 0
rs 9.0856
cc 1
eloc 20
nc 1
nop 0
crap 2
1
<?php
2
3
/*
4
 * This file is part of gpupo/netshoes-sdk
5
 * Created by Gilmar Pupo <[email protected]>
6
 * For the information of copyright and license you should read the file
7
 * LICENSE which is distributed with this source code.
8
 * Para a informação dos direitos autorais e de licença você deve ler o arquivo
9
 * LICENSE que é distribuído com este código-fonte.
10
 * Para obtener la información de los derechos de autor y la licencia debe leer
11
 * el archivo LICENSE que se distribuye con el código fuente.
12
 * For more information, see <http://www.g1mr.com/>.
13
 */
14
15
namespace Gpupo\NetshoesSdk\Entity\Order;
16
17
use Gpupo\CommonSdk\Entity\EntityAbstract;
18
use Gpupo\CommonSdk\Entity\EntityInterface;
19
20
/**
21
 *
22
 * @method string getAgreedDate()    Acesso a agreedDate
23
 * @method setAgreedDate(string $agreedDate)    Define agreedDate
24
 * @method string getBusinessUnit()    Acesso a businessUnit
25
 * @method setBusinessUnit(string $businessUnit)    Define businessUnit
26
 * @method boolean getDevolutionRequested()    Acesso a devolutionRequested
27
 * @method setDevolutionRequested(boolean $devolutionRequested)    Define devolutionRequested
28
 * @method boolean getExchangeRequested()    Acesso a exchangeRequested
29
 * @method setExchangeRequested(boolean $exchangeRequested)    Define exchangeRequested
30
 * @method string getOrderDate()    Acesso a orderDate
31
 * @method setOrderDate(string $orderDate)    Define orderDate
32
 * @method string getOrderNumber()    Acesso a orderNumber
33
 * @method setOrderNumber(string $orderNumber)    Define orderNumber
34
 * @method string getOrderStatus()    Acesso a orderStatus
35
 * @method setOrderStatus(string $orderStatus)    Define orderStatus
36
 * @method string getOrderType()    Acesso a orderType
37
 * @method setOrderType(string $orderType)    Define orderType
38
 * @method string getOriginNumber()    Acesso a originNumber
39
 * @method setOriginNumber(string $originNumber)    Define originNumber
40
 * @method string getOriginSite()    Acesso a originSite
41
 * @method setOriginSite(string $originSite)    Define originSite
42
 * @method string getPaymentDate()    Acesso a paymentDate
43
 * @method setPaymentDate(string $paymentDate)    Define paymentDate
44
 * @method Gpupo\NetshoesSdk\Entity\Order\Shippings\Shippings getShippings()    Acesso a shippings
45
 * @method setShippings(Gpupo\NetshoesSdk\Entity\Order\Shippings\Shippings $shippings)    Define shippings
46
 * @method float getTotalCommission()    Acesso a totalCommission
47
 * @method setTotalCommission(float $totalCommission)    Define totalCommission
48
 * @method float getTotalDiscount()    Acesso a totalDiscount
49
 * @method setTotalDiscount(float $totalDiscount)    Define totalDiscount
50
 * @method float getTotalFreight()    Acesso a totalFreight
51
 * @method setTotalFreight(float $totalFreight)    Define totalFreight
52
 * @method float getTotalGross()    Acesso a totalGross
53
 * @method setTotalGross(float $totalGross)    Define totalGross
54
 * @method float getTotalNet()    Acesso a totalNet
55
 * @method setTotalNet(float $totalNet)    Define totalNet
56
 * @method float getTotalQuantity()    Acesso a totalQuantity
57
 * @method setTotalQuantity(float $totalQuantity)    Define totalQuantity
58
 *
59
 */
60
class Order extends EntityAbstract implements EntityInterface
61
{
62
    protected $primaryKey = 'orderNumber';
63
64
    public function getSchema()
65
    {
66
        return [
67
            'agreedDate'          => 'string',
68
            'businessUnit'        => 'string',
69
            'devolutionRequested' => 'boolean',
70
            'exchangeRequested'   => 'boolean',
71
            'orderDate'           => 'string',
72
            'orderNumber'         => 'string',
73
            'orderStatus'         => 'string',
74
            'orderType'           => 'string',
75
            'originNumber'        => 'string',
76
            'originSite'          => 'string',
77
            'paymentDate'         => 'string',
78
            'shippings'           => 'object',
79
            'totalCommission'     => 'number',
80
            'totalDiscount'       => 'number',
81
            'totalFreight'        => 'number',
82
            'totalGross'          => 'number',
83
            'totalNet'            => 'number',
84
            'totalQuantity'       => 'number',
85
        ];
86
    }
87
}
88