diff --git a/src/checkout/model_create_checkout_session_request.go b/src/checkout/model_create_checkout_session_request.go index c8f991014..e1319c093 100644 --- a/src/checkout/model_create_checkout_session_request.go +++ b/src/checkout/model_create_checkout_session_request.go @@ -115,7 +115,7 @@ type CreateCheckoutSessionRequest struct { StorePaymentMethodMode *string `json:"storePaymentMethodMode,omitempty"` // The shopper's telephone number. TelephoneNumber *string `json:"telephoneNumber,omitempty"` - // Sets a custom theme for the Adyen-hosted payment page. The value can be any of the **Theme ID** values from your Customer Area. + // Sets a custom theme for [Hosted Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). The value can be any of the **Theme ID** values from your Customer Area. ThemeId *string `json:"themeId,omitempty"` // If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. // Deprecated diff --git a/src/checkout/model_create_checkout_session_response.go b/src/checkout/model_create_checkout_session_response.go index deddba628..a3c40a2f2 100644 --- a/src/checkout/model_create_checkout_session_response.go +++ b/src/checkout/model_create_checkout_session_response.go @@ -119,7 +119,7 @@ type CreateCheckoutSessionResponse struct { StorePaymentMethodMode *string `json:"storePaymentMethodMode,omitempty"` // The shopper's telephone number. TelephoneNumber *string `json:"telephoneNumber,omitempty"` - // Sets a custom theme for the Adyen-hosted payment page. The value can be any of the **Theme ID** values from your Customer Area. + // Sets a custom theme for [Hosted Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). The value can be any of the **Theme ID** values from your Customer Area. ThemeId *string `json:"themeId,omitempty"` // If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. // Deprecated diff --git a/src/checkout/model_payment_refund_request.go b/src/checkout/model_payment_refund_request.go index b46c07486..c503e3f02 100644 --- a/src/checkout/model_payment_refund_request.go +++ b/src/checkout/model_payment_refund_request.go @@ -31,6 +31,8 @@ type PaymentRefundRequest struct { Reference *string `json:"reference,omitempty"` // An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information). Splits []Split `json:"splits,omitempty"` + // The online store or [physical store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) that is processing the refund. This must be the same as the store name configured in your Customer Area. Otherwise, you get an error and the refund fails. + Store *string `json:"store,omitempty"` } // NewPaymentRefundRequest instantiates a new PaymentRefundRequest object @@ -260,6 +262,38 @@ func (o *PaymentRefundRequest) SetSplits(v []Split) { o.Splits = v } +// GetStore returns the Store field value if set, zero value otherwise. +func (o *PaymentRefundRequest) GetStore() string { + if o == nil || common.IsNil(o.Store) { + var ret string + return ret + } + return *o.Store +} + +// GetStoreOk returns a tuple with the Store field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaymentRefundRequest) GetStoreOk() (*string, bool) { + if o == nil || common.IsNil(o.Store) { + return nil, false + } + return o.Store, true +} + +// HasStore returns a boolean if a field has been set. +func (o *PaymentRefundRequest) HasStore() bool { + if o != nil && !common.IsNil(o.Store) { + return true + } + + return false +} + +// SetStore gets a reference to the given string and assigns it to the Store field. +func (o *PaymentRefundRequest) SetStore(v string) { + o.Store = &v +} + func (o PaymentRefundRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -287,6 +321,9 @@ func (o PaymentRefundRequest) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.Splits) { toSerialize["splits"] = o.Splits } + if !common.IsNil(o.Store) { + toSerialize["store"] = o.Store + } return toSerialize, nil } diff --git a/src/checkout/model_payment_refund_response.go b/src/checkout/model_payment_refund_response.go index d9fac716d..3973f14b8 100644 --- a/src/checkout/model_payment_refund_response.go +++ b/src/checkout/model_payment_refund_response.go @@ -36,6 +36,8 @@ type PaymentRefundResponse struct { Splits []Split `json:"splits,omitempty"` // The status of your request. This will always have the value **received**. Status string `json:"status"` + // The online store or [physical store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) that is processing the refund. This must be the same as the store name configured in your Customer Area. Otherwise, you get an error and the refund fails. + Store *string `json:"store,omitempty"` } // NewPaymentRefundResponse instantiates a new PaymentRefundResponse object @@ -308,6 +310,38 @@ func (o *PaymentRefundResponse) SetStatus(v string) { o.Status = v } +// GetStore returns the Store field value if set, zero value otherwise. +func (o *PaymentRefundResponse) GetStore() string { + if o == nil || common.IsNil(o.Store) { + var ret string + return ret + } + return *o.Store +} + +// GetStoreOk returns a tuple with the Store field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaymentRefundResponse) GetStoreOk() (*string, bool) { + if o == nil || common.IsNil(o.Store) { + return nil, false + } + return o.Store, true +} + +// HasStore returns a boolean if a field has been set. +func (o *PaymentRefundResponse) HasStore() bool { + if o != nil && !common.IsNil(o.Store) { + return true + } + + return false +} + +// SetStore gets a reference to the given string and assigns it to the Store field. +func (o *PaymentRefundResponse) SetStore(v string) { + o.Store = &v +} + func (o PaymentRefundResponse) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -335,6 +369,9 @@ func (o PaymentRefundResponse) ToMap() (map[string]interface{}, error) { toSerialize["splits"] = o.Splits } toSerialize["status"] = o.Status + if !common.IsNil(o.Store) { + toSerialize["store"] = o.Store + } return toSerialize, nil } diff --git a/src/checkout/model_stored_payment_method.go b/src/checkout/model_stored_payment_method.go index 1b99dd393..dc2b705c8 100644 --- a/src/checkout/model_stored_payment_method.go +++ b/src/checkout/model_stored_payment_method.go @@ -19,6 +19,10 @@ var _ common.MappedNullable = &StoredPaymentMethod{} // StoredPaymentMethod struct for StoredPaymentMethod type StoredPaymentMethod struct { + // The bank account number (without separators). + BankAccountNumber *string `json:"bankAccountNumber,omitempty"` + // The location id of the bank. The field value is `nil` in most cases. + BankLocationId *string `json:"bankLocationId,omitempty"` // The brand of the card. Brand *string `json:"brand,omitempty"` // The month the card expires. @@ -31,6 +35,8 @@ type StoredPaymentMethod struct { Iban *string `json:"iban,omitempty"` // A unique identifier of this stored payment method. Id *string `json:"id,omitempty"` + // The shopper’s issuer account label + Label *string `json:"label,omitempty"` // The last four digits of the PAN. LastFour *string `json:"lastFour,omitempty"` // The display name of the stored payment method. @@ -66,6 +72,70 @@ func NewStoredPaymentMethodWithDefaults() *StoredPaymentMethod { return &this } +// GetBankAccountNumber returns the BankAccountNumber field value if set, zero value otherwise. +func (o *StoredPaymentMethod) 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 *StoredPaymentMethod) 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 *StoredPaymentMethod) 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 *StoredPaymentMethod) SetBankAccountNumber(v string) { + o.BankAccountNumber = &v +} + +// GetBankLocationId returns the BankLocationId field value if set, zero value otherwise. +func (o *StoredPaymentMethod) 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 *StoredPaymentMethod) 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 *StoredPaymentMethod) 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 *StoredPaymentMethod) SetBankLocationId(v string) { + o.BankLocationId = &v +} + // GetBrand returns the Brand field value if set, zero value otherwise. func (o *StoredPaymentMethod) GetBrand() string { if o == nil || common.IsNil(o.Brand) { @@ -258,6 +328,38 @@ func (o *StoredPaymentMethod) SetId(v string) { o.Id = &v } +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *StoredPaymentMethod) GetLabel() string { + if o == nil || common.IsNil(o.Label) { + var ret string + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StoredPaymentMethod) GetLabelOk() (*string, bool) { + if o == nil || common.IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *StoredPaymentMethod) HasLabel() bool { + if o != nil && !common.IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given string and assigns it to the Label field. +func (o *StoredPaymentMethod) SetLabel(v string) { + o.Label = &v +} + // GetLastFour returns the LastFour field value if set, zero value otherwise. func (o *StoredPaymentMethod) GetLastFour() string { if o == nil || common.IsNil(o.LastFour) { @@ -524,6 +626,12 @@ func (o StoredPaymentMethod) MarshalJSON() ([]byte, error) { func (o StoredPaymentMethod) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !common.IsNil(o.BankAccountNumber) { + toSerialize["bankAccountNumber"] = o.BankAccountNumber + } + if !common.IsNil(o.BankLocationId) { + toSerialize["bankLocationId"] = o.BankLocationId + } if !common.IsNil(o.Brand) { toSerialize["brand"] = o.Brand } @@ -542,6 +650,9 @@ func (o StoredPaymentMethod) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.Id) { toSerialize["id"] = o.Id } + if !common.IsNil(o.Label) { + toSerialize["label"] = o.Label + } if !common.IsNil(o.LastFour) { toSerialize["lastFour"] = o.LastFour } diff --git a/src/legalentity/api_legal_entities.go b/src/legalentity/api_legal_entities.go index df48c9006..31eb9248b 100644 --- a/src/legalentity/api_legal_entities.go +++ b/src/legalentity/api_legal_entities.go @@ -65,6 +65,51 @@ func (a *LegalEntitiesApi) CheckLegalEntitysVerificationErrors(ctx context.Conte return *res, httpRes, err } +// All parameters accepted by LegalEntitiesApi.ConfirmDataReview +type LegalEntitiesApiConfirmDataReviewInput struct { + id string +} + +/* +Prepare a request for ConfirmDataReview +@param id The unique identifier of the legal entity. +@return LegalEntitiesApiConfirmDataReviewInput +*/ +func (a *LegalEntitiesApi) ConfirmDataReviewInput(id string) LegalEntitiesApiConfirmDataReviewInput { + return LegalEntitiesApiConfirmDataReviewInput{ + id: id, + } +} + +/* +ConfirmDataReview Confirm data review + +Confirms that your user has reviewed the data for the legal entity specified in the path. Call this endpoint to inform Adyen that your user reviewed and verified that the data is up-to-date. The endpoint returns the timestamp of when Adyen received the request. + +@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). +@param r LegalEntitiesApiConfirmDataReviewInput - Request parameters, see ConfirmDataReviewInput +@return DataReviewConfirmationResponse, *http.Response, error +*/ +func (a *LegalEntitiesApi) ConfirmDataReview(ctx context.Context, r LegalEntitiesApiConfirmDataReviewInput) (DataReviewConfirmationResponse, *http.Response, error) { + res := &DataReviewConfirmationResponse{} + path := "/legalEntities/{id}/confirmDataReview" + path = strings.Replace(path, "{"+"id"+"}", url.PathEscape(common.ParameterValueToString(r.id, "id")), -1) + queryParams := url.Values{} + headerParams := make(map[string]string) + httpRes, err := common.SendAPIRequest( + ctx, + a.Client, + nil, + res, + http.MethodPost, + a.BasePath()+path, + queryParams, + headerParams, + ) + + return *res, httpRes, err +} + // All parameters accepted by LegalEntitiesApi.CreateLegalEntity type LegalEntitiesApiCreateLegalEntityInput struct { xRequestedVerificationCode *string diff --git a/src/legalentity/model_business_line.go b/src/legalentity/model_business_line.go index 4b51b4d24..30694f387 100644 --- a/src/legalentity/model_business_line.go +++ b/src/legalentity/model_business_line.go @@ -32,7 +32,7 @@ type BusinessLine struct { Problems []CapabilityProblem `json:"problems,omitempty"` // A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. SalesChannels []string `json:"salesChannels,omitempty"` - // The service for which you are creating the business line. Possible values: **paymentProcessing**, **issuing**, **banking** + // The service for which you are creating the business line. Possible values: * **paymentProcessing** * **banking** Service string `json:"service"` SourceOfFunds *SourceOfFunds `json:"sourceOfFunds,omitempty"` // List of website URLs where your user's goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. @@ -433,7 +433,7 @@ func (o *BusinessLine) isValidCapability() bool { return false } func (o *BusinessLine) isValidService() bool { - var allowedEnumValues = []string{"paymentProcessing", "issuing", "banking"} + var allowedEnumValues = []string{"paymentProcessing", "banking"} for _, allowed := range allowedEnumValues { if o.GetService() == allowed { return true diff --git a/src/legalentity/model_business_line_info.go b/src/legalentity/model_business_line_info.go index ea55d149e..3c90355ba 100644 --- a/src/legalentity/model_business_line_info.go +++ b/src/legalentity/model_business_line_info.go @@ -28,7 +28,7 @@ type BusinessLineInfo struct { LegalEntityId string `json:"legalEntityId"` // A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. SalesChannels []string `json:"salesChannels,omitempty"` - // The service for which you are creating the business line. Possible values: **paymentProcessing**, **issuing**, **banking** + // The service for which you are creating the business line. Possible values: * **paymentProcessing** * **banking** Service string `json:"service"` SourceOfFunds *SourceOfFunds `json:"sourceOfFunds,omitempty"` // List of website URLs where your user's goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. @@ -368,7 +368,7 @@ func (o *BusinessLineInfo) isValidCapability() bool { return false } func (o *BusinessLineInfo) isValidService() bool { - var allowedEnumValues = []string{"paymentProcessing", "issuing", "banking"} + var allowedEnumValues = []string{"paymentProcessing", "banking"} for _, allowed := range allowedEnumValues { if o.GetService() == allowed { return true diff --git a/src/legalentity/model_business_line_info_update.go b/src/legalentity/model_business_line_info_update.go index 790c3c3e7..fb4b5f487 100644 --- a/src/legalentity/model_business_line_info_update.go +++ b/src/legalentity/model_business_line_info_update.go @@ -28,7 +28,7 @@ type BusinessLineInfoUpdate struct { LegalEntityId *string `json:"legalEntityId,omitempty"` // A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. SalesChannels []string `json:"salesChannels,omitempty"` - // The service for which you are creating the business line. Possible values: **paymentProcessing**, **issuing**, **banking** + // The service for which you are creating the business line. Possible values: * **paymentProcessing** * **banking** Service *string `json:"service,omitempty"` SourceOfFunds *SourceOfFunds `json:"sourceOfFunds,omitempty"` // List of website URLs where your user's goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. @@ -395,7 +395,7 @@ func (o *BusinessLineInfoUpdate) isValidCapability() bool { return false } func (o *BusinessLineInfoUpdate) isValidService() bool { - var allowedEnumValues = []string{"paymentProcessing", "issuing", "banking"} + var allowedEnumValues = []string{"paymentProcessing", "banking"} for _, allowed := range allowedEnumValues { if o.GetService() == allowed { return true diff --git a/src/legalentity/model_data_review_confirmation_response.go b/src/legalentity/model_data_review_confirmation_response.go new file mode 100644 index 000000000..35df9a1ba --- /dev/null +++ b/src/legalentity/model_data_review_confirmation_response.go @@ -0,0 +1,125 @@ +/* +Legal Entity Management API + +API version: 3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package legalentity + +import ( + "encoding/json" + + "github.com/adyen/adyen-go-api-library/v8/src/common" +) + +// checks if the DataReviewConfirmationResponse type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &DataReviewConfirmationResponse{} + +// DataReviewConfirmationResponse struct for DataReviewConfirmationResponse +type DataReviewConfirmationResponse struct { + // Date when data review was confirmed. + DataReviewedAt *string `json:"dataReviewedAt,omitempty"` +} + +// NewDataReviewConfirmationResponse instantiates a new DataReviewConfirmationResponse 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 NewDataReviewConfirmationResponse() *DataReviewConfirmationResponse { + this := DataReviewConfirmationResponse{} + return &this +} + +// NewDataReviewConfirmationResponseWithDefaults instantiates a new DataReviewConfirmationResponse 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 NewDataReviewConfirmationResponseWithDefaults() *DataReviewConfirmationResponse { + this := DataReviewConfirmationResponse{} + return &this +} + +// GetDataReviewedAt returns the DataReviewedAt field value if set, zero value otherwise. +func (o *DataReviewConfirmationResponse) GetDataReviewedAt() string { + if o == nil || common.IsNil(o.DataReviewedAt) { + var ret string + return ret + } + return *o.DataReviewedAt +} + +// GetDataReviewedAtOk returns a tuple with the DataReviewedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DataReviewConfirmationResponse) GetDataReviewedAtOk() (*string, bool) { + if o == nil || common.IsNil(o.DataReviewedAt) { + return nil, false + } + return o.DataReviewedAt, true +} + +// HasDataReviewedAt returns a boolean if a field has been set. +func (o *DataReviewConfirmationResponse) HasDataReviewedAt() bool { + if o != nil && !common.IsNil(o.DataReviewedAt) { + return true + } + + return false +} + +// SetDataReviewedAt gets a reference to the given string and assigns it to the DataReviewedAt field. +func (o *DataReviewConfirmationResponse) SetDataReviewedAt(v string) { + o.DataReviewedAt = &v +} + +func (o DataReviewConfirmationResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DataReviewConfirmationResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !common.IsNil(o.DataReviewedAt) { + toSerialize["dataReviewedAt"] = o.DataReviewedAt + } + return toSerialize, nil +} + +type NullableDataReviewConfirmationResponse struct { + value *DataReviewConfirmationResponse + isSet bool +} + +func (v NullableDataReviewConfirmationResponse) Get() *DataReviewConfirmationResponse { + return v.value +} + +func (v *NullableDataReviewConfirmationResponse) Set(val *DataReviewConfirmationResponse) { + v.value = val + v.isSet = true +} + +func (v NullableDataReviewConfirmationResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableDataReviewConfirmationResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDataReviewConfirmationResponse(val *DataReviewConfirmationResponse) *NullableDataReviewConfirmationResponse { + return &NullableDataReviewConfirmationResponse{value: val, isSet: true} +} + +func (v NullableDataReviewConfirmationResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDataReviewConfirmationResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/src/legalentity/model_sole_proprietorship.go b/src/legalentity/model_sole_proprietorship.go index 071681ae7..2e8525552 100644 --- a/src/legalentity/model_sole_proprietorship.go +++ b/src/legalentity/model_sole_proprietorship.go @@ -23,6 +23,8 @@ type SoleProprietorship struct { CountryOfGoverningLaw string `json:"countryOfGoverningLaw"` // The date when the legal arrangement was incorporated in YYYY-MM-DD format. DateOfIncorporation *string `json:"dateOfIncorporation,omitempty"` + // Short description about the Legal Arrangement. + Description *string `json:"description,omitempty"` // The registered name, if different from the `name`. DoingBusinessAs *string `json:"doingBusinessAs,omitempty"` // The legal name. @@ -115,6 +117,38 @@ func (o *SoleProprietorship) SetDateOfIncorporation(v string) { o.DateOfIncorporation = &v } +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *SoleProprietorship) 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 *SoleProprietorship) 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 *SoleProprietorship) 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 *SoleProprietorship) SetDescription(v string) { + o.Description = &v +} + // GetDoingBusinessAs returns the DoingBusinessAs field value if set, zero value otherwise. func (o *SoleProprietorship) GetDoingBusinessAs() string { if o == nil || common.IsNil(o.DoingBusinessAs) { @@ -369,6 +403,9 @@ func (o SoleProprietorship) 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 } diff --git a/src/legalentity/model_transfer_instrument_reference.go b/src/legalentity/model_transfer_instrument_reference.go index 06156a2bf..289dba8dd 100644 --- a/src/legalentity/model_transfer_instrument_reference.go +++ b/src/legalentity/model_transfer_instrument_reference.go @@ -23,7 +23,7 @@ type TransferInstrumentReference struct { AccountIdentifier string `json:"accountIdentifier"` // The unique identifier of the resource. Id string `json:"id"` - // Four last digits of the bank account number. + // Four last digits of the bank account number. If the transfer instrument is created using [instant bank account verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding), and it is a virtual bank account, these digits may be different from the last four digits of the masked account number. RealLastFour *string `json:"realLastFour,omitempty"` // Identifies if the bank account was created through [instant bank verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding). TrustedSource *bool `json:"trustedSource,omitempty"` diff --git a/src/legalentity/model_trust.go b/src/legalentity/model_trust.go index 666c78db0..ffc3ad79c 100644 --- a/src/legalentity/model_trust.go +++ b/src/legalentity/model_trust.go @@ -23,6 +23,8 @@ 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"` + // Short description about the trust. + Description *string `json:"description,omitempty"` // The registered name, if different from the `name`. DoingBusinessAs *string `json:"doingBusinessAs,omitempty"` // The legal name. @@ -120,6 +122,38 @@ 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) { @@ -430,6 +464,9 @@ 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 } diff --git a/src/legalentity/model_unincorporated_partnership.go b/src/legalentity/model_unincorporated_partnership.go index 5c39ecc5a..751d12cd4 100644 --- a/src/legalentity/model_unincorporated_partnership.go +++ b/src/legalentity/model_unincorporated_partnership.go @@ -23,6 +23,8 @@ type UnincorporatedPartnership struct { CountryOfGoverningLaw string `json:"countryOfGoverningLaw"` // The date when the legal arrangement was incorporated in YYYY-MM-DD format. DateOfIncorporation *string `json:"dateOfIncorporation,omitempty"` + // Short description about the Legal Arrangement. + Description *string `json:"description,omitempty"` // The registered name, if different from the `name`. DoingBusinessAs *string `json:"doingBusinessAs,omitempty"` // The legal name. @@ -118,6 +120,38 @@ func (o *UnincorporatedPartnership) SetDateOfIncorporation(v string) { o.DateOfIncorporation = &v } +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *UnincorporatedPartnership) 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 *UnincorporatedPartnership) 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 *UnincorporatedPartnership) 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 *UnincorporatedPartnership) SetDescription(v string) { + o.Description = &v +} + // GetDoingBusinessAs returns the DoingBusinessAs field value if set, zero value otherwise. func (o *UnincorporatedPartnership) GetDoingBusinessAs() string { if o == nil || common.IsNil(o.DoingBusinessAs) { @@ -396,6 +430,9 @@ func (o UnincorporatedPartnership) 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 } diff --git a/src/legalentity/model_verification_deadline.go b/src/legalentity/model_verification_deadline.go index 35146c696..0a065aa43 100644 --- a/src/legalentity/model_verification_deadline.go +++ b/src/legalentity/model_verification_deadline.go @@ -20,7 +20,7 @@ var _ common.MappedNullable = &VerificationDeadline{} // VerificationDeadline struct for VerificationDeadline type VerificationDeadline struct { - // The names of the capabilities to be disallowed. + // The list of capabilities that will be disallowed if information is not reviewed by the time of the deadline Capabilities []string `json:"capabilities"` // The unique identifiers of the bank account(s) that the deadline applies to EntityIds []string `json:"entityIds,omitempty"` diff --git a/src/management/model_configuration.go b/src/management/model_configuration.go index b95117afb..6afb54a33 100644 --- a/src/management/model_configuration.go +++ b/src/management/model_configuration.go @@ -21,6 +21,8 @@ var _ common.MappedNullable = &Configuration{} type Configuration struct { // Payment method, like **eftpos_australia** or **mc**. See the [possible values](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). Brand string `json:"brand"` + // Countries, to filter different surcharge amounts for domestic or international cards. + Country []string `json:"country,omitempty"` // Currency, and surcharge percentage or amount. Currencies []Currency `json:"currencies"` // Funding source. Possible values: * **Credit** * **Debit** @@ -70,6 +72,38 @@ func (o *Configuration) SetBrand(v string) { o.Brand = v } +// GetCountry returns the Country field value if set, zero value otherwise. +func (o *Configuration) GetCountry() []string { + if o == nil || common.IsNil(o.Country) { + var ret []string + return ret + } + return o.Country +} + +// GetCountryOk returns a tuple with the Country field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Configuration) GetCountryOk() ([]string, bool) { + if o == nil || common.IsNil(o.Country) { + return nil, false + } + return o.Country, true +} + +// HasCountry returns a boolean if a field has been set. +func (o *Configuration) HasCountry() bool { + if o != nil && !common.IsNil(o.Country) { + return true + } + + return false +} + +// SetCountry gets a reference to the given []string and assigns it to the Country field. +func (o *Configuration) SetCountry(v []string) { + o.Country = v +} + // GetCurrencies returns the Currencies field value func (o *Configuration) GetCurrencies() []Currency { if o == nil { @@ -137,6 +171,9 @@ func (o Configuration) MarshalJSON() ([]byte, error) { func (o Configuration) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["brand"] = o.Brand + if !common.IsNil(o.Country) { + toSerialize["country"] = o.Country + } toSerialize["currencies"] = o.Currencies if !common.IsNil(o.Sources) { toSerialize["sources"] = o.Sources diff --git a/src/management/model_payment_method.go b/src/management/model_payment_method.go index 84d498a55..034d49774 100644 --- a/src/management/model_payment_method.go +++ b/src/management/model_payment_method.go @@ -22,7 +22,6 @@ type PaymentMethod struct { AfterpayTouch *AfterpayTouchInfo `json:"afterpayTouch,omitempty"` // Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after screening your merchant account. Allowed *bool `json:"allowed,omitempty"` - Amex *AmexInfo `json:"amex,omitempty"` ApplePay *ApplePayInfo `json:"applePay,omitempty"` Bcmc *BcmcInfo `json:"bcmc,omitempty"` // The unique identifier of the business line. @@ -153,38 +152,6 @@ func (o *PaymentMethod) SetAllowed(v bool) { o.Allowed = &v } -// GetAmex returns the Amex field value if set, zero value otherwise. -func (o *PaymentMethod) GetAmex() AmexInfo { - if o == nil || common.IsNil(o.Amex) { - var ret AmexInfo - return ret - } - return *o.Amex -} - -// GetAmexOk returns a tuple with the Amex field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PaymentMethod) GetAmexOk() (*AmexInfo, bool) { - if o == nil || common.IsNil(o.Amex) { - return nil, false - } - return o.Amex, true -} - -// HasAmex returns a boolean if a field has been set. -func (o *PaymentMethod) HasAmex() bool { - if o != nil && !common.IsNil(o.Amex) { - return true - } - - return false -} - -// SetAmex gets a reference to the given AmexInfo and assigns it to the Amex field. -func (o *PaymentMethod) SetAmex(v AmexInfo) { - o.Amex = &v -} - // GetApplePay returns the ApplePay field value if set, zero value otherwise. func (o *PaymentMethod) GetApplePay() ApplePayInfo { if o == nil || common.IsNil(o.ApplePay) { @@ -1313,9 +1280,6 @@ func (o PaymentMethod) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.Allowed) { toSerialize["allowed"] = o.Allowed } - if !common.IsNil(o.Amex) { - toSerialize["amex"] = o.Amex - } if !common.IsNil(o.ApplePay) { toSerialize["applePay"] = o.ApplePay } diff --git a/src/management/model_payment_method_setup_info.go b/src/management/model_payment_method_setup_info.go index 247bcffc3..a5ed31fb0 100644 --- a/src/management/model_payment_method_setup_info.go +++ b/src/management/model_payment_method_setup_info.go @@ -20,7 +20,6 @@ var _ common.MappedNullable = &PaymentMethodSetupInfo{} // PaymentMethodSetupInfo struct for PaymentMethodSetupInfo type PaymentMethodSetupInfo struct { AfterpayTouch *AfterpayTouchInfo `json:"afterpayTouch,omitempty"` - Amex *AmexInfo `json:"amex,omitempty"` ApplePay *ApplePayInfo `json:"applePay,omitempty"` Bcmc *BcmcInfo `json:"bcmc,omitempty"` // The unique identifier of the business line. @@ -113,38 +112,6 @@ func (o *PaymentMethodSetupInfo) SetAfterpayTouch(v AfterpayTouchInfo) { o.AfterpayTouch = &v } -// GetAmex returns the Amex field value if set, zero value otherwise. -func (o *PaymentMethodSetupInfo) GetAmex() AmexInfo { - if o == nil || common.IsNil(o.Amex) { - var ret AmexInfo - return ret - } - return *o.Amex -} - -// GetAmexOk returns a tuple with the Amex field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PaymentMethodSetupInfo) GetAmexOk() (*AmexInfo, bool) { - if o == nil || common.IsNil(o.Amex) { - return nil, false - } - return o.Amex, true -} - -// HasAmex returns a boolean if a field has been set. -func (o *PaymentMethodSetupInfo) HasAmex() bool { - if o != nil && !common.IsNil(o.Amex) { - return true - } - - return false -} - -// SetAmex gets a reference to the given AmexInfo and assigns it to the Amex field. -func (o *PaymentMethodSetupInfo) SetAmex(v AmexInfo) { - o.Amex = &v -} - // GetApplePay returns the ApplePay field value if set, zero value otherwise. func (o *PaymentMethodSetupInfo) GetApplePay() ApplePayInfo { if o == nil || common.IsNil(o.ApplePay) { @@ -1174,9 +1141,6 @@ func (o PaymentMethodSetupInfo) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.AfterpayTouch) { toSerialize["afterpayTouch"] = o.AfterpayTouch } - if !common.IsNil(o.Amex) { - toSerialize["amex"] = o.Amex - } if !common.IsNil(o.ApplePay) { toSerialize["applePay"] = o.ApplePay } diff --git a/src/managementwebhook/model_mid_service_notification_data.go b/src/managementwebhook/model_mid_service_notification_data.go index 67e3dc457..81e9c1143 100644 --- a/src/managementwebhook/model_mid_service_notification_data.go +++ b/src/managementwebhook/model_mid_service_notification_data.go @@ -29,7 +29,7 @@ type MidServiceNotificationData struct { MerchantId string `json:"merchantId"` // Your reference for the payment method. Reference *string `json:"reference,omitempty"` - // The status of the request to add a payment method. Possible values: * **success**: the payment method was added. * **failure**: the request failed. * **dataRequired**: the request is in a draft state because the required KYC data are missing. To check what data are missing, [get the details of the legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/get/legalEntities/_id_). * **capabilityPending**: the **receivePayments** capability is not allowed. * **updatesExpected**: the **receivePayments** capability is not allowed and the required KYC data are missing. To check what data are missing, [get the details of the legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/get/legalEntities/_id_). + // The status of the request to add a payment method. Possible values: * **success**: the payment method was added. * **failure**: the request failed. * **capabilityPending**: the **receivePayments** capability is not allowed. Status string `json:"status"` // The unique identifier of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/merchants/{id}/paymentMethodSettings__reqParam_storeId), if any. StoreId *string `json:"storeId,omitempty"`