| @@ 37-50 (lines=14) @@ | ||
| 34 | const REFUND = 'Refund'; |
|
| 35 | const CHARGE_BACK = 'Chargeback'; |
|
| 36 | ||
| 37 | public function fieldDefinitions() |
|
| 38 | { |
|
| 39 | return [ |
|
| 40 | 'id' => [static::TYPE => 'string'], |
|
| 41 | 'state' => [static::TYPE => 'string'], |
|
| 42 | 'timestamp' => [ |
|
| 43 | static::TYPE => '\DateTime', |
|
| 44 | static::DECORATOR => '\Commercetools\Core\Model\Common\DateTimeDecorator' |
|
| 45 | ], |
|
| 46 | 'type' => [static::TYPE => 'string'], |
|
| 47 | 'amount' => [static::TYPE => '\Commercetools\Core\Model\Common\Money'], |
|
| 48 | 'interactionId' => [static::TYPE => 'string'], |
|
| 49 | ]; |
|
| 50 | } |
|
| 51 | } |
|
| 52 | ||
| @@ 28-38 (lines=11) @@ | ||
| 25 | */ |
|
| 26 | class TaxRate extends JsonObject |
|
| 27 | { |
|
| 28 | public function fieldDefinitions() |
|
| 29 | { |
|
| 30 | return [ |
|
| 31 | 'id' => [self::TYPE => 'string'], |
|
| 32 | 'name' => [self::TYPE => 'string'], |
|
| 33 | 'amount' => [self::TYPE => 'float'], |
|
| 34 | 'includedInPrice' => [self::TYPE => 'bool'], |
|
| 35 | 'country' => [self::TYPE => 'string'], |
|
| 36 | 'state' => [self::TYPE => 'string'] |
|
| 37 | ]; |
|
| 38 | } |
|
| 39 | } |
|
| 40 | ||