Repository: seratch/notion-sdk-jvm (kotlin)

Issue:
Add support for rollup -> date properties
This is the representation for those kind of properties in the API:

```json
"PropertyName": {"id":"XYZ","type":"rollup","rollup":{"type":"date","date":{"start":"2023-03-09T00:00:00.000+00:00","end":null,"time_zone":null},"function":"latest_date"}}
```

Should be a relatively small change in `PageProperty.Rollup` to include the already present Date type.

Pull request description:
Fix #107 adding a new date property to rollup types.

Patch:
diff --git a/core/src/main/kotlin/notion/api/v1/model/pages/PageProperty.kt b/core/src/main/kotlin/notion/api/v1/model/pages/PageProperty.kt
index 23d49b4..d3f1ab5 100644
--- a/core/src/main/kotlin/notion/api/v1/model/pages/PageProperty.kt
+++ b/core/src/main/kotlin/notion/api/v1/model/pages/PageProperty.kt
@@ -106,5 +106,6 @@ constructor(
       val number: Number? = null,
       val array: List<PageProperty>? = null,
       val function: String? = null,
+      val date: Date? = null,
   )
 }


Test patch:
diff --git a/core/src/test/kotlin/tests/model/PagesTest.kt b/core/src/test/kotlin/tests/model/PagesTest.kt
index c74bd66..47a6d93 100644
--- a/core/src/test/kotlin/tests/model/PagesTest.kt
+++ b/core/src/test/kotlin/tests/model/PagesTest.kt
@@ -44,6 +44,19 @@ class PagesTest {
         }
       ]
     },
+    "Rollup Property": {
+      "id": "da010d01-6406-43d1-ae03-4b4b6989bbd9",
+      "type": "rollup",
+      "rollup": {
+        "type": "date",
+        "function": "opaque_value",
+        "date": {
+          "start": "2023-03-09T00:00:00.000+00:00",
+          "end": null,
+          "time_zone": null
+        }
+      }
+    },
     "Due": {
       "id": "da010d01-6406-43d1-ae03-4b4b6989bbd8",
       "date": {