func (o *InvestmentTransaction) HasCancelTransactionId() bool {
	if o != nil && o.CancelTransactionId.IsSet() {
		return true
	}
	return false
}
HasCancelTransactionId returns a boolean if a field has been set.
package plaid
import (
	"encoding/json"
)
type InvestmentTransaction struct {
	InvestmentTransactionId string `json:"investment_transaction_id"`
	CancelTransactionId NullableString `json:"cancel_transaction_id,omitempty"`
	AccountId string `json:"account_id"`
	SecurityId NullableString `json:"security_id"`
	Date string `json:"date"`
	Name string `json:"name"`
	Quantity float32 `json:"quantity"`
	Amount float32 `json:"amount"`
	Price float32 `json:"price"`
	Fees NullableFloat32 `json:"fees"`
	Type string `json:"type"`
	Subtype string `json:"subtype"`
	IsoCurrencyCode NullableString `json:"iso_currency_code"`
	UnofficialCurrencyCode NullableString `json:"unofficial_currency_code"`
	AdditionalProperties map[string]interface{}
}
type _InvestmentTransaction InvestmentTransaction
func NewInvestmentTransaction(investmentTransactionId string, accountId string, securityId NullableString, date string, name string, quantity float32, amount float32, price float32, fees NullableFloat32, type_ string, subtype string, isoCurrencyCode NullableString, unofficialCurrencyCode NullableString) *InvestmentTransaction {
	this := InvestmentTransaction{}
	this.InvestmentTransactionId = investmentTransactionId
	this.AccountId = accountId
	this.SecurityId = securityId
	this.Date = date
	this.Name = name
	this.Quantity = quantity
	this.Amount = amount
	this.Price = price
	this.Fees = fees
	this.Type = type_
	this.Subtype = subtype
	this.IsoCurrencyCode = isoCurrencyCode
	this.UnofficialCurrencyCode = unofficialCurrencyCode
	return &this
}
func NewInvestmentTransactionWithDefaults() *InvestmentTransaction {
	this := InvestmentTransaction{}
	return &this
}
func (o *InvestmentTransaction) GetInvestmentTransactionId() string {
	if o == nil {
		var ret string
		return ret
	}
	return o.InvestmentTransactionId
}
func (o *InvestmentTransaction) GetInvestmentTransactionIdOk() (*string, bool) {
	if o == nil  {
		return nil, false
	}
	return &o.InvestmentTransactionId, true
}
func (o *InvestmentTransaction) SetInvestmentTransactionId(v string) {
	o.InvestmentTransactionId = v
}
func (o *InvestmentTransaction) GetCancelTransactionId() string {
	if o == nil || o.CancelTransactionId.Get() == nil {
		var ret string
		return ret
	}
	return *o.CancelTransactionId.Get()
}
func (o *InvestmentTransaction) GetCancelTransactionIdOk() (*string, bool) {
	if o == nil  {
		return nil, false
	}
	return o.CancelTransactionId.Get(), o.CancelTransactionId.IsSet()
}