balancewebhook

package
v21.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BalanceAccountBalanceNotificationRequest

type BalanceAccountBalanceNotificationRequest struct {
	Data BalanceNotificationData `json:"data"`
	// The environment from which the webhook originated.  Possible values: **test**, **live**.
	Environment string `json:"environment"`
	// When the event was queued.
	Timestamp *time.Time `json:"timestamp,omitempty"`
	// Type of webhook.
	Type string `json:"type"`
}

BalanceAccountBalanceNotificationRequest struct for BalanceAccountBalanceNotificationRequest

func HandleBalanceAccountBalanceNotificationRequest

func HandleBalanceAccountBalanceNotificationRequest(req string) (*BalanceAccountBalanceNotificationRequest, error)

HandleBalanceAccountBalanceNotificationRequest creates a Notification object from the given JSON string

func NewBalanceAccountBalanceNotificationRequest

func NewBalanceAccountBalanceNotificationRequest(data BalanceNotificationData, environment string, type_ string) *BalanceAccountBalanceNotificationRequest

NewBalanceAccountBalanceNotificationRequest instantiates a new BalanceAccountBalanceNotificationRequest 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 NewBalanceAccountBalanceNotificationRequestWithDefaults

func NewBalanceAccountBalanceNotificationRequestWithDefaults() *BalanceAccountBalanceNotificationRequest

NewBalanceAccountBalanceNotificationRequestWithDefaults instantiates a new BalanceAccountBalanceNotificationRequest 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 (*BalanceAccountBalanceNotificationRequest) GetData

GetData returns the Data field value

func (*BalanceAccountBalanceNotificationRequest) GetDataOk

GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.

func (*BalanceAccountBalanceNotificationRequest) GetEnvironment

GetEnvironment returns the Environment field value

func (*BalanceAccountBalanceNotificationRequest) GetEnvironmentOk

func (o *BalanceAccountBalanceNotificationRequest) GetEnvironmentOk() (*string, bool)

GetEnvironmentOk returns a tuple with the Environment field value and a boolean to check if the value has been set.

func (*BalanceAccountBalanceNotificationRequest) GetTimestamp

GetTimestamp returns the Timestamp field value if set, zero value otherwise.

func (*BalanceAccountBalanceNotificationRequest) GetTimestampOk

func (o *BalanceAccountBalanceNotificationRequest) GetTimestampOk() (*time.Time, bool)

GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BalanceAccountBalanceNotificationRequest) GetType

GetType returns the Type field value

func (*BalanceAccountBalanceNotificationRequest) GetTypeOk

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (*BalanceAccountBalanceNotificationRequest) HasTimestamp

HasTimestamp returns a boolean if a field has been set.

func (BalanceAccountBalanceNotificationRequest) MarshalJSON

func (*BalanceAccountBalanceNotificationRequest) SetData

SetData sets field value

func (*BalanceAccountBalanceNotificationRequest) SetEnvironment

func (o *BalanceAccountBalanceNotificationRequest) SetEnvironment(v string)

SetEnvironment sets field value

func (*BalanceAccountBalanceNotificationRequest) SetTimestamp

SetTimestamp gets a reference to the given time.Time and assigns it to the Timestamp field.

func (*BalanceAccountBalanceNotificationRequest) SetType

SetType sets field value

func (BalanceAccountBalanceNotificationRequest) ToMap

func (o BalanceAccountBalanceNotificationRequest) ToMap() (map[string]interface{}, error)

type BalanceNotificationData

type BalanceNotificationData struct {
	// The unique identifier of the balance account.
	BalanceAccountId string `json:"balanceAccountId"`
	// The unique identifier of the balance platform.
	BalancePlatform *string  `json:"balancePlatform,omitempty"`
	Balances        Balances `json:"balances"`
	// The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**.
	CreationDate *time.Time `json:"creationDate,omitempty"`
	// TThe three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).
	Currency string `json:"currency"`
	// The ID of the resource.
	Id *string `json:"id,omitempty"`
	// The unique identifier of the balance webhook setting.
	SettingIds []string `json:"settingIds"`
}

BalanceNotificationData struct for BalanceNotificationData

func NewBalanceNotificationData

