// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package shared

import (
	"github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils"
	"time"
)

type SourceSignnowUpdate struct {
	// Api key which could be found in API section after enlarging keys section
	APIKeyID string `json:"api_key_id"`
	// The authorization token is needed for `signing_links` stream which could be seen from enlarged view of `https://app.signnow.com/webapp/api-dashboard/keys`
	AuthToken string `json:"auth_token"`
	// Name filter for documents stream
	NameFilterForDocuments []any     `json:"name_filter_for_documents,omitempty"`
	StartDate              time.Time `json:"start_date"`
}

func (s SourceSignnowUpdate) MarshalJSON() ([]byte, error) {
	return utils.MarshalJSON(s, "", false)
}

func (s *SourceSignnowUpdate) UnmarshalJSON(data []byte) error {
	if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
		return err
	}
	return nil
}

func (o *SourceSignnowUpdate) GetAPIKeyID() string {
	if o == nil {
		return ""
	}
	return o.APIKeyID
}

func (o *SourceSignnowUpdate) GetAuthToken() string {
	if o == nil {
		return ""
	}
	return o.AuthToken
}

func (o *SourceSignnowUpdate) GetNameFilterForDocuments() []any {
	if o == nil {
		return nil
	}
	return o.NameFilterForDocuments
}

func (o *SourceSignnowUpdate) GetStartDate() time.Time {
	if o == nil {
		return time.Time{}
	}
	return o.StartDate
}
