mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
687 lines
21 KiB
Go
687 lines
21 KiB
Go
/*
|
|
Hanzo Cloud API
|
|
|
|
The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
|
|
|
|
API version: v1
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package hanzoai
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// checks if the CaptableCaptableOptionIn type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &CaptableCaptableOptionIn{}
|
|
|
|
// CaptableCaptableOptionIn struct for CaptableCaptableOptionIn
|
|
type CaptableCaptableOptionIn struct {
|
|
BoardApprovalDate interface{} `json:"boardApprovalDate,omitempty"`
|
|
CliffYears interface{} `json:"cliffYears,omitempty"`
|
|
EquityPlanId interface{} `json:"equityPlanId,omitempty"`
|
|
ExercisePrice interface{} `json:"exercisePrice,omitempty"`
|
|
ExpirationDate interface{} `json:"expirationDate,omitempty"`
|
|
GrantId interface{} `json:"grantId,omitempty"`
|
|
IssueDate interface{} `json:"issueDate,omitempty"`
|
|
Notes interface{} `json:"notes,omitempty"`
|
|
Quantity interface{} `json:"quantity,omitempty"`
|
|
Rule144Date interface{} `json:"rule144Date,omitempty"`
|
|
StakeholderId interface{} `json:"stakeholderId,omitempty"`
|
|
Status interface{} `json:"status,omitempty"`
|
|
Type interface{} `json:"type,omitempty"`
|
|
VestingStartDate interface{} `json:"vestingStartDate,omitempty"`
|
|
VestingYears interface{} `json:"vestingYears,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _CaptableCaptableOptionIn CaptableCaptableOptionIn
|
|
|
|
// NewCaptableCaptableOptionIn instantiates a new CaptableCaptableOptionIn object
|
|
// This constructor will assign default values to properties that have it defined,
|
|
// and makes sure properties required by API are set, but the set of arguments
|
|
// will change when the set of required properties is changed
|
|
func NewCaptableCaptableOptionIn() *CaptableCaptableOptionIn {
|
|
this := CaptableCaptableOptionIn{}
|
|
return &this
|
|
}
|
|
|
|
// NewCaptableCaptableOptionInWithDefaults instantiates a new CaptableCaptableOptionIn object
|
|
// This constructor will only assign default values to properties that have it defined,
|
|
// but it doesn't guarantee that properties required by API are set
|
|
func NewCaptableCaptableOptionInWithDefaults() *CaptableCaptableOptionIn {
|
|
this := CaptableCaptableOptionIn{}
|
|
return &this
|
|
}
|
|
|
|
// GetBoardApprovalDate returns the BoardApprovalDate field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableOptionIn) GetBoardApprovalDate() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
return ret
|
|
}
|
|
return o.BoardApprovalDate
|
|
}
|
|
|
|
// GetBoardApprovalDateOk returns a tuple with the BoardApprovalDate field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
|
func (o *CaptableCaptableOptionIn) GetBoardApprovalDateOk() (*interface{}, bool) {
|
|
if o == nil || IsNil(o.BoardApprovalDate) {
|
|
return nil, false
|
|
}
|
|
return &o.BoardApprovalDate, true
|
|
}
|
|
|
|
// HasBoardApprovalDate returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableOptionIn) HasBoardApprovalDate() bool {
|
|
if o != nil && !IsNil(o.BoardApprovalDate) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetBoardApprovalDate gets a reference to the given interface{} and assigns it to the BoardApprovalDate field.
|
|
func (o *CaptableCaptableOptionIn) SetBoardApprovalDate(v interface{}) {
|
|
o.BoardApprovalDate = v
|
|
}
|
|
|
|
// GetCliffYears returns the CliffYears field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableOptionIn) GetCliffYears() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
return ret
|
|
}
|
|
return o.CliffYears
|
|
}
|
|
|
|
// GetCliffYearsOk returns a tuple with the CliffYears field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
|
func (o *CaptableCaptableOptionIn) GetCliffYearsOk() (*interface{}, bool) {
|
|
if o == nil || IsNil(o.CliffYears) {
|
|
return nil, false
|
|
}
|
|
return &o.CliffYears, true
|
|
}
|
|
|
|
// HasCliffYears returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableOptionIn) HasCliffYears() bool {
|
|
if o != nil && !IsNil(o.CliffYears) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCliffYears gets a reference to the given interface{} and assigns it to the CliffYears field.
|
|
func (o *CaptableCaptableOptionIn) SetCliffYears(v interface{}) {
|
|
o.CliffYears = v
|
|
}
|
|
|
|
// GetEquityPlanId returns the EquityPlanId field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableOptionIn) GetEquityPlanId() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
return ret
|
|
}
|
|
return o.EquityPlanId
|
|
}
|
|
|
|
// GetEquityPlanIdOk returns a tuple with the EquityPlanId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
|
func (o *CaptableCaptableOptionIn) GetEquityPlanIdOk() (*interface{}, bool) {
|
|
if o == nil || IsNil(o.EquityPlanId) {
|
|
return nil, false
|
|
}
|
|
return &o.EquityPlanId, true
|
|
}
|
|
|
|
// HasEquityPlanId returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableOptionIn) HasEquityPlanId() bool {
|
|
if o != nil && !IsNil(o.EquityPlanId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetEquityPlanId gets a reference to the given interface{} and assigns it to the EquityPlanId field.
|
|
func (o *CaptableCaptableOptionIn) SetEquityPlanId(v interface{}) {
|
|
o.EquityPlanId = v
|
|
}
|
|
|
|
// GetExercisePrice returns the ExercisePrice field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableOptionIn) GetExercisePrice() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
return ret
|
|
}
|
|
return o.ExercisePrice
|
|
}
|
|
|
|
// GetExercisePriceOk returns a tuple with the ExercisePrice field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
|
func (o *CaptableCaptableOptionIn) GetExercisePriceOk() (*interface{}, bool) {
|
|
if o == nil || IsNil(o.ExercisePrice) {
|
|
return nil, false
|
|
}
|
|
return &o.ExercisePrice, true
|
|
}
|
|
|
|
// HasExercisePrice returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableOptionIn) HasExercisePrice() bool {
|
|
if o != nil && !IsNil(o.ExercisePrice) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetExercisePrice gets a reference to the given interface{} and assigns it to the ExercisePrice field.
|
|
func (o *CaptableCaptableOptionIn) SetExercisePrice(v interface{}) {
|
|
o.ExercisePrice = v
|
|
}
|
|
|
|
// GetExpirationDate returns the ExpirationDate field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableOptionIn) GetExpirationDate() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
return ret
|
|
}
|
|
return o.ExpirationDate
|
|
}
|
|
|
|
// GetExpirationDateOk returns a tuple with the ExpirationDate field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
|
func (o *CaptableCaptableOptionIn) GetExpirationDateOk() (*interface{}, bool) {
|
|
if o == nil || IsNil(o.ExpirationDate) {
|
|
return nil, false
|
|
}
|
|
return &o.ExpirationDate, true
|
|
}
|
|
|
|
// HasExpirationDate returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableOptionIn) HasExpirationDate() bool {
|
|
if o != nil && !IsNil(o.ExpirationDate) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetExpirationDate gets a reference to the given interface{} and assigns it to the ExpirationDate field.
|
|
func (o *CaptableCaptableOptionIn) SetExpirationDate(v interface{}) {
|
|
o.ExpirationDate = v
|
|
}
|
|
|
|
// GetGrantId returns the GrantId field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableOptionIn) GetGrantId() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
return ret
|
|
}
|
|
return o.GrantId
|
|
}
|
|
|
|
// GetGrantIdOk returns a tuple with the GrantId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
|
func (o *CaptableCaptableOptionIn) GetGrantIdOk() (*interface{}, bool) {
|
|
if o == nil || IsNil(o.GrantId) {
|
|
return nil, false
|
|
}
|
|
return &o.GrantId, true
|
|
}
|
|
|
|
// HasGrantId returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableOptionIn) HasGrantId() bool {
|
|
if o != nil && !IsNil(o.GrantId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetGrantId gets a reference to the given interface{} and assigns it to the GrantId field.
|
|
func (o *CaptableCaptableOptionIn) SetGrantId(v interface{}) {
|
|
o.GrantId = v
|
|
}
|
|
|
|
// GetIssueDate returns the IssueDate field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableOptionIn) GetIssueDate() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
return ret
|
|
}
|
|
return o.IssueDate
|
|
}
|
|
|
|
// GetIssueDateOk returns a tuple with the IssueDate field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
|
func (o *CaptableCaptableOptionIn) GetIssueDateOk() (*interface{}, bool) {
|
|
if o == nil || IsNil(o.IssueDate) {
|
|
return nil, false
|
|
}
|
|
return &o.IssueDate, true
|
|
}
|
|
|
|
// HasIssueDate returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableOptionIn) HasIssueDate() bool {
|
|
if o != nil && !IsNil(o.IssueDate) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetIssueDate gets a reference to the given interface{} and assigns it to the IssueDate field.
|
|
func (o *CaptableCaptableOptionIn) SetIssueDate(v interface{}) {
|
|
o.IssueDate = v
|
|
}
|
|
|
|
// GetNotes returns the Notes field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableOptionIn) GetNotes() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
return ret
|
|
}
|
|
return o.Notes
|
|
}
|
|
|
|
// GetNotesOk returns a tuple with the Notes field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
|
func (o *CaptableCaptableOptionIn) GetNotesOk() (*interface{}, bool) {
|
|
if o == nil || IsNil(o.Notes) {
|
|
return nil, false
|
|
}
|
|
return &o.Notes, true
|
|
}
|
|
|
|
// HasNotes returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableOptionIn) HasNotes() bool {
|
|
if o != nil && !IsNil(o.Notes) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetNotes gets a reference to the given interface{} and assigns it to the Notes field.
|
|
func (o *CaptableCaptableOptionIn) SetNotes(v interface{}) {
|
|
o.Notes = v
|
|
}
|
|
|
|
// GetQuantity returns the Quantity field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableOptionIn) GetQuantity() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
return ret
|
|
}
|
|
return o.Quantity
|
|
}
|
|
|
|
// GetQuantityOk returns a tuple with the Quantity field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
|
func (o *CaptableCaptableOptionIn) GetQuantityOk() (*interface{}, bool) {
|
|
if o == nil || IsNil(o.Quantity) {
|
|
return nil, false
|
|
}
|
|
return &o.Quantity, true
|
|
}
|
|
|
|
// HasQuantity returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableOptionIn) HasQuantity() bool {
|
|
if o != nil && !IsNil(o.Quantity) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetQuantity gets a reference to the given interface{} and assigns it to the Quantity field.
|
|
func (o *CaptableCaptableOptionIn) SetQuantity(v interface{}) {
|
|
o.Quantity = v
|
|
}
|
|
|
|
// GetRule144Date returns the Rule144Date field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableOptionIn) GetRule144Date() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
return ret
|
|
}
|
|
return o.Rule144Date
|
|
}
|
|
|
|
// GetRule144DateOk returns a tuple with the Rule144Date field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
|
func (o *CaptableCaptableOptionIn) GetRule144DateOk() (*interface{}, bool) {
|
|
if o == nil || IsNil(o.Rule144Date) {
|
|
return nil, false
|
|
}
|
|
return &o.Rule144Date, true
|
|
}
|
|
|
|
// HasRule144Date returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableOptionIn) HasRule144Date() bool {
|
|
if o != nil && !IsNil(o.Rule144Date) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRule144Date gets a reference to the given interface{} and assigns it to the Rule144Date field.
|
|
func (o *CaptableCaptableOptionIn) SetRule144Date(v interface{}) {
|
|
o.Rule144Date = v
|
|
}
|
|
|
|
// GetStakeholderId returns the StakeholderId field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableOptionIn) GetStakeholderId() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
return ret
|
|
}
|
|
return o.StakeholderId
|
|
}
|
|
|
|
// GetStakeholderIdOk returns a tuple with the StakeholderId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
|
func (o *CaptableCaptableOptionIn) GetStakeholderIdOk() (*interface{}, bool) {
|
|
if o == nil || IsNil(o.StakeholderId) {
|
|
return nil, false
|
|
}
|
|
return &o.StakeholderId, true
|
|
}
|
|
|
|
// HasStakeholderId returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableOptionIn) HasStakeholderId() bool {
|
|
if o != nil && !IsNil(o.StakeholderId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetStakeholderId gets a reference to the given interface{} and assigns it to the StakeholderId field.
|
|
func (o *CaptableCaptableOptionIn) SetStakeholderId(v interface{}) {
|
|
o.StakeholderId = v
|
|
}
|
|
|
|
// GetStatus returns the Status field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableOptionIn) GetStatus() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
return ret
|
|
}
|
|
return o.Status
|
|
}
|
|
|
|
// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
|
func (o *CaptableCaptableOptionIn) GetStatusOk() (*interface{}, bool) {
|
|
if o == nil || IsNil(o.Status) {
|
|
return nil, false
|
|
}
|
|
return &o.Status, true
|
|
}
|
|
|
|
// HasStatus returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableOptionIn) HasStatus() bool {
|
|
if o != nil && !IsNil(o.Status) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetStatus gets a reference to the given interface{} and assigns it to the Status field.
|
|
func (o *CaptableCaptableOptionIn) SetStatus(v interface{}) {
|
|
o.Status = v
|
|
}
|
|
|
|
// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableOptionIn) GetType() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
return ret
|
|
}
|
|
return o.Type
|
|
}
|
|
|
|
// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
|
func (o *CaptableCaptableOptionIn) GetTypeOk() (*interface{}, bool) {
|
|
if o == nil || IsNil(o.Type) {
|
|
return nil, false
|
|
}
|
|
return &o.Type, true
|
|
}
|
|
|
|
// HasType returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableOptionIn) HasType() bool {
|
|
if o != nil && !IsNil(o.Type) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetType gets a reference to the given interface{} and assigns it to the Type field.
|
|
func (o *CaptableCaptableOptionIn) SetType(v interface{}) {
|
|
o.Type = v
|
|
}
|
|
|
|
// GetVestingStartDate returns the VestingStartDate field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableOptionIn) GetVestingStartDate() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
return ret
|
|
}
|
|
return o.VestingStartDate
|
|
}
|
|
|
|
// GetVestingStartDateOk returns a tuple with the VestingStartDate field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
|
func (o *CaptableCaptableOptionIn) GetVestingStartDateOk() (*interface{}, bool) {
|
|
if o == nil || IsNil(o.VestingStartDate) {
|
|
return nil, false
|
|
}
|
|
return &o.VestingStartDate, true
|
|
}
|
|
|
|
// HasVestingStartDate returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableOptionIn) HasVestingStartDate() bool {
|
|
if o != nil && !IsNil(o.VestingStartDate) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetVestingStartDate gets a reference to the given interface{} and assigns it to the VestingStartDate field.
|
|
func (o *CaptableCaptableOptionIn) SetVestingStartDate(v interface{}) {
|
|
o.VestingStartDate = v
|
|
}
|
|
|
|
// GetVestingYears returns the VestingYears field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *CaptableCaptableOptionIn) GetVestingYears() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
return ret
|
|
}
|
|
return o.VestingYears
|
|
}
|
|
|
|
// GetVestingYearsOk returns a tuple with the VestingYears field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
|
func (o *CaptableCaptableOptionIn) GetVestingYearsOk() (*interface{}, bool) {
|
|
if o == nil || IsNil(o.VestingYears) {
|
|
return nil, false
|
|
}
|
|
return &o.VestingYears, true
|
|
}
|
|
|
|
// HasVestingYears returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableOptionIn) HasVestingYears() bool {
|
|
if o != nil && !IsNil(o.VestingYears) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetVestingYears gets a reference to the given interface{} and assigns it to the VestingYears field.
|
|
func (o *CaptableCaptableOptionIn) SetVestingYears(v interface{}) {
|
|
o.VestingYears = v
|
|
}
|
|
|
|
func (o CaptableCaptableOptionIn) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o CaptableCaptableOptionIn) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if o.BoardApprovalDate != nil {
|
|
toSerialize["boardApprovalDate"] = o.BoardApprovalDate
|
|
}
|
|
if o.CliffYears != nil {
|
|
toSerialize["cliffYears"] = o.CliffYears
|
|
}
|
|
if o.EquityPlanId != nil {
|
|
toSerialize["equityPlanId"] = o.EquityPlanId
|
|
}
|
|
if o.ExercisePrice != nil {
|
|
toSerialize["exercisePrice"] = o.ExercisePrice
|
|
}
|
|
if o.ExpirationDate != nil {
|
|
toSerialize["expirationDate"] = o.ExpirationDate
|
|
}
|
|
if o.GrantId != nil {
|
|
toSerialize["grantId"] = o.GrantId
|
|
}
|
|
if o.IssueDate != nil {
|
|
toSerialize["issueDate"] = o.IssueDate
|
|
}
|
|
if o.Notes != nil {
|
|
toSerialize["notes"] = o.Notes
|
|
}
|
|
if o.Quantity != nil {
|
|
toSerialize["quantity"] = o.Quantity
|
|
}
|
|
if o.Rule144Date != nil {
|
|
toSerialize["rule144Date"] = o.Rule144Date
|
|
}
|
|
if o.StakeholderId != nil {
|
|
toSerialize["stakeholderId"] = o.StakeholderId
|
|
}
|
|
if o.Status != nil {
|
|
toSerialize["status"] = o.Status
|
|
}
|
|
if o.Type != nil {
|
|
toSerialize["type"] = o.Type
|
|
}
|
|
if o.VestingStartDate != nil {
|
|
toSerialize["vestingStartDate"] = o.VestingStartDate
|
|
}
|
|
if o.VestingYears != nil {
|
|
toSerialize["vestingYears"] = o.VestingYears
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *CaptableCaptableOptionIn) UnmarshalJSON(data []byte) (err error) {
|
|
varCaptableCaptableOptionIn := _CaptableCaptableOptionIn{}
|
|
|
|
err = json.Unmarshal(data, &varCaptableCaptableOptionIn)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = CaptableCaptableOptionIn(varCaptableCaptableOptionIn)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "boardApprovalDate")
|
|
delete(additionalProperties, "cliffYears")
|
|
delete(additionalProperties, "equityPlanId")
|
|
delete(additionalProperties, "exercisePrice")
|
|
delete(additionalProperties, "expirationDate")
|
|
delete(additionalProperties, "grantId")
|
|
delete(additionalProperties, "issueDate")
|
|
delete(additionalProperties, "notes")
|
|
delete(additionalProperties, "quantity")
|
|
delete(additionalProperties, "rule144Date")
|
|
delete(additionalProperties, "stakeholderId")
|
|
delete(additionalProperties, "status")
|
|
delete(additionalProperties, "type")
|
|
delete(additionalProperties, "vestingStartDate")
|
|
delete(additionalProperties, "vestingYears")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableCaptableCaptableOptionIn struct {
|
|
value *CaptableCaptableOptionIn
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableCaptableCaptableOptionIn) Get() *CaptableCaptableOptionIn {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableCaptableCaptableOptionIn) Set(val *CaptableCaptableOptionIn) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableCaptableCaptableOptionIn) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableCaptableCaptableOptionIn) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableCaptableCaptableOptionIn(val *CaptableCaptableOptionIn) *NullableCaptableCaptableOptionIn {
|
|
return &NullableCaptableCaptableOptionIn{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableCaptableCaptableOptionIn) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableCaptableCaptableOptionIn) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|