func NewBalanceNotificationData(balanceAccountId string, balances Balances, currency string, settingIds []string) *BalanceNotificationData

NewBalanceNotificationData instantiates a new BalanceNotificationData 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 NewBalanceNotificationDataWithDefaults

func NewBalanceNotificationDataWithDefaults() *BalanceNotificationData

NewBalanceNotificationDataWithDefaults instantiates a new BalanceNotificationData 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 (*BalanceNotificationData) GetBalanceAccountId

func (o *BalanceNotificationData) GetBalanceAccountId() string

GetBalanceAccountId returns the BalanceAccountId field value

func (*BalanceNotificationData) GetBalanceAccountIdOk

func (o *BalanceNotificationData) GetBalanceAccountIdOk() (*string, bool)

GetBalanceAccountIdOk returns a tuple with the BalanceAccountId field value and a boolean to check if the value has been set.

func (*BalanceNotificationData) GetBalancePlatform

func (o *BalanceNotificationData) GetBalancePlatform() string

GetBalancePlatform returns the BalancePlatform field value if set, zero value otherwise.

func (*BalanceNotificationData) GetBalancePlatformOk

func (o *BalanceNotificationData) GetBalancePlatformOk() (*string, bool)

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 (*BalanceNotificationData) GetBalances

func (o *BalanceNotificationData) GetBalances() Balances

GetBalances returns the Balances field value

func (*BalanceNotificationData) GetBalancesOk

func (o *BalanceNotificationData) GetBalancesOk() (*Balances, bool)

GetBalancesOk returns a tuple with the Balances field value and a boolean to check if the value has been set.

func (*BalanceNotificationData) GetCreationDate

func (o *BalanceNotificationData) GetCreationDate() time.Time

GetCreationDate returns the CreationDate field value if set, zero value otherwise.

func (*BalanceNotificationData) GetCreationDateOk

func (o *BalanceNotificationData) GetCreationDateOk() (*time.Time, bool)

GetCreationDateOk returns a tuple with the CreationDate field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BalanceNotificationData) GetCurrency

func (o *BalanceNotificationData) GetCurrency() string

GetCurrency returns the Currency field value

func (*BalanceNotificationData) GetCurrencyOk

func (o *BalanceNotificationData) GetCurrencyOk() (*string, bool)

GetCurrencyOk returns a tuple with the Currency field value and a boolean to check if the value has been set.

func (*BalanceNotificationData) GetId

func (o *BalanceNotificationData) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*BalanceNotificationData) GetIdOk

func (o *BalanceNotificationData) GetIdOk() (*string, bool)

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 (*BalanceNotificationData) GetSettingIds

func (o *BalanceNotificationData) GetSettingIds() []string

GetSettingIds returns the SettingIds field value

func (*BalanceNotificationData) GetSettingIdsOk

func (o *BalanceNotificationData) GetSettingIdsOk() ([]string, bool)

GetSettingIdsOk returns a tuple with the SettingIds field value and a boolean to check if the value has been set.

func (*BalanceNotificationData) HasBalancePlatform

func (o *BalanceNotificationData) HasBalancePlatform() bool

HasBalancePlatform returns a boolean if a field has been set.

func (*BalanceNotificationData) HasCreationDate

func (o *BalanceNotificationData) HasCreationDate() bool

HasCreationDate returns a boolean if a field has been set.

func (*BalanceNotificationData) HasId

func (o *BalanceNotificationData) HasId() bool

HasId returns a boolean if a field has been set.

func (BalanceNotificationData) MarshalJSON

func (o BalanceNotificationData) MarshalJSON() ([]byte, error)

func (*BalanceNotificationData) SetBalanceAccountId

func (o *BalanceNotificationData) SetBalanceAccountId(v string)

SetBalanceAccountId sets field value

func (*BalanceNotificationData) SetBalancePlatform

func (o *BalanceNotificationData) SetBalancePlatform(v string)

SetBalancePlatform gets a reference to the given string and assigns it to the BalancePlatform field.

func (*BalanceNotificationData) SetBalances

func (o *BalanceNotificationData) SetBalances(v Balances)

SetBalances sets field value

func (*BalanceNotificationData) SetCreationDate

