mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
991 lines
25 KiB
Go
991 lines
25 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 TaxForm type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &TaxForm{}
|
|
|
|
// TaxForm struct for TaxForm
|
|
type TaxForm struct {
|
|
// Account is the account number the form prints — the original form's id, which a correction keeps, so the IRS can tie the two.
|
|
Account *string `json:"account,omitempty"`
|
|
// Backup is the backup withholding the form carries.
|
|
Backup *TaxWithholding `json:"backup,omitempty"`
|
|
// Boxes are the figures, box 4 (federal income tax withheld) included.
|
|
Boxes []TaxAmount `json:"boxes,omitempty"`
|
|
// Certified is whether the payee's W-9 was certified when the form was prepared.
|
|
Certified *bool `json:"certified,omitempty"`
|
|
// Corrected is true for a form that corrects one already furnished.
|
|
Corrected *bool `json:"corrected,omitempty"`
|
|
// CreatedAt is when the form was prepared, unix seconds.
|
|
CreatedAt *int64 `json:"createdAt,omitempty"`
|
|
// Delivery is electronic (Copy B in the payee's inbox) or paper, once furnished.
|
|
Delivery *string `json:"delivery,omitempty"`
|
|
// Due is when Copy B is due to the payee and the return to the IRS.
|
|
Due *TaxDeadline `json:"due,omitempty"`
|
|
// FurnishedAt is when Copy B was delivered in the inbox, or marked owed on paper.
|
|
FurnishedAt *int64 `json:"furnishedAt,omitempty"`
|
|
// ID is the form's id, \"f1099_\"-prefixed.
|
|
Id *string `json:"id,omitempty"`
|
|
// Kind is 1099-NEC or 1099-MISC.
|
|
Kind *string `json:"kind,omitempty"`
|
|
// MailedAt is when the payer recorded mailing a paper Copy B.
|
|
MailedAt *int64 `json:"mailedAt,omitempty"`
|
|
// Notes are what still needs a person, in words.
|
|
Notes []string `json:"notes,omitempty"`
|
|
// Payer is the filer.
|
|
Payer *TaxParty `json:"payer,omitempty"`
|
|
// Payments are the rail payment ids summed into the boxes.
|
|
Payments []string `json:"payments,omitempty"`
|
|
// Reason is why a corrected form was made.
|
|
Reason *string `json:"reason,omitempty"`
|
|
// Recipient is the payee.
|
|
Recipient *TaxParty `json:"recipient,omitempty"`
|
|
// Status is draft, reviewed, furnished, owed or void.
|
|
Status *string `json:"status,omitempty"`
|
|
// SupersededBy is the form that corrects this one, once there is one.
|
|
SupersededBy *string `json:"supersededBy,omitempty"`
|
|
// Supersedes is the form this one corrects.
|
|
Supersedes *string `json:"supersedes,omitempty"`
|
|
// UpdatedAt is when its status last moved, unix seconds.
|
|
UpdatedAt *int64 `json:"updatedAt,omitempty"`
|
|
// W9 is where the payer's W-9 request stood when the form was prepared.
|
|
W9 *string `json:"w9,omitempty"`
|
|
// Year is the calendar year the payments were made.
|
|
Year *int64 `json:"year,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _TaxForm TaxForm
|
|
|
|
// NewTaxForm instantiates a new TaxForm 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 NewTaxForm() *TaxForm {
|
|
this := TaxForm{}
|
|
return &this
|
|
}
|
|
|
|
// NewTaxFormWithDefaults instantiates a new TaxForm 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 NewTaxFormWithDefaults() *TaxForm {
|
|
this := TaxForm{}
|
|
return &this
|
|
}
|
|
|
|
// GetAccount returns the Account field value if set, zero value otherwise.
|
|
func (o *TaxForm) GetAccount() string {
|
|
if o == nil || IsNil(o.Account) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Account
|
|
}
|
|
|
|
// GetAccountOk returns a tuple with the Account field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *TaxForm) GetAccountOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Account) {
|
|
return nil, false
|
|
}
|
|
return o.Account, true
|
|
}
|
|
|
|
// HasAccount returns a boolean if a field has been set.
|
|
func (o *TaxForm) HasAccount() bool {
|
|
if o != nil && !IsNil(o.Account) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetAccount gets a reference to the given string and assigns it to the Account field.
|
|
func (o *TaxForm) SetAccount(v string) {
|
|
o.Account = &v
|
|
}
|
|
|
|
// GetBackup returns the Backup field value if set, zero value otherwise.
|
|
func (o *TaxForm) GetBackup() TaxWithholding {
|
|
if o == nil || IsNil(o.Backup) {
|
|
var ret TaxWithholding
|
|
return ret
|
|
}
|
|
return *o.Backup
|
|
}
|
|
|
|
// GetBackupOk returns a tuple with the Backup field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *TaxForm) GetBackupOk() (*TaxWithholding, bool) {
|
|
if o == nil || IsNil(o.Backup) {
|
|
return nil, false
|
|
}
|
|
return o.Backup, true
|
|
}
|
|
|
|
// HasBackup returns a boolean if a field has been set.
|
|
func (o *TaxForm) HasBackup() bool {
|
|
if o != nil && !IsNil(o.Backup) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetBackup gets a reference to the given TaxWithholding and assigns it to the Backup field.
|
|
func (o *TaxForm) SetBackup(v TaxWithholding) {
|
|
o.Backup = &v
|
|
}
|
|
|
|
// GetBoxes returns the Boxes field value if set, zero value otherwise.
|
|
func (o *TaxForm) GetBoxes() []TaxAmount {
|
|
if o == nil || IsNil(o.Boxes) {
|
|
var ret []TaxAmount
|
|
return ret
|
|
}
|
|
return o.Boxes
|
|
}
|
|
|
|
// GetBoxesOk returns a tuple with the Boxes field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *TaxForm) GetBoxesOk() ([]TaxAmount, bool) {
|
|
if o == nil || IsNil(o.Boxes) {
|
|
return nil, false
|
|
}
|
|
return o.Boxes, true
|
|
}
|
|
|
|
// HasBoxes returns a boolean if a field has been set.
|
|
func (o *TaxForm) HasBoxes() bool {
|
|
if o != nil && !IsNil(o.Boxes) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetBoxes gets a reference to the given []TaxAmount and assigns it to the Boxes field.
|
|
func (o *TaxForm) SetBoxes(v []TaxAmount) {
|
|
o.Boxes = v
|
|
}
|
|
|
|
// GetCertified returns the Certified field value if set, zero value otherwise.
|
|
func (o *TaxForm) GetCertified() bool {
|
|
if o == nil || IsNil(o.Certified) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.Certified
|
|
}
|
|
|
|
// GetCertifiedOk returns a tuple with the Certified field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *TaxForm) GetCertifiedOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.Certified) {
|
|
return nil, false
|
|
}
|
|
return o.Certified, true
|
|
}
|
|
|
|
// HasCertified returns a boolean if a field has been set.
|
|
func (o *TaxForm) HasCertified() bool {
|
|
if o != nil && !IsNil(o.Certified) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCertified gets a reference to the given bool and assigns it to the Certified field.
|
|
func (o *TaxForm) SetCertified(v bool) {
|
|
o.Certified = &v
|
|
}
|
|
|
|
// GetCorrected returns the Corrected field value if set, zero value otherwise.
|
|
func (o *TaxForm) GetCorrected() bool {
|
|
if o == nil || IsNil(o.Corrected) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.Corrected
|
|
}
|
|
|
|
// GetCorrectedOk returns a tuple with the Corrected field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *TaxForm) GetCorrectedOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.Corrected) {
|
|
return nil, false
|
|
}
|
|
return o.Corrected, true
|
|
}
|
|
|
|
// HasCorrected returns a boolean if a field has been set.
|
|
func (o *TaxForm) HasCorrected() bool {
|
|
if o != nil && !IsNil(o.Corrected) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCorrected gets a reference to the given bool and assigns it to the Corrected field.
|
|
func (o *TaxForm) SetCorrected(v bool) {
|
|
o.Corrected = &v
|
|
}
|
|
|
|
// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
|
|
func (o *TaxForm) GetCreatedAt() int64 {
|
|
if o == nil || IsNil(o.CreatedAt) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.CreatedAt
|
|
}
|
|
|
|
// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *TaxForm) GetCreatedAtOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.CreatedAt) {
|
|
return nil, false
|
|
}
|
|
return o.CreatedAt, true
|
|
}
|
|
|
|
// HasCreatedAt returns a boolean if a field has been set.
|
|
func (o *TaxForm) HasCreatedAt() bool {
|
|
if o != nil && !IsNil(o.CreatedAt) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCreatedAt gets a reference to the given int64 and assigns it to the CreatedAt field.
|
|
func (o *TaxForm) SetCreatedAt(v int64) {
|
|
o.CreatedAt = &v
|
|
}
|
|
|
|
// GetDelivery returns the Delivery field value if set, zero value otherwise.
|
|
func (o *TaxForm) GetDelivery() string {
|
|
if o == nil || IsNil(o.Delivery) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Delivery
|
|
}
|
|
|
|
// GetDeliveryOk returns a tuple with the Delivery field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *TaxForm) GetDeliveryOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Delivery) {
|
|
return nil, false
|
|
}
|
|
return o.Delivery, true
|
|
}
|
|
|
|
// HasDelivery returns a boolean if a field has been set.
|
|
func (o *TaxForm) HasDelivery() bool {
|
|
if o != nil && !IsNil(o.Delivery) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetDelivery gets a reference to the given string and assigns it to the Delivery field.
|
|
func (o *TaxForm) SetDelivery(v string) {
|
|
o.Delivery = &v
|
|
}
|
|
|
|
// GetDue returns the Due field value if set, zero value otherwise.
|
|
func (o *TaxForm) GetDue() TaxDeadline {
|
|
if o == nil || IsNil(o.Due) {
|
|
var ret TaxDeadline
|
|
return ret
|
|
}
|
|
return *o.Due
|
|
}
|
|
|
|
// GetDueOk returns a tuple with the Due field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *TaxForm) GetDueOk() (*TaxDeadline, bool) {
|
|
if o == nil || IsNil(o.Due) {
|
|
return nil, false
|
|
}
|
|
return o.Due, true
|
|
}
|
|
|
|
// HasDue returns a boolean if a field has been set.
|
|
func (o *TaxForm) HasDue() bool {
|
|
if o != nil && !IsNil(o.Due) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetDue gets a reference to the given TaxDeadline and assigns it to the Due field.
|
|
func (o *TaxForm) SetDue(v TaxDeadline) {
|
|
o.Due = &v
|
|
}
|
|
|
|
// GetFurnishedAt returns the FurnishedAt field value if set, zero value otherwise.
|
|
func (o *TaxForm) GetFurnishedAt() int64 {
|
|
if o == nil || IsNil(o.FurnishedAt) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.FurnishedAt
|
|
}
|
|
|
|
// GetFurnishedAtOk returns a tuple with the FurnishedAt field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *TaxForm) GetFurnishedAtOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.FurnishedAt) {
|
|
return nil, false
|
|
}
|
|
return o.FurnishedAt, true
|
|
}
|
|
|
|
// HasFurnishedAt returns a boolean if a field has been set.
|
|
func (o *TaxForm) HasFurnishedAt() bool {
|
|
if o != nil && !IsNil(o.FurnishedAt) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetFurnishedAt gets a reference to the given int64 and assigns it to the FurnishedAt field.
|
|
func (o *TaxForm) SetFurnishedAt(v int64) {
|
|
o.FurnishedAt = &v
|
|
}
|
|
|
|
// GetId returns the Id field value if set, zero value otherwise.
|
|
func (o *TaxForm) GetId() string {
|
|
if o == nil || IsNil(o.Id) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Id
|
|
}
|
|
|
|
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *TaxForm) GetIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Id) {
|
|
return nil, false
|
|
}
|
|
return o.Id, true
|
|
}
|
|
|
|
// HasId returns a boolean if a field has been set.
|
|
func (o *TaxForm) HasId() bool {
|
|
if o != nil && !IsNil(o.Id) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetId gets a reference to the given string and assigns it to the Id field.
|
|
func (o *TaxForm) SetId(v string) {
|
|
o.Id = &v
|
|
}
|
|
|
|
// GetKind returns the Kind field value if set, zero value otherwise.
|
|
func (o *TaxForm) GetKind() string {
|
|
if o == nil || IsNil(o.Kind) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Kind
|
|
}
|
|
|
|
// GetKindOk returns a tuple with the Kind field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *TaxForm) GetKindOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Kind) {
|
|
return nil, false
|
|
}
|
|
return o.Kind, true
|
|
}
|
|
|
|
// HasKind returns a boolean if a field has been set.
|
|
func (o *TaxForm) HasKind() bool {
|
|
if o != nil && !IsNil(o.Kind) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetKind gets a reference to the given string and assigns it to the Kind field.
|
|
func (o *TaxForm) SetKind(v string) {
|
|
o.Kind = &v
|
|
}
|
|
|
|
// GetMailedAt returns the MailedAt field value if set, zero value otherwise.
|
|
func (o *TaxForm) GetMailedAt() int64 {
|
|
if o == nil || IsNil(o.MailedAt) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.MailedAt
|
|
}
|
|
|
|
// GetMailedAtOk returns a tuple with the MailedAt field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *TaxForm) GetMailedAtOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.MailedAt) {
|
|
return nil, false
|
|
}
|
|
return o.MailedAt, true
|
|
}
|
|
|
|
// HasMailedAt returns a boolean if a field has been set.
|
|
func (o *TaxForm) HasMailedAt() bool {
|
|
if o != nil && !IsNil(o.MailedAt) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetMailedAt gets a reference to the given int64 and assigns it to the MailedAt field.
|
|
func (o *TaxForm) SetMailedAt(v int64) {
|
|
o.MailedAt = &v
|
|
}
|
|
|
|
// GetNotes returns the Notes field value if set, zero value otherwise.
|
|
func (o *TaxForm) GetNotes() []string {
|
|
if o == nil || IsNil(o.Notes) {
|
|
var ret []string
|
|
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.
|
|
func (o *TaxForm) GetNotesOk() ([]string, 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 *TaxForm) HasNotes() bool {
|
|
if o != nil && !IsNil(o.Notes) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetNotes gets a reference to the given []string and assigns it to the Notes field.
|
|
func (o *TaxForm) SetNotes(v []string) {
|
|
o.Notes = v
|
|
}
|
|
|
|
// GetPayer returns the Payer field value if set, zero value otherwise.
|
|
func (o *TaxForm) GetPayer() TaxParty {
|
|
if o == nil || IsNil(o.Payer) {
|
|
var ret TaxParty
|
|
return ret
|
|
}
|
|
return *o.Payer
|
|
}
|
|
|
|
// GetPayerOk returns a tuple with the Payer field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *TaxForm) GetPayerOk() (*TaxParty, bool) {
|
|
if o == nil || IsNil(o.Payer) {
|
|
return nil, false
|
|
}
|
|
return o.Payer, true
|
|
}
|
|
|
|
// HasPayer returns a boolean if a field has been set.
|
|
func (o *TaxForm) HasPayer() bool {
|
|
if o != nil && !IsNil(o.Payer) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPayer gets a reference to the given TaxParty and assigns it to the Payer field.
|
|
func (o *TaxForm) SetPayer(v TaxParty) {
|
|
o.Payer = &v
|
|
}
|
|
|
|
// GetPayments returns the Payments field value if set, zero value otherwise.
|
|
func (o *TaxForm) GetPayments() []string {
|
|
if o == nil || IsNil(o.Payments) {
|
|
var ret []string
|
|
return ret
|
|
}
|
|
return o.Payments
|
|
}
|
|
|
|
// GetPaymentsOk returns a tuple with the Payments field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *TaxForm) GetPaymentsOk() ([]string, bool) {
|
|
if o == nil || IsNil(o.Payments) {
|
|
return nil, false
|
|
}
|
|
return o.Payments, true
|
|
}
|
|
|
|
// HasPayments returns a boolean if a field has been set.
|
|
func (o *TaxForm) HasPayments() bool {
|
|
if o != nil && !IsNil(o.Payments) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPayments gets a reference to the given []string and assigns it to the Payments field.
|
|
func (o *TaxForm) SetPayments(v []string) {
|
|
o.Payments = v
|
|
}
|
|
|
|
// GetReason returns the Reason field value if set, zero value otherwise.
|
|
func (o *TaxForm) GetReason() string {
|
|
if o == nil || IsNil(o.Reason) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Reason
|
|
}
|
|
|
|
// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *TaxForm) GetReasonOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Reason) {
|
|
return nil, false
|
|
}
|
|
return o.Reason, true
|
|
}
|
|
|
|
// HasReason returns a boolean if a field has been set.
|
|
func (o *TaxForm) HasReason() bool {
|
|
if o != nil && !IsNil(o.Reason) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetReason gets a reference to the given string and assigns it to the Reason field.
|
|
func (o *TaxForm) SetReason(v string) {
|
|
o.Reason = &v
|
|
}
|
|
|
|
// GetRecipient returns the Recipient field value if set, zero value otherwise.
|
|
func (o *TaxForm) GetRecipient() TaxParty {
|
|
if o == nil || IsNil(o.Recipient) {
|
|
var ret TaxParty
|
|
return ret
|
|
}
|
|
return *o.Recipient
|
|
}
|
|
|
|
// GetRecipientOk returns a tuple with the Recipient field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *TaxForm) GetRecipientOk() (*TaxParty, bool) {
|
|
if o == nil || IsNil(o.Recipient) {
|
|
return nil, false
|
|
}
|
|
return o.Recipient, true
|
|
}
|
|
|
|
// HasRecipient returns a boolean if a field has been set.
|
|
func (o *TaxForm) HasRecipient() bool {
|
|
if o != nil && !IsNil(o.Recipient) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRecipient gets a reference to the given TaxParty and assigns it to the Recipient field.
|
|
func (o *TaxForm) SetRecipient(v TaxParty) {
|
|
o.Recipient = &v
|
|
}
|
|
|
|
// GetStatus returns the Status field value if set, zero value otherwise.
|
|
func (o *TaxForm) GetStatus() string {
|
|
if o == nil || IsNil(o.Status) {
|
|
var ret string
|
|
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.
|
|
func (o *TaxForm) GetStatusOk() (*string, 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 *TaxForm) HasStatus() bool {
|
|
if o != nil && !IsNil(o.Status) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetStatus gets a reference to the given string and assigns it to the Status field.
|
|
func (o *TaxForm) SetStatus(v string) {
|
|
o.Status = &v
|
|
}
|
|
|
|
// GetSupersededBy returns the SupersededBy field value if set, zero value otherwise.
|
|
func (o *TaxForm) GetSupersededBy() string {
|
|
if o == nil || IsNil(o.SupersededBy) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.SupersededBy
|
|
}
|
|
|
|
// GetSupersededByOk returns a tuple with the SupersededBy field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *TaxForm) GetSupersededByOk() (*string, bool) {
|
|
if o == nil || IsNil(o.SupersededBy) {
|
|
return nil, false
|
|
}
|
|
return o.SupersededBy, true
|
|
}
|
|
|
|
// HasSupersededBy returns a boolean if a field has been set.
|
|
func (o *TaxForm) HasSupersededBy() bool {
|
|
if o != nil && !IsNil(o.SupersededBy) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSupersededBy gets a reference to the given string and assigns it to the SupersededBy field.
|
|
func (o *TaxForm) SetSupersededBy(v string) {
|
|
o.SupersededBy = &v
|
|
}
|
|
|
|
// GetSupersedes returns the Supersedes field value if set, zero value otherwise.
|
|
func (o *TaxForm) GetSupersedes() string {
|
|
if o == nil || IsNil(o.Supersedes) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Supersedes
|
|
}
|
|
|
|
// GetSupersedesOk returns a tuple with the Supersedes field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *TaxForm) GetSupersedesOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Supersedes) {
|
|
return nil, false
|
|
}
|
|
return o.Supersedes, true
|
|
}
|
|
|
|
// HasSupersedes returns a boolean if a field has been set.
|
|
func (o *TaxForm) HasSupersedes() bool {
|
|
if o != nil && !IsNil(o.Supersedes) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSupersedes gets a reference to the given string and assigns it to the Supersedes field.
|
|
func (o *TaxForm) SetSupersedes(v string) {
|
|
o.Supersedes = &v
|
|
}
|
|
|
|
// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.
|
|
func (o *TaxForm) GetUpdatedAt() int64 {
|
|
if o == nil || IsNil(o.UpdatedAt) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.UpdatedAt
|
|
}
|
|
|
|
// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *TaxForm) GetUpdatedAtOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.UpdatedAt) {
|
|
return nil, false
|
|
}
|
|
return o.UpdatedAt, true
|
|
}
|
|
|
|
// HasUpdatedAt returns a boolean if a field has been set.
|
|
func (o *TaxForm) HasUpdatedAt() bool {
|
|
if o != nil && !IsNil(o.UpdatedAt) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetUpdatedAt gets a reference to the given int64 and assigns it to the UpdatedAt field.
|
|
func (o *TaxForm) SetUpdatedAt(v int64) {
|
|
o.UpdatedAt = &v
|
|
}
|
|
|
|
// GetW9 returns the W9 field value if set, zero value otherwise.
|
|
func (o *TaxForm) GetW9() string {
|
|
if o == nil || IsNil(o.W9) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.W9
|
|
}
|
|
|
|
// GetW9Ok returns a tuple with the W9 field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *TaxForm) GetW9Ok() (*string, bool) {
|
|
if o == nil || IsNil(o.W9) {
|
|
return nil, false
|
|
}
|
|
return o.W9, true
|
|
}
|
|
|
|
// HasW9 returns a boolean if a field has been set.
|
|
func (o *TaxForm) HasW9() bool {
|
|
if o != nil && !IsNil(o.W9) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetW9 gets a reference to the given string and assigns it to the W9 field.
|
|
func (o *TaxForm) SetW9(v string) {
|
|
o.W9 = &v
|
|
}
|
|
|
|
// GetYear returns the Year field value if set, zero value otherwise.
|
|
func (o *TaxForm) GetYear() int64 {
|
|
if o == nil || IsNil(o.Year) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.Year
|
|
}
|
|
|
|
// GetYearOk returns a tuple with the Year field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *TaxForm) GetYearOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.Year) {
|
|
return nil, false
|
|
}
|
|
return o.Year, true
|
|
}
|
|
|
|
// HasYear returns a boolean if a field has been set.
|
|
func (o *TaxForm) HasYear() bool {
|
|
if o != nil && !IsNil(o.Year) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetYear gets a reference to the given int64 and assigns it to the Year field.
|
|
func (o *TaxForm) SetYear(v int64) {
|
|
o.Year = &v
|
|
}
|
|
|
|
func (o TaxForm) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o TaxForm) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.Account) {
|
|
toSerialize["account"] = o.Account
|
|
}
|
|
if !IsNil(o.Backup) {
|
|
toSerialize["backup"] = o.Backup
|
|
}
|
|
if !IsNil(o.Boxes) {
|
|
toSerialize["boxes"] = o.Boxes
|
|
}
|
|
if !IsNil(o.Certified) {
|
|
toSerialize["certified"] = o.Certified
|
|
}
|
|
if !IsNil(o.Corrected) {
|
|
toSerialize["corrected"] = o.Corrected
|
|
}
|
|
if !IsNil(o.CreatedAt) {
|
|
toSerialize["createdAt"] = o.CreatedAt
|
|
}
|
|
if !IsNil(o.Delivery) {
|
|
toSerialize["delivery"] = o.Delivery
|
|
}
|
|
if !IsNil(o.Due) {
|
|
toSerialize["due"] = o.Due
|
|
}
|
|
if !IsNil(o.FurnishedAt) {
|
|
toSerialize["furnishedAt"] = o.FurnishedAt
|
|
}
|
|
if !IsNil(o.Id) {
|
|
toSerialize["id"] = o.Id
|
|
}
|
|
if !IsNil(o.Kind) {
|
|
toSerialize["kind"] = o.Kind
|
|
}
|
|
if !IsNil(o.MailedAt) {
|
|
toSerialize["mailedAt"] = o.MailedAt
|
|
}
|
|
if !IsNil(o.Notes) {
|
|
toSerialize["notes"] = o.Notes
|
|
}
|
|
if !IsNil(o.Payer) {
|
|
toSerialize["payer"] = o.Payer
|
|
}
|
|
if !IsNil(o.Payments) {
|
|
toSerialize["payments"] = o.Payments
|
|
}
|
|
if !IsNil(o.Reason) {
|
|
toSerialize["reason"] = o.Reason
|
|
}
|
|
if !IsNil(o.Recipient) {
|
|
toSerialize["recipient"] = o.Recipient
|
|
}
|
|
if !IsNil(o.Status) {
|
|
toSerialize["status"] = o.Status
|
|
}
|
|
if !IsNil(o.SupersededBy) {
|
|
toSerialize["supersededBy"] = o.SupersededBy
|
|
}
|
|
if !IsNil(o.Supersedes) {
|
|
toSerialize["supersedes"] = o.Supersedes
|
|
}
|
|
if !IsNil(o.UpdatedAt) {
|
|
toSerialize["updatedAt"] = o.UpdatedAt
|
|
}
|
|
if !IsNil(o.W9) {
|
|
toSerialize["w9"] = o.W9
|
|
}
|
|
if !IsNil(o.Year) {
|
|
toSerialize["year"] = o.Year
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *TaxForm) UnmarshalJSON(data []byte) (err error) {
|
|
varTaxForm := _TaxForm{}
|
|
|
|
err = json.Unmarshal(data, &varTaxForm)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = TaxForm(varTaxForm)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "account")
|
|
delete(additionalProperties, "backup")
|
|
delete(additionalProperties, "boxes")
|
|
delete(additionalProperties, "certified")
|
|
delete(additionalProperties, "corrected")
|
|
delete(additionalProperties, "createdAt")
|
|
delete(additionalProperties, "delivery")
|
|
delete(additionalProperties, "due")
|
|
delete(additionalProperties, "furnishedAt")
|
|
delete(additionalProperties, "id")
|
|
delete(additionalProperties, "kind")
|
|
delete(additionalProperties, "mailedAt")
|
|
delete(additionalProperties, "notes")
|
|
delete(additionalProperties, "payer")
|
|
delete(additionalProperties, "payments")
|
|
delete(additionalProperties, "reason")
|
|
delete(additionalProperties, "recipient")
|
|
delete(additionalProperties, "status")
|
|
delete(additionalProperties, "supersededBy")
|
|
delete(additionalProperties, "supersedes")
|
|
delete(additionalProperties, "updatedAt")
|
|
delete(additionalProperties, "w9")
|
|
delete(additionalProperties, "year")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableTaxForm struct {
|
|
value *TaxForm
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableTaxForm) Get() *TaxForm {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableTaxForm) Set(val *TaxForm) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableTaxForm) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableTaxForm) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableTaxForm(val *TaxForm) *NullableTaxForm {
|
|
return &NullableTaxForm{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableTaxForm) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableTaxForm) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|