diff --git a/Readme.md b/Readme.md index ffb9de060..035608f82 100644 --- a/Readme.md +++ b/Readme.md @@ -49,7 +49,6 @@ The library supports all webhooks under the following model directories: | [Report Webhooks](https://docs.adyen.com/api-explorer/report-webhooks/1/overview) | You can download reports programmatically by making an HTTP GET request, or manually from your Balance Platform Customer Area | [reportwebhook](src/reportwebhook) | **v1** | | [Management Webhooks](https://docs.adyen.com/api-explorer/ManagementNotification/3/overview) | Adyen uses webhooks to inform your system about events that happen with your Adyen company and merchant accounts, stores, payment terminals, and payment methods when using Management API. | [managementwebhook](src/managementwebhook) | **v3** | | [Transaction Webhooks](https://docs.adyen.com/api-explorer/transaction-webhooks/4/overview) | Adyen sends webhooks to inform your system about incoming and outgoing transfers in your platform. You can use these webhooks to build your implementation. For example, you can use this information to update balances in your own dashboards or to keep track of incoming funds. | [transactionwebhook](src/transactionwebhook) | **v4** | -| [Dispute Webhooks](https://docs.adyen.com/api-explorer/dispute-webhooks/latest/overview) | Adyen sends webhooks to inform your system about the creation or update of raised disputes, and chargebacks resulting from raised disputes. | [disputewebhook](src/disputewebhook) | **v1** | | [Platforms Notifications Webhooks](https://docs.adyen.com/api-explorer/Notification/6/overview) | **Deprecated:** This API is used for the classic integration. If you are just starting your implementation, refer to our [new integration guide](https://docs.adyen.com/marketplaces-and-platforms) instead. | [platformsnotificationevents](src/platformsnotificationevents) | **v6** | ## Prerequisites diff --git a/src/balanceplatform/model_create_sweep_configuration_v2.go b/src/balanceplatform/model_create_sweep_configuration_v2.go index 53c7d6f3c..91798f1de 100644 --- a/src/balanceplatform/model_create_sweep_configuration_v2.go +++ b/src/balanceplatform/model_create_sweep_configuration_v2.go @@ -30,8 +30,6 @@ type CreateSweepConfigurationV2 struct { Priorities []string `json:"priorities,omitempty"` // The reason for disabling the sweep. Reason *string `json:"reason,omitempty"` - // The human readable reason for disabling the sweep. - ReasonDetail *string `json:"reasonDetail,omitempty"` // Your reference for the sweep configuration. Reference *string `json:"reference,omitempty"` // The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. @@ -246,38 +244,6 @@ func (o *CreateSweepConfigurationV2) SetReason(v string) { o.Reason = &v } -// GetReasonDetail returns the ReasonDetail field value if set, zero value otherwise. -func (o *CreateSweepConfigurationV2) GetReasonDetail() string { - if o == nil || common.IsNil(o.ReasonDetail) { - var ret string - return ret - } - return *o.ReasonDetail -} - -// GetReasonDetailOk returns a tuple with the ReasonDetail field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateSweepConfigurationV2) GetReasonDetailOk() (*string, bool) { - if o == nil || common.IsNil(o.ReasonDetail) { - return nil, false - } - return o.ReasonDetail, true -} - -// HasReasonDetail returns a boolean if a field has been set. -func (o *CreateSweepConfigurationV2) HasReasonDetail() bool { - if o != nil && !common.IsNil(o.ReasonDetail) { - return true - } - - return false -} - -// SetReasonDetail gets a reference to the given string and assigns it to the ReasonDetail field. -func (o *CreateSweepConfigurationV2) SetReasonDetail(v string) { - o.ReasonDetail = &v -} - // GetReference returns the Reference field value if set, zero value otherwise. func (o *CreateSweepConfigurationV2) GetReference() string { if o == nil || common.IsNil(o.Reference) { @@ -550,9 +516,6 @@ func (o CreateSweepConfigurationV2) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.Reason) { toSerialize["reason"] = o.Reason } - if !common.IsNil(o.ReasonDetail) { - toSerialize["reasonDetail"] = o.ReasonDetail - } if !common.IsNil(o.Reference) { toSerialize["reference"] = o.Reference } diff --git a/src/balanceplatform/model_sweep_configuration_v2.go b/src/balanceplatform/model_sweep_configuration_v2.go index 4e052c06b..6859a7a5b 100644 --- a/src/balanceplatform/model_sweep_configuration_v2.go +++ b/src/balanceplatform/model_sweep_configuration_v2.go @@ -32,8 +32,6 @@ type SweepConfigurationV2 struct { Priorities []string `json:"priorities,omitempty"` // The reason for disabling the sweep. Reason *string `json:"reason,omitempty"` - // The human readable reason for disabling the sweep. - ReasonDetail *string `json:"reasonDetail,omitempty"` // Your reference for the sweep configuration. Reference *string `json:"reference,omitempty"` // The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. @@ -273,38 +271,6 @@ func (o *SweepConfigurationV2) SetReason(v string) { o.Reason = &v } -// GetReasonDetail returns the ReasonDetail field value if set, zero value otherwise. -func (o *SweepConfigurationV2) GetReasonDetail() string { - if o == nil || common.IsNil(o.ReasonDetail) { - var ret string - return ret - } - return *o.ReasonDetail -} - -// GetReasonDetailOk returns a tuple with the ReasonDetail field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SweepConfigurationV2) GetReasonDetailOk() (*string, bool) { - if o == nil || common.IsNil(o.ReasonDetail) { - return nil, false - } - return o.ReasonDetail, true -} - -// HasReasonDetail returns a boolean if a field has been set. -func (o *SweepConfigurationV2) HasReasonDetail() bool { - if o != nil && !common.IsNil(o.ReasonDetail) { - return true - } - - return false -} - -// SetReasonDetail gets a reference to the given string and assigns it to the ReasonDetail field. -func (o *SweepConfigurationV2) SetReasonDetail(v string) { - o.ReasonDetail = &v -} - // GetReference returns the Reference field value if set, zero value otherwise. func (o *SweepConfigurationV2) GetReference() string { if o == nil || common.IsNil(o.Reference) { @@ -578,9 +544,6 @@ func (o SweepConfigurationV2) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.Reason) { toSerialize["reason"] = o.Reason } - if !common.IsNil(o.ReasonDetail) { - toSerialize["reasonDetail"] = o.ReasonDetail - } if !common.IsNil(o.Reference) { toSerialize["reference"] = o.Reference } diff --git a/src/balanceplatform/model_update_sweep_configuration_v2.go b/src/balanceplatform/model_update_sweep_configuration_v2.go index 8f6270a8a..95bf46145 100644 --- a/src/balanceplatform/model_update_sweep_configuration_v2.go +++ b/src/balanceplatform/model_update_sweep_configuration_v2.go @@ -32,8 +32,6 @@ type UpdateSweepConfigurationV2 struct { Priorities []string `json:"priorities,omitempty"` // The reason for disabling the sweep. Reason *string `json:"reason,omitempty"` - // The human readable reason for disabling the sweep. - ReasonDetail *string `json:"reasonDetail,omitempty"` // Your reference for the sweep configuration. Reference *string `json:"reference,omitempty"` // The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. @@ -293,38 +291,6 @@ func (o *UpdateSweepConfigurationV2) SetReason(v string) { o.Reason = &v } -// GetReasonDetail returns the ReasonDetail field value if set, zero value otherwise. -func (o *UpdateSweepConfigurationV2) GetReasonDetail() string { - if o == nil || common.IsNil(o.ReasonDetail) { - var ret string - return ret - } - return *o.ReasonDetail -} - -// GetReasonDetailOk returns a tuple with the ReasonDetail field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *UpdateSweepConfigurationV2) GetReasonDetailOk() (*string, bool) { - if o == nil || common.IsNil(o.ReasonDetail) { - return nil, false - } - return o.ReasonDetail, true -} - -// HasReasonDetail returns a boolean if a field has been set. -func (o *UpdateSweepConfigurationV2) HasReasonDetail() bool { - if o != nil && !common.IsNil(o.ReasonDetail) { - return true - } - - return false -} - -// SetReasonDetail gets a reference to the given string and assigns it to the ReasonDetail field. -func (o *UpdateSweepConfigurationV2) SetReasonDetail(v string) { - o.ReasonDetail = &v -} - // GetReference returns the Reference field value if set, zero value otherwise. func (o *UpdateSweepConfigurationV2) GetReference() string { if o == nil || common.IsNil(o.Reference) { @@ -612,9 +578,6 @@ func (o UpdateSweepConfigurationV2) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.Reason) { toSerialize["reason"] = o.Reason } - if !common.IsNil(o.ReasonDetail) { - toSerialize["reasonDetail"] = o.ReasonDetail - } if !common.IsNil(o.Reference) { toSerialize["reference"] = o.Reference } diff --git a/src/checkout/api_payments.go b/src/checkout/api_payments.go index 280d9f9a1..0ba6d5fb6 100644 --- a/src/checkout/api_payments.go +++ b/src/checkout/api_payments.go @@ -47,11 +47,9 @@ func (a *PaymentsApi) CardDetailsInput() PaymentsApiCardDetailsInput { } /* -CardDetails Get the brands and other details of a card +CardDetails Get the list of brands on the card -Use this endpoint to get information about the card or network token that enables you to decideon the routing of the transaction and the eligibility of the card for the type of transaction. - -If you include [your supported brands](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/cardDetails__reqParam_supportedBrands) in the request, the response also tells you if you support each [brand that was identified on the card](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/cardDetails__resParam_details). +Send a request with at least the first 6 digits of the card number to get a response with an array of brands on the card. If you include [your supported brands](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/cardDetails__reqParam_supportedBrands) in the request, the response also tells you if you support each [brand that was identified](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/cardDetails__resParam_details). If you have an API-only integration and collect card data, use this endpoint to find out if the shopper's card is co-branded. For co-branded cards, you must let the shopper choose the brand to pay with if you support both brands. diff --git a/src/checkout/model_amount.go b/src/checkout/model_amount.go index 39d0d02be..eac12a5d3 100644 --- a/src/checkout/model_amount.go +++ b/src/checkout/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#currency-codes). + // The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). Currency string `json:"currency"` - // The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + // The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). Value int64 `json:"value"` } diff --git a/src/checkout/model_card_details_request.go b/src/checkout/model_card_details_request.go index 6df46476a..a3db93144 100644 --- a/src/checkout/model_card_details_request.go +++ b/src/checkout/model_card_details_request.go @@ -19,7 +19,7 @@ var _ common.MappedNullable = &CardDetailsRequest{} // CardDetailsRequest struct for CardDetailsRequest type CardDetailsRequest struct { - // A minimum of the first eight digits of the card number. The full card number gives the best result. You must be [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide) to collect raw card data. + // A minimum of the first 8 digits of the card number and a maximum of the full card number. 11 digits gives the best result. You must be [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide) to collect raw card data. CardNumber string `json:"cardNumber"` // The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE CountryCode *string `json:"countryCode,omitempty"` diff --git a/src/checkout/model_checkout_bank_account.go b/src/checkout/model_checkout_bank_account.go deleted file mode 100644 index a05f962b5..000000000 --- a/src/checkout/model_checkout_bank_account.go +++ /dev/null @@ -1,468 +0,0 @@ -/* -Adyen Checkout API - -API version: 71 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package checkout - -import ( - "encoding/json" - - "github.com/adyen/adyen-go-api-library/v15/src/common" -) - -// checks if the CheckoutBankAccount type satisfies the MappedNullable interface at compile time -var _ common.MappedNullable = &CheckoutBankAccount{} - -// CheckoutBankAccount struct for CheckoutBankAccount -type CheckoutBankAccount struct { - // The type of the bank account. - AccountType *string `json:"accountType,omitempty"` - // The bank account number (without separators). - BankAccountNumber *string `json:"bankAccountNumber,omitempty"` - // The bank city. - BankCity *string `json:"bankCity,omitempty"` - // The location id of the bank. The field value is `nil` in most cases. - BankLocationId *string `json:"bankLocationId,omitempty"` - // The name of the bank. - BankName *string `json:"bankName,omitempty"` - // The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. - Bic *string `json:"bic,omitempty"` - // Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). - CountryCode *string `json:"countryCode,omitempty"` - // The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). - Iban *string `json:"iban,omitempty"` - // The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. - OwnerName *string `json:"ownerName,omitempty"` - // The bank account holder's tax ID. - TaxId *string `json:"taxId,omitempty"` -} - -// NewCheckoutBankAccount instantiates a new CheckoutBankAccount 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 NewCheckoutBankAccount() *CheckoutBankAccount { - this := CheckoutBankAccount{} - return &this -} - -// NewCheckoutBankAccountWithDefaults instantiates a new CheckoutBankAccount 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 NewCheckoutBankAccountWithDefaults() *CheckoutBankAccount { - this := CheckoutBankAccount{} - return &this -} - -// GetAccountType returns the AccountType field value if set, zero value otherwise. -func (o *CheckoutBankAccount) GetAccountType() string { - if o == nil || common.IsNil(o.AccountType) { - var ret string - return ret - } - return *o.AccountType -} - -// GetAccountTypeOk returns a tuple with the AccountType field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CheckoutBankAccount) GetAccountTypeOk() (*string, bool) { - if o == nil || common.IsNil(o.AccountType) { - return nil, false - } - return o.AccountType, true -} - -// HasAccountType returns a boolean if a field has been set. -func (o *CheckoutBankAccount) HasAccountType() bool { - if o != nil && !common.IsNil(o.AccountType) { - return true - } - - return false -} - -// SetAccountType gets a reference to the given string and assigns it to the AccountType field. -func (o *CheckoutBankAccount) SetAccountType(v string) { - o.AccountType = &v -} - -// GetBankAccountNumber returns the BankAccountNumber field value if set, zero value otherwise. -func (o *CheckoutBankAccount) GetBankAccountNumber() string { - if o == nil || common.IsNil(o.BankAccountNumber) { - var ret string - return ret - } - return *o.BankAccountNumber -} - -// GetBankAccountNumberOk returns a tuple with the BankAccountNumber field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CheckoutBankAccount) GetBankAccountNumberOk() (*string, bool) { - if o == nil || common.IsNil(o.BankAccountNumber) { - return nil, false - } - return o.BankAccountNumber, true -} - -// HasBankAccountNumber returns a boolean if a field has been set. -func (o *CheckoutBankAccount) HasBankAccountNumber() bool { - if o != nil && !common.IsNil(o.BankAccountNumber) { - return true - } - - return false -} - -// SetBankAccountNumber gets a reference to the given string and assigns it to the BankAccountNumber field. -func (o *CheckoutBankAccount) SetBankAccountNumber(v string) { - o.BankAccountNumber = &v -} - -// GetBankCity returns the BankCity field value if set, zero value otherwise. -func (o *CheckoutBankAccount) GetBankCity() string { - if o == nil || common.IsNil(o.BankCity) { - var ret string - return ret - } - return *o.BankCity -} - -// GetBankCityOk returns a tuple with the BankCity field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CheckoutBankAccount) GetBankCityOk() (*string, bool) { - if o == nil || common.IsNil(o.BankCity) { - return nil, false - } - return o.BankCity, true -} - -// HasBankCity returns a boolean if a field has been set. -func (o *CheckoutBankAccount) HasBankCity() bool { - if o != nil && !common.IsNil(o.BankCity) { - return true - } - - return false -} - -// SetBankCity gets a reference to the given string and assigns it to the BankCity field. -func (o *CheckoutBankAccount) SetBankCity(v string) { - o.BankCity = &v -} - -// GetBankLocationId returns the BankLocationId field value if set, zero value otherwise. -func (o *CheckoutBankAccount) GetBankLocationId() string { - if o == nil || common.IsNil(o.BankLocationId) { - var ret string - return ret - } - return *o.BankLocationId -} - -// GetBankLocationIdOk returns a tuple with the BankLocationId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CheckoutBankAccount) GetBankLocationIdOk() (*string, bool) { - if o == nil || common.IsNil(o.BankLocationId) { - return nil, false - } - return o.BankLocationId, true -} - -// HasBankLocationId returns a boolean if a field has been set. -func (o *CheckoutBankAccount) HasBankLocationId() bool { - if o != nil && !common.IsNil(o.BankLocationId) { - return true - } - - return false -} - -// SetBankLocationId gets a reference to the given string and assigns it to the BankLocationId field. -func (o *CheckoutBankAccount) SetBankLocationId(v string) { - o.BankLocationId = &v -} - -// GetBankName returns the BankName field value if set, zero value otherwise. -func (o *CheckoutBankAccount) GetBankName() string { - if o == nil || common.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 *CheckoutBankAccount) GetBankNameOk() (*string, bool) { - if o == nil || common.IsNil(o.BankName) { - return nil, false - } - return o.BankName, true -} - -// HasBankName returns a boolean if a field has been set. -func (o *CheckoutBankAccount) HasBankName() bool { - if o != nil && !common.IsNil(o.BankName) { - return true - } - - return false -} - -// SetBankName gets a reference to the given string and assigns it to the BankName field. -func (o *CheckoutBankAccount) SetBankName(v string) { - o.BankName = &v -} - -// GetBic returns the Bic field value if set, zero value otherwise. -func (o *CheckoutBankAccount) GetBic() string { - if o == nil || common.IsNil(o.Bic) { - var ret string - return ret - } - return *o.Bic -} - -// GetBicOk returns a tuple with the Bic field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CheckoutBankAccount) GetBicOk() (*string, bool) { - if o == nil || common.IsNil(o.Bic) { - return nil, false - } - return o.Bic, true -} - -// HasBic returns a boolean if a field has been set. -func (o *CheckoutBankAccount) HasBic() bool { - if o != nil && !common.IsNil(o.Bic) { - return true - } - - return false -} - -// SetBic gets a reference to the given string and assigns it to the Bic field. -func (o *CheckoutBankAccount) SetBic(v string) { - o.Bic = &v -} - -// GetCountryCode returns the CountryCode field value if set, zero value otherwise. -func (o *CheckoutBankAccount) GetCountryCode() string { - if o == nil || common.IsNil(o.CountryCode) { - var ret string - return ret - } - return *o.CountryCode -} - -// GetCountryCodeOk returns a tuple with the CountryCode field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CheckoutBankAccount) GetCountryCodeOk() (*string, bool) { - if o == nil || common.IsNil(o.CountryCode) { - return nil, false - } - return o.CountryCode, true -} - -// HasCountryCode returns a boolean if a field has been set. -func (o *CheckoutBankAccount) HasCountryCode() bool { - if o != nil && !common.IsNil(o.CountryCode) { - return true - } - - return false -} - -// SetCountryCode gets a reference to the given string and assigns it to the CountryCode field. -func (o *CheckoutBankAccount) SetCountryCode(v string) { - o.CountryCode = &v -} - -// GetIban returns the Iban field value if set, zero value otherwise. -func (o *CheckoutBankAccount) GetIban() string { - if o == nil || common.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 *CheckoutBankAccount) GetIbanOk() (*string, bool) { - if o == nil || common.IsNil(o.Iban) { - return nil, false - } - return o.Iban, true -} - -// HasIban returns a boolean if a field has been set. -func (o *CheckoutBankAccount) HasIban() bool { - if o != nil && !common.IsNil(o.Iban) { - return true - } - - return false -} - -// SetIban gets a reference to the given string and assigns it to the Iban field. -func (o *CheckoutBankAccount) SetIban(v string) { - o.Iban = &v -} - -// GetOwnerName returns the OwnerName field value if set, zero value otherwise. -func (o *CheckoutBankAccount) GetOwnerName() string { - if o == nil || common.IsNil(o.OwnerName) { - var ret string - return ret - } - return *o.OwnerName -} - -// GetOwnerNameOk returns a tuple with the OwnerName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CheckoutBankAccount) GetOwnerNameOk() (*string, bool) { - if o == nil || common.IsNil(o.OwnerName) { - return nil, false - } - return o.OwnerName, true -} - -// HasOwnerName returns a boolean if a field has been set. -func (o *CheckoutBankAccount) HasOwnerName() bool { - if o != nil && !common.IsNil(o.OwnerName) { - return true - } - - return false -} - -// SetOwnerName gets a reference to the given string and assigns it to the OwnerName field. -func (o *CheckoutBankAccount) SetOwnerName(v string) { - o.OwnerName = &v -} - -// GetTaxId returns the TaxId field value if set, zero value otherwise. -func (o *CheckoutBankAccount) GetTaxId() string { - if o == nil || common.IsNil(o.TaxId) { - var ret string - return ret - } - return *o.TaxId -} - -// GetTaxIdOk returns a tuple with the TaxId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CheckoutBankAccount) GetTaxIdOk() (*string, bool) { - if o == nil || common.IsNil(o.TaxId) { - return nil, false - } - return o.TaxId, true -} - -// HasTaxId returns a boolean if a field has been set. -func (o *CheckoutBankAccount) HasTaxId() bool { - if o != nil && !common.IsNil(o.TaxId) { - return true - } - - return false -} - -// SetTaxId gets a reference to the given string and assigns it to the TaxId field. -func (o *CheckoutBankAccount) SetTaxId(v string) { - o.TaxId = &v -} - -func (o CheckoutBankAccount) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o CheckoutBankAccount) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !common.IsNil(o.AccountType) { - toSerialize["accountType"] = o.AccountType - } - if !common.IsNil(o.BankAccountNumber) { - toSerialize["bankAccountNumber"] = o.BankAccountNumber - } - if !common.IsNil(o.BankCity) { - toSerialize["bankCity"] = o.BankCity - } - if !common.IsNil(o.BankLocationId) { - toSerialize["bankLocationId"] = o.BankLocationId - } - if !common.IsNil(o.BankName) { - toSerialize["bankName"] = o.BankName - } - if !common.IsNil(o.Bic) { - toSerialize["bic"] = o.Bic - } - if !common.IsNil(o.CountryCode) { - toSerialize["countryCode"] = o.CountryCode - } - if !common.IsNil(o.Iban) { - toSerialize["iban"] = o.Iban - } - if !common.IsNil(o.OwnerName) { - toSerialize["ownerName"] = o.OwnerName - } - if !common.IsNil(o.TaxId) { - toSerialize["taxId"] = o.TaxId - } - return toSerialize, nil -} - -type NullableCheckoutBankAccount struct { - value *CheckoutBankAccount - isSet bool -} - -func (v NullableCheckoutBankAccount) Get() *CheckoutBankAccount { - return v.value -} - -func (v *NullableCheckoutBankAccount) Set(val *CheckoutBankAccount) { - v.value = val - v.isSet = true -} - -func (v NullableCheckoutBankAccount) IsSet() bool { - return v.isSet -} - -func (v *NullableCheckoutBankAccount) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCheckoutBankAccount(val *CheckoutBankAccount) *NullableCheckoutBankAccount { - return &NullableCheckoutBankAccount{value: val, isSet: true} -} - -func (v NullableCheckoutBankAccount) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCheckoutBankAccount) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -func (o *CheckoutBankAccount) isValidAccountType() bool { - var allowedEnumValues = []string{"balance", "checking", "deposit", "general", "other", "payment", "savings"} - for _, allowed := range allowedEnumValues { - if o.GetAccountType() == allowed { - return true - } - } - return false -} diff --git a/src/checkout/model_checkout_payment_method.go b/src/checkout/model_checkout_payment_method.go index d9b2867c7..d1b061e38 100644 --- a/src/checkout/model_checkout_payment_method.go +++ b/src/checkout/model_checkout_payment_method.go @@ -50,9 +50,7 @@ type CheckoutPaymentMethod struct { PayUUpiDetails *PayUUpiDetails PayWithGoogleDetails *PayWithGoogleDetails PaymentDetails *PaymentDetails - PseDetails *PseDetails RatepayDetails *RatepayDetails - RivertyDetails *RivertyDetails SamsungPayDetails *SamsungPayDetails SepaDirectDebitDetails *SepaDirectDebitDetails StoredPaymentMethodDetails *StoredPaymentMethodDetails @@ -311,13 +309,6 @@ func PaymentDetailsAsCheckoutPaymentMethod(v *PaymentDetails) CheckoutPaymentMet } } -// PseDetailsAsCheckoutPaymentMethod is a convenience function that returns PseDetails wrapped in CheckoutPaymentMethod -func PseDetailsAsCheckoutPaymentMethod(v *PseDetails) CheckoutPaymentMethod { - return CheckoutPaymentMethod{ - PseDetails: v, - } -} - // RatepayDetailsAsCheckoutPaymentMethod is a convenience function that returns RatepayDetails wrapped in CheckoutPaymentMethod func RatepayDetailsAsCheckoutPaymentMethod(v *RatepayDetails) CheckoutPaymentMethod { return CheckoutPaymentMethod{ @@ -325,13 +316,6 @@ func RatepayDetailsAsCheckoutPaymentMethod(v *RatepayDetails) CheckoutPaymentMet } } -// RivertyDetailsAsCheckoutPaymentMethod is a convenience function that returns RivertyDetails wrapped in CheckoutPaymentMethod -func RivertyDetailsAsCheckoutPaymentMethod(v *RivertyDetails) CheckoutPaymentMethod { - return CheckoutPaymentMethod{ - RivertyDetails: v, - } -} - // SamsungPayDetailsAsCheckoutPaymentMethod is a convenience function that returns SamsungPayDetails wrapped in CheckoutPaymentMethod func SamsungPayDetailsAsCheckoutPaymentMethod(v *SamsungPayDetails) CheckoutPaymentMethod { return CheckoutPaymentMethod{ @@ -868,19 +852,6 @@ func (dst *CheckoutPaymentMethod) UnmarshalJSON(data []byte) error { dst.PaymentDetails = nil } - // try to unmarshal data into PseDetails - err = json.Unmarshal(data, &dst.PseDetails) - if err == nil { - jsonPseDetails, _ := json.Marshal(dst.PseDetails) - if string(jsonPseDetails) == "{}" || !dst.PseDetails.isValidType() { // empty struct - dst.PseDetails = nil - } else { - match++ - } - } else { - dst.PseDetails = nil - } - // try to unmarshal data into RatepayDetails err = json.Unmarshal(data, &dst.RatepayDetails) if err == nil { @@ -894,19 +865,6 @@ func (dst *CheckoutPaymentMethod) UnmarshalJSON(data []byte) error { dst.RatepayDetails = nil } - // try to unmarshal data into RivertyDetails - err = json.Unmarshal(data, &dst.RivertyDetails) - if err == nil { - jsonRivertyDetails, _ := json.Marshal(dst.RivertyDetails) - if string(jsonRivertyDetails) == "{}" || !dst.RivertyDetails.isValidType() { // empty struct - dst.RivertyDetails = nil - } else { - match++ - } - } else { - dst.RivertyDetails = nil - } - // try to unmarshal data into SamsungPayDetails err = json.Unmarshal(data, &dst.SamsungPayDetails) if err == nil { @@ -1087,9 +1045,7 @@ func (dst *CheckoutPaymentMethod) UnmarshalJSON(data []byte) error { dst.PayUUpiDetails = nil dst.PayWithGoogleDetails = nil dst.PaymentDetails = nil - dst.PseDetails = nil dst.RatepayDetails = nil - dst.RivertyDetails = nil dst.SamsungPayDetails = nil dst.SepaDirectDebitDetails = nil dst.StoredPaymentMethodDetails = nil @@ -1252,18 +1208,10 @@ func (src CheckoutPaymentMethod) MarshalJSON() ([]byte, error) { return json.Marshal(&src.PaymentDetails) } - if src.PseDetails != nil { - return json.Marshal(&src.PseDetails) - } - if src.RatepayDetails != nil { return json.Marshal(&src.RatepayDetails) } - if src.RivertyDetails != nil { - return json.Marshal(&src.RivertyDetails) - } - if src.SamsungPayDetails != nil { return json.Marshal(&src.SamsungPayDetails) } @@ -1456,18 +1404,10 @@ func (obj *CheckoutPaymentMethod) GetActualInstance() interface{} { return obj.PaymentDetails } - if obj.PseDetails != nil { - return obj.PseDetails - } - if obj.RatepayDetails != nil { return obj.RatepayDetails } - if obj.RivertyDetails != nil { - return obj.RivertyDetails - } - if obj.SamsungPayDetails != nil { return obj.SamsungPayDetails } diff --git a/src/checkout/model_payment_methods_request.go b/src/checkout/model_payment_methods_request.go index 4a3d10496..f29d123ea 100644 --- a/src/checkout/model_payment_methods_request.go +++ b/src/checkout/model_payment_methods_request.go @@ -33,8 +33,6 @@ type PaymentMethodsRequest struct { // The merchant account identifier, with which you want to process the transaction. MerchantAccount string `json:"merchantAccount"` Order *EncryptedOrderData `json:"order,omitempty"` - // A unique ID that can be used to associate `/paymentMethods` and `/payments` requests with the same shopper transaction, offering insights into conversion rates. - ShopperConversionId *string `json:"shopperConversionId,omitempty"` // The combination of a language code and a country code to specify the language to be used in the payment. ShopperLocale *string `json:"shopperLocale,omitempty"` // Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. @@ -317,38 +315,6 @@ func (o *PaymentMethodsRequest) SetOrder(v EncryptedOrderData) { o.Order = &v } -// GetShopperConversionId returns the ShopperConversionId field value if set, zero value otherwise. -func (o *PaymentMethodsRequest) GetShopperConversionId() string { - if o == nil || common.IsNil(o.ShopperConversionId) { - var ret string - return ret - } - return *o.ShopperConversionId -} - -// GetShopperConversionIdOk returns a tuple with the ShopperConversionId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PaymentMethodsRequest) GetShopperConversionIdOk() (*string, bool) { - if o == nil || common.IsNil(o.ShopperConversionId) { - return nil, false - } - return o.ShopperConversionId, true -} - -// HasShopperConversionId returns a boolean if a field has been set. -func (o *PaymentMethodsRequest) HasShopperConversionId() bool { - if o != nil && !common.IsNil(o.ShopperConversionId) { - return true - } - - return false -} - -// SetShopperConversionId gets a reference to the given string and assigns it to the ShopperConversionId field. -func (o *PaymentMethodsRequest) SetShopperConversionId(v string) { - o.ShopperConversionId = &v -} - // GetShopperLocale returns the ShopperLocale field value if set, zero value otherwise. func (o *PaymentMethodsRequest) GetShopperLocale() string { if o == nil || common.IsNil(o.ShopperLocale) { @@ -541,9 +507,6 @@ func (o PaymentMethodsRequest) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.Order) { toSerialize["order"] = o.Order } - if !common.IsNil(o.ShopperConversionId) { - toSerialize["shopperConversionId"] = o.ShopperConversionId - } if !common.IsNil(o.ShopperLocale) { toSerialize["shopperLocale"] = o.ShopperLocale } diff --git a/src/checkout/model_payment_request.go b/src/checkout/model_payment_request.go index c850d77fd..8b1cb26f9 100644 --- a/src/checkout/model_payment_request.go +++ b/src/checkout/model_payment_request.go @@ -23,13 +23,12 @@ type PaymentRequest struct { AccountInfo *AccountInfo `json:"accountInfo,omitempty"` AdditionalAmount *Amount `json:"additionalAmount,omitempty"` // This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. - AdditionalData *map[string]string `json:"additionalData,omitempty"` - Amount Amount `json:"amount"` - ApplicationInfo *ApplicationInfo `json:"applicationInfo,omitempty"` - AuthenticationData *AuthenticationData `json:"authenticationData,omitempty"` - BankAccount *CheckoutBankAccount `json:"bankAccount,omitempty"` - BillingAddress *BillingAddress `json:"billingAddress,omitempty"` - BrowserInfo *BrowserInfo `json:"browserInfo,omitempty"` + AdditionalData *map[string]string `json:"additionalData,omitempty"` + Amount Amount `json:"amount"` + ApplicationInfo *ApplicationInfo `json:"applicationInfo,omitempty"` + AuthenticationData *AuthenticationData `json:"authenticationData,omitempty"` + BillingAddress *BillingAddress `json:"billingAddress,omitempty"` + BrowserInfo *BrowserInfo `json:"browserInfo,omitempty"` // The delay between the authorisation and scheduled auto-capture, specified in hours. CaptureDelayHours *int32 `json:"captureDelayHours,omitempty"` // The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * iOS * Android * Web @@ -109,8 +108,6 @@ type PaymentRequest struct { RiskData *RiskData `json:"riskData,omitempty"` // The date and time until when the session remains valid, in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00 SessionValidity *string `json:"sessionValidity,omitempty"` - // A unique ID that can be used to associate `/paymentMethods` and `/payments` requests with the same shopper transaction, offering insights into conversion rates. - ShopperConversionId *string `json:"shopperConversionId,omitempty"` // The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > For 3D Secure 2 transactions, schemes require `shopperEmail` for all browser-based and mobile implementations. ShopperEmail *string `json:"shopperEmail,omitempty"` // The shopper's IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > For 3D Secure 2 transactions, schemes require `shopperIP` for all browser-based implementations. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). @@ -355,38 +352,6 @@ func (o *PaymentRequest) SetAuthenticationData(v AuthenticationData) { o.AuthenticationData = &v } -// GetBankAccount returns the BankAccount field value if set, zero value otherwise. -func (o *PaymentRequest) GetBankAccount() CheckoutBankAccount { - if o == nil || common.IsNil(o.BankAccount) { - var ret CheckoutBankAccount - return ret - } - return *o.BankAccount -} - -// GetBankAccountOk returns a tuple with the BankAccount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PaymentRequest) GetBankAccountOk() (*CheckoutBankAccount, bool) { - if o == nil || common.IsNil(o.BankAccount) { - return nil, false - } - return o.BankAccount, true -} - -// HasBankAccount returns a boolean if a field has been set. -func (o *PaymentRequest) HasBankAccount() bool { - if o != nil && !common.IsNil(o.BankAccount) { - return true - } - - return false -} - -// SetBankAccount gets a reference to the given CheckoutBankAccount and assigns it to the BankAccount field. -func (o *PaymentRequest) SetBankAccount(v CheckoutBankAccount) { - o.BankAccount = &v -} - // GetBillingAddress returns the BillingAddress field value if set, zero value otherwise. func (o *PaymentRequest) GetBillingAddress() BillingAddress { if o == nil || common.IsNil(o.BillingAddress) { @@ -1839,38 +1804,6 @@ func (o *PaymentRequest) SetSessionValidity(v string) { o.SessionValidity = &v } -// GetShopperConversionId returns the ShopperConversionId field value if set, zero value otherwise. -func (o *PaymentRequest) GetShopperConversionId() string { - if o == nil || common.IsNil(o.ShopperConversionId) { - var ret string - return ret - } - return *o.ShopperConversionId -} - -// GetShopperConversionIdOk returns a tuple with the ShopperConversionId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PaymentRequest) GetShopperConversionIdOk() (*string, bool) { - if o == nil || common.IsNil(o.ShopperConversionId) { - return nil, false - } - return o.ShopperConversionId, true -} - -// HasShopperConversionId returns a boolean if a field has been set. -func (o *PaymentRequest) HasShopperConversionId() bool { - if o != nil && !common.IsNil(o.ShopperConversionId) { - return true - } - - return false -} - -// SetShopperConversionId gets a reference to the given string and assigns it to the ShopperConversionId field. -func (o *PaymentRequest) SetShopperConversionId(v string) { - o.ShopperConversionId = &v -} - // GetShopperEmail returns the ShopperEmail field value if set, zero value otherwise. func (o *PaymentRequest) GetShopperEmail() string { if o == nil || common.IsNil(o.ShopperEmail) { @@ -2415,9 +2348,6 @@ func (o PaymentRequest) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.AuthenticationData) { toSerialize["authenticationData"] = o.AuthenticationData } - if !common.IsNil(o.BankAccount) { - toSerialize["bankAccount"] = o.BankAccount - } if !common.IsNil(o.BillingAddress) { toSerialize["billingAddress"] = o.BillingAddress } @@ -2548,9 +2478,6 @@ func (o PaymentRequest) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.SessionValidity) { toSerialize["sessionValidity"] = o.SessionValidity } - if !common.IsNil(o.ShopperConversionId) { - toSerialize["shopperConversionId"] = o.ShopperConversionId - } if !common.IsNil(o.ShopperEmail) { toSerialize["shopperEmail"] = o.ShopperEmail } diff --git a/src/checkout/model_pse_details.go b/src/checkout/model_pse_details.go deleted file mode 100644 index d39aabf45..000000000 --- a/src/checkout/model_pse_details.go +++ /dev/null @@ -1,284 +0,0 @@ -/* -Adyen Checkout API - -API version: 71 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package checkout - -import ( - "encoding/json" - - "github.com/adyen/adyen-go-api-library/v15/src/common" -) - -// checks if the PseDetails type satisfies the MappedNullable interface at compile time -var _ common.MappedNullable = &PseDetails{} - -// PseDetails struct for PseDetails -type PseDetails struct { - // The shopper's bank. - Bank string `json:"bank"` - // The checkout attempt identifier. - CheckoutAttemptId *string `json:"checkoutAttemptId,omitempty"` - // The client type. - ClientType string `json:"clientType"` - // The identification code. - Identification string `json:"identification"` - // The identification type. - IdentificationType string `json:"identificationType"` - // The payment method type. - Type *string `json:"type,omitempty"` -} - -// NewPseDetails instantiates a new PseDetails 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 NewPseDetails(bank string, clientType string, identification string, identificationType string) *PseDetails { - this := PseDetails{} - this.Bank = bank - this.ClientType = clientType - this.Identification = identification - this.IdentificationType = identificationType - return &this -} - -// NewPseDetailsWithDefaults instantiates a new PseDetails 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 NewPseDetailsWithDefaults() *PseDetails { - this := PseDetails{} - return &this -} - -// GetBank returns the Bank field value -func (o *PseDetails) GetBank() string { - if o == nil { - var ret string - return ret - } - - return o.Bank -} - -// GetBankOk returns a tuple with the Bank field value -// and a boolean to check if the value has been set. -func (o *PseDetails) GetBankOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Bank, true -} - -// SetBank sets field value -func (o *PseDetails) SetBank(v string) { - o.Bank = v -} - -// GetCheckoutAttemptId returns the CheckoutAttemptId field value if set, zero value otherwise. -func (o *PseDetails) GetCheckoutAttemptId() string { - if o == nil || common.IsNil(o.CheckoutAttemptId) { - var ret string - return ret - } - return *o.CheckoutAttemptId -} - -// GetCheckoutAttemptIdOk returns a tuple with the CheckoutAttemptId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PseDetails) GetCheckoutAttemptIdOk() (*string, bool) { - if o == nil || common.IsNil(o.CheckoutAttemptId) { - return nil, false - } - return o.CheckoutAttemptId, true -} - -// HasCheckoutAttemptId returns a boolean if a field has been set. -func (o *PseDetails) HasCheckoutAttemptId() bool { - if o != nil && !common.IsNil(o.CheckoutAttemptId) { - return true - } - - return false -} - -// SetCheckoutAttemptId gets a reference to the given string and assigns it to the CheckoutAttemptId field. -func (o *PseDetails) SetCheckoutAttemptId(v string) { - o.CheckoutAttemptId = &v -} - -// GetClientType returns the ClientType field value -func (o *PseDetails) GetClientType() string { - if o == nil { - var ret string - return ret - } - - return o.ClientType -} - -// GetClientTypeOk returns a tuple with the ClientType field value -// and a boolean to check if the value has been set. -func (o *PseDetails) GetClientTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ClientType, true -} - -// SetClientType sets field value -func (o *PseDetails) SetClientType(v string) { - o.ClientType = v -} - -// GetIdentification returns the Identification field value -func (o *PseDetails) GetIdentification() string { - if o == nil { - var ret string - return ret - } - - return o.Identification -} - -// GetIdentificationOk returns a tuple with the Identification field value -// and a boolean to check if the value has been set. -func (o *PseDetails) GetIdentificationOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Identification, true -} - -// SetIdentification sets field value -func (o *PseDetails) SetIdentification(v string) { - o.Identification = v -} - -// GetIdentificationType returns the IdentificationType field value -func (o *PseDetails) GetIdentificationType() string { - if o == nil { - var ret string - return ret - } - - return o.IdentificationType -} - -// GetIdentificationTypeOk returns a tuple with the IdentificationType field value -// and a boolean to check if the value has been set. -func (o *PseDetails) GetIdentificationTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.IdentificationType, true -} - -// SetIdentificationType sets field value -func (o *PseDetails) SetIdentificationType(v string) { - o.IdentificationType = v -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *PseDetails) GetType() string { - if o == nil || common.IsNil(o.Type) { - var ret string - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PseDetails) GetTypeOk() (*string, bool) { - if o == nil || common.IsNil(o.Type) { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *PseDetails) HasType() bool { - if o != nil && !common.IsNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given string and assigns it to the Type field. -func (o *PseDetails) SetType(v string) { - o.Type = &v -} - -func (o PseDetails) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o PseDetails) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["bank"] = o.Bank - if !common.IsNil(o.CheckoutAttemptId) { - toSerialize["checkoutAttemptId"] = o.CheckoutAttemptId - } - toSerialize["clientType"] = o.ClientType - toSerialize["identification"] = o.Identification - toSerialize["identificationType"] = o.IdentificationType - if !common.IsNil(o.Type) { - toSerialize["type"] = o.Type - } - return toSerialize, nil -} - -type NullablePseDetails struct { - value *PseDetails - isSet bool -} - -func (v NullablePseDetails) Get() *PseDetails { - return v.value -} - -func (v *NullablePseDetails) Set(val *PseDetails) { - v.value = val - v.isSet = true -} - -func (v NullablePseDetails) IsSet() bool { - return v.isSet -} - -func (v *NullablePseDetails) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePseDetails(val *PseDetails) *NullablePseDetails { - return &NullablePseDetails{value: val, isSet: true} -} - -func (v NullablePseDetails) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePseDetails) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -func (o *PseDetails) isValidType() bool { - var allowedEnumValues = []string{"pse_payulatam"} - for _, allowed := range allowedEnumValues { - if o.GetType() == allowed { - return true - } - } - return false -} diff --git a/src/checkout/model_riverty_details.go b/src/checkout/model_riverty_details.go deleted file mode 100644 index 80f878387..000000000 --- a/src/checkout/model_riverty_details.go +++ /dev/null @@ -1,432 +0,0 @@ -/* -Adyen Checkout API - -API version: 71 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package checkout - -import ( - "encoding/json" - - "github.com/adyen/adyen-go-api-library/v15/src/common" -) - -// checks if the RivertyDetails type satisfies the MappedNullable interface at compile time -var _ common.MappedNullable = &RivertyDetails{} - -// RivertyDetails struct for RivertyDetails -type RivertyDetails struct { - // The address where to send the invoice. - BillingAddress *string `json:"billingAddress,omitempty"` - // The checkout attempt identifier. - CheckoutAttemptId *string `json:"checkoutAttemptId,omitempty"` - // The address where the goods should be delivered. - DeliveryAddress *string `json:"deliveryAddress,omitempty"` - // A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). - DeviceFingerprint *string `json:"deviceFingerprint,omitempty"` - // The iban number of the customer - Iban *string `json:"iban,omitempty"` - // Shopper name, date of birth, phone number, and email address. - PersonalDetails *string `json:"personalDetails,omitempty"` - // This is the `recurringDetailReference` returned in the response when you created the token. - // Deprecated since Adyen Checkout API v49 - // Use `storedPaymentMethodId` instead. - RecurringDetailReference *string `json:"recurringDetailReference,omitempty"` - // This is the `recurringDetailReference` returned in the response when you created the token. - StoredPaymentMethodId *string `json:"storedPaymentMethodId,omitempty"` - // **riverty** - Type string `json:"type"` -} - -// NewRivertyDetails instantiates a new RivertyDetails 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 NewRivertyDetails(type_ string) *RivertyDetails { - this := RivertyDetails{} - this.Type = type_ - return &this -} - -// NewRivertyDetailsWithDefaults instantiates a new RivertyDetails 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 NewRivertyDetailsWithDefaults() *RivertyDetails { - this := RivertyDetails{} - var type_ string = "riverty" - this.Type = type_ - return &this -} - -// GetBillingAddress returns the BillingAddress field value if set, zero value otherwise. -func (o *RivertyDetails) GetBillingAddress() string { - if o == nil || common.IsNil(o.BillingAddress) { - var ret string - return ret - } - return *o.BillingAddress -} - -// GetBillingAddressOk returns a tuple with the BillingAddress field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RivertyDetails) GetBillingAddressOk() (*string, bool) { - if o == nil || common.IsNil(o.BillingAddress) { - return nil, false - } - return o.BillingAddress, true -} - -// HasBillingAddress returns a boolean if a field has been set. -func (o *RivertyDetails) HasBillingAddress() bool { - if o != nil && !common.IsNil(o.BillingAddress) { - return true - } - - return false -} - -// SetBillingAddress gets a reference to the given string and assigns it to the BillingAddress field. -func (o *RivertyDetails) SetBillingAddress(v string) { - o.BillingAddress = &v -} - -// GetCheckoutAttemptId returns the CheckoutAttemptId field value if set, zero value otherwise. -func (o *RivertyDetails) GetCheckoutAttemptId() string { - if o == nil || common.IsNil(o.CheckoutAttemptId) { - var ret string - return ret - } - return *o.CheckoutAttemptId -} - -// GetCheckoutAttemptIdOk returns a tuple with the CheckoutAttemptId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RivertyDetails) GetCheckoutAttemptIdOk() (*string, bool) { - if o == nil || common.IsNil(o.CheckoutAttemptId) { - return nil, false - } - return o.CheckoutAttemptId, true -} - -// HasCheckoutAttemptId returns a boolean if a field has been set. -func (o *RivertyDetails) HasCheckoutAttemptId() bool { - if o != nil && !common.IsNil(o.CheckoutAttemptId) { - return true - } - - return false -} - -// SetCheckoutAttemptId gets a reference to the given string and assigns it to the CheckoutAttemptId field. -func (o *RivertyDetails) SetCheckoutAttemptId(v string) { - o.CheckoutAttemptId = &v -} - -// GetDeliveryAddress returns the DeliveryAddress field value if set, zero value otherwise. -func (o *RivertyDetails) GetDeliveryAddress() string { - if o == nil || common.IsNil(o.DeliveryAddress) { - var ret string - return ret - } - return *o.DeliveryAddress -} - -// GetDeliveryAddressOk returns a tuple with the DeliveryAddress field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RivertyDetails) GetDeliveryAddressOk() (*string, bool) { - if o == nil || common.IsNil(o.DeliveryAddress) { - return nil, false - } - return o.DeliveryAddress, true -} - -// HasDeliveryAddress returns a boolean if a field has been set. -func (o *RivertyDetails) HasDeliveryAddress() bool { - if o != nil && !common.IsNil(o.DeliveryAddress) { - return true - } - - return false -} - -// SetDeliveryAddress gets a reference to the given string and assigns it to the DeliveryAddress field. -func (o *RivertyDetails) SetDeliveryAddress(v string) { - o.DeliveryAddress = &v -} - -// GetDeviceFingerprint returns the DeviceFingerprint field value if set, zero value otherwise. -func (o *RivertyDetails) GetDeviceFingerprint() string { - if o == nil || common.IsNil(o.DeviceFingerprint) { - var ret string - return ret - } - return *o.DeviceFingerprint -} - -// GetDeviceFingerprintOk returns a tuple with the DeviceFingerprint field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RivertyDetails) GetDeviceFingerprintOk() (*string, bool) { - if o == nil || common.IsNil(o.DeviceFingerprint) { - return nil, false - } - return o.DeviceFingerprint, true -} - -// HasDeviceFingerprint returns a boolean if a field has been set. -func (o *RivertyDetails) HasDeviceFingerprint() bool { - if o != nil && !common.IsNil(o.DeviceFingerprint) { - return true - } - - return false -} - -// SetDeviceFingerprint gets a reference to the given string and assigns it to the DeviceFingerprint field. -func (o *RivertyDetails) SetDeviceFingerprint(v string) { - o.DeviceFingerprint = &v -} - -// GetIban returns the Iban field value if set, zero value otherwise. -func (o *RivertyDetails) GetIban() string { - if o == nil || common.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 *RivertyDetails) GetIbanOk() (*string, bool) { - if o == nil || common.IsNil(o.Iban) { - return nil, false - } - return o.Iban, true -} - -// HasIban returns a boolean if a field has been set. -func (o *RivertyDetails) HasIban() bool { - if o != nil && !common.IsNil(o.Iban) { - return true - } - - return false -} - -// SetIban gets a reference to the given string and assigns it to the Iban field. -func (o *RivertyDetails) SetIban(v string) { - o.Iban = &v -} - -// GetPersonalDetails returns the PersonalDetails field value if set, zero value otherwise. -func (o *RivertyDetails) GetPersonalDetails() string { - if o == nil || common.IsNil(o.PersonalDetails) { - var ret string - return ret - } - return *o.PersonalDetails -} - -// GetPersonalDetailsOk returns a tuple with the PersonalDetails field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RivertyDetails) GetPersonalDetailsOk() (*string, bool) { - if o == nil || common.IsNil(o.PersonalDetails) { - return nil, false - } - return o.PersonalDetails, true -} - -// HasPersonalDetails returns a boolean if a field has been set. -func (o *RivertyDetails) HasPersonalDetails() bool { - if o != nil && !common.IsNil(o.PersonalDetails) { - return true - } - - return false -} - -// SetPersonalDetails gets a reference to the given string and assigns it to the PersonalDetails field. -func (o *RivertyDetails) SetPersonalDetails(v string) { - o.PersonalDetails = &v -} - -// GetRecurringDetailReference returns the RecurringDetailReference field value if set, zero value otherwise. -// Deprecated since Adyen Checkout API v49 -// Use `storedPaymentMethodId` instead. -func (o *RivertyDetails) GetRecurringDetailReference() string { - if o == nil || common.IsNil(o.RecurringDetailReference) { - var ret string - return ret - } - return *o.RecurringDetailReference -} - -// GetRecurringDetailReferenceOk returns a tuple with the RecurringDetailReference field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated since Adyen Checkout API v49 -// Use `storedPaymentMethodId` instead. -func (o *RivertyDetails) GetRecurringDetailReferenceOk() (*string, bool) { - if o == nil || common.IsNil(o.RecurringDetailReference) { - return nil, false - } - return o.RecurringDetailReference, true -} - -// HasRecurringDetailReference returns a boolean if a field has been set. -func (o *RivertyDetails) HasRecurringDetailReference() bool { - if o != nil && !common.IsNil(o.RecurringDetailReference) { - return true - } - - return false -} - -// SetRecurringDetailReference gets a reference to the given string and assigns it to the RecurringDetailReference field. -// Deprecated since Adyen Checkout API v49 -// Use `storedPaymentMethodId` instead. -func (o *RivertyDetails) SetRecurringDetailReference(v string) { - o.RecurringDetailReference = &v -} - -// GetStoredPaymentMethodId returns the StoredPaymentMethodId field value if set, zero value otherwise. -func (o *RivertyDetails) GetStoredPaymentMethodId() string { - if o == nil || common.IsNil(o.StoredPaymentMethodId) { - var ret string - return ret - } - return *o.StoredPaymentMethodId -} - -// GetStoredPaymentMethodIdOk returns a tuple with the StoredPaymentMethodId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RivertyDetails) GetStoredPaymentMethodIdOk() (*string, bool) { - if o == nil || common.IsNil(o.StoredPaymentMethodId) { - return nil, false - } - return o.StoredPaymentMethodId, true -} - -// HasStoredPaymentMethodId returns a boolean if a field has been set. -func (o *RivertyDetails) HasStoredPaymentMethodId() bool { - if o != nil && !common.IsNil(o.StoredPaymentMethodId) { - return true - } - - return false -} - -// SetStoredPaymentMethodId gets a reference to the given string and assigns it to the StoredPaymentMethodId field. -func (o *RivertyDetails) SetStoredPaymentMethodId(v string) { - o.StoredPaymentMethodId = &v -} - -// GetType returns the Type field value -func (o *RivertyDetails) GetType() string { - if o == nil { - var ret string - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *RivertyDetails) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *RivertyDetails) SetType(v string) { - o.Type = v -} - -func (o RivertyDetails) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o RivertyDetails) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !common.IsNil(o.BillingAddress) { - toSerialize["billingAddress"] = o.BillingAddress - } - if !common.IsNil(o.CheckoutAttemptId) { - toSerialize["checkoutAttemptId"] = o.CheckoutAttemptId - } - if !common.IsNil(o.DeliveryAddress) { - toSerialize["deliveryAddress"] = o.DeliveryAddress - } - if !common.IsNil(o.DeviceFingerprint) { - toSerialize["deviceFingerprint"] = o.DeviceFingerprint - } - if !common.IsNil(o.Iban) { - toSerialize["iban"] = o.Iban - } - if !common.IsNil(o.PersonalDetails) { - toSerialize["personalDetails"] = o.PersonalDetails - } - if !common.IsNil(o.RecurringDetailReference) { - toSerialize["recurringDetailReference"] = o.RecurringDetailReference - } - if !common.IsNil(o.StoredPaymentMethodId) { - toSerialize["storedPaymentMethodId"] = o.StoredPaymentMethodId - } - toSerialize["type"] = o.Type - return toSerialize, nil -} - -type NullableRivertyDetails struct { - value *RivertyDetails - isSet bool -} - -func (v NullableRivertyDetails) Get() *RivertyDetails { - return v.value -} - -func (v *NullableRivertyDetails) Set(val *RivertyDetails) { - v.value = val - v.isSet = true -} - -func (v NullableRivertyDetails) IsSet() bool { - return v.isSet -} - -func (v *NullableRivertyDetails) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRivertyDetails(val *RivertyDetails) *NullableRivertyDetails { - return &NullableRivertyDetails{value: val, isSet: true} -} - -func (v NullableRivertyDetails) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableRivertyDetails) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -func (o *RivertyDetails) isValidType() bool { - var allowedEnumValues = []string{"riverty", "riverty_account", "sepadirectdebit_riverty"} - for _, allowed := range allowedEnumValues { - if o.GetType() == allowed { - return true - } - } - return false -} diff --git a/src/configurationwebhook/model_sweep_configuration_v2.go b/src/configurationwebhook/model_sweep_configuration_v2.go index 1a3c1bd65..8626a4c68 100644 --- a/src/configurationwebhook/model_sweep_configuration_v2.go +++ b/src/configurationwebhook/model_sweep_configuration_v2.go @@ -32,8 +32,6 @@ type SweepConfigurationV2 struct { Priorities []string `json:"priorities,omitempty"` // The reason for disabling the sweep. Reason *string `json:"reason,omitempty"` - // The human readable reason for disabling the sweep. - ReasonDetail *string `json:"reasonDetail,omitempty"` // Your reference for the sweep configuration. Reference *string `json:"reference,omitempty"` // The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. @@ -273,38 +271,6 @@ func (o *SweepConfigurationV2) SetReason(v string) { o.Reason = &v } -// GetReasonDetail returns the ReasonDetail field value if set, zero value otherwise. -func (o *SweepConfigurationV2) GetReasonDetail() string { - if o == nil || common.IsNil(o.ReasonDetail) { - var ret string - return ret - } - return *o.ReasonDetail -} - -// GetReasonDetailOk returns a tuple with the ReasonDetail field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SweepConfigurationV2) GetReasonDetailOk() (*string, bool) { - if o == nil || common.IsNil(o.ReasonDetail) { - return nil, false - } - return o.ReasonDetail, true -} - -// HasReasonDetail returns a boolean if a field has been set. -func (o *SweepConfigurationV2) HasReasonDetail() bool { - if o != nil && !common.IsNil(o.ReasonDetail) { - return true - } - - return false -} - -// SetReasonDetail gets a reference to the given string and assigns it to the ReasonDetail field. -func (o *SweepConfigurationV2) SetReasonDetail(v string) { - o.ReasonDetail = &v -} - // GetReference returns the Reference field value if set, zero value otherwise. func (o *SweepConfigurationV2) GetReference() string { if o == nil || common.IsNil(o.Reference) { @@ -578,9 +544,6 @@ func (o SweepConfigurationV2) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.Reason) { toSerialize["reason"] = o.Reason } - if !common.IsNil(o.ReasonDetail) { - toSerialize["reasonDetail"] = o.ReasonDetail - } if !common.IsNil(o.Reference) { toSerialize["reference"] = o.Reference } diff --git a/src/disputewebhook/model_amount.go b/src/disputewebhook/model_amount.go deleted file mode 100644 index 3621d23f4..000000000 --- a/src/disputewebhook/model_amount.go +++ /dev/null @@ -1,144 +0,0 @@ -/* -Dispute webhooks - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package disputewebhook - -import ( - "encoding/json" - - "github.com/adyen/adyen-go-api-library/v15/src/common" -) - -// checks if the Amount type satisfies the MappedNullable interface at compile time -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). - Currency string `json:"currency"` - // The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). - Value int64 `json:"value"` -} - -// NewAmount instantiates a new Amount 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 NewAmount(currency string, value int64) *Amount { - this := Amount{} - this.Currency = currency - this.Value = value - return &this -} - -// NewAmountWithDefaults instantiates a new Amount 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 NewAmountWithDefaults() *Amount { - this := Amount{} - return &this -} - -// GetCurrency returns the Currency field value -func (o *Amount) GetCurrency() string { - if o == nil { - var ret string - return ret - } - - return o.Currency -} - -// GetCurrencyOk returns a tuple with the Currency field value -// and a boolean to check if the value has been set. -func (o *Amount) GetCurrencyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Currency, true -} - -// SetCurrency sets field value -func (o *Amount) SetCurrency(v string) { - o.Currency = v -} - -// GetValue returns the Value field value -func (o *Amount) GetValue() int64 { - if o == nil { - var ret int64 - return ret - } - - return o.Value -} - -// GetValueOk returns a tuple with the Value field value -// and a boolean to check if the value has been set. -func (o *Amount) GetValueOk() (*int64, bool) { - if o == nil { - return nil, false - } - return &o.Value, true -} - -// SetValue sets field value -func (o *Amount) SetValue(v int64) { - o.Value = v -} - -func (o Amount) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o Amount) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["currency"] = o.Currency - toSerialize["value"] = o.Value - return toSerialize, nil -} - -type NullableAmount struct { - value *Amount - isSet bool -} - -func (v NullableAmount) Get() *Amount { - return v.value -} - -func (v *NullableAmount) Set(val *Amount) { - v.value = val - v.isSet = true -} - -func (v NullableAmount) IsSet() bool { - return v.isSet -} - -func (v *NullableAmount) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAmount(val *Amount) *NullableAmount { - return &NullableAmount{value: val, isSet: true} -} - -func (v NullableAmount) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAmount) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/src/disputewebhook/model_balance_platform_notification_response.go b/src/disputewebhook/model_balance_platform_notification_response.go deleted file mode 100644 index bc42a368d..000000000 --- a/src/disputewebhook/model_balance_platform_notification_response.go +++ /dev/null @@ -1,125 +0,0 @@ -/* -Dispute webhooks - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package disputewebhook - -import ( - "encoding/json" - - "github.com/adyen/adyen-go-api-library/v15/src/common" -) - -// checks if the BalancePlatformNotificationResponse type satisfies the MappedNullable interface at compile time -var _ common.MappedNullable = &BalancePlatformNotificationResponse{} - -// BalancePlatformNotificationResponse struct for 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"` -} - -// 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 NewBalancePlatformNotificationResponse() *BalancePlatformNotificationResponse { - this := BalancePlatformNotificationResponse{} - return &this -} - -// 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 NewBalancePlatformNotificationResponseWithDefaults() *BalancePlatformNotificationResponse { - this := BalancePlatformNotificationResponse{} - return &this -} - -// GetNotificationResponse returns the NotificationResponse field value if set, zero value otherwise. -func (o *BalancePlatformNotificationResponse) GetNotificationResponse() string { - if o == nil || common.IsNil(o.NotificationResponse) { - var ret string - return ret - } - return *o.NotificationResponse -} - -// 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 (o *BalancePlatformNotificationResponse) GetNotificationResponseOk() (*string, bool) { - if o == nil || common.IsNil(o.NotificationResponse) { - return nil, false - } - return o.NotificationResponse, true -} - -// HasNotificationResponse returns a boolean if a field has been set. -func (o *BalancePlatformNotificationResponse) HasNotificationResponse() bool { - if o != nil && !common.IsNil(o.NotificationResponse) { - return true - } - - return false -} - -// SetNotificationResponse gets a reference to the given string and assigns it to the NotificationResponse field. -func (o *BalancePlatformNotificationResponse) SetNotificationResponse(v string) { - o.NotificationResponse = &v -} - -func (o BalancePlatformNotificationResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o BalancePlatformNotificationResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !common.IsNil(o.NotificationResponse) { - toSerialize["notificationResponse"] = o.NotificationResponse - } - return toSerialize, nil -} - -type NullableBalancePlatformNotificationResponse struct { - value *BalancePlatformNotificationResponse - isSet bool -} - -func (v NullableBalancePlatformNotificationResponse) Get() *BalancePlatformNotificationResponse { - return v.value -} - -func (v *NullableBalancePlatformNotificationResponse) Set(val *BalancePlatformNotificationResponse) { - v.value = val - v.isSet = true -} - -func (v NullableBalancePlatformNotificationResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableBalancePlatformNotificationResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBalancePlatformNotificationResponse(val *BalancePlatformNotificationResponse) *NullableBalancePlatformNotificationResponse { - return &NullableBalancePlatformNotificationResponse{value: val, isSet: true} -} - -func (v NullableBalancePlatformNotificationResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableBalancePlatformNotificationResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/src/disputewebhook/model_dispute_event_notification.go b/src/disputewebhook/model_dispute_event_notification.go deleted file mode 100644 index 0c0f5eff5..000000000 --- a/src/disputewebhook/model_dispute_event_notification.go +++ /dev/null @@ -1,468 +0,0 @@ -/* -Dispute webhooks - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package disputewebhook - -import ( - "encoding/json" - "time" - - "github.com/adyen/adyen-go-api-library/v15/src/common" -) - -// checks if the DisputeEventNotification type satisfies the MappedNullable interface at compile time -var _ common.MappedNullable = &DisputeEventNotification{} - -// DisputeEventNotification struct for DisputeEventNotification -type DisputeEventNotification struct { - // The unique Acquirer Reference Number (arn) generated by the card scheme for each capture. You can use the arn to trace the transaction through its lifecycle. - Arn *string `json:"arn,omitempty"` - // The unique identifier of the balance platform. - BalancePlatform *string `json:"balancePlatform,omitempty"` - // 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"` - // Contains information about the dispute. - Description *string `json:"description,omitempty"` - DisputedAmount *Amount `json:"disputedAmount,omitempty"` - // The ID of the resource. - Id *string `json:"id,omitempty"` - // The current status of the dispute. - Status *string `json:"status,omitempty"` - // Additional information about the status of the dispute, when available. - StatusDetail *string `json:"statusDetail,omitempty"` - // The unique reference of the transaction for which the dispute is requested. - TransactionId *string `json:"transactionId,omitempty"` - // The type of dispute raised for the transaction. - Type *string `json:"type,omitempty"` -} - -// NewDisputeEventNotification instantiates a new DisputeEventNotification 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 NewDisputeEventNotification() *DisputeEventNotification { - this := DisputeEventNotification{} - return &this -} - -// NewDisputeEventNotificationWithDefaults instantiates a new DisputeEventNotification 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 NewDisputeEventNotificationWithDefaults() *DisputeEventNotification { - this := DisputeEventNotification{} - return &this -} - -// GetArn returns the Arn field value if set, zero value otherwise. -func (o *DisputeEventNotification) GetArn() string { - if o == nil || common.IsNil(o.Arn) { - var ret string - return ret - } - return *o.Arn -} - -// GetArnOk returns a tuple with the Arn field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DisputeEventNotification) GetArnOk() (*string, bool) { - if o == nil || common.IsNil(o.Arn) { - return nil, false - } - return o.Arn, true -} - -// HasArn returns a boolean if a field has been set. -func (o *DisputeEventNotification) HasArn() bool { - if o != nil && !common.IsNil(o.Arn) { - return true - } - - return false -} - -// SetArn gets a reference to the given string and assigns it to the Arn field. -func (o *DisputeEventNotification) SetArn(v string) { - o.Arn = &v -} - -// GetBalancePlatform returns the BalancePlatform field value if set, zero value otherwise. -func (o *DisputeEventNotification) 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 *DisputeEventNotification) 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 *DisputeEventNotification) 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 *DisputeEventNotification) SetBalancePlatform(v string) { - o.BalancePlatform = &v -} - -// GetCreationDate returns the CreationDate field value if set, zero value otherwise. -func (o *DisputeEventNotification) GetCreationDate() time.Time { - if o == nil || common.IsNil(o.CreationDate) { - var ret time.Time - return ret - } - return *o.CreationDate -} - -// 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 (o *DisputeEventNotification) GetCreationDateOk() (*time.Time, bool) { - if o == nil || common.IsNil(o.CreationDate) { - return nil, false - } - return o.CreationDate, true -} - -// HasCreationDate returns a boolean if a field has been set. -func (o *DisputeEventNotification) HasCreationDate() bool { - if o != nil && !common.IsNil(o.CreationDate) { - return true - } - - return false -} - -// SetCreationDate gets a reference to the given time.Time and assigns it to the CreationDate field. -func (o *DisputeEventNotification) SetCreationDate(v time.Time) { - o.CreationDate = &v -} - -// GetDescription returns the Description field value if set, zero value otherwise. -func (o *DisputeEventNotification) GetDescription() string { - if o == nil || common.IsNil(o.Description) { - var ret string - return ret - } - return *o.Description -} - -// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DisputeEventNotification) GetDescriptionOk() (*string, bool) { - if o == nil || common.IsNil(o.Description) { - return nil, false - } - return o.Description, true -} - -// HasDescription returns a boolean if a field has been set. -func (o *DisputeEventNotification) HasDescription() bool { - if o != nil && !common.IsNil(o.Description) { - return true - } - - return false -} - -// SetDescription gets a reference to the given string and assigns it to the Description field. -func (o *DisputeEventNotification) SetDescription(v string) { - o.Description = &v -} - -// GetDisputedAmount returns the DisputedAmount field value if set, zero value otherwise. -func (o *DisputeEventNotification) GetDisputedAmount() Amount { - if o == nil || common.IsNil(o.DisputedAmount) { - var ret Amount - return ret - } - return *o.DisputedAmount -} - -// GetDisputedAmountOk returns a tuple with the DisputedAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DisputeEventNotification) GetDisputedAmountOk() (*Amount, bool) { - if o == nil || common.IsNil(o.DisputedAmount) { - return nil, false - } - return o.DisputedAmount, true -} - -// HasDisputedAmount returns a boolean if a field has been set. -func (o *DisputeEventNotification) HasDisputedAmount() bool { - if o != nil && !common.IsNil(o.DisputedAmount) { - return true - } - - return false -} - -// SetDisputedAmount gets a reference to the given Amount and assigns it to the DisputedAmount field. -func (o *DisputeEventNotification) SetDisputedAmount(v Amount) { - o.DisputedAmount = &v -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *DisputeEventNotification) GetId() string { - if o == nil || common.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 *DisputeEventNotification) GetIdOk() (*string, bool) { - if o == nil || common.IsNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *DisputeEventNotification) HasId() bool { - if o != nil && !common.IsNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *DisputeEventNotification) SetId(v string) { - o.Id = &v -} - -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *DisputeEventNotification) GetStatus() string { - if o == nil || common.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 *DisputeEventNotification) GetStatusOk() (*string, bool) { - if o == nil || common.IsNil(o.Status) { - return nil, false - } - return o.Status, true -} - -// HasStatus returns a boolean if a field has been set. -func (o *DisputeEventNotification) HasStatus() bool { - if o != nil && !common.IsNil(o.Status) { - return true - } - - return false -} - -// SetStatus gets a reference to the given string and assigns it to the Status field. -func (o *DisputeEventNotification) SetStatus(v string) { - o.Status = &v -} - -// GetStatusDetail returns the StatusDetail field value if set, zero value otherwise. -func (o *DisputeEventNotification) GetStatusDetail() string { - if o == nil || common.IsNil(o.StatusDetail) { - var ret string - return ret - } - return *o.StatusDetail -} - -// GetStatusDetailOk returns a tuple with the StatusDetail field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DisputeEventNotification) GetStatusDetailOk() (*string, bool) { - if o == nil || common.IsNil(o.StatusDetail) { - return nil, false - } - return o.StatusDetail, true -} - -// HasStatusDetail returns a boolean if a field has been set. -func (o *DisputeEventNotification) HasStatusDetail() bool { - if o != nil && !common.IsNil(o.StatusDetail) { - return true - } - - return false -} - -// SetStatusDetail gets a reference to the given string and assigns it to the StatusDetail field. -func (o *DisputeEventNotification) SetStatusDetail(v string) { - o.StatusDetail = &v -} - -// GetTransactionId returns the TransactionId field value if set, zero value otherwise. -func (o *DisputeEventNotification) GetTransactionId() string { - if o == nil || common.IsNil(o.TransactionId) { - var ret string - return ret - } - return *o.TransactionId -} - -// GetTransactionIdOk returns a tuple with the TransactionId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DisputeEventNotification) GetTransactionIdOk() (*string, bool) { - if o == nil || common.IsNil(o.TransactionId) { - return nil, false - } - return o.TransactionId, true -} - -// HasTransactionId returns a boolean if a field has been set. -func (o *DisputeEventNotification) HasTransactionId() bool { - if o != nil && !common.IsNil(o.TransactionId) { - return true - } - - return false -} - -// SetTransactionId gets a reference to the given string and assigns it to the TransactionId field. -func (o *DisputeEventNotification) SetTransactionId(v string) { - o.TransactionId = &v -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *DisputeEventNotification) GetType() string { - if o == nil || common.IsNil(o.Type) { - var ret string - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DisputeEventNotification) GetTypeOk() (*string, bool) { - if o == nil || common.IsNil(o.Type) { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *DisputeEventNotification) HasType() bool { - if o != nil && !common.IsNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given string and assigns it to the Type field. -func (o *DisputeEventNotification) SetType(v string) { - o.Type = &v -} - -func (o DisputeEventNotification) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DisputeEventNotification) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !common.IsNil(o.Arn) { - toSerialize["arn"] = o.Arn - } - if !common.IsNil(o.BalancePlatform) { - toSerialize["balancePlatform"] = o.BalancePlatform - } - if !common.IsNil(o.CreationDate) { - toSerialize["creationDate"] = o.CreationDate - } - if !common.IsNil(o.Description) { - toSerialize["description"] = o.Description - } - if !common.IsNil(o.DisputedAmount) { - toSerialize["disputedAmount"] = o.DisputedAmount - } - if !common.IsNil(o.Id) { - toSerialize["id"] = o.Id - } - if !common.IsNil(o.Status) { - toSerialize["status"] = o.Status - } - if !common.IsNil(o.StatusDetail) { - toSerialize["statusDetail"] = o.StatusDetail - } - if !common.IsNil(o.TransactionId) { - toSerialize["transactionId"] = o.TransactionId - } - if !common.IsNil(o.Type) { - toSerialize["type"] = o.Type - } - return toSerialize, nil -} - -type NullableDisputeEventNotification struct { - value *DisputeEventNotification - isSet bool -} - -func (v NullableDisputeEventNotification) Get() *DisputeEventNotification { - return v.value -} - -func (v *NullableDisputeEventNotification) Set(val *DisputeEventNotification) { - v.value = val - v.isSet = true -} - -func (v NullableDisputeEventNotification) IsSet() bool { - return v.isSet -} - -func (v *NullableDisputeEventNotification) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDisputeEventNotification(val *DisputeEventNotification) *NullableDisputeEventNotification { - return &NullableDisputeEventNotification{value: val, isSet: true} -} - -func (v NullableDisputeEventNotification) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDisputeEventNotification) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -func (o *DisputeEventNotification) isValidType() bool { - var allowedEnumValues = []string{"fraud", "notDelivered"} - for _, allowed := range allowedEnumValues { - if o.GetType() == allowed { - return true - } - } - return false -} diff --git a/src/disputewebhook/model_dispute_notification_request.go b/src/disputewebhook/model_dispute_notification_request.go deleted file mode 100644 index e4838472f..000000000 --- a/src/disputewebhook/model_dispute_notification_request.go +++ /dev/null @@ -1,153 +0,0 @@ -/* -Dispute webhooks - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package disputewebhook - -import ( - "encoding/json" - - "github.com/adyen/adyen-go-api-library/v15/src/common" -) - -// checks if the DisputeNotificationRequest type satisfies the MappedNullable interface at compile time -var _ common.MappedNullable = &DisputeNotificationRequest{} - -// DisputeNotificationRequest struct for DisputeNotificationRequest -type DisputeNotificationRequest struct { - Data DisputeEventNotification `json:"data"` - // Type of webhook. - Type string `json:"type"` -} - -// NewDisputeNotificationRequest instantiates a new DisputeNotificationRequest 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 NewDisputeNotificationRequest(data DisputeEventNotification, type_ string) *DisputeNotificationRequest { - this := DisputeNotificationRequest{} - this.Data = data - this.Type = type_ - return &this -} - -// NewDisputeNotificationRequestWithDefaults instantiates a new DisputeNotificationRequest 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 NewDisputeNotificationRequestWithDefaults() *DisputeNotificationRequest { - this := DisputeNotificationRequest{} - return &this -} - -// GetData returns the Data field value -func (o *DisputeNotificationRequest) GetData() DisputeEventNotification { - if o == nil { - var ret DisputeEventNotification - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *DisputeNotificationRequest) GetDataOk() (*DisputeEventNotification, bool) { - if o == nil { - return nil, false - } - return &o.Data, true -} - -// SetData sets field value -func (o *DisputeNotificationRequest) SetData(v DisputeEventNotification) { - o.Data = v -} - -// GetType returns the Type field value -func (o *DisputeNotificationRequest) GetType() string { - if o == nil { - var ret string - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *DisputeNotificationRequest) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *DisputeNotificationRequest) SetType(v string) { - o.Type = v -} - -func (o DisputeNotificationRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DisputeNotificationRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - toSerialize["type"] = o.Type - return toSerialize, nil -} - -type NullableDisputeNotificationRequest struct { - value *DisputeNotificationRequest - isSet bool -} - -func (v NullableDisputeNotificationRequest) Get() *DisputeNotificationRequest { - return v.value -} - -func (v *NullableDisputeNotificationRequest) Set(val *DisputeNotificationRequest) { - v.value = val - v.isSet = true -} - -func (v NullableDisputeNotificationRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableDisputeNotificationRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDisputeNotificationRequest(val *DisputeNotificationRequest) *NullableDisputeNotificationRequest { - return &NullableDisputeNotificationRequest{value: val, isSet: true} -} - -func (v NullableDisputeNotificationRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDisputeNotificationRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -func (o *DisputeNotificationRequest) isValidType() bool { - var allowedEnumValues = []string{"balancePlatform.dispute.created", "balancePlatform.dispute.updated"} - for _, allowed := range allowedEnumValues { - if o.GetType() == allowed { - return true - } - } - return false -} diff --git a/src/disputewebhook/webhook_handler.go b/src/disputewebhook/webhook_handler.go deleted file mode 100644 index 429296510..000000000 --- a/src/disputewebhook/webhook_handler.go +++ /dev/null @@ -1,15 +0,0 @@ -package disputewebhook - -import ( - "encoding/json" -) - -// HandleDisputeNotificationRequest creates a Notification object from the given JSON string -func HandleDisputeNotificationRequest(req string) (*DisputeNotificationRequest, error) { - res := DisputeNotificationRequest{} - err := json.Unmarshal([]byte(req), &res) - if err != nil { - return nil, err - } - return &res, nil -} diff --git a/src/legalentity/model_identification_data.go b/src/legalentity/model_identification_data.go index c94602378..ac853e5ad 100644 --- a/src/legalentity/model_identification_data.go +++ b/src/legalentity/model_identification_data.go @@ -32,7 +32,7 @@ type IdentificationData struct { NationalIdExempt *bool `json:"nationalIdExempt,omitempty"` // The number in the document. Number *string `json:"number,omitempty"` - // Type of identity data. For individuals, the following types are supported. See our [onboarding guide](https://docs.adyen.com/platforms/onboard-users/onboarding-steps/?onboarding_type=custom) for other supported countries. - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber** + // Type of identity data. For individuals, the following types are supported: - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber** Type string `json:"type"` } diff --git a/src/legalentity/model_onboarding_link_settings.go b/src/legalentity/model_onboarding_link_settings.go index f569d975c..dee7c361b 100644 --- a/src/legalentity/model_onboarding_link_settings.go +++ b/src/legalentity/model_onboarding_link_settings.go @@ -29,8 +29,6 @@ type OnboardingLinkSettings struct { ChangeLegalEntityType *bool `json:"changeLegalEntityType,omitempty"` // Default value: **true** Indicates if the user can change the country of their legal entity's address, for example the registered address of an organization. EditPrefilledCountry *bool `json:"editPrefilledCountry,omitempty"` - // Default value: **false** Indicates if only users above the age of 18 can be onboarded. - EnforceLegalAge *bool `json:"enforceLegalAge,omitempty"` // Default value: **true** Indicates whether the introduction screen is hidden for the user of the individual legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. HideOnboardingIntroductionIndividual *bool `json:"hideOnboardingIntroductionIndividual,omitempty"` // Default value: **true** Indicates whether the introduction screen is hidden for the user of the organization legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. @@ -230,38 +228,6 @@ func (o *OnboardingLinkSettings) SetEditPrefilledCountry(v bool) { o.EditPrefilledCountry = &v } -// GetEnforceLegalAge returns the EnforceLegalAge field value if set, zero value otherwise. -func (o *OnboardingLinkSettings) GetEnforceLegalAge() bool { - if o == nil || common.IsNil(o.EnforceLegalAge) { - var ret bool - return ret - } - return *o.EnforceLegalAge -} - -// GetEnforceLegalAgeOk returns a tuple with the EnforceLegalAge field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OnboardingLinkSettings) GetEnforceLegalAgeOk() (*bool, bool) { - if o == nil || common.IsNil(o.EnforceLegalAge) { - return nil, false - } - return o.EnforceLegalAge, true -} - -// HasEnforceLegalAge returns a boolean if a field has been set. -func (o *OnboardingLinkSettings) HasEnforceLegalAge() bool { - if o != nil && !common.IsNil(o.EnforceLegalAge) { - return true - } - - return false -} - -// SetEnforceLegalAge gets a reference to the given bool and assigns it to the EnforceLegalAge field. -func (o *OnboardingLinkSettings) SetEnforceLegalAge(v bool) { - o.EnforceLegalAge = &v -} - // GetHideOnboardingIntroductionIndividual returns the HideOnboardingIntroductionIndividual field value if set, zero value otherwise. func (o *OnboardingLinkSettings) GetHideOnboardingIntroductionIndividual() bool { if o == nil || common.IsNil(o.HideOnboardingIntroductionIndividual) { @@ -607,9 +573,6 @@ func (o OnboardingLinkSettings) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.EditPrefilledCountry) { toSerialize["editPrefilledCountry"] = o.EditPrefilledCountry } - if !common.IsNil(o.EnforceLegalAge) { - toSerialize["enforceLegalAge"] = o.EnforceLegalAge - } if !common.IsNil(o.HideOnboardingIntroductionIndividual) { toSerialize["hideOnboardingIntroductionIndividual"] = o.HideOnboardingIntroductionIndividual } diff --git a/src/legalentity/model_phone_number.go b/src/legalentity/model_phone_number.go index dc9abf9fa..7f1b57841 100644 --- a/src/legalentity/model_phone_number.go +++ b/src/legalentity/model_phone_number.go @@ -21,8 +21,6 @@ var _ common.MappedNullable = &PhoneNumber{} type PhoneNumber struct { // The full phone number, including the country code. For example, **+3112345678**. Number string `json:"number"` - // The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code prefix of the phone number. For example, **US** or **NL**. The value of the `phoneCountryCode` is determined by the country code digit(s) of `phone.number` - PhoneCountryCode *string `json:"phoneCountryCode,omitempty"` // The type of phone number. Possible values: **mobile**, **landline**, **sip**, **fax.** Type *string `json:"type,omitempty"` } @@ -69,38 +67,6 @@ func (o *PhoneNumber) SetNumber(v string) { o.Number = v } -// GetPhoneCountryCode returns the PhoneCountryCode field value if set, zero value otherwise. -func (o *PhoneNumber) GetPhoneCountryCode() string { - if o == nil || common.IsNil(o.PhoneCountryCode) { - var ret string - return ret - } - return *o.PhoneCountryCode -} - -// GetPhoneCountryCodeOk returns a tuple with the PhoneCountryCode field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PhoneNumber) GetPhoneCountryCodeOk() (*string, bool) { - if o == nil || common.IsNil(o.PhoneCountryCode) { - return nil, false - } - return o.PhoneCountryCode, true -} - -// HasPhoneCountryCode returns a boolean if a field has been set. -func (o *PhoneNumber) HasPhoneCountryCode() bool { - if o != nil && !common.IsNil(o.PhoneCountryCode) { - return true - } - - return false -} - -// SetPhoneCountryCode gets a reference to the given string and assigns it to the PhoneCountryCode field. -func (o *PhoneNumber) SetPhoneCountryCode(v string) { - o.PhoneCountryCode = &v -} - // GetType returns the Type field value if set, zero value otherwise. func (o *PhoneNumber) GetType() string { if o == nil || common.IsNil(o.Type) { @@ -144,9 +110,6 @@ func (o PhoneNumber) MarshalJSON() ([]byte, error) { func (o PhoneNumber) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["number"] = o.Number - if !common.IsNil(o.PhoneCountryCode) { - toSerialize["phoneCountryCode"] = o.PhoneCountryCode - } if !common.IsNil(o.Type) { toSerialize["type"] = o.Type } diff --git a/src/legalentity/model_trust.go b/src/legalentity/model_trust.go index b85f3d031..7fcae4765 100644 --- a/src/legalentity/model_trust.go +++ b/src/legalentity/model_trust.go @@ -23,8 +23,6 @@ type Trust struct { CountryOfGoverningLaw string `json:"countryOfGoverningLaw"` // The date when the legal arrangement was incorporated in YYYY-MM-DD format. DateOfIncorporation *string `json:"dateOfIncorporation,omitempty"` - // A short description about the trust. Only applicable for charitable trusts in New Zealand. - Description *string `json:"description,omitempty"` // The registered name, if different from the `name`. DoingBusinessAs *string `json:"doingBusinessAs,omitempty"` // The legal name. @@ -33,9 +31,11 @@ type Trust struct { RegisteredAddress Address `json:"registeredAddress"` // The registration number. RegistrationNumber *string `json:"registrationNumber,omitempty"` + // The tax information is absent. + TaxAbsent common.NullableBool `json:"taxAbsent,omitempty"` // The tax information of the entity. TaxInformation []TaxInformation `json:"taxInformation,omitempty"` - // Type of trust. See possible values for trusts in [Australia](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-australia) and [New Zealand](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-new-zealand). + // Type of trust. Possible values for Australian trusts: **cashManagementTrust**, **corporateUnitTrust**, **deceasedEstate**, **discretionaryInvestmentTrust**, **discretionaryServicesManagementTrust**, **discretionaryTradingTrust**, **firstHomeSaverAccountsTrust**, **fixedTrust**, **fixedUnitTrust**, **hybridTrust**, **listedPublicUnitTrust**, **otherTrust**, **pooledSuperannuationTrust**, **publicTradingTrust**, **unlistedPublicUnitTrust**. Type string `json:"type"` // The undefined beneficiary information of the entity. UndefinedBeneficiaryInfo []UndefinedBeneficiary `json:"undefinedBeneficiaryInfo,omitempty"` @@ -122,38 +122,6 @@ func (o *Trust) SetDateOfIncorporation(v string) { o.DateOfIncorporation = &v } -// GetDescription returns the Description field value if set, zero value otherwise. -func (o *Trust) GetDescription() string { - if o == nil || common.IsNil(o.Description) { - var ret string - return ret - } - return *o.Description -} - -// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Trust) GetDescriptionOk() (*string, bool) { - if o == nil || common.IsNil(o.Description) { - return nil, false - } - return o.Description, true -} - -// HasDescription returns a boolean if a field has been set. -func (o *Trust) HasDescription() bool { - if o != nil && !common.IsNil(o.Description) { - return true - } - - return false -} - -// SetDescription gets a reference to the given string and assigns it to the Description field. -func (o *Trust) SetDescription(v string) { - o.Description = &v -} - // GetDoingBusinessAs returns the DoingBusinessAs field value if set, zero value otherwise. func (o *Trust) GetDoingBusinessAs() string { if o == nil || common.IsNil(o.DoingBusinessAs) { @@ -298,6 +266,49 @@ func (o *Trust) SetRegistrationNumber(v string) { o.RegistrationNumber = &v } +// GetTaxAbsent returns the TaxAbsent field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Trust) GetTaxAbsent() bool { + if o == nil || common.IsNil(o.TaxAbsent.Get()) { + var ret bool + return ret + } + return *o.TaxAbsent.Get() +} + +// GetTaxAbsentOk returns a tuple with the TaxAbsent field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Trust) GetTaxAbsentOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.TaxAbsent.Get(), o.TaxAbsent.IsSet() +} + +// HasTaxAbsent returns a boolean if a field has been set. +func (o *Trust) HasTaxAbsent() bool { + if o != nil && o.TaxAbsent.IsSet() { + return true + } + + return false +} + +// SetTaxAbsent gets a reference to the given NullableBool and assigns it to the TaxAbsent field. +func (o *Trust) SetTaxAbsent(v bool) { + o.TaxAbsent.Set(&v) +} + +// SetTaxAbsentNil sets the value for TaxAbsent to be an explicit nil +func (o *Trust) SetTaxAbsentNil() { + o.TaxAbsent.Set(nil) +} + +// UnsetTaxAbsent ensures that no value is present for TaxAbsent, not even an explicit nil +func (o *Trust) UnsetTaxAbsent() { + o.TaxAbsent.Unset() +} + // GetTaxInformation returns the TaxInformation field value if set, zero value otherwise. func (o *Trust) GetTaxInformation() []TaxInformation { if o == nil || common.IsNil(o.TaxInformation) { @@ -464,9 +475,6 @@ func (o Trust) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.DateOfIncorporation) { toSerialize["dateOfIncorporation"] = o.DateOfIncorporation } - if !common.IsNil(o.Description) { - toSerialize["description"] = o.Description - } if !common.IsNil(o.DoingBusinessAs) { toSerialize["doingBusinessAs"] = o.DoingBusinessAs } @@ -478,6 +486,9 @@ func (o Trust) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.RegistrationNumber) { toSerialize["registrationNumber"] = o.RegistrationNumber } + if o.TaxAbsent.IsSet() { + toSerialize["taxAbsent"] = o.TaxAbsent.Get() + } if !common.IsNil(o.TaxInformation) { toSerialize["taxInformation"] = o.TaxInformation } @@ -531,7 +542,7 @@ func (v *NullableTrust) UnmarshalJSON(src []byte) error { } func (o *Trust) isValidType() bool { - var allowedEnumValues = []string{"businessTrust", "cashManagementTrust", "charitableTrust", "corporateUnitTrust", "deceasedEstate", "discretionaryTrust", "discretionaryInvestmentTrust", "discretionaryServicesManagementTrust", "discretionaryTradingTrust", "familyTrust", "firstHomeSaverAccountsTrust", "fixedTrust", "fixedUnitTrust", "hybridTrust", "listedPublicUnitTrust", "otherTrust", "pooledSuperannuationTrust", "publicTradingTrust", "unlistedPublicUnitTrust"} + var allowedEnumValues = []string{"cashManagementTrust", "corporateUnitTrust", "deceasedEstate", "discretionaryInvestmentTrust", "discretionaryServicesManagementTrust", "discretionaryTradingTrust", "firstHomeSaverAccountsTrust", "fixedTrust", "fixedUnitTrust", "hybridTrust", "listedPublicUnitTrust", "otherTrust", "pooledSuperannuationTrust", "publicTradingTrust", "unlistedPublicUnitTrust"} for _, allowed := range allowedEnumValues { if o.GetType() == allowed { return true diff --git a/src/management/api_account_store_level.go b/src/management/api_account_store_level.go index 32ea295d9..14b392968 100644 --- a/src/management/api_account_store_level.go +++ b/src/management/api_account_store_level.go @@ -49,8 +49,6 @@ Creates a store for the merchant account specified in the request. To make this request, your API credential must have the following [role](https://docs.adyen.com/development-resources/api-credentials#api-permissions): * Management API—Stores read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r AccountStoreLevelApiCreateStoreInput - Request parameters, see CreateStoreInput @return Store, *http.Response, error @@ -150,8 +148,6 @@ Creates a store for the merchant account identified in the path. To make this request, your API credential must have the following [role](https://docs.adyen.com/development-resources/api-credentials#api-permissions): * Management API—Stores read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r AccountStoreLevelApiCreateStoreByMerchantIdInput - Request parameters, see CreateStoreByMerchantIdInput @return Store, *http.Response, error @@ -249,8 +245,6 @@ To make this request, your API credential must have one of the following [roles] * Management API—Stores read * Management API—Stores read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r AccountStoreLevelApiGetStoreInput - Request parameters, see GetStoreInput @return Store, *http.Response, error @@ -347,8 +341,6 @@ To make this request, your API credential must have one of the following [roles] * Management API—Stores read * Management API—Stores read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r AccountStoreLevelApiGetStoreByIdInput - Request parameters, see GetStoreByIdInput @return Store, *http.Response, error @@ -469,8 +461,6 @@ To make this request, your API credential must have one of the following [roles] * Management API—Stores read * Management API—Stores read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r AccountStoreLevelApiListStoresInput - Request parameters, see ListStoresInput @return ListStoresResponse, *http.Response, error @@ -598,8 +588,6 @@ To make this request, your API credential must have one of the following [roles] * Management API—Stores read * Management API—Stores read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r AccountStoreLevelApiListStoresByMerchantIdInput - Request parameters, see ListStoresByMerchantIdInput @return ListStoresResponse, *http.Response, error @@ -711,8 +699,6 @@ Updates the store identified in the path. You can only update some store paramet To make this request, your API credential must have the following [role](https://docs.adyen.com/development-resources/api-credentials#api-permissions): * Management API—Stores read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r AccountStoreLevelApiUpdateStoreInput - Request parameters, see UpdateStoreInput @return Store, *http.Response, error @@ -815,8 +801,6 @@ You can only update some store parameters. To make this request, your API credential must have the following [role](https://docs.adyen.com/development-resources/api-credentials#api-permissions): * Management API—Stores read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r AccountStoreLevelApiUpdateStoreByIdInput - Request parameters, see UpdateStoreByIdInput @return Store, *http.Response, error diff --git a/src/management/api_android_files_company_level.go b/src/management/api_android_files_company_level.go index 60216bf44..311d5df08 100644 --- a/src/management/api_android_files_company_level.go +++ b/src/management/api_android_files_company_level.go @@ -50,8 +50,6 @@ To make this request, your API credential must have one of the following [roles] * Management API—Android files read * Management API—Android files read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r AndroidFilesCompanyLevelApiGetAndroidAppInput - Request parameters, see GetAndroidAppInput @return AndroidApp, *http.Response, error @@ -179,8 +177,6 @@ To make this request, your API credential must have one of the following [roles] * Management API—Terminal actions read * Management API—Terminal actions read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r AndroidFilesCompanyLevelApiListAndroidAppsInput - Request parameters, see ListAndroidAppsInput @return AndroidAppsResponse, *http.Response, error @@ -312,8 +308,6 @@ To make this request, your API credential must have one of the following [roles] * Management API—Terminal actions read * Management API—Terminal actions read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r AndroidFilesCompanyLevelApiListAndroidCertificatesInput - Request parameters, see ListAndroidCertificatesInput @return AndroidCertificatesResponse, *http.Response, error @@ -418,7 +412,6 @@ Reuploads the Android app identified in the path. To make this request, your API credential must have this [role](https://docs.adyen.com/development-resources/api-credentials#api-permissions): * Management API—Android files read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). >By choosing to upload, install, or run any third-party applications on an Adyen payment terminal, you accept full responsibility and liability for any consequences of uploading, installing, or running any such applications. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @@ -516,7 +509,6 @@ The maximum APK file size is 200 MB. To make this request, your API credential must have the following [role](https://docs.adyen.com/development-resources/api-credentials#api-permissions): * Management API—Android files read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). >By choosing to upload, install, or run any third-party applications on an Adyen payment terminal, you accept full responsibility and liability for any consequences of uploading, installing, or running any such applications. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @@ -610,7 +602,6 @@ UploadAndroidCertificate Upload Android Certificate Uploads an Android Certificate file to Adyen. -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r AndroidFilesCompanyLevelApiUploadAndroidCertificateInput - Request parameters, see UploadAndroidCertificateInput diff --git a/src/management/api_terminal_actions_company_level.go b/src/management/api_terminal_actions_company_level.go index a07113416..3f7bba1b0 100644 --- a/src/management/api_terminal_actions_company_level.go +++ b/src/management/api_terminal_actions_company_level.go @@ -48,8 +48,6 @@ To make this request, your API credential must have one of the following [roles] * Management API—Terminal actions read * Management API—Terminal actions read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalActionsCompanyLevelApiGetTerminalActionInput - Request parameters, see GetTerminalActionInput @return ExternalTerminalAction, *http.Response, error @@ -173,8 +171,6 @@ To make this request, your API credential must have one of the following [roles] * Management API—Terminal actions read * Management API—Terminal actions read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalActionsCompanyLevelApiListTerminalActionsInput - Request parameters, see ListTerminalActionsInput @return ListExternalTerminalActionsResponse, *http.Response, error diff --git a/src/management/api_terminal_actions_terminal_level.go b/src/management/api_terminal_actions_terminal_level.go index 5f930897e..61210fee5 100644 --- a/src/management/api_terminal_actions_terminal_level.go +++ b/src/management/api_terminal_actions_terminal_level.go @@ -53,8 +53,6 @@ The following restrictions apply: To make this request, your API credential must have the following [role](https://docs.adyen.com/development-resources/api-credentials#api-permissions): * Management API—Terminal actions read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalActionsTerminalLevelApiCreateTerminalActionInput - Request parameters, see CreateTerminalActionInput @return ScheduleTerminalActionsResponse, *http.Response, error diff --git a/src/management/api_terminal_orders_company_level.go b/src/management/api_terminal_orders_company_level.go index 7c749810a..1f042c8bb 100644 --- a/src/management/api_terminal_orders_company_level.go +++ b/src/management/api_terminal_orders_company_level.go @@ -50,8 +50,6 @@ To cancel an order, make a POST call without a request body. The response return To make this request, your API credential must have the following [role](https://docs.adyen.com/development-resources/api-credentials#api-permissions): * Management API—Terminal ordering read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalOrdersCompanyLevelApiCancelOrderInput - Request parameters, see CancelOrderInput @return TerminalOrder, *http.Response, error @@ -154,8 +152,6 @@ To make this request, your API credential must have the following [role](https:/ * Management API—Terminal ordering read and write >Requests to the Management API test endpoint do not create actual orders for test terminals. To order test terminals, you need to [submit a sales order](https://docs.adyen.com/point-of-sale/managing-terminals/order-terminals/#sales-order-steps) in your Customer Area. -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalOrdersCompanyLevelApiCreateOrderInput - Request parameters, see CreateOrderInput @return TerminalOrder, *http.Response, error @@ -256,8 +252,6 @@ Creates a shipping location for the company identified in the path. A shipping l To make this request, your API credential must have the following [role](https://docs.adyen.com/development-resources/api-credentials#api-permissions): * Management API—Terminal ordering read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalOrdersCompanyLevelApiCreateShippingLocationInput - Request parameters, see CreateShippingLocationInput @return ShippingLocation, *http.Response, error @@ -355,8 +349,6 @@ To make this request, your API credential must have one of the following [roles] * Management API—Terminal ordering read * Management API—Terminal ordering read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalOrdersCompanyLevelApiGetOrderInput - Request parameters, see GetOrderInput @return TerminalOrder, *http.Response, error @@ -461,8 +453,6 @@ To make this request, your API credential must have one of the following [roles] * Management API—Terminal ordering read * Management API—Terminal ordering read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalOrdersCompanyLevelApiListBillingEntitiesInput - Request parameters, see ListBillingEntitiesInput @return BillingEntitiesResponse, *http.Response, error @@ -590,8 +580,6 @@ To make this request, your API credential must have one of the following [roles] * Management API—Terminal ordering read * Management API—Terminal ordering read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalOrdersCompanyLevelApiListOrdersInput - Request parameters, see ListOrdersInput @return TerminalOrdersResponse, *http.Response, error @@ -721,8 +709,6 @@ To make this request, your API credential must have one of the following [roles] * Management API—Terminal ordering read * Management API—Terminal ordering read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalOrdersCompanyLevelApiListShippingLocationsInput - Request parameters, see ListShippingLocationsInput @return ShippingLocationsResponse, *http.Response, error @@ -828,8 +814,6 @@ To make this request, your API credential must have one of the following [roles] * Management API—Terminal ordering read * Management API—Terminal ordering read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalOrdersCompanyLevelApiListTerminalModelsInput - Request parameters, see ListTerminalModelsInput @return TerminalModelsResponse, *http.Response, error @@ -953,8 +937,6 @@ To make this request, your API credential must have one of the following [roles] * Management API—Terminal ordering read * Management API—Terminal ordering read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalOrdersCompanyLevelApiListTerminalProductsInput - Request parameters, see ListTerminalProductsInput @return TerminalProductsResponse, *http.Response, error @@ -1074,8 +1056,6 @@ However, to update the products in the `items` array, you must provide the entir To make this request, your API credential must have the following [role](https://docs.adyen.com/development-resources/api-credentials#api-permissions): * Management API—Terminal ordering read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalOrdersCompanyLevelApiUpdateOrderInput - Request parameters, see UpdateOrderInput @return TerminalOrder, *http.Response, error diff --git a/src/management/api_terminal_orders_merchant_level.go b/src/management/api_terminal_orders_merchant_level.go index 3693d1a5e..3b5e4fdd6 100644 --- a/src/management/api_terminal_orders_merchant_level.go +++ b/src/management/api_terminal_orders_merchant_level.go @@ -50,8 +50,6 @@ To cancel an order, make a POST call without a request body. The response return To make this request, your API credential must have the following [role](https://docs.adyen.com/development-resources/api-credentials#api-permissions): * Management API—Terminal ordering read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalOrdersMerchantLevelApiCancelOrderInput - Request parameters, see CancelOrderInput @return TerminalOrder, *http.Response, error @@ -154,8 +152,6 @@ To make this request, your API credential must have the following [role](https:/ * Management API—Terminal ordering read and write >Requests to the Management API test endpoint do not create actual orders for test terminals. To order test terminals, you need to [submit a sales order](https://docs.adyen.com/point-of-sale/managing-terminals/order-terminals/#sales-order-steps) in your Customer Area. -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalOrdersMerchantLevelApiCreateOrderInput - Request parameters, see CreateOrderInput @return TerminalOrder, *http.Response, error @@ -256,8 +252,6 @@ Creates a shipping location for the merchant account identified in the path. A s To make this request, your API credential must have the following [role](https://docs.adyen.com/development-resources/api-credentials#api-permissions): * Management API—Terminal ordering read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalOrdersMerchantLevelApiCreateShippingLocationInput - Request parameters, see CreateShippingLocationInput @return ShippingLocation, *http.Response, error @@ -355,8 +349,6 @@ To make this request, your API credential must have one of the following [roles] * Management API—Terminal ordering read * Management API—Terminal ordering read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalOrdersMerchantLevelApiGetOrderInput - Request parameters, see GetOrderInput @return TerminalOrder, *http.Response, error @@ -461,8 +453,6 @@ To make this request, your API credential must have one of the following [roles] * Management API—Terminal ordering read * Management API—Terminal ordering read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalOrdersMerchantLevelApiListBillingEntitiesInput - Request parameters, see ListBillingEntitiesInput @return BillingEntitiesResponse, *http.Response, error @@ -589,8 +579,6 @@ To make this request, your API credential must have one of the following [roles] * Management API—Terminal ordering read * Management API—Terminal ordering read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalOrdersMerchantLevelApiListOrdersInput - Request parameters, see ListOrdersInput @return TerminalOrdersResponse, *http.Response, error @@ -720,8 +708,6 @@ To make this request, your API credential must have one of the following [roles] * Management API—Terminal ordering read * Management API—Terminal ordering read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalOrdersMerchantLevelApiListShippingLocationsInput - Request parameters, see ListShippingLocationsInput @return ShippingLocationsResponse, *http.Response, error @@ -826,8 +812,6 @@ To make this request, your API credential must have one of the following [roles] * Management API—Terminal ordering read * Management API—Terminal ordering read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalOrdersMerchantLevelApiListTerminalModelsInput - Request parameters, see ListTerminalModelsInput @return TerminalModelsResponse, *http.Response, error @@ -951,8 +935,6 @@ To make this request, your API credential must have one of the following [roles] * Management API—Terminal ordering read * Management API—Terminal ordering read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalOrdersMerchantLevelApiListTerminalProductsInput - Request parameters, see ListTerminalProductsInput @return TerminalProductsResponse, *http.Response, error @@ -1072,8 +1054,6 @@ However, to update the products in the `items` array, you must provide the entir To make this request, your API credential must have the following [role](https://docs.adyen.com/development-resources/api-credentials#api-permissions): * Management API—Terminal ordering read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalOrdersMerchantLevelApiUpdateOrderInput - Request parameters, see UpdateOrderInput @return TerminalOrder, *http.Response, error diff --git a/src/management/api_terminal_settings_company_level.go b/src/management/api_terminal_settings_company_level.go index 7a25a379f..0be46bd46 100644 --- a/src/management/api_terminal_settings_company_level.go +++ b/src/management/api_terminal_settings_company_level.go @@ -57,8 +57,6 @@ To make this request, your API credential must have one of the following [roles] * Management API—Terminal settings read * Management API—Terminal settings read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalSettingsCompanyLevelApiGetTerminalLogoInput - Request parameters, see GetTerminalLogoInput @return Logo, *http.Response, error @@ -160,8 +158,6 @@ To make this request, your API credential must have one of the following [roles] For [sensitive terminal settings](https://docs.adyen.com/point-of-sale/automating-terminal-management/configure-terminals-api#sensitive-terminal-settings), your API credential must have the following role: * Management API—Terminal settings Advanced read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalSettingsCompanyLevelApiGetTerminalSettingsInput - Request parameters, see GetTerminalSettingsInput @return TerminalSettings, *http.Response, error @@ -272,8 +268,6 @@ This logo applies to all terminals of the specified model under the company, unl To make this request, your API credential must have the following [role](https://docs.adyen.com/development-resources/api-credentials#api-permissions): * Management API—Terminal settings read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalSettingsCompanyLevelApiUpdateTerminalLogoInput - Request parameters, see UpdateTerminalLogoInput @return Logo, *http.Response, error @@ -384,8 +378,6 @@ To make this request, your API credential must have the following [role](https:/ For [sensitive terminal settings](https://docs.adyen.com/point-of-sale/automating-terminal-management/configure-terminals-api#sensitive-terminal-settings), your API credential must have the following role: * Management API—Terminal settings Advanced read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalSettingsCompanyLevelApiUpdateTerminalSettingsInput - Request parameters, see UpdateTerminalSettingsInput @return TerminalSettings, *http.Response, error diff --git a/src/management/api_terminal_settings_merchant_level.go b/src/management/api_terminal_settings_merchant_level.go index 1cf1bcfa8..33c7b5821 100644 --- a/src/management/api_terminal_settings_merchant_level.go +++ b/src/management/api_terminal_settings_merchant_level.go @@ -56,8 +56,6 @@ To make this request, your API credential must have one of the following [roles] * Management API—Terminal settings read * Management API—Terminal settings read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalSettingsMerchantLevelApiGetTerminalLogoInput - Request parameters, see GetTerminalLogoInput @return Logo, *http.Response, error @@ -156,11 +154,6 @@ To make this request, your API credential must have one of the following [roles] * Management API—Terminal settings read * Management API—Terminal settings read and write -For [sensitive terminal settings](https://docs.adyen.com/point-of-sale/automating-terminal-management/configure-terminals-api#sensitive-terminal-settings), your API credential must have the following role: -* Management API—Terminal settings Advanced read and write - -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalSettingsMerchantLevelApiGetTerminalSettingsInput - Request parameters, see GetTerminalSettingsInput @return TerminalSettings, *http.Response, error @@ -272,8 +265,6 @@ This logo applies to all terminals of the specified model under the merchant acc To make this request, your API credential must have the following [role](https://docs.adyen.com/development-resources/api-credentials#api-permissions): * Management API—Terminal settings read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalSettingsMerchantLevelApiUpdateTerminalLogoInput - Request parameters, see UpdateTerminalLogoInput @return Logo, *http.Response, error @@ -382,13 +373,6 @@ These settings apply to all terminals under the merchant account, unless differe To make this request, your API credential must have the following [role](https://docs.adyen.com/development-resources/api-credentials#api-permissions): * Management API—Terminal settings read and write - - -For [sensitive terminal settings](https://docs.adyen.com/point-of-sale/automating-terminal-management/configure-terminals-api#sensitive-terminal-settings), your API credential must have the following role: -* Management API—Terminal settings Advanced read and write - -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalSettingsMerchantLevelApiUpdateTerminalSettingsInput - Request parameters, see UpdateTerminalSettingsInput @return TerminalSettings, *http.Response, error diff --git a/src/management/api_terminal_settings_store_level.go b/src/management/api_terminal_settings_store_level.go index c89373ac1..db937e5d7 100644 --- a/src/management/api_terminal_settings_store_level.go +++ b/src/management/api_terminal_settings_store_level.go @@ -58,8 +58,6 @@ To make this request, your API credential must have one of the following [roles] * Management API—Terminal settings read * Management API—Terminal settings read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalSettingsStoreLevelApiGetTerminalLogoInput - Request parameters, see GetTerminalLogoInput @return Logo, *http.Response, error @@ -168,8 +166,6 @@ To make this request, your API credential must have one of the following [roles] * Management API—Terminal settings read * Management API—Terminal settings read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalSettingsStoreLevelApiGetTerminalLogoByStoreIdInput - Request parameters, see GetTerminalLogoByStoreIdInput @return Logo, *http.Response, error @@ -273,8 +269,6 @@ To make this request, your API credential must have one of the following [roles] For [sensitive terminal settings](https://docs.adyen.com/point-of-sale/automating-terminal-management/configure-terminals-api#sensitive-terminal-settings), your API credential must have the following role: * Management API—Terminal settings Advanced read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalSettingsStoreLevelApiGetTerminalSettingsInput - Request parameters, see GetTerminalSettingsInput @return TerminalSettings, *http.Response, error @@ -374,8 +368,6 @@ To make this request, your API credential must have one of the following [roles] For [sensitive terminal settings](https://docs.adyen.com/point-of-sale/automating-terminal-management/configure-terminals-api#sensitive-terminal-settings), your API credential must have the following role: * Management API—Terminal settings Advanced read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalSettingsStoreLevelApiGetTerminalSettingsByStoreIdInput - Request parameters, see GetTerminalSettingsByStoreIdInput @return TerminalSettings, *http.Response, error @@ -489,8 +481,6 @@ This logo applies to all terminals of the specified model under the store, unles To make this request, your API credential must have the following [role](https://docs.adyen.com/development-resources/api-credentials#api-permissions): * Management API—Terminal settings read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalSettingsStoreLevelApiUpdateTerminalLogoInput - Request parameters, see UpdateTerminalLogoInput @return Logo, *http.Response, error @@ -606,8 +596,6 @@ This logo applies to all terminals of the specified model under the store, unles To make this request, your API credential must have the following [role](https://docs.adyen.com/development-resources/api-credentials#api-permissions): * Management API—Terminal settings read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalSettingsStoreLevelApiUpdateTerminalLogoByStoreIdInput - Request parameters, see UpdateTerminalLogoByStoreIdInput @return Logo, *http.Response, error @@ -720,8 +708,6 @@ To make this request, your API credential must have the following [role](https:/ For [sensitive terminal settings](https://docs.adyen.com/point-of-sale/automating-terminal-management/configure-terminals-api#sensitive-terminal-settings), your API credential must have the following role: * Management API—Terminal settings Advanced read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalSettingsStoreLevelApiUpdateTerminalSettingsInput - Request parameters, see UpdateTerminalSettingsInput @return TerminalSettings, *http.Response, error @@ -830,8 +816,6 @@ To make this request, your API credential must have the following [role](https:/ For [sensitive terminal settings](https://docs.adyen.com/point-of-sale/automating-terminal-management/configure-terminals-api#sensitive-terminal-settings), your API credential must have the following role: * Management API—Terminal settings Advanced read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalSettingsStoreLevelApiUpdateTerminalSettingsByStoreIdInput - Request parameters, see UpdateTerminalSettingsByStoreIdInput @return TerminalSettings, *http.Response, error diff --git a/src/management/api_terminal_settings_terminal_level.go b/src/management/api_terminal_settings_terminal_level.go index 9ce8c57b4..d3db90477 100644 --- a/src/management/api_terminal_settings_terminal_level.go +++ b/src/management/api_terminal_settings_terminal_level.go @@ -48,8 +48,6 @@ To make this request, your API credential must have one of the following [roles] * Management API—Terminal settings read * Management API—Terminal settings read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalSettingsTerminalLevelApiGetTerminalLogoInput - Request parameters, see GetTerminalLogoInput @return Logo, *http.Response, error @@ -148,8 +146,6 @@ To make this request, your API credential must have one of the following [roles] For [sensitive terminal settings](https://docs.adyen.com/point-of-sale/automating-terminal-management/configure-terminals-api#sensitive-terminal-settings), your API credential must have the following role: * Management API—Terminal settings Advanced read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalSettingsTerminalLevelApiGetTerminalSettingsInput - Request parameters, see GetTerminalSettingsInput @return TerminalSettings, *http.Response, error @@ -253,8 +249,6 @@ Updates the logo for the payment terminal identified in the path. To make this request, your API credential must have the following [role](https://docs.adyen.com/development-resources/api-credentials#api-permissions): * Management API—Terminal settings read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalSettingsTerminalLevelApiUpdateLogoInput - Request parameters, see UpdateLogoInput @return Logo, *http.Response, error @@ -362,8 +356,6 @@ To make this request, your API credential must have the following [role](https:/ For [sensitive terminal settings](https://docs.adyen.com/point-of-sale/automating-terminal-management/configure-terminals-api#sensitive-terminal-settings), your API credential must have the following role: * Management API—Terminal settings Advanced read and write -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalSettingsTerminalLevelApiUpdateTerminalSettingsInput - Request parameters, see UpdateTerminalSettingsInput @return TerminalSettings, *http.Response, error diff --git a/src/management/api_terminals_terminal_level.go b/src/management/api_terminals_terminal_level.go index 22b885618..5d8e60327 100644 --- a/src/management/api_terminals_terminal_level.go +++ b/src/management/api_terminals_terminal_level.go @@ -98,8 +98,6 @@ Returns the payment terminals that the API credential has access to and that mat To make this request, your API credential must have the following [roles](https://docs.adyen.com/development-resources/api-credentials#api-permissions): * Management API — Terminal actions read -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalsTerminalLevelApiListTerminalsInput - Request parameters, see ListTerminalsInput @return ListTerminalsResponse, *http.Response, error @@ -223,8 +221,6 @@ Reassigns a payment terminal to a company account, merchant account, merchant ac To make this request, your API credential must have the following [role](https://docs.adyen.com/development-resources/api-credentials#api-permissions): * Management API—Assign Terminal -In the live environment, requests to this endpoint are subject to [rate limits](https://docs.adyen.com/point-of-sale/automating-terminal-management#rate-limits-in-the-live-environment). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TerminalsTerminalLevelApiReassignTerminalInput - Request parameters, see ReassignTerminalInput @return *http.Response, error diff --git a/src/management/model_amex_info.go b/src/management/model_amex_info.go index 2c55ad325..a7c4ba3c0 100644 --- a/src/management/model_amex_info.go +++ b/src/management/model_amex_info.go @@ -19,11 +19,11 @@ var _ common.MappedNullable = &AmexInfo{} // AmexInfo struct for AmexInfo type AmexInfo struct { - // Merchant ID (MID) number. Format: 10 numeric characters. You must provide this field when you request `gatewayContract` or `paymentDesignatorContract` service levels. + // MID (Merchant ID) number. Format: 10 numeric characters. Must be provided only when requesting `gatewayContract` or `paymentDesignatorContract` service levels. MidNumber *string `json:"midNumber,omitempty"` - // Indicates whether the Amex Merchant ID is reused from a previously setup Amex payment method. This is only applicable for `gatewayContract` and `paymentDesignatorContract` service levels. The default value is **false**. + // Indicates whether the Amex Merchant ID is reused from a previously setup Amex payment method. This is only applicable for `gatewayContract` and `paymentDesignatorContract` service levels. The default value is `false`. ReuseMidNumber *bool `json:"reuseMidNumber,omitempty"` - // Specifies the service level (settlement type) of this payment method. Possible values: * **noContract**: Adyen holds the contract with American Express. * **gatewayContract**: American Express receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Adyen receives the settlement, and handles disputes and payouts. + // Specifies the service level (settlement type) of this payment method. Possible values: * **noContract** — Adyen holds the contract with American Express. * **gatewayContract** — American Express receives the settlement and handles disputes. They then pay out to the merchant directly. * **paymentDesignatorContract** — Adyen receives the settlement and handles disputes. Adyen then pays out to the merchant. ServiceLevel string `json:"serviceLevel"` } diff --git a/src/management/model_diners_info.go b/src/management/model_diners_info.go deleted file mode 100644 index 28a7906fa..000000000 --- a/src/management/model_diners_info.go +++ /dev/null @@ -1,238 +0,0 @@ -/* -Management API - -API version: 3 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package management - -import ( - "encoding/json" - - "github.com/adyen/adyen-go-api-library/v15/src/common" -) - -// checks if the DinersInfo type satisfies the MappedNullable interface at compile time -var _ common.MappedNullable = &DinersInfo{} - -// DinersInfo struct for DinersInfo -type DinersInfo struct { - // MID (Merchant ID) number. Required for merchants operating in Japan. Format: 14 numeric characters. - MidNumber *string `json:"midNumber,omitempty"` - // Indicates whether the JCB Merchant ID is reused from a previously configured JCB payment method. The default value is **false**. For merchants operating in Japan, this field is required and must be set to **true**. - ReuseMidNumber bool `json:"reuseMidNumber"` - // Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB. * **gatewayContract**: JCB receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. - ServiceLevel *string `json:"serviceLevel,omitempty"` - TransactionDescription *TransactionDescriptionInfo `json:"transactionDescription,omitempty"` -} - -// NewDinersInfo instantiates a new DinersInfo 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 NewDinersInfo(reuseMidNumber bool) *DinersInfo { - this := DinersInfo{} - this.ReuseMidNumber = reuseMidNumber - return &this -} - -// NewDinersInfoWithDefaults instantiates a new DinersInfo 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 NewDinersInfoWithDefaults() *DinersInfo { - this := DinersInfo{} - var reuseMidNumber bool = false - this.ReuseMidNumber = reuseMidNumber - return &this -} - -// GetMidNumber returns the MidNumber field value if set, zero value otherwise. -func (o *DinersInfo) GetMidNumber() string { - if o == nil || common.IsNil(o.MidNumber) { - var ret string - return ret - } - return *o.MidNumber -} - -// GetMidNumberOk returns a tuple with the MidNumber field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DinersInfo) GetMidNumberOk() (*string, bool) { - if o == nil || common.IsNil(o.MidNumber) { - return nil, false - } - return o.MidNumber, true -} - -// HasMidNumber returns a boolean if a field has been set. -func (o *DinersInfo) HasMidNumber() bool { - if o != nil && !common.IsNil(o.MidNumber) { - return true - } - - return false -} - -// SetMidNumber gets a reference to the given string and assigns it to the MidNumber field. -func (o *DinersInfo) SetMidNumber(v string) { - o.MidNumber = &v -} - -// GetReuseMidNumber returns the ReuseMidNumber field value -func (o *DinersInfo) GetReuseMidNumber() bool { - if o == nil { - var ret bool - return ret - } - - return o.ReuseMidNumber -} - -// GetReuseMidNumberOk returns a tuple with the ReuseMidNumber field value -// and a boolean to check if the value has been set. -func (o *DinersInfo) GetReuseMidNumberOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.ReuseMidNumber, true -} - -// SetReuseMidNumber sets field value -func (o *DinersInfo) SetReuseMidNumber(v bool) { - o.ReuseMidNumber = v -} - -// GetServiceLevel returns the ServiceLevel field value if set, zero value otherwise. -func (o *DinersInfo) GetServiceLevel() string { - if o == nil || common.IsNil(o.ServiceLevel) { - var ret string - return ret - } - return *o.ServiceLevel -} - -// GetServiceLevelOk returns a tuple with the ServiceLevel field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DinersInfo) GetServiceLevelOk() (*string, bool) { - if o == nil || common.IsNil(o.ServiceLevel) { - return nil, false - } - return o.ServiceLevel, true -} - -// HasServiceLevel returns a boolean if a field has been set. -func (o *DinersInfo) HasServiceLevel() bool { - if o != nil && !common.IsNil(o.ServiceLevel) { - return true - } - - return false -} - -// SetServiceLevel gets a reference to the given string and assigns it to the ServiceLevel field. -func (o *DinersInfo) SetServiceLevel(v string) { - o.ServiceLevel = &v -} - -// GetTransactionDescription returns the TransactionDescription field value if set, zero value otherwise. -func (o *DinersInfo) GetTransactionDescription() TransactionDescriptionInfo { - if o == nil || common.IsNil(o.TransactionDescription) { - var ret TransactionDescriptionInfo - return ret - } - return *o.TransactionDescription -} - -// GetTransactionDescriptionOk returns a tuple with the TransactionDescription field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DinersInfo) GetTransactionDescriptionOk() (*TransactionDescriptionInfo, bool) { - if o == nil || common.IsNil(o.TransactionDescription) { - return nil, false - } - return o.TransactionDescription, true -} - -// HasTransactionDescription returns a boolean if a field has been set. -func (o *DinersInfo) HasTransactionDescription() bool { - if o != nil && !common.IsNil(o.TransactionDescription) { - return true - } - - return false -} - -// SetTransactionDescription gets a reference to the given TransactionDescriptionInfo and assigns it to the TransactionDescription field. -func (o *DinersInfo) SetTransactionDescription(v TransactionDescriptionInfo) { - o.TransactionDescription = &v -} - -func (o DinersInfo) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DinersInfo) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !common.IsNil(o.MidNumber) { - toSerialize["midNumber"] = o.MidNumber - } - toSerialize["reuseMidNumber"] = o.ReuseMidNumber - if !common.IsNil(o.ServiceLevel) { - toSerialize["serviceLevel"] = o.ServiceLevel - } - if !common.IsNil(o.TransactionDescription) { - toSerialize["transactionDescription"] = o.TransactionDescription - } - return toSerialize, nil -} - -type NullableDinersInfo struct { - value *DinersInfo - isSet bool -} - -func (v NullableDinersInfo) Get() *DinersInfo { - return v.value -} - -func (v *NullableDinersInfo) Set(val *DinersInfo) { - v.value = val - v.isSet = true -} - -func (v NullableDinersInfo) IsSet() bool { - return v.isSet -} - -func (v *NullableDinersInfo) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDinersInfo(val *DinersInfo) *NullableDinersInfo { - return &NullableDinersInfo{value: val, isSet: true} -} - -func (v NullableDinersInfo) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDinersInfo) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -func (o *DinersInfo) isValidServiceLevel() bool { - var allowedEnumValues = []string{"noContract", "gatewayContract"} - for _, allowed := range allowedEnumValues { - if o.GetServiceLevel() == allowed { - return true - } - } - return false -} diff --git a/src/management/model_jcb_info.go b/src/management/model_jcb_info.go index 2f1c0db63..f76470f2e 100644 --- a/src/management/model_jcb_info.go +++ b/src/management/model_jcb_info.go @@ -19,12 +19,12 @@ var _ common.MappedNullable = &JCBInfo{} // JCBInfo struct for JCBInfo type JCBInfo struct { - // MID (Merchant ID) number. Required for merchants operating in Japan.Format: 14 numeric characters. + // MID (Merchant ID) number. Format: 10 numeric characters. Must be provided for both `noContract` and `gatewayContract` service levels. MidNumber *string `json:"midNumber,omitempty"` - // Indicates whether the JCB Merchant ID is reused from a previously setup JCB payment method. The default value is **false**.For merchants operating in Japan, this field is required and must be set to **true**. + // Indicates whether the JCB Merchant ID is reused from a previously setup JCB payment method. This is applicable for both `noContract` and `gatewayContract` service levels. The default value is `false`. ReuseMidNumber *bool `json:"reuseMidNumber,omitempty"` - // Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB. * **gatewayContract**: JCB receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. - ServiceLevel *string `json:"serviceLevel,omitempty"` + // Specifies the service level (settlement type) of this payment method. Possible values: * **noContract** — Adyen holds the contract with JCB. * **gatewayContract** — JCB receives the settlement and handles disputes. They then pay out to the merchant directly. + ServiceLevel string `json:"serviceLevel"` TransactionDescription *TransactionDescriptionInfo `json:"transactionDescription,omitempty"` } @@ -32,10 +32,11 @@ type JCBInfo struct { // 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 NewJCBInfo() *JCBInfo { +func NewJCBInfo(serviceLevel string) *JCBInfo { this := JCBInfo{} var reuseMidNumber bool = false this.ReuseMidNumber = &reuseMidNumber + this.ServiceLevel = serviceLevel return &this } @@ -113,36 +114,28 @@ func (o *JCBInfo) SetReuseMidNumber(v bool) { o.ReuseMidNumber = &v } -// GetServiceLevel returns the ServiceLevel field value if set, zero value otherwise. +// GetServiceLevel returns the ServiceLevel field value func (o *JCBInfo) GetServiceLevel() string { - if o == nil || common.IsNil(o.ServiceLevel) { + if o == nil { var ret string return ret } - return *o.ServiceLevel + + return o.ServiceLevel } -// GetServiceLevelOk returns a tuple with the ServiceLevel field value if set, nil otherwise +// GetServiceLevelOk returns a tuple with the ServiceLevel field value // and a boolean to check if the value has been set. func (o *JCBInfo) GetServiceLevelOk() (*string, bool) { - if o == nil || common.IsNil(o.ServiceLevel) { + if o == nil { return nil, false } - return o.ServiceLevel, true -} - -// HasServiceLevel returns a boolean if a field has been set. -func (o *JCBInfo) HasServiceLevel() bool { - if o != nil && !common.IsNil(o.ServiceLevel) { - return true - } - - return false + return &o.ServiceLevel, true } -// SetServiceLevel gets a reference to the given string and assigns it to the ServiceLevel field. +// SetServiceLevel sets field value func (o *JCBInfo) SetServiceLevel(v string) { - o.ServiceLevel = &v + o.ServiceLevel = v } // GetTransactionDescription returns the TransactionDescription field value if set, zero value otherwise. @@ -193,9 +186,7 @@ func (o JCBInfo) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.ReuseMidNumber) { toSerialize["reuseMidNumber"] = o.ReuseMidNumber } - if !common.IsNil(o.ServiceLevel) { - toSerialize["serviceLevel"] = o.ServiceLevel - } + toSerialize["serviceLevel"] = o.ServiceLevel if !common.IsNil(o.TransactionDescription) { toSerialize["transactionDescription"] = o.TransactionDescription } diff --git a/src/management/model_payment_method.go b/src/management/model_payment_method.go index d95f933fd..fc81bd096 100644 --- a/src/management/model_payment_method.go +++ b/src/management/model_payment_method.go @@ -37,7 +37,7 @@ type PaymentMethod struct { Currencies []string `json:"currencies,omitempty"` // The list of custom routing flags to route payment to the intended acquirer. CustomRoutingFlags []string `json:"customRoutingFlags,omitempty"` - Diners *DinersInfo `json:"diners,omitempty"` + Diners *GenericPmWithTdiInfo `json:"diners,omitempty"` Discover *GenericPmWithTdiInfo `json:"discover,omitempty"` EftposAustralia *GenericPmWithTdiInfo `json:"eftpos_australia,omitempty"` // Indicates whether the payment method is enabled (**true**) or disabled (**false**). @@ -515,9 +515,9 @@ func (o *PaymentMethod) SetCustomRoutingFlags(v []string) { } // GetDiners returns the Diners field value if set, zero value otherwise. -func (o *PaymentMethod) GetDiners() DinersInfo { +func (o *PaymentMethod) GetDiners() GenericPmWithTdiInfo { if o == nil || common.IsNil(o.Diners) { - var ret DinersInfo + var ret GenericPmWithTdiInfo return ret } return *o.Diners @@ -525,7 +525,7 @@ func (o *PaymentMethod) GetDiners() DinersInfo { // GetDinersOk returns a tuple with the Diners field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PaymentMethod) GetDinersOk() (*DinersInfo, bool) { +func (o *PaymentMethod) GetDinersOk() (*GenericPmWithTdiInfo, bool) { if o == nil || common.IsNil(o.Diners) { return nil, false } @@ -541,8 +541,8 @@ func (o *PaymentMethod) HasDiners() bool { return false } -// SetDiners gets a reference to the given DinersInfo and assigns it to the Diners field. -func (o *PaymentMethod) SetDiners(v DinersInfo) { +// SetDiners gets a reference to the given GenericPmWithTdiInfo and assigns it to the Diners field. +func (o *PaymentMethod) SetDiners(v GenericPmWithTdiInfo) { o.Diners = &v } diff --git a/src/management/model_payment_method_setup_info.go b/src/management/model_payment_method_setup_info.go index 8889fae76..202000675 100644 --- a/src/management/model_payment_method_setup_info.go +++ b/src/management/model_payment_method_setup_info.go @@ -35,7 +35,7 @@ type PaymentMethodSetupInfo struct { Currencies []string `json:"currencies,omitempty"` // The list of custom routing flags to route payment to the intended acquirer. CustomRoutingFlags []string `json:"customRoutingFlags,omitempty"` - Diners *DinersInfo `json:"diners,omitempty"` + Diners *GenericPmWithTdiInfo `json:"diners,omitempty"` Discover *GenericPmWithTdiInfo `json:"discover,omitempty"` EftposAustralia *GenericPmWithTdiInfo `json:"eftpos_australia,omitempty"` GiroPay *GiroPayInfo `json:"giroPay,omitempty"` @@ -475,9 +475,9 @@ func (o *PaymentMethodSetupInfo) SetCustomRoutingFlags(v []string) { } // GetDiners returns the Diners field value if set, zero value otherwise. -func (o *PaymentMethodSetupInfo) GetDiners() DinersInfo { +func (o *PaymentMethodSetupInfo) GetDiners() GenericPmWithTdiInfo { if o == nil || common.IsNil(o.Diners) { - var ret DinersInfo + var ret GenericPmWithTdiInfo return ret } return *o.Diners @@ -485,7 +485,7 @@ func (o *PaymentMethodSetupInfo) GetDiners() DinersInfo { // GetDinersOk returns a tuple with the Diners field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PaymentMethodSetupInfo) GetDinersOk() (*DinersInfo, bool) { +func (o *PaymentMethodSetupInfo) GetDinersOk() (*GenericPmWithTdiInfo, bool) { if o == nil || common.IsNil(o.Diners) { return nil, false } @@ -501,8 +501,8 @@ func (o *PaymentMethodSetupInfo) HasDiners() bool { return false } -// SetDiners gets a reference to the given DinersInfo and assigns it to the Diners field. -func (o *PaymentMethodSetupInfo) SetDiners(v DinersInfo) { +// SetDiners gets a reference to the given GenericPmWithTdiInfo and assigns it to the Diners field. +func (o *PaymentMethodSetupInfo) SetDiners(v GenericPmWithTdiInfo) { o.Diners = &v } @@ -1644,7 +1644,7 @@ func (o *PaymentMethodSetupInfo) isValidShopperInteraction() bool { return false } func (o *PaymentMethodSetupInfo) isValidType() bool { - var allowedEnumValues = []string{"accel", "affirm", "afterpaytouch", "alelo", "alipay", "alipay_hk", "amex", "applepay", "banese_card", "banese_card_credit", "banese_card_debit", "banese_card_prepaid", "bcmc", "blik", "cartebancaire", "clearpay", "clicktopay", "credtodos", "credtodos_private_credit", "credtodos_private_debit", "cup", "diners", "directdebit_GB", "discover", "ebanking_FI", "eftpos_australia", "elo", "elocredit", "elodebit", "girocard", "googlepay", "hiper", "hipercard", "ideal", "interac_card", "jcb", "klarna", "klarna_account", "klarna_paynow", "maestro", "mbway", "mc", "mcdebit", "mealVoucher_FR", "mobilepay", "multibanco", "nyce", "onlineBanking_PL", "paybybank", "payme", "payme_pos", "paynow", "paynow_pos", "paypal", "payshop", "pulse", "sodexo", "star", "swish", "ticket", "todo_giftcard", "trustly", "twint", "twint_pos", "up_brazil_credit", "vale_refeicao", "vale_refeicao_prepaid", "vipps", "visa", "visadebit", "vpay", "wechatpay", "wechatpay_pos"} + var allowedEnumValues = []string{"accel", "afterpaytouch", "alelo", "alipay", "alipay_hk", "amex", "applepay", "banese_card", "banese_card_credit", "banese_card_debit", "banese_card_prepaid", "bcmc", "blik", "cartebancaire", "clearpay", "clicktopay", "credtodos", "credtodos_private_credit", "credtodos_private_debit", "cup", "diners", "directdebit_GB", "discover", "ebanking_FI", "eftpos_australia", "elo", "elocredit", "elodebit", "girocard", "googlepay", "hiper", "hipercard", "ideal", "interac_card", "jcb", "klarna", "klarna_account", "klarna_paynow", "maestro", "mbway", "mc", "mcdebit", "mealVoucher_FR", "mobilepay", "multibanco", "nyce", "onlineBanking_PL", "paybybank", "payme", "payme_pos", "paynow", "paynow_pos", "paypal", "payshop", "pulse", "sodexo", "star", "swish", "ticket", "todo_giftcard", "trustly", "twint", "twint_pos", "up_brazil_credit", "vale_refeicao", "vale_refeicao_prepaid", "vipps", "visa", "visadebit", "vpay", "wechatpay", "wechatpay_pos"} for _, allowed := range allowedEnumValues { if o.GetType() == allowed { return true diff --git a/tests/dispute_webhook_handler_test.go b/tests/dispute_webhook_handler_test.go deleted file mode 100644 index 4ce691ed9..000000000 --- a/tests/dispute_webhook_handler_test.go +++ /dev/null @@ -1,39 +0,0 @@ -package tests - -import ( - "github.com/adyen/adyen-go-api-library/v15/src/disputewebhook" - "testing" - - "github.com/stretchr/testify/assert" -) - -func Test_Dispute_Webhook_HandleRequest(t *testing.T) { - t.Run("on balancePlatform.dispute.created", func(t *testing.T) { - notificationJson := `{ - "type": "balancePlatform.dispute.created", - "data": { - "balancePlatform": "YOUR_BALANCE_PLATFORM", - "arn": "1 123456 2 123 4567890123456 1 1 1 1", - "description": "Dispute request has been created", - "disputedAmount": { - "currency": "USD", - "value": 1000 - }, - "id": "DS0001", - "status": "Open", - "statusDetail": "n/a", - "transactionId": "n/a" - } - }` - - webhook, _ := disputewebhook.HandleDisputeNotificationRequest(notificationJson) - - assert.Equal(t, "balancePlatform.dispute.created", webhook.Type) - // Environment missing!? - // assert.Equal(t, "test", webhook.Environment) - // CreatedAt missing!? - // assert.Equal(t, 2022, webhook.CreatedAt.Year()) - assert.Equal(t, "DS0001", webhook.Data.GetId()) - assert.Equal(t, int64(1000), webhook.Data.DisputedAmount.GetValue()) - }) -} diff --git a/tests/management_webhook_handler_test.go b/tests/management_webhooks_handler_test.go similarity index 100% rename from tests/management_webhook_handler_test.go rename to tests/management_webhooks_handler_test.go