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

package shared

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

type SourceOpenExchangeRatesUpdate struct {
	// App ID provided by Open Exchange Rates
	AppID string `json:"app_id"`
	// Change base currency (3-letter code, default is USD - only modifiable in paid plans)
	Base *string `default:"USD" json:"base"`
	// Start getting data from that date.
	StartDate string `json:"start_date"`
}

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

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

func (o *SourceOpenExchangeRatesUpdate) GetAppID() string {
	if o == nil {
		return ""
	}
	return o.AppID
}

func (o *SourceOpenExchangeRatesUpdate) GetBase() *string {
	if o == nil {
		return nil
	}
	return o.Base
}

func (o *SourceOpenExchangeRatesUpdate) GetStartDate() string {
	if o == nil {
		return ""
	}
	return o.StartDate
}
