-
Notifications
You must be signed in to change notification settings - Fork 28
/
model_balance_account_notification_data.go
161 lines (132 loc) · 5.06 KB
/
model_balance_account_notification_data.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
/*
Configuration webhooks
API version: 2
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package configurationwebhook
import (
"encoding/json"
"github.com/adyen/adyen-go-api-library/v16/src/common"
)
// checks if the BalanceAccountNotificationData type satisfies the MappedNullable interface at compile time
var _ common.MappedNullable = &BalanceAccountNotificationData{}
// BalanceAccountNotificationData struct for BalanceAccountNotificationData
type BalanceAccountNotificationData struct {
BalanceAccount *BalanceAccount `json:"balanceAccount,omitempty"`
// The unique identifier of the balance platform.
BalancePlatform *string `json:"balancePlatform,omitempty"`
}
// NewBalanceAccountNotificationData instantiates a new BalanceAccountNotificationData 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 NewBalanceAccountNotificationData() *BalanceAccountNotificationData {
this := BalanceAccountNotificationData{}
return &this
}
// NewBalanceAccountNotificationDataWithDefaults instantiates a new BalanceAccountNotificationData 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 NewBalanceAccountNotificationDataWithDefaults() *BalanceAccountNotificationData {
this := BalanceAccountNotificationData{}
return &this
}
// GetBalanceAccount returns the BalanceAccount field value if set, zero value otherwise.
func (o *BalanceAccountNotificationData) GetBalanceAccount() BalanceAccount {
if o == nil || common.IsNil(o.BalanceAccount) {
var ret BalanceAccount
return ret
}
return *o.BalanceAccount
}
// GetBalanceAccountOk returns a tuple with the BalanceAccount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BalanceAccountNotificationData) GetBalanceAccountOk() (*BalanceAccount, bool) {
if o == nil || common.IsNil(o.BalanceAccount) {
return nil, false
}
return o.BalanceAccount, true
}
// HasBalanceAccount returns a boolean if a field has been set.
func (o *BalanceAccountNotificationData) HasBalanceAccount() bool {
if o != nil && !common.IsNil(o.BalanceAccount) {
return true
}
return false
}
// SetBalanceAccount gets a reference to the given BalanceAccount and assigns it to the BalanceAccount field.
func (o *BalanceAccountNotificationData) SetBalanceAccount(v BalanceAccount) {
o.BalanceAccount = &v
}
// GetBalancePlatform returns the BalancePlatform field value if set, zero value otherwise.
func (o *BalanceAccountNotificationData) GetBalancePlatform() string {
if o == nil || common.IsNil(o.BalancePlatform) {
var ret string
return ret
}
return *o.BalancePlatform
}
// GetBalancePlatformOk returns a tuple with the BalancePlatform field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BalanceAccountNotificationData) GetBalancePlatformOk() (*string, bool) {
if o == nil || common.IsNil(o.BalancePlatform) {
return nil, false
}
return o.BalancePlatform, true
}
// HasBalancePlatform returns a boolean if a field has been set.
func (o *BalanceAccountNotificationData) HasBalancePlatform() bool {
if o != nil && !common.IsNil(o.BalancePlatform) {
return true
}
return false
}
// SetBalancePlatform gets a reference to the given string and assigns it to the BalancePlatform field.
func (o *BalanceAccountNotificationData) SetBalancePlatform(v string) {
o.BalancePlatform = &v
}
func (o BalanceAccountNotificationData) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o BalanceAccountNotificationData) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !common.IsNil(o.BalanceAccount) {
toSerialize["balanceAccount"] = o.BalanceAccount
}
if !common.IsNil(o.BalancePlatform) {
toSerialize["balancePlatform"] = o.BalancePlatform
}
return toSerialize, nil
}
type NullableBalanceAccountNotificationData struct {
value *BalanceAccountNotificationData
isSet bool
}
func (v NullableBalanceAccountNotificationData) Get() *BalanceAccountNotificationData {
return v.value
}
func (v *NullableBalanceAccountNotificationData) Set(val *BalanceAccountNotificationData) {
v.value = val
v.isSet = true
}
func (v NullableBalanceAccountNotificationData) IsSet() bool {
return v.isSet
}
func (v *NullableBalanceAccountNotificationData) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableBalanceAccountNotificationData(val *BalanceAccountNotificationData) *NullableBalanceAccountNotificationData {
return &NullableBalanceAccountNotificationData{value: val, isSet: true}
}
func (v NullableBalanceAccountNotificationData) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableBalanceAccountNotificationData) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}