func (o *BalanceNotificationData) SetCreationDate(v time.Time)

SetCreationDate gets a reference to the given time.Time and assigns it to the CreationDate field.

func (*BalanceNotificationData) SetCurrency

func (o *BalanceNotificationData) SetCurrency(v string)

SetCurrency sets field value

func (*BalanceNotificationData) SetId

func (o *BalanceNotificationData) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*BalanceNotificationData) SetSettingIds

func (o *BalanceNotificationData) SetSettingIds(v []string)

SetSettingIds sets field value

func (BalanceNotificationData) ToMap

func (o BalanceNotificationData) ToMap() (map[string]interface{}, error)

type BalancePlatformNotificationResponse

type BalancePlatformNotificationResponse struct {
	// Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications).
	NotificationResponse *string `json:"notificationResponse,omitempty"`
}

BalancePlatformNotificationResponse struct for BalancePlatformNotificationResponse

func NewBalancePlatformNotificationResponse

func NewBalancePlatformNotificationResponse() *BalancePlatformNotificationResponse

NewBalancePlatformNotificationResponse instantiates a new BalancePlatformNotificationResponse 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 NewBalancePlatformNotificationResponseWithDefaults

func NewBalancePlatformNotificationResponseWithDefaults() *BalancePlatformNotificationResponse

NewBalancePlatformNotificationResponseWithDefaults instantiates a new BalancePlatformNotificationResponse 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 (*BalancePlatformNotificationResponse) GetNotificationResponse

func (o *BalancePlatformNotificationResponse) GetNotificationResponse() string

GetNotificationResponse returns the NotificationResponse field value if set, zero value otherwise.

func (*BalancePlatformNotificationResponse) GetNotificationResponseOk

func (o *BalancePlatformNotificationResponse) GetNotificationResponseOk() (*string, bool)

GetNotificationResponseOk returns a tuple with the NotificationResponse field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BalancePlatformNotificationResponse) HasNotificationResponse

func (o *BalancePlatformNotificationResponse) HasNotificationResponse() bool

HasNotificationResponse returns a boolean if a field has been set.

func (BalancePlatformNotificationResponse) MarshalJSON

func (o BalancePlatformNotificationResponse) MarshalJSON() ([]byte, error)

func (*BalancePlatformNotificationResponse) SetNotificationResponse

func (o *BalancePlatformNotificationResponse) SetNotificationResponse(v string)

SetNotificationResponse gets a reference to the given string and assigns it to the NotificationResponse field.

func (BalancePlatformNotificationResponse) ToMap

func (o BalancePlatformNotificationResponse) ToMap() (map[string]interface{}, error)

type Balances

type Balances struct {
	// The balance that is available for use.
	Available *int64 `json:"available,omitempty"`
	// The sum of transactions that have already been settled.
	Balance *int64 `json:"balance,omitempty"`
	// The sum of transactions that will be settled in the future.
	Pending *int64 `json:"pending,omitempty"`
	// The balance currently held in reserve.
	Reserved *int64 `json:"reserved,omitempty"`
}

Balances struct for Balances

func NewBalances

func NewBalances() *Balances

NewBalances instantiates a new Balances 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 NewBalancesWithDefaults

func NewBalancesWithDefaults() *Balances

NewBalancesWithDefaults instantiates a new Balances 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 (*Balances) GetAvailable

func (o *Balances) GetAvailable() int64

GetAvailable returns the Available field value if set, zero value otherwise.

func (*Balances) GetAvailableOk

func (o *Balances) GetAvailableOk() (*int64, bool)

GetAvailableOk returns a tuple with the Available field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Balances) GetBalance

func (o *Balances) GetBalance() int64

GetBalance returns the Balance field value if set, zero value otherwise.

func (*Balances) GetBalanceOk

func (o *Balances) GetBalanceOk() (*int64, bool)

GetBalanceOk returns a tuple with the Balance field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Balances) GetPending

func (o *Balances) GetPending() int64

GetPending returns the Pending field value if set, zero value otherwise.

func (*Balances) GetPendingOk

func (o *Balances) GetPendingOk() (*int64, bool)

GetPendingOk returns a tuple with the Pending field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Balances) GetReserved

