func (o *ExternalPaymentScheduleBase) SetInterval(v PaymentScheduleInterval) {
	o.Interval = &v
}
SetInterval gets a reference to the given PaymentScheduleInterval and assigns it to the Interval field.
package plaid
import (
	"encoding/json"
)
type ExternalPaymentScheduleBase struct {
	Interval *PaymentScheduleInterval `json:"interval,omitempty"`
	IntervalExecutionDay *int32 `json:"interval_execution_day,omitempty"`
	StartDate *string `json:"start_date,omitempty"`
	EndDate NullableString `json:"end_date,omitempty"`
	AdjustedStartDate NullableString `json:"adjusted_start_date,omitempty"`
	AdditionalProperties map[string]interface{}
}
type _ExternalPaymentScheduleBase ExternalPaymentScheduleBase
func NewExternalPaymentScheduleBase() *ExternalPaymentScheduleBase {
	this := ExternalPaymentScheduleBase{}
	return &this
}
func NewExternalPaymentScheduleBaseWithDefaults() *ExternalPaymentScheduleBase {
	this := ExternalPaymentScheduleBase{}
	return &this
}
func (o *ExternalPaymentScheduleBase) GetInterval() PaymentScheduleInterval {
	if o == nil || o.Interval == nil {
		var ret PaymentScheduleInterval
		return ret
	}
	return *o.Interval
}
func (o *ExternalPaymentScheduleBase) GetIntervalOk() (*PaymentScheduleInterval, bool) {
	if o == nil || o.Interval == nil {
		return nil, false
	}
	return o.Interval, true
}
func (o *ExternalPaymentScheduleBase) HasInterval() bool {
	if o != nil && o.Interval != nil {
		return true
	}
	return false
}