mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
450 lines
13 KiB
Go
450 lines
13 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 BillingWireInstructions type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &BillingWireInstructions{}
|
|
|
|
// BillingWireInstructions struct for BillingWireInstructions
|
|
type BillingWireInstructions struct {
|
|
AccountName *string `json:"accountName,omitempty"`
|
|
AccountNumber *string `json:"accountNumber,omitempty"`
|
|
BankAddress *string `json:"bankAddress,omitempty"`
|
|
BankName *string `json:"bankName,omitempty"`
|
|
Iban *string `json:"iban,omitempty"`
|
|
Memo *string `json:"memo,omitempty"`
|
|
Reference *string `json:"reference,omitempty"`
|
|
RoutingNumber *string `json:"routingNumber,omitempty"`
|
|
SwiftCode *string `json:"swiftCode,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _BillingWireInstructions BillingWireInstructions
|
|
|
|
// NewBillingWireInstructions instantiates a new BillingWireInstructions 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 NewBillingWireInstructions() *BillingWireInstructions {
|
|
this := BillingWireInstructions{}
|
|
return &this
|
|
}
|
|
|
|
// NewBillingWireInstructionsWithDefaults instantiates a new BillingWireInstructions 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 NewBillingWireInstructionsWithDefaults() *BillingWireInstructions {
|
|
this := BillingWireInstructions{}
|
|
return &this
|
|
}
|
|
|
|
// GetAccountName returns the AccountName field value if set, zero value otherwise.
|
|
func (o *BillingWireInstructions) GetAccountName() string {
|
|
if o == nil || IsNil(o.AccountName) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.AccountName
|
|
}
|
|
|
|
// GetAccountNameOk returns a tuple with the AccountName field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *BillingWireInstructions) GetAccountNameOk() (*string, bool) {
|
|
if o == nil || IsNil(o.AccountName) {
|
|
return nil, false
|
|
}
|
|
return o.AccountName, true
|
|
}
|
|
|
|
// HasAccountName returns a boolean if a field has been set.
|
|
func (o *BillingWireInstructions) HasAccountName() bool {
|
|
if o != nil && !IsNil(o.AccountName) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetAccountName gets a reference to the given string and assigns it to the AccountName field.
|
|
func (o *BillingWireInstructions) SetAccountName(v string) {
|
|
o.AccountName = &v
|
|
}
|
|
|
|
// GetAccountNumber returns the AccountNumber field value if set, zero value otherwise.
|
|
func (o *BillingWireInstructions) GetAccountNumber() string {
|
|
if o == nil || IsNil(o.AccountNumber) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.AccountNumber
|
|
}
|
|
|
|
// GetAccountNumberOk returns a tuple with the AccountNumber field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *BillingWireInstructions) GetAccountNumberOk() (*string, bool) {
|
|
if o == nil || IsNil(o.AccountNumber) {
|
|
return nil, false
|
|
}
|
|
return o.AccountNumber, true
|
|
}
|
|
|
|
// HasAccountNumber returns a boolean if a field has been set.
|
|
func (o *BillingWireInstructions) HasAccountNumber() bool {
|
|
if o != nil && !IsNil(o.AccountNumber) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetAccountNumber gets a reference to the given string and assigns it to the AccountNumber field.
|
|
func (o *BillingWireInstructions) SetAccountNumber(v string) {
|
|
o.AccountNumber = &v
|
|
}
|
|
|
|
// GetBankAddress returns the BankAddress field value if set, zero value otherwise.
|
|
func (o *BillingWireInstructions) GetBankAddress() string {
|
|
if o == nil || IsNil(o.BankAddress) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.BankAddress
|
|
}
|
|
|
|
// GetBankAddressOk returns a tuple with the BankAddress field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *BillingWireInstructions) GetBankAddressOk() (*string, bool) {
|
|
if o == nil || IsNil(o.BankAddress) {
|
|
return nil, false
|
|
}
|
|
return o.BankAddress, true
|
|
}
|
|
|
|
// HasBankAddress returns a boolean if a field has been set.
|
|
func (o *BillingWireInstructions) HasBankAddress() bool {
|
|
if o != nil && !IsNil(o.BankAddress) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetBankAddress gets a reference to the given string and assigns it to the BankAddress field.
|
|
func (o *BillingWireInstructions) SetBankAddress(v string) {
|
|
o.BankAddress = &v
|
|
}
|
|
|
|
// GetBankName returns the BankName field value if set, zero value otherwise.
|
|
func (o *BillingWireInstructions) GetBankName() string {
|
|
if o == nil || IsNil(o.BankName) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.BankName
|
|
}
|
|
|
|
// GetBankNameOk returns a tuple with the BankName field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *BillingWireInstructions) GetBankNameOk() (*string, bool) {
|
|
if o == nil || IsNil(o.BankName) {
|
|
return nil, false
|
|
}
|
|
return o.BankName, true
|
|
}
|
|
|
|
// HasBankName returns a boolean if a field has been set.
|
|
func (o *BillingWireInstructions) HasBankName() bool {
|
|
if o != nil && !IsNil(o.BankName) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetBankName gets a reference to the given string and assigns it to the BankName field.
|
|
func (o *BillingWireInstructions) SetBankName(v string) {
|
|
o.BankName = &v
|
|
}
|
|
|
|
// GetIban returns the Iban field value if set, zero value otherwise.
|
|
func (o *BillingWireInstructions) GetIban() string {
|
|
if o == nil || IsNil(o.Iban) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Iban
|
|
}
|
|
|
|
// GetIbanOk returns a tuple with the Iban field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *BillingWireInstructions) GetIbanOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Iban) {
|
|
return nil, false
|
|
}
|
|
return o.Iban, true
|
|
}
|
|
|
|
// HasIban returns a boolean if a field has been set.
|
|
func (o *BillingWireInstructions) HasIban() bool {
|
|
if o != nil && !IsNil(o.Iban) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetIban gets a reference to the given string and assigns it to the Iban field.
|
|
func (o *BillingWireInstructions) SetIban(v string) {
|
|
o.Iban = &v
|
|
}
|
|
|
|
// GetMemo returns the Memo field value if set, zero value otherwise.
|
|
func (o *BillingWireInstructions) GetMemo() string {
|
|
if o == nil || IsNil(o.Memo) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Memo
|
|
}
|
|
|
|
// GetMemoOk returns a tuple with the Memo field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *BillingWireInstructions) GetMemoOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Memo) {
|
|
return nil, false
|
|
}
|
|
return o.Memo, true
|
|
}
|
|
|
|
// HasMemo returns a boolean if a field has been set.
|
|
func (o *BillingWireInstructions) HasMemo() bool {
|
|
if o != nil && !IsNil(o.Memo) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetMemo gets a reference to the given string and assigns it to the Memo field.
|
|
func (o *BillingWireInstructions) SetMemo(v string) {
|
|
o.Memo = &v
|
|
}
|
|
|
|
// GetReference returns the Reference field value if set, zero value otherwise.
|
|
func (o *BillingWireInstructions) GetReference() string {
|
|
if o == nil || IsNil(o.Reference) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Reference
|
|
}
|
|
|
|
// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *BillingWireInstructions) GetReferenceOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Reference) {
|
|
return nil, false
|
|
}
|
|
return o.Reference, true
|
|
}
|
|
|
|
// HasReference returns a boolean if a field has been set.
|
|
func (o *BillingWireInstructions) HasReference() bool {
|
|
if o != nil && !IsNil(o.Reference) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetReference gets a reference to the given string and assigns it to the Reference field.
|
|
func (o *BillingWireInstructions) SetReference(v string) {
|
|
o.Reference = &v
|
|
}
|
|
|
|
// GetRoutingNumber returns the RoutingNumber field value if set, zero value otherwise.
|
|
func (o *BillingWireInstructions) GetRoutingNumber() string {
|
|
if o == nil || IsNil(o.RoutingNumber) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.RoutingNumber
|
|
}
|
|
|
|
// GetRoutingNumberOk returns a tuple with the RoutingNumber field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *BillingWireInstructions) GetRoutingNumberOk() (*string, bool) {
|
|
if o == nil || IsNil(o.RoutingNumber) {
|
|
return nil, false
|
|
}
|
|
return o.RoutingNumber, true
|
|
}
|
|
|
|
// HasRoutingNumber returns a boolean if a field has been set.
|
|
func (o *BillingWireInstructions) HasRoutingNumber() bool {
|
|
if o != nil && !IsNil(o.RoutingNumber) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRoutingNumber gets a reference to the given string and assigns it to the RoutingNumber field.
|
|
func (o *BillingWireInstructions) SetRoutingNumber(v string) {
|
|
o.RoutingNumber = &v
|
|
}
|
|
|
|
// GetSwiftCode returns the SwiftCode field value if set, zero value otherwise.
|
|
func (o *BillingWireInstructions) GetSwiftCode() string {
|
|
if o == nil || IsNil(o.SwiftCode) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.SwiftCode
|
|
}
|
|
|
|
// GetSwiftCodeOk returns a tuple with the SwiftCode field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *BillingWireInstructions) GetSwiftCodeOk() (*string, bool) {
|
|
if o == nil || IsNil(o.SwiftCode) {
|
|
return nil, false
|
|
}
|
|
return o.SwiftCode, true
|
|
}
|
|
|
|
// HasSwiftCode returns a boolean if a field has been set.
|
|
func (o *BillingWireInstructions) HasSwiftCode() bool {
|
|
if o != nil && !IsNil(o.SwiftCode) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSwiftCode gets a reference to the given string and assigns it to the SwiftCode field.
|
|
func (o *BillingWireInstructions) SetSwiftCode(v string) {
|
|
o.SwiftCode = &v
|
|
}
|
|
|
|
func (o BillingWireInstructions) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o BillingWireInstructions) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.AccountName) {
|
|
toSerialize["accountName"] = o.AccountName
|
|
}
|
|
if !IsNil(o.AccountNumber) {
|
|
toSerialize["accountNumber"] = o.AccountNumber
|
|
}
|
|
if !IsNil(o.BankAddress) {
|
|
toSerialize["bankAddress"] = o.BankAddress
|
|
}
|
|
if !IsNil(o.BankName) {
|
|
toSerialize["bankName"] = o.BankName
|
|
}
|
|
if !IsNil(o.Iban) {
|
|
toSerialize["iban"] = o.Iban
|
|
}
|
|
if !IsNil(o.Memo) {
|
|
toSerialize["memo"] = o.Memo
|
|
}
|
|
if !IsNil(o.Reference) {
|
|
toSerialize["reference"] = o.Reference
|
|
}
|
|
if !IsNil(o.RoutingNumber) {
|
|
toSerialize["routingNumber"] = o.RoutingNumber
|
|
}
|
|
if !IsNil(o.SwiftCode) {
|
|
toSerialize["swiftCode"] = o.SwiftCode
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *BillingWireInstructions) UnmarshalJSON(data []byte) (err error) {
|
|
varBillingWireInstructions := _BillingWireInstructions{}
|
|
|
|
err = json.Unmarshal(data, &varBillingWireInstructions)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = BillingWireInstructions(varBillingWireInstructions)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "accountName")
|
|
delete(additionalProperties, "accountNumber")
|
|
delete(additionalProperties, "bankAddress")
|
|
delete(additionalProperties, "bankName")
|
|
delete(additionalProperties, "iban")
|
|
delete(additionalProperties, "memo")
|
|
delete(additionalProperties, "reference")
|
|
delete(additionalProperties, "routingNumber")
|
|
delete(additionalProperties, "swiftCode")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableBillingWireInstructions struct {
|
|
value *BillingWireInstructions
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableBillingWireInstructions) Get() *BillingWireInstructions {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableBillingWireInstructions) Set(val *BillingWireInstructions) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableBillingWireInstructions) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableBillingWireInstructions) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableBillingWireInstructions(val *BillingWireInstructions) *NullableBillingWireInstructions {
|
|
return &NullableBillingWireInstructions{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableBillingWireInstructions) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableBillingWireInstructions) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|