1 | <?php |
||
19 | class CommonSchema extends AbstractDecorator implements DecoratorInterface |
||
20 | { |
||
21 | protected $dict = [ |
||
22 | 'merchant' => [ |
||
23 | 'name' => 'string', |
||
24 | ], |
||
25 | 'price' => 'totalNet', |
||
26 | 'acceptedOffer' => [ |
||
27 | [ |
||
28 | 'itemOffered' => [ |
||
29 | 'name' => 'string', |
||
30 | 'sku' => 'string', |
||
31 | 'url' => 'string', |
||
32 | 'image' => 'string', |
||
33 | ], |
||
34 | 'price' => 'string', |
||
35 | 'priceCurrency' => 'string', |
||
36 | 'eligibleQuantity' => [ |
||
37 | 'value' => 'string', |
||
38 | ], |
||
39 | 'seller' => [ |
||
40 | 'name' => 'string', |
||
41 | ], |
||
42 | ], |
||
43 | ], |
||
44 | 'discount' => 'totalDiscount', |
||
45 | 'customer' => [ |
||
46 | 'name' => 'string', |
||
47 | ], |
||
48 | 'billingAddress' => [ |
||
49 | 'name' => 'string', |
||
50 | 'streetAddress' => 'string', |
||
51 | 'addressLocality' => 'string', |
||
52 | 'addressRegion' => 'string', |
||
53 | 'addressCountry' => 'string', |
||
54 | ], |
||
55 | ]; |
||
56 | |||
57 | protected function getMerchant() |
||
68 | |||
69 | protected function getPriceCurrency() |
||
73 | |||
74 | protected function getAcceptedOffer() |
||
78 | |||
79 | protected function getUrl() |
||
82 | |||
83 | protected function getPaymentMethod() |
||
101 | |||
102 | protected function callOrder($key) |
||
119 | |||
120 | 1 | public function toArray() |
|
131 | } |
||
132 |