From 61f9976fedc1678874a1410dad4de1a75af00683 Mon Sep 17 00:00:00 2001 From: Deep Singhvi Date: Wed, 7 Feb 2024 12:30:38 -0500 Subject: [PATCH] (fix): Temporarily change `startsAt` and `endsAt` types to `string*` (#29) * Update credentials.go * fix compile breaks and fernignore --- .fernignore | 3 +++ acs/credentials.go | 5 ++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.fernignore b/.fernignore index 5bbec8f..4f51daf 100644 --- a/.fernignore +++ b/.fernignore @@ -5,6 +5,9 @@ README.md # Integration Tests test/ +# ISO Datetime Serialization +acs/credentials.go + # ci.yml installs Fake Seam .github/workflows/ci.yml diff --git a/acs/credentials.go b/acs/credentials.go index d081954..042efe9 100644 --- a/acs/credentials.go +++ b/acs/credentials.go @@ -6,7 +6,6 @@ import ( json "encoding/json" fmt "fmt" core "github.com/seamapi/go/core" - time "time" ) type CredentialsAssignRequest struct { @@ -21,8 +20,8 @@ type CredentialsCreateRequest struct { IsMultiPhoneSyncCredential *bool `json:"is_multi_phone_sync_credential,omitempty"` ExternalType *CredentialsCreateRequestExternalType `json:"external_type,omitempty"` VisionlineMetadata *CredentialsCreateRequestVisionlineMetadata `json:"visionline_metadata,omitempty"` - StartsAt *time.Time `json:"starts_at,omitempty"` - EndsAt *time.Time `json:"ends_at,omitempty"` + StartsAt *string `json:"starts_at,omitempty"` + EndsAt *string `json:"ends_at,omitempty"` } type CredentialsDeleteRequest struct {