From adf9736100d7762ba3891cf3eb03e0a1ff6253aa Mon Sep 17 00:00:00 2001 From: webeweb Date: Fri, 6 May 2022 09:21:50 +0200 Subject: [PATCH] Add raw data serializer key --- src/serializer/SerializerKeys.php | 7 +++++++ tests/serializer/SerializerKeysTest.php | 1 + 2 files changed, 8 insertions(+) diff --git a/src/serializer/SerializerKeys.php b/src/serializer/SerializerKeys.php index e2d9061bc..aefcaea46 100644 --- a/src/serializer/SerializerKeys.php +++ b/src/serializer/SerializerKeys.php @@ -845,6 +845,13 @@ interface SerializerKeys { */ const RATE = "rate"; + /** + * Serializer key "raw data". + * + * @var string + */ + const RAW_DATA = "rawData"; + /** * Serializer key "raw response". * diff --git a/tests/serializer/SerializerKeysTest.php b/tests/serializer/SerializerKeysTest.php index 2d85dbb46..6edf4b0d9 100644 --- a/tests/serializer/SerializerKeysTest.php +++ b/tests/serializer/SerializerKeysTest.php @@ -145,6 +145,7 @@ public function test__construct(): void { $this->assertEquals("quantity", SerializerKeys::QUANTITY); $this->assertEquals("query", SerializerKeys::QUERY); $this->assertEquals("rate", SerializerKeys::RATE); + $this->assertEquals("rawData", SerializerKeys::RAW_DATA); $this->assertEquals("rawResponse", SerializerKeys::RAW_RESPONSE); $this->assertEquals("ready", SerializerKeys::READY); $this->assertEquals("reference", SerializerKeys::REFERENCE);