| @@ 45-71 (lines=27) @@ | ||
| 42 | * @method int getDeleteDaysAfterLastModification() |
|
| 43 | * @method ShoppingList setDeleteDaysAfterLastModification(int $deleteDaysAfterLastModification = null) |
|
| 44 | */ |
|
| 45 | class ShoppingList extends JsonObject |
|
| 46 | { |
|
| 47 | public function fieldDefinitions() |
|
| 48 | { |
|
| 49 | return [ |
|
| 50 | 'id' => [static::TYPE => 'string'], |
|
| 51 | 'key' => [static::TYPE => 'string'], |
|
| 52 | 'version' => [static::TYPE => 'int'], |
|
| 53 | 'createdAt' => [ |
|
| 54 | static::TYPE => DateTime::class, |
|
| 55 | static::DECORATOR => DateTimeDecorator::class |
|
| 56 | ], |
|
| 57 | 'lastModifiedAt' => [ |
|
| 58 | static::TYPE => DateTime::class, |
|
| 59 | static::DECORATOR => DateTimeDecorator::class |
|
| 60 | ], |
|
| 61 | 'slug' => [static::TYPE => LocalizedString::class], |
|
| 62 | 'name' => [static::TYPE => LocalizedString::class], |
|
| 63 | 'description' => [static::TYPE => LocalizedString::class], |
|
| 64 | 'customer' => [static::TYPE => CustomerReference::class], |
|
| 65 | 'lineItems' => [static::TYPE => LineItemCollection::class], |
|
| 66 | 'textLineItems' => [static::TYPE => TextLineItemCollection::class], |
|
| 67 | 'custom' => [static::TYPE => CustomFieldObject::class], |
|
| 68 | 'deleteDaysAfterLastModification' => [static::TYPE => 'int'] |
|
| 69 | ]; |
|
| 70 | } |
|
| 71 | } |
|
| 72 | ||
| @@ 50-76 (lines=27) @@ | ||
| 47 | * @method string getKey() |
|
| 48 | * @method PaymentDraft setKey(string $key = null) |
|
| 49 | */ |
|
| 50 | class PaymentDraft extends JsonObject |
|
| 51 | { |
|
| 52 | public function fieldDefinitions() |
|
| 53 | { |
|
| 54 | return [ |
|
| 55 | 'key' => [static::TYPE => 'string'], |
|
| 56 | 'customer' => [static::TYPE => CustomerReference::class], |
|
| 57 | 'externalId' => [static::TYPE => 'string'], |
|
| 58 | 'interfaceId' => [static::TYPE => 'string'], |
|
| 59 | 'amountPlanned' => [static::TYPE => Money::class], |
|
| 60 | 'amountAuthorized' => [static::TYPE => Money::class], |
|
| 61 | 'authorizedUntil' => [ |
|
| 62 | static::TYPE => DateTime::class, |
|
| 63 | static::DECORATOR => DateTimeDecorator::class |
|
| 64 | ], |
|
| 65 | 'amountPaid' => [static::TYPE => Money::class], |
|
| 66 | 'amountRefunded' => [static::TYPE => Money::class], |
|
| 67 | 'paymentMethodInfo' => [static::TYPE => PaymentMethodInfo::class], |
|
| 68 | 'custom' => [static::TYPE => CustomFieldObjectDraft::class], |
|
| 69 | 'paymentStatus' => [static::TYPE => PaymentStatus::class], |
|
| 70 | 'transactions' => [static::TYPE => TransactionCollection::class], |
|
| 71 | 'interfaceInteractions' => [ |
|
| 72 | static::TYPE => CustomFieldObjectDraftCollection::class |
|
| 73 | ], |
|
| 74 | ]; |
|
| 75 | } |
|
| 76 | } |
|
| 77 | ||