diff --git a/src/adyen/api.go b/src/adyen/api.go index 2760972d3..c76f14126 100644 --- a/src/adyen/api.go +++ b/src/adyen/api.go @@ -8,9 +8,10 @@ package adyen import ( "fmt" - "github.com/adyen/adyen-go-api-library/v8/src/dataprotection" "net/http" + "github.com/adyen/adyen-go-api-library/v8/src/dataprotection" + "github.com/adyen/adyen-go-api-library/v8/src/balancecontrol" "github.com/adyen/adyen-go-api-library/v8/src/balanceplatform" "github.com/adyen/adyen-go-api-library/v8/src/binlookup" diff --git a/src/balanceplatform/client.go b/src/balanceplatform/client.go index 8785e817d..f0d257f6c 100644 --- a/src/balanceplatform/client.go +++ b/src/balanceplatform/client.go @@ -9,7 +9,7 @@ API version: 2 package balanceplatform import ( - "github.com/adyen/adyen-go-api-library/v8/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // APIClient manages communication with the Configuration API API v2 @@ -45,10 +45,10 @@ type APIClient struct { // NewAPIClient creates a new API client. func NewAPIClient(client *common.Client) *APIClient { c := &APIClient{} - c.common.Client = client - c.common.BasePath = func() string { - return client.Cfg.BalancePlatformEndpoint - } + c.common.Client = client + c.common.BasePath = func() string { + return client.Cfg.BalancePlatformEndpoint + } // API Services c.AccountHoldersApi = (*AccountHoldersApi)(&c.common) @@ -64,4 +64,4 @@ func NewAPIClient(client *common.Client) *APIClient { c.TransferRoutesApi = (*TransferRoutesApi)(&c.common) return c -} \ No newline at end of file +} diff --git a/src/checkout/client.go b/src/checkout/client.go index 5b272cc1b..be8a39edc 100644 --- a/src/checkout/client.go +++ b/src/checkout/client.go @@ -9,7 +9,7 @@ API version: 71 package checkout import ( - "github.com/adyen/adyen-go-api-library/v8/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // APIClient manages communication with the Adyen Checkout API API v71 @@ -37,10 +37,10 @@ type APIClient struct { // NewAPIClient creates a new API client. func NewAPIClient(client *common.Client) *APIClient { c := &APIClient{} - c.common.Client = client - c.common.BasePath = func() string { - return client.Cfg.CheckoutEndpoint - } + c.common.Client = client + c.common.BasePath = func() string { + return client.Cfg.CheckoutEndpoint + } // API Services c.ClassicCheckoutSDKApi = (*ClassicCheckoutSDKApi)(&c.common) @@ -52,4 +52,4 @@ func NewAPIClient(client *common.Client) *APIClient { c.UtilityApi = (*UtilityApi)(&c.common) return c -} \ No newline at end of file +} 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_donation_payment_request.go b/src/checkout/model_donation_payment_request.go index c3855bbc1..26b12c573 100644 --- a/src/checkout/model_donation_payment_request.go +++ b/src/checkout/model_donation_payment_request.go @@ -45,7 +45,7 @@ type DonationPaymentRequest struct { // 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"` // Donation account to which the transaction is credited. - DonationAccount string `json:"donationAccount"` + DonationAccount *string `json:"donationAccount,omitempty"` // PSP reference of the transaction from which the donation token is generated. Required when `donationToken` is provided. DonationOriginalPspReference *string `json:"donationOriginalPspReference,omitempty"` // Donation token received in the `/payments` call. @@ -98,10 +98,9 @@ type DonationPaymentRequest 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 NewDonationPaymentRequest(amount Amount, donationAccount string, merchantAccount string, paymentMethod DonationPaymentMethod, reference string, returnUrl string) *DonationPaymentRequest { +func NewDonationPaymentRequest(amount Amount, merchantAccount string, paymentMethod DonationPaymentMethod, reference string, returnUrl string) *DonationPaymentRequest { this := DonationPaymentRequest{} this.Amount = amount - this.DonationAccount = donationAccount this.MerchantAccount = merchantAccount this.PaymentMethod = paymentMethod this.Reference = reference @@ -596,28 +595,36 @@ func (o *DonationPaymentRequest) SetDeviceFingerprint(v string) { o.DeviceFingerprint = &v } -// GetDonationAccount returns the DonationAccount field value +// GetDonationAccount returns the DonationAccount field value if set, zero value otherwise. func (o *DonationPaymentRequest) GetDonationAccount() string { - if o == nil { + if o == nil || common.IsNil(o.DonationAccount) { var ret string return ret } - - return o.DonationAccount + return *o.DonationAccount } -// GetDonationAccountOk returns a tuple with the DonationAccount field value +// GetDonationAccountOk returns a tuple with the DonationAccount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *DonationPaymentRequest) GetDonationAccountOk() (*string, bool) { - if o == nil { + if o == nil || common.IsNil(o.DonationAccount) { return nil, false } - return &o.DonationAccount, true + return o.DonationAccount, true +} + +// HasDonationAccount returns a boolean if a field has been set. +func (o *DonationPaymentRequest) HasDonationAccount() bool { + if o != nil && !common.IsNil(o.DonationAccount) { + return true + } + + return false } -// SetDonationAccount sets field value +// SetDonationAccount gets a reference to the given string and assigns it to the DonationAccount field. func (o *DonationPaymentRequest) SetDonationAccount(v string) { - o.DonationAccount = v + o.DonationAccount = &v } // GetDonationOriginalPspReference returns the DonationOriginalPspReference field value if set, zero value otherwise. @@ -1444,7 +1451,9 @@ func (o DonationPaymentRequest) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.DeviceFingerprint) { toSerialize["deviceFingerprint"] = o.DeviceFingerprint } - toSerialize["donationAccount"] = o.DonationAccount + if !common.IsNil(o.DonationAccount) { + toSerialize["donationAccount"] = o.DonationAccount + } if !common.IsNil(o.DonationOriginalPspReference) { toSerialize["donationOriginalPspReference"] = o.DonationOriginalPspReference } 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/common/model_rest_service_error.go b/src/common/model_rest_service_error.go index 6c2e7f069..d0c89cf00 100644 --- a/src/common/model_rest_service_error.go +++ b/src/common/model_rest_service_error.go @@ -26,7 +26,7 @@ type RestServiceError struct { // Detailed explanation of each validation error, when applicable. InvalidFields []InvalidFieldWrapper `json:"invalidFields,omitempty"` // A unique reference for the request, essentially the same as `pspReference`. - RequestId *string `json:"requestId,omitempty"` + RequestId *string `json:"requestId,omitempty"` // The HTTP status code. Status int32 `json:"status"` // A short, human-readable summary of the problem type. @@ -282,7 +282,7 @@ func (o RestServiceError) MarshalJSON() ([]byte, error) { } func (o RestServiceError) Error() string { - return "{" + o.GetType() + "," + o.GetDetail() + "," + o.GetErrorCode() + "," + o.GetRequestId() + "," + string(o.GetStatus()) + "," + o.GetErrorCode() + "," + o.GetTitle() + "}" + return "{" + o.GetType() + "," + o.GetDetail() + "," + o.GetErrorCode() + "," + o.GetRequestId() + "," + string(o.GetStatus()) + "," + o.GetErrorCode() + "," + o.GetTitle() + "}" } func (o RestServiceError) ToMap() (map[string]interface{}, error) { @@ -298,7 +298,7 @@ func (o RestServiceError) ToMap() (map[string]interface{}, error) { if !IsNil(o.RequestId) { toSerialize["requestId"] = o.RequestId } - + toSerialize["status"] = o.Status toSerialize["title"] = o.Title toSerialize["type"] = o.Type diff --git a/src/hmacvalidator/hmacvalidator.go b/src/hmacvalidator/hmacvalidator.go index 5eeec31ae..93e5c44e5 100644 --- a/src/hmacvalidator/hmacvalidator.go +++ b/src/hmacvalidator/hmacvalidator.go @@ -6,11 +6,12 @@ import ( "encoding/base64" "encoding/hex" "fmt" - "github.com/adyen/adyen-go-api-library/v8/src/webhook" "regexp" "sort" "strconv" "strings" + + "github.com/adyen/adyen-go-api-library/v8/src/webhook" ) // CalculateHmac calculates the SHA-256 HMAC for the given data and key 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/client.go b/src/legalentity/client.go index 7a6da1508..459ddcd2d 100644 --- a/src/legalentity/client.go +++ b/src/legalentity/client.go @@ -9,7 +9,7 @@ API version: 3 package legalentity import ( - "github.com/adyen/adyen-go-api-library/v8/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // APIClient manages communication with the Legal Entity Management API API v3 @@ -37,10 +37,10 @@ type APIClient struct { // NewAPIClient creates a new API client. func NewAPIClient(client *common.Client) *APIClient { c := &APIClient{} - c.common.Client = client - c.common.BasePath = func() string { - return client.Cfg.LegalEntityEndpoint - } + c.common.Client = client + c.common.BasePath = func() string { + return client.Cfg.LegalEntityEndpoint + } // API Services c.BusinessLinesApi = (*BusinessLinesApi)(&c.common) @@ -52,4 +52,4 @@ func NewAPIClient(client *common.Client) *APIClient { c.TransferInstrumentsApi = (*TransferInstrumentsApi)(&c.common) return c -} \ No newline at end of file +} 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_legal_entity.go b/src/legalentity/model_legal_entity.go index c360dc7b5..928ffdd01 100644 --- a/src/legalentity/model_legal_entity.go +++ b/src/legalentity/model_legal_entity.go @@ -45,6 +45,8 @@ type LegalEntity struct { UnincorporatedPartnership *UnincorporatedPartnership `json:"unincorporatedPartnership,omitempty"` // List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved. VerificationDeadlines []VerificationDeadline `json:"verificationDeadlines,omitempty"` + // A key-value pair that specifies the [verification process](https://docs.adyen.com/marketplaces-and-platforms/collect-verification-details/) for a legal entity. Set to **upfront** for [upfront verification](https://docs.adyen.com/marketplaces-and-platforms/collect-verification-details#upfront). + VerificationPlan *string `json:"verificationPlan,omitempty"` } // NewLegalEntity instantiates a new LegalEntity object @@ -540,6 +542,38 @@ func (o *LegalEntity) SetVerificationDeadlines(v []VerificationDeadline) { o.VerificationDeadlines = v } +// GetVerificationPlan returns the VerificationPlan field value if set, zero value otherwise. +func (o *LegalEntity) GetVerificationPlan() string { + if o == nil || common.IsNil(o.VerificationPlan) { + var ret string + return ret + } + return *o.VerificationPlan +} + +// GetVerificationPlanOk returns a tuple with the VerificationPlan field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegalEntity) GetVerificationPlanOk() (*string, bool) { + if o == nil || common.IsNil(o.VerificationPlan) { + return nil, false + } + return o.VerificationPlan, true +} + +// HasVerificationPlan returns a boolean if a field has been set. +func (o *LegalEntity) HasVerificationPlan() bool { + if o != nil && !common.IsNil(o.VerificationPlan) { + return true + } + + return false +} + +// SetVerificationPlan gets a reference to the given string and assigns it to the VerificationPlan field. +func (o *LegalEntity) SetVerificationPlan(v string) { + o.VerificationPlan = &v +} + func (o LegalEntity) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -593,6 +627,9 @@ func (o LegalEntity) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.VerificationDeadlines) { toSerialize["verificationDeadlines"] = o.VerificationDeadlines } + if !common.IsNil(o.VerificationPlan) { + toSerialize["verificationPlan"] = o.VerificationPlan + } return toSerialize, nil } diff --git a/src/legalentity/model_legal_entity_info.go b/src/legalentity/model_legal_entity_info.go index 51665ea6a..9843c0329 100644 --- a/src/legalentity/model_legal_entity_info.go +++ b/src/legalentity/model_legal_entity_info.go @@ -32,6 +32,8 @@ type LegalEntityInfo struct { // The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. Type *string `json:"type,omitempty"` UnincorporatedPartnership *UnincorporatedPartnership `json:"unincorporatedPartnership,omitempty"` + // A key-value pair that specifies the [verification process](https://docs.adyen.com/marketplaces-and-platforms/collect-verification-details/) for a legal entity. Set to **upfront** for [upfront verification](https://docs.adyen.com/marketplaces-and-platforms/collect-verification-details#upfront). + VerificationPlan *string `json:"verificationPlan,omitempty"` } // NewLegalEntityInfo instantiates a new LegalEntityInfo object @@ -339,6 +341,38 @@ func (o *LegalEntityInfo) SetUnincorporatedPartnership(v UnincorporatedPartnersh o.UnincorporatedPartnership = &v } +// GetVerificationPlan returns the VerificationPlan field value if set, zero value otherwise. +func (o *LegalEntityInfo) GetVerificationPlan() string { + if o == nil || common.IsNil(o.VerificationPlan) { + var ret string + return ret + } + return *o.VerificationPlan +} + +// GetVerificationPlanOk returns a tuple with the VerificationPlan field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegalEntityInfo) GetVerificationPlanOk() (*string, bool) { + if o == nil || common.IsNil(o.VerificationPlan) { + return nil, false + } + return o.VerificationPlan, true +} + +// HasVerificationPlan returns a boolean if a field has been set. +func (o *LegalEntityInfo) HasVerificationPlan() bool { + if o != nil && !common.IsNil(o.VerificationPlan) { + return true + } + + return false +} + +// SetVerificationPlan gets a reference to the given string and assigns it to the VerificationPlan field. +func (o *LegalEntityInfo) SetVerificationPlan(v string) { + o.VerificationPlan = &v +} + func (o LegalEntityInfo) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -376,6 +410,9 @@ func (o LegalEntityInfo) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.UnincorporatedPartnership) { toSerialize["unincorporatedPartnership"] = o.UnincorporatedPartnership } + if !common.IsNil(o.VerificationPlan) { + toSerialize["verificationPlan"] = o.VerificationPlan + } return toSerialize, nil } diff --git a/src/legalentity/model_legal_entity_info_required_type.go b/src/legalentity/model_legal_entity_info_required_type.go index 5aa9b33bf..61acc4803 100644 --- a/src/legalentity/model_legal_entity_info_required_type.go +++ b/src/legalentity/model_legal_entity_info_required_type.go @@ -32,6 +32,8 @@ type LegalEntityInfoRequiredType struct { // The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. Type string `json:"type"` UnincorporatedPartnership *UnincorporatedPartnership `json:"unincorporatedPartnership,omitempty"` + // A key-value pair that specifies the [verification process](https://docs.adyen.com/marketplaces-and-platforms/collect-verification-details/) for a legal entity. Set to **upfront** for [upfront verification](https://docs.adyen.com/marketplaces-and-platforms/collect-verification-details#upfront). + VerificationPlan *string `json:"verificationPlan,omitempty"` } // NewLegalEntityInfoRequiredType instantiates a new LegalEntityInfoRequiredType object @@ -332,6 +334,38 @@ func (o *LegalEntityInfoRequiredType) SetUnincorporatedPartnership(v Unincorpora o.UnincorporatedPartnership = &v } +// GetVerificationPlan returns the VerificationPlan field value if set, zero value otherwise. +func (o *LegalEntityInfoRequiredType) GetVerificationPlan() string { + if o == nil || common.IsNil(o.VerificationPlan) { + var ret string + return ret + } + return *o.VerificationPlan +} + +// GetVerificationPlanOk returns a tuple with the VerificationPlan field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegalEntityInfoRequiredType) GetVerificationPlanOk() (*string, bool) { + if o == nil || common.IsNil(o.VerificationPlan) { + return nil, false + } + return o.VerificationPlan, true +} + +// HasVerificationPlan returns a boolean if a field has been set. +func (o *LegalEntityInfoRequiredType) HasVerificationPlan() bool { + if o != nil && !common.IsNil(o.VerificationPlan) { + return true + } + + return false +} + +// SetVerificationPlan gets a reference to the given string and assigns it to the VerificationPlan field. +func (o *LegalEntityInfoRequiredType) SetVerificationPlan(v string) { + o.VerificationPlan = &v +} + func (o LegalEntityInfoRequiredType) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -367,6 +401,9 @@ func (o LegalEntityInfoRequiredType) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.UnincorporatedPartnership) { toSerialize["unincorporatedPartnership"] = o.UnincorporatedPartnership } + if !common.IsNil(o.VerificationPlan) { + toSerialize["verificationPlan"] = o.VerificationPlan + } return toSerialize, nil } 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/client.go b/src/management/client.go index adfd87beb..f2b026505 100644 --- a/src/management/client.go +++ b/src/management/client.go @@ -9,7 +9,7 @@ API version: 3 package management import ( - "github.com/adyen/adyen-go-api-library/v8/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // APIClient manages communication with the Management API API v3 @@ -81,10 +81,10 @@ type APIClient struct { // NewAPIClient creates a new API client. func NewAPIClient(client *common.Client) *APIClient { c := &APIClient{} - c.common.Client = client - c.common.BasePath = func() string { - return client.Cfg.ManagementEndpoint - } + c.common.Client = client + c.common.BasePath = func() string { + return client.Cfg.ManagementEndpoint + } // API Services c.APICredentialsCompanyLevelApi = (*APICredentialsCompanyLevelApi)(&c.common) @@ -118,4 +118,4 @@ func NewAPIClient(client *common.Client) *APIClient { c.WebhooksMerchantLevelApi = (*WebhooksMerchantLevelApi)(&c.common) return c -} \ No newline at end of file +} 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/management/model_tap_to_pay.go b/src/management/model_tap_to_pay.go new file mode 100644 index 000000000..813d0fa0d --- /dev/null +++ b/src/management/model_tap_to_pay.go @@ -0,0 +1,125 @@ +/* +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/v8/src/common" +) + +// checks if the TapToPay type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &TapToPay{} + +// TapToPay struct for TapToPay +type TapToPay struct { + // Platform merchants can customize the text that appears on the TapToPay screen during a transaction + MerchantDisplayName *string `json:"merchantDisplayName,omitempty"` +} + +// NewTapToPay instantiates a new TapToPay 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 NewTapToPay() *TapToPay { + this := TapToPay{} + return &this +} + +// NewTapToPayWithDefaults instantiates a new TapToPay 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 NewTapToPayWithDefaults() *TapToPay { + this := TapToPay{} + return &this +} + +// GetMerchantDisplayName returns the MerchantDisplayName field value if set, zero value otherwise. +func (o *TapToPay) GetMerchantDisplayName() string { + if o == nil || common.IsNil(o.MerchantDisplayName) { + var ret string + return ret + } + return *o.MerchantDisplayName +} + +// GetMerchantDisplayNameOk returns a tuple with the MerchantDisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TapToPay) GetMerchantDisplayNameOk() (*string, bool) { + if o == nil || common.IsNil(o.MerchantDisplayName) { + return nil, false + } + return o.MerchantDisplayName, true +} + +// HasMerchantDisplayName returns a boolean if a field has been set. +func (o *TapToPay) HasMerchantDisplayName() bool { + if o != nil && !common.IsNil(o.MerchantDisplayName) { + return true + } + + return false +} + +// SetMerchantDisplayName gets a reference to the given string and assigns it to the MerchantDisplayName field. +func (o *TapToPay) SetMerchantDisplayName(v string) { + o.MerchantDisplayName = &v +} + +func (o TapToPay) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TapToPay) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !common.IsNil(o.MerchantDisplayName) { + toSerialize["merchantDisplayName"] = o.MerchantDisplayName + } + return toSerialize, nil +} + +type NullableTapToPay struct { + value *TapToPay + isSet bool +} + +func (v NullableTapToPay) Get() *TapToPay { + return v.value +} + +func (v *NullableTapToPay) Set(val *TapToPay) { + v.value = val + v.isSet = true +} + +func (v NullableTapToPay) IsSet() bool { + return v.isSet +} + +func (v *NullableTapToPay) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTapToPay(val *TapToPay) *NullableTapToPay { + return &NullableTapToPay{value: val, isSet: true} +} + +func (v NullableTapToPay) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTapToPay) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/src/management/model_terminal_settings.go b/src/management/model_terminal_settings.go index c31f9dbe6..89bf7a3a4 100644 --- a/src/management/model_terminal_settings.go +++ b/src/management/model_terminal_settings.go @@ -36,6 +36,7 @@ type TerminalSettings struct { Signature *Signature `json:"signature,omitempty"` Standalone *Standalone `json:"standalone,omitempty"` Surcharge *Surcharge `json:"surcharge,omitempty"` + TapToPay *TapToPay `json:"tapToPay,omitempty"` Timeouts *Timeouts `json:"timeouts,omitempty"` WifiProfiles *WifiProfiles `json:"wifiProfiles,omitempty"` } @@ -569,6 +570,38 @@ func (o *TerminalSettings) SetSurcharge(v Surcharge) { o.Surcharge = &v } +// GetTapToPay returns the TapToPay field value if set, zero value otherwise. +func (o *TerminalSettings) GetTapToPay() TapToPay { + if o == nil || common.IsNil(o.TapToPay) { + var ret TapToPay + return ret + } + return *o.TapToPay +} + +// GetTapToPayOk returns a tuple with the TapToPay field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TerminalSettings) GetTapToPayOk() (*TapToPay, bool) { + if o == nil || common.IsNil(o.TapToPay) { + return nil, false + } + return o.TapToPay, true +} + +// HasTapToPay returns a boolean if a field has been set. +func (o *TerminalSettings) HasTapToPay() bool { + if o != nil && !common.IsNil(o.TapToPay) { + return true + } + + return false +} + +// SetTapToPay gets a reference to the given TapToPay and assigns it to the TapToPay field. +func (o *TerminalSettings) SetTapToPay(v TapToPay) { + o.TapToPay = &v +} + // GetTimeouts returns the Timeouts field value if set, zero value otherwise. func (o *TerminalSettings) GetTimeouts() Timeouts { if o == nil || common.IsNil(o.Timeouts) { @@ -691,6 +724,9 @@ func (o TerminalSettings) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.Surcharge) { toSerialize["surcharge"] = o.Surcharge } + if !common.IsNil(o.TapToPay) { + toSerialize["tapToPay"] = o.TapToPay + } if !common.IsNil(o.Timeouts) { toSerialize["timeouts"] = o.Timeouts } 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"` diff --git a/src/payments/client.go b/src/payments/client.go index 4c5b549cf..a50371720 100644 --- a/src/payments/client.go +++ b/src/payments/client.go @@ -9,7 +9,7 @@ API version: 68 package payments import ( - "github.com/adyen/adyen-go-api-library/v8/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // APIClient manages communication with the Adyen Payment API API v68 @@ -27,14 +27,14 @@ type APIClient struct { // NewAPIClient creates a new API client. func NewAPIClient(client *common.Client) *APIClient { c := &APIClient{} - c.common.Client = client - c.common.BasePath = func() string { - return client.Cfg.Endpoint - } + c.common.Client = client + c.common.BasePath = func() string { + return client.Cfg.Endpoint + } // API Services c.ModificationsApi = (*ModificationsApi)(&c.common) c.PaymentsApi = (*PaymentsApi)(&c.common) return c -} \ No newline at end of file +} diff --git a/src/payout/client.go b/src/payout/client.go index 8e5c147a2..6935c66e0 100644 --- a/src/payout/client.go +++ b/src/payout/client.go @@ -9,7 +9,7 @@ API version: 68 package payout import ( - "github.com/adyen/adyen-go-api-library/v8/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // APIClient manages communication with the Adyen Payout API API v68 @@ -29,10 +29,10 @@ type APIClient struct { // NewAPIClient creates a new API client. func NewAPIClient(client *common.Client) *APIClient { c := &APIClient{} - c.common.Client = client - c.common.BasePath = func() string { - return client.Cfg.Endpoint - } + c.common.Client = client + c.common.BasePath = func() string { + return client.Cfg.Endpoint + } // API Services c.InitializationApi = (*InitializationApi)(&c.common) @@ -40,4 +40,4 @@ func NewAPIClient(client *common.Client) *APIClient { c.ReviewingApi = (*ReviewingApi)(&c.common) return c -} \ No newline at end of file +} diff --git a/src/platformsaccount/model_account.go b/src/platformsaccount/model_account.go index 3f5600ede..abba3e6e0 100644 --- a/src/platformsaccount/model_account.go +++ b/src/platformsaccount/model_account.go @@ -9,6 +9,7 @@ */ package platformsaccount + // Account struct for Account type Account struct { // The code of the account. @@ -24,8 +25,8 @@ type Account struct { // A set of key and value pairs for general use by the merchant. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. Metadata map[string]string `json:"metadata,omitempty"` // The payout method code held by the account holder to couple the account with. Scheduled card payouts will be sent using this payout method code. - PayoutMethodCode string `json:"payoutMethodCode,omitempty"` - PayoutSchedule *PayoutScheduleResponse `json:"payoutSchedule,omitempty"` + PayoutMethodCode string `json:"payoutMethodCode,omitempty"` + PayoutSchedule *PayoutScheduleResponse `json:"payoutSchedule,omitempty"` // Speed with which payouts for this account are processed. Permitted values: `STANDARD`, `SAME_DAY`. PayoutSpeed string `json:"payoutSpeed,omitempty"` // The status of the account. Possible values: `Active`, `Inactive`, `Suspended`, `Closed`. diff --git a/src/platformsaccount/model_account_event.go b/src/platformsaccount/model_account_event.go index f47c6afe7..b464bd74a 100644 --- a/src/platformsaccount/model_account_event.go +++ b/src/platformsaccount/model_account_event.go @@ -9,9 +9,11 @@ */ package platformsaccount + import ( "time" ) + // AccountEvent struct for AccountEvent type AccountEvent struct { // The event. >Permitted values: `InactivateAccount`, `RefundNotPaidOutTransfers`. For more information, refer to [Verification checks](https://docs.adyen.com/platforms/onboarding-and-verification/verification-checks). diff --git a/src/platformsaccount/model_account_holder_details.go b/src/platformsaccount/model_account_holder_details.go index fb14266c0..dc1d3b02e 100644 --- a/src/platformsaccount/model_account_holder_details.go +++ b/src/platformsaccount/model_account_holder_details.go @@ -9,18 +9,19 @@ */ package platformsaccount + // AccountHolderDetails struct for AccountHolderDetails type AccountHolderDetails struct { Address *ViasAddress `json:"address,omitempty"` // Each of the bank accounts associated with the account holder. > Each array entry should represent one bank account. > For comprehensive detail regarding the required `BankAccountDetail` fields, please refer to the [KYC Verification documentation](https://docs.adyen.com/platforms/onboarding-and-verification/verification-checks). BankAccountDetails *[]BankAccountDetail `json:"bankAccountDetails,omitempty"` // The opaque reference value returned by the Adyen API during bank account login. - BankAggregatorDataReference string `json:"bankAggregatorDataReference,omitempty"` - BusinessDetails *BusinessDetails `json:"businessDetails,omitempty"` + BankAggregatorDataReference string `json:"bankAggregatorDataReference,omitempty"` + BusinessDetails *BusinessDetails `json:"businessDetails,omitempty"` // The email address of the account holder. Email string `json:"email"` // The phone number of the account holder provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\" - FullPhoneNumber string `json:"fullPhoneNumber"` + FullPhoneNumber string `json:"fullPhoneNumber"` IndividualDetails *IndividualDetails `json:"individualDetails,omitempty"` // The Merchant Category Code of the account holder. > If not specified in the request, this will be derived from the platform account (which is configured by Adyen). MerchantCategoryCode string `json:"merchantCategoryCode,omitempty"` diff --git a/src/platformsaccount/model_account_holder_status.go b/src/platformsaccount/model_account_holder_status.go index 06b233ca0..79feb9149 100644 --- a/src/platformsaccount/model_account_holder_status.go +++ b/src/platformsaccount/model_account_holder_status.go @@ -9,11 +9,12 @@ */ package platformsaccount + // AccountHolderStatus struct for AccountHolderStatus type AccountHolderStatus struct { // A list of events scheduled for the account holder. - Events *[]AccountEvent `json:"events,omitempty"` - PayoutState *AccountPayoutState `json:"payoutState,omitempty"` + Events *[]AccountEvent `json:"events,omitempty"` + PayoutState *AccountPayoutState `json:"payoutState,omitempty"` ProcessingState *AccountProcessingState `json:"processingState,omitempty"` // The status of the account holder. >Permitted values: `Active`, `Inactive`, `Suspended`, `Closed`. Status string `json:"status"` diff --git a/src/platformsaccount/model_account_payout_state.go b/src/platformsaccount/model_account_payout_state.go index 08608e9c3..c841b65ed 100644 --- a/src/platformsaccount/model_account_payout_state.go +++ b/src/platformsaccount/model_account_payout_state.go @@ -9,6 +9,7 @@ */ package platformsaccount + // AccountPayoutState struct for AccountPayoutState type AccountPayoutState struct { // Indicates whether payouts are allowed. This field is the overarching payout status, and is the aggregate of multiple conditions (e.g., KYC status, disabled flag, etc). If this field is false, no payouts will be permitted for any of the account holder's accounts. If this field is true, payouts will be permitted for any of the account holder's accounts. @@ -18,8 +19,8 @@ type AccountPayoutState struct { // Indicates whether payouts have been disabled (by the platform) for all of the account holder's accounts. A platform may enable and disable this field at their discretion. If this field is true, `allowPayout` will be false and no payouts will be permitted for any of the account holder's accounts. If this field is false, `allowPayout` may or may not be enabled, depending on other factors. Disabled bool `json:"disabled,omitempty"` // The reason why payouts (to all of the account holder's accounts) have been disabled (by Adyen). If payouts have been disabled by Adyen, this field will explain why. If this field is blank, payouts have not been disabled by Adyen. - NotAllowedReason string `json:"notAllowedReason,omitempty"` - PayoutLimit *Amount `json:"payoutLimit,omitempty"` + NotAllowedReason string `json:"notAllowedReason,omitempty"` + PayoutLimit *Amount `json:"payoutLimit,omitempty"` // The payout tier that the account holder occupies. TierNumber int32 `json:"tierNumber,omitempty"` } diff --git a/src/platformsaccount/model_account_processing_state.go b/src/platformsaccount/model_account_processing_state.go index 375ea834e..33d5148ce 100644 --- a/src/platformsaccount/model_account_processing_state.go +++ b/src/platformsaccount/model_account_processing_state.go @@ -9,14 +9,15 @@ */ package platformsaccount + // AccountProcessingState struct for AccountProcessingState type AccountProcessingState struct { // The reason why processing has been disabled. DisableReason string `json:"disableReason,omitempty"` // Indicates whether the processing of payments is allowed. - Disabled bool `json:"disabled,omitempty"` + Disabled bool `json:"disabled,omitempty"` ProcessedFrom *Amount `json:"processedFrom,omitempty"` - ProcessedTo *Amount `json:"processedTo,omitempty"` + ProcessedTo *Amount `json:"processedTo,omitempty"` // The processing tier that the account holder occupies. TierNumber int32 `json:"tierNumber,omitempty"` } diff --git a/src/platformsaccount/model_amount.go b/src/platformsaccount/model_amount.go index 0b8d7f3c3..0e2667beb 100644 --- a/src/platformsaccount/model_amount.go +++ b/src/platformsaccount/model_amount.go @@ -9,6 +9,7 @@ */ package platformsaccount + // Amount struct for Amount type Amount struct { // The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). diff --git a/src/platformsaccount/model_bank_account_detail.go b/src/platformsaccount/model_bank_account_detail.go index c1a8081a5..580e9b601 100644 --- a/src/platformsaccount/model_bank_account_detail.go +++ b/src/platformsaccount/model_bank_account_detail.go @@ -9,6 +9,7 @@ */ package platformsaccount + // BankAccountDetail struct for BankAccountDetail type BankAccountDetail struct { // The bank account number (without separators). >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. @@ -19,7 +20,7 @@ type BankAccountDetail struct { BankAccountName string `json:"bankAccountName,omitempty"` // Merchant reference to the bank account. BankAccountReference string `json:"bankAccountReference,omitempty"` - // The unique identifier (UUID) of the Bank Account. >If, during an account holder create or update request, this field is left blank (but other fields provided), a new Bank Account will be created with a procedurally-generated UUID. >If, during an account holder create request, a UUID is provided, the creation of the Bank Account will fail while the creation of the account holder will continue. >If, during an account holder update request, a UUID that is not correlated with an existing Bank Account is provided, the update of the account holder will fail. >If, during an account holder update request, a UUID that is correlated with an existing Bank Account is provided, the existing Bank Account will be updated. + // The unique identifier (UUID) of the Bank Account. >If, during an account holder create or update request, this field is left blank (but other fields provided), a new Bank Account will be created with a procedurally-generated UUID. >If, during an account holder create request, a UUID is provided, the creation of the Bank Account will fail while the creation of the account holder will continue. >If, during an account holder update request, a UUID that is not correlated with an existing Bank Account is provided, the update of the account holder will fail. >If, during an account holder update request, a UUID that is correlated with an existing Bank Account is provided, the existing Bank Account will be updated. BankAccountUUID string `json:"bankAccountUUID,omitempty"` // The bank identifier code. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. BankBicSwift string `json:"bankBicSwift,omitempty"` @@ -43,7 +44,7 @@ type BankAccountDetail struct { OwnerCity string `json:"ownerCity,omitempty"` // The country code of the country of residence of the bank account owner. >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. 'NL'). >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. OwnerCountryCode string `json:"ownerCountryCode,omitempty"` - // The date of birth of the bank account owner. + // The date of birth of the bank account owner. OwnerDateOfBirth string `json:"ownerDateOfBirth,omitempty"` // The house name or number of the residence of the bank account owner. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. OwnerHouseNumberOrName string `json:"ownerHouseNumberOrName,omitempty"` diff --git a/src/platformsaccount/model_business_details.go b/src/platformsaccount/model_business_details.go index e6f905116..f210e4edd 100644 --- a/src/platformsaccount/model_business_details.go +++ b/src/platformsaccount/model_business_details.go @@ -9,6 +9,7 @@ */ package platformsaccount + // BusinessDetails struct for BusinessDetails type BusinessDetails struct { // The registered name of the company (if it differs from the legal name of the company). diff --git a/src/platformsaccount/model_close_account_holder_request.go b/src/platformsaccount/model_close_account_holder_request.go index a1d3ea572..30c3fbb0f 100644 --- a/src/platformsaccount/model_close_account_holder_request.go +++ b/src/platformsaccount/model_close_account_holder_request.go @@ -9,6 +9,7 @@ */ package platformsaccount + // CloseAccountHolderRequest struct for CloseAccountHolderRequest type CloseAccountHolderRequest struct { // The code of the Account Holder to be closed. diff --git a/src/platformsaccount/model_close_account_holder_response.go b/src/platformsaccount/model_close_account_holder_response.go index cbed93e03..0bbed508e 100644 --- a/src/platformsaccount/model_close_account_holder_response.go +++ b/src/platformsaccount/model_close_account_holder_response.go @@ -9,6 +9,7 @@ */ package platformsaccount + // CloseAccountHolderResponse struct for CloseAccountHolderResponse type CloseAccountHolderResponse struct { AccountHolderStatus AccountHolderStatus `json:"accountHolderStatus"` diff --git a/src/platformsaccount/model_close_account_request.go b/src/platformsaccount/model_close_account_request.go index 098e700ea..2c2f23b4a 100644 --- a/src/platformsaccount/model_close_account_request.go +++ b/src/platformsaccount/model_close_account_request.go @@ -9,6 +9,7 @@ */ package platformsaccount + // CloseAccountRequest struct for CloseAccountRequest type CloseAccountRequest struct { // The code of account to be closed. diff --git a/src/platformsaccount/model_close_account_response.go b/src/platformsaccount/model_close_account_response.go index 4ea0f0155..8fb32d098 100644 --- a/src/platformsaccount/model_close_account_response.go +++ b/src/platformsaccount/model_close_account_response.go @@ -9,6 +9,7 @@ */ package platformsaccount + // CloseAccountResponse struct for CloseAccountResponse type CloseAccountResponse struct { // The account code of the account that is closed. diff --git a/src/platformsaccount/model_create_account_holder_request.go b/src/platformsaccount/model_create_account_holder_request.go index 6872747ce..a96c23267 100644 --- a/src/platformsaccount/model_create_account_holder_request.go +++ b/src/platformsaccount/model_create_account_holder_request.go @@ -9,10 +9,11 @@ */ package platformsaccount + // CreateAccountHolderRequest struct for CreateAccountHolderRequest type CreateAccountHolderRequest struct { // The desired code of the prospective account holder. > Must be between three (3) and fifty (50) characters long. Only letters, digits, and hyphens (-) are permitted. - AccountHolderCode string `json:"accountHolderCode"` + AccountHolderCode string `json:"accountHolderCode"` AccountHolderDetails AccountHolderDetails `json:"accountHolderDetails"` // If set to true, an account with the default options is created for this account holder. **Default Value:** true CreateDefaultAccount bool `json:"createDefaultAccount,omitempty"` diff --git a/src/platformsaccount/model_create_account_holder_response.go b/src/platformsaccount/model_create_account_holder_response.go index 85b0e298d..f67d00ebf 100644 --- a/src/platformsaccount/model_create_account_holder_response.go +++ b/src/platformsaccount/model_create_account_holder_response.go @@ -9,14 +9,15 @@ */ package platformsaccount + // CreateAccountHolderResponse struct for CreateAccountHolderResponse type CreateAccountHolderResponse struct { // The code of a new account created for the account holder. AccountCode string `json:"accountCode,omitempty"` // The code of the new account holder. - AccountHolderCode string `json:"accountHolderCode"` + AccountHolderCode string `json:"accountHolderCode"` AccountHolderDetails AccountHolderDetails `json:"accountHolderDetails"` - AccountHolderStatus AccountHolderStatus `json:"accountHolderStatus"` + AccountHolderStatus AccountHolderStatus `json:"accountHolderStatus"` // The description of the new account holder. Description string `json:"description,omitempty"` // A list of fields that caused the `/createAccountHolder` request to fail. @@ -28,7 +29,7 @@ type CreateAccountHolderResponse struct { // The reference of a request. Can be used to uniquely identify the request. PspReference string `json:"pspReference,omitempty"` // The result code. - ResultCode string `json:"resultCode,omitempty"` + ResultCode string `json:"resultCode,omitempty"` Verification KYCVerificationResult `json:"verification"` // The identifier of the profile that applies to this entity. VerificationProfile string `json:"verificationProfile,omitempty"` diff --git a/src/platformsaccount/model_create_account_request.go b/src/platformsaccount/model_create_account_request.go index ea2a8e81a..592ec9c7a 100644 --- a/src/platformsaccount/model_create_account_request.go +++ b/src/platformsaccount/model_create_account_request.go @@ -9,6 +9,7 @@ */ package platformsaccount + // CreateAccountRequest struct for CreateAccountRequest type CreateAccountRequest struct { // The code of Account Holder under which to create the account. diff --git a/src/platformsaccount/model_create_account_response.go b/src/platformsaccount/model_create_account_response.go index 29726b032..71411e741 100644 --- a/src/platformsaccount/model_create_account_response.go +++ b/src/platformsaccount/model_create_account_response.go @@ -9,6 +9,7 @@ */ package platformsaccount + // CreateAccountResponse struct for CreateAccountResponse type CreateAccountResponse struct { // The code of the new account. @@ -21,10 +22,10 @@ type CreateAccountResponse struct { Description string `json:"description,omitempty"` // A list of fields that caused the `/createAccount` request to fail. InvalidFields *[]ErrorFieldType `json:"invalidFields,omitempty"` - Metadata map[string]string `json:"metadata,omitempty"` + Metadata map[string]string `json:"metadata,omitempty"` // The payout method code held by the account holder to couple the account with. Scheduled card payouts will be sent using this payout method code. - PayoutMethodCode string `json:"payoutMethodCode,omitempty"` - PayoutSchedule *PayoutScheduleResponse `json:"payoutSchedule,omitempty"` + PayoutMethodCode string `json:"payoutMethodCode,omitempty"` + PayoutSchedule *PayoutScheduleResponse `json:"payoutSchedule,omitempty"` // Speed with which payouts for this account are processed. Permitted values: `STANDARD`, `SAME_DAY`. PayoutSpeed string `json:"payoutSpeed,omitempty"` // The reference of a request. Can be used to uniquely identify the request. diff --git a/src/platformsaccount/model_delete_bank_account_request.go b/src/platformsaccount/model_delete_bank_account_request.go index 2b63e82b8..b41cb3ebe 100644 --- a/src/platformsaccount/model_delete_bank_account_request.go +++ b/src/platformsaccount/model_delete_bank_account_request.go @@ -9,6 +9,7 @@ */ package platformsaccount + // DeleteBankAccountRequest struct for DeleteBankAccountRequest type DeleteBankAccountRequest struct { // The code of the Account Holder from which to delete the Bank Account(s). diff --git a/src/platformsaccount/model_delete_payout_method_request.go b/src/platformsaccount/model_delete_payout_method_request.go index f1bbb7a31..f6cb45aee 100644 --- a/src/platformsaccount/model_delete_payout_method_request.go +++ b/src/platformsaccount/model_delete_payout_method_request.go @@ -9,6 +9,7 @@ */ package platformsaccount + // DeletePayoutMethodRequest struct for DeletePayoutMethodRequest type DeletePayoutMethodRequest struct { // The code of the account holder, from which to delete the payout methods. diff --git a/src/platformsaccount/model_delete_shareholder_request.go b/src/platformsaccount/model_delete_shareholder_request.go index a0a0a3c7d..7d84f67d6 100644 --- a/src/platformsaccount/model_delete_shareholder_request.go +++ b/src/platformsaccount/model_delete_shareholder_request.go @@ -9,6 +9,7 @@ */ package platformsaccount + // DeleteShareholderRequest struct for DeleteShareholderRequest type DeleteShareholderRequest struct { // The code of the Account Holder from which to delete the Shareholders. diff --git a/src/platformsaccount/model_document_detail.go b/src/platformsaccount/model_document_detail.go index 98867bcbe..8c45a663c 100644 --- a/src/platformsaccount/model_document_detail.go +++ b/src/platformsaccount/model_document_detail.go @@ -9,6 +9,7 @@ */ package platformsaccount + // DocumentDetail struct for DocumentDetail type DocumentDetail struct { // The code of account holder, to which the document applies. diff --git a/src/platformsaccount/model_error_field_type.go b/src/platformsaccount/model_error_field_type.go index 3f50a87bd..17ef2563f 100644 --- a/src/platformsaccount/model_error_field_type.go +++ b/src/platformsaccount/model_error_field_type.go @@ -9,11 +9,12 @@ */ package platformsaccount + // ErrorFieldType struct for ErrorFieldType type ErrorFieldType struct { // The validation error code. ErrorCode int32 `json:"errorCode,omitempty"` // A description of the validation error. - ErrorDescription string `json:"errorDescription,omitempty"` - FieldType *FieldType `json:"fieldType,omitempty"` + ErrorDescription string `json:"errorDescription,omitempty"` + FieldType *FieldType `json:"fieldType,omitempty"` } diff --git a/src/platformsaccount/model_field_type.go b/src/platformsaccount/model_field_type.go index 9877d85f6..3dfae904e 100644 --- a/src/platformsaccount/model_field_type.go +++ b/src/platformsaccount/model_field_type.go @@ -9,6 +9,7 @@ */ package platformsaccount + // FieldType struct for FieldType type FieldType struct { // The full name of the property. diff --git a/src/platformsaccount/model_generic_response.go b/src/platformsaccount/model_generic_response.go index ed468fd42..5db1da510 100644 --- a/src/platformsaccount/model_generic_response.go +++ b/src/platformsaccount/model_generic_response.go @@ -9,6 +9,7 @@ */ package platformsaccount + // GenericResponse struct for GenericResponse type GenericResponse struct { // Contains field validation errors that would prevent requests from being processed. diff --git a/src/platformsaccount/model_get_account_holder_request.go b/src/platformsaccount/model_get_account_holder_request.go index 7d1de1d42..0d9c6a9d3 100644 --- a/src/platformsaccount/model_get_account_holder_request.go +++ b/src/platformsaccount/model_get_account_holder_request.go @@ -9,6 +9,7 @@ */ package platformsaccount + // GetAccountHolderRequest struct for GetAccountHolderRequest type GetAccountHolderRequest struct { // The code of the account of which to retrieve the details. > Required if no `accountHolderCode` is provided. diff --git a/src/platformsaccount/model_get_account_holder_response.go b/src/platformsaccount/model_get_account_holder_response.go index 1f3bcea9f..75aa03dbe 100644 --- a/src/platformsaccount/model_get_account_holder_response.go +++ b/src/platformsaccount/model_get_account_holder_response.go @@ -9,15 +9,17 @@ */ package platformsaccount + import ( "time" ) + // GetAccountHolderResponse struct for GetAccountHolderResponse type GetAccountHolderResponse struct { // The code of the account holder. - AccountHolderCode string `json:"accountHolderCode"` + AccountHolderCode string `json:"accountHolderCode"` AccountHolderDetails AccountHolderDetails `json:"accountHolderDetails"` - AccountHolderStatus AccountHolderStatus `json:"accountHolderStatus"` + AccountHolderStatus AccountHolderStatus `json:"accountHolderStatus"` // A list of the accounts under the account holder. Accounts *[]Account `json:"accounts,omitempty"` // The description of the account holder. @@ -33,8 +35,8 @@ type GetAccountHolderResponse struct { // The result code. ResultCode string `json:"resultCode,omitempty"` // The time that shows how up to date is the information in the response. - SystemUpToDateTime *time.Time `json:"systemUpToDateTime,omitempty"` - Verification KYCVerificationResult `json:"verification"` + SystemUpToDateTime *time.Time `json:"systemUpToDateTime,omitempty"` + Verification KYCVerificationResult `json:"verification"` // The identifier of the profile that applies to this entity. VerificationProfile string `json:"verificationProfile,omitempty"` } diff --git a/src/platformsaccount/model_get_account_holder_status_response.go b/src/platformsaccount/model_get_account_holder_status_response.go index 36aa280ea..eb2227ecf 100644 --- a/src/platformsaccount/model_get_account_holder_status_response.go +++ b/src/platformsaccount/model_get_account_holder_status_response.go @@ -9,10 +9,11 @@ */ package platformsaccount + // GetAccountHolderStatusResponse struct for GetAccountHolderStatusResponse type GetAccountHolderStatusResponse struct { // The code of the Account Holder. - AccountHolderCode string `json:"accountHolderCode"` + AccountHolderCode string `json:"accountHolderCode"` AccountHolderStatus AccountHolderStatus `json:"accountHolderStatus"` // Contains field validation errors that would prevent requests from being processed. InvalidFields *[]ErrorFieldType `json:"invalidFields,omitempty"` diff --git a/src/platformsaccount/model_get_uploaded_documents_request.go b/src/platformsaccount/model_get_uploaded_documents_request.go index 6e7663d3d..733afd8f6 100644 --- a/src/platformsaccount/model_get_uploaded_documents_request.go +++ b/src/platformsaccount/model_get_uploaded_documents_request.go @@ -9,6 +9,7 @@ */ package platformsaccount + // GetUploadedDocumentsRequest struct for GetUploadedDocumentsRequest type GetUploadedDocumentsRequest struct { // The code of the Account Holder for which to retrieve the documents. diff --git a/src/platformsaccount/model_get_uploaded_documents_response.go b/src/platformsaccount/model_get_uploaded_documents_response.go index 4533c06fd..13543b76c 100644 --- a/src/platformsaccount/model_get_uploaded_documents_response.go +++ b/src/platformsaccount/model_get_uploaded_documents_response.go @@ -9,6 +9,7 @@ */ package platformsaccount + // GetUploadedDocumentsResponse struct for GetUploadedDocumentsResponse type GetUploadedDocumentsResponse struct { // A list of the documents and their details. diff --git a/src/platformsaccount/model_individual_details.go b/src/platformsaccount/model_individual_details.go index 2623936cf..501c5609b 100644 --- a/src/platformsaccount/model_individual_details.go +++ b/src/platformsaccount/model_individual_details.go @@ -9,8 +9,9 @@ */ package platformsaccount + // IndividualDetails struct for IndividualDetails type IndividualDetails struct { - Name *ViasName `json:"name,omitempty"` + Name *ViasName `json:"name,omitempty"` PersonalData *ViasPersonalData `json:"personalData,omitempty"` } diff --git a/src/platformsaccount/model_kyc_bank_account_check_result.go b/src/platformsaccount/model_kyc_bank_account_check_result.go index 8f47185db..d1ad1f6f5 100644 --- a/src/platformsaccount/model_kyc_bank_account_check_result.go +++ b/src/platformsaccount/model_kyc_bank_account_check_result.go @@ -9,6 +9,7 @@ */ package platformsaccount + // KYCBankAccountCheckResult struct for KYCBankAccountCheckResult type KYCBankAccountCheckResult struct { // The unique ID of the bank account to which the check applies. diff --git a/src/platformsaccount/model_kyc_card_check_result.go b/src/platformsaccount/model_kyc_card_check_result.go index a4d5ea6ed..9f7d358e2 100644 --- a/src/platformsaccount/model_kyc_card_check_result.go +++ b/src/platformsaccount/model_kyc_card_check_result.go @@ -9,6 +9,7 @@ */ package platformsaccount + // KYCCardCheckResult struct for KYCCardCheckResult type KYCCardCheckResult struct { // A list of the checks and their statuses. diff --git a/src/platformsaccount/model_kyc_check_result.go b/src/platformsaccount/model_kyc_check_result.go index 7d3aad4db..e72dc2d7d 100644 --- a/src/platformsaccount/model_kyc_check_result.go +++ b/src/platformsaccount/model_kyc_check_result.go @@ -9,6 +9,7 @@ */ package platformsaccount + // KYCCheckResult struct for KYCCheckResult type KYCCheckResult struct { // A list of the checks and their statuses. diff --git a/src/platformsaccount/model_kyc_check_status_data.go b/src/platformsaccount/model_kyc_check_status_data.go index 27e10a29d..8866b38aa 100644 --- a/src/platformsaccount/model_kyc_check_status_data.go +++ b/src/platformsaccount/model_kyc_check_status_data.go @@ -9,12 +9,13 @@ */ package platformsaccount + // KYCCheckStatusData struct for KYCCheckStatusData type KYCCheckStatusData struct { // A list of the fields required for execution of the check. RequiredFields []string `json:"requiredFields,omitempty"` // The status of the check. >Permitted Values: `DATA_PROVIDED`, `PASSED`, `PENDING`, `AWAITING_DATA`, `RETRY_LIMIT_REACHED`, `INVALID_DATA`, `FAILED`. - Status string `json:"status"` + Status string `json:"status"` Summary *KYCCheckSummary `json:"summary,omitempty"` // The type of check. >Permitted Values: `COMPANY_VERIFICATION`, `IDENTITY_VERIFICATION`, `PASSPORT_VERIFICATION`, `BANK_ACCOUNT_VERIFICATION`, `NONPROFIT_VERIFICATION`, `CARD_VERIFICATION`. Type string `json:"type"` diff --git a/src/platformsaccount/model_kyc_check_summary.go b/src/platformsaccount/model_kyc_check_summary.go index 570eb611d..65c04190b 100644 --- a/src/platformsaccount/model_kyc_check_summary.go +++ b/src/platformsaccount/model_kyc_check_summary.go @@ -9,6 +9,7 @@ */ package platformsaccount + // KYCCheckSummary struct for KYCCheckSummary type KYCCheckSummary struct { // The code of the check. diff --git a/src/platformsaccount/model_kyc_payout_method_check_result.go b/src/platformsaccount/model_kyc_payout_method_check_result.go index b8a5b0c1d..35257f52e 100644 --- a/src/platformsaccount/model_kyc_payout_method_check_result.go +++ b/src/platformsaccount/model_kyc_payout_method_check_result.go @@ -9,6 +9,7 @@ */ package platformsaccount + // KYCPayoutMethodCheckResult struct for KYCPayoutMethodCheckResult type KYCPayoutMethodCheckResult struct { // A list of the checks and their statuses. diff --git a/src/platformsaccount/model_kyc_shareholder_check_result.go b/src/platformsaccount/model_kyc_shareholder_check_result.go index f1d176b27..42c115455 100644 --- a/src/platformsaccount/model_kyc_shareholder_check_result.go +++ b/src/platformsaccount/model_kyc_shareholder_check_result.go @@ -9,6 +9,7 @@ */ package platformsaccount + // KYCShareholderCheckResult struct for KYCShareholderCheckResult type KYCShareholderCheckResult struct { // A list of the checks and their statuses. diff --git a/src/platformsaccount/model_kyc_verification_result.go b/src/platformsaccount/model_kyc_verification_result.go index 95053351c..df5f7fb60 100644 --- a/src/platformsaccount/model_kyc_verification_result.go +++ b/src/platformsaccount/model_kyc_verification_result.go @@ -9,6 +9,7 @@ */ package platformsaccount + // KYCVerificationResult struct for KYCVerificationResult type KYCVerificationResult struct { AccountHolder *KYCCheckResult `json:"accountHolder,omitempty"` diff --git a/src/platformsaccount/model_payout_method.go b/src/platformsaccount/model_payout_method.go index 4b86811ec..a1d4dc989 100644 --- a/src/platformsaccount/model_payout_method.go +++ b/src/platformsaccount/model_payout_method.go @@ -9,11 +9,12 @@ */ package platformsaccount + // PayoutMethod struct for PayoutMethod type PayoutMethod struct { - MerchantAccount string `json:"merchantAccount"` - PayoutMethodCode string `json:"payoutMethodCode,omitempty"` - PayoutMethodType string `json:"payoutMethodType,omitempty"` + MerchantAccount string `json:"merchantAccount"` + PayoutMethodCode string `json:"payoutMethodCode,omitempty"` + PayoutMethodType string `json:"payoutMethodType,omitempty"` RecurringDetailReference string `json:"recurringDetailReference"` - ShopperReference string `json:"shopperReference"` + ShopperReference string `json:"shopperReference"` } diff --git a/src/platformsaccount/model_payout_schedule_response.go b/src/platformsaccount/model_payout_schedule_response.go index 0ff461906..6e363e001 100644 --- a/src/platformsaccount/model_payout_schedule_response.go +++ b/src/platformsaccount/model_payout_schedule_response.go @@ -9,9 +9,11 @@ */ package platformsaccount + import ( "time" ) + // PayoutScheduleResponse struct for PayoutScheduleResponse type PayoutScheduleResponse struct { // The date of the next scheduled payout. diff --git a/src/platformsaccount/model_perform_verification_request.go b/src/platformsaccount/model_perform_verification_request.go index 3a2b166cd..11aa427ef 100644 --- a/src/platformsaccount/model_perform_verification_request.go +++ b/src/platformsaccount/model_perform_verification_request.go @@ -9,6 +9,7 @@ */ package platformsaccount + // PerformVerificationRequest struct for PerformVerificationRequest type PerformVerificationRequest struct { // The code of the account holder to verify. diff --git a/src/platformsaccount/model_personal_document_data.go b/src/platformsaccount/model_personal_document_data.go index 3e7e94bf5..3df6bdaf9 100644 --- a/src/platformsaccount/model_personal_document_data.go +++ b/src/platformsaccount/model_personal_document_data.go @@ -9,6 +9,7 @@ */ package platformsaccount + // PersonalDocumentData struct for PersonalDocumentData type PersonalDocumentData struct { // The expiration date of the document. The date should be in ISO-8601 format yyyy-mm-dd (e.g. 2000-01-31). diff --git a/src/platformsaccount/model_shareholder_contact.go b/src/platformsaccount/model_shareholder_contact.go index 1fa6d1520..e2d5ae2ba 100644 --- a/src/platformsaccount/model_shareholder_contact.go +++ b/src/platformsaccount/model_shareholder_contact.go @@ -9,17 +9,18 @@ */ package platformsaccount + // ShareholderContact struct for ShareholderContact type ShareholderContact struct { Address *ViasAddress `json:"address,omitempty"` // The e-mail address of the contact. Email string `json:"email,omitempty"` // The phone number of the contact provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\" - FullPhoneNumber string `json:"fullPhoneNumber,omitempty"` - Name *ViasName `json:"name,omitempty"` - PersonalData *ViasPersonalData `json:"personalData,omitempty"` - PhoneNumber *ViasPhoneNumber `json:"phoneNumber,omitempty"` - // The unique identifier (UUID) of the Shareholder. >**If, during an Account Holder create or update request, this field is left blank (but other fields provided), a new Shareholder will be created with a procedurally-generated UUID.** >**If, during an Account Holder create request, a UUID is provided, the creation of the Shareholder will fail while the creation of the Account Holder will continue.** >**If, during an Account Holder update request, a UUID that is not correlated with an existing Shareholder is provided, the update of the Shareholder will fail.** >**If, during an Account Holder update request, a UUID that is correlated with an existing Shareholder is provided, the existing Shareholder will be updated.** + FullPhoneNumber string `json:"fullPhoneNumber,omitempty"` + Name *ViasName `json:"name,omitempty"` + PersonalData *ViasPersonalData `json:"personalData,omitempty"` + PhoneNumber *ViasPhoneNumber `json:"phoneNumber,omitempty"` + // The unique identifier (UUID) of the Shareholder. >**If, during an Account Holder create or update request, this field is left blank (but other fields provided), a new Shareholder will be created with a procedurally-generated UUID.** >**If, during an Account Holder create request, a UUID is provided, the creation of the Shareholder will fail while the creation of the Account Holder will continue.** >**If, during an Account Holder update request, a UUID that is not correlated with an existing Shareholder is provided, the update of the Shareholder will fail.** >**If, during an Account Holder update request, a UUID that is correlated with an existing Shareholder is provided, the existing Shareholder will be updated.** ShareholderCode string `json:"shareholderCode,omitempty"` // Merchant reference to the Shareholder. ShareholderReference string `json:"shareholderReference,omitempty"` diff --git a/src/platformsaccount/model_suspend_account_holder_request.go b/src/platformsaccount/model_suspend_account_holder_request.go index 9e06ce83e..1579a5365 100644 --- a/src/platformsaccount/model_suspend_account_holder_request.go +++ b/src/platformsaccount/model_suspend_account_holder_request.go @@ -9,6 +9,7 @@ */ package platformsaccount + // SuspendAccountHolderRequest struct for SuspendAccountHolderRequest type SuspendAccountHolderRequest struct { // The code of the account holder to be suspended. diff --git a/src/platformsaccount/model_suspend_account_holder_response.go b/src/platformsaccount/model_suspend_account_holder_response.go index fefff416f..8cb6556b3 100644 --- a/src/platformsaccount/model_suspend_account_holder_response.go +++ b/src/platformsaccount/model_suspend_account_holder_response.go @@ -9,6 +9,7 @@ */ package platformsaccount + // SuspendAccountHolderResponse struct for SuspendAccountHolderResponse type SuspendAccountHolderResponse struct { AccountHolderStatus AccountHolderStatus `json:"accountHolderStatus"` diff --git a/src/platformsaccount/model_un_suspend_account_holder_request.go b/src/platformsaccount/model_un_suspend_account_holder_request.go index 24c96ab1c..36a969cc4 100644 --- a/src/platformsaccount/model_un_suspend_account_holder_request.go +++ b/src/platformsaccount/model_un_suspend_account_holder_request.go @@ -9,6 +9,7 @@ */ package platformsaccount + // UnSuspendAccountHolderRequest struct for UnSuspendAccountHolderRequest type UnSuspendAccountHolderRequest struct { // The code of the account holder to be reinstated. diff --git a/src/platformsaccount/model_un_suspend_account_holder_response.go b/src/platformsaccount/model_un_suspend_account_holder_response.go index 7f48c4c34..4e0b247f5 100644 --- a/src/platformsaccount/model_un_suspend_account_holder_response.go +++ b/src/platformsaccount/model_un_suspend_account_holder_response.go @@ -9,6 +9,7 @@ */ package platformsaccount + // UnSuspendAccountHolderResponse struct for UnSuspendAccountHolderResponse type UnSuspendAccountHolderResponse struct { AccountHolderStatus AccountHolderStatus `json:"accountHolderStatus"` diff --git a/src/platformsaccount/model_update_account_holder_request.go b/src/platformsaccount/model_update_account_holder_request.go index 4a9cae7da..3ecab58d7 100644 --- a/src/platformsaccount/model_update_account_holder_request.go +++ b/src/platformsaccount/model_update_account_holder_request.go @@ -9,10 +9,11 @@ */ package platformsaccount + // UpdateAccountHolderRequest struct for UpdateAccountHolderRequest type UpdateAccountHolderRequest struct { // The code of the Account Holder to be updated. - AccountHolderCode string `json:"accountHolderCode"` + AccountHolderCode string `json:"accountHolderCode"` AccountHolderDetails *AccountHolderDetails `json:"accountHolderDetails,omitempty"` // A description of the account holder, maximum 256 characters. You can use alphanumeric characters (A-Z, a-z, 0-9), white spaces, and underscores `_`. Description string `json:"description,omitempty"` diff --git a/src/platformsaccount/model_update_account_holder_response.go b/src/platformsaccount/model_update_account_holder_response.go index be0a0cb1a..ae4961285 100644 --- a/src/platformsaccount/model_update_account_holder_response.go +++ b/src/platformsaccount/model_update_account_holder_response.go @@ -9,12 +9,13 @@ */ package platformsaccount + // UpdateAccountHolderResponse struct for UpdateAccountHolderResponse type UpdateAccountHolderResponse struct { // The code of the account holder. - AccountHolderCode string `json:"accountHolderCode,omitempty"` + AccountHolderCode string `json:"accountHolderCode,omitempty"` AccountHolderDetails *AccountHolderDetails `json:"accountHolderDetails,omitempty"` - AccountHolderStatus AccountHolderStatus `json:"accountHolderStatus"` + AccountHolderStatus AccountHolderStatus `json:"accountHolderStatus"` // The description of the account holder. Description string `json:"description,omitempty"` // in case the account holder has not been updated, contains account holder fields, that did not pass the validation. @@ -26,7 +27,7 @@ type UpdateAccountHolderResponse struct { // The reference of a request. Can be used to uniquely identify the request. PspReference string `json:"pspReference,omitempty"` // The result code. - ResultCode string `json:"resultCode,omitempty"` + ResultCode string `json:"resultCode,omitempty"` Verification KYCVerificationResult `json:"verification"` // The identifier of the profile that applies to this entity. VerificationProfile string `json:"verificationProfile,omitempty"` diff --git a/src/platformsaccount/model_update_account_holder_state_request.go b/src/platformsaccount/model_update_account_holder_state_request.go index 1429ab258..46eb483d0 100644 --- a/src/platformsaccount/model_update_account_holder_state_request.go +++ b/src/platformsaccount/model_update_account_holder_state_request.go @@ -9,6 +9,7 @@ */ package platformsaccount + // UpdateAccountHolderStateRequest struct for UpdateAccountHolderStateRequest type UpdateAccountHolderStateRequest struct { // The code of the Account Holder on which to update the state. diff --git a/src/platformsaccount/model_update_account_request.go b/src/platformsaccount/model_update_account_request.go index 02eddd10c..4fe1417a9 100644 --- a/src/platformsaccount/model_update_account_request.go +++ b/src/platformsaccount/model_update_account_request.go @@ -9,6 +9,7 @@ */ package platformsaccount + // UpdateAccountRequest struct for UpdateAccountRequest type UpdateAccountRequest struct { // The code of the account to update. @@ -20,8 +21,8 @@ type UpdateAccountRequest struct { // A set of key and value pairs for general use by the merchant. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. Metadata map[string]string `json:"metadata,omitempty"` // The payout method code held by the account holder to couple the account with. Scheduled card payouts will be sent using this payout method code. - PayoutMethodCode string `json:"payoutMethodCode,omitempty"` - PayoutSchedule *UpdatePayoutScheduleRequest `json:"payoutSchedule,omitempty"` + PayoutMethodCode string `json:"payoutMethodCode,omitempty"` + PayoutSchedule *UpdatePayoutScheduleRequest `json:"payoutSchedule,omitempty"` // Speed with which payouts for this account are processed. Permitted values: `STANDARD`, `SAME_DAY`. PayoutSpeed string `json:"payoutSpeed,omitempty"` } diff --git a/src/platformsaccount/model_update_account_response.go b/src/platformsaccount/model_update_account_response.go index 37a0ec930..bbe9e3c38 100644 --- a/src/platformsaccount/model_update_account_response.go +++ b/src/platformsaccount/model_update_account_response.go @@ -9,6 +9,7 @@ */ package platformsaccount + // UpdateAccountResponse struct for UpdateAccountResponse type UpdateAccountResponse struct { // The code of the account. @@ -19,10 +20,10 @@ type UpdateAccountResponse struct { Description string `json:"description,omitempty"` // A list of fields that caused the `/updateAccount` request to fail. InvalidFields *[]ErrorFieldType `json:"invalidFields,omitempty"` - Metadata map[string]string `json:"metadata,omitempty"` + Metadata map[string]string `json:"metadata,omitempty"` // The payout method code held by the account holder to couple the account with. Scheduled card payouts will be sent using this payout method code. - PayoutMethodCode string `json:"payoutMethodCode,omitempty"` - PayoutSchedule *PayoutScheduleResponse `json:"payoutSchedule,omitempty"` + PayoutMethodCode string `json:"payoutMethodCode,omitempty"` + PayoutSchedule *PayoutScheduleResponse `json:"payoutSchedule,omitempty"` // Speed with which payouts for this account are processed. Permitted values: `STANDARD`, `SAME_DAY`. PayoutSpeed string `json:"payoutSpeed,omitempty"` // The reference of a request. Can be used to uniquely identify the request. diff --git a/src/platformsaccount/model_update_payout_schedule_request.go b/src/platformsaccount/model_update_payout_schedule_request.go index 1b7fdd68b..ceaf3026d 100644 --- a/src/platformsaccount/model_update_payout_schedule_request.go +++ b/src/platformsaccount/model_update_payout_schedule_request.go @@ -9,6 +9,7 @@ */ package platformsaccount + // UpdatePayoutScheduleRequest struct for UpdatePayoutScheduleRequest type UpdatePayoutScheduleRequest struct { // Direction on how to handle any payouts that have already been scheduled. Permitted values: * `CLOSE` will close the existing batch of payouts. * `UPDATE` will reschedule the existing batch to the new schedule. * `NOTHING` (**default**) will allow the payout to proceed. diff --git a/src/platformsaccount/model_upload_document_request.go b/src/platformsaccount/model_upload_document_request.go index 7d24d9eae..28ddfabe8 100644 --- a/src/platformsaccount/model_upload_document_request.go +++ b/src/platformsaccount/model_upload_document_request.go @@ -9,9 +9,10 @@ */ package platformsaccount + // UploadDocumentRequest struct for UploadDocumentRequest type UploadDocumentRequest struct { // The content of the document as represented by a Base64-encoded string. To learn about requirements, see [Bank account check](https://docs.adyen.com/platforms/onboarding-and-verification/verification-checks/bank-account-check#requirements) and [Photo ID check](https://docs.adyen.com/platforms/onboarding-and-verification/verification-checks/photo-id-check#requirements). - DocumentContent string `json:"documentContent"` - DocumentDetail DocumentDetail `json:"documentDetail"` + DocumentContent string `json:"documentContent"` + DocumentDetail DocumentDetail `json:"documentDetail"` } diff --git a/src/platformsaccount/model_vias_address.go b/src/platformsaccount/model_vias_address.go index 9325d74ac..c31f1e371 100644 --- a/src/platformsaccount/model_vias_address.go +++ b/src/platformsaccount/model_vias_address.go @@ -9,6 +9,7 @@ */ package platformsaccount + // ViasAddress struct for ViasAddress type ViasAddress struct { // The name of the city. >Required if either `houseNumberOrName`, `street`, `postalCode`, or `stateOrProvince` are provided. diff --git a/src/platformsaccount/model_vias_name.go b/src/platformsaccount/model_vias_name.go index 68336979f..ff1bff1b1 100644 --- a/src/platformsaccount/model_vias_name.go +++ b/src/platformsaccount/model_vias_name.go @@ -9,6 +9,7 @@ */ package platformsaccount + // ViasName struct for ViasName type ViasName struct { // The first name. diff --git a/src/platformsaccount/model_vias_personal_data.go b/src/platformsaccount/model_vias_personal_data.go index f91222b9d..852576571 100644 --- a/src/platformsaccount/model_vias_personal_data.go +++ b/src/platformsaccount/model_vias_personal_data.go @@ -9,6 +9,7 @@ */ package platformsaccount + // ViasPersonalData struct for ViasPersonalData type ViasPersonalData struct { // The date of birth of the person. The date should be in ISO-8601 format yyyy-mm-dd (e.g. 2000-01-31). diff --git a/src/platformsaccount/model_vias_phone_number.go b/src/platformsaccount/model_vias_phone_number.go index 51099e02b..cc0046f30 100644 --- a/src/platformsaccount/model_vias_phone_number.go +++ b/src/platformsaccount/model_vias_phone_number.go @@ -9,6 +9,7 @@ */ package platformsaccount + // ViasPhoneNumber struct for ViasPhoneNumber type ViasPhoneNumber struct { // The two-character country code of the phone number. >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. 'NL'). diff --git a/src/platformsfund/model_account_detail_balance.go b/src/platformsfund/model_account_detail_balance.go index 230299c7b..816dcc72e 100644 --- a/src/platformsfund/model_account_detail_balance.go +++ b/src/platformsfund/model_account_detail_balance.go @@ -9,9 +9,10 @@ */ package platformsfund + // AccountDetailBalance struct for AccountDetailBalance type AccountDetailBalance struct { // The code of the account that holds the balance. - AccountCode string `json:"accountCode,omitempty"` + AccountCode string `json:"accountCode,omitempty"` DetailBalance *DetailBalance `json:"detailBalance,omitempty"` } diff --git a/src/platformsfund/model_account_holder_balance_request.go b/src/platformsfund/model_account_holder_balance_request.go index f3c2e653e..931068aba 100644 --- a/src/platformsfund/model_account_holder_balance_request.go +++ b/src/platformsfund/model_account_holder_balance_request.go @@ -9,6 +9,7 @@ */ package platformsfund + // AccountHolderBalanceRequest struct for AccountHolderBalanceRequest type AccountHolderBalanceRequest struct { // The code of the Account Holder of which to retrieve the balance. diff --git a/src/platformsfund/model_account_holder_balance_response.go b/src/platformsfund/model_account_holder_balance_response.go index fdc3eb39c..20ae186f6 100644 --- a/src/platformsfund/model_account_holder_balance_response.go +++ b/src/platformsfund/model_account_holder_balance_response.go @@ -9,6 +9,7 @@ */ package platformsfund + // AccountHolderBalanceResponse struct for AccountHolderBalanceResponse type AccountHolderBalanceResponse struct { // A list of each account and their balances. @@ -18,6 +19,6 @@ type AccountHolderBalanceResponse struct { // The reference of a request. Can be used to uniquely identify the request. PspReference string `json:"pspReference,omitempty"` // The result code. - ResultCode string `json:"resultCode,omitempty"` + ResultCode string `json:"resultCode,omitempty"` TotalBalance *DetailBalance `json:"totalBalance,omitempty"` } diff --git a/src/platformsfund/model_account_holder_transaction_list_request.go b/src/platformsfund/model_account_holder_transaction_list_request.go index 3a5004549..b68e3a55c 100644 --- a/src/platformsfund/model_account_holder_transaction_list_request.go +++ b/src/platformsfund/model_account_holder_transaction_list_request.go @@ -9,6 +9,7 @@ */ package platformsfund + // AccountHolderTransactionListRequest struct for AccountHolderTransactionListRequest type AccountHolderTransactionListRequest struct { // The code of the account holder that owns the account(s) of which retrieve the transaction list. diff --git a/src/platformsfund/model_account_holder_transaction_list_response.go b/src/platformsfund/model_account_holder_transaction_list_response.go index 6bf2a117a..4860acebe 100644 --- a/src/platformsfund/model_account_holder_transaction_list_response.go +++ b/src/platformsfund/model_account_holder_transaction_list_response.go @@ -9,6 +9,7 @@ */ package platformsfund + // AccountHolderTransactionListResponse struct for AccountHolderTransactionListResponse type AccountHolderTransactionListResponse struct { // A list of the transactions. diff --git a/src/platformsfund/model_account_transaction_list.go b/src/platformsfund/model_account_transaction_list.go index 06345148f..02c00e4c9 100644 --- a/src/platformsfund/model_account_transaction_list.go +++ b/src/platformsfund/model_account_transaction_list.go @@ -9,6 +9,7 @@ */ package platformsfund + // AccountTransactionList struct for AccountTransactionList type AccountTransactionList struct { // The code of the account. diff --git a/src/platformsfund/model_amount.go b/src/platformsfund/model_amount.go index e8a0ebf94..8f42ebba4 100644 --- a/src/platformsfund/model_amount.go +++ b/src/platformsfund/model_amount.go @@ -9,6 +9,7 @@ */ package platformsfund + // Amount struct for Amount type Amount struct { // The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). diff --git a/src/platformsfund/model_bank_account_detail.go b/src/platformsfund/model_bank_account_detail.go index 0aad4f4aa..b15055dd6 100644 --- a/src/platformsfund/model_bank_account_detail.go +++ b/src/platformsfund/model_bank_account_detail.go @@ -9,6 +9,7 @@ */ package platformsfund + // BankAccountDetail struct for BankAccountDetail type BankAccountDetail struct { // The bank account number (without separators). >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. @@ -19,7 +20,7 @@ type BankAccountDetail struct { BankAccountName string `json:"bankAccountName,omitempty"` // Merchant reference to the bank account. BankAccountReference string `json:"bankAccountReference,omitempty"` - // The unique identifier (UUID) of the Bank Account. >If, during an account holder create or update request, this field is left blank (but other fields provided), a new Bank Account will be created with a procedurally-generated UUID. >If, during an account holder create request, a UUID is provided, the creation of the Bank Account will fail while the creation of the account holder will continue. >If, during an account holder update request, a UUID that is not correlated with an existing Bank Account is provided, the update of the account holder will fail. >If, during an account holder update request, a UUID that is correlated with an existing Bank Account is provided, the existing Bank Account will be updated. + // The unique identifier (UUID) of the Bank Account. >If, during an account holder create or update request, this field is left blank (but other fields provided), a new Bank Account will be created with a procedurally-generated UUID. >If, during an account holder create request, a UUID is provided, the creation of the Bank Account will fail while the creation of the account holder will continue. >If, during an account holder update request, a UUID that is not correlated with an existing Bank Account is provided, the update of the account holder will fail. >If, during an account holder update request, a UUID that is correlated with an existing Bank Account is provided, the existing Bank Account will be updated. BankAccountUUID string `json:"bankAccountUUID,omitempty"` // The bank identifier code. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. BankBicSwift string `json:"bankBicSwift,omitempty"` @@ -43,7 +44,7 @@ type BankAccountDetail struct { OwnerCity string `json:"ownerCity,omitempty"` // The country code of the country of residence of the bank account owner. >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. 'NL'). >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. OwnerCountryCode string `json:"ownerCountryCode,omitempty"` - // The date of birth of the bank account owner. + // The date of birth of the bank account owner. OwnerDateOfBirth string `json:"ownerDateOfBirth,omitempty"` // The house name or number of the residence of the bank account owner. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. OwnerHouseNumberOrName string `json:"ownerHouseNumberOrName,omitempty"` diff --git a/src/platformsfund/model_detail_balance.go b/src/platformsfund/model_detail_balance.go index e7ed66f9c..b671f91c1 100644 --- a/src/platformsfund/model_detail_balance.go +++ b/src/platformsfund/model_detail_balance.go @@ -9,6 +9,7 @@ */ package platformsfund + // DetailBalance struct for DetailBalance type DetailBalance struct { // The list of balances held by the account. diff --git a/src/platformsfund/model_error_field_type.go b/src/platformsfund/model_error_field_type.go index 22a92db42..baf35c2c1 100644 --- a/src/platformsfund/model_error_field_type.go +++ b/src/platformsfund/model_error_field_type.go @@ -9,11 +9,12 @@ */ package platformsfund + // ErrorFieldType struct for ErrorFieldType type ErrorFieldType struct { // The validation error code. ErrorCode int32 `json:"errorCode,omitempty"` // A description of the validation error. - ErrorDescription string `json:"errorDescription,omitempty"` - FieldType *FieldType `json:"fieldType,omitempty"` + ErrorDescription string `json:"errorDescription,omitempty"` + FieldType *FieldType `json:"fieldType,omitempty"` } diff --git a/src/platformsfund/model_field_type.go b/src/platformsfund/model_field_type.go index 7f4d7a92a..b48ed00c9 100644 --- a/src/platformsfund/model_field_type.go +++ b/src/platformsfund/model_field_type.go @@ -9,6 +9,7 @@ */ package platformsfund + // FieldType struct for FieldType type FieldType struct { // The full name of the property. diff --git a/src/platformsfund/model_payout_account_holder_request.go b/src/platformsfund/model_payout_account_holder_request.go index 01be13287..12e8a6eda 100644 --- a/src/platformsfund/model_payout_account_holder_request.go +++ b/src/platformsfund/model_payout_account_holder_request.go @@ -9,13 +9,14 @@ */ package platformsfund + // PayoutAccountHolderRequest struct for PayoutAccountHolderRequest type PayoutAccountHolderRequest struct { // The code of the account from which the payout is to be made. AccountCode string `json:"accountCode"` // The code of the Account Holder who owns the account from which the payout is to be made. The Account Holder is the party to which the payout will be made. AccountHolderCode string `json:"accountHolderCode"` - Amount Amount `json:"amount"` + Amount Amount `json:"amount"` // The unique ID of the Bank Account held by the Account Holder to which the payout is to be made. If left blank, a bank account is automatically selected. BankAccountUUID string `json:"bankAccountUUID,omitempty"` // A description of the payout. Maximum 35 characters. Allowed: **abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789/?:().,'+ \";** diff --git a/src/platformsfund/model_payout_account_holder_response.go b/src/platformsfund/model_payout_account_holder_response.go index 112897045..ebc3e4364 100644 --- a/src/platformsfund/model_payout_account_holder_response.go +++ b/src/platformsfund/model_payout_account_holder_response.go @@ -9,6 +9,7 @@ */ package platformsfund + // PayoutAccountHolderResponse struct for PayoutAccountHolderResponse type PayoutAccountHolderResponse struct { // The unique ID of the Bank Account to which the payout was made. diff --git a/src/platformsfund/model_refund_funds_transfer_request.go b/src/platformsfund/model_refund_funds_transfer_request.go index 88ce93390..bef9996e0 100644 --- a/src/platformsfund/model_refund_funds_transfer_request.go +++ b/src/platformsfund/model_refund_funds_transfer_request.go @@ -9,6 +9,7 @@ */ package platformsfund + // RefundFundsTransferRequest struct for RefundFundsTransferRequest type RefundFundsTransferRequest struct { Amount Amount `json:"amount"` diff --git a/src/platformsfund/model_refund_funds_transfer_response.go b/src/platformsfund/model_refund_funds_transfer_response.go index cad778f75..3fa80ce80 100644 --- a/src/platformsfund/model_refund_funds_transfer_response.go +++ b/src/platformsfund/model_refund_funds_transfer_response.go @@ -9,13 +9,14 @@ */ package platformsfund + // RefundFundsTransferResponse struct for RefundFundsTransferResponse type RefundFundsTransferResponse struct { // Contains field validation errors that would prevent requests from being processed. InvalidFields *[]ErrorFieldType `json:"invalidFields,omitempty"` // The value supplied by the executing user when initiating the transfer refund; may be used to link multiple transactions. MerchantReference string `json:"merchantReference,omitempty"` - Message string `json:"message,omitempty"` + Message string `json:"message,omitempty"` // A PSP reference of the original fund transfer. OriginalReference string `json:"originalReference,omitempty"` // The reference of a request. Can be used to uniquely identify the request. diff --git a/src/platformsfund/model_refund_not_paid_out_transfers_request.go b/src/platformsfund/model_refund_not_paid_out_transfers_request.go index a8c2b2f12..cef28b433 100644 --- a/src/platformsfund/model_refund_not_paid_out_transfers_request.go +++ b/src/platformsfund/model_refund_not_paid_out_transfers_request.go @@ -9,6 +9,7 @@ */ package platformsfund + // RefundNotPaidOutTransfersRequest struct for RefundNotPaidOutTransfersRequest type RefundNotPaidOutTransfersRequest struct { // The code of the account from which to perform the refund(s). diff --git a/src/platformsfund/model_refund_not_paid_out_transfers_response.go b/src/platformsfund/model_refund_not_paid_out_transfers_response.go index 8b19b99c7..d8b389d9b 100644 --- a/src/platformsfund/model_refund_not_paid_out_transfers_response.go +++ b/src/platformsfund/model_refund_not_paid_out_transfers_response.go @@ -9,6 +9,7 @@ */ package platformsfund + // RefundNotPaidOutTransfersResponse struct for RefundNotPaidOutTransfersResponse type RefundNotPaidOutTransfersResponse struct { // Contains field validation errors that would prevent requests from being processed. diff --git a/src/platformsfund/model_setup_beneficiary_request.go b/src/platformsfund/model_setup_beneficiary_request.go index a53395804..5fd3b7784 100644 --- a/src/platformsfund/model_setup_beneficiary_request.go +++ b/src/platformsfund/model_setup_beneficiary_request.go @@ -9,6 +9,7 @@ */ package platformsfund + // SetupBeneficiaryRequest struct for SetupBeneficiaryRequest type SetupBeneficiaryRequest struct { // The destination account code. diff --git a/src/platformsfund/model_setup_beneficiary_response.go b/src/platformsfund/model_setup_beneficiary_response.go index b37c375be..35c5b8f41 100644 --- a/src/platformsfund/model_setup_beneficiary_response.go +++ b/src/platformsfund/model_setup_beneficiary_response.go @@ -9,6 +9,7 @@ */ package platformsfund + // SetupBeneficiaryResponse struct for SetupBeneficiaryResponse type SetupBeneficiaryResponse struct { // Contains field validation errors that would prevent requests from being processed. diff --git a/src/platformsfund/model_transaction.go b/src/platformsfund/model_transaction.go index a3bfcc61a..01368fb53 100644 --- a/src/platformsfund/model_transaction.go +++ b/src/platformsfund/model_transaction.go @@ -9,12 +9,14 @@ */ package platformsfund + import ( "time" ) + // Transaction struct for Transaction type Transaction struct { - Amount *Amount `json:"amount,omitempty"` + Amount *Amount `json:"amount,omitempty"` BankAccountDetail *BankAccountDetail `json:"bankAccountDetail,omitempty"` // The merchant reference of a related capture. CaptureMerchantReference string `json:"captureMerchantReference,omitempty"` diff --git a/src/platformsfund/model_transaction_list_for_account.go b/src/platformsfund/model_transaction_list_for_account.go index e446315e8..4bb2ba557 100644 --- a/src/platformsfund/model_transaction_list_for_account.go +++ b/src/platformsfund/model_transaction_list_for_account.go @@ -9,6 +9,7 @@ */ package platformsfund + // TransactionListForAccount struct for TransactionListForAccount type TransactionListForAccount struct { // The account for which to retrieve the transactions. diff --git a/src/platformsfund/model_transfer_funds_request.go b/src/platformsfund/model_transfer_funds_request.go index cd239965a..c872c53e6 100644 --- a/src/platformsfund/model_transfer_funds_request.go +++ b/src/platformsfund/model_transfer_funds_request.go @@ -9,6 +9,7 @@ */ package platformsfund + // TransferFundsRequest struct for TransferFundsRequest type TransferFundsRequest struct { Amount Amount `json:"amount"` diff --git a/src/platformsfund/model_transfer_funds_response.go b/src/platformsfund/model_transfer_funds_response.go index 8fea4367f..27486da86 100644 --- a/src/platformsfund/model_transfer_funds_response.go +++ b/src/platformsfund/model_transfer_funds_response.go @@ -9,6 +9,7 @@ */ package platformsfund + // TransferFundsResponse struct for TransferFundsResponse type TransferFundsResponse struct { // Contains field validation errors that would prevent requests from being processed. diff --git a/src/platformshostedonboardingpage/model_error_field_type.go b/src/platformshostedonboardingpage/model_error_field_type.go index c9ec9b2a3..2c6e39f50 100644 --- a/src/platformshostedonboardingpage/model_error_field_type.go +++ b/src/platformshostedonboardingpage/model_error_field_type.go @@ -9,11 +9,12 @@ */ package platformshostedonboardingpage + // ErrorFieldType struct for ErrorFieldType type ErrorFieldType struct { // The validation error code. ErrorCode int32 `json:"errorCode,omitempty"` // A description of the validation error. - ErrorDescription string `json:"errorDescription,omitempty"` - FieldType *FieldType `json:"fieldType,omitempty"` + ErrorDescription string `json:"errorDescription,omitempty"` + FieldType *FieldType `json:"fieldType,omitempty"` } diff --git a/src/platformshostedonboardingpage/model_field_type.go b/src/platformshostedonboardingpage/model_field_type.go index ad3575371..cfa950407 100644 --- a/src/platformshostedonboardingpage/model_field_type.go +++ b/src/platformshostedonboardingpage/model_field_type.go @@ -9,6 +9,7 @@ */ package platformshostedonboardingpage + // FieldType struct for FieldType type FieldType struct { // The full name of the property. diff --git a/src/platformshostedonboardingpage/model_get_onboarding_url_request.go b/src/platformshostedonboardingpage/model_get_onboarding_url_request.go index 0aa1025eb..908b5f457 100644 --- a/src/platformshostedonboardingpage/model_get_onboarding_url_request.go +++ b/src/platformshostedonboardingpage/model_get_onboarding_url_request.go @@ -9,6 +9,7 @@ */ package platformshostedonboardingpage + // GetOnboardingUrlRequest struct for GetOnboardingUrlRequest type GetOnboardingUrlRequest struct { // The account holder code you provided when you created the account holder. diff --git a/src/platformshostedonboardingpage/model_get_onboarding_url_response.go b/src/platformshostedonboardingpage/model_get_onboarding_url_response.go index ea2867130..d10d926a9 100644 --- a/src/platformshostedonboardingpage/model_get_onboarding_url_response.go +++ b/src/platformshostedonboardingpage/model_get_onboarding_url_response.go @@ -9,6 +9,7 @@ */ package platformshostedonboardingpage + // GetOnboardingUrlResponse struct for GetOnboardingUrlResponse type GetOnboardingUrlResponse struct { // Contains field validation errors that would prevent requests from being processed. diff --git a/src/platformsnotificationconfiguration/model_create_notification_configuration_request.go b/src/platformsnotificationconfiguration/model_create_notification_configuration_request.go index 2e20c0951..09c7721eb 100644 --- a/src/platformsnotificationconfiguration/model_create_notification_configuration_request.go +++ b/src/platformsnotificationconfiguration/model_create_notification_configuration_request.go @@ -9,6 +9,7 @@ */ package platformsnotificationconfiguration + // CreateNotificationConfigurationRequest struct for CreateNotificationConfigurationRequest type CreateNotificationConfigurationRequest struct { ConfigurationDetails NotificationConfigurationDetails `json:"configurationDetails"` diff --git a/src/platformsnotificationconfiguration/model_delete_notification_configuration_request.go b/src/platformsnotificationconfiguration/model_delete_notification_configuration_request.go index 61f787902..5f67b08a8 100644 --- a/src/platformsnotificationconfiguration/model_delete_notification_configuration_request.go +++ b/src/platformsnotificationconfiguration/model_delete_notification_configuration_request.go @@ -9,6 +9,7 @@ */ package platformsnotificationconfiguration + // DeleteNotificationConfigurationRequest struct for DeleteNotificationConfigurationRequest type DeleteNotificationConfigurationRequest struct { // A list of IDs of the notification subscription configurations to be deleted. diff --git a/src/platformsnotificationconfiguration/model_error_field_type.go b/src/platformsnotificationconfiguration/model_error_field_type.go index 293b8637e..9548eb752 100644 --- a/src/platformsnotificationconfiguration/model_error_field_type.go +++ b/src/platformsnotificationconfiguration/model_error_field_type.go @@ -9,11 +9,12 @@ */ package platformsnotificationconfiguration + // ErrorFieldType struct for ErrorFieldType type ErrorFieldType struct { // The validation error code. ErrorCode int32 `json:"errorCode,omitempty"` // A description of the validation error. - ErrorDescription string `json:"errorDescription,omitempty"` - FieldType *FieldType `json:"fieldType,omitempty"` + ErrorDescription string `json:"errorDescription,omitempty"` + FieldType *FieldType `json:"fieldType,omitempty"` } diff --git a/src/platformsnotificationconfiguration/model_exchange_message.go b/src/platformsnotificationconfiguration/model_exchange_message.go index c6e016012..ff40832ed 100644 --- a/src/platformsnotificationconfiguration/model_exchange_message.go +++ b/src/platformsnotificationconfiguration/model_exchange_message.go @@ -9,8 +9,9 @@ */ package platformsnotificationconfiguration + // ExchangeMessage struct for ExchangeMessage type ExchangeMessage struct { - MessageCode string `json:"messageCode,omitempty"` + MessageCode string `json:"messageCode,omitempty"` MessageDescription string `json:"messageDescription,omitempty"` } diff --git a/src/platformsnotificationconfiguration/model_field_type.go b/src/platformsnotificationconfiguration/model_field_type.go index cf674e0c1..b2eed752d 100644 --- a/src/platformsnotificationconfiguration/model_field_type.go +++ b/src/platformsnotificationconfiguration/model_field_type.go @@ -9,6 +9,7 @@ */ package platformsnotificationconfiguration + // FieldType struct for FieldType type FieldType struct { // The full name of the property. diff --git a/src/platformsnotificationconfiguration/model_generic_response.go b/src/platformsnotificationconfiguration/model_generic_response.go index 3de0bc2ca..9470f491c 100644 --- a/src/platformsnotificationconfiguration/model_generic_response.go +++ b/src/platformsnotificationconfiguration/model_generic_response.go @@ -9,6 +9,7 @@ */ package platformsnotificationconfiguration + // GenericResponse struct for GenericResponse type GenericResponse struct { // Contains field validation errors that would prevent requests from being processed. diff --git a/src/platformsnotificationconfiguration/model_get_notification_configuration_list_response.go b/src/platformsnotificationconfiguration/model_get_notification_configuration_list_response.go index 1e33588e3..8dc0e540a 100644 --- a/src/platformsnotificationconfiguration/model_get_notification_configuration_list_response.go +++ b/src/platformsnotificationconfiguration/model_get_notification_configuration_list_response.go @@ -9,6 +9,7 @@ */ package platformsnotificationconfiguration + // GetNotificationConfigurationListResponse struct for GetNotificationConfigurationListResponse type GetNotificationConfigurationListResponse struct { // Details of the notification subscription configurations. diff --git a/src/platformsnotificationconfiguration/model_get_notification_configuration_request.go b/src/platformsnotificationconfiguration/model_get_notification_configuration_request.go index ae3cc09b0..5538e1d7c 100644 --- a/src/platformsnotificationconfiguration/model_get_notification_configuration_request.go +++ b/src/platformsnotificationconfiguration/model_get_notification_configuration_request.go @@ -9,6 +9,7 @@ */ package platformsnotificationconfiguration + // GetNotificationConfigurationRequest struct for GetNotificationConfigurationRequest type GetNotificationConfigurationRequest struct { // The ID of the notification subscription configuration whose details are to be retrieved. diff --git a/src/platformsnotificationconfiguration/model_get_notification_configuration_response.go b/src/platformsnotificationconfiguration/model_get_notification_configuration_response.go index eb6180178..89da9dc1f 100644 --- a/src/platformsnotificationconfiguration/model_get_notification_configuration_response.go +++ b/src/platformsnotificationconfiguration/model_get_notification_configuration_response.go @@ -9,6 +9,7 @@ */ package platformsnotificationconfiguration + // GetNotificationConfigurationResponse struct for GetNotificationConfigurationResponse type GetNotificationConfigurationResponse struct { ConfigurationDetails NotificationConfigurationDetails `json:"configurationDetails"` diff --git a/src/platformsnotificationconfiguration/model_notification_configuration_details.go b/src/platformsnotificationconfiguration/model_notification_configuration_details.go index 64daac110..c3ed1822a 100644 --- a/src/platformsnotificationconfiguration/model_notification_configuration_details.go +++ b/src/platformsnotificationconfiguration/model_notification_configuration_details.go @@ -9,6 +9,7 @@ */ package platformsnotificationconfiguration + // NotificationConfigurationDetails struct for NotificationConfigurationDetails type NotificationConfigurationDetails struct { // Indicates whether the notification subscription is active. diff --git a/src/platformsnotificationconfiguration/model_notification_event_configuration.go b/src/platformsnotificationconfiguration/model_notification_event_configuration.go index 5c223ade2..65e807687 100644 --- a/src/platformsnotificationconfiguration/model_notification_event_configuration.go +++ b/src/platformsnotificationconfiguration/model_notification_event_configuration.go @@ -9,6 +9,7 @@ */ package platformsnotificationconfiguration + // NotificationEventConfiguration struct for NotificationEventConfiguration type NotificationEventConfiguration struct { // The type of event triggering the notification. >Permitted values: `ACCOUNT_HOLDER_CREATED`, `ACCOUNT_CREATED`, `ACCOUNT_UPDATED`, `ACCOUNT_HOLDER_UPDATED`, `ACCOUNT_HOLDER_STATUS_CHANGE`, `ACCOUNT_HOLDER_STORE_STATUS_CHANGE`, `ACCOUNT_HOLDER_VERIFICATION`, `ACCOUNT_HOLDER_LIMIT_REACHED`, `ACCOUNT_HOLDER_PAYOUT`, `PAYMENT_FAILURE`, `SCHEDULED_REFUNDS`, `REPORT_AVAILABLE`, `TRANSFER_FUNDS`, `BENEFICIARY_SETUP`, `COMPENSATE_NEGATIVE_BALANCE`. diff --git a/src/platformsnotificationconfiguration/model_test_notification_configuration_request.go b/src/platformsnotificationconfiguration/model_test_notification_configuration_request.go index db8f6373c..320b79fbf 100644 --- a/src/platformsnotificationconfiguration/model_test_notification_configuration_request.go +++ b/src/platformsnotificationconfiguration/model_test_notification_configuration_request.go @@ -9,6 +9,7 @@ */ package platformsnotificationconfiguration + // TestNotificationConfigurationRequest struct for TestNotificationConfigurationRequest type TestNotificationConfigurationRequest struct { // The event types to test. If left blank, then all of the configured event types will be tested. >Permitted values: `ACCOUNT_HOLDER_CREATED`, `ACCOUNT_CREATED`, `ACCOUNT_UPDATED`, `ACCOUNT_HOLDER_UPDATED`, `ACCOUNT_HOLDER_STATUS_CHANGE`, `ACCOUNT_HOLDER_STORE_STATUS_CHANGE` `ACCOUNT_HOLDER_VERIFICATION`, `ACCOUNT_HOLDER_LIMIT_REACHED`, `ACCOUNT_HOLDER_PAYOUT`, `PAYMENT_FAILURE`, `SCHEDULED_REFUNDS`, `REPORT_AVAILABLE`, `TRANSFER_FUNDS`, `BENEFICIARY_SETUP`, `COMPENSATE_NEGATIVE_BALANCE`. diff --git a/src/platformsnotificationconfiguration/model_test_notification_configuration_response.go b/src/platformsnotificationconfiguration/model_test_notification_configuration_response.go index 062e858db..58ed925be 100644 --- a/src/platformsnotificationconfiguration/model_test_notification_configuration_response.go +++ b/src/platformsnotificationconfiguration/model_test_notification_configuration_response.go @@ -9,6 +9,7 @@ */ package platformsnotificationconfiguration + // TestNotificationConfigurationResponse struct for TestNotificationConfigurationResponse type TestNotificationConfigurationResponse struct { // Any error messages encountered. diff --git a/src/platformsnotificationconfiguration/model_update_notification_configuration_request.go b/src/platformsnotificationconfiguration/model_update_notification_configuration_request.go index 48276d7b1..84d15746f 100644 --- a/src/platformsnotificationconfiguration/model_update_notification_configuration_request.go +++ b/src/platformsnotificationconfiguration/model_update_notification_configuration_request.go @@ -9,6 +9,7 @@ */ package platformsnotificationconfiguration + // UpdateNotificationConfigurationRequest struct for UpdateNotificationConfigurationRequest type UpdateNotificationConfigurationRequest struct { ConfigurationDetails NotificationConfigurationDetails `json:"configurationDetails"` diff --git a/src/platformsnotificationevents/model_account_close_notification.go b/src/platformsnotificationevents/model_account_close_notification.go index 1d280b158..d668c2e0e 100644 --- a/src/platformsnotificationevents/model_account_close_notification.go +++ b/src/platformsnotificationevents/model_account_close_notification.go @@ -18,8 +18,8 @@ import ( // AccountCloseNotification struct for AccountCloseNotification type AccountCloseNotification struct { - Content CloseAccountResponse `json:"content"` - Error *NotificationErrorContainer `json:"error,omitempty"` + Content CloseAccountResponse `json:"content"` + Error *NotificationErrorContainer `json:"error,omitempty"` // The date and time when an event has been completed. EventDate time.Time `json:"eventDate"` // The event type of the notification. @@ -36,7 +36,7 @@ type AccountCloseNotification 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 NewAccountCloseNotification(content CloseAccountResponse, eventDate time.Time, eventType string, executingUserKey string, live bool, pspReference string, ) *AccountCloseNotification { +func NewAccountCloseNotification(content CloseAccountResponse, eventDate time.Time, eventType string, executingUserKey string, live bool, pspReference string) *AccountCloseNotification { this := AccountCloseNotification{} this.Content = content this.EventDate = eventDate @@ -57,7 +57,7 @@ func NewAccountCloseNotificationWithDefaults() *AccountCloseNotification { // GetContent returns the Content field value func (o *AccountCloseNotification) GetContent() CloseAccountResponse { - if o == nil { + if o == nil { var ret CloseAccountResponse return ret } @@ -68,7 +68,7 @@ func (o *AccountCloseNotification) GetContent() CloseAccountResponse { // GetContentOk returns a tuple with the Content field value // and a boolean to check if the value has been set. func (o *AccountCloseNotification) GetContentOk() (*CloseAccountResponse, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Content, true @@ -113,7 +113,7 @@ func (o *AccountCloseNotification) SetError(v NotificationErrorContainer) { // GetEventDate returns the EventDate field value func (o *AccountCloseNotification) GetEventDate() time.Time { - if o == nil { + if o == nil { var ret time.Time return ret } @@ -124,7 +124,7 @@ func (o *AccountCloseNotification) GetEventDate() time.Time { // GetEventDateOk returns a tuple with the EventDate field value // and a boolean to check if the value has been set. func (o *AccountCloseNotification) GetEventDateOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return &o.EventDate, true @@ -137,7 +137,7 @@ func (o *AccountCloseNotification) SetEventDate(v time.Time) { // GetEventType returns the EventType field value func (o *AccountCloseNotification) GetEventType() string { - if o == nil { + if o == nil { var ret string return ret } @@ -148,7 +148,7 @@ func (o *AccountCloseNotification) GetEventType() string { // GetEventTypeOk returns a tuple with the EventType field value // and a boolean to check if the value has been set. func (o *AccountCloseNotification) GetEventTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.EventType, true @@ -161,7 +161,7 @@ func (o *AccountCloseNotification) SetEventType(v string) { // GetExecutingUserKey returns the ExecutingUserKey field value func (o *AccountCloseNotification) GetExecutingUserKey() string { - if o == nil { + if o == nil { var ret string return ret } @@ -172,7 +172,7 @@ func (o *AccountCloseNotification) GetExecutingUserKey() string { // GetExecutingUserKeyOk returns a tuple with the ExecutingUserKey field value // and a boolean to check if the value has been set. func (o *AccountCloseNotification) GetExecutingUserKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ExecutingUserKey, true @@ -185,7 +185,7 @@ func (o *AccountCloseNotification) SetExecutingUserKey(v string) { // GetLive returns the Live field value func (o *AccountCloseNotification) GetLive() bool { - if o == nil { + if o == nil { var ret bool return ret } @@ -196,7 +196,7 @@ func (o *AccountCloseNotification) GetLive() bool { // GetLiveOk returns a tuple with the Live field value // and a boolean to check if the value has been set. func (o *AccountCloseNotification) GetLiveOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Live, true @@ -209,7 +209,7 @@ func (o *AccountCloseNotification) SetLive(v bool) { // GetPspReference returns the PspReference field value func (o *AccountCloseNotification) GetPspReference() string { - if o == nil { + if o == nil { var ret string return ret } @@ -220,7 +220,7 @@ func (o *AccountCloseNotification) GetPspReference() string { // GetPspReferenceOk returns a tuple with the PspReference field value // and a boolean to check if the value has been set. func (o *AccountCloseNotification) GetPspReferenceOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.PspReference, true @@ -292,5 +292,3 @@ func (v *NullableAccountCloseNotification) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_account_create_notification.go b/src/platformsnotificationevents/model_account_create_notification.go index 619ef4a0c..ad410e26e 100644 --- a/src/platformsnotificationevents/model_account_create_notification.go +++ b/src/platformsnotificationevents/model_account_create_notification.go @@ -18,8 +18,8 @@ import ( // AccountCreateNotification struct for AccountCreateNotification type AccountCreateNotification struct { - Content CreateAccountResponse `json:"content"` - Error *NotificationErrorContainer `json:"error,omitempty"` + Content CreateAccountResponse `json:"content"` + Error *NotificationErrorContainer `json:"error,omitempty"` // The date and time when an event has been completed. EventDate time.Time `json:"eventDate"` // The event type of the notification. @@ -36,7 +36,7 @@ type AccountCreateNotification 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 NewAccountCreateNotification(content CreateAccountResponse, eventDate time.Time, eventType string, executingUserKey string, live bool, pspReference string, ) *AccountCreateNotification { +func NewAccountCreateNotification(content CreateAccountResponse, eventDate time.Time, eventType string, executingUserKey string, live bool, pspReference string) *AccountCreateNotification { this := AccountCreateNotification{} this.Content = content this.EventDate = eventDate @@ -57,7 +57,7 @@ func NewAccountCreateNotificationWithDefaults() *AccountCreateNotification { // GetContent returns the Content field value func (o *AccountCreateNotification) GetContent() CreateAccountResponse { - if o == nil { + if o == nil { var ret CreateAccountResponse return ret } @@ -68,7 +68,7 @@ func (o *AccountCreateNotification) GetContent() CreateAccountResponse { // GetContentOk returns a tuple with the Content field value // and a boolean to check if the value has been set. func (o *AccountCreateNotification) GetContentOk() (*CreateAccountResponse, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Content, true @@ -113,7 +113,7 @@ func (o *AccountCreateNotification) SetError(v NotificationErrorContainer) { // GetEventDate returns the EventDate field value func (o *AccountCreateNotification) GetEventDate() time.Time { - if o == nil { + if o == nil { var ret time.Time return ret } @@ -124,7 +124,7 @@ func (o *AccountCreateNotification) GetEventDate() time.Time { // GetEventDateOk returns a tuple with the EventDate field value // and a boolean to check if the value has been set. func (o *AccountCreateNotification) GetEventDateOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return &o.EventDate, true @@ -137,7 +137,7 @@ func (o *AccountCreateNotification) SetEventDate(v time.Time) { // GetEventType returns the EventType field value func (o *AccountCreateNotification) GetEventType() string { - if o == nil { + if o == nil { var ret string return ret } @@ -148,7 +148,7 @@ func (o *AccountCreateNotification) GetEventType() string { // GetEventTypeOk returns a tuple with the EventType field value // and a boolean to check if the value has been set. func (o *AccountCreateNotification) GetEventTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.EventType, true @@ -161,7 +161,7 @@ func (o *AccountCreateNotification) SetEventType(v string) { // GetExecutingUserKey returns the ExecutingUserKey field value func (o *AccountCreateNotification) GetExecutingUserKey() string { - if o == nil { + if o == nil { var ret string return ret } @@ -172,7 +172,7 @@ func (o *AccountCreateNotification) GetExecutingUserKey() string { // GetExecutingUserKeyOk returns a tuple with the ExecutingUserKey field value // and a boolean to check if the value has been set. func (o *AccountCreateNotification) GetExecutingUserKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ExecutingUserKey, true @@ -185,7 +185,7 @@ func (o *AccountCreateNotification) SetExecutingUserKey(v string) { // GetLive returns the Live field value func (o *AccountCreateNotification) GetLive() bool { - if o == nil { + if o == nil { var ret bool return ret } @@ -196,7 +196,7 @@ func (o *AccountCreateNotification) GetLive() bool { // GetLiveOk returns a tuple with the Live field value // and a boolean to check if the value has been set. func (o *AccountCreateNotification) GetLiveOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Live, true @@ -209,7 +209,7 @@ func (o *AccountCreateNotification) SetLive(v bool) { // GetPspReference returns the PspReference field value func (o *AccountCreateNotification) GetPspReference() string { - if o == nil { + if o == nil { var ret string return ret } @@ -220,7 +220,7 @@ func (o *AccountCreateNotification) GetPspReference() string { // GetPspReferenceOk returns a tuple with the PspReference field value // and a boolean to check if the value has been set. func (o *AccountCreateNotification) GetPspReferenceOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.PspReference, true @@ -292,5 +292,3 @@ func (v *NullableAccountCreateNotification) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_account_event.go b/src/platformsnotificationevents/model_account_event.go index 25c0b5ad1..d772e44a2 100644 --- a/src/platformsnotificationevents/model_account_event.go +++ b/src/platformsnotificationevents/model_account_event.go @@ -30,7 +30,7 @@ type AccountEvent 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 NewAccountEvent(event string, executionDate time.Time, reason string, ) *AccountEvent { +func NewAccountEvent(event string, executionDate time.Time, reason string) *AccountEvent { this := AccountEvent{} this.Event = event this.ExecutionDate = executionDate @@ -48,7 +48,7 @@ func NewAccountEventWithDefaults() *AccountEvent { // GetEvent returns the Event field value func (o *AccountEvent) GetEvent() string { - if o == nil { + if o == nil { var ret string return ret } @@ -59,7 +59,7 @@ func (o *AccountEvent) GetEvent() string { // GetEventOk returns a tuple with the Event field value // and a boolean to check if the value has been set. func (o *AccountEvent) GetEventOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Event, true @@ -72,7 +72,7 @@ func (o *AccountEvent) SetEvent(v string) { // GetExecutionDate returns the ExecutionDate field value func (o *AccountEvent) GetExecutionDate() time.Time { - if o == nil { + if o == nil { var ret time.Time return ret } @@ -83,7 +83,7 @@ func (o *AccountEvent) GetExecutionDate() time.Time { // GetExecutionDateOk returns a tuple with the ExecutionDate field value // and a boolean to check if the value has been set. func (o *AccountEvent) GetExecutionDateOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ExecutionDate, true @@ -96,7 +96,7 @@ func (o *AccountEvent) SetExecutionDate(v time.Time) { // GetReason returns the Reason field value func (o *AccountEvent) GetReason() string { - if o == nil { + if o == nil { var ret string return ret } @@ -107,7 +107,7 @@ func (o *AccountEvent) GetReason() string { // GetReasonOk returns a tuple with the Reason field value // and a boolean to check if the value has been set. func (o *AccountEvent) GetReasonOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Reason, true @@ -167,5 +167,3 @@ func (v *NullableAccountEvent) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_account_funds_below_threshold_notification.go b/src/platformsnotificationevents/model_account_funds_below_threshold_notification.go index 8a92e4d49..6fb62b0b6 100644 --- a/src/platformsnotificationevents/model_account_funds_below_threshold_notification.go +++ b/src/platformsnotificationevents/model_account_funds_below_threshold_notification.go @@ -19,7 +19,7 @@ import ( // AccountFundsBelowThresholdNotification struct for AccountFundsBelowThresholdNotification type AccountFundsBelowThresholdNotification struct { Content *AccountFundsBelowThresholdNotificationContent `json:"content,omitempty"` - Error *NotificationErrorContainer `json:"error,omitempty"` + Error *NotificationErrorContainer `json:"error,omitempty"` // The date and time when an event has been completed. EventDate time.Time `json:"eventDate"` // The event type of the notification. @@ -36,7 +36,7 @@ type AccountFundsBelowThresholdNotification 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 NewAccountFundsBelowThresholdNotification(eventDate time.Time, eventType string, executingUserKey string, live bool, pspReference string, ) *AccountFundsBelowThresholdNotification { +func NewAccountFundsBelowThresholdNotification(eventDate time.Time, eventType string, executingUserKey string, live bool, pspReference string) *AccountFundsBelowThresholdNotification { this := AccountFundsBelowThresholdNotification{} this.EventDate = eventDate this.EventType = eventType @@ -120,7 +120,7 @@ func (o *AccountFundsBelowThresholdNotification) SetError(v NotificationErrorCon // GetEventDate returns the EventDate field value func (o *AccountFundsBelowThresholdNotification) GetEventDate() time.Time { - if o == nil { + if o == nil { var ret time.Time return ret } @@ -131,7 +131,7 @@ func (o *AccountFundsBelowThresholdNotification) GetEventDate() time.Time { // GetEventDateOk returns a tuple with the EventDate field value // and a boolean to check if the value has been set. func (o *AccountFundsBelowThresholdNotification) GetEventDateOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return &o.EventDate, true @@ -144,7 +144,7 @@ func (o *AccountFundsBelowThresholdNotification) SetEventDate(v time.Time) { // GetEventType returns the EventType field value func (o *AccountFundsBelowThresholdNotification) GetEventType() string { - if o == nil { + if o == nil { var ret string return ret } @@ -155,7 +155,7 @@ func (o *AccountFundsBelowThresholdNotification) GetEventType() string { // GetEventTypeOk returns a tuple with the EventType field value // and a boolean to check if the value has been set. func (o *AccountFundsBelowThresholdNotification) GetEventTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.EventType, true @@ -168,7 +168,7 @@ func (o *AccountFundsBelowThresholdNotification) SetEventType(v string) { // GetExecutingUserKey returns the ExecutingUserKey field value func (o *AccountFundsBelowThresholdNotification) GetExecutingUserKey() string { - if o == nil { + if o == nil { var ret string return ret } @@ -179,7 +179,7 @@ func (o *AccountFundsBelowThresholdNotification) GetExecutingUserKey() string { // GetExecutingUserKeyOk returns a tuple with the ExecutingUserKey field value // and a boolean to check if the value has been set. func (o *AccountFundsBelowThresholdNotification) GetExecutingUserKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ExecutingUserKey, true @@ -192,7 +192,7 @@ func (o *AccountFundsBelowThresholdNotification) SetExecutingUserKey(v string) { // GetLive returns the Live field value func (o *AccountFundsBelowThresholdNotification) GetLive() bool { - if o == nil { + if o == nil { var ret bool return ret } @@ -203,7 +203,7 @@ func (o *AccountFundsBelowThresholdNotification) GetLive() bool { // GetLiveOk returns a tuple with the Live field value // and a boolean to check if the value has been set. func (o *AccountFundsBelowThresholdNotification) GetLiveOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Live, true @@ -216,7 +216,7 @@ func (o *AccountFundsBelowThresholdNotification) SetLive(v bool) { // GetPspReference returns the PspReference field value func (o *AccountFundsBelowThresholdNotification) GetPspReference() string { - if o == nil { + if o == nil { var ret string return ret } @@ -227,7 +227,7 @@ func (o *AccountFundsBelowThresholdNotification) GetPspReference() string { // GetPspReferenceOk returns a tuple with the PspReference field value // and a boolean to check if the value has been set. func (o *AccountFundsBelowThresholdNotification) GetPspReferenceOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.PspReference, true @@ -299,5 +299,3 @@ func (v *NullableAccountFundsBelowThresholdNotification) UnmarshalJSON(src []byt v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_account_funds_below_threshold_notification_content.go b/src/platformsnotificationevents/model_account_funds_below_threshold_notification_content.go index 9033212e3..d6289d694 100644 --- a/src/platformsnotificationevents/model_account_funds_below_threshold_notification_content.go +++ b/src/platformsnotificationevents/model_account_funds_below_threshold_notification_content.go @@ -18,10 +18,10 @@ import ( // AccountFundsBelowThresholdNotificationContent struct for AccountFundsBelowThresholdNotificationContent type AccountFundsBelowThresholdNotificationContent struct { // The code of the account with funds under threshold - AccountCode string `json:"accountCode"` - BalanceDate *LocalDate `json:"balanceDate,omitempty"` - CurrentFunds *Amount `json:"currentFunds,omitempty"` - FundThreshold Amount `json:"fundThreshold"` + AccountCode string `json:"accountCode"` + BalanceDate *LocalDate `json:"balanceDate,omitempty"` + CurrentFunds *Amount `json:"currentFunds,omitempty"` + FundThreshold Amount `json:"fundThreshold"` // The code of the merchant account. MerchantAccountCode string `json:"merchantAccountCode"` } @@ -30,7 +30,7 @@ type AccountFundsBelowThresholdNotificationContent 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 NewAccountFundsBelowThresholdNotificationContent(accountCode string, fundThreshold Amount, merchantAccountCode string, ) *AccountFundsBelowThresholdNotificationContent { +func NewAccountFundsBelowThresholdNotificationContent(accountCode string, fundThreshold Amount, merchantAccountCode string) *AccountFundsBelowThresholdNotificationContent { this := AccountFundsBelowThresholdNotificationContent{} this.AccountCode = accountCode this.FundThreshold = fundThreshold @@ -48,7 +48,7 @@ func NewAccountFundsBelowThresholdNotificationContentWithDefaults() *AccountFund // GetAccountCode returns the AccountCode field value func (o *AccountFundsBelowThresholdNotificationContent) GetAccountCode() string { - if o == nil { + if o == nil { var ret string return ret } @@ -59,7 +59,7 @@ func (o *AccountFundsBelowThresholdNotificationContent) GetAccountCode() string // GetAccountCodeOk returns a tuple with the AccountCode field value // and a boolean to check if the value has been set. func (o *AccountFundsBelowThresholdNotificationContent) GetAccountCodeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.AccountCode, true @@ -136,7 +136,7 @@ func (o *AccountFundsBelowThresholdNotificationContent) SetCurrentFunds(v Amount // GetFundThreshold returns the FundThreshold field value func (o *AccountFundsBelowThresholdNotificationContent) GetFundThreshold() Amount { - if o == nil { + if o == nil { var ret Amount return ret } @@ -147,7 +147,7 @@ func (o *AccountFundsBelowThresholdNotificationContent) GetFundThreshold() Amoun // GetFundThresholdOk returns a tuple with the FundThreshold field value // and a boolean to check if the value has been set. func (o *AccountFundsBelowThresholdNotificationContent) GetFundThresholdOk() (*Amount, bool) { - if o == nil { + if o == nil { return nil, false } return &o.FundThreshold, true @@ -160,7 +160,7 @@ func (o *AccountFundsBelowThresholdNotificationContent) SetFundThreshold(v Amoun // GetMerchantAccountCode returns the MerchantAccountCode field value func (o *AccountFundsBelowThresholdNotificationContent) GetMerchantAccountCode() string { - if o == nil { + if o == nil { var ret string return ret } @@ -171,7 +171,7 @@ func (o *AccountFundsBelowThresholdNotificationContent) GetMerchantAccountCode() // GetMerchantAccountCodeOk returns a tuple with the MerchantAccountCode field value // and a boolean to check if the value has been set. func (o *AccountFundsBelowThresholdNotificationContent) GetMerchantAccountCodeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.MerchantAccountCode, true @@ -237,5 +237,3 @@ func (v *NullableAccountFundsBelowThresholdNotificationContent) UnmarshalJSON(sr v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_account_holder_create_notification.go b/src/platformsnotificationevents/model_account_holder_create_notification.go index 2d135a7c9..05fe12b34 100644 --- a/src/platformsnotificationevents/model_account_holder_create_notification.go +++ b/src/platformsnotificationevents/model_account_holder_create_notification.go @@ -19,7 +19,7 @@ import ( // AccountHolderCreateNotification struct for AccountHolderCreateNotification type AccountHolderCreateNotification struct { Content CreateAccountHolderResponse `json:"content"` - Error *NotificationErrorContainer `json:"error,omitempty"` + Error *NotificationErrorContainer `json:"error,omitempty"` // The date and time when an event has been completed. EventDate time.Time `json:"eventDate"` // The event type of the notification. @@ -36,7 +36,7 @@ type AccountHolderCreateNotification 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 NewAccountHolderCreateNotification(content CreateAccountHolderResponse, eventDate time.Time, eventType string, executingUserKey string, live bool, pspReference string, ) *AccountHolderCreateNotification { +func NewAccountHolderCreateNotification(content CreateAccountHolderResponse, eventDate time.Time, eventType string, executingUserKey string, live bool, pspReference string) *AccountHolderCreateNotification { this := AccountHolderCreateNotification{} this.Content = content this.EventDate = eventDate @@ -57,7 +57,7 @@ func NewAccountHolderCreateNotificationWithDefaults() *AccountHolderCreateNotifi // GetContent returns the Content field value func (o *AccountHolderCreateNotification) GetContent() CreateAccountHolderResponse { - if o == nil { + if o == nil { var ret CreateAccountHolderResponse return ret } @@ -68,7 +68,7 @@ func (o *AccountHolderCreateNotification) GetContent() CreateAccountHolderRespon // GetContentOk returns a tuple with the Content field value // and a boolean to check if the value has been set. func (o *AccountHolderCreateNotification) GetContentOk() (*CreateAccountHolderResponse, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Content, true @@ -113,7 +113,7 @@ func (o *AccountHolderCreateNotification) SetError(v NotificationErrorContainer) // GetEventDate returns the EventDate field value func (o *AccountHolderCreateNotification) GetEventDate() time.Time { - if o == nil { + if o == nil { var ret time.Time return ret } @@ -124,7 +124,7 @@ func (o *AccountHolderCreateNotification) GetEventDate() time.Time { // GetEventDateOk returns a tuple with the EventDate field value // and a boolean to check if the value has been set. func (o *AccountHolderCreateNotification) GetEventDateOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return &o.EventDate, true @@ -137,7 +137,7 @@ func (o *AccountHolderCreateNotification) SetEventDate(v time.Time) { // GetEventType returns the EventType field value func (o *AccountHolderCreateNotification) GetEventType() string { - if o == nil { + if o == nil { var ret string return ret } @@ -148,7 +148,7 @@ func (o *AccountHolderCreateNotification) GetEventType() string { // GetEventTypeOk returns a tuple with the EventType field value // and a boolean to check if the value has been set. func (o *AccountHolderCreateNotification) GetEventTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.EventType, true @@ -161,7 +161,7 @@ func (o *AccountHolderCreateNotification) SetEventType(v string) { // GetExecutingUserKey returns the ExecutingUserKey field value func (o *AccountHolderCreateNotification) GetExecutingUserKey() string { - if o == nil { + if o == nil { var ret string return ret } @@ -172,7 +172,7 @@ func (o *AccountHolderCreateNotification) GetExecutingUserKey() string { // GetExecutingUserKeyOk returns a tuple with the ExecutingUserKey field value // and a boolean to check if the value has been set. func (o *AccountHolderCreateNotification) GetExecutingUserKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ExecutingUserKey, true @@ -185,7 +185,7 @@ func (o *AccountHolderCreateNotification) SetExecutingUserKey(v string) { // GetLive returns the Live field value func (o *AccountHolderCreateNotification) GetLive() bool { - if o == nil { + if o == nil { var ret bool return ret } @@ -196,7 +196,7 @@ func (o *AccountHolderCreateNotification) GetLive() bool { // GetLiveOk returns a tuple with the Live field value // and a boolean to check if the value has been set. func (o *AccountHolderCreateNotification) GetLiveOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Live, true @@ -209,7 +209,7 @@ func (o *AccountHolderCreateNotification) SetLive(v bool) { // GetPspReference returns the PspReference field value func (o *AccountHolderCreateNotification) GetPspReference() string { - if o == nil { + if o == nil { var ret string return ret } @@ -220,7 +220,7 @@ func (o *AccountHolderCreateNotification) GetPspReference() string { // GetPspReferenceOk returns a tuple with the PspReference field value // and a boolean to check if the value has been set. func (o *AccountHolderCreateNotification) GetPspReferenceOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.PspReference, true @@ -292,5 +292,3 @@ func (v *NullableAccountHolderCreateNotification) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_account_holder_details.go b/src/platformsnotificationevents/model_account_holder_details.go index db50c8f8b..38a569e7a 100644 --- a/src/platformsnotificationevents/model_account_holder_details.go +++ b/src/platformsnotificationevents/model_account_holder_details.go @@ -21,12 +21,12 @@ type AccountHolderDetails struct { // Each of the bank accounts associated with the account holder. > Each array entry should represent one bank account. > For comprehensive detail regarding the required `BankAccountDetail` fields, please refer to the [KYC Verification documentation](https://docs.adyen.com/platforms/onboarding-and-verification/verification-checks). BankAccountDetails *[]BankAccountDetail `json:"bankAccountDetails,omitempty"` // The opaque reference value returned by the Adyen API during bank account login. - BankAggregatorDataReference *string `json:"bankAggregatorDataReference,omitempty"` - BusinessDetails *BusinessDetails `json:"businessDetails,omitempty"` + BankAggregatorDataReference *string `json:"bankAggregatorDataReference,omitempty"` + BusinessDetails *BusinessDetails `json:"businessDetails,omitempty"` // The email address of the account holder. Email string `json:"email"` // The phone number of the account holder provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\" - FullPhoneNumber string `json:"fullPhoneNumber"` + FullPhoneNumber string `json:"fullPhoneNumber"` IndividualDetails *IndividualDetails `json:"individualDetails,omitempty"` // The Merchant Category Code of the account holder. > If not specified in the request, this will be derived from the platform account (which is configured by Adyen). MerchantCategoryCode *string `json:"merchantCategoryCode,omitempty"` @@ -42,7 +42,7 @@ type AccountHolderDetails 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 NewAccountHolderDetails(email string, fullPhoneNumber string, webAddress string, ) *AccountHolderDetails { +func NewAccountHolderDetails(email string, fullPhoneNumber string, webAddress string) *AccountHolderDetails { this := AccountHolderDetails{} this.Email = email this.FullPhoneNumber = fullPhoneNumber @@ -188,7 +188,7 @@ func (o *AccountHolderDetails) SetBusinessDetails(v BusinessDetails) { // GetEmail returns the Email field value func (o *AccountHolderDetails) GetEmail() string { - if o == nil { + if o == nil { var ret string return ret } @@ -199,7 +199,7 @@ func (o *AccountHolderDetails) GetEmail() string { // GetEmailOk returns a tuple with the Email field value // and a boolean to check if the value has been set. func (o *AccountHolderDetails) GetEmailOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Email, true @@ -212,7 +212,7 @@ func (o *AccountHolderDetails) SetEmail(v string) { // GetFullPhoneNumber returns the FullPhoneNumber field value func (o *AccountHolderDetails) GetFullPhoneNumber() string { - if o == nil { + if o == nil { var ret string return ret } @@ -223,7 +223,7 @@ func (o *AccountHolderDetails) GetFullPhoneNumber() string { // GetFullPhoneNumberOk returns a tuple with the FullPhoneNumber field value // and a boolean to check if the value has been set. func (o *AccountHolderDetails) GetFullPhoneNumberOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.FullPhoneNumber, true @@ -364,7 +364,7 @@ func (o *AccountHolderDetails) SetPayoutMethods(v []PayoutMethod) { // GetWebAddress returns the WebAddress field value func (o *AccountHolderDetails) GetWebAddress() string { - if o == nil { + if o == nil { var ret string return ret } @@ -375,7 +375,7 @@ func (o *AccountHolderDetails) GetWebAddress() string { // GetWebAddressOk returns a tuple with the WebAddress field value // and a boolean to check if the value has been set. func (o *AccountHolderDetails) GetWebAddressOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.WebAddress, true @@ -459,5 +459,3 @@ func (v *NullableAccountHolderDetails) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_account_holder_payout_notification.go b/src/platformsnotificationevents/model_account_holder_payout_notification.go index 39e505542..0fd259de6 100644 --- a/src/platformsnotificationevents/model_account_holder_payout_notification.go +++ b/src/platformsnotificationevents/model_account_holder_payout_notification.go @@ -19,7 +19,7 @@ import ( // AccountHolderPayoutNotification struct for AccountHolderPayoutNotification type AccountHolderPayoutNotification struct { Content AccountHolderPayoutNotificationContent `json:"content"` - Error *NotificationErrorContainer `json:"error,omitempty"` + Error *NotificationErrorContainer `json:"error,omitempty"` // The date and time when an event has been completed. EventDate time.Time `json:"eventDate"` // The event type of the notification. @@ -36,7 +36,7 @@ type AccountHolderPayoutNotification 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 NewAccountHolderPayoutNotification(content AccountHolderPayoutNotificationContent, eventDate time.Time, eventType string, executingUserKey string, live bool, pspReference string, ) *AccountHolderPayoutNotification { +func NewAccountHolderPayoutNotification(content AccountHolderPayoutNotificationContent, eventDate time.Time, eventType string, executingUserKey string, live bool, pspReference string) *AccountHolderPayoutNotification { this := AccountHolderPayoutNotification{} this.Content = content this.EventDate = eventDate @@ -57,7 +57,7 @@ func NewAccountHolderPayoutNotificationWithDefaults() *AccountHolderPayoutNotifi // GetContent returns the Content field value func (o *AccountHolderPayoutNotification) GetContent() AccountHolderPayoutNotificationContent { - if o == nil { + if o == nil { var ret AccountHolderPayoutNotificationContent return ret } @@ -68,7 +68,7 @@ func (o *AccountHolderPayoutNotification) GetContent() AccountHolderPayoutNotifi // GetContentOk returns a tuple with the Content field value // and a boolean to check if the value has been set. func (o *AccountHolderPayoutNotification) GetContentOk() (*AccountHolderPayoutNotificationContent, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Content, true @@ -113,7 +113,7 @@ func (o *AccountHolderPayoutNotification) SetError(v NotificationErrorContainer) // GetEventDate returns the EventDate field value func (o *AccountHolderPayoutNotification) GetEventDate() time.Time { - if o == nil { + if o == nil { var ret time.Time return ret } @@ -124,7 +124,7 @@ func (o *AccountHolderPayoutNotification) GetEventDate() time.Time { // GetEventDateOk returns a tuple with the EventDate field value // and a boolean to check if the value has been set. func (o *AccountHolderPayoutNotification) GetEventDateOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return &o.EventDate, true @@ -137,7 +137,7 @@ func (o *AccountHolderPayoutNotification) SetEventDate(v time.Time) { // GetEventType returns the EventType field value func (o *AccountHolderPayoutNotification) GetEventType() string { - if o == nil { + if o == nil { var ret string return ret } @@ -148,7 +148,7 @@ func (o *AccountHolderPayoutNotification) GetEventType() string { // GetEventTypeOk returns a tuple with the EventType field value // and a boolean to check if the value has been set. func (o *AccountHolderPayoutNotification) GetEventTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.EventType, true @@ -161,7 +161,7 @@ func (o *AccountHolderPayoutNotification) SetEventType(v string) { // GetExecutingUserKey returns the ExecutingUserKey field value func (o *AccountHolderPayoutNotification) GetExecutingUserKey() string { - if o == nil { + if o == nil { var ret string return ret } @@ -172,7 +172,7 @@ func (o *AccountHolderPayoutNotification) GetExecutingUserKey() string { // GetExecutingUserKeyOk returns a tuple with the ExecutingUserKey field value // and a boolean to check if the value has been set. func (o *AccountHolderPayoutNotification) GetExecutingUserKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ExecutingUserKey, true @@ -185,7 +185,7 @@ func (o *AccountHolderPayoutNotification) SetExecutingUserKey(v string) { // GetLive returns the Live field value func (o *AccountHolderPayoutNotification) GetLive() bool { - if o == nil { + if o == nil { var ret bool return ret } @@ -196,7 +196,7 @@ func (o *AccountHolderPayoutNotification) GetLive() bool { // GetLiveOk returns a tuple with the Live field value // and a boolean to check if the value has been set. func (o *AccountHolderPayoutNotification) GetLiveOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Live, true @@ -209,7 +209,7 @@ func (o *AccountHolderPayoutNotification) SetLive(v bool) { // GetPspReference returns the PspReference field value func (o *AccountHolderPayoutNotification) GetPspReference() string { - if o == nil { + if o == nil { var ret string return ret } @@ -220,7 +220,7 @@ func (o *AccountHolderPayoutNotification) GetPspReference() string { // GetPspReferenceOk returns a tuple with the PspReference field value // and a boolean to check if the value has been set. func (o *AccountHolderPayoutNotification) GetPspReferenceOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.PspReference, true @@ -292,5 +292,3 @@ func (v *NullableAccountHolderPayoutNotification) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_account_holder_payout_notification_content.go b/src/platformsnotificationevents/model_account_holder_payout_notification_content.go index 3a3ff4c60..f2b359a47 100644 --- a/src/platformsnotificationevents/model_account_holder_payout_notification_content.go +++ b/src/platformsnotificationevents/model_account_holder_payout_notification_content.go @@ -22,10 +22,10 @@ type AccountHolderPayoutNotificationContent struct { // The code of the Account Holder to which the payout was made. AccountHolderCode string `json:"accountHolderCode"` // The payout amounts (per currency). - Amounts *[]Amount `json:"amounts,omitempty"` + Amounts *[]Amount `json:"amounts,omitempty"` BankAccountDetail *BankAccountDetail `json:"bankAccountDetail,omitempty"` // A description of the payout. - Description *string `json:"description,omitempty"` + Description *string `json:"description,omitempty"` EstimatedArrivalDate *LocalDate `json:"estimatedArrivalDate,omitempty"` // Invalid fields list. InvalidFields *[]ErrorFieldType `json:"invalidFields,omitempty"` @@ -44,15 +44,15 @@ type AccountHolderPayoutNotificationContent struct { // Payout transaction id. PayoutReference *int64 `json:"payoutReference,omitempty"` // Speed with which payouts for this account are processed. Permitted values: `STANDARD`, `SAME_DAY`. - PayoutSpeed *string `json:"payoutSpeed,omitempty"` - Status *OperationStatus `json:"status,omitempty"` + PayoutSpeed *string `json:"payoutSpeed,omitempty"` + Status *OperationStatus `json:"status,omitempty"` } // NewAccountHolderPayoutNotificationContent instantiates a new AccountHolderPayoutNotificationContent 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 NewAccountHolderPayoutNotificationContent(accountCode string, accountHolderCode string, ) *AccountHolderPayoutNotificationContent { +func NewAccountHolderPayoutNotificationContent(accountCode string, accountHolderCode string) *AccountHolderPayoutNotificationContent { this := AccountHolderPayoutNotificationContent{} this.AccountCode = accountCode this.AccountHolderCode = accountHolderCode @@ -69,7 +69,7 @@ func NewAccountHolderPayoutNotificationContentWithDefaults() *AccountHolderPayou // GetAccountCode returns the AccountCode field value func (o *AccountHolderPayoutNotificationContent) GetAccountCode() string { - if o == nil { + if o == nil { var ret string return ret } @@ -80,7 +80,7 @@ func (o *AccountHolderPayoutNotificationContent) GetAccountCode() string { // GetAccountCodeOk returns a tuple with the AccountCode field value // and a boolean to check if the value has been set. func (o *AccountHolderPayoutNotificationContent) GetAccountCodeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.AccountCode, true @@ -93,7 +93,7 @@ func (o *AccountHolderPayoutNotificationContent) SetAccountCode(v string) { // GetAccountHolderCode returns the AccountHolderCode field value func (o *AccountHolderPayoutNotificationContent) GetAccountHolderCode() string { - if o == nil { + if o == nil { var ret string return ret } @@ -104,7 +104,7 @@ func (o *AccountHolderPayoutNotificationContent) GetAccountHolderCode() string { // GetAccountHolderCodeOk returns a tuple with the AccountHolderCode field value // and a boolean to check if the value has been set. func (o *AccountHolderPayoutNotificationContent) GetAccountHolderCodeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.AccountHolderCode, true @@ -651,5 +651,3 @@ func (v *NullableAccountHolderPayoutNotificationContent) UnmarshalJSON(src []byt v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_account_holder_status.go b/src/platformsnotificationevents/model_account_holder_status.go index 8ceafb45f..a2c851efd 100644 --- a/src/platformsnotificationevents/model_account_holder_status.go +++ b/src/platformsnotificationevents/model_account_holder_status.go @@ -18,8 +18,8 @@ import ( // AccountHolderStatus struct for AccountHolderStatus type AccountHolderStatus struct { // A list of events scheduled for the account holder. - Events *[]AccountEvent `json:"events,omitempty"` - PayoutState *AccountPayoutState `json:"payoutState,omitempty"` + Events *[]AccountEvent `json:"events,omitempty"` + PayoutState *AccountPayoutState `json:"payoutState,omitempty"` ProcessingState *AccountProcessingState `json:"processingState,omitempty"` // The status of the account holder. >Permitted values: `Active`, `Inactive`, `Suspended`, `Closed`. Status string `json:"status"` @@ -31,7 +31,7 @@ type AccountHolderStatus 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 NewAccountHolderStatus(status string, ) *AccountHolderStatus { +func NewAccountHolderStatus(status string) *AccountHolderStatus { this := AccountHolderStatus{} this.Status = status return &this @@ -143,7 +143,7 @@ func (o *AccountHolderStatus) SetProcessingState(v AccountProcessingState) { // GetStatus returns the Status field value func (o *AccountHolderStatus) GetStatus() string { - if o == nil { + if o == nil { var ret string return ret } @@ -154,7 +154,7 @@ func (o *AccountHolderStatus) GetStatus() string { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. func (o *AccountHolderStatus) GetStatusOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Status, true @@ -252,5 +252,3 @@ func (v *NullableAccountHolderStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_account_holder_status_change_notification.go b/src/platformsnotificationevents/model_account_holder_status_change_notification.go index 964c46e02..c39116cc8 100644 --- a/src/platformsnotificationevents/model_account_holder_status_change_notification.go +++ b/src/platformsnotificationevents/model_account_holder_status_change_notification.go @@ -19,7 +19,7 @@ import ( // AccountHolderStatusChangeNotification struct for AccountHolderStatusChangeNotification type AccountHolderStatusChangeNotification struct { Content *AccountHolderStatusChangeNotificationContent `json:"content,omitempty"` - Error *NotificationErrorContainer `json:"error,omitempty"` + Error *NotificationErrorContainer `json:"error,omitempty"` // The date and time when an event has been completed. EventDate time.Time `json:"eventDate"` // The event type of the notification. @@ -36,7 +36,7 @@ type AccountHolderStatusChangeNotification 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 NewAccountHolderStatusChangeNotification(eventDate time.Time, eventType string, executingUserKey string, live bool, pspReference string, ) *AccountHolderStatusChangeNotification { +func NewAccountHolderStatusChangeNotification(eventDate time.Time, eventType string, executingUserKey string, live bool, pspReference string) *AccountHolderStatusChangeNotification { this := AccountHolderStatusChangeNotification{} this.EventDate = eventDate this.EventType = eventType @@ -120,7 +120,7 @@ func (o *AccountHolderStatusChangeNotification) SetError(v NotificationErrorCont // GetEventDate returns the EventDate field value func (o *AccountHolderStatusChangeNotification) GetEventDate() time.Time { - if o == nil { + if o == nil { var ret time.Time return ret } @@ -131,7 +131,7 @@ func (o *AccountHolderStatusChangeNotification) GetEventDate() time.Time { // GetEventDateOk returns a tuple with the EventDate field value // and a boolean to check if the value has been set. func (o *AccountHolderStatusChangeNotification) GetEventDateOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return &o.EventDate, true @@ -144,7 +144,7 @@ func (o *AccountHolderStatusChangeNotification) SetEventDate(v time.Time) { // GetEventType returns the EventType field value func (o *AccountHolderStatusChangeNotification) GetEventType() string { - if o == nil { + if o == nil { var ret string return ret } @@ -155,7 +155,7 @@ func (o *AccountHolderStatusChangeNotification) GetEventType() string { // GetEventTypeOk returns a tuple with the EventType field value // and a boolean to check if the value has been set. func (o *AccountHolderStatusChangeNotification) GetEventTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.EventType, true @@ -168,7 +168,7 @@ func (o *AccountHolderStatusChangeNotification) SetEventType(v string) { // GetExecutingUserKey returns the ExecutingUserKey field value func (o *AccountHolderStatusChangeNotification) GetExecutingUserKey() string { - if o == nil { + if o == nil { var ret string return ret } @@ -179,7 +179,7 @@ func (o *AccountHolderStatusChangeNotification) GetExecutingUserKey() string { // GetExecutingUserKeyOk returns a tuple with the ExecutingUserKey field value // and a boolean to check if the value has been set. func (o *AccountHolderStatusChangeNotification) GetExecutingUserKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ExecutingUserKey, true @@ -192,7 +192,7 @@ func (o *AccountHolderStatusChangeNotification) SetExecutingUserKey(v string) { // GetLive returns the Live field value func (o *AccountHolderStatusChangeNotification) GetLive() bool { - if o == nil { + if o == nil { var ret bool return ret } @@ -203,7 +203,7 @@ func (o *AccountHolderStatusChangeNotification) GetLive() bool { // GetLiveOk returns a tuple with the Live field value // and a boolean to check if the value has been set. func (o *AccountHolderStatusChangeNotification) GetLiveOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Live, true @@ -216,7 +216,7 @@ func (o *AccountHolderStatusChangeNotification) SetLive(v bool) { // GetPspReference returns the PspReference field value func (o *AccountHolderStatusChangeNotification) GetPspReference() string { - if o == nil { + if o == nil { var ret string return ret } @@ -227,7 +227,7 @@ func (o *AccountHolderStatusChangeNotification) GetPspReference() string { // GetPspReferenceOk returns a tuple with the PspReference field value // and a boolean to check if the value has been set. func (o *AccountHolderStatusChangeNotification) GetPspReferenceOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.PspReference, true @@ -299,5 +299,3 @@ func (v *NullableAccountHolderStatusChangeNotification) UnmarshalJSON(src []byte v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_account_holder_status_change_notification_content.go b/src/platformsnotificationevents/model_account_holder_status_change_notification_content.go index b5aff74e0..5a05d894a 100644 --- a/src/platformsnotificationevents/model_account_holder_status_change_notification_content.go +++ b/src/platformsnotificationevents/model_account_holder_status_change_notification_content.go @@ -20,9 +20,9 @@ type AccountHolderStatusChangeNotificationContent struct { // The code of the account holder. AccountHolderCode string `json:"accountHolderCode"` // in case the account holder has not been updated, contains account holder fields, that did not pass the validation. - InvalidFields *[]ErrorFieldType `json:"invalidFields,omitempty"` - NewStatus AccountHolderStatus `json:"newStatus"` - OldStatus AccountHolderStatus `json:"oldStatus"` + InvalidFields *[]ErrorFieldType `json:"invalidFields,omitempty"` + NewStatus AccountHolderStatus `json:"newStatus"` + OldStatus AccountHolderStatus `json:"oldStatus"` // The reason for the status change. Reason *string `json:"reason,omitempty"` } @@ -31,7 +31,7 @@ type AccountHolderStatusChangeNotificationContent 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 NewAccountHolderStatusChangeNotificationContent(accountHolderCode string, newStatus AccountHolderStatus, oldStatus AccountHolderStatus, ) *AccountHolderStatusChangeNotificationContent { +func NewAccountHolderStatusChangeNotificationContent(accountHolderCode string, newStatus AccountHolderStatus, oldStatus AccountHolderStatus) *AccountHolderStatusChangeNotificationContent { this := AccountHolderStatusChangeNotificationContent{} this.AccountHolderCode = accountHolderCode this.NewStatus = newStatus @@ -49,7 +49,7 @@ func NewAccountHolderStatusChangeNotificationContentWithDefaults() *AccountHolde // GetAccountHolderCode returns the AccountHolderCode field value func (o *AccountHolderStatusChangeNotificationContent) GetAccountHolderCode() string { - if o == nil { + if o == nil { var ret string return ret } @@ -60,7 +60,7 @@ func (o *AccountHolderStatusChangeNotificationContent) GetAccountHolderCode() st // GetAccountHolderCodeOk returns a tuple with the AccountHolderCode field value // and a boolean to check if the value has been set. func (o *AccountHolderStatusChangeNotificationContent) GetAccountHolderCodeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.AccountHolderCode, true @@ -105,7 +105,7 @@ func (o *AccountHolderStatusChangeNotificationContent) SetInvalidFields(v []Erro // GetNewStatus returns the NewStatus field value func (o *AccountHolderStatusChangeNotificationContent) GetNewStatus() AccountHolderStatus { - if o == nil { + if o == nil { var ret AccountHolderStatus return ret } @@ -116,7 +116,7 @@ func (o *AccountHolderStatusChangeNotificationContent) GetNewStatus() AccountHol // GetNewStatusOk returns a tuple with the NewStatus field value // and a boolean to check if the value has been set. func (o *AccountHolderStatusChangeNotificationContent) GetNewStatusOk() (*AccountHolderStatus, bool) { - if o == nil { + if o == nil { return nil, false } return &o.NewStatus, true @@ -129,7 +129,7 @@ func (o *AccountHolderStatusChangeNotificationContent) SetNewStatus(v AccountHol // GetOldStatus returns the OldStatus field value func (o *AccountHolderStatusChangeNotificationContent) GetOldStatus() AccountHolderStatus { - if o == nil { + if o == nil { var ret AccountHolderStatus return ret } @@ -140,7 +140,7 @@ func (o *AccountHolderStatusChangeNotificationContent) GetOldStatus() AccountHol // GetOldStatusOk returns a tuple with the OldStatus field value // and a boolean to check if the value has been set. func (o *AccountHolderStatusChangeNotificationContent) GetOldStatusOk() (*AccountHolderStatus, bool) { - if o == nil { + if o == nil { return nil, false } return &o.OldStatus, true @@ -238,5 +238,3 @@ func (v *NullableAccountHolderStatusChangeNotificationContent) UnmarshalJSON(src v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_account_holder_store_status_change_notification.go b/src/platformsnotificationevents/model_account_holder_store_status_change_notification.go index c74e78911..269d7f2c6 100644 --- a/src/platformsnotificationevents/model_account_holder_store_status_change_notification.go +++ b/src/platformsnotificationevents/model_account_holder_store_status_change_notification.go @@ -19,7 +19,7 @@ import ( // AccountHolderStoreStatusChangeNotification struct for AccountHolderStoreStatusChangeNotification type AccountHolderStoreStatusChangeNotification struct { Content *AccountHolderStoreStatusChangeNotificationContent `json:"content,omitempty"` - Error *NotificationErrorContainer `json:"error,omitempty"` + Error *NotificationErrorContainer `json:"error,omitempty"` // The date and time when an event has been completed. EventDate time.Time `json:"eventDate"` // The event type of the notification. @@ -36,7 +36,7 @@ type AccountHolderStoreStatusChangeNotification 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 NewAccountHolderStoreStatusChangeNotification(eventDate time.Time, eventType string, executingUserKey string, live bool, pspReference string, ) *AccountHolderStoreStatusChangeNotification { +func NewAccountHolderStoreStatusChangeNotification(eventDate time.Time, eventType string, executingUserKey string, live bool, pspReference string) *AccountHolderStoreStatusChangeNotification { this := AccountHolderStoreStatusChangeNotification{} this.EventDate = eventDate this.EventType = eventType @@ -120,7 +120,7 @@ func (o *AccountHolderStoreStatusChangeNotification) SetError(v NotificationErro // GetEventDate returns the EventDate field value func (o *AccountHolderStoreStatusChangeNotification) GetEventDate() time.Time { - if o == nil { + if o == nil { var ret time.Time return ret } @@ -131,7 +131,7 @@ func (o *AccountHolderStoreStatusChangeNotification) GetEventDate() time.Time { // GetEventDateOk returns a tuple with the EventDate field value // and a boolean to check if the value has been set. func (o *AccountHolderStoreStatusChangeNotification) GetEventDateOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return &o.EventDate, true @@ -144,7 +144,7 @@ func (o *AccountHolderStoreStatusChangeNotification) SetEventDate(v time.Time) { // GetEventType returns the EventType field value func (o *AccountHolderStoreStatusChangeNotification) GetEventType() string { - if o == nil { + if o == nil { var ret string return ret } @@ -155,7 +155,7 @@ func (o *AccountHolderStoreStatusChangeNotification) GetEventType() string { // GetEventTypeOk returns a tuple with the EventType field value // and a boolean to check if the value has been set. func (o *AccountHolderStoreStatusChangeNotification) GetEventTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.EventType, true @@ -168,7 +168,7 @@ func (o *AccountHolderStoreStatusChangeNotification) SetEventType(v string) { // GetExecutingUserKey returns the ExecutingUserKey field value func (o *AccountHolderStoreStatusChangeNotification) GetExecutingUserKey() string { - if o == nil { + if o == nil { var ret string return ret } @@ -179,7 +179,7 @@ func (o *AccountHolderStoreStatusChangeNotification) GetExecutingUserKey() strin // GetExecutingUserKeyOk returns a tuple with the ExecutingUserKey field value // and a boolean to check if the value has been set. func (o *AccountHolderStoreStatusChangeNotification) GetExecutingUserKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ExecutingUserKey, true @@ -192,7 +192,7 @@ func (o *AccountHolderStoreStatusChangeNotification) SetExecutingUserKey(v strin // GetLive returns the Live field value func (o *AccountHolderStoreStatusChangeNotification) GetLive() bool { - if o == nil { + if o == nil { var ret bool return ret } @@ -203,7 +203,7 @@ func (o *AccountHolderStoreStatusChangeNotification) GetLive() bool { // GetLiveOk returns a tuple with the Live field value // and a boolean to check if the value has been set. func (o *AccountHolderStoreStatusChangeNotification) GetLiveOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Live, true @@ -216,7 +216,7 @@ func (o *AccountHolderStoreStatusChangeNotification) SetLive(v bool) { // GetPspReference returns the PspReference field value func (o *AccountHolderStoreStatusChangeNotification) GetPspReference() string { - if o == nil { + if o == nil { var ret string return ret } @@ -227,7 +227,7 @@ func (o *AccountHolderStoreStatusChangeNotification) GetPspReference() string { // GetPspReferenceOk returns a tuple with the PspReference field value // and a boolean to check if the value has been set. func (o *AccountHolderStoreStatusChangeNotification) GetPspReferenceOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.PspReference, true @@ -299,5 +299,3 @@ func (v *NullableAccountHolderStoreStatusChangeNotification) UnmarshalJSON(src [ v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_account_holder_store_status_change_notification_content.go b/src/platformsnotificationevents/model_account_holder_store_status_change_notification_content.go index 46e34fa07..ac1ed7e03 100644 --- a/src/platformsnotificationevents/model_account_holder_store_status_change_notification_content.go +++ b/src/platformsnotificationevents/model_account_holder_store_status_change_notification_content.go @@ -37,7 +37,7 @@ type AccountHolderStoreStatusChangeNotificationContent 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 NewAccountHolderStoreStatusChangeNotificationContent(accountHolderCode string, newStatus string, oldStatus string, store string, storeReference string, ) *AccountHolderStoreStatusChangeNotificationContent { +func NewAccountHolderStoreStatusChangeNotificationContent(accountHolderCode string, newStatus string, oldStatus string, store string, storeReference string) *AccountHolderStoreStatusChangeNotificationContent { this := AccountHolderStoreStatusChangeNotificationContent{} this.AccountHolderCode = accountHolderCode this.NewStatus = newStatus @@ -57,7 +57,7 @@ func NewAccountHolderStoreStatusChangeNotificationContentWithDefaults() *Account // GetAccountHolderCode returns the AccountHolderCode field value func (o *AccountHolderStoreStatusChangeNotificationContent) GetAccountHolderCode() string { - if o == nil { + if o == nil { var ret string return ret } @@ -68,7 +68,7 @@ func (o *AccountHolderStoreStatusChangeNotificationContent) GetAccountHolderCode // GetAccountHolderCodeOk returns a tuple with the AccountHolderCode field value // and a boolean to check if the value has been set. func (o *AccountHolderStoreStatusChangeNotificationContent) GetAccountHolderCodeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.AccountHolderCode, true @@ -113,7 +113,7 @@ func (o *AccountHolderStoreStatusChangeNotificationContent) SetInvalidFields(v [ // GetNewStatus returns the NewStatus field value func (o *AccountHolderStoreStatusChangeNotificationContent) GetNewStatus() string { - if o == nil { + if o == nil { var ret string return ret } @@ -124,7 +124,7 @@ func (o *AccountHolderStoreStatusChangeNotificationContent) GetNewStatus() strin // GetNewStatusOk returns a tuple with the NewStatus field value // and a boolean to check if the value has been set. func (o *AccountHolderStoreStatusChangeNotificationContent) GetNewStatusOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.NewStatus, true @@ -137,7 +137,7 @@ func (o *AccountHolderStoreStatusChangeNotificationContent) SetNewStatus(v strin // GetOldStatus returns the OldStatus field value func (o *AccountHolderStoreStatusChangeNotificationContent) GetOldStatus() string { - if o == nil { + if o == nil { var ret string return ret } @@ -148,7 +148,7 @@ func (o *AccountHolderStoreStatusChangeNotificationContent) GetOldStatus() strin // GetOldStatusOk returns a tuple with the OldStatus field value // and a boolean to check if the value has been set. func (o *AccountHolderStoreStatusChangeNotificationContent) GetOldStatusOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.OldStatus, true @@ -193,7 +193,7 @@ func (o *AccountHolderStoreStatusChangeNotificationContent) SetReason(v string) // GetStore returns the Store field value func (o *AccountHolderStoreStatusChangeNotificationContent) GetStore() string { - if o == nil { + if o == nil { var ret string return ret } @@ -204,7 +204,7 @@ func (o *AccountHolderStoreStatusChangeNotificationContent) GetStore() string { // GetStoreOk returns a tuple with the Store field value // and a boolean to check if the value has been set. func (o *AccountHolderStoreStatusChangeNotificationContent) GetStoreOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Store, true @@ -217,7 +217,7 @@ func (o *AccountHolderStoreStatusChangeNotificationContent) SetStore(v string) { // GetStoreReference returns the StoreReference field value func (o *AccountHolderStoreStatusChangeNotificationContent) GetStoreReference() string { - if o == nil { + if o == nil { var ret string return ret } @@ -228,7 +228,7 @@ func (o *AccountHolderStoreStatusChangeNotificationContent) GetStoreReference() // GetStoreReferenceOk returns a tuple with the StoreReference field value // and a boolean to check if the value has been set. func (o *AccountHolderStoreStatusChangeNotificationContent) GetStoreReferenceOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.StoreReference, true @@ -300,5 +300,3 @@ func (v *NullableAccountHolderStoreStatusChangeNotificationContent) UnmarshalJSO v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_account_holder_upcoming_deadline_notification.go b/src/platformsnotificationevents/model_account_holder_upcoming_deadline_notification.go index d23ab751e..97367f6dd 100644 --- a/src/platformsnotificationevents/model_account_holder_upcoming_deadline_notification.go +++ b/src/platformsnotificationevents/model_account_holder_upcoming_deadline_notification.go @@ -19,7 +19,7 @@ import ( // AccountHolderUpcomingDeadlineNotification struct for AccountHolderUpcomingDeadlineNotification type AccountHolderUpcomingDeadlineNotification struct { Content *AccountHolderUpcomingDeadlineNotificationContent `json:"content,omitempty"` - Error *NotificationErrorContainer `json:"error,omitempty"` + Error *NotificationErrorContainer `json:"error,omitempty"` // The date and time when an event has been completed. EventDate time.Time `json:"eventDate"` // The event type of the notification. @@ -36,7 +36,7 @@ type AccountHolderUpcomingDeadlineNotification 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 NewAccountHolderUpcomingDeadlineNotification(eventDate time.Time, eventType string, executingUserKey string, live bool, pspReference string, ) *AccountHolderUpcomingDeadlineNotification { +func NewAccountHolderUpcomingDeadlineNotification(eventDate time.Time, eventType string, executingUserKey string, live bool, pspReference string) *AccountHolderUpcomingDeadlineNotification { this := AccountHolderUpcomingDeadlineNotification{} this.EventDate = eventDate this.EventType = eventType @@ -120,7 +120,7 @@ func (o *AccountHolderUpcomingDeadlineNotification) SetError(v NotificationError // GetEventDate returns the EventDate field value func (o *AccountHolderUpcomingDeadlineNotification) GetEventDate() time.Time { - if o == nil { + if o == nil { var ret time.Time return ret } @@ -131,7 +131,7 @@ func (o *AccountHolderUpcomingDeadlineNotification) GetEventDate() time.Time { // GetEventDateOk returns a tuple with the EventDate field value // and a boolean to check if the value has been set. func (o *AccountHolderUpcomingDeadlineNotification) GetEventDateOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return &o.EventDate, true @@ -144,7 +144,7 @@ func (o *AccountHolderUpcomingDeadlineNotification) SetEventDate(v time.Time) { // GetEventType returns the EventType field value func (o *AccountHolderUpcomingDeadlineNotification) GetEventType() string { - if o == nil { + if o == nil { var ret string return ret } @@ -155,7 +155,7 @@ func (o *AccountHolderUpcomingDeadlineNotification) GetEventType() string { // GetEventTypeOk returns a tuple with the EventType field value // and a boolean to check if the value has been set. func (o *AccountHolderUpcomingDeadlineNotification) GetEventTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.EventType, true @@ -168,7 +168,7 @@ func (o *AccountHolderUpcomingDeadlineNotification) SetEventType(v string) { // GetExecutingUserKey returns the ExecutingUserKey field value func (o *AccountHolderUpcomingDeadlineNotification) GetExecutingUserKey() string { - if o == nil { + if o == nil { var ret string return ret } @@ -179,7 +179,7 @@ func (o *AccountHolderUpcomingDeadlineNotification) GetExecutingUserKey() string // GetExecutingUserKeyOk returns a tuple with the ExecutingUserKey field value // and a boolean to check if the value has been set. func (o *AccountHolderUpcomingDeadlineNotification) GetExecutingUserKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ExecutingUserKey, true @@ -192,7 +192,7 @@ func (o *AccountHolderUpcomingDeadlineNotification) SetExecutingUserKey(v string // GetLive returns the Live field value func (o *AccountHolderUpcomingDeadlineNotification) GetLive() bool { - if o == nil { + if o == nil { var ret bool return ret } @@ -203,7 +203,7 @@ func (o *AccountHolderUpcomingDeadlineNotification) GetLive() bool { // GetLiveOk returns a tuple with the Live field value // and a boolean to check if the value has been set. func (o *AccountHolderUpcomingDeadlineNotification) GetLiveOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Live, true @@ -216,7 +216,7 @@ func (o *AccountHolderUpcomingDeadlineNotification) SetLive(v bool) { // GetPspReference returns the PspReference field value func (o *AccountHolderUpcomingDeadlineNotification) GetPspReference() string { - if o == nil { + if o == nil { var ret string return ret } @@ -227,7 +227,7 @@ func (o *AccountHolderUpcomingDeadlineNotification) GetPspReference() string { // GetPspReferenceOk returns a tuple with the PspReference field value // and a boolean to check if the value has been set. func (o *AccountHolderUpcomingDeadlineNotification) GetPspReferenceOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.PspReference, true @@ -299,5 +299,3 @@ func (v *NullableAccountHolderUpcomingDeadlineNotification) UnmarshalJSON(src [] v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_account_holder_upcoming_deadline_notification_content.go b/src/platformsnotificationevents/model_account_holder_upcoming_deadline_notification_content.go index a2ce192ba..eebc88326 100644 --- a/src/platformsnotificationevents/model_account_holder_upcoming_deadline_notification_content.go +++ b/src/platformsnotificationevents/model_account_holder_upcoming_deadline_notification_content.go @@ -20,7 +20,7 @@ type AccountHolderUpcomingDeadlineNotificationContent struct { // The code of the account holder whom the event refers to. AccountHolderCode *string `json:"accountHolderCode,omitempty"` // The event name that will be trigger if no action is taken. - Event *string `json:"event,omitempty"` + Event *string `json:"event,omitempty"` ExecutionDate *LocalDate `json:"executionDate,omitempty"` // The reason that leads to scheduling of the event. Reason *string `json:"reason,omitempty"` @@ -223,5 +223,3 @@ func (v *NullableAccountHolderUpcomingDeadlineNotificationContent) UnmarshalJSON v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_account_holder_update_notification.go b/src/platformsnotificationevents/model_account_holder_update_notification.go index 895df1747..459b8d666 100644 --- a/src/platformsnotificationevents/model_account_holder_update_notification.go +++ b/src/platformsnotificationevents/model_account_holder_update_notification.go @@ -19,7 +19,7 @@ import ( // AccountHolderUpdateNotification struct for AccountHolderUpdateNotification type AccountHolderUpdateNotification struct { Content UpdateAccountHolderResponse `json:"content"` - Error *NotificationErrorContainer `json:"error,omitempty"` + Error *NotificationErrorContainer `json:"error,omitempty"` // The date and time when an event has been completed. EventDate time.Time `json:"eventDate"` // The event type of the notification. @@ -36,7 +36,7 @@ type AccountHolderUpdateNotification 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 NewAccountHolderUpdateNotification(content UpdateAccountHolderResponse, eventDate time.Time, eventType string, executingUserKey string, live bool, pspReference string, ) *AccountHolderUpdateNotification { +func NewAccountHolderUpdateNotification(content UpdateAccountHolderResponse, eventDate time.Time, eventType string, executingUserKey string, live bool, pspReference string) *AccountHolderUpdateNotification { this := AccountHolderUpdateNotification{} this.Content = content this.EventDate = eventDate @@ -57,7 +57,7 @@ func NewAccountHolderUpdateNotificationWithDefaults() *AccountHolderUpdateNotifi // GetContent returns the Content field value func (o *AccountHolderUpdateNotification) GetContent() UpdateAccountHolderResponse { - if o == nil { + if o == nil { var ret UpdateAccountHolderResponse return ret } @@ -68,7 +68,7 @@ func (o *AccountHolderUpdateNotification) GetContent() UpdateAccountHolderRespon // GetContentOk returns a tuple with the Content field value // and a boolean to check if the value has been set. func (o *AccountHolderUpdateNotification) GetContentOk() (*UpdateAccountHolderResponse, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Content, true @@ -113,7 +113,7 @@ func (o *AccountHolderUpdateNotification) SetError(v NotificationErrorContainer) // GetEventDate returns the EventDate field value func (o *AccountHolderUpdateNotification) GetEventDate() time.Time { - if o == nil { + if o == nil { var ret time.Time return ret } @@ -124,7 +124,7 @@ func (o *AccountHolderUpdateNotification) GetEventDate() time.Time { // GetEventDateOk returns a tuple with the EventDate field value // and a boolean to check if the value has been set. func (o *AccountHolderUpdateNotification) GetEventDateOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return &o.EventDate, true @@ -137,7 +137,7 @@ func (o *AccountHolderUpdateNotification) SetEventDate(v time.Time) { // GetEventType returns the EventType field value func (o *AccountHolderUpdateNotification) GetEventType() string { - if o == nil { + if o == nil { var ret string return ret } @@ -148,7 +148,7 @@ func (o *AccountHolderUpdateNotification) GetEventType() string { // GetEventTypeOk returns a tuple with the EventType field value // and a boolean to check if the value has been set. func (o *AccountHolderUpdateNotification) GetEventTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.EventType, true @@ -161,7 +161,7 @@ func (o *AccountHolderUpdateNotification) SetEventType(v string) { // GetExecutingUserKey returns the ExecutingUserKey field value func (o *AccountHolderUpdateNotification) GetExecutingUserKey() string { - if o == nil { + if o == nil { var ret string return ret } @@ -172,7 +172,7 @@ func (o *AccountHolderUpdateNotification) GetExecutingUserKey() string { // GetExecutingUserKeyOk returns a tuple with the ExecutingUserKey field value // and a boolean to check if the value has been set. func (o *AccountHolderUpdateNotification) GetExecutingUserKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ExecutingUserKey, true @@ -185,7 +185,7 @@ func (o *AccountHolderUpdateNotification) SetExecutingUserKey(v string) { // GetLive returns the Live field value func (o *AccountHolderUpdateNotification) GetLive() bool { - if o == nil { + if o == nil { var ret bool return ret } @@ -196,7 +196,7 @@ func (o *AccountHolderUpdateNotification) GetLive() bool { // GetLiveOk returns a tuple with the Live field value // and a boolean to check if the value has been set. func (o *AccountHolderUpdateNotification) GetLiveOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Live, true @@ -209,7 +209,7 @@ func (o *AccountHolderUpdateNotification) SetLive(v bool) { // GetPspReference returns the PspReference field value func (o *AccountHolderUpdateNotification) GetPspReference() string { - if o == nil { + if o == nil { var ret string return ret } @@ -220,7 +220,7 @@ func (o *AccountHolderUpdateNotification) GetPspReference() string { // GetPspReferenceOk returns a tuple with the PspReference field value // and a boolean to check if the value has been set. func (o *AccountHolderUpdateNotification) GetPspReferenceOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.PspReference, true @@ -292,5 +292,3 @@ func (v *NullableAccountHolderUpdateNotification) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_account_holder_verification_notification.go b/src/platformsnotificationevents/model_account_holder_verification_notification.go index 8c1731401..e355b0855 100644 --- a/src/platformsnotificationevents/model_account_holder_verification_notification.go +++ b/src/platformsnotificationevents/model_account_holder_verification_notification.go @@ -19,7 +19,7 @@ import ( // AccountHolderVerificationNotification struct for AccountHolderVerificationNotification type AccountHolderVerificationNotification struct { Content AccountHolderVerificationNotificationContent `json:"content"` - Error *NotificationErrorContainer `json:"error,omitempty"` + Error *NotificationErrorContainer `json:"error,omitempty"` // The date and time when an event has been completed. EventDate time.Time `json:"eventDate"` // The event type of the notification. @@ -36,7 +36,7 @@ type AccountHolderVerificationNotification 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 NewAccountHolderVerificationNotification(content AccountHolderVerificationNotificationContent, eventDate time.Time, eventType string, executingUserKey string, live bool, pspReference string, ) *AccountHolderVerificationNotification { +func NewAccountHolderVerificationNotification(content AccountHolderVerificationNotificationContent, eventDate time.Time, eventType string, executingUserKey string, live bool, pspReference string) *AccountHolderVerificationNotification { this := AccountHolderVerificationNotification{} this.Content = content this.EventDate = eventDate @@ -57,7 +57,7 @@ func NewAccountHolderVerificationNotificationWithDefaults() *AccountHolderVerifi // GetContent returns the Content field value func (o *AccountHolderVerificationNotification) GetContent() AccountHolderVerificationNotificationContent { - if o == nil { + if o == nil { var ret AccountHolderVerificationNotificationContent return ret } @@ -68,7 +68,7 @@ func (o *AccountHolderVerificationNotification) GetContent() AccountHolderVerifi // GetContentOk returns a tuple with the Content field value // and a boolean to check if the value has been set. func (o *AccountHolderVerificationNotification) GetContentOk() (*AccountHolderVerificationNotificationContent, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Content, true @@ -113,7 +113,7 @@ func (o *AccountHolderVerificationNotification) SetError(v NotificationErrorCont // GetEventDate returns the EventDate field value func (o *AccountHolderVerificationNotification) GetEventDate() time.Time { - if o == nil { + if o == nil { var ret time.Time return ret } @@ -124,7 +124,7 @@ func (o *AccountHolderVerificationNotification) GetEventDate() time.Time { // GetEventDateOk returns a tuple with the EventDate field value // and a boolean to check if the value has been set. func (o *AccountHolderVerificationNotification) GetEventDateOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return &o.EventDate, true @@ -137,7 +137,7 @@ func (o *AccountHolderVerificationNotification) SetEventDate(v time.Time) { // GetEventType returns the EventType field value func (o *AccountHolderVerificationNotification) GetEventType() string { - if o == nil { + if o == nil { var ret string return ret } @@ -148,7 +148,7 @@ func (o *AccountHolderVerificationNotification) GetEventType() string { // GetEventTypeOk returns a tuple with the EventType field value // and a boolean to check if the value has been set. func (o *AccountHolderVerificationNotification) GetEventTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.EventType, true @@ -161,7 +161,7 @@ func (o *AccountHolderVerificationNotification) SetEventType(v string) { // GetExecutingUserKey returns the ExecutingUserKey field value func (o *AccountHolderVerificationNotification) GetExecutingUserKey() string { - if o == nil { + if o == nil { var ret string return ret } @@ -172,7 +172,7 @@ func (o *AccountHolderVerificationNotification) GetExecutingUserKey() string { // GetExecutingUserKeyOk returns a tuple with the ExecutingUserKey field value // and a boolean to check if the value has been set. func (o *AccountHolderVerificationNotification) GetExecutingUserKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ExecutingUserKey, true @@ -185,7 +185,7 @@ func (o *AccountHolderVerificationNotification) SetExecutingUserKey(v string) { // GetLive returns the Live field value func (o *AccountHolderVerificationNotification) GetLive() bool { - if o == nil { + if o == nil { var ret bool return ret } @@ -196,7 +196,7 @@ func (o *AccountHolderVerificationNotification) GetLive() bool { // GetLiveOk returns a tuple with the Live field value // and a boolean to check if the value has been set. func (o *AccountHolderVerificationNotification) GetLiveOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Live, true @@ -209,7 +209,7 @@ func (o *AccountHolderVerificationNotification) SetLive(v bool) { // GetPspReference returns the PspReference field value func (o *AccountHolderVerificationNotification) GetPspReference() string { - if o == nil { + if o == nil { var ret string return ret } @@ -220,7 +220,7 @@ func (o *AccountHolderVerificationNotification) GetPspReference() string { // GetPspReferenceOk returns a tuple with the PspReference field value // and a boolean to check if the value has been set. func (o *AccountHolderVerificationNotification) GetPspReferenceOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.PspReference, true @@ -292,5 +292,3 @@ func (v *NullableAccountHolderVerificationNotification) UnmarshalJSON(src []byte v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_account_holder_verification_notification_content.go b/src/platformsnotificationevents/model_account_holder_verification_notification_content.go index 8cda9bab3..dd90d3387 100644 --- a/src/platformsnotificationevents/model_account_holder_verification_notification_content.go +++ b/src/platformsnotificationevents/model_account_holder_verification_notification_content.go @@ -18,7 +18,7 @@ import ( // AccountHolderVerificationNotificationContent struct for AccountHolderVerificationNotificationContent type AccountHolderVerificationNotificationContent struct { // The code of the account holder. - AccountHolderCode string `json:"accountHolderCode"` + AccountHolderCode string `json:"accountHolderCode"` KycCheckStatusData *KYCCheckStatusData `json:"kycCheckStatusData,omitempty"` // The unique code of the payout method that has been verified. PayoutMethodCode *string `json:"payoutMethodCode,omitempty"` @@ -30,7 +30,7 @@ type AccountHolderVerificationNotificationContent 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 NewAccountHolderVerificationNotificationContent(accountHolderCode string, ) *AccountHolderVerificationNotificationContent { +func NewAccountHolderVerificationNotificationContent(accountHolderCode string) *AccountHolderVerificationNotificationContent { this := AccountHolderVerificationNotificationContent{} this.AccountHolderCode = accountHolderCode return &this @@ -46,7 +46,7 @@ func NewAccountHolderVerificationNotificationContentWithDefaults() *AccountHolde // GetAccountHolderCode returns the AccountHolderCode field value func (o *AccountHolderVerificationNotificationContent) GetAccountHolderCode() string { - if o == nil { + if o == nil { var ret string return ret } @@ -57,7 +57,7 @@ func (o *AccountHolderVerificationNotificationContent) GetAccountHolderCode() st // GetAccountHolderCodeOk returns a tuple with the AccountHolderCode field value // and a boolean to check if the value has been set. func (o *AccountHolderVerificationNotificationContent) GetAccountHolderCodeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.AccountHolderCode, true @@ -216,5 +216,3 @@ func (v *NullableAccountHolderVerificationNotificationContent) UnmarshalJSON(src v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_account_payout_state.go b/src/platformsnotificationevents/model_account_payout_state.go index 55eb1e99e..a53c1dce2 100644 --- a/src/platformsnotificationevents/model_account_payout_state.go +++ b/src/platformsnotificationevents/model_account_payout_state.go @@ -25,7 +25,7 @@ type AccountPayoutState struct { Disabled *bool `json:"disabled,omitempty"` // The reason why payouts (to all of the account holder's accounts) have been disabled (by Adyen). If payouts have been disabled by Adyen, this field will explain why. If this field is blank, payouts have not been disabled by Adyen. NotAllowedReason *string `json:"notAllowedReason,omitempty"` - PayoutLimit *Amount `json:"payoutLimit,omitempty"` + PayoutLimit *Amount `json:"payoutLimit,omitempty"` // The payout tier that the account holder occupies. TierNumber *int32 `json:"tierNumber,omitempty"` } @@ -297,5 +297,3 @@ func (v *NullableAccountPayoutState) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_account_processing_state.go b/src/platformsnotificationevents/model_account_processing_state.go index d90d2432e..f50fae17c 100644 --- a/src/platformsnotificationevents/model_account_processing_state.go +++ b/src/platformsnotificationevents/model_account_processing_state.go @@ -20,9 +20,9 @@ type AccountProcessingState struct { // The reason why processing has been disabled. DisableReason *string `json:"disableReason,omitempty"` // Indicates whether the processing of payments is allowed. - Disabled *bool `json:"disabled,omitempty"` + Disabled *bool `json:"disabled,omitempty"` ProcessedFrom *Amount `json:"processedFrom,omitempty"` - ProcessedTo *Amount `json:"processedTo,omitempty"` + ProcessedTo *Amount `json:"processedTo,omitempty"` // The processing tier that the account holder occupies. TierNumber *int32 `json:"tierNumber,omitempty"` } @@ -259,5 +259,3 @@ func (v *NullableAccountProcessingState) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_account_update_notification.go b/src/platformsnotificationevents/model_account_update_notification.go index e879e65c8..8f14950a7 100644 --- a/src/platformsnotificationevents/model_account_update_notification.go +++ b/src/platformsnotificationevents/model_account_update_notification.go @@ -18,8 +18,8 @@ import ( // AccountUpdateNotification struct for AccountUpdateNotification type AccountUpdateNotification struct { - Content UpdateAccountResponse `json:"content"` - Error *NotificationErrorContainer `json:"error,omitempty"` + Content UpdateAccountResponse `json:"content"` + Error *NotificationErrorContainer `json:"error,omitempty"` // The date and time when an event has been completed. EventDate time.Time `json:"eventDate"` // The event type of the notification. @@ -36,7 +36,7 @@ type AccountUpdateNotification 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 NewAccountUpdateNotification(content UpdateAccountResponse, eventDate time.Time, eventType string, executingUserKey string, live bool, pspReference string, ) *AccountUpdateNotification { +func NewAccountUpdateNotification(content UpdateAccountResponse, eventDate time.Time, eventType string, executingUserKey string, live bool, pspReference string) *AccountUpdateNotification { this := AccountUpdateNotification{} this.Content = content this.EventDate = eventDate @@ -57,7 +57,7 @@ func NewAccountUpdateNotificationWithDefaults() *AccountUpdateNotification { // GetContent returns the Content field value func (o *AccountUpdateNotification) GetContent() UpdateAccountResponse { - if o == nil { + if o == nil { var ret UpdateAccountResponse return ret } @@ -68,7 +68,7 @@ func (o *AccountUpdateNotification) GetContent() UpdateAccountResponse { // GetContentOk returns a tuple with the Content field value // and a boolean to check if the value has been set. func (o *AccountUpdateNotification) GetContentOk() (*UpdateAccountResponse, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Content, true @@ -113,7 +113,7 @@ func (o *AccountUpdateNotification) SetError(v NotificationErrorContainer) { // GetEventDate returns the EventDate field value func (o *AccountUpdateNotification) GetEventDate() time.Time { - if o == nil { + if o == nil { var ret time.Time return ret } @@ -124,7 +124,7 @@ func (o *AccountUpdateNotification) GetEventDate() time.Time { // GetEventDateOk returns a tuple with the EventDate field value // and a boolean to check if the value has been set. func (o *AccountUpdateNotification) GetEventDateOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return &o.EventDate, true @@ -137,7 +137,7 @@ func (o *AccountUpdateNotification) SetEventDate(v time.Time) { // GetEventType returns the EventType field value func (o *AccountUpdateNotification) GetEventType() string { - if o == nil { + if o == nil { var ret string return ret } @@ -148,7 +148,7 @@ func (o *AccountUpdateNotification) GetEventType() string { // GetEventTypeOk returns a tuple with the EventType field value // and a boolean to check if the value has been set. func (o *AccountUpdateNotification) GetEventTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.EventType, true @@ -161,7 +161,7 @@ func (o *AccountUpdateNotification) SetEventType(v string) { // GetExecutingUserKey returns the ExecutingUserKey field value func (o *AccountUpdateNotification) GetExecutingUserKey() string { - if o == nil { + if o == nil { var ret string return ret } @@ -172,7 +172,7 @@ func (o *AccountUpdateNotification) GetExecutingUserKey() string { // GetExecutingUserKeyOk returns a tuple with the ExecutingUserKey field value // and a boolean to check if the value has been set. func (o *AccountUpdateNotification) GetExecutingUserKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ExecutingUserKey, true @@ -185,7 +185,7 @@ func (o *AccountUpdateNotification) SetExecutingUserKey(v string) { // GetLive returns the Live field value func (o *AccountUpdateNotification) GetLive() bool { - if o == nil { + if o == nil { var ret bool return ret } @@ -196,7 +196,7 @@ func (o *AccountUpdateNotification) GetLive() bool { // GetLiveOk returns a tuple with the Live field value // and a boolean to check if the value has been set. func (o *AccountUpdateNotification) GetLiveOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Live, true @@ -209,7 +209,7 @@ func (o *AccountUpdateNotification) SetLive(v bool) { // GetPspReference returns the PspReference field value func (o *AccountUpdateNotification) GetPspReference() string { - if o == nil { + if o == nil { var ret string return ret } @@ -220,7 +220,7 @@ func (o *AccountUpdateNotification) GetPspReference() string { // GetPspReferenceOk returns a tuple with the PspReference field value // and a boolean to check if the value has been set. func (o *AccountUpdateNotification) GetPspReferenceOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.PspReference, true @@ -292,5 +292,3 @@ func (v *NullableAccountUpdateNotification) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_amount.go b/src/platformsnotificationevents/model_amount.go index b2d2c2ad7..87b2c3e08 100644 --- a/src/platformsnotificationevents/model_amount.go +++ b/src/platformsnotificationevents/model_amount.go @@ -27,7 +27,7 @@ type Amount 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 NewAmount(currency string, value int64, ) *Amount { +func NewAmount(currency string, value int64) *Amount { this := Amount{} this.Currency = currency this.Value = value @@ -44,7 +44,7 @@ func NewAmountWithDefaults() *Amount { // GetCurrency returns the Currency field value func (o *Amount) GetCurrency() string { - if o == nil { + if o == nil { var ret string return ret } @@ -55,7 +55,7 @@ func (o *Amount) GetCurrency() string { // 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 { + if o == nil { return nil, false } return &o.Currency, true @@ -68,7 +68,7 @@ func (o *Amount) SetCurrency(v string) { // GetValue returns the Value field value func (o *Amount) GetValue() int64 { - if o == nil { + if o == nil { var ret int64 return ret } @@ -79,7 +79,7 @@ func (o *Amount) GetValue() int64 { // 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 { + if o == nil { return nil, false } return &o.Value, true @@ -136,5 +136,3 @@ func (v *NullableAmount) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_bank_account_detail.go b/src/platformsnotificationevents/model_bank_account_detail.go index 15367ec75..e7a03ba60 100644 --- a/src/platformsnotificationevents/model_bank_account_detail.go +++ b/src/platformsnotificationevents/model_bank_account_detail.go @@ -25,7 +25,7 @@ type BankAccountDetail struct { BankAccountName *string `json:"bankAccountName,omitempty"` // Merchant reference to the bank account. BankAccountReference *string `json:"bankAccountReference,omitempty"` - // The unique identifier (UUID) of the Bank Account. >If, during an account holder create or update request, this field is left blank (but other fields provided), a new Bank Account will be created with a procedurally-generated UUID. >If, during an account holder create request, a UUID is provided, the creation of the Bank Account will fail while the creation of the account holder will continue. >If, during an account holder update request, a UUID that is not correlated with an existing Bank Account is provided, the update of the account holder will fail. >If, during an account holder update request, a UUID that is correlated with an existing Bank Account is provided, the existing Bank Account will be updated. + // The unique identifier (UUID) of the Bank Account. >If, during an account holder create or update request, this field is left blank (but other fields provided), a new Bank Account will be created with a procedurally-generated UUID. >If, during an account holder create request, a UUID is provided, the creation of the Bank Account will fail while the creation of the account holder will continue. >If, during an account holder update request, a UUID that is not correlated with an existing Bank Account is provided, the update of the account holder will fail. >If, during an account holder update request, a UUID that is correlated with an existing Bank Account is provided, the existing Bank Account will be updated. BankAccountUUID *string `json:"bankAccountUUID,omitempty"` // The bank identifier code. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. BankBicSwift *string `json:"bankBicSwift,omitempty"` @@ -49,7 +49,7 @@ type BankAccountDetail struct { OwnerCity *string `json:"ownerCity,omitempty"` // The country code of the country of residence of the bank account owner. >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. 'NL'). >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. OwnerCountryCode *string `json:"ownerCountryCode,omitempty"` - // The date of birth of the bank account owner. + // The date of birth of the bank account owner. OwnerDateOfBirth *string `json:"ownerDateOfBirth,omitempty"` // The house name or number of the residence of the bank account owner. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. OwnerHouseNumberOrName *string `json:"ownerHouseNumberOrName,omitempty"` @@ -1038,5 +1038,3 @@ func (v *NullableBankAccountDetail) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_beneficiary_setup_notification.go b/src/platformsnotificationevents/model_beneficiary_setup_notification.go index 245e7c297..375cb01cb 100644 --- a/src/platformsnotificationevents/model_beneficiary_setup_notification.go +++ b/src/platformsnotificationevents/model_beneficiary_setup_notification.go @@ -19,7 +19,7 @@ import ( // BeneficiarySetupNotification struct for BeneficiarySetupNotification type BeneficiarySetupNotification struct { Content BeneficiarySetupNotificationContent `json:"content"` - Error *NotificationErrorContainer `json:"error,omitempty"` + Error *NotificationErrorContainer `json:"error,omitempty"` // The date and time when an event has been completed. EventDate time.Time `json:"eventDate"` // The event type of the notification. @@ -36,7 +36,7 @@ type BeneficiarySetupNotification 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 NewBeneficiarySetupNotification(content BeneficiarySetupNotificationContent, eventDate time.Time, eventType string, executingUserKey string, live bool, pspReference string, ) *BeneficiarySetupNotification { +func NewBeneficiarySetupNotification(content BeneficiarySetupNotificationContent, eventDate time.Time, eventType string, executingUserKey string, live bool, pspReference string) *BeneficiarySetupNotification { this := BeneficiarySetupNotification{} this.Content = content this.EventDate = eventDate @@ -57,7 +57,7 @@ func NewBeneficiarySetupNotificationWithDefaults() *BeneficiarySetupNotification // GetContent returns the Content field value func (o *BeneficiarySetupNotification) GetContent() BeneficiarySetupNotificationContent { - if o == nil { + if o == nil { var ret BeneficiarySetupNotificationContent return ret } @@ -68,7 +68,7 @@ func (o *BeneficiarySetupNotification) GetContent() BeneficiarySetupNotification // GetContentOk returns a tuple with the Content field value // and a boolean to check if the value has been set. func (o *BeneficiarySetupNotification) GetContentOk() (*BeneficiarySetupNotificationContent, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Content, true @@ -113,7 +113,7 @@ func (o *BeneficiarySetupNotification) SetError(v NotificationErrorContainer) { // GetEventDate returns the EventDate field value func (o *BeneficiarySetupNotification) GetEventDate() time.Time { - if o == nil { + if o == nil { var ret time.Time return ret } @@ -124,7 +124,7 @@ func (o *BeneficiarySetupNotification) GetEventDate() time.Time { // GetEventDateOk returns a tuple with the EventDate field value // and a boolean to check if the value has been set. func (o *BeneficiarySetupNotification) GetEventDateOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return &o.EventDate, true @@ -137,7 +137,7 @@ func (o *BeneficiarySetupNotification) SetEventDate(v time.Time) { // GetEventType returns the EventType field value func (o *BeneficiarySetupNotification) GetEventType() string { - if o == nil { + if o == nil { var ret string return ret } @@ -148,7 +148,7 @@ func (o *BeneficiarySetupNotification) GetEventType() string { // GetEventTypeOk returns a tuple with the EventType field value // and a boolean to check if the value has been set. func (o *BeneficiarySetupNotification) GetEventTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.EventType, true @@ -161,7 +161,7 @@ func (o *BeneficiarySetupNotification) SetEventType(v string) { // GetExecutingUserKey returns the ExecutingUserKey field value func (o *BeneficiarySetupNotification) GetExecutingUserKey() string { - if o == nil { + if o == nil { var ret string return ret } @@ -172,7 +172,7 @@ func (o *BeneficiarySetupNotification) GetExecutingUserKey() string { // GetExecutingUserKeyOk returns a tuple with the ExecutingUserKey field value // and a boolean to check if the value has been set. func (o *BeneficiarySetupNotification) GetExecutingUserKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ExecutingUserKey, true @@ -185,7 +185,7 @@ func (o *BeneficiarySetupNotification) SetExecutingUserKey(v string) { // GetLive returns the Live field value func (o *BeneficiarySetupNotification) GetLive() bool { - if o == nil { + if o == nil { var ret bool return ret } @@ -196,7 +196,7 @@ func (o *BeneficiarySetupNotification) GetLive() bool { // GetLiveOk returns a tuple with the Live field value // and a boolean to check if the value has been set. func (o *BeneficiarySetupNotification) GetLiveOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Live, true @@ -209,7 +209,7 @@ func (o *BeneficiarySetupNotification) SetLive(v bool) { // GetPspReference returns the PspReference field value func (o *BeneficiarySetupNotification) GetPspReference() string { - if o == nil { + if o == nil { var ret string return ret } @@ -220,7 +220,7 @@ func (o *BeneficiarySetupNotification) GetPspReference() string { // GetPspReferenceOk returns a tuple with the PspReference field value // and a boolean to check if the value has been set. func (o *BeneficiarySetupNotification) GetPspReferenceOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.PspReference, true @@ -292,5 +292,3 @@ func (v *NullableBeneficiarySetupNotification) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_beneficiary_setup_notification_content.go b/src/platformsnotificationevents/model_beneficiary_setup_notification_content.go index 73882c2f0..fceee62a6 100644 --- a/src/platformsnotificationevents/model_beneficiary_setup_notification_content.go +++ b/src/platformsnotificationevents/model_beneficiary_setup_notification_content.go @@ -38,7 +38,7 @@ type BeneficiarySetupNotificationContent 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 NewBeneficiarySetupNotificationContent(destinationAccountCode string, destinationAccountHolderCode string, sourceAccountCode string, sourceAccountHolderCode string, transferDate time.Time, ) *BeneficiarySetupNotificationContent { +func NewBeneficiarySetupNotificationContent(destinationAccountCode string, destinationAccountHolderCode string, sourceAccountCode string, sourceAccountHolderCode string, transferDate time.Time) *BeneficiarySetupNotificationContent { this := BeneficiarySetupNotificationContent{} this.DestinationAccountCode = destinationAccountCode this.DestinationAccountHolderCode = destinationAccountHolderCode @@ -58,7 +58,7 @@ func NewBeneficiarySetupNotificationContentWithDefaults() *BeneficiarySetupNotif // GetDestinationAccountCode returns the DestinationAccountCode field value func (o *BeneficiarySetupNotificationContent) GetDestinationAccountCode() string { - if o == nil { + if o == nil { var ret string return ret } @@ -69,7 +69,7 @@ func (o *BeneficiarySetupNotificationContent) GetDestinationAccountCode() string // GetDestinationAccountCodeOk returns a tuple with the DestinationAccountCode field value // and a boolean to check if the value has been set. func (o *BeneficiarySetupNotificationContent) GetDestinationAccountCodeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.DestinationAccountCode, true @@ -82,7 +82,7 @@ func (o *BeneficiarySetupNotificationContent) SetDestinationAccountCode(v string // GetDestinationAccountHolderCode returns the DestinationAccountHolderCode field value func (o *BeneficiarySetupNotificationContent) GetDestinationAccountHolderCode() string { - if o == nil { + if o == nil { var ret string return ret } @@ -93,7 +93,7 @@ func (o *BeneficiarySetupNotificationContent) GetDestinationAccountHolderCode() // GetDestinationAccountHolderCodeOk returns a tuple with the DestinationAccountHolderCode field value // and a boolean to check if the value has been set. func (o *BeneficiarySetupNotificationContent) GetDestinationAccountHolderCodeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.DestinationAccountHolderCode, true @@ -170,7 +170,7 @@ func (o *BeneficiarySetupNotificationContent) SetMerchantReference(v string) { // GetSourceAccountCode returns the SourceAccountCode field value func (o *BeneficiarySetupNotificationContent) GetSourceAccountCode() string { - if o == nil { + if o == nil { var ret string return ret } @@ -181,7 +181,7 @@ func (o *BeneficiarySetupNotificationContent) GetSourceAccountCode() string { // GetSourceAccountCodeOk returns a tuple with the SourceAccountCode field value // and a boolean to check if the value has been set. func (o *BeneficiarySetupNotificationContent) GetSourceAccountCodeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.SourceAccountCode, true @@ -194,7 +194,7 @@ func (o *BeneficiarySetupNotificationContent) SetSourceAccountCode(v string) { // GetSourceAccountHolderCode returns the SourceAccountHolderCode field value func (o *BeneficiarySetupNotificationContent) GetSourceAccountHolderCode() string { - if o == nil { + if o == nil { var ret string return ret } @@ -205,7 +205,7 @@ func (o *BeneficiarySetupNotificationContent) GetSourceAccountHolderCode() strin // GetSourceAccountHolderCodeOk returns a tuple with the SourceAccountHolderCode field value // and a boolean to check if the value has been set. func (o *BeneficiarySetupNotificationContent) GetSourceAccountHolderCodeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.SourceAccountHolderCode, true @@ -218,7 +218,7 @@ func (o *BeneficiarySetupNotificationContent) SetSourceAccountHolderCode(v strin // GetTransferDate returns the TransferDate field value func (o *BeneficiarySetupNotificationContent) GetTransferDate() time.Time { - if o == nil { + if o == nil { var ret time.Time return ret } @@ -229,7 +229,7 @@ func (o *BeneficiarySetupNotificationContent) GetTransferDate() time.Time { // GetTransferDateOk returns a tuple with the TransferDate field value // and a boolean to check if the value has been set. func (o *BeneficiarySetupNotificationContent) GetTransferDateOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return &o.TransferDate, true @@ -301,5 +301,3 @@ func (v *NullableBeneficiarySetupNotificationContent) UnmarshalJSON(src []byte) v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_business_details.go b/src/platformsnotificationevents/model_business_details.go index ee3bc66a6..1f9695a6e 100644 --- a/src/platformsnotificationevents/model_business_details.go +++ b/src/platformsnotificationevents/model_business_details.go @@ -372,5 +372,3 @@ func (v *NullableBusinessDetails) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_close_account_response.go b/src/platformsnotificationevents/model_close_account_response.go index bd02bcf1f..b1415680c 100644 --- a/src/platformsnotificationevents/model_close_account_response.go +++ b/src/platformsnotificationevents/model_close_account_response.go @@ -33,7 +33,7 @@ type CloseAccountResponse 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 NewCloseAccountResponse(status string, ) *CloseAccountResponse { +func NewCloseAccountResponse(status string) *CloseAccountResponse { this := CloseAccountResponse{} this.Status = status return &this @@ -177,7 +177,7 @@ func (o *CloseAccountResponse) SetResultCode(v string) { // GetStatus returns the Status field value func (o *CloseAccountResponse) GetStatus() string { - if o == nil { + if o == nil { var ret string return ret } @@ -188,7 +188,7 @@ func (o *CloseAccountResponse) GetStatus() string { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. func (o *CloseAccountResponse) GetStatusOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Status, true @@ -254,5 +254,3 @@ func (v *NullableCloseAccountResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_compensate_negative_balance_notification.go b/src/platformsnotificationevents/model_compensate_negative_balance_notification.go index 0212a0eeb..2c9265006 100644 --- a/src/platformsnotificationevents/model_compensate_negative_balance_notification.go +++ b/src/platformsnotificationevents/model_compensate_negative_balance_notification.go @@ -19,7 +19,7 @@ import ( // CompensateNegativeBalanceNotification struct for CompensateNegativeBalanceNotification type CompensateNegativeBalanceNotification struct { Content *CompensateNegativeBalanceNotificationContent `json:"content,omitempty"` - Error *NotificationErrorContainer `json:"error,omitempty"` + Error *NotificationErrorContainer `json:"error,omitempty"` // The date and time when an event has been completed. EventDate time.Time `json:"eventDate"` // The event type of the notification. @@ -36,7 +36,7 @@ type CompensateNegativeBalanceNotification 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 NewCompensateNegativeBalanceNotification(eventDate time.Time, eventType string, executingUserKey string, live bool, pspReference string, ) *CompensateNegativeBalanceNotification { +func NewCompensateNegativeBalanceNotification(eventDate time.Time, eventType string, executingUserKey string, live bool, pspReference string) *CompensateNegativeBalanceNotification { this := CompensateNegativeBalanceNotification{} this.EventDate = eventDate this.EventType = eventType @@ -120,7 +120,7 @@ func (o *CompensateNegativeBalanceNotification) SetError(v NotificationErrorCont // GetEventDate returns the EventDate field value func (o *CompensateNegativeBalanceNotification) GetEventDate() time.Time { - if o == nil { + if o == nil { var ret time.Time return ret } @@ -131,7 +131,7 @@ func (o *CompensateNegativeBalanceNotification) GetEventDate() time.Time { // GetEventDateOk returns a tuple with the EventDate field value // and a boolean to check if the value has been set. func (o *CompensateNegativeBalanceNotification) GetEventDateOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return &o.EventDate, true @@ -144,7 +144,7 @@ func (o *CompensateNegativeBalanceNotification) SetEventDate(v time.Time) { // GetEventType returns the EventType field value func (o *CompensateNegativeBalanceNotification) GetEventType() string { - if o == nil { + if o == nil { var ret string return ret } @@ -155,7 +155,7 @@ func (o *CompensateNegativeBalanceNotification) GetEventType() string { // GetEventTypeOk returns a tuple with the EventType field value // and a boolean to check if the value has been set. func (o *CompensateNegativeBalanceNotification) GetEventTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.EventType, true @@ -168,7 +168,7 @@ func (o *CompensateNegativeBalanceNotification) SetEventType(v string) { // GetExecutingUserKey returns the ExecutingUserKey field value func (o *CompensateNegativeBalanceNotification) GetExecutingUserKey() string { - if o == nil { + if o == nil { var ret string return ret } @@ -179,7 +179,7 @@ func (o *CompensateNegativeBalanceNotification) GetExecutingUserKey() string { // GetExecutingUserKeyOk returns a tuple with the ExecutingUserKey field value // and a boolean to check if the value has been set. func (o *CompensateNegativeBalanceNotification) GetExecutingUserKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ExecutingUserKey, true @@ -192,7 +192,7 @@ func (o *CompensateNegativeBalanceNotification) SetExecutingUserKey(v string) { // GetLive returns the Live field value func (o *CompensateNegativeBalanceNotification) GetLive() bool { - if o == nil { + if o == nil { var ret bool return ret } @@ -203,7 +203,7 @@ func (o *CompensateNegativeBalanceNotification) GetLive() bool { // GetLiveOk returns a tuple with the Live field value // and a boolean to check if the value has been set. func (o *CompensateNegativeBalanceNotification) GetLiveOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Live, true @@ -216,7 +216,7 @@ func (o *CompensateNegativeBalanceNotification) SetLive(v bool) { // GetPspReference returns the PspReference field value func (o *CompensateNegativeBalanceNotification) GetPspReference() string { - if o == nil { + if o == nil { var ret string return ret } @@ -227,7 +227,7 @@ func (o *CompensateNegativeBalanceNotification) GetPspReference() string { // GetPspReferenceOk returns a tuple with the PspReference field value // and a boolean to check if the value has been set. func (o *CompensateNegativeBalanceNotification) GetPspReferenceOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.PspReference, true @@ -299,5 +299,3 @@ func (v *NullableCompensateNegativeBalanceNotification) UnmarshalJSON(src []byte v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_compensate_negative_balance_notification_content.go b/src/platformsnotificationevents/model_compensate_negative_balance_notification_content.go index 6def86255..648ae6b9a 100644 --- a/src/platformsnotificationevents/model_compensate_negative_balance_notification_content.go +++ b/src/platformsnotificationevents/model_compensate_negative_balance_notification_content.go @@ -25,7 +25,7 @@ type CompensateNegativeBalanceNotificationContent 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 NewCompensateNegativeBalanceNotificationContent(records []CompensateNegativeBalanceNotificationRecord, ) *CompensateNegativeBalanceNotificationContent { +func NewCompensateNegativeBalanceNotificationContent(records []CompensateNegativeBalanceNotificationRecord) *CompensateNegativeBalanceNotificationContent { this := CompensateNegativeBalanceNotificationContent{} this.Records = records return &this @@ -41,7 +41,7 @@ func NewCompensateNegativeBalanceNotificationContentWithDefaults() *CompensateNe // GetRecords returns the Records field value func (o *CompensateNegativeBalanceNotificationContent) GetRecords() []CompensateNegativeBalanceNotificationRecord { - if o == nil { + if o == nil { var ret []CompensateNegativeBalanceNotificationRecord return ret } @@ -52,7 +52,7 @@ func (o *CompensateNegativeBalanceNotificationContent) GetRecords() []Compensate // GetRecordsOk returns a tuple with the Records field value // and a boolean to check if the value has been set. func (o *CompensateNegativeBalanceNotificationContent) GetRecordsOk() (*[]CompensateNegativeBalanceNotificationRecord, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Records, true @@ -106,5 +106,3 @@ func (v *NullableCompensateNegativeBalanceNotificationContent) UnmarshalJSON(src v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_compensate_negative_balance_notification_record.go b/src/platformsnotificationevents/model_compensate_negative_balance_notification_record.go index af7b4fa9b..acbd64cc5 100644 --- a/src/platformsnotificationevents/model_compensate_negative_balance_notification_record.go +++ b/src/platformsnotificationevents/model_compensate_negative_balance_notification_record.go @@ -20,7 +20,7 @@ import ( type CompensateNegativeBalanceNotificationRecord struct { // The code of the account whose negative balance has been compensated. AccountCode string `json:"accountCode"` - Amount Amount `json:"amount"` + Amount Amount `json:"amount"` // The date on which the compensation took place. TransferDate time.Time `json:"transferDate"` } @@ -29,7 +29,7 @@ type CompensateNegativeBalanceNotificationRecord 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 NewCompensateNegativeBalanceNotificationRecord(accountCode string, amount Amount, transferDate time.Time, ) *CompensateNegativeBalanceNotificationRecord { +func NewCompensateNegativeBalanceNotificationRecord(accountCode string, amount Amount, transferDate time.Time) *CompensateNegativeBalanceNotificationRecord { this := CompensateNegativeBalanceNotificationRecord{} this.AccountCode = accountCode this.Amount = amount @@ -47,7 +47,7 @@ func NewCompensateNegativeBalanceNotificationRecordWithDefaults() *CompensateNeg // GetAccountCode returns the AccountCode field value func (o *CompensateNegativeBalanceNotificationRecord) GetAccountCode() string { - if o == nil { + if o == nil { var ret string return ret } @@ -58,7 +58,7 @@ func (o *CompensateNegativeBalanceNotificationRecord) GetAccountCode() string { // GetAccountCodeOk returns a tuple with the AccountCode field value // and a boolean to check if the value has been set. func (o *CompensateNegativeBalanceNotificationRecord) GetAccountCodeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.AccountCode, true @@ -71,7 +71,7 @@ func (o *CompensateNegativeBalanceNotificationRecord) SetAccountCode(v string) { // GetAmount returns the Amount field value func (o *CompensateNegativeBalanceNotificationRecord) GetAmount() Amount { - if o == nil { + if o == nil { var ret Amount return ret } @@ -82,7 +82,7 @@ func (o *CompensateNegativeBalanceNotificationRecord) GetAmount() Amount { // GetAmountOk returns a tuple with the Amount field value // and a boolean to check if the value has been set. func (o *CompensateNegativeBalanceNotificationRecord) GetAmountOk() (*Amount, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Amount, true @@ -95,7 +95,7 @@ func (o *CompensateNegativeBalanceNotificationRecord) SetAmount(v Amount) { // GetTransferDate returns the TransferDate field value func (o *CompensateNegativeBalanceNotificationRecord) GetTransferDate() time.Time { - if o == nil { + if o == nil { var ret time.Time return ret } @@ -106,7 +106,7 @@ func (o *CompensateNegativeBalanceNotificationRecord) GetTransferDate() time.Tim // GetTransferDateOk returns a tuple with the TransferDate field value // and a boolean to check if the value has been set. func (o *CompensateNegativeBalanceNotificationRecord) GetTransferDateOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return &o.TransferDate, true @@ -166,5 +166,3 @@ func (v *NullableCompensateNegativeBalanceNotificationRecord) UnmarshalJSON(src v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_create_account_holder_response.go b/src/platformsnotificationevents/model_create_account_holder_response.go index 7f311af6a..7c2bc1ff2 100644 --- a/src/platformsnotificationevents/model_create_account_holder_response.go +++ b/src/platformsnotificationevents/model_create_account_holder_response.go @@ -20,9 +20,9 @@ type CreateAccountHolderResponse struct { // The code of a new account created for the account holder. AccountCode *string `json:"accountCode,omitempty"` // The code of the new account holder. - AccountHolderCode string `json:"accountHolderCode"` + AccountHolderCode string `json:"accountHolderCode"` AccountHolderDetails AccountHolderDetails `json:"accountHolderDetails"` - AccountHolderStatus AccountHolderStatus `json:"accountHolderStatus"` + AccountHolderStatus AccountHolderStatus `json:"accountHolderStatus"` // The description of the new account holder. Description *string `json:"description,omitempty"` // A list of fields that caused the `/createAccountHolder` request to fail. @@ -34,7 +34,7 @@ type CreateAccountHolderResponse struct { // The reference of a request. Can be used to uniquely identify the request. PspReference *string `json:"pspReference,omitempty"` // The result code. - ResultCode *string `json:"resultCode,omitempty"` + ResultCode *string `json:"resultCode,omitempty"` Verification KYCVerificationResult `json:"verification"` // The identifier of the profile that applies to this entity. VerificationProfile *string `json:"verificationProfile,omitempty"` @@ -44,7 +44,7 @@ type CreateAccountHolderResponse 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 NewCreateAccountHolderResponse(accountHolderCode string, accountHolderDetails AccountHolderDetails, accountHolderStatus AccountHolderStatus, legalEntity string, verification KYCVerificationResult, ) *CreateAccountHolderResponse { +func NewCreateAccountHolderResponse(accountHolderCode string, accountHolderDetails AccountHolderDetails, accountHolderStatus AccountHolderStatus, legalEntity string, verification KYCVerificationResult) *CreateAccountHolderResponse { this := CreateAccountHolderResponse{} this.AccountHolderCode = accountHolderCode this.AccountHolderDetails = accountHolderDetails @@ -96,7 +96,7 @@ func (o *CreateAccountHolderResponse) SetAccountCode(v string) { // GetAccountHolderCode returns the AccountHolderCode field value func (o *CreateAccountHolderResponse) GetAccountHolderCode() string { - if o == nil { + if o == nil { var ret string return ret } @@ -107,7 +107,7 @@ func (o *CreateAccountHolderResponse) GetAccountHolderCode() string { // GetAccountHolderCodeOk returns a tuple with the AccountHolderCode field value // and a boolean to check if the value has been set. func (o *CreateAccountHolderResponse) GetAccountHolderCodeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.AccountHolderCode, true @@ -120,7 +120,7 @@ func (o *CreateAccountHolderResponse) SetAccountHolderCode(v string) { // GetAccountHolderDetails returns the AccountHolderDetails field value func (o *CreateAccountHolderResponse) GetAccountHolderDetails() AccountHolderDetails { - if o == nil { + if o == nil { var ret AccountHolderDetails return ret } @@ -131,7 +131,7 @@ func (o *CreateAccountHolderResponse) GetAccountHolderDetails() AccountHolderDet // GetAccountHolderDetailsOk returns a tuple with the AccountHolderDetails field value // and a boolean to check if the value has been set. func (o *CreateAccountHolderResponse) GetAccountHolderDetailsOk() (*AccountHolderDetails, bool) { - if o == nil { + if o == nil { return nil, false } return &o.AccountHolderDetails, true @@ -144,7 +144,7 @@ func (o *CreateAccountHolderResponse) SetAccountHolderDetails(v AccountHolderDet // GetAccountHolderStatus returns the AccountHolderStatus field value func (o *CreateAccountHolderResponse) GetAccountHolderStatus() AccountHolderStatus { - if o == nil { + if o == nil { var ret AccountHolderStatus return ret } @@ -155,7 +155,7 @@ func (o *CreateAccountHolderResponse) GetAccountHolderStatus() AccountHolderStat // GetAccountHolderStatusOk returns a tuple with the AccountHolderStatus field value // and a boolean to check if the value has been set. func (o *CreateAccountHolderResponse) GetAccountHolderStatusOk() (*AccountHolderStatus, bool) { - if o == nil { + if o == nil { return nil, false } return &o.AccountHolderStatus, true @@ -232,7 +232,7 @@ func (o *CreateAccountHolderResponse) SetInvalidFields(v []ErrorFieldType) { // GetLegalEntity returns the LegalEntity field value func (o *CreateAccountHolderResponse) GetLegalEntity() string { - if o == nil { + if o == nil { var ret string return ret } @@ -243,7 +243,7 @@ func (o *CreateAccountHolderResponse) GetLegalEntity() string { // GetLegalEntityOk returns a tuple with the LegalEntity field value // and a boolean to check if the value has been set. func (o *CreateAccountHolderResponse) GetLegalEntityOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.LegalEntity, true @@ -352,7 +352,7 @@ func (o *CreateAccountHolderResponse) SetResultCode(v string) { // GetVerification returns the Verification field value func (o *CreateAccountHolderResponse) GetVerification() KYCVerificationResult { - if o == nil { + if o == nil { var ret KYCVerificationResult return ret } @@ -363,7 +363,7 @@ func (o *CreateAccountHolderResponse) GetVerification() KYCVerificationResult { // GetVerificationOk returns a tuple with the Verification field value // and a boolean to check if the value has been set. func (o *CreateAccountHolderResponse) GetVerificationOk() (*KYCVerificationResult, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Verification, true @@ -482,5 +482,3 @@ func (v *NullableCreateAccountHolderResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_create_account_response.go b/src/platformsnotificationevents/model_create_account_response.go index f8dcadcdc..d1750cfff 100644 --- a/src/platformsnotificationevents/model_create_account_response.go +++ b/src/platformsnotificationevents/model_create_account_response.go @@ -26,11 +26,11 @@ type CreateAccountResponse struct { // The description of the account. Description *string `json:"description,omitempty"` // A list of fields that caused the `/createAccount` request to fail. - InvalidFields *[]ErrorFieldType `json:"invalidFields,omitempty"` - Metadata *map[string]string `json:"metadata,omitempty"` + InvalidFields *[]ErrorFieldType `json:"invalidFields,omitempty"` + Metadata *map[string]string `json:"metadata,omitempty"` // The payout method code held by the account holder to couple the account with. Scheduled card payouts will be sent using this payout method code. - PayoutMethodCode *string `json:"payoutMethodCode,omitempty"` - PayoutSchedule *PayoutScheduleResponse `json:"payoutSchedule,omitempty"` + PayoutMethodCode *string `json:"payoutMethodCode,omitempty"` + PayoutSchedule *PayoutScheduleResponse `json:"payoutSchedule,omitempty"` // Speed with which payouts for this account are processed. Permitted values: `STANDARD`, `SAME_DAY`. PayoutSpeed *string `json:"payoutSpeed,omitempty"` // The reference of a request. Can be used to uniquely identify the request. @@ -45,7 +45,7 @@ type CreateAccountResponse 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 NewCreateAccountResponse(accountCode string, accountHolderCode string, status string, ) *CreateAccountResponse { +func NewCreateAccountResponse(accountCode string, accountHolderCode string, status string) *CreateAccountResponse { this := CreateAccountResponse{} this.AccountCode = accountCode this.AccountHolderCode = accountHolderCode @@ -63,7 +63,7 @@ func NewCreateAccountResponseWithDefaults() *CreateAccountResponse { // GetAccountCode returns the AccountCode field value func (o *CreateAccountResponse) GetAccountCode() string { - if o == nil { + if o == nil { var ret string return ret } @@ -74,7 +74,7 @@ func (o *CreateAccountResponse) GetAccountCode() string { // GetAccountCodeOk returns a tuple with the AccountCode field value // and a boolean to check if the value has been set. func (o *CreateAccountResponse) GetAccountCodeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.AccountCode, true @@ -87,7 +87,7 @@ func (o *CreateAccountResponse) SetAccountCode(v string) { // GetAccountHolderCode returns the AccountHolderCode field value func (o *CreateAccountResponse) GetAccountHolderCode() string { - if o == nil { + if o == nil { var ret string return ret } @@ -98,7 +98,7 @@ func (o *CreateAccountResponse) GetAccountHolderCode() string { // GetAccountHolderCodeOk returns a tuple with the AccountHolderCode field value // and a boolean to check if the value has been set. func (o *CreateAccountResponse) GetAccountHolderCodeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.AccountHolderCode, true @@ -399,7 +399,7 @@ func (o *CreateAccountResponse) SetResultCode(v string) { // GetStatus returns the Status field value func (o *CreateAccountResponse) GetStatus() string { - if o == nil { + if o == nil { var ret string return ret } @@ -410,7 +410,7 @@ func (o *CreateAccountResponse) GetStatus() string { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. func (o *CreateAccountResponse) GetStatusOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Status, true @@ -497,5 +497,3 @@ func (v *NullableCreateAccountResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_direct_debit_initiated_notification.go b/src/platformsnotificationevents/model_direct_debit_initiated_notification.go index 92c3378cc..32a215974 100644 --- a/src/platformsnotificationevents/model_direct_debit_initiated_notification.go +++ b/src/platformsnotificationevents/model_direct_debit_initiated_notification.go @@ -19,7 +19,7 @@ import ( // DirectDebitInitiatedNotification struct for DirectDebitInitiatedNotification type DirectDebitInitiatedNotification struct { Content *DirectDebitInitiatedNotificationContent `json:"content,omitempty"` - Error *NotificationErrorContainer `json:"error,omitempty"` + Error *NotificationErrorContainer `json:"error,omitempty"` // The date and time when an event has been completed. EventDate time.Time `json:"eventDate"` // The event type of the notification. @@ -36,7 +36,7 @@ type DirectDebitInitiatedNotification 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 NewDirectDebitInitiatedNotification(eventDate time.Time, eventType string, executingUserKey string, live bool, pspReference string, ) *DirectDebitInitiatedNotification { +func NewDirectDebitInitiatedNotification(eventDate time.Time, eventType string, executingUserKey string, live bool, pspReference string) *DirectDebitInitiatedNotification { this := DirectDebitInitiatedNotification{} this.EventDate = eventDate this.EventType = eventType @@ -120,7 +120,7 @@ func (o *DirectDebitInitiatedNotification) SetError(v NotificationErrorContainer // GetEventDate returns the EventDate field value func (o *DirectDebitInitiatedNotification) GetEventDate() time.Time { - if o == nil { + if o == nil { var ret time.Time return ret } @@ -131,7 +131,7 @@ func (o *DirectDebitInitiatedNotification) GetEventDate() time.Time { // GetEventDateOk returns a tuple with the EventDate field value // and a boolean to check if the value has been set. func (o *DirectDebitInitiatedNotification) GetEventDateOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return &o.EventDate, true @@ -144,7 +144,7 @@ func (o *DirectDebitInitiatedNotification) SetEventDate(v time.Time) { // GetEventType returns the EventType field value func (o *DirectDebitInitiatedNotification) GetEventType() string { - if o == nil { + if o == nil { var ret string return ret } @@ -155,7 +155,7 @@ func (o *DirectDebitInitiatedNotification) GetEventType() string { // GetEventTypeOk returns a tuple with the EventType field value // and a boolean to check if the value has been set. func (o *DirectDebitInitiatedNotification) GetEventTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.EventType, true @@ -168,7 +168,7 @@ func (o *DirectDebitInitiatedNotification) SetEventType(v string) { // GetExecutingUserKey returns the ExecutingUserKey field value func (o *DirectDebitInitiatedNotification) GetExecutingUserKey() string { - if o == nil { + if o == nil { var ret string return ret } @@ -179,7 +179,7 @@ func (o *DirectDebitInitiatedNotification) GetExecutingUserKey() string { // GetExecutingUserKeyOk returns a tuple with the ExecutingUserKey field value // and a boolean to check if the value has been set. func (o *DirectDebitInitiatedNotification) GetExecutingUserKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ExecutingUserKey, true @@ -192,7 +192,7 @@ func (o *DirectDebitInitiatedNotification) SetExecutingUserKey(v string) { // GetLive returns the Live field value func (o *DirectDebitInitiatedNotification) GetLive() bool { - if o == nil { + if o == nil { var ret bool return ret } @@ -203,7 +203,7 @@ func (o *DirectDebitInitiatedNotification) GetLive() bool { // GetLiveOk returns a tuple with the Live field value // and a boolean to check if the value has been set. func (o *DirectDebitInitiatedNotification) GetLiveOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Live, true @@ -216,7 +216,7 @@ func (o *DirectDebitInitiatedNotification) SetLive(v bool) { // GetPspReference returns the PspReference field value func (o *DirectDebitInitiatedNotification) GetPspReference() string { - if o == nil { + if o == nil { var ret string return ret } @@ -227,7 +227,7 @@ func (o *DirectDebitInitiatedNotification) GetPspReference() string { // GetPspReferenceOk returns a tuple with the PspReference field value // and a boolean to check if the value has been set. func (o *DirectDebitInitiatedNotification) GetPspReferenceOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.PspReference, true @@ -299,5 +299,3 @@ func (v *NullableDirectDebitInitiatedNotification) UnmarshalJSON(src []byte) err v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_direct_debit_initiated_notification_content.go b/src/platformsnotificationevents/model_direct_debit_initiated_notification_content.go index c9aca9b29..1eaf5cce0 100644 --- a/src/platformsnotificationevents/model_direct_debit_initiated_notification_content.go +++ b/src/platformsnotificationevents/model_direct_debit_initiated_notification_content.go @@ -18,19 +18,19 @@ import ( // DirectDebitInitiatedNotificationContent struct for DirectDebitInitiatedNotificationContent type DirectDebitInitiatedNotificationContent struct { // The code of the account. - AccountCode string `json:"accountCode"` - Amount Amount `json:"amount"` + AccountCode string `json:"accountCode"` + Amount Amount `json:"amount"` DebitInitiationDate *LocalDate `json:"debitInitiationDate,omitempty"` // The code of the merchant account. - MerchantAccountCode string `json:"merchantAccountCode"` - Status *OperationStatus `json:"status,omitempty"` + MerchantAccountCode string `json:"merchantAccountCode"` + Status *OperationStatus `json:"status,omitempty"` } // NewDirectDebitInitiatedNotificationContent instantiates a new DirectDebitInitiatedNotificationContent 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 NewDirectDebitInitiatedNotificationContent(accountCode string, amount Amount, merchantAccountCode string, ) *DirectDebitInitiatedNotificationContent { +func NewDirectDebitInitiatedNotificationContent(accountCode string, amount Amount, merchantAccountCode string) *DirectDebitInitiatedNotificationContent { this := DirectDebitInitiatedNotificationContent{} this.AccountCode = accountCode this.Amount = amount @@ -48,7 +48,7 @@ func NewDirectDebitInitiatedNotificationContentWithDefaults() *DirectDebitInitia // GetAccountCode returns the AccountCode field value func (o *DirectDebitInitiatedNotificationContent) GetAccountCode() string { - if o == nil { + if o == nil { var ret string return ret } @@ -59,7 +59,7 @@ func (o *DirectDebitInitiatedNotificationContent) GetAccountCode() string { // GetAccountCodeOk returns a tuple with the AccountCode field value // and a boolean to check if the value has been set. func (o *DirectDebitInitiatedNotificationContent) GetAccountCodeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.AccountCode, true @@ -72,7 +72,7 @@ func (o *DirectDebitInitiatedNotificationContent) SetAccountCode(v string) { // GetAmount returns the Amount field value func (o *DirectDebitInitiatedNotificationContent) GetAmount() Amount { - if o == nil { + if o == nil { var ret Amount return ret } @@ -83,7 +83,7 @@ func (o *DirectDebitInitiatedNotificationContent) GetAmount() Amount { // GetAmountOk returns a tuple with the Amount field value // and a boolean to check if the value has been set. func (o *DirectDebitInitiatedNotificationContent) GetAmountOk() (*Amount, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Amount, true @@ -128,7 +128,7 @@ func (o *DirectDebitInitiatedNotificationContent) SetDebitInitiationDate(v Local // GetMerchantAccountCode returns the MerchantAccountCode field value func (o *DirectDebitInitiatedNotificationContent) GetMerchantAccountCode() string { - if o == nil { + if o == nil { var ret string return ret } @@ -139,7 +139,7 @@ func (o *DirectDebitInitiatedNotificationContent) GetMerchantAccountCode() strin // GetMerchantAccountCodeOk returns a tuple with the MerchantAccountCode field value // and a boolean to check if the value has been set. func (o *DirectDebitInitiatedNotificationContent) GetMerchantAccountCodeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.MerchantAccountCode, true @@ -237,5 +237,3 @@ func (v *NullableDirectDebitInitiatedNotificationContent) UnmarshalJSON(src []by v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_error_field_type.go b/src/platformsnotificationevents/model_error_field_type.go index 61cc81796..a131adc36 100644 --- a/src/platformsnotificationevents/model_error_field_type.go +++ b/src/platformsnotificationevents/model_error_field_type.go @@ -20,8 +20,8 @@ type ErrorFieldType struct { // The validation error code. ErrorCode *int32 `json:"errorCode,omitempty"` // A description of the validation error. - ErrorDescription *string `json:"errorDescription,omitempty"` - FieldType *FieldType `json:"fieldType,omitempty"` + ErrorDescription *string `json:"errorDescription,omitempty"` + FieldType *FieldType `json:"fieldType,omitempty"` } // NewErrorFieldType instantiates a new ErrorFieldType object @@ -186,5 +186,3 @@ func (v *NullableErrorFieldType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_field_type.go b/src/platformsnotificationevents/model_field_type.go index 43e774df4..bc8342377 100644 --- a/src/platformsnotificationevents/model_field_type.go +++ b/src/platformsnotificationevents/model_field_type.go @@ -187,5 +187,3 @@ func (v *NullableFieldType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_individual_details.go b/src/platformsnotificationevents/model_individual_details.go index b25fabb44..90df78339 100644 --- a/src/platformsnotificationevents/model_individual_details.go +++ b/src/platformsnotificationevents/model_individual_details.go @@ -17,7 +17,7 @@ import ( // IndividualDetails struct for IndividualDetails type IndividualDetails struct { - Name *ViasName `json:"name,omitempty"` + Name *ViasName `json:"name,omitempty"` PersonalData *ViasPersonalData `json:"personalData,omitempty"` } @@ -148,5 +148,3 @@ func (v *NullableIndividualDetails) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_kyc_check_result.go b/src/platformsnotificationevents/model_kyc_check_result.go index d6f6ca681..f6969bff3 100644 --- a/src/platformsnotificationevents/model_kyc_check_result.go +++ b/src/platformsnotificationevents/model_kyc_check_result.go @@ -113,5 +113,3 @@ func (v *NullableKYCCheckResult) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_kyc_check_status_data.go b/src/platformsnotificationevents/model_kyc_check_status_data.go index 4e3eae501..67fc343f8 100644 --- a/src/platformsnotificationevents/model_kyc_check_status_data.go +++ b/src/platformsnotificationevents/model_kyc_check_status_data.go @@ -20,7 +20,7 @@ type KYCCheckStatusData struct { // A list of the fields required for execution of the check. RequiredFields *[]string `json:"requiredFields,omitempty"` // The status of the check. >Permitted Values: `DATA_PROVIDED`, `PASSED`, `PENDING`, `AWAITING_DATA`, `RETRY_LIMIT_REACHED`, `INVALID_DATA`, `FAILED`. - Status string `json:"status"` + Status string `json:"status"` Summary *KYCCheckSummary `json:"summary,omitempty"` // The type of check. >Permitted Values: `COMPANY_VERIFICATION`, `IDENTITY_VERIFICATION`, `PASSPORT_VERIFICATION`, `BANK_ACCOUNT_VERIFICATION`, `NONPROFIT_VERIFICATION`, `CARD_VERIFICATION`. Type string `json:"type"` @@ -30,7 +30,7 @@ type KYCCheckStatusData 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 NewKYCCheckStatusData(status string, type_ string, ) *KYCCheckStatusData { +func NewKYCCheckStatusData(status string, type_ string) *KYCCheckStatusData { this := KYCCheckStatusData{} this.Status = status this.Type = type_ @@ -79,7 +79,7 @@ func (o *KYCCheckStatusData) SetRequiredFields(v []string) { // GetStatus returns the Status field value func (o *KYCCheckStatusData) GetStatus() string { - if o == nil { + if o == nil { var ret string return ret } @@ -90,7 +90,7 @@ func (o *KYCCheckStatusData) GetStatus() string { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. func (o *KYCCheckStatusData) GetStatusOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Status, true @@ -135,7 +135,7 @@ func (o *KYCCheckStatusData) SetSummary(v KYCCheckSummary) { // GetType returns the Type field value func (o *KYCCheckStatusData) GetType() string { - if o == nil { + if o == nil { var ret string return ret } @@ -146,7 +146,7 @@ func (o *KYCCheckStatusData) GetType() string { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. func (o *KYCCheckStatusData) GetTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Type, true @@ -209,5 +209,3 @@ func (v *NullableKYCCheckStatusData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_kyc_check_summary.go b/src/platformsnotificationevents/model_kyc_check_summary.go index a4d3be6e6..11cb9b48c 100644 --- a/src/platformsnotificationevents/model_kyc_check_summary.go +++ b/src/platformsnotificationevents/model_kyc_check_summary.go @@ -150,5 +150,3 @@ func (v *NullableKYCCheckSummary) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_kyc_payout_method_check_result.go b/src/platformsnotificationevents/model_kyc_payout_method_check_result.go index a30f6cc71..259c09943 100644 --- a/src/platformsnotificationevents/model_kyc_payout_method_check_result.go +++ b/src/platformsnotificationevents/model_kyc_payout_method_check_result.go @@ -150,5 +150,3 @@ func (v *NullableKYCPayoutMethodCheckResult) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_kyc_shareholder_check_result.go b/src/platformsnotificationevents/model_kyc_shareholder_check_result.go index 00554c488..156393a35 100644 --- a/src/platformsnotificationevents/model_kyc_shareholder_check_result.go +++ b/src/platformsnotificationevents/model_kyc_shareholder_check_result.go @@ -150,5 +150,3 @@ func (v *NullableKYCShareholderCheckResult) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_kyc_verification_result.go b/src/platformsnotificationevents/model_kyc_verification_result.go index b18e3ba0b..f8b9e467f 100644 --- a/src/platformsnotificationevents/model_kyc_verification_result.go +++ b/src/platformsnotificationevents/model_kyc_verification_result.go @@ -186,5 +186,3 @@ func (v *NullableKYCVerificationResult) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_local_date.go b/src/platformsnotificationevents/model_local_date.go index 521b131f3..782f94e29 100644 --- a/src/platformsnotificationevents/model_local_date.go +++ b/src/platformsnotificationevents/model_local_date.go @@ -18,7 +18,7 @@ import ( // LocalDate struct for LocalDate type LocalDate struct { Month *int32 `json:"month,omitempty"` - Year *int32 `json:"year,omitempty"` + Year *int32 `json:"year,omitempty"` } // NewLocalDate instantiates a new LocalDate object @@ -148,5 +148,3 @@ func (v *NullableLocalDate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_message.go b/src/platformsnotificationevents/model_message.go index 5ca874d71..7b1199967 100644 --- a/src/platformsnotificationevents/model_message.go +++ b/src/platformsnotificationevents/model_message.go @@ -150,5 +150,3 @@ func (v *NullableMessage) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_notification_error_container.go b/src/platformsnotificationevents/model_notification_error_container.go index ca9632c5b..397119726 100644 --- a/src/platformsnotificationevents/model_notification_error_container.go +++ b/src/platformsnotificationevents/model_notification_error_container.go @@ -150,5 +150,3 @@ func (v *NullableNotificationErrorContainer) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_notification_response.go b/src/platformsnotificationevents/model_notification_response.go index 421d08ebf..c304ee835 100644 --- a/src/platformsnotificationevents/model_notification_response.go +++ b/src/platformsnotificationevents/model_notification_response.go @@ -113,5 +113,3 @@ func (v *NullableNotificationResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_operation_status.go b/src/platformsnotificationevents/model_operation_status.go index a3fe24ed0..2501806f4 100644 --- a/src/platformsnotificationevents/model_operation_status.go +++ b/src/platformsnotificationevents/model_operation_status.go @@ -149,5 +149,3 @@ func (v *NullableOperationStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_payment_failure_notification.go b/src/platformsnotificationevents/model_payment_failure_notification.go index 43e1fb912..912678654 100644 --- a/src/platformsnotificationevents/model_payment_failure_notification.go +++ b/src/platformsnotificationevents/model_payment_failure_notification.go @@ -19,7 +19,7 @@ import ( // PaymentFailureNotification struct for PaymentFailureNotification type PaymentFailureNotification struct { Content PaymentFailureNotificationContent `json:"content"` - Error *NotificationErrorContainer `json:"error,omitempty"` + Error *NotificationErrorContainer `json:"error,omitempty"` // The date and time when an event has been completed. EventDate time.Time `json:"eventDate"` // The event type of the notification. @@ -36,7 +36,7 @@ type PaymentFailureNotification 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 NewPaymentFailureNotification(content PaymentFailureNotificationContent, eventDate time.Time, eventType string, executingUserKey string, live bool, pspReference string, ) *PaymentFailureNotification { +func NewPaymentFailureNotification(content PaymentFailureNotificationContent, eventDate time.Time, eventType string, executingUserKey string, live bool, pspReference string) *PaymentFailureNotification { this := PaymentFailureNotification{} this.Content = content this.EventDate = eventDate @@ -57,7 +57,7 @@ func NewPaymentFailureNotificationWithDefaults() *PaymentFailureNotification { // GetContent returns the Content field value func (o *PaymentFailureNotification) GetContent() PaymentFailureNotificationContent { - if o == nil { + if o == nil { var ret PaymentFailureNotificationContent return ret } @@ -68,7 +68,7 @@ func (o *PaymentFailureNotification) GetContent() PaymentFailureNotificationCont // GetContentOk returns a tuple with the Content field value // and a boolean to check if the value has been set. func (o *PaymentFailureNotification) GetContentOk() (*PaymentFailureNotificationContent, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Content, true @@ -113,7 +113,7 @@ func (o *PaymentFailureNotification) SetError(v NotificationErrorContainer) { // GetEventDate returns the EventDate field value func (o *PaymentFailureNotification) GetEventDate() time.Time { - if o == nil { + if o == nil { var ret time.Time return ret } @@ -124,7 +124,7 @@ func (o *PaymentFailureNotification) GetEventDate() time.Time { // GetEventDateOk returns a tuple with the EventDate field value // and a boolean to check if the value has been set. func (o *PaymentFailureNotification) GetEventDateOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return &o.EventDate, true @@ -137,7 +137,7 @@ func (o *PaymentFailureNotification) SetEventDate(v time.Time) { // GetEventType returns the EventType field value func (o *PaymentFailureNotification) GetEventType() string { - if o == nil { + if o == nil { var ret string return ret } @@ -148,7 +148,7 @@ func (o *PaymentFailureNotification) GetEventType() string { // GetEventTypeOk returns a tuple with the EventType field value // and a boolean to check if the value has been set. func (o *PaymentFailureNotification) GetEventTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.EventType, true @@ -161,7 +161,7 @@ func (o *PaymentFailureNotification) SetEventType(v string) { // GetExecutingUserKey returns the ExecutingUserKey field value func (o *PaymentFailureNotification) GetExecutingUserKey() string { - if o == nil { + if o == nil { var ret string return ret } @@ -172,7 +172,7 @@ func (o *PaymentFailureNotification) GetExecutingUserKey() string { // GetExecutingUserKeyOk returns a tuple with the ExecutingUserKey field value // and a boolean to check if the value has been set. func (o *PaymentFailureNotification) GetExecutingUserKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ExecutingUserKey, true @@ -185,7 +185,7 @@ func (o *PaymentFailureNotification) SetExecutingUserKey(v string) { // GetLive returns the Live field value func (o *PaymentFailureNotification) GetLive() bool { - if o == nil { + if o == nil { var ret bool return ret } @@ -196,7 +196,7 @@ func (o *PaymentFailureNotification) GetLive() bool { // GetLiveOk returns a tuple with the Live field value // and a boolean to check if the value has been set. func (o *PaymentFailureNotification) GetLiveOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Live, true @@ -209,7 +209,7 @@ func (o *PaymentFailureNotification) SetLive(v bool) { // GetPspReference returns the PspReference field value func (o *PaymentFailureNotification) GetPspReference() string { - if o == nil { + if o == nil { var ret string return ret } @@ -220,7 +220,7 @@ func (o *PaymentFailureNotification) GetPspReference() string { // GetPspReferenceOk returns a tuple with the PspReference field value // and a boolean to check if the value has been set. func (o *PaymentFailureNotification) GetPspReferenceOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.PspReference, true @@ -292,5 +292,3 @@ func (v *NullablePaymentFailureNotification) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_payment_failure_notification_content.go b/src/platformsnotificationevents/model_payment_failure_notification_content.go index f4f279110..538bde147 100644 --- a/src/platformsnotificationevents/model_payment_failure_notification_content.go +++ b/src/platformsnotificationevents/model_payment_failure_notification_content.go @@ -18,15 +18,15 @@ import ( // PaymentFailureNotificationContent struct for PaymentFailureNotificationContent type PaymentFailureNotificationContent struct { // Missing or invalid fields that caused the payment error. - ErrorFields []ErrorFieldType `json:"errorFields"` - ErrorMessage Message `json:"errorMessage"` + ErrorFields []ErrorFieldType `json:"errorFields"` + ErrorMessage Message `json:"errorMessage"` } // NewPaymentFailureNotificationContent instantiates a new PaymentFailureNotificationContent 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 NewPaymentFailureNotificationContent(errorFields []ErrorFieldType, errorMessage Message, ) *PaymentFailureNotificationContent { +func NewPaymentFailureNotificationContent(errorFields []ErrorFieldType, errorMessage Message) *PaymentFailureNotificationContent { this := PaymentFailureNotificationContent{} this.ErrorFields = errorFields this.ErrorMessage = errorMessage @@ -43,7 +43,7 @@ func NewPaymentFailureNotificationContentWithDefaults() *PaymentFailureNotificat // GetErrorFields returns the ErrorFields field value func (o *PaymentFailureNotificationContent) GetErrorFields() []ErrorFieldType { - if o == nil { + if o == nil { var ret []ErrorFieldType return ret } @@ -54,7 +54,7 @@ func (o *PaymentFailureNotificationContent) GetErrorFields() []ErrorFieldType { // GetErrorFieldsOk returns a tuple with the ErrorFields field value // and a boolean to check if the value has been set. func (o *PaymentFailureNotificationContent) GetErrorFieldsOk() (*[]ErrorFieldType, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ErrorFields, true @@ -67,7 +67,7 @@ func (o *PaymentFailureNotificationContent) SetErrorFields(v []ErrorFieldType) { // GetErrorMessage returns the ErrorMessage field value func (o *PaymentFailureNotificationContent) GetErrorMessage() Message { - if o == nil { + if o == nil { var ret Message return ret } @@ -78,7 +78,7 @@ func (o *PaymentFailureNotificationContent) GetErrorMessage() Message { // GetErrorMessageOk returns a tuple with the ErrorMessage field value // and a boolean to check if the value has been set. func (o *PaymentFailureNotificationContent) GetErrorMessageOk() (*Message, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ErrorMessage, true @@ -135,5 +135,3 @@ func (v *NullablePaymentFailureNotificationContent) UnmarshalJSON(src []byte) er v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_payout_method.go b/src/platformsnotificationevents/model_payout_method.go index 223cc937f..910863db7 100644 --- a/src/platformsnotificationevents/model_payout_method.go +++ b/src/platformsnotificationevents/model_payout_method.go @@ -17,18 +17,18 @@ import ( // PayoutMethod struct for PayoutMethod type PayoutMethod struct { - MerchantAccount string `json:"merchantAccount"` - PayoutMethodCode *string `json:"payoutMethodCode,omitempty"` - PayoutMethodType *string `json:"payoutMethodType,omitempty"` - RecurringDetailReference string `json:"recurringDetailReference"` - ShopperReference string `json:"shopperReference"` + MerchantAccount string `json:"merchantAccount"` + PayoutMethodCode *string `json:"payoutMethodCode,omitempty"` + PayoutMethodType *string `json:"payoutMethodType,omitempty"` + RecurringDetailReference string `json:"recurringDetailReference"` + ShopperReference string `json:"shopperReference"` } // NewPayoutMethod instantiates a new PayoutMethod 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 NewPayoutMethod(merchantAccount string, recurringDetailReference string, shopperReference string, ) *PayoutMethod { +func NewPayoutMethod(merchantAccount string, recurringDetailReference string, shopperReference string) *PayoutMethod { this := PayoutMethod{} this.MerchantAccount = merchantAccount this.RecurringDetailReference = recurringDetailReference @@ -46,7 +46,7 @@ func NewPayoutMethodWithDefaults() *PayoutMethod { // GetMerchantAccount returns the MerchantAccount field value func (o *PayoutMethod) GetMerchantAccount() string { - if o == nil { + if o == nil { var ret string return ret } @@ -57,7 +57,7 @@ func (o *PayoutMethod) GetMerchantAccount() string { // GetMerchantAccountOk returns a tuple with the MerchantAccount field value // and a boolean to check if the value has been set. func (o *PayoutMethod) GetMerchantAccountOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.MerchantAccount, true @@ -134,7 +134,7 @@ func (o *PayoutMethod) SetPayoutMethodType(v string) { // GetRecurringDetailReference returns the RecurringDetailReference field value func (o *PayoutMethod) GetRecurringDetailReference() string { - if o == nil { + if o == nil { var ret string return ret } @@ -145,7 +145,7 @@ func (o *PayoutMethod) GetRecurringDetailReference() string { // GetRecurringDetailReferenceOk returns a tuple with the RecurringDetailReference field value // and a boolean to check if the value has been set. func (o *PayoutMethod) GetRecurringDetailReferenceOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.RecurringDetailReference, true @@ -158,7 +158,7 @@ func (o *PayoutMethod) SetRecurringDetailReference(v string) { // GetShopperReference returns the ShopperReference field value func (o *PayoutMethod) GetShopperReference() string { - if o == nil { + if o == nil { var ret string return ret } @@ -169,7 +169,7 @@ func (o *PayoutMethod) GetShopperReference() string { // GetShopperReferenceOk returns a tuple with the ShopperReference field value // and a boolean to check if the value has been set. func (o *PayoutMethod) GetShopperReferenceOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ShopperReference, true @@ -235,5 +235,3 @@ func (v *NullablePayoutMethod) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_payout_schedule_response.go b/src/platformsnotificationevents/model_payout_schedule_response.go index 2a0c0acb4..d61e44da4 100644 --- a/src/platformsnotificationevents/model_payout_schedule_response.go +++ b/src/platformsnotificationevents/model_payout_schedule_response.go @@ -28,7 +28,7 @@ type PayoutScheduleResponse 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 NewPayoutScheduleResponse(nextScheduledPayout time.Time, schedule string, ) *PayoutScheduleResponse { +func NewPayoutScheduleResponse(nextScheduledPayout time.Time, schedule string) *PayoutScheduleResponse { this := PayoutScheduleResponse{} this.NextScheduledPayout = nextScheduledPayout this.Schedule = schedule @@ -45,7 +45,7 @@ func NewPayoutScheduleResponseWithDefaults() *PayoutScheduleResponse { // GetNextScheduledPayout returns the NextScheduledPayout field value func (o *PayoutScheduleResponse) GetNextScheduledPayout() time.Time { - if o == nil { + if o == nil { var ret time.Time return ret } @@ -56,7 +56,7 @@ func (o *PayoutScheduleResponse) GetNextScheduledPayout() time.Time { // GetNextScheduledPayoutOk returns a tuple with the NextScheduledPayout field value // and a boolean to check if the value has been set. func (o *PayoutScheduleResponse) GetNextScheduledPayoutOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return &o.NextScheduledPayout, true @@ -69,7 +69,7 @@ func (o *PayoutScheduleResponse) SetNextScheduledPayout(v time.Time) { // GetSchedule returns the Schedule field value func (o *PayoutScheduleResponse) GetSchedule() string { - if o == nil { + if o == nil { var ret string return ret } @@ -80,7 +80,7 @@ func (o *PayoutScheduleResponse) GetSchedule() string { // GetScheduleOk returns a tuple with the Schedule field value // and a boolean to check if the value has been set. func (o *PayoutScheduleResponse) GetScheduleOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Schedule, true @@ -137,5 +137,3 @@ func (v *NullablePayoutScheduleResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_personal_document_data.go b/src/platformsnotificationevents/model_personal_document_data.go index a4a023f85..fb6872e27 100644 --- a/src/platformsnotificationevents/model_personal_document_data.go +++ b/src/platformsnotificationevents/model_personal_document_data.go @@ -33,7 +33,7 @@ type PersonalDocumentData 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 NewPersonalDocumentData(type_ string, ) *PersonalDocumentData { +func NewPersonalDocumentData(type_ string) *PersonalDocumentData { this := PersonalDocumentData{} this.Type = type_ return &this @@ -177,7 +177,7 @@ func (o *PersonalDocumentData) SetNumber(v string) { // GetType returns the Type field value func (o *PersonalDocumentData) GetType() string { - if o == nil { + if o == nil { var ret string return ret } @@ -188,7 +188,7 @@ func (o *PersonalDocumentData) GetType() string { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. func (o *PersonalDocumentData) GetTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Type, true @@ -254,5 +254,3 @@ func (v *NullablePersonalDocumentData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_refund_funds_transfer_notification.go b/src/platformsnotificationevents/model_refund_funds_transfer_notification.go index 42769eec6..1f08f2c96 100644 --- a/src/platformsnotificationevents/model_refund_funds_transfer_notification.go +++ b/src/platformsnotificationevents/model_refund_funds_transfer_notification.go @@ -19,7 +19,7 @@ import ( // RefundFundsTransferNotification struct for RefundFundsTransferNotification type RefundFundsTransferNotification struct { Content RefundFundsTransferNotificationContent `json:"content"` - Error *NotificationErrorContainer `json:"error,omitempty"` + Error *NotificationErrorContainer `json:"error,omitempty"` // The date and time when an event has been completed. EventDate time.Time `json:"eventDate"` // The event type of the notification. @@ -36,7 +36,7 @@ type RefundFundsTransferNotification 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 NewRefundFundsTransferNotification(content RefundFundsTransferNotificationContent, eventDate time.Time, eventType string, executingUserKey string, live bool, pspReference string, ) *RefundFundsTransferNotification { +func NewRefundFundsTransferNotification(content RefundFundsTransferNotificationContent, eventDate time.Time, eventType string, executingUserKey string, live bool, pspReference string) *RefundFundsTransferNotification { this := RefundFundsTransferNotification{} this.Content = content this.EventDate = eventDate @@ -57,7 +57,7 @@ func NewRefundFundsTransferNotificationWithDefaults() *RefundFundsTransferNotifi // GetContent returns the Content field value func (o *RefundFundsTransferNotification) GetContent() RefundFundsTransferNotificationContent { - if o == nil { + if o == nil { var ret RefundFundsTransferNotificationContent return ret } @@ -68,7 +68,7 @@ func (o *RefundFundsTransferNotification) GetContent() RefundFundsTransferNotifi // GetContentOk returns a tuple with the Content field value // and a boolean to check if the value has been set. func (o *RefundFundsTransferNotification) GetContentOk() (*RefundFundsTransferNotificationContent, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Content, true @@ -113,7 +113,7 @@ func (o *RefundFundsTransferNotification) SetError(v NotificationErrorContainer) // GetEventDate returns the EventDate field value func (o *RefundFundsTransferNotification) GetEventDate() time.Time { - if o == nil { + if o == nil { var ret time.Time return ret } @@ -124,7 +124,7 @@ func (o *RefundFundsTransferNotification) GetEventDate() time.Time { // GetEventDateOk returns a tuple with the EventDate field value // and a boolean to check if the value has been set. func (o *RefundFundsTransferNotification) GetEventDateOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return &o.EventDate, true @@ -137,7 +137,7 @@ func (o *RefundFundsTransferNotification) SetEventDate(v time.Time) { // GetEventType returns the EventType field value func (o *RefundFundsTransferNotification) GetEventType() string { - if o == nil { + if o == nil { var ret string return ret } @@ -148,7 +148,7 @@ func (o *RefundFundsTransferNotification) GetEventType() string { // GetEventTypeOk returns a tuple with the EventType field value // and a boolean to check if the value has been set. func (o *RefundFundsTransferNotification) GetEventTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.EventType, true @@ -161,7 +161,7 @@ func (o *RefundFundsTransferNotification) SetEventType(v string) { // GetExecutingUserKey returns the ExecutingUserKey field value func (o *RefundFundsTransferNotification) GetExecutingUserKey() string { - if o == nil { + if o == nil { var ret string return ret } @@ -172,7 +172,7 @@ func (o *RefundFundsTransferNotification) GetExecutingUserKey() string { // GetExecutingUserKeyOk returns a tuple with the ExecutingUserKey field value // and a boolean to check if the value has been set. func (o *RefundFundsTransferNotification) GetExecutingUserKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ExecutingUserKey, true @@ -185,7 +185,7 @@ func (o *RefundFundsTransferNotification) SetExecutingUserKey(v string) { // GetLive returns the Live field value func (o *RefundFundsTransferNotification) GetLive() bool { - if o == nil { + if o == nil { var ret bool return ret } @@ -196,7 +196,7 @@ func (o *RefundFundsTransferNotification) GetLive() bool { // GetLiveOk returns a tuple with the Live field value // and a boolean to check if the value has been set. func (o *RefundFundsTransferNotification) GetLiveOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Live, true @@ -209,7 +209,7 @@ func (o *RefundFundsTransferNotification) SetLive(v bool) { // GetPspReference returns the PspReference field value func (o *RefundFundsTransferNotification) GetPspReference() string { - if o == nil { + if o == nil { var ret string return ret } @@ -220,7 +220,7 @@ func (o *RefundFundsTransferNotification) GetPspReference() string { // GetPspReferenceOk returns a tuple with the PspReference field value // and a boolean to check if the value has been set. func (o *RefundFundsTransferNotification) GetPspReferenceOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.PspReference, true @@ -292,5 +292,3 @@ func (v *NullableRefundFundsTransferNotification) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_refund_funds_transfer_notification_content.go b/src/platformsnotificationevents/model_refund_funds_transfer_notification_content.go index 017001136..b6a9671f6 100644 --- a/src/platformsnotificationevents/model_refund_funds_transfer_notification_content.go +++ b/src/platformsnotificationevents/model_refund_funds_transfer_notification_content.go @@ -23,15 +23,15 @@ type RefundFundsTransferNotificationContent struct { // A value that can be supplied at the discretion of the executing user in order to link multiple transactions to one another. MerchantReference *string `json:"merchantReference,omitempty"` // A PSP reference of the original fund transfer. - OriginalReference string `json:"originalReference"` - Status *OperationStatus `json:"status,omitempty"` + OriginalReference string `json:"originalReference"` + Status *OperationStatus `json:"status,omitempty"` } // NewRefundFundsTransferNotificationContent instantiates a new RefundFundsTransferNotificationContent 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 NewRefundFundsTransferNotificationContent(amount Amount, originalReference string, ) *RefundFundsTransferNotificationContent { +func NewRefundFundsTransferNotificationContent(amount Amount, originalReference string) *RefundFundsTransferNotificationContent { this := RefundFundsTransferNotificationContent{} this.Amount = amount this.OriginalReference = originalReference @@ -48,7 +48,7 @@ func NewRefundFundsTransferNotificationContentWithDefaults() *RefundFundsTransfe // GetAmount returns the Amount field value func (o *RefundFundsTransferNotificationContent) GetAmount() Amount { - if o == nil { + if o == nil { var ret Amount return ret } @@ -59,7 +59,7 @@ func (o *RefundFundsTransferNotificationContent) GetAmount() Amount { // GetAmountOk returns a tuple with the Amount field value // and a boolean to check if the value has been set. func (o *RefundFundsTransferNotificationContent) GetAmountOk() (*Amount, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Amount, true @@ -136,7 +136,7 @@ func (o *RefundFundsTransferNotificationContent) SetMerchantReference(v string) // GetOriginalReference returns the OriginalReference field value func (o *RefundFundsTransferNotificationContent) GetOriginalReference() string { - if o == nil { + if o == nil { var ret string return ret } @@ -147,7 +147,7 @@ func (o *RefundFundsTransferNotificationContent) GetOriginalReference() string { // GetOriginalReferenceOk returns a tuple with the OriginalReference field value // and a boolean to check if the value has been set. func (o *RefundFundsTransferNotificationContent) GetOriginalReferenceOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.OriginalReference, true @@ -245,5 +245,3 @@ func (v *NullableRefundFundsTransferNotificationContent) UnmarshalJSON(src []byt v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_refund_result.go b/src/platformsnotificationevents/model_refund_result.go index a668e1817..a7cc33688 100644 --- a/src/platformsnotificationevents/model_refund_result.go +++ b/src/platformsnotificationevents/model_refund_result.go @@ -28,7 +28,7 @@ type RefundResult 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 NewRefundResult(originalTransaction Transaction, pspReference string, ) *RefundResult { +func NewRefundResult(originalTransaction Transaction, pspReference string) *RefundResult { this := RefundResult{} this.OriginalTransaction = originalTransaction this.PspReference = pspReference @@ -45,7 +45,7 @@ func NewRefundResultWithDefaults() *RefundResult { // GetOriginalTransaction returns the OriginalTransaction field value func (o *RefundResult) GetOriginalTransaction() Transaction { - if o == nil { + if o == nil { var ret Transaction return ret } @@ -56,7 +56,7 @@ func (o *RefundResult) GetOriginalTransaction() Transaction { // GetOriginalTransactionOk returns a tuple with the OriginalTransaction field value // and a boolean to check if the value has been set. func (o *RefundResult) GetOriginalTransactionOk() (*Transaction, bool) { - if o == nil { + if o == nil { return nil, false } return &o.OriginalTransaction, true @@ -69,7 +69,7 @@ func (o *RefundResult) SetOriginalTransaction(v Transaction) { // GetPspReference returns the PspReference field value func (o *RefundResult) GetPspReference() string { - if o == nil { + if o == nil { var ret string return ret } @@ -80,7 +80,7 @@ func (o *RefundResult) GetPspReference() string { // GetPspReferenceOk returns a tuple with the PspReference field value // and a boolean to check if the value has been set. func (o *RefundResult) GetPspReferenceOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.PspReference, true @@ -172,5 +172,3 @@ func (v *NullableRefundResult) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_report_available_notification.go b/src/platformsnotificationevents/model_report_available_notification.go index 6c69db2d6..28e2198c5 100644 --- a/src/platformsnotificationevents/model_report_available_notification.go +++ b/src/platformsnotificationevents/model_report_available_notification.go @@ -19,7 +19,7 @@ import ( // ReportAvailableNotification struct for ReportAvailableNotification type ReportAvailableNotification struct { Content ReportAvailableNotificationContent `json:"content"` - Error *NotificationErrorContainer `json:"error,omitempty"` + Error *NotificationErrorContainer `json:"error,omitempty"` // The date and time when an event has been completed. EventDate time.Time `json:"eventDate"` // The event type of the notification. @@ -36,7 +36,7 @@ type ReportAvailableNotification 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 NewReportAvailableNotification(content ReportAvailableNotificationContent, eventDate time.Time, eventType string, executingUserKey string, live bool, pspReference string, ) *ReportAvailableNotification { +func NewReportAvailableNotification(content ReportAvailableNotificationContent, eventDate time.Time, eventType string, executingUserKey string, live bool, pspReference string) *ReportAvailableNotification { this := ReportAvailableNotification{} this.Content = content this.EventDate = eventDate @@ -57,7 +57,7 @@ func NewReportAvailableNotificationWithDefaults() *ReportAvailableNotification { // GetContent returns the Content field value func (o *ReportAvailableNotification) GetContent() ReportAvailableNotificationContent { - if o == nil { + if o == nil { var ret ReportAvailableNotificationContent return ret } @@ -68,7 +68,7 @@ func (o *ReportAvailableNotification) GetContent() ReportAvailableNotificationCo // GetContentOk returns a tuple with the Content field value // and a boolean to check if the value has been set. func (o *ReportAvailableNotification) GetContentOk() (*ReportAvailableNotificationContent, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Content, true @@ -113,7 +113,7 @@ func (o *ReportAvailableNotification) SetError(v NotificationErrorContainer) { // GetEventDate returns the EventDate field value func (o *ReportAvailableNotification) GetEventDate() time.Time { - if o == nil { + if o == nil { var ret time.Time return ret } @@ -124,7 +124,7 @@ func (o *ReportAvailableNotification) GetEventDate() time.Time { // GetEventDateOk returns a tuple with the EventDate field value // and a boolean to check if the value has been set. func (o *ReportAvailableNotification) GetEventDateOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return &o.EventDate, true @@ -137,7 +137,7 @@ func (o *ReportAvailableNotification) SetEventDate(v time.Time) { // GetEventType returns the EventType field value func (o *ReportAvailableNotification) GetEventType() string { - if o == nil { + if o == nil { var ret string return ret } @@ -148,7 +148,7 @@ func (o *ReportAvailableNotification) GetEventType() string { // GetEventTypeOk returns a tuple with the EventType field value // and a boolean to check if the value has been set. func (o *ReportAvailableNotification) GetEventTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.EventType, true @@ -161,7 +161,7 @@ func (o *ReportAvailableNotification) SetEventType(v string) { // GetExecutingUserKey returns the ExecutingUserKey field value func (o *ReportAvailableNotification) GetExecutingUserKey() string { - if o == nil { + if o == nil { var ret string return ret } @@ -172,7 +172,7 @@ func (o *ReportAvailableNotification) GetExecutingUserKey() string { // GetExecutingUserKeyOk returns a tuple with the ExecutingUserKey field value // and a boolean to check if the value has been set. func (o *ReportAvailableNotification) GetExecutingUserKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ExecutingUserKey, true @@ -185,7 +185,7 @@ func (o *ReportAvailableNotification) SetExecutingUserKey(v string) { // GetLive returns the Live field value func (o *ReportAvailableNotification) GetLive() bool { - if o == nil { + if o == nil { var ret bool return ret } @@ -196,7 +196,7 @@ func (o *ReportAvailableNotification) GetLive() bool { // GetLiveOk returns a tuple with the Live field value // and a boolean to check if the value has been set. func (o *ReportAvailableNotification) GetLiveOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Live, true @@ -209,7 +209,7 @@ func (o *ReportAvailableNotification) SetLive(v bool) { // GetPspReference returns the PspReference field value func (o *ReportAvailableNotification) GetPspReference() string { - if o == nil { + if o == nil { var ret string return ret } @@ -220,7 +220,7 @@ func (o *ReportAvailableNotification) GetPspReference() string { // GetPspReferenceOk returns a tuple with the PspReference field value // and a boolean to check if the value has been set. func (o *ReportAvailableNotification) GetPspReferenceOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.PspReference, true @@ -292,5 +292,3 @@ func (v *NullableReportAvailableNotification) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_report_available_notification_content.go b/src/platformsnotificationevents/model_report_available_notification_content.go index 74803352b..cd918c9de 100644 --- a/src/platformsnotificationevents/model_report_available_notification_content.go +++ b/src/platformsnotificationevents/model_report_available_notification_content.go @@ -262,5 +262,3 @@ func (v *NullableReportAvailableNotificationContent) UnmarshalJSON(src []byte) e v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_scheduled_refunds_notification.go b/src/platformsnotificationevents/model_scheduled_refunds_notification.go index f23852b5e..e70ee1188 100644 --- a/src/platformsnotificationevents/model_scheduled_refunds_notification.go +++ b/src/platformsnotificationevents/model_scheduled_refunds_notification.go @@ -19,7 +19,7 @@ import ( // ScheduledRefundsNotification struct for ScheduledRefundsNotification type ScheduledRefundsNotification struct { Content ScheduledRefundsNotificationContent `json:"content"` - Error *NotificationErrorContainer `json:"error,omitempty"` + Error *NotificationErrorContainer `json:"error,omitempty"` // The date and time when an event has been completed. EventDate time.Time `json:"eventDate"` // The event type of the notification. @@ -36,7 +36,7 @@ type ScheduledRefundsNotification 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 NewScheduledRefundsNotification(content ScheduledRefundsNotificationContent, eventDate time.Time, eventType string, executingUserKey string, live bool, pspReference string, ) *ScheduledRefundsNotification { +func NewScheduledRefundsNotification(content ScheduledRefundsNotificationContent, eventDate time.Time, eventType string, executingUserKey string, live bool, pspReference string) *ScheduledRefundsNotification { this := ScheduledRefundsNotification{} this.Content = content this.EventDate = eventDate @@ -57,7 +57,7 @@ func NewScheduledRefundsNotificationWithDefaults() *ScheduledRefundsNotification // GetContent returns the Content field value func (o *ScheduledRefundsNotification) GetContent() ScheduledRefundsNotificationContent { - if o == nil { + if o == nil { var ret ScheduledRefundsNotificationContent return ret } @@ -68,7 +68,7 @@ func (o *ScheduledRefundsNotification) GetContent() ScheduledRefundsNotification // GetContentOk returns a tuple with the Content field value // and a boolean to check if the value has been set. func (o *ScheduledRefundsNotification) GetContentOk() (*ScheduledRefundsNotificationContent, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Content, true @@ -113,7 +113,7 @@ func (o *ScheduledRefundsNotification) SetError(v NotificationErrorContainer) { // GetEventDate returns the EventDate field value func (o *ScheduledRefundsNotification) GetEventDate() time.Time { - if o == nil { + if o == nil { var ret time.Time return ret } @@ -124,7 +124,7 @@ func (o *ScheduledRefundsNotification) GetEventDate() time.Time { // GetEventDateOk returns a tuple with the EventDate field value // and a boolean to check if the value has been set. func (o *ScheduledRefundsNotification) GetEventDateOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return &o.EventDate, true @@ -137,7 +137,7 @@ func (o *ScheduledRefundsNotification) SetEventDate(v time.Time) { // GetEventType returns the EventType field value func (o *ScheduledRefundsNotification) GetEventType() string { - if o == nil { + if o == nil { var ret string return ret } @@ -148,7 +148,7 @@ func (o *ScheduledRefundsNotification) GetEventType() string { // GetEventTypeOk returns a tuple with the EventType field value // and a boolean to check if the value has been set. func (o *ScheduledRefundsNotification) GetEventTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.EventType, true @@ -161,7 +161,7 @@ func (o *ScheduledRefundsNotification) SetEventType(v string) { // GetExecutingUserKey returns the ExecutingUserKey field value func (o *ScheduledRefundsNotification) GetExecutingUserKey() string { - if o == nil { + if o == nil { var ret string return ret } @@ -172,7 +172,7 @@ func (o *ScheduledRefundsNotification) GetExecutingUserKey() string { // GetExecutingUserKeyOk returns a tuple with the ExecutingUserKey field value // and a boolean to check if the value has been set. func (o *ScheduledRefundsNotification) GetExecutingUserKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ExecutingUserKey, true @@ -185,7 +185,7 @@ func (o *ScheduledRefundsNotification) SetExecutingUserKey(v string) { // GetLive returns the Live field value func (o *ScheduledRefundsNotification) GetLive() bool { - if o == nil { + if o == nil { var ret bool return ret } @@ -196,7 +196,7 @@ func (o *ScheduledRefundsNotification) GetLive() bool { // GetLiveOk returns a tuple with the Live field value // and a boolean to check if the value has been set. func (o *ScheduledRefundsNotification) GetLiveOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Live, true @@ -209,7 +209,7 @@ func (o *ScheduledRefundsNotification) SetLive(v bool) { // GetPspReference returns the PspReference field value func (o *ScheduledRefundsNotification) GetPspReference() string { - if o == nil { + if o == nil { var ret string return ret } @@ -220,7 +220,7 @@ func (o *ScheduledRefundsNotification) GetPspReference() string { // GetPspReferenceOk returns a tuple with the PspReference field value // and a boolean to check if the value has been set. func (o *ScheduledRefundsNotification) GetPspReferenceOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.PspReference, true @@ -292,5 +292,3 @@ func (v *NullableScheduledRefundsNotification) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_scheduled_refunds_notification_content.go b/src/platformsnotificationevents/model_scheduled_refunds_notification_content.go index af14f0066..5860d4bca 100644 --- a/src/platformsnotificationevents/model_scheduled_refunds_notification_content.go +++ b/src/platformsnotificationevents/model_scheduled_refunds_notification_content.go @@ -23,7 +23,7 @@ type ScheduledRefundsNotificationContent struct { AccountHolderCode string `json:"accountHolderCode"` // Invalid fields list. InvalidFields *[]ErrorFieldType `json:"invalidFields,omitempty"` - LastPayout Transaction `json:"lastPayout"` + LastPayout Transaction `json:"lastPayout"` // A list of the refunds that have been scheduled and their results. RefundResults []RefundResult `json:"refundResults"` } @@ -32,7 +32,7 @@ type ScheduledRefundsNotificationContent 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 NewScheduledRefundsNotificationContent(accountCode string, accountHolderCode string, lastPayout Transaction, refundResults []RefundResult, ) *ScheduledRefundsNotificationContent { +func NewScheduledRefundsNotificationContent(accountCode string, accountHolderCode string, lastPayout Transaction, refundResults []RefundResult) *ScheduledRefundsNotificationContent { this := ScheduledRefundsNotificationContent{} this.AccountCode = accountCode this.AccountHolderCode = accountHolderCode @@ -51,7 +51,7 @@ func NewScheduledRefundsNotificationContentWithDefaults() *ScheduledRefundsNotif // GetAccountCode returns the AccountCode field value func (o *ScheduledRefundsNotificationContent) GetAccountCode() string { - if o == nil { + if o == nil { var ret string return ret } @@ -62,7 +62,7 @@ func (o *ScheduledRefundsNotificationContent) GetAccountCode() string { // GetAccountCodeOk returns a tuple with the AccountCode field value // and a boolean to check if the value has been set. func (o *ScheduledRefundsNotificationContent) GetAccountCodeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.AccountCode, true @@ -75,7 +75,7 @@ func (o *ScheduledRefundsNotificationContent) SetAccountCode(v string) { // GetAccountHolderCode returns the AccountHolderCode field value func (o *ScheduledRefundsNotificationContent) GetAccountHolderCode() string { - if o == nil { + if o == nil { var ret string return ret } @@ -86,7 +86,7 @@ func (o *ScheduledRefundsNotificationContent) GetAccountHolderCode() string { // GetAccountHolderCodeOk returns a tuple with the AccountHolderCode field value // and a boolean to check if the value has been set. func (o *ScheduledRefundsNotificationContent) GetAccountHolderCodeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.AccountHolderCode, true @@ -131,7 +131,7 @@ func (o *ScheduledRefundsNotificationContent) SetInvalidFields(v []ErrorFieldTyp // GetLastPayout returns the LastPayout field value func (o *ScheduledRefundsNotificationContent) GetLastPayout() Transaction { - if o == nil { + if o == nil { var ret Transaction return ret } @@ -142,7 +142,7 @@ func (o *ScheduledRefundsNotificationContent) GetLastPayout() Transaction { // GetLastPayoutOk returns a tuple with the LastPayout field value // and a boolean to check if the value has been set. func (o *ScheduledRefundsNotificationContent) GetLastPayoutOk() (*Transaction, bool) { - if o == nil { + if o == nil { return nil, false } return &o.LastPayout, true @@ -155,7 +155,7 @@ func (o *ScheduledRefundsNotificationContent) SetLastPayout(v Transaction) { // GetRefundResults returns the RefundResults field value func (o *ScheduledRefundsNotificationContent) GetRefundResults() []RefundResult { - if o == nil { + if o == nil { var ret []RefundResult return ret } @@ -166,7 +166,7 @@ func (o *ScheduledRefundsNotificationContent) GetRefundResults() []RefundResult // GetRefundResultsOk returns a tuple with the RefundResults field value // and a boolean to check if the value has been set. func (o *ScheduledRefundsNotificationContent) GetRefundResultsOk() (*[]RefundResult, bool) { - if o == nil { + if o == nil { return nil, false } return &o.RefundResults, true @@ -232,5 +232,3 @@ func (v *NullableScheduledRefundsNotificationContent) UnmarshalJSON(src []byte) v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_shareholder_contact.go b/src/platformsnotificationevents/model_shareholder_contact.go index 840bffad6..197c14be7 100644 --- a/src/platformsnotificationevents/model_shareholder_contact.go +++ b/src/platformsnotificationevents/model_shareholder_contact.go @@ -21,11 +21,11 @@ type ShareholderContact struct { // The e-mail address of the contact. Email *string `json:"email,omitempty"` // The phone number of the contact provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\" - FullPhoneNumber *string `json:"fullPhoneNumber,omitempty"` - Name *ViasName `json:"name,omitempty"` - PersonalData *ViasPersonalData `json:"personalData,omitempty"` - PhoneNumber *ViasPhoneNumber `json:"phoneNumber,omitempty"` - // The unique identifier (UUID) of the Shareholder. >**If, during an Account Holder create or update request, this field is left blank (but other fields provided), a new Shareholder will be created with a procedurally-generated UUID.** >**If, during an Account Holder create request, a UUID is provided, the creation of the Shareholder will fail while the creation of the Account Holder will continue.** >**If, during an Account Holder update request, a UUID that is not correlated with an existing Shareholder is provided, the update of the Shareholder will fail.** >**If, during an Account Holder update request, a UUID that is correlated with an existing Shareholder is provided, the existing Shareholder will be updated.** + FullPhoneNumber *string `json:"fullPhoneNumber,omitempty"` + Name *ViasName `json:"name,omitempty"` + PersonalData *ViasPersonalData `json:"personalData,omitempty"` + PhoneNumber *ViasPhoneNumber `json:"phoneNumber,omitempty"` + // The unique identifier (UUID) of the Shareholder. >**If, during an Account Holder create or update request, this field is left blank (but other fields provided), a new Shareholder will be created with a procedurally-generated UUID.** >**If, during an Account Holder create request, a UUID is provided, the creation of the Shareholder will fail while the creation of the Account Holder will continue.** >**If, during an Account Holder update request, a UUID that is not correlated with an existing Shareholder is provided, the update of the Shareholder will fail.** >**If, during an Account Holder update request, a UUID that is correlated with an existing Shareholder is provided, the existing Shareholder will be updated.** ShareholderCode *string `json:"shareholderCode,omitempty"` // Merchant reference to the Shareholder. ShareholderReference *string `json:"shareholderReference,omitempty"` @@ -405,5 +405,3 @@ func (v *NullableShareholderContact) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_transaction.go b/src/platformsnotificationevents/model_transaction.go index 67fb23c64..423c8d9ba 100644 --- a/src/platformsnotificationevents/model_transaction.go +++ b/src/platformsnotificationevents/model_transaction.go @@ -18,7 +18,7 @@ import ( // Transaction struct for Transaction type Transaction struct { - Amount *Amount `json:"amount,omitempty"` + Amount *Amount `json:"amount,omitempty"` BankAccountDetail *BankAccountDetail `json:"bankAccountDetail,omitempty"` // The merchant reference of a related capture. CaptureMerchantReference *string `json:"captureMerchantReference,omitempty"` @@ -667,5 +667,3 @@ func (v *NullableTransaction) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_transfer_funds_notification.go b/src/platformsnotificationevents/model_transfer_funds_notification.go index 42f52c8fe..eeafd1eab 100644 --- a/src/platformsnotificationevents/model_transfer_funds_notification.go +++ b/src/platformsnotificationevents/model_transfer_funds_notification.go @@ -19,7 +19,7 @@ import ( // TransferFundsNotification struct for TransferFundsNotification type TransferFundsNotification struct { Content TransferFundsNotificationContent `json:"content"` - Error *NotificationErrorContainer `json:"error,omitempty"` + Error *NotificationErrorContainer `json:"error,omitempty"` // The date and time when an event has been completed. EventDate time.Time `json:"eventDate"` // The event type of the notification. @@ -36,7 +36,7 @@ type TransferFundsNotification 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 NewTransferFundsNotification(content TransferFundsNotificationContent, eventDate time.Time, eventType string, executingUserKey string, live bool, pspReference string, ) *TransferFundsNotification { +func NewTransferFundsNotification(content TransferFundsNotificationContent, eventDate time.Time, eventType string, executingUserKey string, live bool, pspReference string) *TransferFundsNotification { this := TransferFundsNotification{} this.Content = content this.EventDate = eventDate @@ -57,7 +57,7 @@ func NewTransferFundsNotificationWithDefaults() *TransferFundsNotification { // GetContent returns the Content field value func (o *TransferFundsNotification) GetContent() TransferFundsNotificationContent { - if o == nil { + if o == nil { var ret TransferFundsNotificationContent return ret } @@ -68,7 +68,7 @@ func (o *TransferFundsNotification) GetContent() TransferFundsNotificationConten // GetContentOk returns a tuple with the Content field value // and a boolean to check if the value has been set. func (o *TransferFundsNotification) GetContentOk() (*TransferFundsNotificationContent, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Content, true @@ -113,7 +113,7 @@ func (o *TransferFundsNotification) SetError(v NotificationErrorContainer) { // GetEventDate returns the EventDate field value func (o *TransferFundsNotification) GetEventDate() time.Time { - if o == nil { + if o == nil { var ret time.Time return ret } @@ -124,7 +124,7 @@ func (o *TransferFundsNotification) GetEventDate() time.Time { // GetEventDateOk returns a tuple with the EventDate field value // and a boolean to check if the value has been set. func (o *TransferFundsNotification) GetEventDateOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return &o.EventDate, true @@ -137,7 +137,7 @@ func (o *TransferFundsNotification) SetEventDate(v time.Time) { // GetEventType returns the EventType field value func (o *TransferFundsNotification) GetEventType() string { - if o == nil { + if o == nil { var ret string return ret } @@ -148,7 +148,7 @@ func (o *TransferFundsNotification) GetEventType() string { // GetEventTypeOk returns a tuple with the EventType field value // and a boolean to check if the value has been set. func (o *TransferFundsNotification) GetEventTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.EventType, true @@ -161,7 +161,7 @@ func (o *TransferFundsNotification) SetEventType(v string) { // GetExecutingUserKey returns the ExecutingUserKey field value func (o *TransferFundsNotification) GetExecutingUserKey() string { - if o == nil { + if o == nil { var ret string return ret } @@ -172,7 +172,7 @@ func (o *TransferFundsNotification) GetExecutingUserKey() string { // GetExecutingUserKeyOk returns a tuple with the ExecutingUserKey field value // and a boolean to check if the value has been set. func (o *TransferFundsNotification) GetExecutingUserKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ExecutingUserKey, true @@ -185,7 +185,7 @@ func (o *TransferFundsNotification) SetExecutingUserKey(v string) { // GetLive returns the Live field value func (o *TransferFundsNotification) GetLive() bool { - if o == nil { + if o == nil { var ret bool return ret } @@ -196,7 +196,7 @@ func (o *TransferFundsNotification) GetLive() bool { // GetLiveOk returns a tuple with the Live field value // and a boolean to check if the value has been set. func (o *TransferFundsNotification) GetLiveOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Live, true @@ -209,7 +209,7 @@ func (o *TransferFundsNotification) SetLive(v bool) { // GetPspReference returns the PspReference field value func (o *TransferFundsNotification) GetPspReference() string { - if o == nil { + if o == nil { var ret string return ret } @@ -220,7 +220,7 @@ func (o *TransferFundsNotification) GetPspReference() string { // GetPspReferenceOk returns a tuple with the PspReference field value // and a boolean to check if the value has been set. func (o *TransferFundsNotification) GetPspReferenceOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.PspReference, true @@ -292,5 +292,3 @@ func (v *NullableTransferFundsNotification) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_transfer_funds_notification_content.go b/src/platformsnotificationevents/model_transfer_funds_notification_content.go index 6f17f5fa5..83f4f6629 100644 --- a/src/platformsnotificationevents/model_transfer_funds_notification_content.go +++ b/src/platformsnotificationevents/model_transfer_funds_notification_content.go @@ -25,8 +25,8 @@ type TransferFundsNotificationContent struct { // The reference provided by the merchant. MerchantReference *string `json:"merchantReference,omitempty"` // The code of the Account from which funds were debited. - SourceAccountCode string `json:"sourceAccountCode"` - Status *OperationStatus `json:"status,omitempty"` + SourceAccountCode string `json:"sourceAccountCode"` + Status *OperationStatus `json:"status,omitempty"` // The transfer code. TransferCode string `json:"transferCode"` } @@ -35,7 +35,7 @@ type TransferFundsNotificationContent 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 NewTransferFundsNotificationContent(amount Amount, destinationAccountCode string, sourceAccountCode string, transferCode string, ) *TransferFundsNotificationContent { +func NewTransferFundsNotificationContent(amount Amount, destinationAccountCode string, sourceAccountCode string, transferCode string) *TransferFundsNotificationContent { this := TransferFundsNotificationContent{} this.Amount = amount this.DestinationAccountCode = destinationAccountCode @@ -54,7 +54,7 @@ func NewTransferFundsNotificationContentWithDefaults() *TransferFundsNotificatio // GetAmount returns the Amount field value func (o *TransferFundsNotificationContent) GetAmount() Amount { - if o == nil { + if o == nil { var ret Amount return ret } @@ -65,7 +65,7 @@ func (o *TransferFundsNotificationContent) GetAmount() Amount { // GetAmountOk returns a tuple with the Amount field value // and a boolean to check if the value has been set. func (o *TransferFundsNotificationContent) GetAmountOk() (*Amount, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Amount, true @@ -78,7 +78,7 @@ func (o *TransferFundsNotificationContent) SetAmount(v Amount) { // GetDestinationAccountCode returns the DestinationAccountCode field value func (o *TransferFundsNotificationContent) GetDestinationAccountCode() string { - if o == nil { + if o == nil { var ret string return ret } @@ -89,7 +89,7 @@ func (o *TransferFundsNotificationContent) GetDestinationAccountCode() string { // GetDestinationAccountCodeOk returns a tuple with the DestinationAccountCode field value // and a boolean to check if the value has been set. func (o *TransferFundsNotificationContent) GetDestinationAccountCodeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.DestinationAccountCode, true @@ -166,7 +166,7 @@ func (o *TransferFundsNotificationContent) SetMerchantReference(v string) { // GetSourceAccountCode returns the SourceAccountCode field value func (o *TransferFundsNotificationContent) GetSourceAccountCode() string { - if o == nil { + if o == nil { var ret string return ret } @@ -177,7 +177,7 @@ func (o *TransferFundsNotificationContent) GetSourceAccountCode() string { // GetSourceAccountCodeOk returns a tuple with the SourceAccountCode field value // and a boolean to check if the value has been set. func (o *TransferFundsNotificationContent) GetSourceAccountCodeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.SourceAccountCode, true @@ -222,7 +222,7 @@ func (o *TransferFundsNotificationContent) SetStatus(v OperationStatus) { // GetTransferCode returns the TransferCode field value func (o *TransferFundsNotificationContent) GetTransferCode() string { - if o == nil { + if o == nil { var ret string return ret } @@ -233,7 +233,7 @@ func (o *TransferFundsNotificationContent) GetTransferCode() string { // GetTransferCodeOk returns a tuple with the TransferCode field value // and a boolean to check if the value has been set. func (o *TransferFundsNotificationContent) GetTransferCodeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.TransferCode, true @@ -305,5 +305,3 @@ func (v *NullableTransferFundsNotificationContent) UnmarshalJSON(src []byte) err v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_update_account_holder_response.go b/src/platformsnotificationevents/model_update_account_holder_response.go index 78fcbb680..efc10ac65 100644 --- a/src/platformsnotificationevents/model_update_account_holder_response.go +++ b/src/platformsnotificationevents/model_update_account_holder_response.go @@ -18,9 +18,9 @@ import ( // UpdateAccountHolderResponse struct for UpdateAccountHolderResponse type UpdateAccountHolderResponse struct { // The code of the account holder. - AccountHolderCode *string `json:"accountHolderCode,omitempty"` + AccountHolderCode *string `json:"accountHolderCode,omitempty"` AccountHolderDetails *AccountHolderDetails `json:"accountHolderDetails,omitempty"` - AccountHolderStatus AccountHolderStatus `json:"accountHolderStatus"` + AccountHolderStatus AccountHolderStatus `json:"accountHolderStatus"` // The description of the account holder. Description *string `json:"description,omitempty"` // in case the account holder has not been updated, contains account holder fields, that did not pass the validation. @@ -32,7 +32,7 @@ type UpdateAccountHolderResponse struct { // The reference of a request. Can be used to uniquely identify the request. PspReference *string `json:"pspReference,omitempty"` // The result code. - ResultCode *string `json:"resultCode,omitempty"` + ResultCode *string `json:"resultCode,omitempty"` Verification KYCVerificationResult `json:"verification"` // The identifier of the profile that applies to this entity. VerificationProfile *string `json:"verificationProfile,omitempty"` @@ -42,7 +42,7 @@ type UpdateAccountHolderResponse 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 NewUpdateAccountHolderResponse(accountHolderStatus AccountHolderStatus, legalEntity string, verification KYCVerificationResult, ) *UpdateAccountHolderResponse { +func NewUpdateAccountHolderResponse(accountHolderStatus AccountHolderStatus, legalEntity string, verification KYCVerificationResult) *UpdateAccountHolderResponse { this := UpdateAccountHolderResponse{} this.AccountHolderStatus = accountHolderStatus this.LegalEntity = legalEntity @@ -124,7 +124,7 @@ func (o *UpdateAccountHolderResponse) SetAccountHolderDetails(v AccountHolderDet // GetAccountHolderStatus returns the AccountHolderStatus field value func (o *UpdateAccountHolderResponse) GetAccountHolderStatus() AccountHolderStatus { - if o == nil { + if o == nil { var ret AccountHolderStatus return ret } @@ -135,7 +135,7 @@ func (o *UpdateAccountHolderResponse) GetAccountHolderStatus() AccountHolderStat // GetAccountHolderStatusOk returns a tuple with the AccountHolderStatus field value // and a boolean to check if the value has been set. func (o *UpdateAccountHolderResponse) GetAccountHolderStatusOk() (*AccountHolderStatus, bool) { - if o == nil { + if o == nil { return nil, false } return &o.AccountHolderStatus, true @@ -212,7 +212,7 @@ func (o *UpdateAccountHolderResponse) SetInvalidFields(v []ErrorFieldType) { // GetLegalEntity returns the LegalEntity field value func (o *UpdateAccountHolderResponse) GetLegalEntity() string { - if o == nil { + if o == nil { var ret string return ret } @@ -223,7 +223,7 @@ func (o *UpdateAccountHolderResponse) GetLegalEntity() string { // GetLegalEntityOk returns a tuple with the LegalEntity field value // and a boolean to check if the value has been set. func (o *UpdateAccountHolderResponse) GetLegalEntityOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.LegalEntity, true @@ -332,7 +332,7 @@ func (o *UpdateAccountHolderResponse) SetResultCode(v string) { // GetVerification returns the Verification field value func (o *UpdateAccountHolderResponse) GetVerification() KYCVerificationResult { - if o == nil { + if o == nil { var ret KYCVerificationResult return ret } @@ -343,7 +343,7 @@ func (o *UpdateAccountHolderResponse) GetVerification() KYCVerificationResult { // GetVerificationOk returns a tuple with the Verification field value // and a boolean to check if the value has been set. func (o *UpdateAccountHolderResponse) GetVerificationOk() (*KYCVerificationResult, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Verification, true @@ -459,5 +459,3 @@ func (v *NullableUpdateAccountHolderResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_update_account_response.go b/src/platformsnotificationevents/model_update_account_response.go index f05d05630..a563a8752 100644 --- a/src/platformsnotificationevents/model_update_account_response.go +++ b/src/platformsnotificationevents/model_update_account_response.go @@ -24,11 +24,11 @@ type UpdateAccountResponse struct { // The description of the account. Description *string `json:"description,omitempty"` // A list of fields that caused the `/updateAccount` request to fail. - InvalidFields *[]ErrorFieldType `json:"invalidFields,omitempty"` - Metadata *map[string]string `json:"metadata,omitempty"` + InvalidFields *[]ErrorFieldType `json:"invalidFields,omitempty"` + Metadata *map[string]string `json:"metadata,omitempty"` // The payout method code held by the account holder to couple the account with. Scheduled card payouts will be sent using this payout method code. - PayoutMethodCode *string `json:"payoutMethodCode,omitempty"` - PayoutSchedule *PayoutScheduleResponse `json:"payoutSchedule,omitempty"` + PayoutMethodCode *string `json:"payoutMethodCode,omitempty"` + PayoutSchedule *PayoutScheduleResponse `json:"payoutSchedule,omitempty"` // Speed with which payouts for this account are processed. Permitted values: `STANDARD`, `SAME_DAY`. PayoutSpeed *string `json:"payoutSpeed,omitempty"` // The reference of a request. Can be used to uniquely identify the request. @@ -41,7 +41,7 @@ type UpdateAccountResponse 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 NewUpdateAccountResponse(accountCode string, ) *UpdateAccountResponse { +func NewUpdateAccountResponse(accountCode string) *UpdateAccountResponse { this := UpdateAccountResponse{} this.AccountCode = accountCode return &this @@ -57,7 +57,7 @@ func NewUpdateAccountResponseWithDefaults() *UpdateAccountResponse { // GetAccountCode returns the AccountCode field value func (o *UpdateAccountResponse) GetAccountCode() string { - if o == nil { + if o == nil { var ret string return ret } @@ -68,7 +68,7 @@ func (o *UpdateAccountResponse) GetAccountCode() string { // GetAccountCodeOk returns a tuple with the AccountCode field value // and a boolean to check if the value has been set. func (o *UpdateAccountResponse) GetAccountCodeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.AccountCode, true @@ -437,5 +437,3 @@ func (v *NullableUpdateAccountResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_vias_address.go b/src/platformsnotificationevents/model_vias_address.go index 761bbc013..00ebb0fc2 100644 --- a/src/platformsnotificationevents/model_vias_address.go +++ b/src/platformsnotificationevents/model_vias_address.go @@ -35,7 +35,7 @@ type ViasAddress 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 NewViasAddress(country string, ) *ViasAddress { +func NewViasAddress(country string) *ViasAddress { this := ViasAddress{} this.Country = country return &this @@ -83,7 +83,7 @@ func (o *ViasAddress) SetCity(v string) { // GetCountry returns the Country field value func (o *ViasAddress) GetCountry() string { - if o == nil { + if o == nil { var ret string return ret } @@ -94,7 +94,7 @@ func (o *ViasAddress) GetCountry() string { // GetCountryOk returns a tuple with the Country field value // and a boolean to check if the value has been set. func (o *ViasAddress) GetCountryOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Country, true @@ -291,5 +291,3 @@ func (v *NullableViasAddress) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_vias_name.go b/src/platformsnotificationevents/model_vias_name.go index d2cd8e183..d60d4085b 100644 --- a/src/platformsnotificationevents/model_vias_name.go +++ b/src/platformsnotificationevents/model_vias_name.go @@ -31,7 +31,7 @@ type ViasName 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 NewViasName(firstName string, gender string, lastName string, ) *ViasName { +func NewViasName(firstName string, gender string, lastName string) *ViasName { this := ViasName{} this.FirstName = firstName this.Gender = gender @@ -49,7 +49,7 @@ func NewViasNameWithDefaults() *ViasName { // GetFirstName returns the FirstName field value func (o *ViasName) GetFirstName() string { - if o == nil { + if o == nil { var ret string return ret } @@ -60,7 +60,7 @@ func (o *ViasName) GetFirstName() string { // GetFirstNameOk returns a tuple with the FirstName field value // and a boolean to check if the value has been set. func (o *ViasName) GetFirstNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.FirstName, true @@ -73,7 +73,7 @@ func (o *ViasName) SetFirstName(v string) { // GetGender returns the Gender field value func (o *ViasName) GetGender() string { - if o == nil { + if o == nil { var ret string return ret } @@ -84,7 +84,7 @@ func (o *ViasName) GetGender() string { // GetGenderOk returns a tuple with the Gender field value // and a boolean to check if the value has been set. func (o *ViasName) GetGenderOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Gender, true @@ -129,7 +129,7 @@ func (o *ViasName) SetInfix(v string) { // GetLastName returns the LastName field value func (o *ViasName) GetLastName() string { - if o == nil { + if o == nil { var ret string return ret } @@ -140,7 +140,7 @@ func (o *ViasName) GetLastName() string { // GetLastNameOk returns a tuple with the LastName field value // and a boolean to check if the value has been set. func (o *ViasName) GetLastNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.LastName, true @@ -203,5 +203,3 @@ func (v *NullableViasName) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_vias_personal_data.go b/src/platformsnotificationevents/model_vias_personal_data.go index 8ab33e851..43d0793c3 100644 --- a/src/platformsnotificationevents/model_vias_personal_data.go +++ b/src/platformsnotificationevents/model_vias_personal_data.go @@ -187,5 +187,3 @@ func (v *NullableViasPersonalData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/platformsnotificationevents/model_vias_phone_number.go b/src/platformsnotificationevents/model_vias_phone_number.go index 5bd183c44..17f9f6aaf 100644 --- a/src/platformsnotificationevents/model_vias_phone_number.go +++ b/src/platformsnotificationevents/model_vias_phone_number.go @@ -29,7 +29,7 @@ type ViasPhoneNumber 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 NewViasPhoneNumber(phoneCountryCode string, phoneNumber string, ) *ViasPhoneNumber { +func NewViasPhoneNumber(phoneCountryCode string, phoneNumber string) *ViasPhoneNumber { this := ViasPhoneNumber{} this.PhoneCountryCode = phoneCountryCode this.PhoneNumber = phoneNumber @@ -46,7 +46,7 @@ func NewViasPhoneNumberWithDefaults() *ViasPhoneNumber { // GetPhoneCountryCode returns the PhoneCountryCode field value func (o *ViasPhoneNumber) GetPhoneCountryCode() string { - if o == nil { + if o == nil { var ret string return ret } @@ -57,7 +57,7 @@ func (o *ViasPhoneNumber) GetPhoneCountryCode() string { // GetPhoneCountryCodeOk returns a tuple with the PhoneCountryCode field value // and a boolean to check if the value has been set. func (o *ViasPhoneNumber) GetPhoneCountryCodeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.PhoneCountryCode, true @@ -70,7 +70,7 @@ func (o *ViasPhoneNumber) SetPhoneCountryCode(v string) { // GetPhoneNumber returns the PhoneNumber field value func (o *ViasPhoneNumber) GetPhoneNumber() string { - if o == nil { + if o == nil { var ret string return ret } @@ -81,7 +81,7 @@ func (o *ViasPhoneNumber) GetPhoneNumber() string { // GetPhoneNumberOk returns a tuple with the PhoneNumber field value // and a boolean to check if the value has been set. func (o *ViasPhoneNumber) GetPhoneNumberOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.PhoneNumber, true @@ -173,5 +173,3 @@ func (v *NullableViasPhoneNumber) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/src/transfers/client.go b/src/transfers/client.go index f56efa84b..edfeb7681 100644 --- a/src/transfers/client.go +++ b/src/transfers/client.go @@ -9,7 +9,7 @@ API version: 4 package transfers import ( - "github.com/adyen/adyen-go-api-library/v8/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // APIClient manages communication with the Transfers API API v4 @@ -29,10 +29,10 @@ type APIClient struct { // NewAPIClient creates a new API client. func NewAPIClient(client *common.Client) *APIClient { c := &APIClient{} - c.common.Client = client - c.common.BasePath = func() string { - return client.Cfg.TransfersEndpoint - } + c.common.Client = client + c.common.BasePath = func() string { + return client.Cfg.TransfersEndpoint + } // API Services c.CapitalApi = (*CapitalApi)(&c.common) @@ -40,4 +40,4 @@ func NewAPIClient(client *common.Client) *APIClient { c.TransfersApi = (*TransfersApi)(&c.common) return c -} \ No newline at end of file +} diff --git a/src/transferwebhook/client.go b/src/transferwebhook/client.go index 7f9f0c651..d94e21538 100644 --- a/src/transferwebhook/client.go +++ b/src/transferwebhook/client.go @@ -9,7 +9,7 @@ API version: 3 package transferwebhook import ( - "github.com/adyen/adyen-go-api-library/v8/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // APIClient manages communication with the Transfer webhooks API v3 @@ -23,12 +23,12 @@ type APIClient struct { // NewAPIClient creates a new API client. func NewAPIClient(client *common.Client) *APIClient { c := &APIClient{} - c.common.Client = client - c.common.BasePath = func() string { - return client.Cfg.Endpoint - } + c.common.Client = client + c.common.BasePath = func() string { + return client.Cfg.Endpoint + } // API Services return c -} \ No newline at end of file +}