func (o *Balances) GetReserved() int64

GetReserved returns the Reserved field value if set, zero value otherwise.

func (*Balances) GetReservedOk

func (o *Balances) GetReservedOk() (*int64, bool)

GetReservedOk returns a tuple with the Reserved field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Balances) HasAvailable

func (o *Balances) HasAvailable() bool

HasAvailable returns a boolean if a field has been set.

func (*Balances) HasBalance

func (o *Balances) HasBalance() bool

HasBalance returns a boolean if a field has been set.

func (*Balances) HasPending

func (o *Balances) HasPending() bool

HasPending returns a boolean if a field has been set.

func (*Balances) HasReserved

func (o *Balances) HasReserved() bool

HasReserved returns a boolean if a field has been set.

func (Balances) MarshalJSON

func (o Balances) MarshalJSON() ([]byte, error)

func (*Balances) SetAvailable

func (o *Balances) SetAvailable(v int64)

SetAvailable gets a reference to the given int64 and assigns it to the Available field.

func (*Balances) SetBalance

func (o *Balances) SetBalance(v int64)

SetBalance gets a reference to the given int64 and assigns it to the Balance field.

func (*Balances) SetPending

func (o *Balances) SetPending(v int64)

SetPending gets a reference to the given int64 and assigns it to the Pending field.

func (*Balances) SetReserved

func (o *Balances) SetReserved(v int64)

SetReserved gets a reference to the given int64 and assigns it to the Reserved field.

func (Balances) ToMap

func (o Balances) ToMap() (map[string]interface{}, error)

type NullableBalanceAccountBalanceNotificationRequest

type NullableBalanceAccountBalanceNotificationRequest struct {
	// contains filtered or unexported fields
}

func (NullableBalanceAccountBalanceNotificationRequest) Get

func (NullableBalanceAccountBalanceNotificationRequest) IsSet

func (NullableBalanceAccountBalanceNotificationRequest) MarshalJSON

func (*NullableBalanceAccountBalanceNotificationRequest) Set

func (*NullableBalanceAccountBalanceNotificationRequest) UnmarshalJSON

func (*NullableBalanceAccountBalanceNotificationRequest) Unset

type NullableBalanceNotificationData

type NullableBalanceNotificationData struct {
	// contains filtered or unexported fields
}

func (NullableBalanceNotificationData) Get

func (NullableBalanceNotificationData) IsSet

func (NullableBalanceNotificationData) MarshalJSON

func (v NullableBalanceNotificationData) MarshalJSON() ([]byte, error)

func (*NullableBalanceNotificationData) Set

func (*NullableBalanceNotificationData) UnmarshalJSON

func (v *NullableBalanceNotificationData) UnmarshalJSON(src []byte) error

func (*NullableBalanceNotificationData) Unset

type NullableBalancePlatformNotificationResponse

type NullableBalancePlatformNotificationResponse struct {
	// contains filtered or unexported fields
}

func (NullableBalancePlatformNotificationResponse) Get

func (NullableBalancePlatformNotificationResponse) IsSet

func (NullableBalancePlatformNotificationResponse) MarshalJSON

func (*NullableBalancePlatformNotificationResponse) Set

func (*NullableBalancePlatformNotificationResponse) UnmarshalJSON

func (v *NullableBalancePlatformNotificationResponse) UnmarshalJSON(src []byte) error

func (*NullableBalancePlatformNotificationResponse) Unset

type NullableBalances

type NullableBalances struct {
	// contains filtered or unexported fields
}

func NewNullableBalances

func NewNullableBalances(val *Balances) *NullableBalances

func (NullableBalances) Get

func (v NullableBalances) Get() *Balances

func (NullableBalances) IsSet

func (v NullableBalances) IsSet() bool

func (NullableBalances) MarshalJSON

func (v NullableBalances) MarshalJSON() ([]byte, error)

func (*NullableBalances) Set

func (v *NullableBalances) Set(val *Balances)

func (*NullableBalances) UnmarshalJSON

func (v *NullableBalances) UnmarshalJSON(src []byte) error

func (*NullableBalances) Unset

func (v *NullableBalances) Unset()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL