diff --git a/src/balanceplatform/model_amount.go b/src/balanceplatform/model_amount.go index 52569b100..5afb79678 100644 --- a/src/balanceplatform/model_amount.go +++ b/src/balanceplatform/model_amount.go @@ -19,9 +19,9 @@ var _ common.MappedNullable = &Amount{} // Amount struct for Amount type Amount struct { - // The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + // The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). Currency string `json:"currency"` - // The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + // The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). Value int64 `json:"value"` } diff --git a/src/balanceplatform/model_balance.go b/src/balanceplatform/model_balance.go index 9ef89ed5e..c318acd3e 100644 --- a/src/balanceplatform/model_balance.go +++ b/src/balanceplatform/model_balance.go @@ -19,15 +19,15 @@ var _ common.MappedNullable = &Balance{} // Balance struct for Balance type Balance struct { - // The current balance minus any reserved balance. + // The balance available for use. Available int64 `json:"available"` - // The current balance of funds in the balance account. These are the funds from all transactions with a value date in the past that have not yet been paid out. + // The sum of transactions that have already been settled. Balance int64 `json:"balance"` // The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. Currency string `json:"currency"` - // The amount of funds that Adyen has processed for this account, but will be settled in a future date. For more information, see how to settle funds for users in your [platform](https://docs.adyen.com/platforms/settle-funds) and [marketplace](https://docs.adyen.com/marketplaces/settle-funds). + // The sum of the transactions that will be settled in the future. Pending *int64 `json:"pending,omitempty"` - // The amount reserved for payments that have been [authorised](https://docs.adyen.com/issuing/payment-stages/#authorised), but not yet [captured](https://docs.adyen.com/issuing/payment-stages/#captured) by the merchant. Applies only to [Adyen-issued cards](https://docs.adyen.com/issuing). + // The balance currently held in reserve. Reserved int64 `json:"reserved"` } diff --git a/src/balanceplatform/model_counterparty_bank_restriction.go b/src/balanceplatform/model_counterparty_bank_restriction.go index 245172f9c..979146f46 100644 --- a/src/balanceplatform/model_counterparty_bank_restriction.go +++ b/src/balanceplatform/model_counterparty_bank_restriction.go @@ -21,7 +21,7 @@ var _ common.MappedNullable = &CounterpartyBankRestriction{} type CounterpartyBankRestriction struct { // Defines how the condition must be evaluated. Operation string `json:"operation"` - // List of counterparty Bank Institutions and the operation. + // The list of counterparty bank institutions to be evaluated. Value []BankIdentification `json:"value,omitempty"` } diff --git a/src/balanceplatform/model_counterparty_types_restriction.go b/src/balanceplatform/model_counterparty_types_restriction.go new file mode 100644 index 000000000..c8892fcc0 --- /dev/null +++ b/src/balanceplatform/model_counterparty_types_restriction.go @@ -0,0 +1,153 @@ +/* +Configuration API + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package balanceplatform + +import ( + "encoding/json" + + "github.com/adyen/adyen-go-api-library/v16/src/common" +) + +// checks if the CounterpartyTypesRestriction type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &CounterpartyTypesRestriction{} + +// CounterpartyTypesRestriction struct for CounterpartyTypesRestriction +type CounterpartyTypesRestriction struct { + // Defines how the condition must be evaluated. + Operation string `json:"operation"` + // The list of counterparty types to be evaluated. + Value []string `json:"value,omitempty"` +} + +// NewCounterpartyTypesRestriction instantiates a new CounterpartyTypesRestriction 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 NewCounterpartyTypesRestriction(operation string) *CounterpartyTypesRestriction { + this := CounterpartyTypesRestriction{} + this.Operation = operation + return &this +} + +// NewCounterpartyTypesRestrictionWithDefaults instantiates a new CounterpartyTypesRestriction 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 NewCounterpartyTypesRestrictionWithDefaults() *CounterpartyTypesRestriction { + this := CounterpartyTypesRestriction{} + return &this +} + +// GetOperation returns the Operation field value +func (o *CounterpartyTypesRestriction) GetOperation() string { + if o == nil { + var ret string + return ret + } + + return o.Operation +} + +// GetOperationOk returns a tuple with the Operation field value +// and a boolean to check if the value has been set. +func (o *CounterpartyTypesRestriction) GetOperationOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Operation, true +} + +// SetOperation sets field value +func (o *CounterpartyTypesRestriction) SetOperation(v string) { + o.Operation = v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *CounterpartyTypesRestriction) GetValue() []string { + if o == nil || common.IsNil(o.Value) { + var ret []string + return ret + } + return o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CounterpartyTypesRestriction) GetValueOk() ([]string, bool) { + if o == nil || common.IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *CounterpartyTypesRestriction) HasValue() bool { + if o != nil && !common.IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given []string and assigns it to the Value field. +func (o *CounterpartyTypesRestriction) SetValue(v []string) { + o.Value = v +} + +func (o CounterpartyTypesRestriction) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CounterpartyTypesRestriction) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["operation"] = o.Operation + if !common.IsNil(o.Value) { + toSerialize["value"] = o.Value + } + return toSerialize, nil +} + +type NullableCounterpartyTypesRestriction struct { + value *CounterpartyTypesRestriction + isSet bool +} + +func (v NullableCounterpartyTypesRestriction) Get() *CounterpartyTypesRestriction { + return v.value +} + +func (v *NullableCounterpartyTypesRestriction) Set(val *CounterpartyTypesRestriction) { + v.value = val + v.isSet = true +} + +func (v NullableCounterpartyTypesRestriction) IsSet() bool { + return v.isSet +} + +func (v *NullableCounterpartyTypesRestriction) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCounterpartyTypesRestriction(val *CounterpartyTypesRestriction) *NullableCounterpartyTypesRestriction { + return &NullableCounterpartyTypesRestriction{value: val, isSet: true} +} + +func (v NullableCounterpartyTypesRestriction) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCounterpartyTypesRestriction) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/src/balanceplatform/model_platform_payment_configuration.go b/src/balanceplatform/model_platform_payment_configuration.go index 9e7a75b3b..a1164746b 100644 --- a/src/balanceplatform/model_platform_payment_configuration.go +++ b/src/balanceplatform/model_platform_payment_configuration.go @@ -21,7 +21,7 @@ var _ common.MappedNullable = &PlatformPaymentConfiguration{} type PlatformPaymentConfiguration struct { // Specifies at what time a [sales day](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#sales-day) ends for this account. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**. SalesDayClosingTime *string `json:"salesDayClosingTime,omitempty"` - // Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#settlement-batch) are made available in this balance account. Possible values: **1** to **10**, or **null**. * Setting this value to an integer enables Sales day settlement in this balance account. See how Sales day settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/sales-day-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement). * Setting this value to **null** enables Pass-through settlement in this balance account. See how Pass-through settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/pass-through-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/pass-through-settlement). Default value: **null**. + // Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#settlement-batch) are made available in this balance account. Possible values: **1** to **20**, or **null**. * Setting this value to an integer enables Sales day settlement in this balance account. See how Sales day settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/sales-day-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement). * Setting this value to **null** enables Pass-through settlement in this balance account. See how Pass-through settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/pass-through-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/pass-through-settlement). Default value: **null**. SettlementDelayDays *int32 `json:"settlementDelayDays,omitempty"` } diff --git a/src/balanceplatform/model_source_account_types_restriction.go b/src/balanceplatform/model_source_account_types_restriction.go new file mode 100644 index 000000000..1275bf3f2 --- /dev/null +++ b/src/balanceplatform/model_source_account_types_restriction.go @@ -0,0 +1,153 @@ +/* +Configuration API + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package balanceplatform + +import ( + "encoding/json" + + "github.com/adyen/adyen-go-api-library/v16/src/common" +) + +// checks if the SourceAccountTypesRestriction type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &SourceAccountTypesRestriction{} + +// SourceAccountTypesRestriction struct for SourceAccountTypesRestriction +type SourceAccountTypesRestriction struct { + // Defines how the condition must be evaluated. + Operation string `json:"operation"` + // The list of source account types to be evaluated. + Value []string `json:"value,omitempty"` +} + +// NewSourceAccountTypesRestriction instantiates a new SourceAccountTypesRestriction 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 NewSourceAccountTypesRestriction(operation string) *SourceAccountTypesRestriction { + this := SourceAccountTypesRestriction{} + this.Operation = operation + return &this +} + +// NewSourceAccountTypesRestrictionWithDefaults instantiates a new SourceAccountTypesRestriction 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 NewSourceAccountTypesRestrictionWithDefaults() *SourceAccountTypesRestriction { + this := SourceAccountTypesRestriction{} + return &this +} + +// GetOperation returns the Operation field value +func (o *SourceAccountTypesRestriction) GetOperation() string { + if o == nil { + var ret string + return ret + } + + return o.Operation +} + +// GetOperationOk returns a tuple with the Operation field value +// and a boolean to check if the value has been set. +func (o *SourceAccountTypesRestriction) GetOperationOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Operation, true +} + +// SetOperation sets field value +func (o *SourceAccountTypesRestriction) SetOperation(v string) { + o.Operation = v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *SourceAccountTypesRestriction) GetValue() []string { + if o == nil || common.IsNil(o.Value) { + var ret []string + return ret + } + return o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SourceAccountTypesRestriction) GetValueOk() ([]string, bool) { + if o == nil || common.IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *SourceAccountTypesRestriction) HasValue() bool { + if o != nil && !common.IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given []string and assigns it to the Value field. +func (o *SourceAccountTypesRestriction) SetValue(v []string) { + o.Value = v +} + +func (o SourceAccountTypesRestriction) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SourceAccountTypesRestriction) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["operation"] = o.Operation + if !common.IsNil(o.Value) { + toSerialize["value"] = o.Value + } + return toSerialize, nil +} + +type NullableSourceAccountTypesRestriction struct { + value *SourceAccountTypesRestriction + isSet bool +} + +func (v NullableSourceAccountTypesRestriction) Get() *SourceAccountTypesRestriction { + return v.value +} + +func (v *NullableSourceAccountTypesRestriction) Set(val *SourceAccountTypesRestriction) { + v.value = val + v.isSet = true +} + +func (v NullableSourceAccountTypesRestriction) IsSet() bool { + return v.isSet +} + +func (v *NullableSourceAccountTypesRestriction) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSourceAccountTypesRestriction(val *SourceAccountTypesRestriction) *NullableSourceAccountTypesRestriction { + return &NullableSourceAccountTypesRestriction{value: val, isSet: true} +} + +func (v NullableSourceAccountTypesRestriction) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSourceAccountTypesRestriction) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/src/balanceplatform/model_transaction_rule_restrictions.go b/src/balanceplatform/model_transaction_rule_restrictions.go index 3fbaa9bc8..51ea35469 100644 --- a/src/balanceplatform/model_transaction_rule_restrictions.go +++ b/src/balanceplatform/model_transaction_rule_restrictions.go @@ -22,6 +22,7 @@ type TransactionRuleRestrictions struct { ActiveNetworkTokens *ActiveNetworkTokensRestriction `json:"activeNetworkTokens,omitempty"` BrandVariants *BrandVariantsRestriction `json:"brandVariants,omitempty"` CounterpartyBank *CounterpartyBankRestriction `json:"counterpartyBank,omitempty"` + CounterpartyTypes *CounterpartyTypesRestriction `json:"counterpartyTypes,omitempty"` Countries *CountriesRestriction `json:"countries,omitempty"` DayOfWeek *DayOfWeekRestriction `json:"dayOfWeek,omitempty"` DifferentCurrencies *DifferentCurrenciesRestriction `json:"differentCurrencies,omitempty"` @@ -36,6 +37,7 @@ type TransactionRuleRestrictions struct { RiskScores *RiskScoresRestriction `json:"riskScores,omitempty"` SameAmountRestriction *SameAmountRestriction `json:"sameAmountRestriction,omitempty"` SameCounterpartyRestriction *SameCounterpartyRestriction `json:"sameCounterpartyRestriction,omitempty"` + SourceAccountTypes *SourceAccountTypesRestriction `json:"sourceAccountTypes,omitempty"` TimeOfDay *TimeOfDayRestriction `json:"timeOfDay,omitempty"` TotalAmount *TotalAmountRestriction `json:"totalAmount,omitempty"` } @@ -153,6 +155,38 @@ func (o *TransactionRuleRestrictions) SetCounterpartyBank(v CounterpartyBankRest o.CounterpartyBank = &v } +// GetCounterpartyTypes returns the CounterpartyTypes field value if set, zero value otherwise. +func (o *TransactionRuleRestrictions) GetCounterpartyTypes() CounterpartyTypesRestriction { + if o == nil || common.IsNil(o.CounterpartyTypes) { + var ret CounterpartyTypesRestriction + return ret + } + return *o.CounterpartyTypes +} + +// GetCounterpartyTypesOk returns a tuple with the CounterpartyTypes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransactionRuleRestrictions) GetCounterpartyTypesOk() (*CounterpartyTypesRestriction, bool) { + if o == nil || common.IsNil(o.CounterpartyTypes) { + return nil, false + } + return o.CounterpartyTypes, true +} + +// HasCounterpartyTypes returns a boolean if a field has been set. +func (o *TransactionRuleRestrictions) HasCounterpartyTypes() bool { + if o != nil && !common.IsNil(o.CounterpartyTypes) { + return true + } + + return false +} + +// SetCounterpartyTypes gets a reference to the given CounterpartyTypesRestriction and assigns it to the CounterpartyTypes field. +func (o *TransactionRuleRestrictions) SetCounterpartyTypes(v CounterpartyTypesRestriction) { + o.CounterpartyTypes = &v +} + // GetCountries returns the Countries field value if set, zero value otherwise. func (o *TransactionRuleRestrictions) GetCountries() CountriesRestriction { if o == nil || common.IsNil(o.Countries) { @@ -601,6 +635,38 @@ func (o *TransactionRuleRestrictions) SetSameCounterpartyRestriction(v SameCount o.SameCounterpartyRestriction = &v } +// GetSourceAccountTypes returns the SourceAccountTypes field value if set, zero value otherwise. +func (o *TransactionRuleRestrictions) GetSourceAccountTypes() SourceAccountTypesRestriction { + if o == nil || common.IsNil(o.SourceAccountTypes) { + var ret SourceAccountTypesRestriction + return ret + } + return *o.SourceAccountTypes +} + +// GetSourceAccountTypesOk returns a tuple with the SourceAccountTypes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransactionRuleRestrictions) GetSourceAccountTypesOk() (*SourceAccountTypesRestriction, bool) { + if o == nil || common.IsNil(o.SourceAccountTypes) { + return nil, false + } + return o.SourceAccountTypes, true +} + +// HasSourceAccountTypes returns a boolean if a field has been set. +func (o *TransactionRuleRestrictions) HasSourceAccountTypes() bool { + if o != nil && !common.IsNil(o.SourceAccountTypes) { + return true + } + + return false +} + +// SetSourceAccountTypes gets a reference to the given SourceAccountTypesRestriction and assigns it to the SourceAccountTypes field. +func (o *TransactionRuleRestrictions) SetSourceAccountTypes(v SourceAccountTypesRestriction) { + o.SourceAccountTypes = &v +} + // GetTimeOfDay returns the TimeOfDay field value if set, zero value otherwise. func (o *TransactionRuleRestrictions) GetTimeOfDay() TimeOfDayRestriction { if o == nil || common.IsNil(o.TimeOfDay) { @@ -684,6 +750,9 @@ func (o TransactionRuleRestrictions) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.CounterpartyBank) { toSerialize["counterpartyBank"] = o.CounterpartyBank } + if !common.IsNil(o.CounterpartyTypes) { + toSerialize["counterpartyTypes"] = o.CounterpartyTypes + } if !common.IsNil(o.Countries) { toSerialize["countries"] = o.Countries } @@ -726,6 +795,9 @@ func (o TransactionRuleRestrictions) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.SameCounterpartyRestriction) { toSerialize["sameCounterpartyRestriction"] = o.SameCounterpartyRestriction } + if !common.IsNil(o.SourceAccountTypes) { + toSerialize["sourceAccountTypes"] = o.SourceAccountTypes + } if !common.IsNil(o.TimeOfDay) { toSerialize["timeOfDay"] = o.TimeOfDay } diff --git a/src/configurationwebhook/model_account_holder_notification_request.go b/src/configurationwebhook/model_account_holder_notification_request.go index cd2dc9500..b8ed61eee 100644 --- a/src/configurationwebhook/model_account_holder_notification_request.go +++ b/src/configurationwebhook/model_account_holder_notification_request.go @@ -10,6 +10,7 @@ package configurationwebhook import ( "encoding/json" + "time" "github.com/adyen/adyen-go-api-library/v16/src/common" ) @@ -22,6 +23,8 @@ type AccountHolderNotificationRequest struct { Data AccountHolderNotificationData `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"` } @@ -94,6 +97,38 @@ func (o *AccountHolderNotificationRequest) SetEnvironment(v string) { o.Environment = v } +// GetTimestamp returns the Timestamp field value if set, zero value otherwise. +func (o *AccountHolderNotificationRequest) GetTimestamp() time.Time { + if o == nil || common.IsNil(o.Timestamp) { + var ret time.Time + return ret + } + return *o.Timestamp +} + +// 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 (o *AccountHolderNotificationRequest) GetTimestampOk() (*time.Time, bool) { + if o == nil || common.IsNil(o.Timestamp) { + return nil, false + } + return o.Timestamp, true +} + +// HasTimestamp returns a boolean if a field has been set. +func (o *AccountHolderNotificationRequest) HasTimestamp() bool { + if o != nil && !common.IsNil(o.Timestamp) { + return true + } + + return false +} + +// SetTimestamp gets a reference to the given time.Time and assigns it to the Timestamp field. +func (o *AccountHolderNotificationRequest) SetTimestamp(v time.Time) { + o.Timestamp = &v +} + // GetType returns the Type field value func (o *AccountHolderNotificationRequest) GetType() string { if o == nil { @@ -130,6 +165,9 @@ func (o AccountHolderNotificationRequest) ToMap() (map[string]interface{}, error toSerialize := map[string]interface{}{} toSerialize["data"] = o.Data toSerialize["environment"] = o.Environment + if !common.IsNil(o.Timestamp) { + toSerialize["timestamp"] = o.Timestamp + } toSerialize["type"] = o.Type return toSerialize, nil } diff --git a/src/configurationwebhook/model_amount.go b/src/configurationwebhook/model_amount.go index ba11842d7..eb509837a 100644 --- a/src/configurationwebhook/model_amount.go +++ b/src/configurationwebhook/model_amount.go @@ -19,9 +19,9 @@ var _ common.MappedNullable = &Amount{} // Amount struct for Amount type Amount struct { - // The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + // The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). Currency string `json:"currency"` - // The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + // The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). Value int64 `json:"value"` } diff --git a/src/configurationwebhook/model_balance.go b/src/configurationwebhook/model_balance.go index 373123715..2de1033c1 100644 --- a/src/configurationwebhook/model_balance.go +++ b/src/configurationwebhook/model_balance.go @@ -19,15 +19,15 @@ var _ common.MappedNullable = &Balance{} // Balance struct for Balance type Balance struct { - // The current balance minus any reserved balance. + // The balance available for use. Available int64 `json:"available"` - // The current balance of funds in the balance account. These are the funds from all transactions with a value date in the past that have not yet been paid out. + // The sum of transactions that have already been settled. Balance int64 `json:"balance"` // The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. Currency string `json:"currency"` - // The amount of funds that Adyen has processed for this account, but will be settled in a future date. For more information, see how to settle funds for users in your [platform](https://docs.adyen.com/platforms/settle-funds) and [marketplace](https://docs.adyen.com/marketplaces/settle-funds). + // The sum of the transactions that will be settled in the future. Pending *int64 `json:"pending,omitempty"` - // The amount reserved for payments that have been [authorised](https://docs.adyen.com/issuing/payment-stages/#authorised), but not yet [captured](https://docs.adyen.com/issuing/payment-stages/#captured) by the merchant. Applies only to [Adyen-issued cards](https://docs.adyen.com/issuing). + // The balance currently held in reserve. Reserved int64 `json:"reserved"` } diff --git a/src/configurationwebhook/model_balance_account_notification_request.go b/src/configurationwebhook/model_balance_account_notification_request.go index f7ce19ffe..75ccb654f 100644 --- a/src/configurationwebhook/model_balance_account_notification_request.go +++ b/src/configurationwebhook/model_balance_account_notification_request.go @@ -10,6 +10,7 @@ package configurationwebhook import ( "encoding/json" + "time" "github.com/adyen/adyen-go-api-library/v16/src/common" ) @@ -22,6 +23,8 @@ type BalanceAccountNotificationRequest struct { Data BalanceAccountNotificationData `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"` } @@ -94,6 +97,38 @@ func (o *BalanceAccountNotificationRequest) SetEnvironment(v string) { o.Environment = v } +// GetTimestamp returns the Timestamp field value if set, zero value otherwise. +func (o *BalanceAccountNotificationRequest) GetTimestamp() time.Time { + if o == nil || common.IsNil(o.Timestamp) { + var ret time.Time + return ret + } + return *o.Timestamp +} + +// 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 (o *BalanceAccountNotificationRequest) GetTimestampOk() (*time.Time, bool) { + if o == nil || common.IsNil(o.Timestamp) { + return nil, false + } + return o.Timestamp, true +} + +// HasTimestamp returns a boolean if a field has been set. +func (o *BalanceAccountNotificationRequest) HasTimestamp() bool { + if o != nil && !common.IsNil(o.Timestamp) { + return true + } + + return false +} + +// SetTimestamp gets a reference to the given time.Time and assigns it to the Timestamp field. +func (o *BalanceAccountNotificationRequest) SetTimestamp(v time.Time) { + o.Timestamp = &v +} + // GetType returns the Type field value func (o *BalanceAccountNotificationRequest) GetType() string { if o == nil { @@ -130,6 +165,9 @@ func (o BalanceAccountNotificationRequest) ToMap() (map[string]interface{}, erro toSerialize := map[string]interface{}{} toSerialize["data"] = o.Data toSerialize["environment"] = o.Environment + if !common.IsNil(o.Timestamp) { + toSerialize["timestamp"] = o.Timestamp + } toSerialize["type"] = o.Type return toSerialize, nil } diff --git a/src/configurationwebhook/model_card_order_notification_request.go b/src/configurationwebhook/model_card_order_notification_request.go index 0084fbbf2..56639875f 100644 --- a/src/configurationwebhook/model_card_order_notification_request.go +++ b/src/configurationwebhook/model_card_order_notification_request.go @@ -10,6 +10,7 @@ package configurationwebhook import ( "encoding/json" + "time" "github.com/adyen/adyen-go-api-library/v16/src/common" ) @@ -22,6 +23,8 @@ type CardOrderNotificationRequest struct { Data CardOrderItem `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"` } @@ -94,6 +97,38 @@ func (o *CardOrderNotificationRequest) SetEnvironment(v string) { o.Environment = v } +// GetTimestamp returns the Timestamp field value if set, zero value otherwise. +func (o *CardOrderNotificationRequest) GetTimestamp() time.Time { + if o == nil || common.IsNil(o.Timestamp) { + var ret time.Time + return ret + } + return *o.Timestamp +} + +// 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 (o *CardOrderNotificationRequest) GetTimestampOk() (*time.Time, bool) { + if o == nil || common.IsNil(o.Timestamp) { + return nil, false + } + return o.Timestamp, true +} + +// HasTimestamp returns a boolean if a field has been set. +func (o *CardOrderNotificationRequest) HasTimestamp() bool { + if o != nil && !common.IsNil(o.Timestamp) { + return true + } + + return false +} + +// SetTimestamp gets a reference to the given time.Time and assigns it to the Timestamp field. +func (o *CardOrderNotificationRequest) SetTimestamp(v time.Time) { + o.Timestamp = &v +} + // GetType returns the Type field value func (o *CardOrderNotificationRequest) GetType() string { if o == nil { @@ -130,6 +165,9 @@ func (o CardOrderNotificationRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["data"] = o.Data toSerialize["environment"] = o.Environment + if !common.IsNil(o.Timestamp) { + toSerialize["timestamp"] = o.Timestamp + } toSerialize["type"] = o.Type return toSerialize, nil } diff --git a/src/configurationwebhook/model_payment_notification_request.go b/src/configurationwebhook/model_payment_notification_request.go index ff289c20f..33773634a 100644 --- a/src/configurationwebhook/model_payment_notification_request.go +++ b/src/configurationwebhook/model_payment_notification_request.go @@ -10,6 +10,7 @@ package configurationwebhook import ( "encoding/json" + "time" "github.com/adyen/adyen-go-api-library/v16/src/common" ) @@ -22,6 +23,8 @@ type PaymentNotificationRequest struct { Data PaymentInstrumentNotificationData `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"` } @@ -94,6 +97,38 @@ func (o *PaymentNotificationRequest) SetEnvironment(v string) { o.Environment = v } +// GetTimestamp returns the Timestamp field value if set, zero value otherwise. +func (o *PaymentNotificationRequest) GetTimestamp() time.Time { + if o == nil || common.IsNil(o.Timestamp) { + var ret time.Time + return ret + } + return *o.Timestamp +} + +// 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 (o *PaymentNotificationRequest) GetTimestampOk() (*time.Time, bool) { + if o == nil || common.IsNil(o.Timestamp) { + return nil, false + } + return o.Timestamp, true +} + +// HasTimestamp returns a boolean if a field has been set. +func (o *PaymentNotificationRequest) HasTimestamp() bool { + if o != nil && !common.IsNil(o.Timestamp) { + return true + } + + return false +} + +// SetTimestamp gets a reference to the given time.Time and assigns it to the Timestamp field. +func (o *PaymentNotificationRequest) SetTimestamp(v time.Time) { + o.Timestamp = &v +} + // GetType returns the Type field value func (o *PaymentNotificationRequest) GetType() string { if o == nil { @@ -130,6 +165,9 @@ func (o PaymentNotificationRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["data"] = o.Data toSerialize["environment"] = o.Environment + if !common.IsNil(o.Timestamp) { + toSerialize["timestamp"] = o.Timestamp + } toSerialize["type"] = o.Type return toSerialize, nil } diff --git a/src/configurationwebhook/model_platform_payment_configuration.go b/src/configurationwebhook/model_platform_payment_configuration.go index 9301f100f..423fd9ab6 100644 --- a/src/configurationwebhook/model_platform_payment_configuration.go +++ b/src/configurationwebhook/model_platform_payment_configuration.go @@ -21,7 +21,7 @@ var _ common.MappedNullable = &PlatformPaymentConfiguration{} type PlatformPaymentConfiguration struct { // Specifies at what time a [sales day](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#sales-day) ends for this account. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**. SalesDayClosingTime *string `json:"salesDayClosingTime,omitempty"` - // Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#settlement-batch) are made available in this balance account. Possible values: **1** to **10**, or **null**. * Setting this value to an integer enables Sales day settlement in this balance account. See how Sales day settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/sales-day-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement). * Setting this value to **null** enables Pass-through settlement in this balance account. See how Pass-through settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/pass-through-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/pass-through-settlement). Default value: **null**. + // Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#settlement-batch) are made available in this balance account. Possible values: **1** to **20**, or **null**. * Setting this value to an integer enables Sales day settlement in this balance account. See how Sales day settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/sales-day-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement). * Setting this value to **null** enables Pass-through settlement in this balance account. See how Pass-through settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/pass-through-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/pass-through-settlement). Default value: **null**. SettlementDelayDays *int32 `json:"settlementDelayDays,omitempty"` } diff --git a/src/configurationwebhook/model_sweep_configuration_notification_request.go b/src/configurationwebhook/model_sweep_configuration_notification_request.go index 871f0a79e..e36d288f2 100644 --- a/src/configurationwebhook/model_sweep_configuration_notification_request.go +++ b/src/configurationwebhook/model_sweep_configuration_notification_request.go @@ -10,6 +10,7 @@ package configurationwebhook import ( "encoding/json" + "time" "github.com/adyen/adyen-go-api-library/v16/src/common" ) @@ -22,6 +23,8 @@ type SweepConfigurationNotificationRequest struct { Data SweepConfigurationNotificationData `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"` } @@ -94,6 +97,38 @@ func (o *SweepConfigurationNotificationRequest) SetEnvironment(v string) { o.Environment = v } +// GetTimestamp returns the Timestamp field value if set, zero value otherwise. +func (o *SweepConfigurationNotificationRequest) GetTimestamp() time.Time { + if o == nil || common.IsNil(o.Timestamp) { + var ret time.Time + return ret + } + return *o.Timestamp +} + +// 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 (o *SweepConfigurationNotificationRequest) GetTimestampOk() (*time.Time, bool) { + if o == nil || common.IsNil(o.Timestamp) { + return nil, false + } + return o.Timestamp, true +} + +// HasTimestamp returns a boolean if a field has been set. +func (o *SweepConfigurationNotificationRequest) HasTimestamp() bool { + if o != nil && !common.IsNil(o.Timestamp) { + return true + } + + return false +} + +// SetTimestamp gets a reference to the given time.Time and assigns it to the Timestamp field. +func (o *SweepConfigurationNotificationRequest) SetTimestamp(v time.Time) { + o.Timestamp = &v +} + // GetType returns the Type field value func (o *SweepConfigurationNotificationRequest) GetType() string { if o == nil { @@ -130,6 +165,9 @@ func (o SweepConfigurationNotificationRequest) ToMap() (map[string]interface{}, toSerialize := map[string]interface{}{} toSerialize["data"] = o.Data toSerialize["environment"] = o.Environment + if !common.IsNil(o.Timestamp) { + toSerialize["timestamp"] = o.Timestamp + } toSerialize["type"] = o.Type return toSerialize, nil } diff --git a/src/reportwebhook/model_report_notification_request.go b/src/reportwebhook/model_report_notification_request.go index 67fd7ecf9..8efcc515b 100644 --- a/src/reportwebhook/model_report_notification_request.go +++ b/src/reportwebhook/model_report_notification_request.go @@ -10,6 +10,7 @@ package reportwebhook import ( "encoding/json" + "time" "github.com/adyen/adyen-go-api-library/v16/src/common" ) @@ -22,6 +23,8 @@ type ReportNotificationRequest struct { Data ReportNotificationData `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"` } @@ -94,6 +97,38 @@ func (o *ReportNotificationRequest) SetEnvironment(v string) { o.Environment = v } +// GetTimestamp returns the Timestamp field value if set, zero value otherwise. +func (o *ReportNotificationRequest) GetTimestamp() time.Time { + if o == nil || common.IsNil(o.Timestamp) { + var ret time.Time + return ret + } + return *o.Timestamp +} + +// 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 (o *ReportNotificationRequest) GetTimestampOk() (*time.Time, bool) { + if o == nil || common.IsNil(o.Timestamp) { + return nil, false + } + return o.Timestamp, true +} + +// HasTimestamp returns a boolean if a field has been set. +func (o *ReportNotificationRequest) HasTimestamp() bool { + if o != nil && !common.IsNil(o.Timestamp) { + return true + } + + return false +} + +// SetTimestamp gets a reference to the given time.Time and assigns it to the Timestamp field. +func (o *ReportNotificationRequest) SetTimestamp(v time.Time) { + o.Timestamp = &v +} + // GetType returns the Type field value func (o *ReportNotificationRequest) GetType() string { if o == nil { @@ -130,6 +165,9 @@ func (o ReportNotificationRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["data"] = o.Data toSerialize["environment"] = o.Environment + if !common.IsNil(o.Timestamp) { + toSerialize["timestamp"] = o.Timestamp + } toSerialize["type"] = o.Type return toSerialize, nil }